/* ============================================================
   MyTutor — Homepage redesign
   Theme system: 3 directions switched by [data-theme] on <html>
   - light      → "Aurora"   (airy cream, soft 3D)
   - dark       → "Midnight" (deep ink, glass + glow)
   - editorial  → "Editorial"(white, big confident type)
   Accent palette + fonts are CSS vars driven by the Tweaks panel.
   ============================================================ */

/* ---------- base tokens (Light / Aurora is the default) ---------- */
:root {
  --accent:   #f4793b;   /* orange (from icons)  */
  --accent-2: #3fb1ea;   /* sky blue (from icons) */
  --accent-3: #ffce4a;   /* warm yellow          */

  --font-display: "Spectral", Georgia, serif;
  --font-body: "Commissioner", system-ui, sans-serif;

  --bg:        #faf6ee;
  --bg-soft:   #f1eae0;
  --surface:   #ffffff;
  --surface-2: #fbf8f2;
  --ink:       #1d1b16;
  --ink-2:     #6a6356;
  --ink-3:     #968d7c;
  --line:      rgba(29,27,22,.10);
  --line-2:    rgba(29,27,22,.06);
  --glass:     rgba(255,255,255,.62);
  --glass-brd: rgba(255,255,255,.7);

  --halo: radial-gradient(120% 120% at 50% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%);

  --shadow-sm: 0 1px 2px rgba(40,30,15,.05), 0 6px 16px -8px rgba(40,30,15,.16);
  --shadow-md: 0 2px 4px rgba(40,30,15,.05), 0 18px 40px -18px rgba(40,30,15,.28);
  --shadow-lg: 0 8px 20px -10px rgba(40,30,15,.22), 0 40px 80px -30px rgba(40,30,15,.34);
  --shadow-accent: 0 18px 40px -16px color-mix(in oklab, var(--accent) 55%, transparent);

  --radius:    26px;
  --radius-sm: 16px;
  --radius-xs: 12px;

  --maxw: 1200px;
  --nav-h: 74px;

  --display-weight: 600;
  --h1-size: clamp(2.6rem, 6vw, 5rem);
  --h1-tracking: -0.02em;
  --hero-label-transform: none;
}

/* ---------- Dark / Midnight ---------- */
[data-theme="dark"] {
  --bg:        #0a0e18;
  --bg-soft:   #0e1422;
  --surface:   #131b2c;
  --surface-2: #0f1626;
  --ink:       #eef2fa;
  --ink-2:     #9fabc4;
  --ink-3:     #6b768f;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.06);
  --glass:     rgba(18,26,44,.55);
  --glass-brd: rgba(255,255,255,.10);
  --accent:   #ff8a4c;
  --accent-2: #54c1f5;

  --halo: radial-gradient(120% 120% at 50% 0%, color-mix(in oklab, var(--accent-2) 22%, transparent), transparent 62%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px -10px rgba(0,0,0,.6);
  --shadow-md: 0 2px 6px rgba(0,0,0,.4), 0 22px 50px -22px rgba(0,0,0,.7);
  --shadow-lg: 0 10px 30px -12px rgba(0,0,0,.6), 0 50px 90px -34px rgba(0,0,0,.8);
  --shadow-accent: 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent), 0 24px 60px -22px color-mix(in oklab, var(--accent) 60%, transparent);
}

/* ---------- Editorial ---------- */
[data-theme="editorial"] {
  --bg:        #ffffff;
  --bg-soft:   #f4f2ec;
  --surface:   #ffffff;
  --surface-2: #faf8f3;
  --ink:       #100f0d;
  --ink-2:     #59544b;
  --ink-3:     #908a7d;
  --line:      rgba(16,15,13,.14);
  --line-2:    rgba(16,15,13,.07);
  --glass:     rgba(255,255,255,.8);
  --glass-brd: rgba(16,15,13,.1);

  --display-weight: 700;
  --h1-size: clamp(3rem, 8vw, 6.6rem);
  --h1-tracking: -0.045em;
  --hero-label-transform: uppercase;
  --radius:    14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --halo: radial-gradient(120% 120% at 50% 0%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 55%);
}

