/* ==========================================================================
   Msingi Thabiti — theme styles
   Concept: "msingi thabiti" = a firm foundation. Stacked blocks, arch-framed
   photography, and the Ngong Hills ridgeline as a recurring structural edge.
   Each age band owns a colour so parents can track their child's programme
   across the whole site.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Palette */
  --soil:      #1f3d2b; /* deep green — body text, dark bands */
  --soil-soft: #3d5c4a;
  --sun:       #f7b13c; /* infants */
  --sky:       #4fa8c7; /* toddlers */
  --hibiscus:  #cc2f59; /* pre-primary */
  --leaf:      #6bae5c; /* affirmatives, ticks, growth */
  --shell:     #fbf6ee; /* page background */
  --shell-2:   #f3ece0; /* alternating band */
  --white:     #ffffff;
  --line:      #e4dccd;

  /* Per-programme accents, remapped by modifier classes */
  --accent:      var(--sun);
  --accent-ink:  var(--soil);
  --accent-wash: #fdf0d8; /* pale, for panels */
  --accent-soft: #fbd894; /* mid, for the highlight underline */

  /* Type */
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --t-hero:  clamp(2.6rem, 6.2vw, 4.5rem);
  --t-h2:    clamp(2rem, 4vw, 3rem);
  --t-h3:    clamp(1.3rem, 2.2vw, 1.7rem);
  --t-h4:    1.125rem;
  --t-body:  1.0625rem;
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* Space */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4.5rem;
  --s8: 6.5rem;

  /* Shape */
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-soft: 0 10px 30px -18px rgba(31, 61, 43, 0.45);
  --shadow-lift: 0 22px 48px -24px rgba(31, 61, 43, 0.5);

  --wrap: 1180px;
  --wrap-narrow: 760px;
}

/* Programme colour remaps */
.is-infants   { --accent: var(--sun);      --accent-wash: #fdf0d8; --accent-soft: #fbd894; }
.is-toddlers  { --accent: var(--sky);      --accent-wash: #e0f1f6; --accent-soft: #a9d7e6; }
.is-prepri    { --accent: var(--hibiscus); --accent-wash: #fbe2e9; --accent-soft: #f4aec2; }
.is-leaf      { --accent: var(--leaf);     --accent-wash: #e6f2e2; --accent-soft: #b4d8ab; }

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--shell);
  color: var(--soil);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--soil); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #0f261a; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--s3);
  letter-spacing: -0.015em;
}

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--s3); top: -100px;
  z-index: 999;
  background: var(--soil); color: var(--white);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--s3); color: var(--white); }

/* 3. Layout
   ========================================================================== */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.band { padding-block: var(--s8); position: relative; }
.band--tight { padding-block: var(--s7); }
.band--shell2 { background: var(--shell-2); }
.band--dark { background: var(--soil); color: var(--shell); }
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--white); }

