/* ==========================================================================
   CurbPoint Mobile Auto Care — Design System & Site Styles
   ========================================================================== */

/* -----------------------------------------
   1. Design Tokens
----------------------------------------- */
:root {
  /* Color: ink (near-black navy) for primary text & dark surfaces */
  --ink-950: #0e1116;
  --ink-900: #12151c;
  --ink-800: #1b202b;
  --ink-700: #262d3b;
  --ink-600: #3a4256;

  /* Color: paper (warm neutral) for backgrounds */
  --paper-0: #ffffff;
  --paper-50: #faf9f6;
  --paper-100: #f3f1eb;
  --paper-200: #e8e5db;

  /* Color: line / border */
  --line: #e2ded3;
  --line-strong: #cfc9b8;

  /* Color: text */
  --text-primary: #1b1e27;
  --text-muted: #565b66;
  --text-faint: #7b808c;
  --text-on-dark: #f4f2ec;
  --text-on-dark-muted: #b9bdc9;

  /* Color: accent (cobalt blue — CTAs, energy) */
  /* accent-500 is tuned so white button text clears WCAG AA (4.5:1) against it
     — verified at ~6.9:1. Matches the brand artwork's pin/badge blue. */
  --accent-500: #1652c4;
  --accent-600: #123f94;
  --accent-700: #0d2f70;
  --accent-100: #e6eefc;
  --accent-contrast: #ffffff;

  /* Color: steel (secondary — icons, badges, links on dark) */
  --steel-500: #3e5c76;
  --steel-600: #2e4459;
  --steel-100: #e7edf2;

  /* Color: signal (success used sparingly) */
  --success-600: #2f7a4f;
  --success-100: #e6f3ea;

  /* Typography */
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(18, 21, 28, 0.06), 0 1px 1px rgba(18, 21, 28, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(18, 21, 28, 0.18);
  --shadow-lg: 0 24px 48px -16px rgba(18, 21, 28, 0.28);

  /* Layout */
  --container-max: 1200px;
  --header-height: 76px;
  --sticky-cta-height: 64px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
}

/* -----------------------------------------
   2. Reset & base
----------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

@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;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--paper-50);
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--sticky-cta-height);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

/* Visible focus states everywhere (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--steel-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink-900);
  color: var(--text-on-dark);
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* -----------------------------------------
   3. Typography scale
----------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent-500);
  border-radius: 2px;
}

h1, .h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.6rem);
}

h2, .h2 {
  font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);
}

h3, .h3 {
  font-size: clamp(1.25rem, 1.13rem + 0.5vw, 1.5rem);
}

h4, .h4 {
  font-size: 1.125rem;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  margin-top: var(--space-3);
}

.section-heading p {
  margin-top: var(--space-4);
}

/* -----------------------------------------
   4. Layout helpers
----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 640px) {
  .container {
    padding-inline: var(--space-6);
  }
}

.section {
  padding-block: var(--space-9);
}

@media (max-width: 640px) {
  .section {
    padding-block: var(--space-8);
  }
}

.section-alt {
  background: var(--paper-100);
}

.section-ink {
  background: var(--ink-900);
  color: var(--text-on-dark);
}

.section-ink h2,
.section-ink h3 {
  color: var(--text-on-dark);
}

.section-ink .lede {
  color: var(--text-on-dark-muted);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

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

/* -----------------------------------------
   5. Buttons
----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
  white-space: nowrap;
  min-height: 48px;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

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

.btn-primary {
  background: var(--accent-500);
  color: var(--accent-contrast);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 10px 24px -10px rgba(22, 82, 196, 0.55);
}

.btn-primary:hover {
  background: var(--accent-600);
}

.btn-dark {
  background: var(--ink-900);
  color: var(--text-on-dark);
}

.btn-dark:hover {
  background: var(--ink-800);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-900);
}

.btn-ghost:hover {
  border-color: var(--ink-900);
  background: var(--paper-100);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(244, 242, 236, 0.35);
  color: var(--text-on-dark);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(244, 242, 236, 0.6);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
  min-height: 40px;
}

/* -----------------------------------------
   6. Header / Navigation
----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink-900);
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.main-nav {
  display: none;
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
  }

  .main-nav a {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    position: relative;
    padding: var(--space-2) 0;
  }

  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent-500);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-base) var(--ease-out);
  }

  .main-nav a:hover::after,
  .main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .main-nav a[aria-current="page"] {
    color: var(--accent-600);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-call {
  display: none;
}

@media (min-width: 640px) {
  .header-call {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink-900);
    font-size: 0.9375rem;
  }

  .header-call svg {
    width: 18px;
    height: 18px;
    color: var(--accent-500);
  }
}

.header-quote-btn {
  display: none;
}

@media (min-width: 960px) {
  .header-quote-btn {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--paper-0);
  z-index: 99;
  padding: var(--space-6) var(--space-5) var(--space-8);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

@media (min-width: 960px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a[aria-current="page"] {
  color: var(--accent-600);
}

.mobile-nav-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* -----------------------------------------
   7. Sticky mobile CTA bar
----------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--ink-900);
  border-top: 1px solid var(--ink-700);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

.sticky-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: var(--sticky-cta-height);
  color: var(--text-on-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  border-right: 1px solid var(--ink-700);
}

.sticky-cta a:last-child {
  border-right: none;
  background: var(--accent-500);
}

.sticky-cta svg {
  width: 20px;
  height: 20px;
}

.sticky-cta a:active {
  background: var(--ink-800);
}

/* -----------------------------------------
   8. Hero
----------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--text-on-dark);
  overflow: hidden;
  padding-block: var(--space-8) var(--space-9);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(22, 82, 196, 0.28), transparent 60%),
    radial-gradient(45% 40% at 8% 95%, rgba(62, 92, 118, 0.35), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 980px) {
  .hero {
    padding-block: var(--space-9) var(--space-10);
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-7);
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 242, 236, 0.14);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
}

.hero-badge svg {
  width: 15px;
  height: 15px;
  color: var(--accent-500);
  flex-shrink: 0;
}

.hero h1 {
  color: var(--paper-0);
  margin-top: var(--space-4);
}

.hero .lede {
  margin-top: var(--space-5);
  max-width: 46ch;
  color: var(--text-on-dark-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.hero-phone-note {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
}

.hero-phone-note a {
  font-weight: 700;
  color: var(--paper-0);
  text-decoration: underline;
  text-decoration-color: var(--accent-500);
  text-underline-offset: 3px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(244, 242, 236, 0.12);
  box-shadow: var(--shadow-lg);
}

/* -----------------------------------------
   9. Illustration / image placeholder frames
----------------------------------------- */
.art-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(155deg, var(--steel-600), var(--ink-800));
}