/* ============================================================
   Reset / base
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.05; letter-spacing: var(--h1-tracking); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 14px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; }

section { position: relative; }
.pad { padding-block: clamp(72px, 9vw, 130px); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { transform: translateY(-2px); }
[data-theme="editorial"] .btn-primary { border-radius: 8px; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-text { padding: 6px 0; color: var(--accent); font-weight: 600; }
.btn-text .arr { transition: transform .2s; }
.btn-text:hover .arr { transform: translateX(4px); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--accent), color-mix(in oklab, var(--accent-2) 80%, var(--accent)));
  box-shadow: var(--shadow-accent); position: relative; overflow: hidden;
}
.brand .mark svg { width: 21px; height: 21px; }
.brand b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-weight: 500; color: var(--ink-2);
  font-size: .96rem; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--line-2); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-icon-btn {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink-2); transition: transform .18s, color .2s, border-color .2s;
}
.nav-icon-btn:hover { transform: translateY(-2px); color: var(--accent); }
.nav-icon-btn svg { width: 19px; height: 19px; }
#themeToggle[aria-pressed="true"] { color: var(--accent-3); border-color: color-mix(in oklab, var(--accent-3) 40%, var(--line)); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; background: var(--surface); border: 1px solid var(--line); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(60px, 8vw, 120px); position: relative; overflow: clip; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background: var(--halo);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; text-align: center; align-items: center; }
.hero-eyebrow { justify-content: center; }
.hero h1 { font-size: var(--h1-size); margin: 18px auto 22px; max-width: 14ch; text-wrap: balance; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--ink-2); max-width: 56ch; margin: 0 auto 34px; text-wrap: pretty; }

/* soft 3D floating objects */
.floaty { position: absolute; z-index: -1; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(40,30,15,.22)); opacity: .96; }
[data-theme="dark"] .floaty { filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.floaty img { width: 100%; }
[data-icons="off"] .floaty { display: none; }
.f1 { width: 132px; top: 16%;  left: 4%;  animation: bob 7s ease-in-out infinite; }
.f2 { width: 116px; top: 12%;  right: 5%; animation: bob 8s ease-in-out infinite .6s; }
.f3 { width: 100px; bottom: 6%; left: 9%; animation: bob 6.4s ease-in-out infinite .3s; }
.f4 { width: 92px;  bottom: 12%; right: 8%; animation: bob 7.6s ease-in-out infinite .9s; }
@keyframes bob { 0%,100%{ transform: translateY(0) rotate(-3deg);} 50%{ transform: translateY(-18px) rotate(3deg);} }
@media (prefers-reduced-motion: reduce){ .floaty{ animation: none !important; } }

/* ===== hero: one CTA per service ===== */
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta .btn img { width: 24px; height: 24px; object-fit: contain; flex: none; }
@media (max-width: 620px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ===== hero sun/moon (theme-based) + astronaut ===== */
.hero-celestial { position: absolute; top: clamp(24px, 6vw, 74px); left: clamp(18px, 7vw, 104px); width: clamp(74px, 10.5vw, 132px); z-index: -1; animation: bob 9s ease-in-out infinite; }
.hero-celestial img { width: 100%; }
.hero-sun { display: block; filter: drop-shadow(0 10px 26px rgba(244,121,59,.35)); }
.hero-moon { display: none; filter: drop-shadow(0 8px 24px rgba(210,220,255,.32)); }
[data-theme="dark"] .hero-sun { display: none; }
[data-theme="dark"] .hero-moon { display: block; }
.hero-astronaut { position: absolute; right: clamp(6px, 4vw, 66px); bottom: clamp(8px, 3vw, 40px); width: clamp(110px, 15vw, 188px); z-index: -1; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(40,30,15,.22)); animation: bob 8s ease-in-out infinite; }
[data-theme="dark"] .hero-astronaut { filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
@media (max-width: 560px) { .hero-astronaut { width: 96px; right: 4px; bottom: 6px; opacity: .85; } .hero-celestial { width: 68px; left: 10px; } }

/* ===== page-wide scattered decorative icons (behind content, in the whitespace) ===== */
main { position: relative; }
.page-floaties { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.page-floaties .pf { position: absolute; width: 60px; opacity: .7; filter: drop-shadow(0 20px 26px rgba(40,30,15,.16)); animation: bob 7s ease-in-out infinite; }
[data-theme="dark"] .page-floaties .pf { filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); opacity: .55; }
.pf1 { left: 2.5%; top: 26%; width: 66px; animation-duration: 7.5s; }
.pf2 { right: 3%;  top: 34%; width: 52px; animation-duration: 6.5s; animation-delay: -1.5s; }
.pf3 { left: 3.5%; top: 50%; width: 60px; animation-duration: 8s;   animation-delay: -3s; }
.pf4 { right: 3.5%; top: 63%; width: 62px; animation-duration: 7s;   animation-delay: -2.2s; }
.pf5 { left: 3%;   top: 79%; width: 50px; animation-duration: 7.8s; animation-delay: -4s; }
.pf6 { right: 4%;  top: 89%; width: 56px; animation-duration: 6.8s; animation-delay: -1s; }
@media (max-width: 1080px) { .page-floaties { display: none; } }
@media (prefers-reduced-motion: reduce) { .page-floaties .pf, .hero-celestial, .hero-astronaut { animation: none !important; } }

/* trust chips under search */
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.hero-tags .lbl { color: var(--ink-3); font-size: .9rem; align-self: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: transform .15s, color .2s, border-color .2s;
}
.chip:hover { transform: translateY(-2px); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 64px; }
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.8rem,3vw,2.6rem); display: block; letter-spacing: -.02em; }
.stat b .u { color: var(--accent); }
.stat span { color: var(--ink-2); font-size: .92rem; }