/* Section headers — an eyebrow that names the section's job, then the claim */
.eyebrow {
  font-family: var(--body);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soil-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s3);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: var(--r-pill);
  background: var(--accent);
}
.band--dark .eyebrow { color: #b9cfc0; }

.section-head { max-width: 46rem; margin-bottom: var(--s6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--t-h2); }
.section-head p { color: var(--soil-soft); }
.band--dark .section-head p { color: #c8d9cd; }

/* Highlighted word — a swipe of colour behind the last word of a heading.
   Painted as the element's own background rather than a negative z-index
   pseudo-element, so it survives on sections that have their own background. */
.mark {
  color: inherit;
  background-image: linear-gradient(to top, var(--accent-soft) 0.34em, transparent 0.34em);
  background-repeat: no-repeat;
  background-position: 0 0.04em;
  padding-inline: 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.band--dark .mark { background-image: linear-gradient(to top, rgba(247, 177, 60, 0.5) 0.34em, transparent 0.34em); }

/* 4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--hibiscus); color: var(--white); box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: #b81f4b; color: var(--white); box-shadow: var(--shadow-lift); }

.btn--dark { background: var(--soil); color: var(--white); }
.btn--dark:hover { background: #163024; color: var(--white); }

.btn--sun { background: var(--sun); color: var(--soil); }
.btn--sun:hover { background: #eda32b; color: var(--soil); }

.btn--ghost { background: transparent; color: var(--soil); border-color: var(--soil); }
.btn--ghost:hover { background: var(--soil); color: var(--white); }

.band--dark .btn--ghost { color: var(--shell); border-color: rgba(251, 246, 238, 0.5); }
.band--dark .btn--ghost:hover { background: var(--shell); color: var(--soil); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Text link with a moving arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 500;
  text-decoration: none;
  color: var(--soil);
}
.link-arrow span:last-child { transition: transform 0.18s ease; }
.link-arrow:hover span:last-child { transform: translateX(4px); }

/* 5. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: var(--s2); text-decoration: none; flex-shrink: 0; }
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--soil); color: var(--sun);
  border-radius: 13px;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.brand__tag { font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soil-soft); }
.brand img { max-height: 46px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: var(--s1) 0;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: var(--r-pill);
  background: var(--hibiscus);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_parent > a::after { transform: scaleX(1); }

.header-call {
  display: flex; align-items: center; gap: var(--s2);
  background: var(--sun);
  color: var(--soil);
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  flex-shrink: 0;
}
.header-call__label { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: 0.1em; display: block; line-height: 1.2; }
.header-call__num { font-family: var(--display); font-weight: 600; font-size: 0.98rem; line-height: 1.2; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--soil);
  border: 0;
  border-radius: var(--r-sm);
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--shell);
  margin: 4px auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 6. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: var(--s7) calc(var(--s8) + 40px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s7);
  align-items: center;
}
.hero h1 {
  font-size: var(--t-hero);
  margin-bottom: var(--s4);
}
.hero__lede { font-size: 1.15rem; color: var(--soil-soft); max-width: 34rem; margin-bottom: var(--s5); }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.hero__fact { display: flex; flex-direction: column; }
.hero__fact dt { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: 0.1em; color: var(--soil-soft); }
.hero__fact dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }

/* Arch-framed photograph — the recurring shape across the whole site */
.arch {
  border-radius: 50vw 50vw var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--shell-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.hero__media { position: relative; }
.hero__media .arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lift); }

/* Floating info chips over the hero photo */
.chip {
  position: absolute;
  background: var(--white);
  border-radius: var(--r);
  padding: var(--s2) var(--s3);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--t-small);
  line-height: 1.35;
  max-width: 15rem;
}
.chip strong { font-family: var(--display); font-weight: 600; display: block; }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.chip--a { left: -18px; top: 18%; }
.chip--b { right: -14px; bottom: 14%; }

/* Ngong Hills ridgeline closing the hero */
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; }
.ridge svg { width: 100%; height: auto; }

/* 7. Programme cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s4);
}

.programme {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.programme:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.programme__media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--accent-wash); }
.programme__media img { width: 100%; height: 100%; object-fit: cover; }
.programme__body { padding: var(--s4); display: flex; flex-direction: column; flex: 1; }

.age-chip {
  align-self: flex-start;
  background: var(--accent-wash);
  color: var(--soil);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.75rem;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}

.programme h3 { font-size: var(--t-h3); margin-bottom: var(--s2); }
.programme__blurb { color: var(--soil-soft); font-size: var(--t-small); }

.tick-list { list-style: none; margin: var(--s3) 0 var(--s4); padding: 0; display: grid; gap: 0.4rem; }
.tick-list li { position: relative; padding-left: 1.75rem; font-size: var(--t-small); }
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px 16px;
}

.programme__foot { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.programme__fee { font-family: var(--display); font-weight: 500; font-size: var(--t-small); color: var(--soil-soft); }

/* 8. Reasons grid
   ========================================================================== */
.reason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }

/* Auto-fit leaves a stretched orphan row when the item count does not divide
   evenly, so sets with a known length declare their columns instead. */
