/* style.css — BGCorp Wealth Structuring Microsite
   Branding: Deep indigo-purple (#3f37c9) on dark/light surfaces
   Typography: Jost (display) + Inter (body)
*/

/* ===== DESIGN TOKENS ===== */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Jost', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ===== LIGHT MODE (default) ===== */
:root, [data-theme="light"] {
  --color-bg:             #ffffff;
  --color-surface:        #f8f9fc;
  --color-surface-2:      #f1f3f8;
  --color-surface-offset: #eef0f5;
  --color-divider:        #dde1ea;
  --color-border:         #d0d5e0;

  --color-text:           #101828;
  --color-text-muted:     #475467;
  --color-text-faint:     #98a2b3;
  --color-text-inverse:   #ffffff;

  --color-primary:        #3f37c9;
  --color-primary-hover:  #322cb0;
  --color-primary-active: #282396;
  --color-primary-light:  #ededfc;

  --color-accent-gold:    #c8952e;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg:             #0d0f14;
  --color-surface:        #141720;
  --color-surface-2:      #1a1e2a;
  --color-surface-offset: #1e2232;
  --color-divider:        #262b3c;
  --color-border:         #323952;

  --color-text:           #e0e4ed;
  --color-text-muted:     #98a2b3;
  --color-text-faint:     #667085;
  --color-text-inverse:   #101828;

  --color-primary:        #6b63f6;
  --color-primary-hover:  #8078ff;
  --color-primary-active: #5148d4;
  --color-primary-light:  #1e1d3a;

  --color-accent-gold:    #d4a84b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0d0f14;
    --color-surface:        #141720;
    --color-surface-2:      #1a1e2a;
    --color-surface-offset: #1e2232;
    --color-divider:        #262b3c;
    --color-border:         #323952;
    --color-text:           #e0e4ed;
    --color-text-muted:     #98a2b3;
    --color-text-faint:     #667085;
    --color-text-inverse:   #101828;
    --color-primary:        #6b63f6;
    --color-primary-hover:  #8078ff;
    --color-primary-active: #5148d4;
    --color-primary-light:  #1e1d3a;
    --color-accent-gold:    #d4a84b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ===== GLOBAL STYLES ===== */

/* — Navigation — */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.nav-logo svg {
  width: 36px;
  height: 36px;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.nav-logo-tagline {
  font-size: 0.625rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-6) var(--space-4);
    gap: var(--space-4);
    box-shadow: var(--shadow-lg);
  }
}

/* — Theme Toggle — */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
}
.btn-ghost:hover {
  background: var(--color-surface);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* — Hero Sections — */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-surface);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(13, 15, 20, 0.92) 0%,
    rgba(13, 15, 20, 0.78) 50%,
    rgba(63, 55, 201, 0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-24) var(--space-4) var(--space-16);
  width: 100%;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #ffffff;
  max-width: 18ch;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero .hero-sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.78);
  max-width: 54ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero .btn-primary {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-sm);
}

/* Interior page heroes (smaller) */
.hero-interior {
  min-height: 50vh;
}
.hero-interior h1 {
  font-size: var(--text-xl);
  max-width: 24ch;
}

/* — Section Layout — */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-4);
}
.section-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.section-default {
  max-width: var(--content-default);
  margin-inline: auto;
}
.section-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
}

.section-header {
  margin-bottom: var(--space-10);
}
.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-top: var(--space-3);
}

/* Alt bg for alternating sections */
.section-alt {
  background: var(--color-surface);
}

/* — Body Copy — */
.prose {
  max-width: 65ch;
  line-height: 1.7;
  color: var(--color-text);
}
.prose p {
  margin-bottom: var(--space-6);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.prose ul, .prose ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}
.prose li {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}
.prose li::marker {
  color: var(--color-primary);
}

/* — Service Cards — */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.service-card-icon svg {
  width: 32px;
  height: 32px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  flex: 1;
}
.service-card a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}
.service-card a:hover {
  gap: var(--space-3);
}
.service-card a svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}
.service-card a:hover svg {
  transform: translateX(4px);
}

