/* EduMindAI — Enterprise Dark Graphite Theme */
:root {
  --bg-graphite-void: #1A1D23;
  --bg-graphite-panel: #252932;
  --bg-graphite-steel: #2E3440;
  --bg-graphite-glass: rgba(37, 41, 50, 0.72);
  --text-on-graphite: #F4F6FA;
  --text-muted-graphite: #A8B2C1;
  --bg-accent-steel: #4C8DFF;
  --text-on-accent: #FFFFFF;
  --border-glass: rgba(76, 141, 255, 0.35);
  --sidebar-width: 272px;
  --font-headline: 'Inter', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-edumind {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-graphite);
  background: var(--bg-graphite-void);
  overflow-x: hidden;
}

body.site-edumind.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.125rem, 5vw, 3.625rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: var(--bg-accent-steel); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #7aadff; }

img { max-width: 100%; height: auto; display: block; }

/* Surface system */
.surface-graphite-deep { background: #1A1D23; color: #F4F6FA; }
.surface-graphite-panel { background: #252932; color: #F4F6FA; }
.surface-graphite-steel { background: #2E3440; color: #F4F6FA; }
.surface-graphite-elevated { background: #252932; color: #F4F6FA; border: 1px solid rgba(76, 141, 255, 0.2); }
.surface-accent-steel { background: #1A4088; color: #FFFFFF; }

.surface-graphite-deep *, .surface-graphite-panel *, .surface-graphite-steel *,
.surface-graphite-elevated *, .surface-accent-steel * { color: inherit; }

.surface-accent-steel a { color: #FFFFFF; text-decoration: underline; }

.glass-panel {
  background: rgba(37, 41, 50, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(76, 141, 255, 0.25);
  border-radius: 10px;
}

/* Layout shell */
.edumind-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  border-right: 1px solid rgba(168, 178, 193, 0.15);
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.edumind-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.edumind-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(168, 178, 193, 0.15);
}

.edumind-header__wordmark {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.25rem;
  color: #F4F6FA;
  text-decoration: none;
}

.edumind-header__cta {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--bg-accent-steel);
  color: #F4F6FA;
}

.edumind-header__cta:hover { background: rgba(76, 141, 255, 0.15); color: #F4F6FA; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #F4F6FA;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F4F6FA;
  margin: 5px 0;
  transition: 0.3s ease;
}

.sidebar-brand {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid rgba(168, 178, 193, 0.15);
  margin-bottom: 1rem;
}

.sidebar-brand__name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.375rem;
  color: #F4F6FA;
  text-decoration: none;
  display: block;
}

.sidebar-brand__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-accent-steel);
  margin-top: 0.5rem;
}

.sidebar-nav { list-style: none; margin: 0; padding: 0 0.75rem; flex: 1; }

.sidebar-nav a {
  display: block;
  padding: 0.875rem 1rem;
  min-height: 48px;
  color: #F4F6FA;
  font-weight: 500;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-nav a:hover {
  background: rgba(76, 141, 255, 0.08);
  color: #F4F6FA;
}

.sidebar-nav a.is-active {
  border-left-color: var(--bg-accent-steel);
  background: rgba(76, 141, 255, 0.12);
  color: #F4F6FA;
}

.sidebar-footer {
  padding: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted-graphite);
  border-top: 1px solid rgba(168, 178, 193, 0.15);
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-scrim.is-visible { display: block; opacity: 1; }

main { flex: 1; }

.section {
  padding: 5rem 1.5rem;
}

.section--narrow {
  max-width: 900px;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-accent-steel);
  margin-bottom: 1rem;
}

.platform-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-accent-steel);
}

.serial-badge {
  font-size: 0.75rem;
  color: var(--text-muted-graphite);
  margin-bottom: 1rem;
}

.hairline {
  border: none;
  border-top: 1px solid rgba(168, 178, 193, 0.2);
  margin: 2rem 0;
}

/* Hero Pattern E */
.hero-command {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: 7.5rem;
}

.hero-command__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-command__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 29, 35, 0.92) 0%, rgba(26, 29, 35, 0.75) 50%, rgba(26, 29, 35, 0.88) 100%);
  z-index: 1;
}

.hero-command__content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-command__sub {
  font-size: 1.125rem;
  max-width: 560px;
  color: var(--text-muted-graphite);
  margin-bottom: 2rem;
}

.hero-command__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  background: #4C8DFF;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #3a7aef;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(76, 141, 255, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  background: transparent;
  color: #F4F6FA;
  border: 2px solid #4C8DFF;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-outline:hover {
  background: rgba(76, 141, 255, 0.15);
  color: #F4F6FA;
}

