/* LINAPS homepage
   Palette from the school crest and uniform:
   purple (name + tunic), gold (crest ring), red, royal blue, pink gingham (shirts) */
:root {
  --purple: #6a1b6f;
  --purple-deep: #4a1050;
  --gold: #f4b81c;
  --red: #d42a2f;
  --blue: #1f3f9a;
  --pink: #fbe7f0;
  --pink-check: rgba(214, 74, 140, .32);
  --paper: #fffdfb;
  --ink: #2a1d2e;
  --muted: #6b5c6e;
  --line: #ead7e3;
  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--purple); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--purple-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* The gingham pattern from the pupils' shirts */
.gingham {
  background-color: #fff;
  background-image:
    linear-gradient(90deg, var(--pink-check) 50%, transparent 50%),
    linear-gradient(var(--pink-check) 50%, transparent 50%);
  background-size: 18px 18px;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; }
.btn--small { padding: .5rem 1.1rem; font-size: .95rem; }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-deep); }
.btn--gold { background: var(--gold); color: var(--purple-deep); }
.btn--gold:hover { background: #ffc93d; }
.btn--outline { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn--outline:hover { background: var(--pink); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* Top bar */
.topbar { background: var(--purple-deep); color: #f3e6f2; font-size: .875rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: .3rem 2rem; padding: .5rem 0; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,251,.96); backdrop-filter: blur(6px); border-bottom: 4px solid var(--purple); box-shadow: 0 3px 0 var(--gold); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand__logo { width: 64px; height: auto; }
.brand__text { display: flex; flex-direction: column; font-family: var(--display); color: var(--purple); line-height: 1.05; }
.brand__line1 { font-size: 1.45rem; font-weight: 700; }
.brand__line2 { font-size: 1rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--purple); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.nav-toggle { display: none; background: var(--purple); color: #fff; border: 0; border-radius: 8px; padding: .55rem .9rem; font: 600 1rem var(--body); cursor: pointer; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: linear-gradient(180deg, var(--pink) 0%, var(--paper) 100%); }
.hero__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__motto { display: inline-block; font-weight: 700; color: var(--red); font-size: 1rem; margin-bottom: 1rem; }
.hero__text { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Slider: the photo sits in a gingham "uniform" frame */
.slider__frame {
  position: relative; padding: 14px; border-radius: 22px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, var(--pink-check) 50%, transparent 50%),
    linear-gradient(var(--pink-check) 50%, transparent 50%);
  background-size: 18px 18px;
  box-shadow: 0 0 0 4px var(--purple), 0 18px 40px -18px rgba(74,16,80,.55);
}
.slider__track { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--purple-deep); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem .9rem; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(42,10,48,.85)); }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: .7rem; padding-top: 12px; }
.slider__btn, .slider__pause { background: var(--purple); color: #fff; border: 0; border-radius: 999px; height: 38px; min-width: 38px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.slider__pause { font-size: .85rem; font-weight: 700; padding: 0 .9rem; background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.slider__btn:hover { background: var(--purple-deep); }
.slider__dots { display: flex; gap: .45rem; padding: .4rem .7rem; background: #fff; border-radius: 999px; }
.slider__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--purple); background: #fff; padding: 0; cursor: pointer; }
.slider__dot.is-active { background: var(--gold); border-color: var(--purple-deep); }
.slider__empty { aspect-ratio: 16/10; display: grid; place-items: center; background: #fff; border-radius: 12px; color: var(--muted); }

/* Notice strip */
.notice { background: var(--gold); color: var(--purple-deep); }
.notice__inner { display: flex; gap: 1rem; align-items: baseline; padding: .9rem 0; flex-wrap: wrap; }
.notice strong { background: var(--purple-deep); color: #fff; padding: .15rem .7rem; border-radius: 6px; font-size: .9rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section__lead { color: var(--muted); max-width: 40em; font-size: 1.1rem; }

.about__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__text p { max-width: 38em; }
.about__quote { background: var(--purple); color: #fff; border-radius: 20px; padding: 2rem; position: relative; }
.about__quote img { width: 84px; margin-bottom: 1rem; background: #fff; border-radius: 50%; padding: 4px; }
.about__quote blockquote { margin: 0; font-family: var(--display); font-size: 1.45rem; line-height: 1.35; font-weight: 600; }

/* Programmes path: day-care → primary */
.programmes { background: var(--pink); }
.path { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 2.5rem 0 0; position: relative; }
.path::before { content: ""; position: absolute; top: 22px; left: 22px; right: calc(25% - 24px); height: 4px; background: var(--purple); border-radius: 4px; }
.path__step { counter-increment: step; position: relative; padding: 0 1.5rem 0 0; }
.path__step::before { content: counter(step); position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--purple-deep); font: 700 1.3rem var(--display); border: 4px solid var(--purple); margin-bottom: 1.2rem; }
.path__age { display: block; font-weight: 700; color: var(--red); font-size: .95rem; margin-bottom: .2rem; }
.path__step h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.path__step p { color: var(--muted); }

/* Why us */
.why__inner { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 4rem); }
.why__intro p { color: var(--muted); font-size: 1.1rem; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2.5rem; }
.why__list li { padding-left: 1.2rem; border-left: 4px solid var(--gold); }
.why__list h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.why__list p { color: var(--muted); margin: 0; }

/* News */
.news { background: #fff; border-top: 1px solid var(--line); }
.news__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem 2.5rem; margin-top: 1.8rem; }
.news__item { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.news__item time { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; height: 74px; background: var(--pink); border-radius: 12px; color: var(--purple-deep); }
.news__day { font: 700 1.7rem/1 var(--display); }
.news__month { font-size: .8rem; font-weight: 600; }
.news__item h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.news__item p { color: var(--muted); margin: 0; }

/* Admissions band */
.admissions { background: var(--purple); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; position: relative; }
.admissions::before, .admissions::after { content: ""; position: absolute; left: 0; right: 0; height: 18px;
  background-color: #fff;
  background-image: linear-gradient(90deg, var(--pink-check) 50%, transparent 50%), linear-gradient(var(--pink-check) 50%, transparent 50%);
  background-size: 18px 18px; }
.admissions::before { top: 0; }
.admissions::after { bottom: 0; }
.admissions h2 { color: #fff; }
.admissions p { color: #f1dff0; max-width: 34em; font-size: 1.1rem; }
.admissions__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: .8rem; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,.1); border-radius: 12px; padding: .9rem 1.1rem; font-weight: 600; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--purple-deep); font: 700 1.05rem var(--display); }

/* Contact */
.contact__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 2rem; margin: 1.5rem 0 0; }
.contact__list dt { font-weight: 700; color: var(--red); margin-bottom: .3rem; }
.contact__list dd { margin: 0; }

/* Footer echoes the letterhead footer */
.footer { border-top: 4px solid var(--purple); box-shadow: inset 0 3px 0 var(--gold); padding: 2rem 0 1.5rem; text-align: center; font-size: .92rem; color: var(--muted); }
.footer__name { font: 700 1.25rem var(--display); color: var(--purple); margin-bottom: .4rem; }
.footer__small { font-size: .82rem; margin: .8rem 0 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner, .about__inner, .why__inner, .admissions__inner { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .path::before { display: none; }
  .slider { order: -1; }
}
@media (max-width: 820px) {
  .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(--paper); border-bottom: 4px solid var(--purple); padding: .5rem 1.25rem 1rem; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; }
  .header { position: sticky; }
  .header__inner { position: relative; }
}
@media (max-width: 560px) {
  .brand__line1 { font-size: 1.15rem; }
  .brand__line2 { font-size: .82rem; }
  .brand__logo { width: 50px; }
  .path, .why__list { grid-template-columns: 1fr; }
  .topbar__inner { font-size: .8rem; gap: .2rem 1rem; }
  .topbar__item:first-child, .topbar__item:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
}
