/* AI Leadership Path — Site A V13 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --forest: #1A3C34;
  --gold: #B8860B;
  --ivory: #FAF7F2;
  --moss: #2D5A4E;
  --bg-dark: #1A3C34;
  --text-on-dark: #FAF7F2;
  --bg-light: #FAF7F2;
  --text-on-light: #1A3C34;
  --bg-accent: #B8860B;
  --text-on-accent: #FAF7F2;
  --bg-deep: #2D5A4E;
  --text-on-deep: #B8860B;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius-card: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 32px rgba(26, 60, 52, 0.1);
  --shadow-hover: 0 16px 48px rgba(26, 60, 52, 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-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-eyebrow--light { color: var(--gold); }
.lead { font-size: 1.1875rem; max-width: 62ch; }
.education-note {
  font-size: 0.9375rem;
  padding: 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(26, 60, 52, 0.04);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(26, 60, 52, 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(--forest);
  color: var(--gold);
  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(--gold); }
.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(--forest); }

/* 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(--gold); }
.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(--forest); color: var(--ivory); border-color: var(--forest); }
.surface-accent .btn-outline { border-color: var(--ivory); color: var(--ivory); }

/* Hero Pattern A */
.hero-pattern-a { min-height: 90vh; display: flex; align-items: center; padding: 2rem 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 3fr 1px 2fr;
  gap: 2.5rem;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  align-items: center;
}
.hero-divider { width: 1px; background: rgba(26, 60, 52, 0.2); align-self: stretch; }
.hero-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 1rem; }
.hero-sub { font-size: 1.125rem; max-width: 32.5rem; opacity: 0.88; margin-bottom: 1.5rem; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-trust { font-size: 0.75rem; opacity: 0.7; margin: 0; }
.hero-portrait-img { border-radius: var(--radius-card); aspect-ratio: 2/3; object-fit: cover; width: 100%; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; padding: 2rem 0; }
.stat-number { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.stat-label { font-size: 0.875rem; }

/* Cards */
.pathway-card {
  background: var(--ivory);
  border-radius: var(--radius-card);
  padding: 2rem;
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.pathway-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.pathway-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.milestone-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: 2rem auto 0; font-size: 0.9375rem; opacity: 0.9; }
.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; }
.pathway-sidebar { padding: 1.5rem; border-radius: var(--radius-card); }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 0.75rem; font-size: 0.9375rem; }
.section-cta { margin-top: 2rem; }
.cta-band-inner { text-align: center; }
.cta-band-inner h2 { margin-bottom: 0.5rem; }

/* FAQ Accordion */
.faq-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.faq-accordion .faq-item { border-bottom: 1px solid rgba(26, 60, 52, 0.12); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 2rem 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding-bottom: 1.25rem; }
.faq-item.is-open .faq-answer { display: block; }
details.faq-item summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }

/* Forms */
.contact-form { display: grid; gap: 1.25rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(26, 60, 52, 0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--forest);
}
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9375rem;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  cursor: pointer;
}
.contact-block { font-style: normal; margin: 1.5rem 0; line-height: 1.7; }

/* 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; }
  .pathway-card { transition: none; }
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-divider { display: none; }
  .hero-pattern-a { 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) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--ivory);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(26,60,52,0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 0.85rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
