/* ==========================================================================
   Little Stars Academy, main.css
   Design system: see DESIGN_SYSTEM.md
   Vanilla CSS, mobile-first, no frameworks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour: taken from the school logo (slate, gold, green, cyan, coral) */
  --brand: #4377a3;      /* slate, from the logo's book pages */
  --brand-deep: #2c5578; /* deep slate: hover, footer, hero overlay */
  --brand-muted: #8fb3cf;
  --brand-soft: #dce8f2; /* pale slate: active nav, soft accents */
  --ink: #1f2e3a;        /* deep navy-slate text */
  --cream: #faf7f0;
  --paper: #ffffff;
  --sand: #f1e9da;
  --line: #e5dcc8;
  --gold: #ffcb05;       /* from the logo's "L" */
  --gold-deep: #c9a400;
  --stone: #5b6770;
  --on-dark: #f7f2ec;
  --on-dark-muted: #c9d7e3;
  /* Logo accent colours, one per school division */
  --c-cyan: #00adef;   /* Pre-Primary */
  --c-green: #619f60;  /* Basic Level */
  --c-coral: #df674f;  /* Junior Level */
  --c-slate: #4377a3;  /* Senior Level */

  /* Type scale */
  --fs-hero: clamp(2.6rem, 6.5vw, 4.6rem);
  --fs-h1: clamp(2.2rem, 4.5vw, 3.4rem);
  --fs-h2: clamp(1.8rem, 3.4vw, 2.6rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  /* Layout */
  --container: min(1160px, 92vw);
  --container-narrow: min(760px, 92vw);
  --section-pad: clamp(4rem, 9vw, 6.5rem);
  --radius: 8px;
  --radius-lg: 14px;

  /* Misc */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-soft: 0 1px 2px rgba(44, 85, 120, 0.06), 0 8px 24px rgba(44, 85, 120, 0.06);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 150ms ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1.1rem;
}

ul, ol {
  padding-left: 1.25rem;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: var(--container);
  margin-inline: auto;
}

.container-narrow {
  width: var(--container-narrow);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.section--sand {
  background: var(--sand);
}

.section--dark {
  background: var(--brand-deep);
  color: var(--on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--on-dark);
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { 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); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Split: image + text editorial rows */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split-media { order: 2; }
}

.split-media {
  position: relative;
}

.split-media img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.split-media:hover img {
  transform: scale(1.02);
}

.split-media--4x3 img { aspect-ratio: 4 / 3; }
.split-media--3x2 img { aspect-ratio: 3 / 2; }

/* Decorative frame behind media */
.split-media::before {
  content: "";
  position: absolute;
  inset: -1.25rem auto auto -1.25rem;
  width: 45%;
  height: 45%;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--stone);
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease,
    transform 150ms ease, box-shadow 150ms ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary:hover {
  box-shadow: 0 10px 22px rgba(44, 85, 120, 0.28);
}

.btn--amber:hover {
  box-shadow: 0 10px 22px rgba(201, 164, 0, 0.32);
}

.btn--primary {
  background: var(--brand);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--brand-deep);
  color: var(--paper);
}

.btn--secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--sand);
  color: var(--ink);
}

.btn--amber {
  background: var(--gold);
  color: var(--ink);
}

.btn--amber:hover {
  background: var(--gold-deep);
  color: var(--ink);
}

.btn--on-dark {
  background: var(--on-dark);
  color: var(--brand-deep);
}

.btn--on-dark:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.btn--outline-on-dark {
  background: transparent;
  border-color: rgba(242, 245, 240, 0.45);
  color: var(--on-dark);
}

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

/* --------------------------------------------------------------------------
   5. (removed) Top utility bar
   The old utility strip (email / phone / socials) was folded into the
   single-row header and the footer, so the header is one layer, not three.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 150ms ease;
}

/* Brand echo: the four colours of the logo crest as a hairline strip */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--c-slate) 0 25%,
    var(--c-cyan) 25% 50%,
    var(--c-green) 50% 75%,
    var(--c-coral) 75% 100%
  );
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(44, 85, 120, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand__text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}

.brand__text span {
  font-size: var(--fs-micro);
  color: var(--stone);
}

@media (min-width: 1180px) {
  .brand__text { display: flex; }
}

/* Navigation: single row, plain links with a hairline underline.
   No pills, no boxes. The underline does the work. */
.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--brand-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav a:hover {
  color: var(--brand-deep);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--brand-deep);
}

