/* PROJECT CPA — Modern dashboard-inspired (Firstbase-style, white theme) */

:root {
  --color-bg: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-soft: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-accent: #0f172a;
  --color-accent-hover: #1e293b;
  --color-focus: #0f172a;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --leading-tight: 1.15;
  --leading-snug: 1.4;
  --leading-normal: 1.55;

  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-20: 1.25rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --space-48: 3rem;
  --space-56: 3.5rem;
  --space-64: 4rem;
  --space-80: 5rem;
  --space-96: 6rem;
  --space-112: 7rem;
  --space-128: 8rem;

  --container-max: 72rem;
  --container-padding: 1.5rem;
  --container-padding-lg: 2.5rem;
  --header-h: 5rem;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.1), 0 8px 24px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-16);
  z-index: 100;
  padding: var(--space-8) var(--space-16);
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-16);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
@media (min-width: 768px) {
  .container {
    padding-left: var(--container-padding-lg);
    padding-right: var(--container-padding-lg);
  }
}

/* Header — clean, minimal */
.site-header {
  z-index: 50;
  height: var(--header-h);
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  position: relative;
}

/* Homepage only: let hero map show through header */
.has-hero-map .site-header {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Line under nav only — doesn’t stretch to edges (Weltivation-style) */
.header-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32rem;
  max-width: 90%;
  height: 1px;
  background: var(--color-border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}
.nav a:not(.nav-cta) {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:not(.nav-cta):hover {
  color: var(--color-text);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.logo:hover {
  opacity: 0.85;
}

/* Fixed logo (desktop): stays visible with the CTA when scrolling */
.logo-float {
  display: none;
}
@media (min-width: 768px) {
  .logo-float {
    display: inline-flex;
    position: fixed;
    top: var(--space-16);
    left: max(var(--container-padding-lg), calc((100vw - var(--container-max)) / 2 + var(--container-padding-lg)));
    z-index: 60;
  }
  .logo-float .logo-img {
    height: 3rem;
  }
  .site-header .header-inner .logo {
    visibility: hidden;
  }
}
.logo-img {
  display: block;
  width: auto;
  object-fit: contain;
}
.site-header .logo-img {
  height: 3rem;
}
@media (min-width: 768px) {
  .site-header .logo-img {
    height: 3.5rem;
  }
}
/* Footer logo size is set in .footer-col-brand .logo-img */

.nav {
  display: none;
  align-items: center;
  gap: var(--space-32);
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

/* When floating CTA is fixed top-right, keep links clear of it */
@media (min-width: 768px) {
  .nav {
    padding-right: 220px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.btn-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-hero {
  padding: var(--space-16) var(--space-24);
  font-size: var(--text-base);
  white-space: nowrap;
}
.nav-cta {
  white-space: nowrap;
  padding: 0.65rem 1.15rem;
  font-size: var(--text-sm);
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  gap: 0.6rem;
  position: static;
}
.nav-cta:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(203, 213, 225, 0.95);
}
.nav-cta:active {
  transform: translateY(1px);
}
.nav-cta .cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0f172a;
  opacity: 0.9;
  flex: 0 0 auto;
}

/* Floating CTA (shows after scroll, desktop only) */
.nav-cta-float {
  display: none;
}
@media (min-width: 768px) {
  /* Keep one CTA on desktop: use the floating version */
  .nav-cta-inline {
    display: none;
  }
  .nav-cta-float {
    display: inline-flex;
    position: fixed;
    /* Match the original header CTA offset */
    top: var(--space-16);
    right: max(var(--container-padding-lg), calc((100vw - var(--container-max)) / 2 + var(--container-padding-lg)));
    z-index: 60;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.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);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 40;
  background: var(--color-bg);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}
.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav-mobile a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

/* Hero — Firstbase-style centered headline + dashboard preview */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--space-80);
  padding-bottom: var(--space-64);
}

/* Homepage: map extends behind header; keep hero in normal flow */
.has-hero-map .hero { }
.hero-map {
  position: absolute;
  top: calc(-1 * var(--header-h));
  left: 0;
  right: 0;
  bottom: -40px;
  /* Fallback if token isn’t set yet */
  background-image: url("../public/costa-mesa-map-faint.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
  z-index: -2;
}
.hero-map.is-live {
  opacity: 1;
  filter: none;
  transition: opacity 900ms ease;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
  pointer-events: none;
  z-index: -1;
}
@media (min-width: 768px) {
  .hero {
    padding-top: var(--space-96);
    padding-bottom: var(--space-80);
  }
  .has-hero-map .hero { }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-preview-wrap {
  position: relative;
  z-index: 1;
}

/* Hero map uses pointer-events:none (background-only). */

.hero-map-card {
  position: absolute;
  right: var(--space-24);
  top: calc(var(--header-h) + var(--space-40));
  z-index: 2;
  width: min(240px, calc(100vw - 2 * var(--container-padding)));
  padding: var(--space-16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}
@media (min-width: 900px) {
  .hero-map-card {
    right: var(--space-40);
  }
}
.hero-map-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-map-card-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}
.hero-map-card-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-12);
  font-size: 0.8125rem;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.hero-map-card-muted {
  color: var(--color-text-muted);
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-24);
  padding: var(--space-8) var(--space-16);
  background: var(--color-bg-muted);
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.04em;
  margin: 0 0 var(--space-24);
  color: var(--color-text);
}

.hero-desc {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-32);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  justify-content: center;
  margin-bottom: var(--space-32);
}

.hero-proof {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  margin: 0;
}

/* Dashboard preview card — product mock (light theme) */
.hero-preview-wrap {
  margin-top: var(--space-64);
}
@media (min-width: 768px) {
  .hero-preview-wrap {
    margin-top: var(--space-80);
  }
}

.dashboard-preview {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.dashboard-preview-bar {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-16) var(--space-24);
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}

.dashboard-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-strong);
}
.dashboard-preview-dot:first-of-type { background: #f87171; }
.dashboard-preview-dot:nth-of-type(2) { background: #fbbf24; }
.dashboard-preview-dot:nth-of-type(3) { background: #4ade80; }

.dashboard-preview-title {
  margin-left: var(--space-16);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.dashboard-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
}
@media (min-width: 640px) {
  .dashboard-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-20);
  background: var(--color-bg);
}
.dashboard-card:nth-child(odd) {
  background: var(--color-bg-subtle);
}

.dashboard-card-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.dashboard-card-status {
  font-size: var(--text-xs);
  color: var(--color-text-soft);
}
.quarter-roll {
  display: inline-block;
  min-width: 4.5em;
  text-align: left;
}

/* Services — content cards with images */
.services-section {
  position: relative;
  padding-top: var(--space-112);
  padding-bottom: var(--space-112);
  background: #ffffff;
}
.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../public/6mcf62RlDfRfU61Yg5vb2pefpi4.png");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.028;
  pointer-events: none;
}
.services-section .container {
  position: relative;
  z-index: 1;
}

.section-heading {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-12);
  color: var(--color-text);
}
.section-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-48);
}

