/* =============================================================
   UpElevate Dental — "Bright Lift" (on-brand light theme)
   Navy + friendly blue · Poppins/Figtree · pill controls
   Tokens · Base · Components · Sections · Responsive · Motion
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:        #ffffff;
  --bg-2:      #f5f8fc;
  --bg-3:      #eef4fb;
  --line:      rgba(0, 23, 60, 0.12);
  --line-soft: rgba(0, 23, 60, 0.06);

  /* Text — navy family */
  --navy:      #00173c;
  --navy-soft: rgba(0, 23, 60, 0.78);
  --slate:     #576a8a;

  /* Accent — friendly blue */
  --blue:      #559bd4;   /* decorative only (bars, glow, shapes, thumb) */
  --blue-cta:  #1c6bb0;   /* text-bearing blue: buttons, links, kickers, highlights (AA) */
  --blue-deep: #15568f;   /* hover / pressed */
  --blue-wash: #e9f2fb;   /* soft section tint */
  --good:      #157a3e;

  /* Typography */
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body:    "Figtree", system-ui, -apple-system, sans-serif;
  --font-mono:    "Poppins", ui-monospace, monospace;

  /* Spacing */
  --s-1: 0.5rem;  --s-2: 0.75rem; --s-3: 1rem;   --s-4: 1.5rem;
  --s-5: 2rem;    --s-6: 3rem;    --s-7: 4rem;    --s-8: 6rem;  --s-9: 8rem;

  --radius:   12px;
  --radius-lg: 20px;
  --pill: 50px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-sm: 0 2px 10px -4px rgba(0, 23, 60, 0.16);
  --shadow:    0 18px 44px -22px rgba(0, 23, 60, 0.28);
  --shadow-blue: 0 14px 34px -14px rgba(85, 155, 212, 0.55);
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy-soft);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Soft ambient blue washes */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 50% at 88% -8%, rgba(85, 155, 212, 0.16), transparent 60%),
    radial-gradient(60% 45% at -8% 8%, rgba(85, 155, 212, 0.10), transparent 55%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

::selection { background: rgba(85, 155, 212, 0.28); color: var(--navy); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue-cta);
  border-radius: var(--radius);
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.display {
  font-size: clamp(2.6rem, 1.6rem + 4.8vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }

.serif-italic { color: var(--blue-cta); font-style: normal; font-weight: 700; }

.kicker {
  font-family: var(--font-display);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue-cta);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--blue); }
.kicker.center::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--blue); }

.lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem); color: var(--slate); max-width: 60ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--slate); }