.art-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-frame svg.art-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.art-frame.card {
  aspect-ratio: var(--ar, 5 / 4);
  border-radius: var(--radius-md);
}

.photo-note {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
  background: rgba(14, 17, 22, 0.55);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 242, 236, 0.2);
}

/* -----------------------------------------
   10. Cards
----------------------------------------- */
.card {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

a.card:hover,
.card.is-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-100);
  color: var(--accent-600);
  margin-bottom: var(--space-4);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-icon.steel {
  background: var(--steel-100);
  color: var(--steel-600);
}

.card h3 {
  margin-bottom: var(--space-2);
  font-size: 1.1875rem;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink-900);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease-out);
}

a.card:hover .card-link svg {
  transform: translateX(3px);
}

/* Services grid */
.services-grid {
  grid-template-columns: repeat(1, 1fr);
}

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

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

/* -----------------------------------------
   11. Process steps
----------------------------------------- */
.steps {
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding-top: var(--space-7);
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--accent-contrast);
  background: var(--accent-500);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
}

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

@media (min-width: 760px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 56px;
    right: -24px;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px);
  }
}

/* -----------------------------------------
   12. Why choose us / feature list
----------------------------------------- */
.feature-list {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature {
  display: flex;
  gap: var(--space-4);
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(22, 82, 196, 0.14);
  color: var(--accent-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 1.0625rem;
  color: var(--paper-0);
  margin-bottom: 4px;
}

.feature p {
  font-size: 0.9375rem;
  color: var(--text-on-dark-muted);
}

/* -----------------------------------------
   13. Badges / trust strip
----------------------------------------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  justify-content: center;
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-800);
}

.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent-500);
  flex-shrink: 0;
}

/* -----------------------------------------
   14. Service area
----------------------------------------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.area-chip {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--paper-0);
  border: 1px solid var(--line);
  color: var(--text-primary);
}

.map-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  background: var(--paper-100);
}

@media (min-width: 760px) {
  .map-frame {
    aspect-ratio: 16/10;
  }
}

/* -----------------------------------------
   15. Testimonials
----------------------------------------- */
.testimonial-placeholder {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  background: var(--paper-0);
}

.testimonial-placeholder .card-icon {
  margin-inline: auto;
}

.testimonial-placeholder h3 {
  margin-bottom: var(--space-3);
}

.testimonial-placeholder p {
  color: var(--text-muted);
  max-width: 46ch;
  margin-inline: auto;
}

.testimonial-grid {
  grid-template-columns: 1fr;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--accent-500);
  margin-bottom: var(--space-4);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text-primary);
  flex-grow: 1;
}

