/* ==========================================================================
   Lea's Academy — stylesheet
   Brand colours are taken from the printed flyer so parents recognise the
   site when they scan the QR code.
   ========================================================================== */

:root {
  --yellow:        #FBD85D;
  --yellow-soft:   #FEF6DC;
  --yellow-deep:   #F5C518;
  --red:           #DC2626;
  --red-dark:      #B01B1B;
  --ink:           #1A1A1A;
  --ink-soft:      #4A4A4A;
  --ink-faint:     #767676;
  --line:          #E7E2D4;
  --paper:         #FFFFFF;
  --whatsapp:      #25D366;

  --wrap:          1120px;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 2px 4px rgba(26,26,26,.05), 0 12px 28px rgba(26,26,26,.07);
  --shadow-sm:     0 1px 2px rgba(26,26,26,.06), 0 4px 12px rgba(26,26,26,.05);

  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

section { padding: clamp(3rem, 7vw, 5rem) 0; }

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--body);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 .7rem;
}

/* --- Skip link ----------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0; z-index: 999;
}
.skip:focus { left: 0; top: 0; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow);
  border-bottom: 2px solid rgba(26,26,26,.09);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.32rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand span { color: var(--red); }

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

.nav a {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 999px;
}
.nav a:hover { background: rgba(255,255,255,.55); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--yellow); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--ink); color: var(--yellow);
  border: 0; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: .9rem;
  padding: .5rem .85rem; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--yellow);
    border-bottom: 2px solid rgba(26,26,26,.12);
    padding: .5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .4rem; border-radius: var(--radius-sm); }
  .site-header .wrap { position: relative; }
  .brand { margin-right: 0; }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--body); font-weight: 800; font-size: 1rem;
  padding: .85rem 1.5rem;
  border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-wa { background: var(--whatsapp); color: #06301A; box-shadow: var(--shadow-sm); }
.btn-wa:hover { background: #1FBF5A; color: #06301A; }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--yellow); }

.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(80% 70% at 15% 100%, rgba(236,138,190,.28) 0%, rgba(236,138,190,0) 65%),
    var(--yellow);
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 7vw, 4.5rem);
}

.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 52ch; color: #3B3222; font-weight: 600; }

.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

.hero-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.75rem;
  box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.25rem; margin-bottom: .9rem; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1.5rem 0 0; padding: 0; list-style: none;
}
.trust-row li {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(26,26,26,.1);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .85rem; font-weight: 700;
}

/* --- Offer banner -------------------------------------------------------- */
.offer {
  background: var(--ink); color: #fff;
  text-align: center;
  padding: 1.1rem 0;
}
.offer p { margin: 0; font-weight: 700; font-size: 1rem; }
.offer strong { color: var(--yellow); }

/* --- Cards --------------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .96rem; color: var(--ink-soft); }

a.card { text-decoration: none; color: inherit; display: block; transition: transform .14s ease, box-shadow .14s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
a.card .more { display: inline-block; margin-top: .8rem; font-weight: 800; color: var(--red); font-size: .92rem; }

.card-levels { font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem; }

.tint { background: var(--yellow-soft); }
.tint-ink { background: var(--ink); color: #fff; }
.tint-ink h2, .tint-ink h3 { color: #fff; }
.tint-ink p { color: #DCD8CE; }
.tint-ink .eyebrow { color: var(--yellow); }

/* --- Feature list -------------------------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.ticks li { position: relative; padding-left: 2rem; font-size: 1rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 1.15rem; height: .6rem;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.ticks.on-dark li::before { border-color: var(--yellow); }

/* --- Fees table ---------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }

table.fees {
  width: 100%; min-width: 620px;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.fees th, table.fees td {
  padding: .95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .97rem;
  vertical-align: top;
}
table.fees thead th {
  background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  border-bottom: 0;
}
table.fees tbody tr:last-child td { border-bottom: 0; }
table.fees tbody tr:nth-child(even) { background: #FCFBF7; }
table.fees .price { font-weight: 800; white-space: nowrap; }
table.fees .month { color: var(--ink-faint); font-size: .87rem; display: block; font-weight: 600; }

/* --- Schedule ------------------------------------------------------------ */
.slots { display: grid; gap: .8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .slots { grid-template-columns: repeat(2, 1fr); } }

.slot {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
}
.slot .when { font-weight: 800; font-size: .95rem; min-width: 8.5rem; }
.slot .what { font-size: .93rem; color: var(--ink-soft); margin-right: auto; }
.pill {
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .7rem; border-radius: 999px; white-space: nowrap;
}
.pill-open { background: #DCFCE7; color: #12603A; }
.pill-last { background: #FEF3C7; color: #78500A; }
.pill-full { background: #F1EFEA; color: var(--ink-faint); }

/* --- Steps --------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; padding: 0; margin: 1.75rem 0 0; list-style: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.1rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.3rem; height: 2.3rem;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  border-radius: 50%;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.steps p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { margin-top: 1.5rem; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.15rem;
  margin-bottom: .7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 1rem 2rem 1rem 0;
  list-style: none;
  position: relative;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.5rem; color: var(--red); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > ul { padding-bottom: 1.1rem; color: var(--ink-soft); font-size: .97rem; margin-top: 0; }

/* --- Testimonials -------------------------------------------------------- */
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow-deep);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
}
.quote blockquote { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.6; }
.quote cite { font-style: normal; font-weight: 800; font-size: .88rem; color: var(--ink-faint); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  background: var(--yellow);
  text-align: center;
  padding: clamp(2.75rem, 6vw, 4rem) 0;
}
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 50ch; margin-inline: auto; color: #3B3222; font-weight: 600; }
.cta-band .btn-row { justify-content: center; }

/* --- Sub-nav (sibling subject pages) ------------------------------------- */
.subnav { background: var(--yellow-soft); border-bottom: 1px solid var(--line); padding: .8rem 0; }
.subnav ul { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.subnav a {
  display: inline-block; font-size: .87rem; font-weight: 700; text-decoration: none;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
}
.subnav a:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* --- Breadcrumbs --------------------------------------------------------- */
.crumbs { font-size: .85rem; color: var(--ink-faint); padding: 1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--ink-faint); }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: #C9C5BC;
  padding: 3rem 0 2rem;
  font-size: .93rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  font-size: .85rem; color: #8E8A82;
}

/* --- Sticky mobile WhatsApp bar ------------------------------------------ */
.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.wa-bar .btn { width: 100%; }
@media (max-width: 700px) {
  .wa-bar { display: block; }
  body { padding-bottom: 4.5rem; }
}

/* --- Utilities ----------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.5rem; }
.small { font-size: .87rem; color: var(--ink-faint); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
