@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-dark: #0D1B2A;
  --text-on-dark: #F8F9FA;
  --bg-light: #F8F9FA;
  --text-on-light: #0D1B2A;
  --bg-accent: #00B4D8;
  --text-on-accent: #0D1B2A;
  --bg-slate: #415A77;
  --text-on-slate: #F8F9FA;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1200px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); line-height: 1.65; font-size: 1.05rem; background: var(--bg-light); color: var(--text-on-light); }
img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; }

.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-slate { background: var(--bg-slate); color: var(--text-on-slate); }
.surface-dark a, .surface-light a, .surface-slate a, .surface-accent a { color: currentColor; text-decoration: underline; }
.surface-dark *, .surface-light *, .surface-slate *, .surface-accent * { color: inherit; }

/* Light text on dark surfaces — explicit overrides */
.surface-dark,
.surface-dark p,
.surface-dark li,
.surface-dark h1,
.surface-dark h2,
.surface-dark h3,
.surface-dark h4 {
  color: var(--text-on-dark);
}
.surface-slate,
.surface-slate p,
.surface-slate li,
.surface-slate h1,
.surface-slate h2,
.surface-slate h3,
.surface-slate h4 {
  color: var(--text-on-slate);
}
.site-footer.surface-dark,
.site-footer.surface-dark p,
.site-footer.surface-dark li,
.site-footer.surface-dark a,
.site-footer.surface-dark h4 {
  color: var(--text-on-dark);
}
.programme-tile.surface-dark,
.programme-tile.surface-dark h3,
.programme-tile.surface-dark p {
  color: var(--text-on-dark);
}
.programme-tile.surface-slate,
.programme-tile.surface-slate h3,
.programme-tile.surface-slate p {
  color: var(--text-on-slate);
}
.hero-caption {
  color: var(--text-on-dark);
}
.timeline-item,
.timeline-item h4,
.timeline-item p {
  color: var(--text-on-dark);
}

