@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,600;0,700;1,400&family=IBM+Plex+Serif:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

:root {
  --steel: #334155;
  --electric: #0EA5E9;
  --fog: #F8FAFC;
  --charcoal: #18181B;
  --grid-bg: #EEF2F7;
  --font-head: 'IBM Plex Serif', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --max-width: 1200px;
  --radius: 6px;
  --transition: 0.25s ease;
}

html { 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;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.surface-dark { background-color: var(--steel); color: var(--fog); }
.surface-light { background-color: var(--fog); color: var(--charcoal); }
.surface-accent { background-color: var(--electric); color: var(--charcoal); }
.surface-grid {
  background-color: var(--grid-bg);
  color: var(--steel);
  background-image:
    linear-gradient(rgba(51, 65, 85, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  position: sticky;
  background-color: var(--fog);
  color: var(--charcoal);
  box-shadow: 0 2px 12px rgba(24, 24, 27, 0.1);
}
.site-header.is-scrolled .logo span { color: var(--electric); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--electric); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font: inherit;
  border-radius: var(--radius);
}
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; }
.main-nav a { text-decoration: none; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 1rem;
    background: inherit;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .site-header.is-scrolled .main-nav { background: var(--fog); }
}

/* Pattern D — Stacked Layered Hero */
.hero-stacked {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
}
.hero-stacked__top {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 4rem;
}
.hero-stacked__top .container {
  position: relative;
  z-index: 2;
}
.hero-stacked__label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 1.25rem;
}
.hero-stacked h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 1.25rem;
  max-width: 22ch;
}
.hero-sub {
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 2rem;
  opacity: 0.92;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-trust {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.hero-stacked__bottom {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}
.hero-stacked__strip {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}
.hero-stacked__thumb-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: 100%;
  min-height: 240px;
}
.hero-stacked__thumb-grid img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.hero-stacked__trust-card {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: var(--fog);
  color: var(--charcoal);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(24, 24, 27, 0.18);
  border-left: 4px solid var(--electric);
  text-align: center;
  min-width: min(90%, 320px);
}
.hero-stacked__trust-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--steel);
  margin-bottom: 0.35rem;
}
.hero-stacked__trust-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--steel);
}

@media (max-width: 768px) {
  .hero-stacked { min-height: 75vh; }
  .hero-stacked__top { flex: 0 0 50%; padding: 2rem 0 3.5rem; }
  .hero-stacked__bottom { flex: 0 0 50%; }
  .hero-stacked__strip { display: none; }
  .hero-stacked__thumb-grid { display: grid; }
  .hero-stacked__trust-card {
    min-width: min(88%, 280px);
    padding: 1.25rem 1.5rem;
  }
  .hero-stacked__trust-card strong { font-size: 2rem; }
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-primary { background: var(--electric); color: var(--charcoal); border-color: var(--electric); }
.btn-primary:hover { background: #0284c7; border-color: #0284c7; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--fog); border-color: var(--fog); }
.btn-secondary:hover { background: rgba(248, 250, 252, 0.1); text-decoration: none; }
.surface-light .btn-secondary { color: var(--steel); border-color: var(--steel); }
.surface-light .btn-secondary:hover { background: rgba(51, 65, 85, 0.08); }
.surface-accent .btn-secondary { color: var(--charcoal); border-color: var(--charcoal); }

.section { padding: 4.5rem 0; }
.section-compact { padding: 3rem 0; }
.section-head { margin-bottom: 2.5rem; max-width: 640px; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.segment-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--electric);
  margin-bottom: 0.5rem;
}
.surface-dark .segment-label { color: var(--electric); }
.surface-accent .segment-label { color: var(--charcoal); }
.surface-grid .segment-label { color: var(--steel); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.stat-block {
  padding: 1.5rem;
  border-top: 3px solid var(--electric);
}
.stat-block strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.layer-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(51, 65, 85, 0.15);
}
.layer-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 0.65rem; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-grid.reverse { direction: ltr; }
}

.content-img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.content-img-caption { font-size: 0.8rem; margin-top: 0.5rem; opacity: 0.7; font-style: italic; }

.program-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.program-card { padding: 1.75rem; border-radius: var(--radius); }
.program-card h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.6rem; }

.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid rgba(51, 65, 85, 0.15); padding: 1.25rem 0; }
.faq-item h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 0.6rem; }

.form-surface { padding: 2rem; border-radius: var(--radius); max-width: 560px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.4rem; font-size: 0.85rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.25);
  border-radius: var(--radius);
  font: inherit; background: #fff; color: var(--charcoal);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9rem; }
.form-check input { margin-top: 0.25rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.legal-prose h2 { font-family: var(--font-head); font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.legal-prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.legal-prose p, .legal-prose li { margin-bottom: 0.75rem; }
.legal-prose ul { padding-left: 1.5rem; margin-bottom: 1rem; }

.site-footer { padding: 3rem 0 2rem; font-size: 0.875rem; border-top: 1px solid rgba(248, 250, 252, 0.1); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-grid h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-disclaimer { padding-top: 1.5rem; border-top: 1px solid rgba(248, 250, 252, 0.1); opacity: 0.75; font-size: 0.8rem; line-height: 1.6; }
.footer-disclaimer--marketing {
  border-top: 2px solid var(--electric);
  padding: 1.25rem 0;
  margin-top: 1.5rem;
  opacity: 0.88;
  font-size: 0.82rem;
}
.footer-copy { margin-top: 1rem; opacity: 0.6; font-size: 0.75rem; }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem; box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  border-top: 2px solid var(--electric);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-text { flex: 1 1 280px; font-size: 0.875rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
.cookie-modal { position: fixed; inset: 0; z-index: 1001; background: rgba(24, 24, 27, 0.75); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cookie-modal[hidden] { display: none; }
.cookie-modal__panel { max-width: 480px; width: 100%; padding: 2rem; border-radius: var(--radius); }
.cookie-modal__panel h2 { font-family: var(--font-head); margin-bottom: 1rem; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(51, 65, 85, 0.12); }

.js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

.page-hero { padding: 3.5rem 0 2.5rem; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }

.service-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.service-table th, .service-table td { padding: 1rem; text-align: left; border-bottom: 1px solid rgba(51, 65, 85, 0.12); }
.service-table th { font-family: var(--font-head); }

.error-page { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.error-page h1 { font-family: var(--font-head); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.disclaimer-box { padding: 1.25rem 1.5rem; border-left: 3px solid var(--electric); margin: 2rem 0; font-size: 0.9rem; opacity: 0.9; }

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.thumb-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
