/* ==========================================================================
   Violets' Orchids Preschool — site stylesheet
   Palette and typography carried over from the original single-page site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (unchanged from the original site) */
  --plum:        #400027;
  --plum-deep:   #5a003a;
  --magenta:     #b0004d;
  --pink:        #f6b6c3;
  --lilac:       #d8c1dc;
  --blush:       #ffe7f4;
  --tint:        #ffedf7;
  --petal:       #fff0f8;
  --cream:       #fdf6f8;
  --white:       #ffffff;

  /* Derived ink shades */
  --ink:         var(--plum);
  --ink-soft:    rgba(64, 0, 39, 0.72);  /* 6.7:1 on the lightest pink — AA  */
  --ink-faint:   rgba(64, 0, 39, 0.64);  /* 5.2:1 — kept above AA for the    */
                                         /* small labels and captions it     */
                                         /* is used on. Do not lighten.      */
  --rule:        rgba(64, 0, 39, 0.10);
  --rule-soft:   rgba(64, 0, 39, 0.06);

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0125rem;
  --fs-md:   clamp(1.05rem, 0.99rem + 0.28vw, 1.2rem);
  --fs-lg:   clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --fs-h3:   clamp(1.15rem, 1.06rem + 0.42vw, 1.38rem);
  --fs-h2:   clamp(1.75rem, 1.42rem + 1.5vw, 2.65rem);
  --fs-h1:   clamp(2.1rem, 1.55rem + 2.6vw, 3.6rem);

  /* Space */
  --space-section: clamp(3.5rem, 2.4rem + 4.6vw, 6.5rem);
  --gutter:        clamp(1.15rem, 0.7rem + 2vw, 2.5rem);

  /* Shape + depth */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(64, 0, 39, 0.06);
  --shadow-md: 0 10px 28px -12px rgba(64, 0, 39, 0.20);
  --shadow-lg: 0 24px 54px -22px rgba(64, 0, 39, 0.30);

  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);
}

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

* { margin: 0; padding: 0; }

html {
  background: var(--cream);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: transparent;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; position: relative; z-index: 1; }

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

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

p { text-wrap: pretty; }

::selection { background: var(--pink); color: var(--plum); }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), 1180px);
  margin-inline: auto;
}
.container--narrow { width: min(100% - (var(--gutter) * 2), 860px); }
.container--wide   { width: min(100% - (var(--gutter) * 2), 1320px); }

.section {
  position: relative;
  padding-block: var(--space-section);
}
.section--tint   { background: linear-gradient(180deg, var(--tint), var(--petal)); }
.section--blush  { background: var(--blush); }
.section--petal  { background: var(--petal); }
.section--white  { background: var(--white); }
.section--tight  { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem); }

.stack > * + * { margin-top: 1rem; }

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
}
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* Small capsule label above a heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 0.95rem 1.65rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--plum);
  color: var(--white);
  box-shadow: 0 8px 20px -10px rgba(64, 0, 39, 0.7);
}
.btn--primary:hover { background: var(--plum-deep); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(64, 0, 39, 0.75); }

.btn--ghost {
  background: var(--white);
  color: var(--plum);
  border-color: var(--rule);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--pink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.btn--light:hover { background: var(--white); color: var(--plum); transform: translateY(-2px); }

.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.btn-row--center { justify-content: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--magenta);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Decorative background (floating stars)
   -------------------------------------------------------------------------- */
.decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.decor__star {
  position: absolute;
  width: var(--w, 48px);
  opacity: 0.5;
  animation: star-float 14s var(--delay, 0s) infinite ease-in-out;
  will-change: transform;
}
.decor__star:nth-child(1) { --w: 62px; top: 12%;  left: 6%; }
.decor__star:nth-child(2) { --w: 40px; top: 22%;  left: 88%; --delay: 1.5s; }
.decor__star:nth-child(3) { --w: 30px; top: 52%;  left: 3%;  --delay: 3s; }
.decor__star:nth-child(4) { --w: 46px; top: 68%;  left: 92%; --delay: 4.5s; }
.decor__star:nth-child(5) { --w: 34px; top: 86%;  left: 12%; --delay: 6s; }
.decor__star:nth-child(6) { --w: 26px; top: 40%;  left: 78%; --delay: 7.5s; }

@keyframes star-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(9deg); }
}