/* ============================================================
   Search (the hero feature)
   ============================================================ */
.search { max-width: 720px; margin: 0 auto; position: relative; z-index: 30; text-align: left; }
.search-box {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: box-shadow .25s, border-color .25s, transform .2s;
}
.search.open .search-box, .search-box:focus-within {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
  box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent);
}
[data-theme="editorial"] .search-box { border-radius: 12px; }
.search-box .ic { color: var(--ink-3); flex: none; display: grid; place-items: center; }
.search-box .ic svg { width: 22px; height: 22px; }
.search-box input {
  flex: 1; border: none; outline: none; background: none; font-size: 1.08rem; min-width: 0;
  padding-block: 8px;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box .kbd {
  display: inline-flex; gap: 3px; align-items: center; color: var(--ink-3); font-size: .76rem;
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 7px; background: var(--surface-2);
}
.search-go { background: var(--accent); color:#fff; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; flex: none; box-shadow: var(--shadow-accent); transition: transform .15s; }
.search-go:hover { transform: scale(1.06); }
.search-go svg { width: 20px; height: 20px; }
[data-theme="editorial"] .search-go { border-radius: 10px; }

/* filter pills */
.search-filters { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.fpill {
  padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 500;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); transition: all .18s;
}
.fpill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme="editorial"] .fpill { border-radius: 7px; }

/* results dropdown */
.results {
  position: absolute; top: calc(100% + 14px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); overflow: hidden; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.99); transform-origin: top center;
  transition: opacity .2s, transform .2s, visibility .2s; max-height: 60vh; overflow-y: auto;
}
.search.open .results { opacity: 1; visibility: visible; transform: none; }
[data-theme="editorial"] .results { border-radius: 12px; }
.res-group-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); padding: 14px 14px 8px; display: flex; justify-content: space-between;
}
.res-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px;
  cursor: pointer; transition: background .14s;
}
.res-item:hover, .res-item.active { background: var(--bg-soft); }
.res-ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, var(--surface)); color: var(--accent); }
.res-ic.t-school { background: color-mix(in oklab, var(--accent-2) 14%, var(--surface)); color: var(--accent-2); }
.res-ic.t-service { background: color-mix(in oklab, var(--accent-3) 22%, var(--surface)); color: color-mix(in oklab, var(--accent-3) 60%, var(--ink)); }
.res-ic svg { width: 20px; height: 20px; }
.res-main { min-width: 0; flex: 1; }
.res-main b { font-weight: 600; font-size: .98rem; display: block; }
.res-main span { font-size: .84rem; color: var(--ink-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-tag { font-size: .74rem; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; flex: none; }
.res-empty { padding: 34px 18px; text-align: center; color: var(--ink-2); }
.res-empty b { display: block; color: var(--ink); margin-bottom: 4px; font-family: var(--font-display); }
mark { background: color-mix(in oklab, var(--accent-3) 50%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ============================================================
   Services
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.scard {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px 28px; box-shadow: var(--shadow-md);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; overflow: hidden;
}
.scard::after { content:""; position:absolute; inset:0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity:0; transition: opacity .25s; }
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.scard:hover::after { opacity: 1; }
.scard .badge {
  position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, var(--surface)); padding: 5px 11px; border-radius: 999px;
}
.scard .icn {
  width: 78px; height: 78px; margin-bottom: 22px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-soft)); box-shadow: var(--shadow-sm); position: relative;
}
.scard .icn img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(40,30,15,.18)); }
[data-icons="off"] .scard .icn img { display: none; }
[data-icons="off"] .scard .icn::after { content: attr(data-glyph); font-size: 30px; }
.scard h3 { font-size: 1.45rem; margin-bottom: 10px; }
.scard p { color: var(--ink-2); font-size: .98rem; margin-bottom: 20px; }
.scard ul { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.scard li { display: flex; gap: 9px; align-items: center; font-size: .92rem; color: var(--ink-2); }
.scard li svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* ============================================================
   Popular schools / subjects grid (SEO findability)
   ============================================================ */
.dir-layout { display: grid; grid-template-columns: 1fr; gap: 36px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dir-item {
  display: flex; align-items: center; gap: 13px; padding: 15px 17px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .2s, border-color .2s;
}
.dir-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); }
.dir-item .n { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); background: var(--bg-soft); color: var(--accent); font-size: .95rem; }
.dir-item .info { min-width: 0; }
.dir-item .info b { display: block; font-weight: 600; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-item .info span { font-size: .82rem; color: var(--ink-3); }
.dir-item .ct { margin-left: auto; font-size: .8rem; color: var(--ink-3); flex: none; }

/* ============================================================
   How it works (steps)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; position: relative; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-md); position: relative;
}
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 13px; margin-bottom: 18px;
  background: var(--ink); color: var(--bg);
}
[data-theme="light"] .step:nth-child(1) .num, :root .step:nth-child(1) .num { background: var(--accent); color: #fff; }
.step:nth-child(2) .num { background: var(--accent-2); color: #fff; }
.step:nth-child(3) .num { background: var(--accent-3); color: #2a230e; }
.step h3 { font-size: 1.2rem; margin-bottom: 9px; }
.step p { color: var(--ink-2); font-size: .95rem; }

/* ============================================================
   Why us (features)
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feat { padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat .fic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in oklab, var(--accent) 12%, var(--surface)); color: var(--accent); }
.feat .fic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: .94rem; }

/* ============================================================
   CTA / Contact
   ============================================================ */
.contact-card {
  border-radius: calc(var(--radius) + 8px); overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); background: var(--surface);
}
.contact-aside {
  padding: clamp(34px, 4vw, 58px); position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, color-mix(in oklab, var(--accent) 92%, #000 0%), color-mix(in oklab, var(--accent-2) 72%, var(--accent)));
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
}
.contact-aside::before { content:""; position:absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.14); top: -90px; right: -70px; }
.contact-aside .eyebrow { color: rgba(255,255,255,.9); }
.contact-aside .eyebrow::before { background: rgba(255,255,255,.9); }
.contact-aside h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; position: relative; }
.contact-aside p { color: rgba(255,255,255,.92); position: relative; margin-top: 14px; }
.contact-aside .mascot { position: relative; align-self: flex-start; width: 130px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); }
[data-icons="off"] .contact-aside .mascot { display: none; }
.aside-list { list-style: none; display: grid; gap: 12px; position: relative; }
.aside-list li { display: flex; gap: 11px; align-items: center; font-size: .98rem; }
.aside-list svg { width: 20px; height: 20px; flex: none; }

