/* ==========================================================================
   PICC Weekend Islamic School — stylesheet
   Design language: zellige (glazed star-and-cross tilework)
   Palette drawn from traditional glaze colours; type pairs a Naskh-revival
   serif (Amiri) with a signage grotesque (Archivo).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Glaze palette */
  --lapis:        #123a6b;
  --lapis-deep:   #0b2547;
  --lapis-soft:   #1d5090;
  --viridian:     #0e6b5c;
  --viridian-lt:  #1c9179;
  --saffron:      #dfa22c;
  --saffron-lt:   #f0c264;

  /* Ground */
  --chalk:        #f7f6f2;
  --plaster:      #efece4;
  --white:        #ffffff;

  /* Ink */
  --ink:          #141a19;
  --ink-soft:     #4a5553;
  --ink-mute:     #6d7876;
  --line:         #ddd8cc;
  --line-dark:    rgba(247, 246, 242, 0.18);

  /* Type */
  --serif: "Amiri", "Iowan Old Style", Georgia, serif;
  --sans:  "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-xs:   0.78rem;
  --t-sm:   0.9rem;
  --t-body: 1rem;
  --t-lg:   1.2rem;
  --t-xl:   1.55rem;
  --t-2xl:  2.1rem;
  --t-3xl:  clamp(2rem, 4.4vw, 3rem);
  --t-hero: clamp(2.6rem, 6.6vw, 4.8rem);

  /* Space */
  --gut:   clamp(1.25rem, 4vw, 2.5rem);
  --bay:   clamp(4rem, 9vw, 7.5rem);
  --measure: 62ch;

  /* Shape */
  --arch: 46% 46% 10px 10px / 30% 30% 6px 6px;
  --r-sm: 4px;
  --r-md: 10px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--saffron);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: min(1200px, 100% - (var(--gut) * 2));
  margin-inline: auto;
}

.wrap--narrow { width: min(900px, 100% - (var(--gut) * 2)); }

.section { padding-block: var(--bay); position: relative; }

.section--dark {
  background: var(--lapis-deep);
  color: var(--chalk);
  overflow: hidden;
}
.section--dark h2,
.section--dark h3 { color: var(--chalk); }

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

/* Section opener: heading with a tile glyph and a rule that carries meaning */
.opener { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

.opener h2 {
  font-size: var(--t-3xl);
  margin-bottom: 0.6rem;
}

.opener p {
  color: var(--ink-soft);
  font-size: var(--t-lg);
  max-width: 54ch;
}

.section--dark .opener p { color: rgba(247, 246, 242, 0.76); }

.opener-rule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.opener-rule .tile-glyph { flex: none; }
.opener-rule span {
  display: block;
  height: 2px;
  width: 3.5rem;
  background: var(--saffron);
}

/* The tile strip — full-bleed mosaic used as a structural rule */
.tile-strip {
  height: 14px;
  width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   4. Mosaic pattern layers
   -------------------------------------------------------------------------- */

.pattern-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.z-grout  { fill: var(--lapis-deep); }
.z-star   { fill: var(--lapis); }
.z-cross  { fill: var(--saffron); }
.z-star-b { fill: var(--viridian); }

.ghost-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  pointer-events: none;
}
.ghost-layer rect { fill: url(#zellige-ghost); }

.section--dark > .wrap { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--saffron);
  color: var(--ink);
  border-color: var(--saffron);
}
.btn--primary:hover { background: var(--saffron-lt); border-color: var(--saffron-lt); }

.btn--outline {
  background: transparent;
  color: var(--chalk);
  border-color: rgba(247, 246, 242, 0.45);
}
.btn--outline:hover { border-color: var(--chalk); background: rgba(247, 246, 242, 0.08); }

.btn--ink {
  background: var(--lapis);
  color: var(--chalk);
  border-color: var(--lapis);
}
.btn--ink:hover { background: var(--lapis-soft); border-color: var(--lapis-soft); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   6. Masthead & navigation
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--chalk);
  border-bottom: 1px solid var(--line);
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.wordmark__sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--ink-mute);
  text-transform: none;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav__links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--saffron); }

.nav__cta { flex: none; padding: 0.6rem 1.15rem; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

.drawer {
  display: none;
  border-top: 1px solid var(--line);
  padding-block: 1rem 1.5rem;
}
.drawer.is-open { display: block; }
.drawer a {
  display: block;
  padding: 0.7rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 1.1rem; width: 100%; }

/* Registration strip */
.strip {
  background: var(--viridian);
  color: var(--chalk);
  overflow: hidden;
  padding-block: 0.6rem;
}
.strip__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  font-size: var(--t-sm);
  animation: slide 34s linear infinite;
}
.strip__track > * { flex: none; }
.strip b { font-weight: 700; }
.strip a { color: var(--saffron-lt); font-weight: 600; }
.strip:hover .strip__track { animation-play-state: paused; }

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--lapis-deep);
  color: var(--chalk);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__kicker {
  font-size: var(--t-sm);
  color: var(--saffron-lt);
  font-weight: 500;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero h1 {
  font-size: var(--t-hero);
  color: var(--white);
  margin-bottom: 1.4rem;
}

.hero__lede {
  font-size: var(--t-lg);
  color: rgba(247, 246, 242, 0.82);
  max-width: 46ch;
  line-height: 1.6;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--t-sm);
  color: rgba(247, 246, 242, 0.7);
}
.hero__facts strong { color: var(--white); font-weight: 600; }

