/* ==========================================================================
   myrtlebeach-dui.com — styles.css
   Form-first lead gen | Navy + white + gold | Modern CSS, mobile-first
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0b1f3a;
  --navy-deep: #061426;
  --navy-mid: #132d52;
  --navy-soft: #1a3a66;
  --gold: #c4a35a;
  --gold-hover: #d4b56e;
  --gold-muted: color-mix(in srgb, var(--gold) 16%, transparent);
  --white: #ffffff;
  --off-white: #f6f8fb;
  --gray-100: #eef1f5;
  --gray-200: #dce2ea;
  --gray-500: #6b7a8d;
  --gray-700: #3d4a5c;
  --text: #1a2433;
  --text-muted: #5a6a7e;
  --success: #1e7a4a;
  --error: #b33a3a;
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--navy) 6%, transparent);
  --shadow-md: 0 8px 24px color-mix(in srgb, var(--navy) 10%, transparent);
  --shadow-lg: 0 18px 48px color-mix(in srgb, var(--navy) 14%, transparent);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --max-width: 1120px;
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.22s var(--ease);
  --ring: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent);
  accent-color: var(--gold);
  color-scheme: light;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--gold) 35%, var(--navy));
  color: var(--white);
}

/* Subtle, modern scrollbar (WebKit + Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--navy) 35%, transparent) transparent;
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--navy) 30%, transparent);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition);
}

a:hover { color: var(--gold); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.65rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }

p { text-wrap: pretty; }
p + p { margin-top: 0.85rem; }

/* ---------- Skip link + scroll progress ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10001;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 40%, var(--white)));
  pointer-events: none;
  transform-origin: left;
  transition: width 0.05s linear;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.section--alt { background: var(--off-white); }

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 { color: var(--white); }

.section--navy p,
.section--navy li { color: color-mix(in srgb, var(--white) 90%, transparent); }

main {
  flex: 1;
  padding-top: var(--header-h);
}

/* ---------- Header (glass on scroll) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
  overflow: visible; /* don't clip hamburger or open menu */
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--navy-deep) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: color-mix(in srgb, var(--gold) 22%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, #000 22%, transparent);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled {
    background: var(--navy-deep);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--header-h);
  gap: 0.5rem;
  position: relative;
  width: 100%;
  max-width: var(--max-width);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--white);
  flex: 1 1 auto;
  min-width: 0; /* allow shrink so hamburger stays on-screen */
  line-height: 1.15;
  order: 1;
}

.logo:hover { color: var(--white); }

.logo__img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.logo__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.logo__mark {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo__sub {
  display: none; /* free space on mobile for the menu button */
  font-size: 0.62rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  white-space: nowrap;
}

/* Footer brand block */
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-brand__img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.footer-brand__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
  margin: 0 0 0.2rem;
}

/* Inline UI icons */
.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.icon--lg {
  width: 22px;
  height: 22px;
}

.how-it-works__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold-muted);
  color: color-mix(in srgb, var(--gold) 75%, var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-it-works__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.hero__meta .icon,
.hero__meta svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  fill: none;
  stroke: var(--gold);
}

.trust-bar__list .icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

/* Hamburger — always visible on mobile */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 12px 11px;
  order: 3;
  margin-left: auto; /* pin hamburger to the right on mobile */
  z-index: 1002;
  transition: border-color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--gold-hover);
  background: color-mix(in srgb, var(--gold) 28%, transparent);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] {
  background: color-mix(in srgb, var(--gold) 30%, transparent);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer menu */
.site-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: auto;
  max-height: min(70vh, calc(100dvh - var(--header-h) - 70px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--navy-deep);
  padding: 0.35rem 0 1rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  box-shadow: 0 16px 40px color-mix(in srgb, #000 45%, transparent);
  z-index: 1001;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-nav li + li {
  margin-top: 0;
  border-top: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}

.site-nav a {
  display: block;
  color: color-mix(in srgb, var(--white) 92%, transparent);
  text-decoration: none;
  padding: 1rem 0.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color var(--transition), padding-left var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

/* Header CTA — compact on mobile so hamburger fits */
.header-cta {
  display: none; /* mobile uses bottom bar CTA; keeps hamburger visible */
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-left: auto;
  margin-right: 0;
  order: 2;
  padding: 0.55rem 0.9rem;
  background: var(--gold);
  color: var(--navy-deep) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), transform 0.15s var(--ease), box-shadow var(--transition);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--gold) 35%, transparent);
}

.header-cta:hover {
  background: var(--gold-hover);
  color: var(--navy-deep) !important;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--gold) 45%, transparent);
}