.reason-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reason-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .reason-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .reason-grid--3,
  .reason-grid--4 { grid-template-columns: minmax(0, 1fr); }
}
.reason {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
}
.reason__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-wash);
  margin-bottom: var(--s3);
}
.reason__icon svg { width: 24px; height: 24px; stroke: var(--soil); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reason h3 { font-size: var(--t-h4); margin-bottom: var(--s1); }
.reason p { font-size: var(--t-small); color: var(--soil-soft); }

/* 9. Daily rhythm — a genuine sequence, so it is numbered by clock time
   ========================================================================== */
.rhythm { position: relative; display: grid; gap: 0; }
.rhythm__row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.rhythm__row:last-child { border-bottom: 1px solid var(--line); }
.rhythm__time {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex; align-items: center; gap: var(--s2);
  color: var(--soil);
}
.rhythm__time::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.rhythm__row h3 { font-size: var(--t-h4); margin-bottom: 0.25rem; }
.rhythm__row p { font-size: var(--t-small); color: var(--soil-soft); }

/* 10. Call band
   ========================================================================== */
.call-band { text-align: center; }
.call-band .call-number {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  color: var(--sun);
  text-decoration: none;
  display: inline-block;
  margin-block: var(--s2) var(--s4);
  letter-spacing: -0.01em;
}
.call-band .call-number:hover { color: #ffc65f; }
.call-band p { color: #c8d9cd; max-width: 40rem; margin-inline: auto; }

/* 11. Posts
   ========================================================================== */
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--shell-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: var(--s4); display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.2rem; margin-bottom: var(--s2); }
.post-card h3 a { text-decoration: none; }
.post-card__meta { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: 0.1em; color: var(--soil-soft); margin-bottom: var(--s2); }
.post-card__excerpt { font-size: var(--t-small); color: var(--soil-soft); margin-bottom: var(--s3); }
.post-card .link-arrow { margin-top: auto; font-size: var(--t-small); }

/* Single post */
.entry-hero { padding-block: var(--s7) var(--s5); }
.entry-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.entry-meta { font-size: var(--t-small); color: var(--soil-soft); display: flex; flex-wrap: wrap; gap: var(--s3); }
.entry-featured { margin-bottom: var(--s6); border-radius: var(--r-lg); overflow: hidden; }

.entry-content { font-size: 1.08rem; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: var(--s6); }
.entry-content h3 { font-size: var(--t-h3); margin-top: var(--s5); }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin-bottom: var(--s4); }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content img { border-radius: var(--r); margin-block: var(--s4); }
.entry-content blockquote {
  margin: var(--s5) 0;
  padding: var(--s3) var(--s4);
  border-left: 4px solid var(--sun);
  background: var(--shell-2);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.1rem;
}
.entry-content a { text-decoration: underline; text-decoration-color: var(--hibiscus); }

.pagination { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-top: var(--s6); }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 44px; height: 44px;
  padding-inline: var(--s2);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  font-family: var(--display);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--soil); color: var(--white); border-color: var(--soil); }

/* 12. Forms
   ========================================================================== */
.field { margin-bottom: var(--s3); display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-family: var(--display); font-weight: 500; font-size: var(--t-small); }
.field .hint { font-size: var(--t-micro); color: var(--soil-soft); }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="date"], select, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--soil);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--soil); outline-offset: 1px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.form-grid .field--full { grid-column: 1 / -1; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
}

