@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,700;1,400&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400&display=swap');

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

:root {
  --moss: #365314;
  --saffron: #CA8A04;
  --linen: #FAFAF5;
  --stone: #44403C;
  --mist: #F3F4EF;
  --font-head: 'Bitter', Georgia, serif;
  --font-body: 'Nunito 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(--moss); color: var(--linen); }
.surface-light { background-color: var(--linen); color: var(--stone); }
.surface-accent { background-color: var(--saffron); color: var(--moss); }
.surface-mist { background-color: var(--mist); color: var(--moss); }

.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(--linen);
  color: var(--stone);
  box-shadow: 0 2px 12px rgba(54, 83, 20, 0.1);
}
.site-header.is-scrolled .logo span { color: var(--saffron); }
.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(--saffron); }

.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: 700; }
.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(--linen); }
}

/* Pattern C — Asymmetric Magazine Hero */
.hero-magazine {
  position: relative;
  min-height: 85vh;
  display: grid;
  grid-template-columns: 8% 38% 54%;
  align-items: stretch;
  padding-top: 5rem;
}
.hero-magazine__brand-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  opacity: 0.55;
  padding: 2rem 0;
  justify-self: center;
  align-self: center;
}
.hero-magazine__copy {
  padding: 5rem 2rem 3rem 0;
  padding-top: calc(5rem + 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-magazine 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: 18ch;
  color: var(--moss);
}
.hero-sub {
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 2rem;
  color: var(--stone);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-magazine__media {
  position: relative;
  margin: 0;
  padding: 5rem 0 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-magazine__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-magazine__media figcaption {
  font-size: 0.8rem;
  margin-top: 0.65rem;
  opacity: 0.7;
  font-style: italic;
  color: var(--stone);
}
.hero-trust {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--stone);
  opacity: 0.65;
}

@media (max-width: 900px) {
  .hero-magazine {
    grid-template-columns: 1fr;
    min-height: 70vh;
    padding-top: 4.5rem;
  }
  .hero-magazine__brand-label {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 0 1rem 0.5rem;
    justify-self: start;
    letter-spacing: 0.15em;
  }
  .hero-magazine__copy {
    padding: 1.5rem 1rem 1rem;
    padding-top: 0;
  }
  .hero-magazine__media {
    padding: 0 1rem 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(--saffron); color: var(--moss); border-color: var(--saffron); }
.btn-primary:hover { background: #b07803; border-color: #b07803; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--moss); border-color: var(--moss); }
.btn-secondary:hover { background: rgba(54, 83, 20, 0.08); text-decoration: none; }
.surface-dark .btn-secondary { color: var(--linen); border-color: var(--linen); }
.surface-dark .btn-secondary:hover { background: rgba(250, 250, 245, 0.1); }

.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;
}
.node-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--saffron);
  margin-bottom: 0.5rem;
}
.surface-dark .node-label { color: var(--saffron); }
.surface-accent .node-label { color: var(--moss); }

.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(--saffron);
}
.stat-block strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.loops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.loop-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(68, 64, 60, 0.15);
}
.loop-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(68, 64, 60, 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(68, 64, 60, 0.25);
  border-radius: var(--radius);
  font: inherit; background: #fff; color: var(--stone);
}
.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(250, 250, 245, 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(250, 250, 245, 0.1); opacity: 0.75; font-size: 0.8rem; line-height: 1.6; }
.footer-disclaimer--marketing {
  border-top: 2px solid var(--saffron);
  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(--saffron);
}
.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(54, 83, 20, 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(68, 64, 60, 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(68, 64, 60, 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(--saffron); margin: 2rem 0; font-size: 0.9rem; opacity: 0.9; }
