/* AI Income Academy Pro — Site A V14 */
@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@600;700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --midnight: #0D1B2A;
  --copper: #B87333;
  --alabaster: #FAF8F5;
  --slate: #415A77;
  --bg-dark: #0D1B2A;
  --text-on-dark: #FAF8F5;
  --bg-light: #FAF8F5;
  --text-on-light: #0D1B2A;
  --bg-accent: #B87333;
  --text-on-accent: #FAF8F5;
  --bg-deep: #415A77;
  --text-on-deep: #B87333;
  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 32px rgba(13, 27, 42, 0.1);
  --shadow-hover: 0 16px 48px rgba(13, 27, 42, 0.16);
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg-light);
  color: var(--text-on-light);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.875rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
figure { margin: 0; }
figcaption { font-size: 0.8125rem; opacity: 0.85; margin-top: 0.5rem; }

.surface-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.surface-light { background: var(--bg-light); color: var(--text-on-light); }
.surface-accent { background: var(--bg-accent); color: var(--text-on-accent); }
.surface-deep { background: var(--bg-deep); color: var(--text-on-deep); }
.surface-dark a, .surface-light a, .surface-accent a, .surface-deep a { text-decoration: underline; }
.surface-dark a:hover, .surface-light a:hover, .surface-accent a:hover { opacity: 0.85; }

.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }
.container.narrow { max-width: 760px; }
.section-padding { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-padding--compact { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-padding--tight-top { padding-top: clamp(1rem, 3vw, 1.75rem); }
.page-hero { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}
.section-eyebrow--light { color: var(--copper); }
.lead { font-size: 1.1875rem; max-width: 62ch; }
.education-note {
  font-size: 0.9375rem;
  padding: 1.25rem;
  border-left: 3px solid var(--copper);
  background: rgba(13, 27, 42, 0.04);
}

/* Header */
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(13, 27, 42, 0.12); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(13, 27, 42, 0.08);
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 242, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  min-height: var(--header-height);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--midnight);
  color: var(--copper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.7rem; opacity: 0.75; }
.main-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 0.5rem 0; }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--copper); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--midnight); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  z-index: 104;
  background: rgba(13, 27, 42, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.btn-pill { border-radius: var(--radius-pill); }
.btn-accent { background: var(--bg-accent); color: var(--text-on-accent); border-color: var(--copper); }
.btn-accent:hover { box-shadow: var(--shadow-hover); opacity: 0.92; }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { opacity: 0.85; }
.btn-dark { background: var(--midnight); color: var(--alabaster); border-color: var(--midnight); }
.surface-accent .btn-outline { border-color: var(--alabaster); color: var(--alabaster); }

/* Hero Pattern C — Asymmetric Magazine */
.hero-pattern-c { min-height: 78vh; display: flex; align-items: center; padding: 1.5rem 0 2rem; }
.hero-c-inner {
  display: grid;
  grid-template-columns: 40px 1.35fr 0.82fr;
  gap: 2.5rem;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  align-items: start;
}
.hero-vertical-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--midnight);
  margin: 0;
  align-self: stretch;
  text-align: center;
}
.hero-c-middle { margin-top: 1.5rem; padding-top: 0.5rem; max-width: 100%; }
.hero-c-visual { align-self: center; max-width: 100%; }
.hero-landscape { max-width: 100%; margin-inline: auto; }
.hero-landscape-img { border-radius: var(--radius-card); aspect-ratio: 16/9; object-fit: cover; width: 100%; box-shadow: var(--shadow-hover); }
.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--midnight);
  margin-bottom: 0.65rem;
}
.hero-c-middle h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  color: var(--midnight);
  line-height: 1.22;
}
.hero-sub {
  font-size: 0.9375rem;
  max-width: none;
  color: var(--midnight);
  opacity: 1;
  margin-bottom: 1.15rem;
  line-height: 1.62;
}
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.hero-trust { font-size: 0.75rem; color: var(--midnight); opacity: 0.65; margin: 0; letter-spacing: 0.02em; }

/* Stats */
.stat-strip { color: var(--alabaster); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; padding: 2rem 0; }
.stat-item { padding: 0.75rem; }
.stat-number { display: block; font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; color: var(--alabaster); }
.stat-label { font-size: 0.875rem; color: rgba(250, 248, 245, 0.92); line-height: 1.4; }

/* Inline visuals — constrained width */
.cohort-visual,
.cohort-preview,
.method-visual {
  max-width: 720px;
  margin-inline: auto;
}
.cohort-visual img,
.cohort-preview img,
.method-visual img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Cards */
.track-card {
  background: var(--alabaster);
  border-radius: var(--radius-card);
  padding: 2rem;
  border-top: 3px solid var(--copper);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.track-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.track-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}