/* ---------- 4. Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 6vw, 8rem); position: relative; }
.section-tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.divider { height: 1px; background: var(--line); border: 0; }
.eyebrow-center { text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  --bg-btn: var(--blue-cta);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  background: var(--bg-btn); color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease), background 0.25s;
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-deep); box-shadow: var(--shadow-blue); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) translateY(-1px); }

.btn-ghost {
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: #fff; border-color: var(--blue); color: var(--blue-cta); box-shadow: var(--shadow-sm); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1.02rem; }
.textlink { color: var(--blue-cta); font-weight: 600; border-bottom: 2px solid rgba(85,155,212,0.4); padding-bottom: 1px; transition: border-color 0.3s; }
.textlink:hover { border-color: var(--blue-cta); }

/* ---------- 6. Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; transition: transform 0.4s var(--ease); }
.brand:hover .brand-logo { transform: translateY(-1px); }
.footer .brand-logo { height: 40px; }

.nav-links { display: flex; align-items: center; gap: var(--s-5); }
.nav-links a.navlink { font-size: 0.95rem; font-weight: 500; color: var(--navy-soft); transition: color 0.25s; position: relative; }
.nav-links a.navlink:hover, .nav-links a.navlink[aria-current="page"] { color: var(--blue-cta); }
.nav-links a.navlink[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; border-radius: 2px; background: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.nav-toggle { display: none; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 2rem + 3vw, 5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); overflow: clip; }
.hero-glow {
  position: absolute; top: -12%; right: -6%; width: 60vw; height: 60vw; max-width: 740px; max-height: 740px;
  background: radial-gradient(circle, rgba(85, 155, 212, 0.30), transparent 62%);
  filter: blur(14px); z-index: -1; pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1) translateY(0); opacity: 0.85; } 50% { transform: scale(1.07) translateY(-12px); opacity: 1; } }

.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.hero h1 { margin-block: var(--s-4) var(--s-4); }
.hero .lead { margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.hero-trust { margin-top: var(--s-6); display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; color: var(--slate); font-size: 0.88rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 36px; height: 36px; border-radius: 50%; margin-left: -10px;
  border: 2px solid #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; color: #fff;
  box-shadow: var(--shadow-sm);
}
.hero-trust .avatars span:first-child { margin-left: 0; }
.stars { color: var(--blue); letter-spacing: 2px; }

/* Hero counter card */
.counter-card {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); overflow: hidden;
}
.counter-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgba(85, 155, 212, 0.12), transparent 62%);
  pointer-events: none;
}
.counter-label { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--slate); }
.counter-value { display: flex; align-items: baseline; gap: 0.3rem; margin-block: var(--s-2) var(--s-1); }
.counter-num {
  font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(4.5rem, 3rem + 9vw, 8rem); line-height: 0.85; color: var(--navy); letter-spacing: -0.04em;
}
.counter-plus { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--blue-cta); }
.counter-sub { font-size: 0.95rem; color: var(--slate); }
.counter-track { margin-top: var(--s-4); height: 8px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.counter-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--blue-deep)); transition: width 1.4s var(--ease); }
.counter-foot { margin-top: var(--s-3); display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; color: var(--slate); }

/* ---------- 8. Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: var(--s-4); background: var(--bg-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-label { display:block; text-align:center; margin-bottom: var(--s-4); color: var(--slate); }
.marquee-track { display: flex; gap: var(--s-7); width: max-content; animation: scroll-x 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy-soft); letter-spacing: -0.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.5rem; }
.marquee-track span::before { content: "↑"; color: var(--blue); font-weight: 700; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- 8b. Client logo wall ---------- */
.clients { background: var(--blue-wash); overflow: hidden; }
.clients-head { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: var(--s-6); }
.clients-head h2 { margin-top: var(--s-3); }
.logo-wall { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.logo-track { display: flex; align-items: center; gap: clamp(2.75rem, 5vw, 5.5rem); width: max-content; animation: scroll-x 34s linear infinite; }
.logo-wall:hover .logo-track { animation-play-state: paused; }
.client-logo { height: clamp(36px, 2.4vw, 50px); width: auto; flex: none; filter: grayscale(1) brightness(0.55) contrast(1.1); opacity: 0.62; transition: filter 0.45s var(--ease), opacity 0.45s var(--ease), transform 0.45s var(--ease); cursor: pointer; }
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-4px) scale(1.06); }
.clients-foot { text-align: center; margin-top: var(--s-6); color: var(--slate); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; }
.clients-foot b { color: var(--navy); font-weight: 700; }