.content-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}
@media (min-width: 640px) {
  .content-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-32);
  }
}
@media (min-width: 900px) {
  .content-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-32);
  }
}

.content-card {
  background: transparent;
  transition: transform 0.2s ease;
}
.content-card:hover {
  transform: translateY(-2px);
}

.content-card-inner {
  display: block;
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.content-card-media {
  overflow: hidden;
  background: var(--color-bg-muted);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease;
}
.content-card:hover .content-card-media {
  box-shadow: var(--shadow-lg);
}
.content-card-media img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.content-card-body {
  padding: var(--space-16) 0 0;
  background: transparent;
}

.content-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-8);
  color: var(--color-text);
}
.content-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.2s ease;
}
.content-card-inner:hover .content-card-link {
  color: var(--color-accent-hover);
}

.content-card--cta .content-card-link {
  font-size: var(--text-base);
  display: inline-block;
  margin-top: var(--space-4);
}

/* How it works */
.process-section {
  padding-top: var(--space-96);
  padding-bottom: var(--space-96);
  background: var(--color-bg);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-48);
}
@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-64);
  }
}

.process-step {
  position: relative;
  padding-left: var(--space-40);
  margin-left: var(--space-24);
  border-left: 2px solid var(--color-border);
  min-width: 0;
}
.process-step-num {
  position: absolute;
  left: calc(-1 * var(--space-40) - 2px);
  top: 0;
  width: var(--space-32);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-soft);
  letter-spacing: 0.02em;
  text-align: right;
}
.process-step-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-12);
  color: var(--color-text);
}
.process-step-desc {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  margin: 0;
}