@media (max-width: 900px) {
  .decor__star:nth-child(2),
  .decor__star:nth-child(4),
  .decor__star:nth-child(6) { display: none; }
  .decor__star { opacity: 0.34; }
}

/* --------------------------------------------------------------------------
   6. Header + navigation
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--plum);
  color: var(--white);
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 240, 248, 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 6px 24px -16px rgba(64, 0, 39, 0.45);
  background: rgba(255, 240, 248, 0.94);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}

/* Brand lockup */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}
.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--plum); background: rgba(255, 255, 255, 0.7); }
.nav__link[aria-current="page"] { color: var(--plum); font-weight: 500; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--magenta);
}

.header__actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

/* The in-drawer CTA is a mobile-only duplicate of .header__cta */
.nav__cta { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.nav-toggle__bars { position: relative; width: 19px; height: 13px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--plum);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5.5px; }
.nav-toggle__bars span:nth-child(3) { top: 11px; }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(64, 0, 39, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 98;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: calc(var(--header-h) + 1.4rem) 1.4rem 2rem;
    background: var(--petal);
    border-left: 1px solid var(--rule);
    box-shadow: -18px 0 50px -30px rgba(64, 0, 39, 0.6);
    transform: translateX(102%);
    transition: transform 0.36s var(--ease);
    overflow-y: auto;
    z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link {
    padding: 0.9rem 0.9rem;
    font-size: 1.02rem;
    border-radius: 12px;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav__link[aria-current="page"] { background: var(--white); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 1.2rem; }
}

/* --------------------------------------------------------------------------
   7. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 110% at 88% 8%, rgba(216, 193, 220, 0.55) 0%, transparent 58%),
    radial-gradient(90% 100% at 4% 96%, rgba(246, 182, 195, 0.45) 0%, transparent 55%),
    linear-gradient(170deg, var(--petal) 0%, var(--tint) 55%, var(--blush) 100%);
  padding-block: clamp(2.75rem, 1.8rem + 4.5vw, 5.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(1.5rem, 0.8rem + 3vw, 3.75rem);
}
.hero__title { margin-bottom: 1.15rem; }
.hero__title em {
  font-style: normal;
  color: var(--magenta);
}
.hero__lede {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}
.hero__actions { margin-bottom: 2.1rem; }

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__art::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--white) 0%, rgba(255, 231, 244, 0.9) 45%, rgba(246, 182, 195, 0.5) 100%);
  box-shadow: var(--shadow-lg);
}
.hero__art img {
  position: relative;
  width: min(100%, 420px);
  filter: drop-shadow(0 26px 30px rgba(64, 0, 39, 0.18));
  animation: gentle-bob 6s ease-in-out infinite;
}
@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* Little badge that floats over the hero art */
.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 0.6rem 1rem 0.6rem 0.65rem;
  box-shadow: var(--shadow-md);
  font-size: var(--fs-xs);
  font-weight: 500;
  z-index: 2;
}
.hero__badge img { width: 30px; }
.hero__badge--br { bottom: 6%; right: -2%; animation: gentle-bob 8s 1s ease-in-out infinite; }
.hero__badge strong { display: block; font-size: var(--fs-sm); line-height: 1.2; }
.hero__badge span { color: var(--ink-faint); }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__art { order: -1; max-width: 340px; margin-inline: auto; }
  .hero__badge--br { right: -4%; }
  .hero .trust-strip { justify-content: center; }
}

/* Inline trust points under the hero copy */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.trust-strip li { display: flex; align-items: center; gap: 0.45rem; list-style: none; }
.trust-strip svg { width: 17px; height: 17px; color: var(--magenta); flex: none; }

