/* ---- Brand tokens ---- */
:root {
  --blue-900: #0b2545;
  --blue-800: #13366a;
  --blue-700: #1a4587;
  --blue-50:  #eef3fb;
  --gold:     #c9a227;
  --gold-600: #b08e1a;
  --gold-50:  #fdf6e3;
  --gray-900: #1f2937;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;
  --shadow-sm: 0 1px 2px rgba(11,37,69,.06), 0 1px 3px rgba(11,37,69,.05);
  --shadow-md: 0 4px 12px rgba(11,37,69,.08), 0 2px 4px rgba(11,37,69,.05);
  --shadow-lg: 0 20px 40px rgba(11,37,69,.12), 0 8px 16px rgba(11,37,69,.06);
  --radius:   12px;
  --radius-lg: 18px;
  --container: 1160px;
  --header-h: 76px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-900); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--blue-900);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--gray-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 .75rem;
}

.accent { color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-800); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--blue-900);
  border-color: var(--gray-300);
}
.btn-ghost:hover { border-color: var(--blue-900); }
.btn-gold {
  background: var(--gold);
  color: var(--blue-900);
}
.btn-gold:hover { background: var(--gold-600); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--blue-900); }
.brand:hover { color: var(--blue-900); }
.brand-mark { display: inline-flex; }
.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--white);
  flex-shrink: 0;
}
.brand-logo-footer {
  background: var(--white);
  padding: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--blue-900); }
