/* LearnDeepAI — learndeepai.pro */
:root {
  --dark: #0D1B2A;
  --accent: #00D4AA;
  --light: #E8EDF2;
  --steel: #1B2D3F;
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 8px 32px rgba(13, 27, 42, 0.22);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #00b894; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.container { width: min(1140px, 92vw); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section__lead { font-size: 1.125rem; max-width: 62ch; margin-bottom: 2rem; color: rgba(13, 27, 42, 0.82); }

/* Surface system */
.surface-dark { background: var(--dark); color: var(--light); }
.surface-dark a { color: var(--accent); }
.surface-dark .section__lead { color: rgba(232, 237, 242, 0.78); }

.surface-light { background: var(--light); color: var(--dark); }

.surface-accent { background: var(--accent); color: var(--dark); }
.surface-accent a { color: var(--dark); text-decoration: underline; }

.surface-steel { background: var(--steel); color: var(--light); }
.surface-steel a { color: var(--accent); }
.surface-steel .section__lead { color: rgba(232, 237, 242, 0.78); }

/* Dotted mint dividers */
.divider-dotted {
  border: none;
  border-top: 2px dotted var(--accent);
  margin: 2rem 0;
  opacity: 0.65;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 170, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}
.logo:hover { color: var(--accent); }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }

.nav-main { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.nav-main a {
  color: rgba(232, 237, 242, 0.88);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.header-cta {
  display: none;
  flex-shrink: 0;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  margin-left: 1rem;
}

@media (min-width: 641px) {
  .header-inner nav { margin-left: auto; }
  .header-cta { display: inline-flex; }
}

/* Hero Pattern E — centred masthead 60%, photo band 40%, floating trust card */
.hero-e {
  display: flex;
  flex-direction: column;
  min-height: clamp(520px, 85vh, 760px);
  background: var(--dark);
  position: relative;
}

.hero-e__masthead {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 2rem);
  position: relative;
  z-index: 2;
}

.hero-e__masthead h1 { color: var(--light); margin-bottom: 1rem; }
.hero-e__masthead .slogan {
  color: rgba(232, 237, 242, 0.88);
  font-size: 1.125rem;
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero-e__trust-card {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--steel);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  z-index: 10;
  min-width: min(340px, 88vw);
  text-align: left;
  color: var(--light);
  font-size: 0.9rem;
}

.hero-e__trust-card strong { color: var(--accent); display: block; margin-bottom: 0.25rem; }

.hero-e__band {
  flex: 0 0 28%;
  position: relative;
  overflow: hidden;
  max-height: 320px;
}

.hero-e__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 320px;
  min-height: 160px;
}

.hero-e__band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--dark) 0%, transparent 28%);
  z-index: 1;
  pointer-events: none;
}

/* Buttons — rectangular mint CTA */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

a.btn.btn-primary,
button.btn.btn-primary,
.btn.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

a.btn.btn-primary:hover,
a.btn.btn-primary:focus,
button.btn.btn-primary:hover,
button.btn.btn-primary:focus,
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background: #00b894;
  border-color: #00b894;
  color: #fff;
}

.surface-dark a.btn.btn-primary,
.surface-steel a.btn.btn-primary,
.hero-e a.btn.btn-primary,
.cta-band a.btn.btn-primary,
.site-header a.btn.btn-primary {
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--light);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--dark); }

.btn-dark {
  background: var(--dark);
  color: var(--light);
  border-color: var(--dark);
}
.btn-dark:hover { background: var(--steel); border-color: var(--steel); color: var(--light); }

/* Metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.metric-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(232, 237, 242, 0.06);
  border-left: 4px solid var(--accent);
  border-top: 1px solid rgba(0, 212, 170, 0.2);
  border-right: 1px solid rgba(0, 212, 170, 0.2);
  border-bottom: 1px solid rgba(0, 212, 170, 0.2);
}

.metric-card__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-card__label { font-size: 0.875rem; opacity: 0.85; }

.surface-dark .metric-card__value,
.surface-dark .metric-card__label {
  color: #fff;
  opacity: 1;
}

/* Card grids — 4px radius, mint left stripe */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: transform var(--transition);
}

.card:hover { transform: translateY(-4px); }

.card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 1.5rem; }

.surface-dark .card { background: rgba(27, 45, 63, 0.65); border-left-color: var(--accent); }
.surface-steel .card { background: rgba(13, 27, 42, 0.55); border-left-color: var(--accent); }

/* Track tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Method steps */
.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  counter-reset: method;
}

.method-steps li {
  padding: 1.5rem;
  background: rgba(13, 27, 42, 0.04);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  position: relative;
}