.track-grid, .programme-preview-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.services-note { width: min(100% - 2rem, var(--max-width)); margin: 1.5rem auto 0; font-size: 0.9375rem; opacity: 0.9; padding: 1rem 1.25rem; border-left: 3px solid var(--copper); background: rgba(13, 27, 42, 0.04); border-radius: 0 8px 8px 0; }
.service-card h2 { font-size: 1.25rem; margin-bottom: 0.65rem; }
.service-card p { margin-bottom: 0.65rem; }
.services-page .services-grid { margin-top: 0; gap: 1.25rem; }
.services-page .split-grid { gap: 2rem; }
.card-meta { font-size: 0.875rem; opacity: 0.8; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link:hover { opacity: 0.85; }

/* Layouts */
.split-grid, .method-layout, .about-split, .about-hero-grid, .contact-hero-grid, .programme-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.programme-detail--reverse { direction: rtl; }
.programme-detail--reverse > * { direction: ltr; }
.method-steps li { margin-bottom: 0.75rem; }
.about-split { grid-template-columns: 280px 1fr; }
.track-sidebar {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--bg-deep);
  color: var(--alabaster);
  box-shadow: var(--shadow-card);
}
.track-sidebar h2 { color: var(--alabaster); font-size: 1.125rem; margin-bottom: 1rem; }
.track-sidebar .sidebar-list li { color: rgba(250, 248, 245, 0.92); }
.track-sidebar .sidebar-list strong { color: var(--alabaster); }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 0.65rem; font-size: 0.9375rem; line-height: 1.5; }
.about-hero-img img,
.faq-visual img,
.programme-detail figure img,
.split-grid figure img,
.contact-hero-grid figure img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.programme-detail figure { margin: 0; }
.programme-detail-text h2 { margin-bottom: 0.75rem; }
.programme-detail-text p { margin-bottom: 0.85rem; }
.programme-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1rem; font-size: 0.9375rem; }
.programme-meta span { padding: 0.35rem 0.75rem; background: rgba(184, 115, 51, 0.12); border-radius: var(--radius-pill); }
.surface-dark .programme-meta span { background: rgba(250, 248, 245, 0.1); }
.section-cta { margin-top: 2rem; }
.cta-band-inner { text-align: center; }
.cta-band-inner h2 { margin-bottom: 0.5rem; }

/* FAQ Accordion — details/summary */
.faq-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.faq-visual { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.faq-accordion {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 0 1.25rem;
}
.faq-accordion .faq-item { border-bottom: 1px solid rgba(13, 27, 42, 0.1); }
.faq-accordion .faq-item:last-child { border-bottom: none; }
details.faq-item { padding: 0.15rem 0; }
details.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 1.25rem 2rem 1.25rem 0;
  list-style: none;
  position: relative;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--copper);
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item p { padding-bottom: 1.25rem; margin-top: 0; }

/* Mini FAQ on homepage — black questions on light card */
#mini-faq .faq-accordion {
  background: var(--alabaster);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 0 1.25rem;
}
#mini-faq details.faq-item summary {
  color: var(--midnight);
  font-size: 1rem;
}
#mini-faq details.faq-item p {
  color: var(--midnight);
  opacity: 0.88;
}

/* Forms */
.contact-form { display: grid; gap: 1.25rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-row input:not([type="checkbox"]), .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(13, 27, 42, 0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--midnight);
}
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.consent-row { margin-top: 0.25rem; }
.checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--copper);
  cursor: pointer;
}
.contact-block { font-style: normal; margin: 1.5rem 0; line-height: 1.7; }

/* Contact page — tighter block spacing */
.contact-page .page-hero { padding-bottom: clamp(0.75rem, 2.5vw, 1.25rem); }
.contact-page .contact-hero-grid { gap: 1.75rem; align-items: start; }
.contact-page .contact-hero-grid h1 { margin-bottom: 0.65rem; }
.contact-page .lead { margin-bottom: 0.85rem; }
.contact-page .contact-block { margin: 0.85rem 0 0.65rem; line-height: 1.65; }
.contact-page .map-note { margin: 0; font-size: 0.9375rem; opacity: 0.88; }
.contact-page .contact-form { gap: 1rem; }
.contact-page .form-row label { margin-bottom: 0.3rem; }
.contact-page .form-row textarea { min-height: 7rem; }

/* Footer 4-col */
.site-footer { padding: 4rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  padding-bottom: 2.5rem;
}
.footer-heading { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { text-decoration: none; opacity: 0.9; }
.footer-links a:hover { opacity: 0.75; text-decoration: underline; }
.footer-logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.footer-tagline { font-size: 0.9375rem; opacity: 0.9; }
.footer-disclaimer { font-size: 0.8125rem; opacity: 0.75; margin-top: 1rem; }
.footer-hosting { font-size: 0.75rem; opacity: 0.65; }
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Legal & error */
.legal-body h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-meta { font-size: 0.875rem; opacity: 0.75; }
.error-inner { text-align: center; padding: 4rem 0; }
.error-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.cookie-customise-panel { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(250,247,242,0.15); }
.cookie-option { display: block; margin-bottom: 0.5rem; font-size: 0.9375rem; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .track-card { transition: none; }
}

/* Responsive */
@media (min-width: 1024px) {
  .hero-c-inner { align-items: center; grid-template-columns: 40px 1.45fr 0.72fr; }
  .hero-c-middle { margin-top: 0; padding-top: 0; }
}
@media (max-width: 1023px) {
  .hero-c-inner { grid-template-columns: 1fr; }
  .hero-vertical-label { display: none; }
  .hero-c-middle { margin-top: 0; }
  .hero-pattern-c { min-height: 70vh; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid, .method-layout, .about-split, .about-hero-grid, .contact-hero-grid,
  .programme-detail, .faq-layout { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .programme-detail--reverse { direction: ltr; }
}
@media (max-width: 767px) {
  .site-header { z-index: 110; }
  .nav-toggle { display: flex; z-index: 111; position: relative; }
  .main-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(78vw, 288px);
    max-width: 288px;
    height: 100dvh;
    min-height: 100vh;
    z-index: 105;
    background: var(--alabaster);
    padding: calc(var(--header-height) + 0.75rem) 1.25rem 2rem;
    border-right: 1px solid rgba(13, 27, 42, 0.08);
    box-shadow: 8px 0 40px rgba(13, 27, 42, 0.16);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
  }
  .main-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
  }
  .main-nav li { border-bottom: 1px solid rgba(13, 27, 42, 0.08); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
  }
  .main-nav a[aria-current="page"] {
    border-bottom: none;
    color: var(--copper);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .faq-visual { position: static; margin-bottom: 1.5rem; }
}