.nav a.is-active::after {
  background: var(--gold);
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions .btn {
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
  white-space: nowrap;
}


.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* One-row header. Below 1280px the nav lives in the slide-down menu. */
@media (min-width: 1280px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 1rem 0 1.25rem;
}

.mobile-menu.is-open {
  display: block;
  animation: menu-drop 220ms ease;
}

@keyframes menu-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

.mobile-menu a.is-active {
  color: var(--brand);
}

.mobile-menu .btn {
  margin-top: 1rem;
  width: 100%;
}

.mobile-menu__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0 0 0.9rem;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--brand-deep);
}

.mobile-menu__contact a {
  display: inline-flex;
  padding: 0.15rem 0;
  border-bottom: none;
  color: var(--brand-deep);
}

/* --------------------------------------------------------------------------
   7. Hero: clean two-column
   Text on paper, photograph on the right framed with brand corner brackets
   and a circular logo badge. No full-bleed overlay.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: max(520px, 80vh);
}

.hero__content {
  animation: hero-rise 550ms ease both;
}

.hero__media {
  animation: hero-rise 650ms ease 120ms both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__content {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.hero__eyebrow {
  color: var(--brand);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.hero h1 {
  font-size: var(--fs-hero);
  color: var(--ink);
  line-height: 1.06;
  margin-bottom: 1.2rem;
  max-width: 14ch;
}

.hero__accent {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--brand);
}

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--stone);
  max-width: 48ch;
  margin-bottom: 1.8rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Muted fact list with slate checkmarks */
.hero__points {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--ink);
}

.hero__points li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234377a3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hero__recognition {
  margin: 1.4rem 0 0;
  max-width: 52ch;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  color: var(--stone);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Framed photograph */
.hero__media {
  position: relative;
  display: flex;
  padding: 1.5rem;
}

/* Brand corner brackets, echoing a framed photograph */
.hero__media::before,
.hero__media::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border: 3px solid var(--brand);
}

.hero__media::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 14px 0 0 0;
}

.hero__media::after {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 14px 0;
}

.hero__media img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* Circular logo badge, overlapping the top-right of the photograph */
.hero__badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--brand-deep);
  border: 2px solid rgba(247, 242, 236, 0.45);
  box-shadow: 0 10px 30px rgba(44, 85, 120, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__badge img {
  width: 62px;
  height: 62px;
  min-height: 0;
  border-radius: 50%;
  box-shadow: none;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }
  .hero__content {
    padding-block: clamp(2.5rem, 9vw, 3.5rem);
  }
  .hero__media {
    padding: 1.1rem;
    margin-bottom: 1.5rem;
  }
  .hero__media img {
    min-height: 0;
    height: 320px;
  }
  .hero__media::before,
  .hero__media::after {
    width: 52px;
    height: 52px;
  }
  .hero__badge {
    width: 76px;
    height: 76px;
    top: 0.3rem;
    right: 0.3rem;
  }
  .hero__badge img {
    width: 52px;
    height: 52px;
  }
}

/* --------------------------------------------------------------------------
   7b. Journey strip: the four divisions, colour-coded to the logo
   -------------------------------------------------------------------------- */
.journey {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.journey__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .journey__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .journey__grid { grid-template-columns: repeat(4, 1fr); }
}

.journey__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.5rem 1.5rem 1.6rem;
  border-top: 4px solid var(--line);
  transition: background-color 150ms ease, transform 180ms ease;
}

.journey__item:hover {
  transform: translateY(-3px);
}

@media (min-width: 640px) {
  .journey__item { border-right: 1px solid var(--line); }
  .journey__item:nth-child(even) { border-right: none; }
}

@media (min-width: 1000px) {
  .journey__item:nth-child(even) { border-right: 1px solid var(--line); }
  .journey__item:nth-child(4n) { border-right: none; }
}

.journey__item:hover {
  background: var(--cream);
}

.journey__item--cyan  { border-top-color: var(--c-cyan); }
.journey__item--green { border-top-color: var(--c-green); }
.journey__item--coral { border-top-color: var(--c-coral); }
.journey__item--slate { border-top-color: var(--c-slate); }