.hero-command__trust {
  font-size: 0.8125rem;
  color: var(--text-muted-graphite);
}

.hero-command__inset {
  position: absolute;
  bottom: 8.5rem;
  right: 2rem;
  z-index: 3;
  width: 280px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-command__inset img { width: 100%; height: 180px; object-fit: cover; }

.hero-metrics {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: calc(100% - 3rem);
  max-width: 900px;
}

.hero-metric-panel {
  flex: 1;
  min-width: 160px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.hero-metric-panel__num {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 700;
  color: #F4F6FA;
}

.hero-metric-panel__label {
  font-size: 0.75rem;
  color: var(--text-muted-graphite);
  margin-top: 0.25rem;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block__num {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F4F6FA;
  line-height: 1;
}

.stat-block__label {
  font-size: 0.875rem;
  color: var(--text-muted-graphite);
  margin-top: 0.5rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  padding: 1.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  border-color: rgba(76, 141, 255, 0.5);
  box-shadow: 0 0 24px rgba(76, 141, 255, 0.15);
}

.pillar-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--bg-accent-steel);
}

.pillar-card__link {
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 1rem;
  display: inline-block;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.solution-card {
  padding: 1.75rem;
  border: 1px solid rgba(76, 141, 255, 0.2);
  border-radius: 10px;
  background: #252932;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  border-color: rgba(76, 141, 255, 0.45);
  box-shadow: 0 0 20px rgba(76, 141, 255, 0.12);
}

.solution-card__code {
  font-size: 0.75rem;
  color: var(--bg-accent-steel);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.solution-card__price {
  font-size: 0.875rem;
  color: var(--text-muted-graphite);
  margin: 0.75rem 0;
}

/* Analytics band */
.analytics-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.analytics-band__photo {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(76, 141, 255, 0.25);
}

.analytics-band__photo img { width: 100%; height: 240px; object-fit: cover; }

.metric-cards { display: flex; flex-direction: column; gap: 1rem; }

.metric-mini {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-mini__val {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-accordion { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid rgba(168, 178, 193, 0.15);
  border-left: 3px solid transparent;
  transition: border-left-color 0.3s ease;
}

.faq-item.is-open { border-left-color: var(--bg-accent-steel); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1rem;
  background: none;
  border: none;
  color: #F4F6FA;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.faq-question:hover { background: rgba(76, 141, 255, 0.05); }

.faq-icon {
  font-size: 1.25rem;
  color: var(--bg-accent-steel);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1rem 1.25rem;
  color: var(--text-muted-graphite);
}

.faq-answer[hidden] { display: none; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-band h2 { margin-bottom: 1rem; }

.cta-band p {
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.cta-band .btn-primary {
  background: #0F2848;
  color: #FFFFFF;
  text-decoration: none;
}

.cta-band .btn-primary:hover {
  background: #0A1E35;
  color: #FFFFFF;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid rgba(168, 178, 193, 0.15);
}

.page-hero h1 { margin-bottom: 0.75rem; }

.page-hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted-graphite);
  max-width: 640px;
}

/* Programme cards */
.programme-list { display: flex; flex-direction: column; gap: 2rem; }

.programme-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 10px;
  align-items: start;
}

.programme-card__img {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(76, 141, 255, 0.2);
}

.programme-card__img img { width: 100%; height: 200px; object-fit: cover; }

.programme-card__price {
  font-weight: 600;
  color: var(--bg-accent-steel);
  margin-top: 1rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(76, 141, 255, 0.2);
  transition: box-shadow 0.3s ease;
}

.service-card:hover { box-shadow: 0 0 24px rgba(76, 141, 255, 0.15); }

.service-card__img img { width: 100%; height: 200px; object-fit: cover; }

.service-card__body { padding: 1.75rem; }

/* About layout */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(76, 141, 255, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-accent-steel);
  transform: translateX(-4px);
}

.timeline-item__img {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(76, 141, 255, 0.2);
}

.timeline-item__img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.leader-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(76, 141, 255, 0.2);
}

.leader-card img { width: 100%; height: 220px; object-fit: cover; }

.leader-card__info { padding: 1.25rem; }

.leader-card__role {
  font-size: 0.875rem;
  color: var(--bg-accent-steel);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info__block { margin-bottom: 1.5rem; }

.contact-info__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-accent-steel);
  margin-bottom: 0.25rem;
}

.contact-photo {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(76, 141, 255, 0.25);
}

.contact-photo img { width: 100%; height: 300px; object-fit: cover; }

/* Forms */
.form-wrapper {
  padding: 2rem;
  border-radius: 10px;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #E2E8F0;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #2C3139;
  border: 1px solid #4A5568;
  border-radius: 6px;
  color: #F4F6FA;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bg-accent-steel);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.2);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-check input { margin-top: 0.25rem; flex-shrink: 0; }

.form-check label { font-size: 0.875rem; color: #E2E8F0; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  padding: 1rem 1.25rem;
  background: rgba(76, 141, 255, 0.15);
  border: 1px solid var(--bg-accent-steel);
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Legal / prose */
.prose { max-width: 800px; }

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose ul, .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--text-muted-graphite);
}

.prose li { margin-bottom: 0.5rem; }

.prose .updated {
  font-size: 0.875rem;
  color: var(--text-muted-graphite);
  margin-bottom: 2rem;
}

.disclaimer-box {
  padding: 1.5rem;
  border-left: 3px solid var(--bg-accent-steel);
  background: rgba(76, 141, 255, 0.08);
  border-radius: 0 6px 6px 0;
  margin: 2rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted-graphite);
}

/* FAQ page photo */
.faq-photo {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(76, 141, 255, 0.25);
}

.faq-photo img { width: 100%; height: 280px; object-fit: cover; }

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page__code {
  font-family: var(--font-headline);
  font-size: 5rem;
  font-weight: 800;
  color: var(--bg-accent-steel);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(168, 178, 193, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-accent-steel);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--text-muted-graphite);
  font-size: 0.875rem;
}