/* FAQs */
.faq-section {
  padding-top: var(--space-80);
  padding-bottom: var(--space-96);
  background: var(--color-bg-subtle);
}

.faq-grid {
  margin-top: var(--space-40);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}
@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.faq-item {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.faq-toggle {
  width: 100%;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.faq-question {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-text);
}

.faq-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(248, 250, 252, 0.9);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-text-soft);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.faq-icon::before {
  width: 10px;
  height: 2px;
}
.faq-icon::after {
  width: 2px;
  height: 10px;
}

.faq-item.is-open .faq-icon {
  background-color: var(--color-text);
  border-color: var(--color-text);
  transform: rotate(90deg);
}
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background-color: #ffffff;
}
.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: scaleY(0);
}

.faq-panel {
  padding: 0 var(--space-24) var(--space-20);
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}
.faq-item.is-open .faq-panel {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

.faq-answer {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

/* FAQ page layout */
.faq-page.section {
  padding-top: var(--space-80);
  padding-bottom: var(--space-96);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.faq-page.section::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(closest-side at 20% 30%, rgba(15, 23, 42, 0.06), transparent 70%),
    radial-gradient(closest-side at 70% 25%, rgba(15, 23, 42, 0.04), transparent 72%),
    radial-gradient(closest-side at 45% 60%, rgba(15, 23, 42, 0.03), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.faq-page.section > .container {
  position: relative;
  z-index: 1;
}

.faq-page-header {
  max-width: 44rem;
  margin-bottom: var(--space-40);
}

.faq-search-wrap {
  margin-bottom: var(--space-32);
}

.faq-search-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: var(--space-8);
}

.faq-search-input-wrap {
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: var(--space-16) var(--space-20);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-strong);
  font-size: var(--text-sm);
  line-height: 1.4;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background-color: #ffffff;
}
.faq-search-input::placeholder {
  color: var(--color-text-soft);
}
.faq-search-input:focus-visible {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 1px var(--color-focus), 0 12px 30px rgba(15, 23, 42, 0.08);
}

.faq-search-hint {
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: var(--color-text-soft);
}

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-32);
}

.faq-chip {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.9rem;
  background: #ffffff;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.faq-chip.is-active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.faq-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr);
  gap: var(--space-32);
}
@media (min-width: 960px) {
  .faq-page-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.05fr);
    align-items: flex-start;
  }
}

.faq-section-page .faq-grid {
  margin-top: 0;
}

/* On the FAQ page, keep the background consistent (no "different white" slab) */
.faq-section-page {
  background: transparent;
  padding: 0;
}

.faq-aside {
  display: none;
}
@media (min-width: 960px) {
  .faq-aside {
    display: block;
  }
}

.faq-aside-card {
  position: sticky;
  top: calc(var(--header-h) + var(--space-32));
  padding: var(--space-32);
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.faq-aside-heading {
  margin: 0 0 var(--space-12);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.faq-aside-text {
  margin: 0 0 var(--space-16);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Standalone pages (About, Contact, Book a consultation) */
.page-main {
  padding-top: var(--space-80);
  padding-bottom: var(--space-96);
}
.page-main .section {
  padding-top: 0;
  padding-bottom: 0;
}
.consultation-page .cta-card {
  margin-top: var(--space-24);
}

/* CTA section — card with form (used on index and book-a-consultation page) */
.cta-section {
  padding-top: var(--space-96);
  padding-bottom: var(--space-96);
  background: var(--color-bg-subtle);
}

.cta-card {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .cta-card {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-card-content {
  padding: var(--space-40);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-12);
  color: var(--color-text);
}
.cta-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-24);
  line-height: var(--leading-snug);
}
.cta-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.cta-trust li {
  position: relative;
  padding-left: var(--space-20);
  margin-bottom: var(--space-8);
}
.cta-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-accent);
}