.journey__stage {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.journey__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.journey__grades {
  font-size: var(--fs-small);
  color: var(--stone);
}

/* --------------------------------------------------------------------------
   8. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--stone);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--brand);
}

/* Page header for inner pages */
.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.page-head h1 {
  font-size: var(--fs-h1);
  margin-bottom: 1rem;
}

.page-head p {
  color: var(--stone);
  max-width: 640px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Intro band (quick facts)
   -------------------------------------------------------------------------- */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.facts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (min-width: 900px) {
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
}

.fact {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 150ms ease;
}

.fact:hover {
  background: var(--cream);
}

.fact:nth-child(even) { border-right: none; }

@media (min-width: 900px) {
  .fact:nth-child(even) { border-right: 1px solid var(--line); }
  .fact:nth-child(4n) { border-right: none; }
  .fact { border-bottom: none; }
}

.fact__label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 0.35rem;
}

.fact__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. Cards (stages, facilities, news)
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card:hover {
  border-color: var(--brand-soft);
  box-shadow: 0 14px 32px rgba(44, 85, 120, 0.12);
  transform: translateY(-4px);
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

/* Division cards echo the four logo colours */
.card--cyan { border-top: 3px solid var(--c-cyan); }
.card--green { border-top: 3px solid var(--c-green); }
.card--coral { border-top: 3px solid var(--c-coral); }
.card--slate { border-top: 3px solid var(--c-slate); }

.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--stone);
  font-size: var(--fs-small);
  flex-grow: 1;
  margin-bottom: 1.1rem;
}

.card__link {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card__link::after {
  content: "→";
  transition: transform 150ms ease;
}

.card__link:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. Principal / quote band
   -------------------------------------------------------------------------- */
.principal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .principal { grid-template-columns: 280px 1fr; }
}

.principal__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 280px;
}

.principal__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.principal__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.principal__quote::before {
  content: "“";
  color: var(--brand);
  font-size: 2.6rem;
  line-height: 0.6;
  display: block;
  margin-bottom: 0.4rem;
}

.principal__name {
  font-weight: 700;
  color: var(--ink);
}

.principal__role {
  font-size: var(--fs-small);
  color: var(--stone);
}

/* --------------------------------------------------------------------------
   12. Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
  border: 1px solid var(--line);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 85, 120, 0);
  transition: background 200ms ease;
}

.gallery-item:hover a::after {
  background: rgba(44, 85, 120, 0.25);
}

.gallery-note {
  margin-top: 1.25rem;
  color: var(--stone);
  font-size: var(--fs-small);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14, 26, 21, 0.92);
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   13. FAQ (native details/summary)
   -------------------------------------------------------------------------- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--ink);
  transition: color 150ms ease;
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-item__body {
  padding: 0 0 1.25rem;
  color: var(--stone);
  max-width: 70ch;
}

.faq-item .faq-item__body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

.form label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 150ms ease;
}

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

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

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  font-size: var(--fs-small);
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: #e7efe7;
  color: var(--brand-deep);
  border: 1px solid #c9d9c9;
}

.form-status--err {
  background: #f7e8e3;
  color: #7a3a24;
  border: 1px solid #e8c9bd;
}

/* --------------------------------------------------------------------------
   15. Contact info cards
   -------------------------------------------------------------------------- */
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: border-color 150ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.info-card:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.info-card p {
  margin: 0;
  color: var(--stone);
  font-size: var(--fs-small);
}

.info-card a {
  color: var(--brand);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   16. Map
   -------------------------------------------------------------------------- */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* --------------------------------------------------------------------------
   17. News list
   -------------------------------------------------------------------------- */
.news-list {
  display: grid;
  gap: 1.5rem;
}

.news-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.news-item__meta {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
  display: block;
}

.news-item h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.news-item p {
  color: var(--stone);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

.news-item a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-deep);
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}

.footer-top {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem 2.5rem;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 1.1rem;
}

.site-footer a {
  color: var(--on-dark-muted);
}

.site-footer a:hover {
  color: var(--on-dark);
}

/* Footer brand: the logo shown large on the deep slate ground */
.footer-brand img {
  height: 92px;
  width: auto;
  padding: 0.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 22px rgba(9, 26, 41, 0.3);
}

.footer-about p {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.1rem;
}



.footer-contact p {
  margin-bottom: 0.6rem;
}

.footer-contact strong {
  color: var(--on-dark);
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242, 245, 240, 0.25);
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  transition: background-color 150ms ease, border-color 150ms ease, transform 180ms ease;
}

.footer-social a:hover {
  background: rgba(242, 245, 240, 0.1);
  border-color: var(--on-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(242, 245, 240, 0.14);
  padding-block: 1.4rem;
  font-size: var(--fs-micro);
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   19. Misc
   -------------------------------------------------------------------------- */
/* CTA band */
.cta-band {
  background: var(--brand);
  color: var(--on-dark);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.cta-band h2 {
  color: var(--on-dark);
  font-size: var(--fs-h2);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--on-dark-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.cta-band .btn + .btn {
  margin-left: 0.85rem;
}

/* Floating call button (bottom-right) */
.call-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  font-weight: 600;
  font-size: var(--fs-small);
  box-shadow: 0 10px 28px rgba(44, 85, 120, 0.35);
  transition: background-color 150ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.call-fab:hover {
  background: var(--brand-deep);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(44, 85, 120, 0.42);
}

.call-fab svg {
  flex: none;
}

/* Pulsing ring around the call button */
.call-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: fab-pulse 2.6s ease-out infinite;
}

@keyframes fab-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .call-fab {
    padding: 0.95rem;
    border-radius: 50%;
  }
  .call-fab .call-fab__label {
    display: none;
  }
}

/* Floating calendar button, stacked above the call button */
.cal-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 5.6rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-small);
  box-shadow: 0 10px 28px rgba(44, 85, 120, 0.22);
  transition: background-color 150ms ease, color 150ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cal-fab svg {
  flex: none;
  color: var(--brand);
  transition: color 150ms ease;
}

.cal-fab:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(44, 85, 120, 0.4);
}

