:root {
  --burgundy: #7F1D1D;
  --burgundy-dark: #5C1515;
  --burgundy-light: #9B2D2D;
  --sand: #F5F0E8;
  --sand-dark: #E8DFD2;
  --sand-light: #FAF7F2;
  --text: #2A2420;
  --text-muted: #6B5E54;
  --white: #ffffff;
  --border: #D4C9BA;
  --accent-line: #C4A882;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--sand);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--burgundy-dark);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.65rem; }

a { color: var(--burgundy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--burgundy-light); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: var(--burgundy-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  font-family: 'Source Serif 4', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sand-light);
  letter-spacing: 0.01em;
}

.logo span { color: var(--accent-line); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--sand-light);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-nav a:hover { color: var(--accent-line); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sand-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92, 21, 21, 0.88) 0%, rgba(127, 29, 29, 0.72) 50%, rgba(42, 36, 32, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 4rem 1.5rem;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero-label {
  display: inline-block;
  background: var(--accent-line);
  color: var(--burgundy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--sand-light);
  margin-bottom: 1.25rem;
}

.hero p {
  color: var(--sand);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-slogan {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  color: var(--accent-line);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-line);
  color: var(--burgundy-dark);
  border-color: var(--accent-line);
}

.btn-primary:hover {
  background: var(--sand-light);
  color: var(--burgundy-dark);
}

.btn-outline {
  background: transparent;
  color: var(--sand-light);
  border-color: var(--sand-light);
}

.btn-outline:hover {
  background: var(--sand-light);
  color: var(--burgundy-dark);
}

/* Trust bar */
.trust-bar {
  background: var(--burgundy);
  color: var(--sand);
  padding: 0.85rem 0;
  font-size: 0.82rem;
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  text-align: center;
}

.trust-bar strong { color: var(--accent-line); }

/* Sections */
section { padding: 4.5rem 0; }

.bg-white { background: var(--white); }
.bg-sand { background: var(--sand); }
.bg-burgundy { background: var(--burgundy-dark); color: var(--sand); }
.bg-burgundy h2, .bg-burgundy h3 { color: var(--sand-light); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy-light);
  margin-bottom: 0.5rem;
}

.section-header p { color: var(--text-muted); }

/* Clarification banner */
.clarification-banner {
  border-left: 5px solid var(--burgundy);
  background: var(--sand-light);
  padding: 2rem 2.5rem;
  margin: 0 auto;
  max-width: 900px;
}

.clarification-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.clarification-banner p { color: var(--text-muted); }

/* Cohort / Case section tags */
.cohort-tag, .case-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.75rem;
}

.cohort-tag {
  background: var(--burgundy);
  color: var(--sand-light);
}

.case-tag {
  background: var(--accent-line);
  color: var(--burgundy-dark);
}

/* Timeline modules */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--burgundy);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--accent-line);
  border: 3px solid var(--burgundy);
  border-radius: 50%;
  transform: translateX(-50%);
  margin-left: -1.5px;
}

.timeline-item h3 { color: var(--burgundy); }

.timeline-module {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Case-study card grid */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.case-card:hover {
  box-shadow: 0 8px 30px rgba(127, 29, 29, 0.12);
}

.case-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.case-card-body {
  padding: 1.5rem;
}

.case-card-body h3 { font-size: 1.15rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .number {
  font-family: 'Source Serif 4', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-line);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .label {
  font-size: 0.88rem;
  color: var(--sand);
  opacity: 0.9;
}

/* Two column layout */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-section img {
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(42, 36, 32, 0.15);
}

/* Module cards (programs) */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.module-card {
  background: var(--white);
  border-top: 4px solid var(--burgundy);
  padding: 2rem;
}

.module-card .module-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy-light);
  margin-bottom: 0.5rem;
}

.module-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

/* Services list */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-block:last-child { margin-bottom: 0; }

.service-list {
  list-style: none;
}

.service-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.5rem;
  position: relative;
}

.service-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--burgundy);
  font-size: 0.6rem;
  top: 1rem;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--burgundy-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--burgundy-light);
  outline-offset: 1px;
}

.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-consent input { margin-top: 0.25rem; flex-shrink: 0; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--burgundy);
  background: var(--sand-light);
}

.alert-success { border-color: #2d6a4f; background: #e8f5e9; }
.alert-error { border-color: var(--burgundy); background: #fce8e8; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.faq-item p { color: var(--text-muted); }

/* Legal / prose pages */
.page-hero {
  background: var(--burgundy-dark);
  color: var(--sand-light);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 { color: var(--sand-light); }

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p, .prose li { color: var(--text-muted); margin-bottom: 1rem; }

.prose ul, .prose ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-muted);
}

.prose ul li, .prose ol li { margin-bottom: 0.5rem; }

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
  min-height: 50vh;
}

.error-page h1 { margin-bottom: 1rem; }

.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* Footer */
.site-footer {
  background: var(--burgundy-dark);
  color: var(--sand);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 1rem;
  opacity: 0.85;
  line-height: 1.65;
}

.footer-grid h4 {
  color: var(--accent-line);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }

.footer-grid li {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.footer-grid a { color: var(--sand); }
.footer-grid a:hover { color: var(--accent-line); }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.8;
}

.footer-bottom p { margin-bottom: 0.5rem; }

.footer-disclaimer {
  font-size: 0.72rem !important;
  opacity: 0.65 !important;
  max-width: 900px;
  margin: 1rem auto 0 !important;
  line-height: 1.6 !important;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--burgundy-dark);
  color: var(--sand);
  padding: 1.25rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.cookie-banner.active { transform: translateY(0); }

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.cookie-inner p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cookie-inner a { color: var(--accent-line); }

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-buttons button {
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--sand);
  background: transparent;
  color: var(--sand);
  font-family: inherit;
}

.cookie-buttons .btn-accept {
  background: var(--accent-line);
  color: var(--burgundy-dark);
  border-color: var(--accent-line);
}

.cookie-customise {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 240, 232, 0.2);
}

.cookie-customise.active { display: block; }

.cookie-customise label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .split-section,
  .service-block,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-section.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--burgundy-dark);
    display: none;
    border-top: 1px solid rgba(245, 240, 232, 0.1);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
  }

  .main-nav li { border-bottom: 1px solid rgba(245, 240, 232, 0.08); }
  .main-nav a { display: block; padding: 0.85rem 0; }

  .site-header { position: relative; }

  .hero { min-height: 60vh; }

  section { padding: 3rem 0; }
}
