/* ==========================================================
   Nalacita School — shared stylesheet
   Pure CSS, no frameworks. Edit the tokens below to re-theme.
   ========================================================== */

:root {
  --brand-900: #4a0e0b;
  --brand-700: #741611;
  --brand-500: #1d5a4c;
  --brand-100: #e4f0ec;
  --accent-500: #f07c1e;
  --accent-100: #fdeedd;
  --ink: #1d2422;
  --ink-soft: #4b5753;
  --paper: #ffffff;
  --paper-alt: #faf6f3;
  --line: #ebe2dc;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(74, 14, 11, 0.08);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand-700); }
a:hover { color: var(--brand-500); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--brand-900);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-500);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brand-900);
  color: #f0d9d5;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar a { color: #fff; text-decoration: none; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-900);
}
.brand img { width: 42px; height: 42px; }
.brand-name {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-700);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-500);
}

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-900);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.main-nav a:hover { background: var(--brand-100); color: var(--brand-900); }
.main-nav a[aria-current="page"] { background: var(--brand-100); color: var(--brand-900); font-weight: 600; }
.main-nav .nav-cta {
  background: var(--accent-500);
  color: var(--ink);
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: #d96910; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    padding: 8px 0 16px;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { border-radius: 8px; }
  .nav-toggle:checked ~ .main-nav { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent-500); color: var(--ink); }
.btn-primary:hover { background: #d96910; color: var(--ink); }
.btn-outline { border-color: currentColor; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--brand-900); }
.btn-brand { background: var(--brand-700); color: #fff; }
.btn-brand:hover { background: var(--brand-900); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(240, 124, 30, 0.28), transparent 40%),
    linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff;
  padding: 90px 0 100px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: #f3e1dd; max-width: 34ch; }
.hero .eyebrow { color: var(--accent-500); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art {
  background: #fff;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  justify-self: center;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
}
.hero-art img { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero { padding: 60px 0 70px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

.page-hero {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #f3e1dd;
  padding: 64px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p { max-width: 60ch; font-size: 1.1rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 10px;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); }

@media (max-width: 600px) { .section { padding: 56px 0; } }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -56px;
  position: relative;
}
.stat {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--brand-700);
  line-height: 1.1;
}
.stat span { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }
.icon.accent { background: var(--accent-100); color: #b4550a; }

.level-card { border-top: 5px solid var(--brand-500); }
.level-card .ages {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent-100);
  color: #9a4708;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Split (text + visual) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.visual-block {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(116, 22, 17, 0.88), rgba(74, 14, 11, 0.96)),
    repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 14px);
  display: grid;
  place-items: center;
  color: #fff;
  padding: 32px;
  text-align: center;
}
.visual-block blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.4;
}
.visual-block cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.95rem; color: var(--accent-500); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231d5a4c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; }
.news-card time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-500);
  margin-bottom: 6px;
}
.news-card a.more { margin-top: auto; font-weight: 600; text-decoration: none; }

/* ---------- Timeline / steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 64px;
  border-left: 2px dashed var(--line);
  margin-left: 22px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -23px;
  top: -4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--brand-900); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--paper-alt); }

/* ---------- FAQ (native details) ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
  margin-bottom: 12px;
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--brand-500);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 6px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 3px solid rgba(29, 90, 76, 0.25);
  border-color: var(--brand-500);
}
.form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }

.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-item .icon { flex: none; margin: 0; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: 2px; }
.contact-item p { margin: 0; color: var(--ink-soft); }

.map-placeholder {
  border-radius: var(--radius);
  background: var(--brand-100);
  border: 1px dashed var(--brand-500);
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--brand-700);
  text-align: center;
  padding: 20px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent-500);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #4a2408; }
@media (max-width: 600px) { .cta-band { padding: 32px 24px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-900);
  color: #e6c9c4;
  padding: 64px 0 24px;
  font-size: 0.95rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: #fbeeeb; text-decoration: none; }
.site-footer a:hover { color: var(--accent-500); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 32px;
}
.footer-grid .brand { color: #fff; margin-bottom: 14px; }
.footer-grid .brand img { background: #fff; border-radius: 50%; padding: 4px; width: 48px; height: 48px; }
.footer-grid .brand-name { color: #fff; }
.footer-grid .brand-name small { color: var(--accent-500); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Early-years additions ---------- */
.area-card { border-top: 5px solid var(--brand-500); }
.area-card.a2 { border-top-color: var(--accent-500); }
.area-card.a3 { border-top-color: var(--brand-700); }

.day-list { list-style: none; margin: 0; padding: 0; }
.day-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.day-list li:last-child { border-bottom: 0; }
.day-list time { font-weight: 700; color: var(--brand-700); }

.note {
  background: var(--accent-100);
  border-left: 4px solid var(--accent-500);
  border-radius: 10px;
  padding: 16px 20px;
  color: #4a2408;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.wa-float:hover { background: #1ebe5a; color: #fff; }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 520px) {
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .wa-float span { display: none; }
}

.stats.stats-2 { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin-left: auto; margin-right: auto; }
@media (max-width: 520px) { .stats.stats-2 { grid-template-columns: 1fr 1fr; } }
