/* Executive AI Institute — Site B stylesheet */
:root {
  --navy: #0C1B33;
  --crimson: #9B1B30;
  --platinum: #E8EAED;
  --ink: #111827;
  --bg-dark: var(--navy);
  --text-on-dark: var(--platinum);
  --bg-light: var(--platinum);
  --text-on-light: var(--ink);
  --bg-accent: var(--crimson);
  --text-on-accent: var(--platinum);
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --radius-card: 4px;
  --stripe-width: 4px;
  --section-pad: 5rem;
  --container: 80rem;
  --header-h: 4.5rem;
  --hero-text: #ffffff;
}

*, *::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: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.25rem; }

.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-soft { background: #eef0f3; color: var(--text-on-light); }
.surface-soft .eyebrow { color: var(--crimson); }
.surface-dark a:not(.btn):not(.logo):not(.nav-link),
.surface-light a:not(.btn):not(.logo):not(.nav-link),
.surface-accent a:not(.btn):not(.logo):not(.nav-link),
.surface-soft a:not(.btn):not(.logo):not(.nav-link) {
  color: currentColor;
  text-decoration: underline;
}

.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 68rem; }
.container.wide { max-width: var(--container); }
.section { padding: var(--section-pad) 0; }
.lead { font-size: 1.25rem; opacity: 0.95; max-width: 62rem; line-height: 1.7; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 27, 51, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(12, 27, 51, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  min-height: var(--header-h);
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff !important;
  flex-shrink: 0;
}
.logo-text { color: #ffffff; }
.logo-mark { flex-shrink: 0; width: 42px; height: 42px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid currentColor;
  padding: 0.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.primary-nav { display: flex; align-items: center; gap: 2rem; flex-wrap: nowrap; justify-content: flex-end; }
.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-link {
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff !important;
  opacity: 0.95;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { opacity: 1; text-decoration: underline !important; text-underline-offset: 0.25em; }
.nav-cta { text-decoration: none !important; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  min-height: 48px;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.94; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transform: translateY(-1px); }
a.btn-accent,
button.btn-accent,
.btn.btn-accent {
  background: var(--crimson) !important;
  color: #ffffff !important;
  border-color: var(--crimson) !important;
}
a.btn-accent:hover,
button.btn-accent:hover,
.btn.btn-accent:hover {
  color: #ffffff !important;
  background: #7f1626 !important;
}
.btn-outline { background: transparent; color: currentColor; border-color: currentColor; }
.btn-outline-light { background: transparent; color: var(--hero-text); border: 2px solid rgba(255,255,255,0.85); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: var(--hero-text) !important; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.hero-pattern-b {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 27, 51, 0.93) 0%,
    rgba(12, 27, 51, 0.82) 50%,
    rgba(12, 27, 51, 0.55) 100%
  );
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  top: calc(var(--header-h) + 1.5rem);
  right: 1.5rem;
  background: var(--crimson);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  max-width: none;
  color: #ffffff;
}
.hero-content h1 {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  max-width: none;
  font-size: clamp(2.35rem, 4.8vw, 4rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: #ffffff;
  font-weight: 700;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.8;
  max-width: none;
  color: #ffffff;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.5rem; }
.hero-trust { font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.page-hero { padding: calc(var(--header-h) + 3.5rem) 0 3.5rem; }
.page-hero .container { max-width: var(--container); }
.page-hero h1 { color: #ffffff; max-width: none; }
.page-hero .eyebrow { color: rgba(255,255,255,0.9); }
.page-hero .lead { color: #ffffff; max-width: none; font-size: 1.25rem; }

.card {
  background: var(--platinum);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.card-panel {
  border: 1px solid rgba(12, 27, 51, 0.08);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(12, 27, 51, 0.08);
}
.card-panel:hover {
  box-shadow: 0 12px 32px rgba(12, 27, 51, 0.14);
  transform: translateY(-2px);
}
.card-icon { margin-bottom: 1rem; opacity: 0.85; }
.module-tag {
  display: inline-block;
  background: var(--crimson);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.75rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
  padding: 1rem 0;
}
.stat-item {
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.stat-item:last-child { border-right: none; }
.surface-dark .stat-strip .stat-number,
.surface-dark .stat-strip .stat-label {
  color: #ffffff !important;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1rem;
  color: #ffffff;
  opacity: 0.95;
  line-height: 1.5;
  display: block;
}
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.split-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }
.split-text { max-width: none; }
.split-text .lead { max-width: none; }
.split-reverse .split-media { order: -1; }
.split-media img { border-radius: var(--radius-card); }
.img-caption { font-size: 0.8rem; margin-top: 0.5rem; opacity: 0.75; }

.about-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 3rem; align-items: start; }
.about-rail { position: sticky; top: calc(var(--header-h) + 1rem); }
.about-portrait { margin-bottom: 1.5rem; }
.about-portrait figcaption { font-size: 0.8rem; margin-top: 0.4rem; }
.rail-card ul { list-style: none; padding: 0; }
.rail-card li { padding: 0.35rem 0; border-bottom: 1px solid rgba(17,24,39,0.1); }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1rem; }
.faq-item { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(17,24,39,0.12); }
.faq-item h2 { font-size: 1.15rem; }
.faq-figure img { border-radius: var(--radius-card); margin-bottom: 1.5rem; }

.programme-detail { margin-bottom: 2.5rem; }
.programme-header { margin-bottom: 1rem; }
.programme-body figure img { border-radius: var(--radius-card); }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-form {
  background: #ffffff;
  padding: 2.25rem 2.5rem;
  border: 1px solid rgba(12, 27, 51, 0.1);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 28px rgba(12,27,51,0.1);
}
.form-group { margin-bottom: 1.35rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.45rem; font-size: 0.95rem; }
.form-group input:not([type="checkbox"]), .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(17,24,39,0.22);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--ink);
}
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-consent { margin-top: 0.75rem; }
.consent-label {
  font-weight: 400;
  font-size: 0.92rem;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  column-gap: 0.85rem;
  align-items: start;
  cursor: pointer;
  line-height: 1.6;
}
.consent-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin: 0.2rem 0 0;
  grid-column: 1;
  grid-row: 1;
  accent-color: var(--crimson);
  justify-self: start;
}
.consent-text { grid-column: 2; grid-row: 1; }
.consent-label a { color: var(--crimson); text-decoration: underline; }

.programme-body figure img { width: 100%; object-fit: cover; min-height: 220px; }

.legal-prose { max-width: 52rem; }
.legal-prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.cookie-table th, .cookie-table td { border: 1px solid rgba(17,24,39,0.15); padding: 0.6rem 0.8rem; text-align: left; }
.education-disclaimer {
  font-size: 0.92rem;
  opacity: 0.92;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(12,27,51,0.1);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.65);
  margin: 2rem 0;
}
.cta-band { text-align: center; padding: 3rem 0; max-width: 52rem; margin-inline: auto; }
.center { text-align: center; }
.error-page { min-height: 60vh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 2rem); }

.site-footer { padding: 4rem 0 0; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2.5rem;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding-bottom: 2.5rem;
}
.footer-heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-address { font-style: normal; }
.footer-address a { text-decoration: none; }
.footer-tagline { opacity: 0.85; font-size: 0.95rem; }
.footer-disclaimer { font-size: 0.8rem; opacity: 0.75; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(232,234,237,0.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}
.footer-hosting { font-size: 0.75rem; margin-top: 0.25rem; }

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.25rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { width: min(100%, var(--container)); margin-inline: auto; }
.cookie-text { font-size: 0.9rem; margin-bottom: 1rem; max-width: 52rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-custom { margin-top: 1rem; }
.cookie-option { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }

.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; }
  html { scroll-behavior: auto; }
}

@media (min-width: 1200px) {
  :root { --section-pad: 5.5rem; }
  .hero-sub { font-size: 1.35rem; }
  .programme-body figure img { min-height: 280px; }
  .pillar-grid { gap: 2.25rem; }
}
@media (max-width: 1023px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 1.25rem; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .pillar-grid, .programme-grid, .service-grid { grid-template-columns: 1fr; }
  .split-layout, .about-layout, .contact-layout, .faq-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-rail { position: static; }
}
@media (max-width: 767px) {
  :root { --section-pad: 3rem; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; color: var(--hero-text); }
  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(12, 27, 51, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    align-items: stretch;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 0.75rem; }
  .nav-cta { width: 100%; }
  .hero-pattern-b { min-height: 85vh; align-items: center; }
  .hero-content { max-width: none; }
  .hero-badge { top: calc(var(--header-h) + 0.75rem); right: 0.75rem; font-size: 0.7rem; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat-item:last-child { border-bottom: none; }
}