.footer-col a:hover { color: #F4F6FA; }

.footer-brand__name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.25rem;
  color: #F4F6FA;
  margin-bottom: 0.5rem;
}

.footer-brand__slogan {
  font-size: 0.875rem;
  color: var(--text-muted-graphite);
  margin-bottom: 1rem;
}

.footer-brand__copy {
  font-size: 0.8125rem;
  color: var(--text-muted-graphite);
}

.footer-disclaimer {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(168, 178, 193, 0.15);
  font-size: 0.8125rem;
  color: var(--text-muted-graphite);
  line-height: 1.6;
}

.footer-hosting {
  max-width: 1200px;
  margin: 1rem auto 0;
  font-size: 0.75rem;
  color: var(--text-muted-graphite);
  text-align: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 1.25rem 1.5rem;
  background: #252932;
  border-top: 1px solid rgba(76, 141, 255, 0.3);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 0.875rem;
  color: var(--text-muted-graphite);
}

.cookie-banner__text a { color: var(--bg-accent-steel); }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  min-height: 44px;
}

.cookie-btn--accept { background: #4C8DFF; color: #FFFFFF; }
.cookie-btn--reject { background: transparent; color: #F4F6FA; border: 1px solid #4A5568; }
.cookie-btn--custom { background: transparent; color: #F4F6FA; border: 1px solid var(--bg-accent-steel); }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-modal.is-open { display: flex; }

.cookie-modal__panel {
  background: #252932;
  border: 1px solid rgba(76, 141, 255, 0.3);
  border-radius: 10px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal__panel h3 { margin-bottom: 1rem; }

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(168, 178, 193, 0.15);
}

.cookie-option label { font-weight: 500; }

.cookie-option input[type="checkbox"] { width: auto; }

/* 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: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Quote block */
.charter-quote {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

/* Desktop layout */
@media (min-width: 1024px) {
  .edumind-shell { margin-left: var(--sidebar-width); }
  .edumind-header .sidebar-brand { display: none; }
  .nav-toggle { display: none !important; }
}

/* Tablet & mobile */
@media (max-width: 1023px) {
  .edumind-sidebar {
    transform: translateX(-100%);
  }

  .edumind-sidebar.is-open { transform: translateX(0); }

  .nav-toggle { display: block; }

  .edumind-header__cta { display: none; }

  .hero-command {
    min-height: 82vh;
    padding-bottom: 0;
  }

  .hero-command__inset {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 0;
  }

  .hero-metrics {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }

  .solution-grid { grid-template-columns: 1fr; }

  .analytics-band { grid-template-columns: 1fr; }

  .programme-card { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .about-layout { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .section { padding: 3rem 1rem; }

  .stats-strip { grid-template-columns: 1fr; gap: 1.5rem; }

  .hero-command__ctas { flex-direction: column; }

  .hero-command__ctas a { width: 100%; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; }

  .leadership-grid { grid-template-columns: 1fr; }
}