@media (hover: hover) {
  .header-cta:hover { transform: translateY(-1px); }
}

.header-cta:active { transform: scale(0.98); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none !important;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s var(--ease), box-shadow var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.98); }

.btn--primary,
.btn--call {
  background: var(--gold);
  color: var(--navy-deep) !important;
  border-color: var(--gold);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--gold) 30%, transparent);
}

.btn--primary:hover,
.btn--call:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--navy-deep) !important;
}

.btn--navy {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}

.btn--navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white) !important;
}

.btn--outline {
  background: transparent;
  color: var(--white) !important;
  border-color: color-mix(in srgb, var(--white) 55%, transparent);
}

.btn--outline:hover {
  background: color-mix(in srgb, var(--white) 10%, transparent);
  color: var(--white) !important;
  border-color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy) !important;
  border-color: color-mix(in srgb, var(--navy) 35%, transparent);
}

.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}

.btn--ghost {
  background: color-mix(in srgb, var(--navy) 6%, transparent);
  color: var(--navy) !important;
  border-color: transparent;
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--navy) 12%, transparent);
}

.btn--full { width: 100%; }
.btn--lg { padding: 1.05rem 1.75rem; font-size: 1.05rem; }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.88rem; }

.btn[disabled],
.btn.is-loading {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 0.35rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  --hero-glow: color-mix(in srgb, var(--gold) 18%, transparent);
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, var(--hero-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, color-mix(in srgb, var(--navy-soft) 50%, transparent), transparent 50%),
    linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 52%, var(--navy-mid) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(3rem, 6vw, 4.75rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--white) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--white) 4%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
  pointer-events: none;
  opacity: 0.45;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 65%);
}

.hero__grid {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  color: color-mix(in srgb, var(--white) 88%, transparent);
  max-width: 36em;
  margin-bottom: 0.35rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-top: 1.35rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__meta svg,
.hero__meta .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  /* SVGs use currentColor stroke; force gold on dark hero */
  filter: none;
}

.hero__meta img.icon {
  /* Gold tint for monochrome stroke icons on navy */
  filter: invert(72%) sepia(28%) saturate(600%) hue-rotate(6deg) brightness(95%);
}

.trust-bar__list img.icon {
  filter: invert(72%) sepia(28%) saturate(600%) hue-rotate(6deg) brightness(95%);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--navy-deep);
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--white) 78%, transparent);
  text-align: center;
}

.trust-bar__list li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-bar__list strong {
  color: var(--gold);
  font-weight: 650;
}

/* ---------- Cards & grids ---------- */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

.card {
  container-type: inline-size;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

@media (hover: hover) {
  .card:hover {
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--gold) 40%, var(--gray-200));
    transform: translateY(-3px);
  }
}

.card__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-muted);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--gold) 75%, var(--navy));
}

.card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.card h3 { font-size: 1.08rem; }

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.card a.card-link::after {
  content: "→";
  transition: transform var(--transition);
}

@media (hover: hover) {
  .card a.card-link:hover {
    color: color-mix(in srgb, var(--gold) 70%, var(--navy));
    gap: 0.55rem;
  }
  .card a.card-link:hover::after {
    transform: translateX(3px);
  }
}

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }

.prose ul,
.prose ol {
  margin: 0.85rem 0 1rem;
  color: var(--text);
}

.prose li { margin-top: 0.45rem; }
.prose strong { color: var(--navy); }

.callout {
  background: linear-gradient(135deg, var(--gold-muted), color-mix(in srgb, var(--gold) 8%, var(--off-white)));
  border-left: 4px solid var(--gold);
  padding: 1.15rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy);
}

.callout strong { color: var(--navy-deep); }

/* ---------- Content + sticky form ---------- */
.content-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.sticky-form { position: relative; }

/* ---------- Lead form (floating labels + steps) ---------- */
.lead-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  position: relative;
}

.lead-form-card a:not(.btn) { color: var(--navy-mid); }
.lead-form-card a:not(.btn):hover { color: var(--gold); }

.lead-form-card--dark {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-color: var(--navy-soft);
  border-top-color: var(--gold);
  color: var(--white);
}

.lead-form-card--dark h2,
.lead-form-card--dark h3 { color: var(--white); }

.lead-form-card--dark p {
  color: color-mix(in srgb, var(--white) 80%, transparent);
}