/* ---------- 9. Guarantee / Seal ---------- */
.guarantee { position: relative; }
.guarantee::before { content: ""; position: absolute; inset: 0; background: var(--blue-wash); border-radius: var(--radius-lg); z-index: -1; opacity: 0.6; }
.guarantee-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.seal { position: relative; width: 240px; height: 240px; margin-inline: auto; filter: drop-shadow(var(--shadow-blue)); }
.seal svg { width: 100%; height: 100%; }
.seal .ring-text { animation: spin 26s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-core { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.seal-core .big { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.seal-core .small { font-family: var(--font-display); font-weight: 600; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-top: 6px; }

/* ---------- 10. Generic grids / panels ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1vw, 2rem); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.panel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }

/* Problem list */
.problem-list { display: grid; gap: var(--s-3); }
.problem-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.problem-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.problem-item .x { font-family: var(--font-display); font-weight: 700; color: var(--blue-cta); font-size: 0.95rem; background: var(--blue-wash); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.problem-item h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; line-height: 1.3; }
.problem-item p { font-size: 0.93rem; color: var(--slate); }

/* ---------- 11. The System timeline ---------- */
.steps { display: grid; gap: var(--s-5); margin-top: var(--s-6); position: relative; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: var(--s-4); align-items: start; position: relative; padding-bottom: var(--s-5); }
.step:not(:last-child)::after { content: ""; position: absolute; left: 44px; top: 70px; bottom: -4px; width: 2px; background: linear-gradient(var(--blue), rgba(85,155,212,0)); }
.step-num {
  width: 64px; height: 64px; border-radius: 50%; border: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep)); position: relative; z-index: 1; box-shadow: var(--shadow-blue);
}
.step h3, .step h2 { margin-bottom: var(--s-2); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
.step p { max-width: 56ch; }
.step .tag { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; color: var(--blue-cta); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-top: var(--s-2); }

/* ---------- 12. ROI calculator ---------- */
.roi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 3vw, 3rem); box-shadow: var(--shadow); }
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.roi-control { margin-bottom: var(--s-5); }
.roi-control label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: var(--s-2); }
.roi-control label b { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); letter-spacing: -0.02em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: var(--bg-3); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); border: 4px solid #fff; box-shadow: var(--shadow-blue); cursor: grab; transition: transform 0.2s; }
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 4px solid #fff; cursor: grab; }
.roi-readout { text-align: center; background: var(--blue-wash); border-radius: var(--radius); padding: var(--s-5) var(--s-4); }
.roi-readout .cap { font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue-cta); }
.roi-figure { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(2.6rem, 1.5rem + 6vw, 4.75rem); color: var(--navy); line-height: 1; margin-block: var(--s-2); letter-spacing: -0.03em; }
.roi-figure .cur { color: var(--blue-cta); font-size: 0.5em; vertical-align: 0.24em; }
.roi-delta { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--good); }
.roi-note { font-size: 0.86rem; color: var(--slate); margin-top: var(--s-4); max-width: 40ch; margin-inline: auto; }

/* ---------- 13. Testimonial / stats ---------- */
.quote { max-width: 42ch; }
.quote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.22; color: var(--navy); letter-spacing: -0.025em; }
.quote blockquote::before { content: "“"; color: var(--blue); }
.quote blockquote::after { content: "”"; color: var(--blue); }
.quote-by { margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-3); }
.quote-by .pf { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; flex: none; box-shadow: var(--shadow-sm); }
.quote-by .who b { display: block; color: var(--navy); font-weight: 700; font-family: var(--font-display); }
.quote-by .who span { font-size: 0.88rem; color: var(--slate); }

.statband { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.stat { padding: var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: clamp(2.5rem, 1.6rem + 3vw, 3.5rem); color: var(--navy); line-height: 1; letter-spacing: -0.03em; }
.stat .n .u { color: var(--blue-cta); }
.stat .l { font-family: var(--font-display); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-top: var(--s-2); }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: var(--s-2); }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color 0.3s, box-shadow 0.3s; }
.faq details[open] { border-color: rgba(85,155,212,0.5); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s-4); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 1rem + 0.4vw, 1.22rem); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-wash); display: grid; place-items: center; color: var(--blue-cta); transition: transform 0.4s var(--ease); font-family: var(--font-display); font-weight: 700; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .ans { padding: 0 var(--s-4) var(--s-4); color: var(--slate); max-width: 72ch; }