/* — FAQ Accordion — */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.faq-item {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item + .faq-item {
  margin-top: -1px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  background: var(--color-bg);
}
.faq-question:hover {
  background: var(--color-surface);
}
.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 800px;
}

/* — Content Grid (2 column with sidebar) — */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr 320px;
    gap: var(--space-12);
  }
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--space-16) + var(--space-8));
  align-self: start;
}
.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.sidebar-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.sidebar-card li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}
.sidebar-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

/* — Positioning Statement / CTA Block — */
.cta-block {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  text-align: center;
  color: #ffffff;
}
.cta-block h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.cta-block p {
  font-size: var(--text-base);
  opacity: 0.85;
  max-width: 55ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta-block .btn {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
}
.cta-block .btn:hover {
  background: rgba(255,255,255,0.9);
}

/* — Footer — */
.site-footer {
  background: #141617;
  color: rgba(255,255,255,0.65);
  padding: var(--space-16) var(--space-4) var(--space-8);
}
.footer-grid {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-brand .nav-logo {
  color: #ffffff;
}
.footer-brand p {
  font-size: var(--text-xs);
  line-height: 1.6;
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-col a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-col a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-top: var(--space-8);
  margin-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: var(--text-xs);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-social a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}
.footer-social svg {
  width: 18px;
  height: 18px;
}

/* — Core Services Section — */
.core-services {
  display: flex;
  flex-direction: column;
}
.core-service {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-divider);
}
.core-service:last-child {
  border-bottom: none;
}
.core-service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.core-service-icon svg {
  width: 32px;
  height: 32px;
}
.core-service h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.core-service p {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 72ch;
}

/* — Who is this for — */
.audience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0;
}
.audience-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.audience-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

/* — Breadcrumb — */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-6);
}
.breadcrumb ol,
.breadcrumb ul {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: rgba(255,255,255,0.9);
}
.breadcrumb span,
.breadcrumb li[aria-hidden] {
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
}
.breadcrumb li:last-child {
  color: rgba(255,255,255,0.5);
}

/* — Scroll Reveal — */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* — Two Column Feature Layout — */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

/* — Stat Highlight — */
.stat-highlight {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
}
.stat-highlight .stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}
.stat-highlight .stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 200;
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-2);
}

/* =======================================================
   OVERRIDES — Logo, Dark Header, Full Centre Alignment
   ======================================================= */

/* ── Logo image ── */
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}
.nav-logo-img--footer {
  height: 34px;
  opacity: 0.9;
}