.lead-form-card--dark a:not(.btn) { color: var(--gold); }
.lead-form-card--dark a:not(.btn):hover { color: var(--gold-hover); }

.lead-form-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.lead-form-card--dark .lead-form-card__title { color: var(--white); }

.lead-form-card__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

.lead-form-card--dark .lead-form-card__sub {
  color: color-mix(in srgb, var(--white) 70%, transparent);
}

.form-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-progress__track {
  flex: 1;
  height: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.form-progress__fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease);
}

.form-progress__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lead-form-card--dark .form-progress__track {
  background: color-mix(in srgb, var(--white) 12%, transparent);
}

.lead-form-card--dark .form-progress__label {
  color: color-mix(in srgb, var(--white) 55%, transparent);
}

.form-step { display: none; }
.form-step.is-active { display: block; animation: stepIn 0.35s var(--ease); }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .form-step.is-active { animation: none; }
}

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.lead-form-card--dark .form-group label {
  color: color-mix(in srgb, var(--white) 90%, transparent);
}

.form-group .optional {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: color-mix(in srgb, var(--gray-500) 80%, transparent);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: color-mix(in srgb, var(--navy) 22%, var(--gray-200));
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: var(--ring);
  background: var(--white);
}

/* Chrome autofill polish */
.form-group input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fffdf6 inset !important;
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-out;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233d4a5c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 18%, transparent);
}

.form-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.form-actions .btn--ghost {
  flex: 0 0 auto;
  min-width: 5.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.form-actions .btn--full,
.form-actions [type="submit"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.form-privacy {
  font-size: 0.74rem;
  color: var(--gray-500);
  margin: 0.85rem 0 0.35rem;
  line-height: 1.5;
}

.lead-form-card--dark .form-privacy {
  color: color-mix(in srgb, var(--white) 52%, transparent);
}

/* Success state */
.lead-form-card.is-submitted .lead-form-card__title,
.lead-form-card.is-submitted .lead-form-card__sub,
.lead-form-card.is-submitted .form-progress,
.lead-form-card.is-submitted form {
  display: none !important;
}

.form-success {
  display: none;
  text-align: center;
  padding: 0.5rem 0.15rem 0.25rem;
}

.form-success.is-visible {
  display: block;
  animation: stepIn 0.4s var(--ease);
}

.form-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 6%, transparent);
}

.form-success__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.form-success h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 auto 0.75rem;
  max-width: 24em;
}

.form-success p:last-child { margin-bottom: 0; }

.form-success__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, transparent);
  border-radius: var(--radius-full);
}

.lead-form-card--dark .form-success__icon {
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 8%, transparent);
}

.lead-form-card--dark .form-success h3 { color: var(--white); }
.lead-form-card--dark .form-success p {
  color: color-mix(in srgb, var(--white) 78%, transparent);
}

.lead-form-card--dark .form-success__badge {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}

.form-error {
  display: none;
  background: color-mix(in srgb, var(--error) 8%, var(--white));
  color: var(--error);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--error) 22%, transparent);
}

.form-error.is-visible {
  display: block;
  animation: stepIn 0.3s var(--ease);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; }

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 0.65rem;
  overflow: clip;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--gold) 40%, var(--gray-200));
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 650;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--transition);
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-item summary:hover { background: var(--off-white); }

.faq-item .faq-answer {
  padding: 0 1.15rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--gray-100);
  padding-top: 0.85rem;
}

/* ---------- Steps timeline ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.steps li {
  position: relative;
  padding: 0 0 1.75rem 3rem;
  margin: 0;
  border-left: 2px solid var(--gray-200);
  margin-left: 1rem;
}

.steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.05rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 750;
  font-family: var(--font);
  box-shadow: 0 0 0 4px var(--white);
}

.steps h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, color-mix(in srgb, var(--gold) 14%, transparent), transparent),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: clamp(2.75rem, 5vw, 3.75rem) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: color-mix(in srgb, var(--white) 85%, transparent);
  max-width: 34em;
  margin: 0 auto 1.5rem;
}

.cta-band .btn-group {
  flex-direction: column;
  align-items: stretch;
  max-width: 380px;
  margin: 0 auto;
}

/* ---------- Page header ---------- */
.page-header {
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent),
    var(--navy);
  color: var(--white);
  padding: 2.25rem 0 2.6rem;
  border-bottom: 3px solid var(--gold);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.65rem;
}