/* Hero artwork: mosaic panel with an arch-framed photograph set into it */
.hero__art { position: relative; }

.hero__mosaic {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
}
.hero__mosaic rect { fill: url(#zellige); }

.hero__photo {
  position: absolute;
  left: 8%;
  bottom: -2.5rem;
  width: 78%;
  border-radius: var(--arch);
  border: 7px solid var(--chalk);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. Figure rail (stats)
   -------------------------------------------------------------------------- */

.rail {
  background: var(--chalk);
  border-bottom: 1px solid var(--line);
}
.rail__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.rail__item {
  text-align: center;
  padding-inline: 1rem;
  border-right: 1px solid var(--line);
}
.rail__item:last-child { border-right: 0; }
.rail__fig {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--lapis);
  line-height: 1;
}
.rail__lab {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--t-sm);
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   9. Programmes
   -------------------------------------------------------------------------- */

.programmes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.programme {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.programme__cap { height: 10px; width: 100%; }
.programme:nth-child(1) .programme__cap { background: var(--lapis); }
.programme:nth-child(2) .programme__cap { background: var(--viridian); }
.programme:nth-child(3) .programme__cap { background: var(--saffron); }

.programme__body { padding: clamp(1.5rem, 3vw, 2.25rem); }

.programme h3 {
  font-size: var(--t-xl);
  color: var(--lapis);
  margin-bottom: 0.65rem;
}
.programme > .programme__body > p {
  color: var(--ink-soft);
  font-size: var(--t-sm);
  margin-bottom: 1.4rem;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding-block: 0.45rem;
  font-size: var(--t-sm);
  border-top: 1px solid var(--line);
}
.checklist li:first-child { border-top: 0; }
.checklist .ico {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.3rem;
  color: var(--viridian);
}

/* --------------------------------------------------------------------------
   10. Two-column feature blocks (about, facilities)
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.feature--flip .feature__art { order: 2; }

.feature__art img {
  width: 100%;
  border-radius: var(--arch);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.feature h2 { font-size: var(--t-3xl); margin-bottom: 1.2rem; }
.feature p { color: var(--ink-soft); }

.vision {
  border-left: 3px solid var(--saffron);
  padding: 0.35rem 0 0.35rem 1.4rem;
  margin-top: 1.75rem;
}
.vision p {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--lapis);
  max-width: 50ch;
}

/* Approach triple */
.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.approach h3 {
  font-size: var(--t-lg);
  margin: 0.9rem 0 0.4rem;
  color: var(--lapis);
}
.approach p { font-size: var(--t-sm); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   11. Schedule & fees
   -------------------------------------------------------------------------- */

.fees__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.panel {
  background: rgba(247, 246, 242, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.panel h3 {
  font-size: var(--t-xl);
  margin-bottom: 1.4rem;
  color: var(--white);
}

.ledger li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--t-sm);
  color: rgba(247, 246, 242, 0.82);
}
.ledger li:first-child { border-top: 0; }
.ledger .amount {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.ledger .save {
  font-weight: 700;
  color: var(--saffron-lt);
  white-space: nowrap;
}

.ledger--discounts { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.ledger--discounts .sublabel {
  display: block;
  font-size: var(--t-xs);
  color: rgba(247, 246, 242, 0.55);
  margin-bottom: 0.75rem;
}

.when {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line-dark);
}
.when:first-of-type { border-top: 0; }
.when .ico { flex: none; width: 20px; height: 20px; color: var(--saffron); margin-top: 0.25rem; }
.when dt {
  font-size: var(--t-xs);
  color: rgba(247, 246, 242, 0.6);
  margin-bottom: 0.15rem;
}
.when dd {
  margin: 0;
  font-size: var(--t-lg);
  font-family: var(--serif);
  font-weight: 700;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   12. Values
   -------------------------------------------------------------------------- */

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.value h3 {
  font-size: var(--t-lg);
  margin: 0.85rem 0 0.35rem;
  color: var(--lapis);
}
.value p { font-size: var(--t-sm); color: var(--ink-soft); }

.tile-glyph { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   13. Team
   -------------------------------------------------------------------------- */

.lead-teacher {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.lead-teacher img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--arch);
}

.lead-teacher .role {
  font-size: var(--t-sm);
  color: var(--viridian);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.lead-teacher h3 { font-size: var(--t-2xl); margin-bottom: 0.7rem; color: var(--lapis); }
.lead-teacher p { color: var(--ink-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.35rem; }
.tags li {
  font-size: var(--t-xs);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* Roster: a programme-booklet directory, grouped by the real structure */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}

.roster__group h4 {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--lapis);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--saffron);
  margin-bottom: 0.9rem;
}

.roster__group li {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  padding-block: 0.38rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.roster__group li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--viridian);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   14. Commitment
   -------------------------------------------------------------------------- */

.commitments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.commitment {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--viridian);
  border-radius: var(--r-sm);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}
.commitment p { color: var(--ink-soft); margin-bottom: 1.25rem; }
.commitment .attrib {
  font-size: var(--t-xs);
  color: var(--ink-mute);
  margin: 0;
}
.commitment .attrib strong { display: block; color: var(--ink); font-size: var(--t-sm); }

/* --------------------------------------------------------------------------
   15. Donate
   -------------------------------------------------------------------------- */

.give {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.give__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.35rem 1.1rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.give__card h3 {
  font-size: var(--t-lg);
  color: var(--lapis);
  margin-bottom: 1rem;
  text-align: center;
}

/* QR plate. The source images are portrait and already carry their own
   white margin and label, so no aspect-ratio is imposed here — forcing a
   square box letterboxes a tall image and shrinks the code badly. */
.give__qr {
  display: block;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px;
  margin-bottom: 0.9rem;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.give__qr:hover,
.give__qr:focus-visible {
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(223, 162, 44, 0.25);
}
.give__qr img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  margin-inline: auto;
}

.give__tap {
  display: block;
  text-align: center;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--lapis);
  margin-bottom: 0.9rem;
}

.give__send {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--plaster);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.7rem 0.65rem 0.8rem;
  margin-bottom: 0.85rem;
  order: 2;
}
.give__send > div { min-width: 0; flex: 1; }

.give__send-label {
  display: block;
  font-size: var(--t-xs);
  color: var(--ink-mute);
  line-height: 1.3;
}
.give__handle {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-all;
}

.give__copy {
  flex: none;
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--lapis);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.give__copy:hover { background: var(--lapis); color: var(--chalk); border-color: var(--lapis); }
.give__copy.is-done { background: var(--viridian); color: var(--chalk); border-color: var(--viridian); }

.give__open {
  order: 1;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: var(--t-sm);
}

/* Push the manual-send row to the bottom of the card so the two primary
   actions — tap the code, or open the app — come first. */
.give__card { justify-content: flex-start; }
.give__send { margin-top: auto; margin-bottom: 0; }

.give__note {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  max-width: none;
  text-align: center;
  font-size: var(--t-sm);
  color: rgba(247, 246, 242, 0.7);
}

/* --------------------------------------------------------------------------
   16. Visit
   -------------------------------------------------------------------------- */

.visit__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-list { margin-top: 1.75rem; }
.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
}
.contact-list li:first-child { border-top: 0; }
.contact-list .ico { flex: none; width: 18px; height: 18px; color: var(--viridian); margin-top: 0.25rem; }
.contact-list a { color: var(--lapis); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-bottom-color: var(--lapis); }

.map {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.map iframe { width: 100%; height: 420px; border: 0; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.foot {
  background: var(--lapis-deep);
  color: rgba(247, 246, 242, 0.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.foot h4 {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.foot p { font-size: var(--t-sm); max-width: 38ch; }
.foot__links li { padding-block: 0.3rem; }
.foot__links a {
  font-size: var(--t-sm);
  text-decoration: none;
  color: rgba(247, 246, 242, 0.72);
}
.foot__links a:hover { color: var(--white); }

.foot__wordmark {
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.social { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
.social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  color: rgba(247, 246, 242, 0.8);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.social a:hover { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
.social svg { width: 18px; height: 18px; }

.colophon {
  padding-top: 1.75rem;
  font-size: var(--t-xs);
  color: rgba(247, 246, 242, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   18. Motion — one orchestrated entrance, nothing else
   -------------------------------------------------------------------------- */

.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.rise:nth-child(1) { animation-delay: 0.05s; }
.rise:nth-child(2) { animation-delay: 0.16s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

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

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 0.8rem; }
  .give { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .menu-btn { display: block; }

  .hero__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__art { max-width: 460px; }
  .hero__photo { bottom: -1.5rem; }

  .feature,
  .fees__grid,
  .visit__grid { grid-template-columns: 1fr; }
  .feature--flip .feature__art { order: 0; }
  .feature__art img { aspect-ratio: 16 / 11; }

  .programmes,
  .commitments { grid-template-columns: 1fr; }
  .approach { grid-template-columns: 1fr; gap: 2rem; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .give { grid-template-columns: repeat(2, 1fr); }

  .lead-teacher { grid-template-columns: 1fr; }
  .lead-teacher img { max-width: 260px; }

  .foot__grid { grid-template-columns: 1fr; }
  .map iframe { height: 320px; }
}

@media (max-width: 620px) {
  html { font-size: 16px; }
  .rail__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .rail__item:nth-child(2) { border-right: 0; }
  .values { grid-template-columns: 1fr; }
  .give { grid-template-columns: 1fr; }
  .give__card { max-width: 380px; margin-inline: auto; width: 100%; }
  .btn-row .btn { width: 100%; }
  .hero__photo { position: relative; left: 0; bottom: 0; width: 100%; margin-top: 1.25rem; aspect-ratio: 16 / 11; }
  .hero__mosaic { aspect-ratio: 3 / 2; }
}
