/* LearnSynthAI — Full Light Theme */

:root {
  --white: #FFFFFF;
  --surface: #F7F8FA;
  --border: #EEF1F5;
  --teal: #0D9B8A;
  --teal-dark: #0a7d6f;
  --ink: #141820;
  --ink-muted: #4a5160;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(20, 24, 32, 0.06);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body.site-learnsynth {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--ink-muted); }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--ink-muted); }
li { margin-bottom: 0.4rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header & Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo svg,
.logo .logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--teal);
  background: var(--surface);
}

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--teal-dark) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.site-header.is-nav-open {
  z-index: 1100;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-close:hover {
  color: var(--teal);
  background: var(--surface);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  transition: color var(--transition);
}

.nav-overlay a:hover { color: var(--teal); }

/* ── Hero Pattern F ── */
.hero-pattern-f {
  padding: 4rem 0 5rem;
  background: var(--surface);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-copy { padding-right: 1rem; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-main-img {
  width: 88%;
  margin-left: 12%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/5;
}

.hero-inset-collage {
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 48%;
  border: 4px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 1;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  margin-left: 0.75rem;
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-alt { background: var(--surface); }
.section-border { background: var(--border); }

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* ── Cards & Grids ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card img {
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

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

.card-grid-2 .card img {
  max-height: 200px;
}

.card .code {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-col-balanced {
  align-items: center;
}

.feature-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.feature-img-compact {
  max-width: 400px;
  width: 100%;
}

.philosophy-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  max-width: 380px;
}

/* ── FAQ Editorial Split ── */
.faq-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.faq-column h2 {
  font-size: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.faq-item p { font-size: 0.95rem; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 3.5rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.1rem; max-width: 600px; }

/* ── Programs Table ── */
.program-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.program-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.program-row:hover { box-shadow: var(--shadow); }

.program-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--teal);
}

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

.contact-info-block {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-info-block h3 { margin-top: 1.5rem; }
.contact-info-block h3:first-child { margin-top: 0; }

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

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

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

.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  order: -1;
}

.form-check label {
  flex: 1;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.5;
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Legal Content ── */
.legal-content { max-width: 780px; }
.legal-content h2 { margin-top: 2.5rem; font-size: 1.35rem; }
.legal-content h3 { margin-top: 1.75rem; font-size: 1.1rem; }
.legal-content p, .legal-content li { font-size: 0.95rem; }

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.legal-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-muted);
}

.legal-nav a:hover { border-color: var(--teal); color: var(--teal); }

/* ── Disclaimer ── */
.disclaimer {
  background: var(--border);
  border-left: 4px solid var(--teal);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.disclaimer p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--ink-muted);
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-magazine {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.9rem;
  max-width: 380px;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-links a:hover { color: var(--teal); }

.footer-ribbon {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer-ribbon a { color: var(--ink-muted); }
.footer-ribbon a:hover { color: var(--teal); }

.footer-contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(20, 24, 32, 0.08);
  padding: 1.25rem 1.5rem;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  font-size: 0.85rem;
  margin: 0;
  flex: 1;
  min-width: 240px;
}

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

.cookie-actions button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}

.cookie-accept {
  background: var(--teal);
  color: var(--white);
}

.cookie-accept:hover { background: var(--teal-dark); }

.cookie-decline {
  background: var(--surface);
  color: var(--ink-muted);
  border: 1px solid var(--border) !important;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

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

.error-page h1 {
  font-size: 6rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding: 2.5rem 0;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ── Services List ── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.service-block:nth-child(even) .service-img { order: 2; }
.service-block:nth-child(even) .service-text { order: 1; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .nav-overlay { display: flex; }

  .hero-grid,
  .two-col,
  .card-grid,
  .card-grid-2,
  .faq-editorial,
  .contact-grid,
  .footer-magazine,
  .service-block,
  .program-row {
    grid-template-columns: 1fr;
  }

  .hero-pattern-f { padding: 2.5rem 0 3.5rem; }
  .hero-visual { min-height: 280px; margin-top: 2rem; }
  .hero-main-img { width: 100%; margin-left: 0; }
  .hero-inset-collage { width: 40%; }

  .section { padding: 3.5rem 0; }

  .program-row { gap: 1rem; }
  .program-code { font-size: 1.25rem; }

  .btn-outline { margin-left: 0; margin-top: 0.75rem; display: inline-block; }

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

  .philosophy-img { max-width: 100%; }

  .feature-img-compact { max-width: 100%; }

  .service-block:nth-child(even) .service-img,
  .service-block:nth-child(even) .service-text { order: unset; }
}

@media (max-width: 480px) {
  .hero-pattern-f { padding: 2rem 0 3rem; }
  .hero-copy .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
  }
  .hero-copy .btn + .btn { margin-top: 0.75rem; }
  .hero-inset-collage { width: 50%; bottom: -0.5rem; }
  .stats-row { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .nav-overlay a { font-size: 1.5rem; padding: 0.6rem 1rem; }
}