.method-steps li::before {
  counter-increment: method;
  content: counter(method, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

/* Split layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-layout img { border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--accent); }

/* Portrait rail */
.portrait-rail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.portrait-rail__item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(0, 212, 170, 0.08);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.portrait-rail__item img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

/* FAQ two-column static split */
.faq-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.faq-split__col h3 {
  color: var(--dark);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#faq-split .faq-split__col h3,
#faq-split .faq-split__col p,
#faq-split .faq-split__col a {
  color: var(--dark);
}

#faq-split .faq-split__col a:hover {
  color: #00b894;
}

.faq-split__col h3:first-child { margin-top: 0; }

.faq-split__col p { margin-bottom: 1rem; font-size: 0.9375rem; }

.faq-split__visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  width: 100%;
}

/* Editorial columns */
.editorial-columns {
  column-count: 2;
  column-gap: 2.5rem;
}

.editorial-columns p { margin-bottom: 1rem; break-inside: avoid; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--steel) 0%, var(--dark) 100%);
  color: var(--light);
  border-left: 4px solid var(--accent);
}

.cta-band h2 { color: var(--light); margin-bottom: 0.75rem; }
.cta-band p { max-width: 50ch; margin: 0 auto 1.75rem; opacity: 0.88; }

/* Program table */
.program-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.9375rem; }
.program-table th, .program-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px dotted rgba(0, 212, 170, 0.35);
}
.program-table th { font-family: var(--font-display); background: rgba(0, 212, 170, 0.12); }
.surface-dark .program-table th { background: rgba(0, 212, 170, 0.15); }
.surface-dark .program-table th, .surface-dark .program-table td { border-color: rgba(0, 212, 170, 0.25); }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.service-card {
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.surface-dark .service-card { background: rgba(27, 45, 63, 0.6); }
.service-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info { list-style: none; }
.contact-info li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; }
.contact-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--radius);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(13, 27, 42, 0.12);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; }
.form-checkbox input { width: auto; margin-top: 0.25rem; }

.form-success {
  padding: 1rem 1.25rem;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

/* Legal prose */
.legal-prose h2 { margin-top: 2rem; }
.legal-prose h3 { margin-top: 1.5rem; }
.legal-prose p, .legal-prose li { margin-bottom: 0.85rem; }
.legal-prose ul, .legal-prose ol { margin-left: 1.5rem; margin-bottom: 1rem; }

.meta-updated {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.disclaimer {
  font-size: 0.9375rem;
  opacity: 0.75;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(0, 212, 170, 0.06);
  margin-top: 2rem;
}

/* Footer 3 columns */
.site-footer {
  background: var(--dark);
  color: rgba(232, 237, 242, 0.82);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(232, 237, 242, 0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 2px dotted rgba(0, 212, 170, 0.25);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  opacity: 0.65;
}

.footer-disclaimer {
  width: 100%;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--steel);
  color: var(--light);
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-banner__text { flex: 1; min-width: 260px; font-size: 0.9rem; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.cookie-banner .btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(13, 27, 42, 0.7);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.is-open { display: flex; }

.cookie-modal__box {
  background: var(--light);
  color: var(--dark);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}

.cookie-modal__box h3 { margin-bottom: 1rem; }
.cookie-modal__box label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.9rem; }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--accent); line-height: 1.2; max-width: 20ch; }

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: linear-gradient(160deg, var(--dark) 0%, var(--steel) 100%);
  color: var(--light);
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; max-width: 55ch; }

.page-hero--img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.page-hero--img img { border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--accent); }

/* Catalogue list */
.catalogue-list { list-style: none; }
.catalogue-list li {
  padding: 1rem 0;
  border-bottom: 2px dotted rgba(0, 212, 170, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.catalogue-list li:last-child { border-bottom: none; }
.catalogue-list strong { font-family: var(--font-display); }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-e { min-height: auto; }
  .hero-e__masthead { flex: none; padding-bottom: 3.5rem; }
  .hero-e__trust-card { position: relative; bottom: auto; left: auto; transform: none; margin-top: 1.5rem; }
  .hero-e__band { flex: none; max-height: 200px; }
  .hero-e__band img { max-height: 200px; min-height: auto; }
  .split-layout, .contact-layout, .page-hero--img, .faq-split { grid-template-columns: 1fr; }
  .editorial-columns { column-count: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0;
  }
  .logo {
    order: 1;
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    gap: 0.4rem;
  }
  .logo svg { width: 28px; height: 28px; }
  .header-cta {
    display: inline-flex;
    order: 2;
    flex-shrink: 0;
    margin-left: 0;
    padding: 0.28rem 0.55rem;
    font-size: 0.6875rem;
    line-height: 1.2;
    border-width: 1.5px;
  }
  .nav-toggle {
    display: block;
    order: 3;
    flex-shrink: 0;
    margin-left: 0;
    padding: 0.28rem 0.5rem;
    font-size: 0.75rem;
    border-width: 1.5px;
  }
  .header-inner nav {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
  }
  .hero-e__masthead {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    justify-content: flex-start;
  }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem 4vw;
    border-bottom: 1px solid rgba(0, 212, 170, 0.15);
  }
  .nav-main.is-open { display: flex; }
  .program-table { font-size: 0.8125rem; }
  .program-table th, .program-table td { padding: 0.6rem 0.5rem; }
}