.cta-form {
  padding: var(--space-40);
  background: var(--color-bg-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.cta-form label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.cta-input {
  padding: var(--space-14) var(--space-18);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.cta-input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.cta-input::placeholder {
  color: var(--color-text-soft);
}
.cta-textarea {
  resize: vertical;
  min-height: 88px;
}

/* About section — minimal anchor above footer (main content moved into footer) */
.about-section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-48);
  background: var(--color-bg-subtle);
}
.about-section-anchor {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* About page (full content) */
.about-page .about-lead {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-16);
}
.about-page .about-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-32);
}
.about-page .about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}
.about-page .about-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.about-page .about-stat-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.about-page .about-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.about-page .about-address {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.about-page .about-address strong {
  color: var(--color-text);
}

/* Footer — dark, professional, tall */
.site-footer {
  position: relative;
  background: #1e293b;
  color: #e2e8f0;
  padding-top: var(--space-80);
  padding-bottom: 0;
  overflow: hidden;
  border-top-left-radius: var(--radius-2xl);
  border-top-right-radius: var(--radius-2xl);
}

.footer-hero,
.footer-top,
.footer-bottom,
.footer-legal-wrap {
  position: relative;
  z-index: 1;
}

.footer-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(160deg, rgba(255,255,255,0.05) 0%, transparent 55%),
    url("../public/6mcf62RlDfRfU61Yg5vb2pefpi4.png");
  background-repeat: no-repeat, repeat;
  background-size: cover, 256px 256px;
  background-position: center, 0 0;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* Footer hero: big logo + partner message + Speak with an expert */
.footer-hero {
  display: grid;
  gap: var(--space-48);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-64);
}
@media (min-width: 768px) {
  .footer-hero {
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-56);
    align-items: start;
    padding-bottom: var(--space-72);
  }
}

.footer-hero-brand {
  text-align: left;
}

.footer-hero-brand .logo-footer-large {
  margin-left: -56px;
}

.footer-hero-brand .logo-footer-large .logo-img {
  height: 4.5rem;
  width: auto;
  max-width: 340px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  display: block;
}
@media (min-width: 768px) {
  .footer-hero-brand .logo-footer-large .logo-img {
    height: 5.75rem;
    max-width: 420px;
  }
}
.footer-hero-brand .logo-footer:hover .logo-img {
  opacity: 1;
}

.footer-hero-brand .footer-hero-heading {
  margin-top: var(--space-20);
}

.footer-hero-heading {
  font-size: clamp(var(--text-2xl), 2.5vw, var(--text-3xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 var(--space-20);
  line-height: 1.2;
}
.footer-hero-body {
  font-size: var(--text-base);
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}
.footer-hero-cta-text {
  font-size: var(--text-sm);
  color: #94a3b8;
  margin: 0 0 var(--space-16);
  line-height: 1.5;
}
.footer-hero-cta .footer-col-text {
  margin-bottom: var(--space-8);
}

.footer-hero-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-24);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.footer-hero-cta .footer-col-title {
  margin-bottom: var(--space-12);
}
.footer-hero-cta .footer-col-title {
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.footer-hero-cta .footer-col-text,
.footer-hero-cta .footer-hero-cta-text {
  font-size: 0.8125rem;
}
@media (min-width: 768px) {
  .footer-hero-cta {
    max-width: 360px;
    justify-self: end;
  }
}
.footer-map-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-16);
  padding: 0.55rem 0.95rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-footer-cta:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.footer-top {
  display: grid;
  gap: var(--space-40);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-56);
}
@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-40);
    align-items: start;
  }
}

.footer-col-links {
  line-height: 1.8;
}

.footer-col-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 var(--space-16);
  letter-spacing: -0.02em;
}

.footer-col-text,
.footer-col-links {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.footer-col-links a,
.footer-col-text a {
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-col-links a:hover,
.footer-col-text a:hover {
  color: #ffffff;
}

.footer-address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
}

.footer-address a,
.footer-address a:visited,
.footer-map-link,
.footer-map-link:visited {
  color: #94a3b8;
}
.footer-address a:hover,
.footer-map-link:hover {
  color: #ffffff;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.footer-bottom {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
  position: relative;
  z-index: 1;
}
.footer-copy {
  font-size: var(--text-sm);
  color: #94a3b8;
  margin: 0;
}

.footer-legal-wrap {
  background: rgba(0,0,0,0.25);
  padding: var(--space-32) 0;
  position: relative;
  z-index: 1;
}
.footer-legal {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
  max-width: 72rem;
}