.container { width: min(100% - 2rem, var(--max-w)); margin-inline: auto; }
.section-pad { padding: 4.5rem 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(248,249,250,0.12); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; text-decoration: none; letter-spacing: 0.02em; }
.nav-list { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.nav-list a { text-decoration: none; font-size: 0.95rem; font-weight: 500; opacity: 0.9; }
.nav-list a:hover { opacity: 1; text-decoration: underline; }
.nav-toggle {
  display: none;
  position: relative;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(248, 249, 250, 0.2);
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  z-index: 301;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: rgba(248, 249, 250, 0.08); border-color: rgba(248, 249, 250, 0.35); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--bg-accent);
  outline-offset: 2px;
}
.nav-toggle-bars {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 2px;
  margin: -1px 0 0 -0.625rem;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), top 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(13, 27, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-open { overflow: hidden; }
body.nav-open .site-header { z-index: 1000; }

/* Hero Pattern A — Editorial Spotlight */
.hero-editorial { min-height: 90vh; display: grid; grid-template-columns: 3fr 2fr; align-items: stretch; }
.hero-editorial .hero-text { display: flex; flex-direction: column; justify-content: center; padding: 3rem 2rem 3rem max(1rem, calc((100vw - var(--max-w)) / 2 + 1rem)); }
.hero-label { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; opacity: 0.8; }
.hero-serial { font-family: var(--font-head); font-size: 0.85rem; margin-bottom: 1.5rem; padding: 0.35rem 0.75rem; border: 1px solid currentColor; display: inline-block; width: fit-content; }
.hero-editorial h1 { font-size: clamp(2rem, 5vw, 3.75rem); margin-bottom: 1rem; max-width: 18ch; }
.hero-sub { font-size: 1.15rem; max-width: 42ch; margin-bottom: 2rem; opacity: 0.9; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn { display: inline-block; padding: 0.85rem 1.5rem; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; text-decoration: none; border-radius: var(--radius); transition: opacity 0.2s; }
.btn-primary { background: var(--bg-accent); color: var(--text-on-accent); border: none; }
.btn-secondary { border: 1px solid currentColor; background: transparent; }
.btn:hover { opacity: 0.85; }
.trust-strip { font-size: 0.8rem; opacity: 0.75; letter-spacing: 0.03em; }
.hero-visual { position: relative; display: flex; align-items: stretch; border-left: 3px solid var(--bg-accent); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 70vh; }
.hero-caption { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; font-size: 0.8rem; background: rgba(13,27,42,0.75); padding: 0.5rem 0.75rem; border-radius: var(--radius); }

/* Grid components */
.matrix-charter { text-align: center; }
.matrix-charter h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.matrix-charter p { max-width: 65ch; margin-inline: auto; }
.coord-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-cell { padding: 1.5rem; border: 1px solid rgba(248,249,250,0.2); border-radius: var(--radius); text-align: center; }
.stat-cell .coord { font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; opacity: 0.7; }
.stat-cell .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.grid-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-card { padding: 2rem; border-radius: var(--radius); border: 1px solid rgba(13,27,42,0.1); }
.grid-card .cell-label { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.12em; margin-bottom: 0.75rem; opacity: 0.7; }
.grid-card h3 { margin-bottom: 0.75rem; font-size: 1.35rem; }
.grid-card img { margin-top: 1rem; border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.timeline-item { padding: 1.5rem; border-left: 3px solid var(--bg-accent); }
.timeline-item h4 { margin-bottom: 0.5rem; }
.programme-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.programme-tile { padding: 1.5rem; border-radius: var(--radius); }
.programme-tile h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.programme-tile .price { font-family: var(--font-head); font-weight: 600; margin-top: 0.75rem; font-size: 0.9rem; }

/* FAQ accordion (matrix style) */
.faq-matrix details { border-bottom: 1px solid rgba(13,27,42,0.15); padding: 1rem 0; }
.faq-matrix summary { font-family: var(--font-head); font-weight: 600; cursor: pointer; list-style: none; }
.faq-matrix summary::-webkit-details-marker { display: none; }
.faq-matrix details[open] summary { margin-bottom: 0.75rem; }

/* Page layouts */
.page-hero { padding: 3.5rem 0 2.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero .lead { font-size: 1.15rem; max-width: 60ch; }
.content-block { max-width: 75ch; }
.content-block h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.content-block p, .content-block li { margin-bottom: 1rem; }
.content-block ul { padding-left: 1.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.program-list { display: grid; gap: 2rem; }
.program-item { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 1.5rem; padding: 1.5rem; border-radius: var(--radius); border: 1px solid rgba(13,27,42,0.1); }
.program-item:not(:has(> img)) { grid-template-columns: 1fr; }
.program-item img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; min-height: 180px; background: var(--bg-slate); }
.program-item > div { min-width: 0; }
.program-item h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card { padding: 1.75rem; border-radius: var(--radius); border: 1px solid rgba(13,27,42,0.1); }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; margin-bottom: 1rem; background: var(--bg-slate); }
.disclaimer-box { padding: 1.25rem; border-left: 4px solid var(--bg-accent); margin: 2rem 0; font-size: 0.95rem; }

/* Forms */
.form-surface { padding: 2rem; border-radius: var(--radius); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid rgba(13,27,42,0.2); border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--text-on-light); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.form-alert.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-alert.error { background: #fce4ec; color: #880e4f; border: 1px solid #f48fb1; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.checkbox-group { display: flex; gap: 0.5rem; align-items: flex-start; }
.checkbox-group input { width: auto; margin-top: 0.3rem; }

/* Footer */
.site-footer { padding: 3rem 0 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(248,249,250,0.15); padding-top: 1.5rem; font-size: 0.85rem; opacity: 0.85; }
.footer-disclaimer { margin-top: 1rem; font-size: 0.8rem; line-height: 1.5; opacity: 0.8; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; padding: 1.25rem; box-shadow: 0 -4px 24px rgba(0,0,0,0.15); }
.cookie-banner.is-hidden { display: none; }
.cookie-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btns .btn { cursor: pointer; }
.cookie-custom { padding: 1rem; margin-top: 0.75rem; border-top: 1px solid rgba(13,27,42,0.15); width: 100%; }
.cookie-custom label { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; }

/* CTA band */
.cta-band { text-align: center; padding: 4rem 2rem; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 50ch; margin: 0 auto 1.5rem; }

/* 404 */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem 1rem; }
.error-page h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }

/* 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) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .nav-backdrop { transition: none; }
  .site-header nav,
  .nav-list li,
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { transition: none; }
  .site-header nav.is-open .nav-list li { transition-delay: 0s; }
}

@media (max-width: 900px) {
  .hero-editorial { grid-template-columns: 1fr; min-height: auto; }
  .hero-editorial .hero-text { padding: 2.5rem 1rem; }
  .hero-visual { border-left: none; border-top: 3px solid var(--bg-accent); }
  .hero-visual img { min-height: 50vh; }
  .coord-stats, .timeline, .programme-mosaic { grid-template-columns: repeat(2, 1fr); }
  .grid-rows, .two-col, .service-grid, .program-item, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; z-index: 1001; }
  .site-header .inner { flex-wrap: nowrap; }
  .site-header nav {
    position: fixed;
    inset: 0;
    z-index: 950;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 5.25rem 1.5rem 2rem;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    border: none;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  .site-header nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
    padding: 0;
  }
  .nav-list li {
    border-bottom: 1px solid rgba(248, 249, 250, 0.12);
  }
  .nav-list li:first-child {
    border-top: 1px solid rgba(248, 249, 250, 0.12);
  }
  .nav-list a {
    display: block;
    padding: 1.1rem 0.25rem;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    opacity: 1;
  }
  .nav-list a:hover,
  .nav-list a:focus-visible {
    color: var(--bg-accent);
    text-decoration: none;
    padding-left: 0.5rem;
    transition: padding-left 0.2s ease;
  }
  .nav-list a[aria-current="page"] {
    color: var(--bg-accent);
    font-weight: 600;
    border-left: 3px solid var(--bg-accent);
    padding-left: 0.75rem;
  }
}

@media (max-width: 600px) {
  .coord-stats, .timeline, .programme-mosaic { grid-template-columns: 1fr; }
}