.notice { border-radius: var(--r); padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-size: var(--t-small); }
.notice--ok { background: #e6f2e2; border: 1px solid var(--leaf); }
.notice--bad { background: #fbe2e9; border: 1px solid var(--hibiscus); }

/* Honeypot — hidden from people, visible to bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s6); align-items: center; }
.newsletter form { display: flex; gap: var(--s2); flex-wrap: wrap; }
.newsletter input[type="email"] { flex: 1 1 16rem; background: var(--white); border-color: transparent; }

/* 13. Contact details list
   ========================================================================== */
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.detail-list li { display: flex; gap: var(--s3); align-items: flex-start; }
.detail-list__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-wash);
}
.detail-list__icon svg { width: 20px; height: 20px; stroke: var(--soil); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-list dt, .detail-list__label { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: 0.1em; color: var(--soil-soft); }
.detail-list__value { font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.detail-list__value a { text-decoration: none; }

.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--shell-2); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* 14. Split layouts (about / why us)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
.split--media-first .split__media { order: -1; }
.split__media .arch { aspect-ratio: 4 / 5; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.stat { border-left: 3px solid var(--accent); padding-left: var(--s3); }
.stat__num { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1; }
.stat__label { font-size: var(--t-small); color: var(--soil-soft); }

/* 15. Gallery
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s2); }
.gallery-grid a { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; display: block; background: var(--shell-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* 16. Page hero for interior pages
   ========================================================================== */
.page-hero { padding-block: var(--s7) var(--s6); background: var(--shell-2); position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-hero p { max-width: 42rem; color: var(--soil-soft); font-size: 1.1rem; }

.crumbs { font-size: var(--t-small); color: var(--soil-soft); margin-bottom: var(--s3); }
.crumbs a { text-decoration: none; }
.crumbs span[aria-hidden] { margin-inline: 0.4rem; }

/* 17. FAQ (details/summary — no JS needed)
   ========================================================================== */
.faq { display: grid; gap: var(--s2); }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3) var(--s4);
}
.faq summary {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem; line-height: 1;
  color: var(--hibiscus);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--s3); font-size: var(--t-small); color: var(--soil-soft); }

/* 18. Footer
   ========================================================================== */
.site-footer { background: var(--soil); color: #c8d9cd; padding-block: var(--s7) var(--s4); position: relative; }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer a { color: #c8d9cd; }
.site-footer a:hover { color: var(--sun); }

.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: var(--s6); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-list a { text-decoration: none; }

.footer-contact { display: grid; gap: var(--s2); font-size: var(--t-small); }
.footer-contact strong { color: var(--white); font-family: var(--display); font-weight: 500; }

.socials { display: flex; gap: var(--s2); margin-top: var(--s4); }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251, 246, 238, 0.1);
  transition: background-color 0.18s ease;
}
.socials a:hover { background: var(--sun); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials a:hover svg { fill: var(--soil); }

.footer-bottom {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid rgba(251, 246, 238, 0.15);
  display: flex; flex-wrap: wrap; gap: var(--s3);
  justify-content: space-between;
  font-size: var(--t-small);
}

/* Floating WhatsApp / call action on small screens */
.quick-call {
  position: fixed;
  right: var(--s3); bottom: var(--s3);
  z-index: 90;
  display: none;
  align-items: center; gap: var(--s2);
  background: var(--hibiscus); color: var(--white);
  padding: 0.85rem 1.2rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
  font-family: var(--display); font-weight: 500;
}
.quick-call svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* 19. Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  :root { --s7: 3.5rem; --s8: 4.5rem; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero__media { max-width: 26rem; margin-inline: auto; }
  .chip--a { left: 0; }
  .chip--b { right: 0; }
  .split { grid-template-columns: 1fr; gap: var(--s5); }
  .split--media-first .split__media { order: 0; }
  .split__media .arch { max-width: 24rem; margin-inline: auto; }
  .newsletter { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
}

@media (max-width: 860px) {
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--shell);
    border-bottom: 1px solid var(--line);
    padding: var(--s3) 1.25rem var(--s4);
    display: none;
    box-shadow: var(--shadow-soft);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: var(--s3) 0; font-size: 1.1rem; }
  .primary-nav a::after { display: none; }
  .quick-call { display: inline-flex; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .rhythm__row { grid-template-columns: 1fr; gap: var(--s1); }
  .hero__facts { gap: var(--s3) var(--s5); }
  .chip { position: static; margin-top: var(--s2); max-width: none; }
  .form-card { padding: var(--s4); }
}

/* 20. Motion and print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover, .programme:hover, .post-card:hover { transform: none; }
}

/* Scroll reveal — only applied when JS confirms motion is welcome */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media print {
  .site-header, .site-footer, .quick-call, .newsletter { display: none; }
  body { background: #fff; }
}