/* --------------------------------------------------------------------------
   8. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem);
  background:
    radial-gradient(100% 130% at 92% 10%, rgba(216, 193, 220, 0.5) 0%, transparent 60%),
    linear-gradient(160deg, var(--petal), var(--tint));
  border-bottom: 1px solid var(--rule-soft);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}
.page-hero__lede {
  font-size: var(--fs-md);
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 1rem;
}
.page-hero__art {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(150px, 22vw, 250px);
}
.page-hero__art::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, var(--white), rgba(255, 231, 244, 0.75) 60%, rgba(246, 182, 195, 0.35));
  box-shadow: var(--shadow-md);
}
.page-hero__art img {
  position: relative;
  filter: drop-shadow(0 18px 22px rgba(64, 0, 39, 0.16));
  animation: gentle-bob 7s ease-in-out infinite;
}
@media (max-width: 780px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { order: -1; width: clamp(140px, 40vw, 190px); }
}

/* Breadcrumb */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
  list-style: none;
}
.crumbs li { display: flex; align-items: center; gap: 0.4rem; }
.crumbs li + li::before { content: "/"; opacity: 0.45; }
.crumbs a:hover { color: var(--magenta); }
.crumbs [aria-current] { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   9. Cards + grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem); }
.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: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 660px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 1.1rem + 0.7vw, 1.85rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink);
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-soft); font-size: var(--fs-sm); }
.card > * + * { margin-top: 0.65rem; }

/* Numbered / iconed card badge */
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--blush), var(--pink));
  color: var(--plum);
  margin-bottom: 1.1rem;
  box-shadow: inset 0 -2px 6px rgba(64, 0, 39, 0.07);
}
.card__icon svg { width: 25px; height: 25px; }
.card__num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

/* Programme card with an age pill */
.card--program { display: flex; flex-direction: column; }
.age-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--blush);
  color: var(--magenta);
  margin-bottom: 0.85rem;
}
.card--program h3 { margin-bottom: 0.5rem; }
.card--program .card__foot {
  margin-top: auto;
  padding-top: 1.1rem;
}

/* Tick list inside cards */
.tick-list { list-style: none; display: grid; gap: 0.5rem; }
.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23400027' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* Star-bulleted list, uses the site's own star artwork */
.star-list { list-style: none; display: grid; gap: 0.7rem; }
.star-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.star-list img { width: 20px; flex: none; margin-top: 0.18em; }

/* --------------------------------------------------------------------------
   10. Split feature (image + copy)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 1rem + 4vw, 4.5rem);
}
.split--flip .split__art { order: 2; }
.split__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.92;
}
.split__art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(150deg, var(--white), var(--blush) 65%, var(--lilac));
  box-shadow: var(--shadow-md);
}
.split__art img {
  position: relative;
  width: min(100%, 320px);
  filter: drop-shadow(0 18px 24px rgba(64, 0, 39, 0.16));
}
.split__body h2 { margin-bottom: 1rem; }
.split__body > p { color: var(--ink-soft); font-size: var(--fs-md); }
.split__body > * + * { margin-top: 1.1rem; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__art { order: 0; }
  .split__art { max-width: 320px; margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   11. Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stats__item {
  background: var(--white);
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem) 1rem;
  text-align: center;
}
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.4rem);
  font-weight: 600;
  color: var(--magenta);
  line-height: 1;
}
.stats__label {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   12. Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(0.9rem, 0.7rem + 1vw, 1.5rem);
}
.gallery-item {
  position: relative;
  /* flex column, not block: a <button> vertically centres its anonymous
     content box, which would float the photo in the middle of a stretched
     grid cell. */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: none;
  padding: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-align: left;
  width: 100%;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
/* These are <span>s inside the <button>, so they must be made block-level
   before aspect-ratio, overflow and padding behave. */
.gallery-item__media,
.gallery-item__cap { display: block; }
/* Media takes its natural 16:10 then grows to fill a stretched cell, so
   neighbouring tiles in a row stay photo-filled rather than half empty. */
.gallery-item__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.gallery-item__cap { flex: 0 0 auto; }
/* <picture> needs a definite height of its own, otherwise the img's
   height:100% resolves against an auto-height box and collapses to natural. */