.contact-form { padding: clamp(30px, 4vw, 50px); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-xs);
  padding: 13px 15px; font-size: .98rem; outline: none; transition: border-color .2s, box-shadow .2s;
  width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 16%, transparent); }
.contact-form .btn-primary { justify-content: center; margin-top: 6px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 60px 30px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 44px; }
.foot-brand p { color: var(--ink-2); font-size: .94rem; max-width: 32ch; margin-top: 14px; }
.foot-col .foot-h { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.foot-col a { display: block; color: var(--ink-2); padding: 6px 0; font-size: .95rem; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: transform .18s, color .2s; }
.socials a:hover { transform: translateY(-3px); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; color: var(--ink-2); font-size: .86rem; }
.foot-bottom .links { display: flex; gap: 22px; }
.foot-bottom a:hover { color: var(--accent); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 13px 20px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--accent-3); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .cards-3, .steps, .feat-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .contact-card { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: grid; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .search-box .kbd { display: none; }
  .floaty { opacity: .5; }
  .stat b { font-size: 1.7rem; }
  /* nav CTA is duplicated inside the mobile menu — drop it so the
     brand + theme/search/burger row never overflows on phones */
  .nav-cta { display: none; }
  .nav-right { gap: 8px; }
}

/* ============================================================
   Mobile menu (shared chrome)
   ============================================================ */
.mobile-menu {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: 14px 24px 20px; flex-direction: column; gap: 4px;
}
.nav.menu-open { background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.nav.menu-open .mobile-menu { display: flex; }
.mobile-menu a { padding: 13px 10px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu a:hover { background: var(--bg-soft); }
.mobile-menu .btn { margin-top: 10px; justify-content: center; }
.nav-links a[aria-current="page"] { color: var(--ink); background: color-mix(in oklab, var(--accent) 12%, transparent); }

/* ============================================================
   Inner page hero
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(46px, 6vw, 84px));
  padding-bottom: clamp(34px, 5vw, 60px);
  position: relative; overflow: clip; isolation: isolate;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--halo); }
.page-hero .wrap { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 16px 0 18px; max-width: 16ch; text-wrap: balance; }
.page-hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { font-size: clamp(1.04rem, 1.6vw, 1.24rem); color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.page-hero .hero-art { justify-self: center; width: min(280px, 80%); filter: drop-shadow(0 26px 36px rgba(40,30,15,.22)); animation: bob 8s ease-in-out infinite; }
[data-theme="dark"] .page-hero .hero-art { filter: drop-shadow(0 26px 44px rgba(0,0,0,.6)); }
[data-icons="off"] .page-hero .hero-art { display: none; }

.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--ink-3); margin-bottom: 4px; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .45; }

.page-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ============================================================
   Course directory (panepistimiaka)
   ============================================================ */
.dir-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.dir-toolbar .fpill { font-size: .9rem; padding: 9px 16px; }

.school {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 30px); margin-bottom: 20px;
  transition: box-shadow .25s, border-color .2s;
}
.school:hover { box-shadow: var(--shadow-md); }
.school-head { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.school-head .n {
  width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-weight: 700; font-family: var(--font-display); font-size: 1.05rem;
  background: linear-gradient(150deg, color-mix(in oklab, var(--accent) 16%, var(--surface)), color-mix(in oklab, var(--accent-2) 16%, var(--surface)));
  color: var(--accent);
}
.school-head .meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.school-head .meta b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.22rem; letter-spacing: -.01em; }
.school-head .meta span { color: var(--ink-3); font-size: .92rem; }
.school-head .cnt { margin-left: auto; flex: none; font-size: .82rem; color: var(--ink-2); background: var(--bg-soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.course-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 11px; }
.course {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); font-size: .94rem; font-weight: 500;
  transition: transform .16s, border-color .2s, box-shadow .2s; cursor: pointer;
}
.course:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.course .ci { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 12%, var(--surface)); color: var(--accent); }
.course .ci svg { width: 16px; height: 16px; }
.course .arr { margin-left: auto; color: var(--ink-3); transition: transform .18s; }
.course:hover .arr { transform: translateX(3px); color: var(--accent); }
.school.hide, .course.hide { display: none; }
.no-match { text-align: center; padding: 50px 20px; color: var(--ink-2); }
.no-match b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.3rem; margin-bottom: 6px; }