/* ── Header always dark so logo is legible ── */
.site-header {
  background: #0d0f14 !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
.site-header .nav-links a           { color: rgba(255,255,255,0.6); }
.site-header .nav-links a:hover,
.site-header .nav-links a.active    { color: #ffffff; }
.site-header .theme-toggle          { color: rgba(255,255,255,0.6); }
.site-header .theme-toggle:hover    { color: #ffffff; background: rgba(255,255,255,0.08); }
.site-header .nav-toggle            { color: rgba(255,255,255,0.8); }
.site-header .nav-links.open        { background: #0d0f14; border-bottom-color: rgba(255,255,255,0.08); }

/* ── Hero — fully centred ── */
.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  margin-inline: auto;
  width: 100%;
}
.hero h1 {
  max-width: 22ch;
  margin-inline: auto;
  margin-left: auto;
  margin-right: auto;
}
.hero .hero-sub {
  max-width: 60ch;
  margin-inline: auto;
}
/* Breadcrumb centred on interior pages */
.breadcrumb {
  justify-content: center;
}
.breadcrumb ol {
  justify-content: center;
}

/* ── All section containers — centre their children ── */
.section-wide,
.section-default,
.section-narrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Section header ── */
.section-header {
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
}
.section-header .section-label {
  text-align: center;
}
.section-header .section-title {
  text-align: center;
}
.section-header .section-desc {
  margin-inline: auto;
  text-align: center;
}

/* ── Prose blocks — centre container, left-align reading text ── */
.prose {
  text-align: left;
  max-width: 72ch;
  margin-inline: auto;
  width: 100%;
}

/* ── Two-column layout — centre as single col, remove grid on service pages ── */
.two-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
}
@media (min-width: 900px) {
  .two-col {
    flex-direction: column; /* stay single col — all centred */
  }
}
.two-col > * {
  width: 100%;
  max-width: 72ch;
}

/* ── Service cards ── */
.service-cards {
  justify-items: center;
  width: 100%;
}
.service-card {
  text-align: center;
  align-items: center;
}
.service-card-icon {
  margin-inline: auto;
}
.service-card a {
  align-self: center;
}

/* ── Core services (service pages) ── */
.core-services {
  width: 100%;
}
.core-service {
  text-align: center;
  align-items: center;
  justify-items: center;
}
.core-service-icon {
  margin-inline: auto;
}
.core-service p {
  margin-inline: auto;
}

/* ── Stat highlights ── */
.stat-highlight {
  text-align: center;
  justify-content: center;
  width: 100%;
}

/* ── Audience list ── */
.audience-list {
  align-items: center;
  text-align: center;
  width: 100%;
}
.audience-list li {
  justify-content: center;
}

/* ── Content grid (sidebar layout on service pages) ──
   Make it single col, fully centred */
.content-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: var(--space-8);
}
.sidebar-card {
  position: static;
  max-width: 72ch;
  width: 100%;
  text-align: center;
}
.sidebar-card ul {
  align-items: center;
}
.sidebar-card li {
  text-align: center;
  padding-left: 0;
}
.sidebar-card li::before {
  display: none;
}

/* ── CTA block ── */
.cta-block {
  text-align: center;
}
.cta-block p {
  margin-inline: auto;
  max-width: 58ch;
}

/* ── FAQ ── */
.faq-list {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: left; /* questions stay left-aligned */
}

/* ── Footer ── */
.footer-brand p {
  text-align: left;
}

/* ── Illustration cards — keep hidden (no images per user request) ── */
.illustration-card {
  display: none !important;
}
/* Hero decor shapes kept (purely decorative bg, not images) */

/* =======================================================
   LEAD CAPTURE MODAL
   ======================================================= */

/* ── Overlay — hidden by default, full-viewport backdrop ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Modal card ── */
.modal {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.28),
    0 0 0 1px rgba(63,55,201,0.10);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

/* ── Modal header — dark branded strip ── */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  background: #0d0f14;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  overflow: hidden;
}
/* Subtle brand gradient in header */
.modal-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(63,55,201,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-1);
  position: relative;
  z-index: 1;
}
.modal-header p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* ── Close button ── */
.modal-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
  z-index: 1;
  margin-top: 2px;
}
.modal-close:hover {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

/* ── Modal body ── */
.modal-body {
  padding: var(--space-6) var(--space-8) var(--space-8);
}

/* ── Form layout ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-group label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #101828;
  letter-spacing: 0.01em;
}
.form-group .required {
  color: var(--color-primary);
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #101828;
  background: #f8f9fc;
  border: 1.5px solid #e2e5ee;
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aab8;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(63,55,201,0.12);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.55;
}

/* ── Error message ── */
.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  color: #991b1b;
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  margin-bottom: var(--space-5);
}

/* ── Submit row ── */
.form-submit {
  margin-top: var(--space-4);
}
.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: background 0.18s, transform 0.12s;
}
.form-submit .btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.form-submit .btn:active {
  transform: translateY(0);
}
.form-submit .btn.btn-loading {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ── Privacy note ── */
.form-privacy {
  font-size: 0.75rem;
  color: #98a2b3;
  text-align: center;
  margin-top: var(--space-3);
  line-height: 1.5;
}

/* ── Success state ── */
.form-success {
  padding: var(--space-12) var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3f37c9, #6a5aef);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: #101828;
  letter-spacing: -0.02em;
  margin: 0;
}
.form-success p {
  font-size: 0.9375rem;
  color: #475467;
  max-width: 38ch;
  margin: 0;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .modal-overlay {
    padding: var(--space-4);
    align-items: flex-end;
  }
  .modal {
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-header,
  .modal-body {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}