.testimonial-attribution {
  margin-top: var(--space-5);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* -----------------------------------------
   16. FAQ accordion
----------------------------------------- */
.faq-list {
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  padding: var(--space-5) var(--space-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink-900);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.faq-question .faq-icon svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}

.faq-item[data-open="true"] .faq-icon {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.faq-answer-inner {
  padding: 0 var(--space-2) var(--space-5);
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 68ch;
}

/* -----------------------------------------
   17. CTA band
----------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-600), var(--accent-500));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin-top: var(--space-3);
}

.cta-band .hero-ctas {
  justify-content: center;
  margin-top: var(--space-6);
}

.cta-band .btn-primary {
  background: var(--ink-900);
}

.cta-band .btn-primary:hover {
  background: var(--ink-800);
}

/* -----------------------------------------
   18. Forms
----------------------------------------- */
.form-card {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

@media (min-width: 640px) {
  .form-card {
    padding: var(--space-8);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .span-2 {
    grid-column: span 2;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink-900);
  display: flex;
  gap: 4px;
}

fieldset.field {
  border: none;
  margin: 0;
  padding: 0;
}

fieldset.field legend {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink-900);
  padding: 0;
  margin-bottom: var(--space-2);
  width: 100%;
}

.field .optional-tag {
  font-weight: 500;
  color: var(--text-faint);
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: var(--paper-0);
  color: var(--text-primary);
  width: 100%;
  min-height: 48px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--steel-500);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px var(--accent-100);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23565B66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.field-error {
  font-size: 0.8125rem;
  color: var(--accent-700);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 5px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--accent-700);
}

.field.has-error .field-error {
  display: flex;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: pointer;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--dur-fast) var(--ease-out);
}

.radio-pill input:checked + span {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}

.radio-pill input:focus-visible + span {
  outline: 3px solid var(--steel-500);
  outline-offset: 2px;
}

.file-drop {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  position: relative;
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: var(--accent-500);
  background: var(--accent-100);
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  min-height: 0;
}

.file-drop svg {
  width: 28px;
  height: 28px;
  color: var(--steel-500);
  margin-inline: auto;
  margin-bottom: var(--space-2);
}

.file-drop-text {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-900);
}

.file-drop-hint {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: 2px;
}

.file-list {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  background: var(--paper-100);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}

.file-list-item button {
  color: var(--accent-700);
  font-weight: 700;
}

.form-footnote {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: var(--space-4);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
}

.form-alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-alert.success {
  background: var(--success-100);
  color: var(--success-600);
}

.form-alert.error {
  background: var(--accent-100);
  color: var(--accent-700);
}

.form-alert.is-visible {
  display: flex;
}

/* -----------------------------------------
   19. Sidebar / info panel (contact page)
----------------------------------------- */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.info-card {
  background: var(--ink-900);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.info-card h3 {
  color: var(--paper-0);
  font-size: 1.0625rem;
  margin-bottom: var(--space-4);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid rgba(244, 242, 236, 0.12);
}

.info-row:first-of-type {
  border-top: none;
}

.info-row svg {
  width: 20px;
  height: 20px;
  color: var(--accent-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-row a,
.info-row span {
  font-size: 0.9375rem;
  color: var(--text-on-dark-muted);
}

.info-row a {
  font-weight: 700;
  color: var(--paper-0);
}

/* -----------------------------------------
   20. Footer
----------------------------------------- */
.site-footer {
  background: var(--ink-950);
  color: var(--text-on-dark-muted);
  padding-block: var(--space-8) var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  }
}

.footer-brand .brand {
  color: var(--paper-0);
}

.footer-brand p {
  margin-top: var(--space-4);
  font-size: 0.9375rem;
  max-width: 32ch;
}

.footer-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: 0.9375rem;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--paper-0);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.9375rem;
  margin-bottom: var(--space-3);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--accent-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(244, 242, 236, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-5);
}

/* -----------------------------------------
   21. Page hero (interior pages)
----------------------------------------- */
.page-hero {
  background: var(--ink-900);
  color: var(--text-on-dark);
  padding-block: var(--space-8) var(--space-7);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 90% 0%, rgba(22, 82, 196, 0.22), transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--paper-0);
  position: relative;
}

.page-hero .lede {
  position: relative;
  margin-top: var(--space-4);
  max-width: 60ch;
}

.breadcrumbs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-5);
}

.breadcrumbs a:hover {
  color: var(--paper-0);
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* -----------------------------------------
   22. Misc components
----------------------------------------- */
.divider {
  height: 1px;
  background: var(--line);
  border: none;
}

.two-col {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .two-col.reverse {
    direction: rtl;
  }
  .two-col.reverse > * {
    direction: ltr;
  }
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
}

.checklist svg {
  width: 20px;
  height: 20px;
  color: var(--success-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--steel-100);
  color: var(--steel-600);
}

.callout {
  display: flex;
  gap: var(--space-4);
  background: var(--accent-100);
  border: 1px solid rgba(22, 82, 196, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.callout svg {
  width: 24px;
  height: 24px;
  color: var(--accent-600);
  flex-shrink: 0;
}

.callout p {
  font-size: 0.9375rem;
  color: var(--ink-800);
}

.callout strong {
  color: var(--ink-900);
}

.related-services {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.not-mobile-list {
  background: var(--paper-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-5);
}

.payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding-inline: 14px;
  border-radius: var(--radius-sm);
  background: var(--paper-0);
  border: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* -----------------------------------------
   23. Animations (subtle, on-scroll reveal)
----------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* -----------------------------------------
   24. Utility classes
----------------------------------------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.max-w-prose {
  max-width: 68ch;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