.brand-tag  { font-size: .72rem; color: var(--gray-500); letter-spacing: .04em; }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--blue-900); }
.primary-nav .nav-cta { padding: .65rem 1.1rem; color: #ffffff; }
.primary-nav .nav-cta:hover { color: #ffffff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--blue-900);
  display: block;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a {
    padding: .9rem 24px;
    border-bottom: 1px solid var(--gray-100);
  }
  .primary-nav .nav-cta { margin: .75rem 24px; text-align: center; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201,162,39,.12), transparent 60%),
    radial-gradient(800px 500px at -5% 110%, rgba(11,37,69,.08), transparent 60%),
    linear-gradient(180deg, var(--blue-50) 0%, #fff 70%);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.lede { font-size: 1.1rem; color: var(--gray-700); max-width: 56ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 1.75rem; }
.hero-trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  font-size: .9rem; color: var(--gray-500);
}
.hero-trust li { display: flex; align-items: center; gap: .4rem; }
.hero-trust li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

/* hero card */
.hero-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.hero-card:hover { transform: rotate(0); }
.card-head {
  display: flex; align-items: center; gap: .4rem;
  padding: .8rem 1rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ef4444; } .dot-y { background: #f59e0b; } .dot-g { background: #10b981; }
.card-title { margin-left: .5rem; font-size: .8rem; color: var(--gray-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-body .row {
  display: flex; justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--gray-200);
  font-size: .92rem;
  color: var(--gray-700);
}
.card-body .row:last-of-type { border-bottom: 0; }
.card-body .val { font-weight: 600; color: var(--blue-900); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-body .total { margin-top: .25rem; padding-top: .9rem; border-top: 2px solid var(--blue-900); border-bottom: 0; font-weight: 600; }
.card-body .total span { color: var(--blue-900); }
.card-body .bar { margin-top: 1.1rem; height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.card-body .bar span { display: block; height: 100%; width: var(--w, 80%); background: linear-gradient(90deg, var(--gold), var(--gold-600)); border-radius: 999px; transition: width 1.3s cubic-bezier(.16,1,.3,1) .35s; }
.bar-label { margin: .5rem 0 0; font-size: .82rem; color: var(--gray-500); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
}

/* ---- Stats ---- */
.stats {
  background: var(--blue-900);
  color: var(--white);
  padding: 1.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stats-grid div { padding: .25rem .5rem; }
.stats-grid strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--gold);
  font-weight: 700;
}
.stats-grid span { font-size: .85rem; color: rgba(255,255,255,.78); letter-spacing: .04em; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

/* ---- Sections ---- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-lede { color: var(--gray-700); font-size: 1.05rem; }

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.service:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-50);
  color: var(--blue-900);
  margin-bottom: 1rem;
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.service:hover .service-icon { background: var(--blue-900); color: var(--gold); }
.service h3 { margin-bottom: .4rem; }
.service p { margin: 0; color: var(--gray-700); font-size: .95rem; }
.service-tools {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--white);
  border: none;
}
.service-tools h3, .service-tools p { color: var(--white); }
.service-tools p { color: rgba(255,255,255,.85); }
.service-tools .service-icon { background: rgba(255,255,255,.1); color: var(--gold); }
.service-tools strong { color: var(--gold); }

@media (max-width: 880px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.about-card h3 { margin-bottom: 1.25rem; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.values li { display: flex; gap: .9rem; align-items: flex-start; }
.values strong { display: block; color: var(--blue-900); font-size: 1rem; }
.values p { margin: .15rem 0 0; font-size: .9rem; color: var(--gray-700); }
.v-dot {
  width: 12px; height: 12px; border-radius: 50%;
  margin-top: .55rem;
  flex-shrink: 0;
}
.v-blue { background: var(--blue-900); }
.v-gray { background: var(--gray-500); }
.v-gold { background: var(--gold); }

@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* ---- Why ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.why {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.why:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: .75rem;
  opacity: .85;
}
.why h3 { margin-bottom: .35rem; }
.why p { margin: 0; font-size: .95rem; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* ---- Process ---- */
.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.process li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.process .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-900);
  color: var(--gold);
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}
.process h3 { margin-bottom: .35rem; }
.process p { margin: 0; font-size: .95rem; }
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); margin-bottom: .25rem; }
.cta-inner p { color: rgba(255,255,255,.85); margin: 0; max-width: 60ch; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list strong { display: block; color: var(--blue-900); font-size: .92rem; }
.contact-list p { margin: .15rem 0 0; }
.ci {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-900);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 1rem; }
.contact-form label {
  display: block;
  font-size: .85rem;
  color: var(--gray-700);
  font-weight: 500;
  margin-bottom: .9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: .35rem;
  padding: .7rem .85rem;
  font: inherit;
  font-size: .95rem;
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(26,69,135,.15);
}
.contact-form textarea { resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--gray-500); margin: .8rem 0 0; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Footer ---- */
.site-footer {
  background: #06182f;
  color: rgba(255,255,255,.78);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-tag { color: rgba(255,255,255,.6); }
.site-footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold); }
.footer-blurb { color: rgba(255,255,255,.6); margin-top: 1rem; font-size: .9rem; }
.contact-foot li { font-size: .9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { margin: 0; color: inherit; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  animation: revealUp .8s var(--ease-soft) var(--reveal-delay, 0s) backwards;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* Bid-confidence bar starts empty and fills once the hero card reveals */
.hero-card.reveal:not(.visible) .card-body .bar span { width: 0; }

/* ---- Hero intro: staggered entrance on first load ---- */
.js .hero-copy > * {
  opacity: 0;
  animation: heroIn .75s cubic-bezier(.16,1,.3,1) both;
}
.js .hero-copy > *:nth-child(1) { animation-delay: .10s; }
.js .hero-copy > *:nth-child(2) { animation-delay: .20s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .32s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .44s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .56s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.visible { opacity: 1; transform: none; animation: none; }
  .js .hero-copy > * { animation: none; opacity: 1; transform: none; }
  .card-body .bar span { transition: none; }
  .hero-card.reveal:not(.visible) .card-body .bar span { width: var(--w, 80%); }
}

/* =====================================================================
   Enhanced effects & animations
   ===================================================================== */

/* Scroll progress indicator across the top of the viewport */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-600));
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}