.gallery-item__media picture { height: 100%; }
.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.gallery-item:hover .gallery-item__media img { transform: scale(1.06); }
.gallery-item__cap {
  padding: 0.95rem 1.15rem 1.15rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.gallery-item__cap strong { display: block; color: var(--plum); font-weight: 500; margin-bottom: 0.15rem; }

/* Feature the first tile across two columns on wide screens */
@media (min-width: 900px) {
  .gallery-grid--featured > :first-child { grid-column: span 2; }
  .gallery-grid--featured > :first-child .gallery-item__media { aspect-ratio: 16 / 8; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(41, 0, 25, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { max-width: 1100px; width: 100%; }
.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.lightbox figcaption {
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
  margin-top: 1rem;
  font-size: var(--fs-sm);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); transform: scale(1.06); }
.lightbox__close { top: 1.1rem; right: 1.1rem; }
.lightbox__nav svg, .lightbox__close svg { width: 21px; height: 21px; }
.lightbox__nav--prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 620px) {
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
}

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--pink);
  display: block;
  margin-bottom: 0.35rem;
}
.quote-card blockquote {
  font-size: var(--fs-md);
  color: var(--ink);
  font-style: italic;
  line-height: 1.6;
}
.quote-card figcaption {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-sm);
}
.quote-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blush), var(--lilac));
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--plum);
  flex: none;
}
.quote-card__who strong { display: block; font-weight: 500; }
.quote-card__who span { color: var(--ink-faint); font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   14. Steps (admissions)
   -------------------------------------------------------------------------- */
.steps { list-style: none; display: grid; gap: clamp(1rem, 0.8rem + 1vw, 1.5rem); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .steps--4 { grid-template-columns: 1fr; } }

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 1.1rem + 0.7vw, 1.8rem);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step__n {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { font-size: var(--fs-sm); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   15. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq details[open] { border-color: var(--pink); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0004d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.28s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--magenta); }
.faq__body {
  padding: 0 1.3rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.faq__body > * + * { margin-top: 0.7rem; }

/* --------------------------------------------------------------------------
   16. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: 0.95rem; align-items: flex-start; }
.info-list__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blush), var(--pink));
  color: var(--plum);
}
.info-list__icon svg { width: 20px; height: 20px; }
.info-list dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}
.info-list dd { font-size: var(--fs-sm); line-height: 1.55; }
.info-list a:hover { color: var(--magenta); }

.map-card {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.map-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.map-card img { width: 100%; }
.map-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.map-card__foot svg { width: 17px; height: 17px; color: var(--magenta); flex: none; }

/* Form */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field label .req { color: var(--magenta); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: var(--fs-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(246, 182, 195, 0.35);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: var(--fs-xs); color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(176, 0, 77, 0.55) 0%, transparent 60%),
    linear-gradient(135deg, var(--plum) 0%, #58003a 60%, #6b0046 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
}
.cta-band__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  position: relative;
  z-index: 1;
}
.cta-band h2 { color: var(--white); }
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-md);
  margin-top: 0.85rem;
  max-width: 52ch;
}
.cta-band__star {
  position: absolute;
  opacity: 0.16;
  pointer-events: none;
}
.cta-band__star--a { width: 150px; top: -34px; right: 8%; transform: rotate(14deg); }
.cta-band__star--b { width: 95px;  bottom: -26px; left: 4%; transform: rotate(-18deg); }
@media (max-width: 820px) {
  .cta-band__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--tint), var(--blush));
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(2.5rem, 2rem + 2.4vw, 4rem) 0;
  position: relative;
  z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
}
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand img {
  width: 128px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.1rem;
}
.footer__brand p { font-size: var(--fs-sm); color: var(--ink-soft); max-width: 34ch; }

.footer__title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.footer__links { list-style: none; display: grid; gap: 0.6rem; }
.footer__links a {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  display: inline-block;
}
.footer__links a:hover { color: var(--magenta); transform: translateX(3px); }

.footer__contact { list-style: none; display: grid; gap: 0.75rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--magenta); flex: none; margin-top: 0.22em; }
.footer__contact a:hover { color: var(--magenta); }

.footer__bottom {
  margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   19. Scroll reveal + motion preferences
   -------------------------------------------------------------------------- */
/* The hidden starting state is applied only when JS is running (the <head>
   sets .js). Without JS — or if site.js fails to load — every section stays
   fully visible instead of being stranded at opacity 0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* stagger children */
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.js [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.js [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.js [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.js [data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.js [data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.no-scroll { overflow: hidden; }