/* ============================================================
   Generic split + info cards (ergasies / sxolika)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.split.narrow { grid-template-columns: 1.15fr .85fr; }
.media-card {
  position: relative; border-radius: calc(var(--radius) + 6px); padding: 40px; overflow: hidden;
  background: linear-gradient(155deg, color-mix(in oklab, var(--accent) 14%, var(--surface)), color-mix(in oklab, var(--accent-2) 16%, var(--surface)));
  border: 1px solid var(--line); box-shadow: var(--shadow-md); display: grid; place-items: center; min-height: 280px;
}
.media-card img { width: min(260px, 70%); filter: drop-shadow(0 22px 30px rgba(40,30,15,.25)); }
[data-icons="off"] .media-card img { display: none; }
[data-icons="off"] .media-card::after { content: attr(data-glyph); font-size: 76px; }

.check-list { list-style: none; display: grid; gap: 13px; margin-top: 8px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 1rem; }
.check-list li svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }
.check-list li b { color: var(--ink); font-weight: 600; }

.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 32px; text-align: center;
}
.price-card .tag { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.price-card .amt { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 3rem; margin: 10px 0 4px; }
.price-card .amt small { font-size: 1rem; color: var(--ink-3); font-family: var(--font-body); font-weight: 500; }
.price-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 20px; }

.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.level {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.level:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.level .lt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.level h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.level p { color: var(--ink-2); font-size: .94rem; }

@media (max-width: 940px) {
  .page-hero-grid { grid-template-columns: 1fr; text-align: left; }
  .page-hero .hero-art { display: none; }
  .split, .split.narrow { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: 1fr; }
}

/* breathing room above the contact call-to-action */
.contact-cta-sec { margin-top: clamp(24px, 4vw, 56px); }
.contact-cta-sec .section-head .btn { margin-top: clamp(16px, 2.4vw, 26px); }