.page-header p {
  color: color-mix(in srgb, var(--white) 85%, transparent);
  max-width: 40em;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
  color: color-mix(in srgb, var(--white) 58%, transparent);
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* ---------- Area chips ---------- */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.area-chips li {
  margin: 0;
  background: var(--gray-100);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  transition: border-color var(--transition), background var(--transition);
}

@media (hover: hover) {
  .area-chips li:hover {
    border-color: color-mix(in srgb, var(--gold) 45%, var(--gray-200));
    background: var(--gold-muted);
  }
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 650;
  font-size: 0.85rem;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--off-white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: color-mix(in srgb, var(--white) 72%, transparent);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.88rem;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
  font-weight: 650;
}

.site-footer a {
  color: color-mix(in srgb, var(--white) 80%, transparent);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover { color: var(--gold); }

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin: 0 0 0.5rem; }

.footer-cta-link {
  display: inline-flex;
  margin: 0.65rem 0 0.35rem;
  padding: 0.55rem 1rem;
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 700;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.footer-cta-link:hover {
  background: var(--gold-hover);
  color: var(--navy-deep) !important;
}

.footer-disclaimer {
  border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--white) 48%, transparent);
}

.footer-bottom {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--white) 40%, transparent);
}

/* ---------- Mobile sticky form CTA ---------- */
.mobile-call-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: color-mix(in srgb, var(--navy-deep) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 28px color-mix(in srgb, #000 18%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
}

.mobile-call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem;
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--navy-deep);
  text-decoration: none;
  background: var(--gold);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.mobile-call-bar a:hover {
  background: var(--gold-hover);
  color: var(--navy-deep);
}

body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 1.5rem; }

.section-intro {
  max-width: 40em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.gold-rule {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 0 1.25rem;
  border: none;
  border-radius: var(--radius-full);
}

/* ---------- Social proof (honest / illustrative) ---------- */
.proof {
  background:
    radial-gradient(ellipse 70% 80% at 10% 20%, color-mix(in srgb, var(--gold) 10%, transparent), transparent),
    var(--off-white);
  border-block: 1px solid var(--gray-200);
}

.proof__intro {
  max-width: 38em;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.proof-stats {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.proof-stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.proof-stat__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.proof-stat__value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.proof-stat__note {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.proof-states {
  margin-bottom: 2rem;
}

.proof-states__title {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.proof-states__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.proof-states__list li {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.75rem;
}

.proof-quotes {
  display: grid;
  gap: 1rem;
}

.proof-quote {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.proof-quote__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold-muted);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.75rem;
}

.proof-quote p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.proof-quote__meta {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.proof-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  max-width: 48em;
  line-height: 1.5;
}

.avatar-stack {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.avatar-stack__faces {
  display: flex;
}

.avatar-stack__face {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -10px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

.avatar-stack__faces .avatar-stack__face:first-child {
  margin-left: 0;
}

.avatar-stack__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.avatar-stack__text strong {
  color: var(--navy);
  display: block;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .proof-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-quotes {
    grid-template-columns: 1fr 1fr;
  }
}

.how-it-works {
  display: grid;
  gap: 1rem;
}

.how-it-works__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.how-it-works__num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  :root { --header-h: 76px; }

  .logo {
    flex: 0 0 auto;
  }

  .logo__img {
    width: 42px;
    height: 42px;
  }

  .logo__sub {
    display: block;
  }

  .logo__mark {
    font-size: 1.02rem;
  }

  .nav-toggle { display: none !important; }

  .site-nav {
    display: block !important;
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    flex: 1;
    order: 2;
    z-index: auto;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    flex-wrap: wrap;
    padding-inline: 0;
  }

  .site-nav li + li { border: none; }

  .site-nav a {
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: color-mix(in srgb, var(--white) 8%, transparent);
  }

  .header-cta {
    display: inline-flex;
    order: 3;
    margin-right: 0;
    margin-left: 0.5rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 2.75rem;
    align-items: start;
  }

  .btn-group {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }

  .content-layout {
    grid-template-columns: 1.4fr 0.85fr;
    gap: 2.75rem;
  }

  .sticky-form {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .cta-band .btn-group {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }

  .mobile-call-bar { display: none; }
  body { padding-bottom: 0; }

  .how-it-works { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .site-nav a {
    font-size: 0.88rem;
    padding: 0.45rem 0.8rem;
  }
}

/* Print */
@media print {
  .site-header,
  .mobile-call-bar,
  .cta-band,
  .lead-form-card,
  .scroll-progress,
  .skip-link {
    display: none !important;
  }

  main { padding-top: 0; }
  body { padding-bottom: 0; color: #000; }
}