/* Slow-drifting aurora behind the hero copy */
.hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 420px at 22% 28%, rgba(201,162,39,.12), transparent 60%),
    radial-gradient(460px 460px at 78% 72%, rgba(26,69,135,.12), transparent 60%);
  animation: auroraDrift 20s ease-in-out infinite alternate;
}
.hero > .container { position: relative; z-index: 1; }
@keyframes auroraDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* Shimmering gold accent word in the headline */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent {
    background: linear-gradient(100deg, var(--gold) 20%, #e7cf76 45%, var(--gold) 70%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: accentShimmer 6s linear infinite;
  }
}
@keyframes accentShimmer { to { background-position: 220% 0; } }

/* Light sweep across buttons on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { left: 150%; }

/* Animated underline + active state for nav links */
.primary-nav a.active { color: var(--blue-900); }
@media (min-width: 881px) {
  .primary-nav a:not(.nav-cta) { position: relative; }
  .primary-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease-out);
  }
  .primary-nav a:not(.nav-cta):hover::after,
  .primary-nav a:not(.nav-cta).active::after { transform: scaleX(1); }
}

/* Underline that draws in under each section heading on reveal */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -.45rem;
  width: 0; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-600));
  transform: translateX(-50%);
  transition: width .7s var(--ease-out) .15s;
}
.section-head.visible h2::after { width: 64px; }

/* Service cards: growing top accent + lively icon */
.service { position: relative; overflow: hidden; }
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }
.service-icon { transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .35s var(--ease-soft); }
.service:hover .service-icon { transform: translateY(-3px) rotate(-6deg) scale(1.08); }

/* Why cards: soft gold wash + lifting number */
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,162,39,.10), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  pointer-events: none;
}
.why:hover::before { opacity: 1; }
.why > * { position: relative; }
.why-num { transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.why:hover .why-num { transform: translateY(-3px); opacity: 1; }

/* Process: dashed connectors between steps */
@media (min-width: 881px) {
  .process { position: relative; }
  .process li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(1.5rem + 19px);
    left: 100%;
    width: 1.25rem;
    height: 2px;
    background-image: linear-gradient(90deg, var(--gray-300) 55%, transparent 0);
    background-size: 11px 2px;
    background-repeat: repeat-x;
  }
}

/* Hero card: snappier transition while actively tilting */
.hero-card.tilt-active { transition: transform .12s ease-out; }

/* CTA band: slow animated gradient */
.cta-band {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800), var(--blue-700), var(--blue-900));
  background-size: 300% 300%;
  animation: ctaShift 14s ease infinite;
}
@keyframes ctaShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Form fields: hover affordance */
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover { border-color: var(--gray-500); }

/* Footer socials: lift on hover */
.socials a { transition: transform .2s var(--ease-out), color .2s ease; }
.socials a:hover { transform: translateY(-3px) scale(1.12); }

/* Floating back-to-top button */
.to-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--blue-900);
  color: var(--gold);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background .2s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-800); transform: translateY(-3px); }

/* Contact form success state */
.form-result { animation: resultIn .5s var(--ease-soft) both; }
.form-result .btn { margin-top: .35rem; }
@keyframes resultIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Stats bar: staggered entrance (numbers count up via JS, in sync) */
.js .stats-grid > div { opacity: 0; }
.stats.is-revealed .stats-grid > div { animation: statIn .7s var(--ease-soft) both; }
.stats.is-revealed .stats-grid > div:nth-child(1) { animation-delay: .05s; }
.stats.is-revealed .stats-grid > div:nth-child(2) { animation-delay: .15s; }
.stats.is-revealed .stats-grid > div:nth-child(3) { animation-delay: .25s; }
.stats.is-revealed .stats-grid > div:nth-child(4) { animation-delay: .35s; }
@keyframes statIn {
  from { opacity: 0; transform: translateY(24px) scale(.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .cta-band,
  .accent { animation: none; }
  .btn::after { display: none; }
  .section-head h2::after,
  .service::before,
  .why::before,
  .service-icon,
  .primary-nav a:not(.nav-cta)::after { transition: none; }
  .to-top { transition: opacity .2s ease; }
  .js .stats-grid > div { opacity: 1; }
  .stats.is-revealed .stats-grid > div { animation: none; }
  .form-result { animation: none; }
}