/* ===== full-page modal search ===== */
body.sm-lock { overflow: hidden; }
.search-modal { position: fixed; inset: 0; z-index: 200; }
.search-modal[hidden] { display: none; }
.sm-backdrop { position: absolute; inset: 0; background: color-mix(in oklab, var(--ink) 55%, transparent); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s ease; }
.search-modal.open .sm-backdrop { opacity: 1; }
.sm-panel {
  position: relative;
  width: min(640px, calc(100% - 32px));
  margin: min(12vh, 100px) auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .45);
  padding: 16px;
  opacity: 0;
  transform: translateY(-10px) scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}
.search-modal.open .sm-panel { opacity: 1; transform: none; }
.sm-panel .search-box { margin: 0; }
.sm-panel .search-filters { justify-content: flex-start; margin-top: 12px; }
.sm-close { background: none; border: 0; color: var(--ink-3); cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sm-close:hover { background: var(--bg-soft); color: var(--ink); }
.sm-close svg { width: 18px; height: 18px; }
.sm-results { margin-top: 12px; max-height: min(52vh, 440px); overflow-y: auto; }
.sm-pop { padding: 6px 2px 8px; }
.sm-pop .lbl { font-size: .8rem; color: var(--ink-3); display: block; margin-bottom: 10px; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .sm-panel { margin: 0; width: 100%; min-height: 100%; border-radius: 0; border: 0; }
  .sm-results { max-height: calc(100vh - 150px); }
}

/* ===== content-section (SEO text) — left-aligned to match .section-head ===== */
.cs-body { max-width: 760px; }
.cs-body p { color: var(--ink-2); line-height: 1.75; font-size: 1.02rem; margin: 0 0 14px; }
.check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 34px; margin-top: 22px; max-width: 920px; }
.check-grid li { font-size: .98rem; line-height: 1.5; }
.cs-cta { margin-top: 30px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; max-width: 940px; }
@media (max-width: 640px) { .check-grid { grid-template-columns: 1fr; } }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 16px 2px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; flex: none; transition: transform .18s; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 2px 18px; color: var(--ink-2); line-height: 1.7; }

/* long-form legal / prose pages */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 6px; }
.prose .prose-updated { color: var(--ink-2); font-size: .9rem; margin: 0 0 22px; }
.prose .lead { margin: 0 0 8px; }
.prose h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.prose p { color: var(--ink-2); margin: 0 0 12px; line-height: 1.7; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); }
.prose li { margin: 5px 0; line-height: 1.6; }
.prose a:not(.btn) { color: var(--accent); font-weight: 600; }