/* ---------- 15. CTA band ---------- */
.cta-band { position: relative; text-align: center; border-radius: var(--radius-lg); padding: clamp(2.5rem, 2rem + 4vw, 5rem); overflow: hidden; background: linear-gradient(155deg, var(--navy), #0a2d5e); box-shadow: var(--shadow); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 110% at 50% 0%, rgba(85, 155, 212, 0.35), transparent 60%); pointer-events: none; }
.cta-band h2 { margin-bottom: var(--s-4); color: #fff; position: relative; }
.cta-band h2 .serif-italic { color: var(--blue); }
.cta-band .lead { margin-inline: auto; margin-bottom: var(--s-5); color: rgba(255,255,255,0.82); position: relative; }
.cta-band .kicker { color: #fff; position: relative; }
.cta-band .kicker::before, .cta-band .kicker.center::after { background: var(--blue); }
.cta-actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; position: relative; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

/* ---------- 16. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s-7) var(--s-5); margin-top: var(--s-6); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-6); }
.footer .foot-h { font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy); margin-bottom: var(--s-3); }
.footer a { display: block; color: var(--slate); padding: 0.3rem 0; font-size: 0.93rem; transition: color 0.25s; }
.footer a:hover { color: var(--blue-cta); }
.footer-tag { color: var(--slate); max-width: 32ch; margin-top: var(--s-3); font-size: 0.93rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--slate); font-family: var(--font-display); font-weight: 500; }

/* ---------- 17. Page hero (sub-pages) ---------- */
.page-hero { padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.page-hero h1 { font-size: clamp(2.4rem, 1.8rem + 3.6vw, 4.75rem); margin-block: var(--s-3); }
.page-hero .lead { margin-top: var(--s-4); }

/* ---------- 18. Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: var(--s-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--bg-2);
  border: 1.5px solid var(--line); color: var(--navy); font: inherit; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa9bf; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(85,155,212,0.18); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.form-aside { background: linear-gradient(155deg, var(--navy), #0a2d5e); border-radius: var(--radius-lg); padding: var(--s-5); color: #fff; box-shadow: var(--shadow); }
.form-aside .kicker { color: #fff; }
.form-aside .kicker::before { background: var(--blue); }
.form-aside h2 { color: #fff; }
.form-aside ul { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.form-aside li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2); font-size: 0.93rem; color: rgba(255,255,255,0.85); }
.form-aside li .ck { color: var(--blue); font-family: var(--font-display); font-weight: 700; }
.form-aside .divider { background: rgba(255,255,255,0.18); }
.form-aside .textlink { color: #fff; border-color: rgba(255,255,255,0.5); }
.form-aside .muted { color: rgba(255,255,255,0.7); }
.form-success { display: none; padding: var(--s-4); border-radius: var(--radius); border: 1.5px solid rgba(47,158,91,0.4); background: rgba(47,158,91,0.10); color: var(--navy); margin-bottom: var(--s-4); }
.form-success.show { display: block; }
.form-error { display: none; padding: var(--s-4); border-radius: var(--radius); border: 1.5px solid rgba(200,52,52,0.4); background: rgba(200,52,52,0.08); color: var(--navy); margin-bottom: var(--s-4); }
.form-error.show { display: block; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }

/* ---------- 19. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .counter-card { max-width: 480px; }
  .guarantee-grid { grid-template-columns: 1fr; text-align: center; }
  .seal { margin-bottom: var(--s-2); }
  .roi-grid, .split, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: var(--s-4); padding: var(--s-5) 1.25rem;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(14px); box-shadow: var(--shadow);
  }
  .nav-links.open .nav-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--navy); position: relative; transition: transform 0.3s; }
  .nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
  .cols-2, .cols-3, .statband, .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; }
  .step-num { margin-bottom: var(--s-2); }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-glow, .marquee-track, .seal .ring-text { animation: none; }
  .logo-track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: var(--s-5); }
  .logo-wall { -webkit-mask-image: none; mask-image: none; }
}