.cal-fab:hover svg {
  color: var(--gold);
}

@media (max-width: 560px) {
  .cal-fab {
    padding: 0.95rem;
    border-radius: 50%;
  }
  .cal-fab .cal-fab__label {
    display: none;
  }
}

/* Inline list of stage chips on dark */
.stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stage-list li {
  border: 1px solid rgba(242, 245, 240, 0.3);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  font-size: var(--fs-small);
  color: var(--on-dark);
}

/* Two-column definition rows */
.def-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.def-list__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .def-list__row { grid-template-columns: 240px 1fr; }
}

.def-list dt {
  font-weight: 600;
  color: var(--ink);
}

.def-list dd {
  margin: 0;
  color: var(--stone);
}

/* 404 */
.notfound {
  text-align: center;
  padding-block: clamp(5rem, 12vw, 8rem);
}

.notfound h1 {
  font-size: clamp(3.5rem, 12vw, 6rem);
  color: var(--brand);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease, transform 400ms ease;
}

/* Team member cards */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.team-card:hover {
  border-color: var(--brand-soft);
  box-shadow: 0 14px 32px rgba(44, 85, 120, 0.12);
  transform: translateY(-4px);
}

.team-card.is-hidden {
  display: none;
}

.team-card__photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  background: var(--sand);
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.team-card:hover .team-card__photo img {
  transform: scale(1.03);
}

/* Initials placeholder avatar, used until real photos arrive */
.team-card__avatar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: linear-gradient(160deg, var(--avatar-a), var(--avatar-b));
}

/* Category chip on the photo corner */
.team-card__cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.94);
  color: var(--ink);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(44, 85, 120, 0.14);
}

.team-card__body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.team-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.team-card__role {
  color: var(--brand);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.team-card__body p {
  color: var(--stone);
  font-size: var(--fs-small);
  margin: 0;
}

/* Filter pills */
.team-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease,
    transform 150ms ease, box-shadow 150ms ease;
}

.filter-pill:hover {
  border-color: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 85, 120, 0.1);
}

.filter-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
}

.filter-pill .filter-pill__count {
  font-size: var(--fs-micro);
  font-weight: 600;
  opacity: 0.75;
}

.filter-pill.is-active .filter-pill__count {
  opacity: 0.9;
}

/* School calendar: upcoming events & holidays */
.calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .calendar-grid { grid-template-columns: 1fr 1.35fr; }
}

.cal-column {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
}

.cal-column h3 {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.cal-column__note {
  font-size: var(--fs-small);
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cal-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 150ms ease;
}

.cal-item:last-of-type {
  border-bottom: none;
}

.cal-item:hover {
  background: var(--cream);
}

.cal-item__badge {
  flex: none;
  width: 54px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.45rem 0 0.5rem;
}

.cal-item__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
}

.cal-item__badge span {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.cal-item__body {
  min-width: 0;
}

.cal-item__title {
  display: block;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.cal-item__meta {
  display: block;
  font-size: var(--fs-small);
  color: var(--stone);
  margin-top: 0.15rem;
}

.cal-item__meta .cal-chip {
  margin-right: 0.5rem;
}

.cal-chip {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  vertical-align: 1px;
}

.cal-chip--holiday { background: #f7ddd6; color: #a64a38; }
.cal-chip--exam    { background: var(--brand-soft); color: var(--brand-deep); }
.cal-chip--event   { background: #cdeefb; color: #00729c; }
.cal-chip--activity{ background: #dcead9; color: #3f6b3e; }
.cal-chip--academic{ background: var(--sand); color: var(--stone); }

.calendar-loading,
.calendar-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--stone);
}

.calendar-error {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--stone);
  font-size: var(--fs-small);
  background: var(--paper);
}

/* Filtering animation */
.team-grid.is-filtering .team-card {
  animation: card-in 260ms ease both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.team-count {
  color: var(--stone);
  font-size: var(--fs-small);
  margin: 0 0 1.75rem;
}

.team-count strong {
  color: var(--ink);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
