@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600&display=swap');

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

:root {
  --ink: #1B1B2F;
  --crimson: #BE123C;
  --parchment: #FDF8F3;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-width: 1200px;
  --radius: 4px;
  --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.65;
  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: #1B1B2F; color: #FDF8F3; }
.surface-light { background-color: #FDF8F3; color: #1B1B2F; }
.surface-accent { background-color: #BE123C; color: #FDF8F3; }
.surface-deep { background-color: #1B1B2F; color: #BE123C; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(253, 248, 243, 0.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: #BE123C; }

.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-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
}
.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;
    border-bottom: 1px solid rgba(253, 248, 243, 0.12);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
}

/* Hero Pattern A — Editorial Spotlight */
.hero-editorial {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 3fr 2px 2fr;
  align-items: stretch;
}
.hero-editorial__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 3rem max(2rem, calc((100vw - var(--max-width)) / 2 + 1rem));
}
.hero-editorial__divider {
  background: #BE123C;
  width: 2px;
}
.hero-editorial__visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem max(2rem, calc((100vw - var(--max-width)) / 2 + 1rem)) 2rem 2rem;
}
.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}
.hero-chapter {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: #BE123C;
  margin-bottom: 1.5rem;
}
.hero-editorial h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}
.hero-sub {
  font-size: 1.125rem;
  max-width: 42ch;
  margin-bottom: 2rem;
  opacity: 0.92;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
  background: #BE123C;
  color: #FDF8F3;
  border-color: #BE123C;
}
.btn-primary:hover { background: #9f0f32; border-color: #9f0f32; text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-secondary:hover { background: rgba(190, 18, 60, 0.12); text-decoration: none; }
.hero-trust {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
}
.hero-portrait {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius);
}
.hero-caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .hero-editorial {
    min-height: 70vh;
    grid-template-columns: 1fr;
  }
  .hero-editorial__divider { display: none; }
  .hero-editorial__main { padding: 2.5rem 1rem; }
  .hero-editorial__visual { padding: 0 1rem 2.5rem; }
}

/* Sections */
.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.2;
  margin-bottom: 0.75rem;
}
.section-head p { opacity: 0.88; }

.chapter-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: #BE123C;
  margin-bottom: 0.5rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.stat-item {
  padding: 1.5rem;
  border-left: 3px solid #BE123C;
}
.stat-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.stat-item span { font-size: 0.9rem; opacity: 0.85; }

/* Beats grid */
.beats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.beat-card {
  padding: 1.75rem;
  border: 1px solid rgba(27, 27, 47, 0.12);
  border-radius: var(--radius);
}
.beat-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.beat-num {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

/* Two column layouts */
.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; gap: 2rem; }
  .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.75;
  font-style: italic;
}

/* Programs preview */
.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);
  border: 1px solid rgba(253, 248, 243, 0.15);
}
.program-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}
.program-card .price {
  font-size: 0.85rem;
  margin-top: 1rem;
  opacity: 0.8;
}

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid rgba(27, 27, 47, 0.12);
  padding: 1.25rem 0;
}
.faq-item h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}
.faq-item p { font-size: 0.95rem; }

/* Forms */
.form-surface {
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 560px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(27, 27, 47, 0.25);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: #1B1B2F;
}
.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; flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Legal prose */
.legal-prose h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  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; }

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
  border-top: 1px solid rgba(253, 248, 243, 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(253, 248, 243, 0.1);
  opacity: 0.75;
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-copy { margin-top: 1rem; opacity: 0.6; font-size: 0.75rem; }

/* Cookie banner */
.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 #BE123C;
}
.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(27, 27, 47, 0.7);
  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(27, 27, 47, 0.12);
}
.cookie-option label { font-weight: 500; }

/* Reveal animation */
.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 (inner pages) */
.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;
}
.page-hero p { max-width: 560px; opacity: 0.88; }

/* Service table */
.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(27, 27, 47, 0.12);
}
.service-table th { font-family: var(--font-head); }

/* 404 */
.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 #BE123C;
  margin: 2rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
