/* =========================================================
   Swiss Gardens — Starting school page styles
   Loads alongside style.css. Keeps page-specific patterns
   out of the homepage stylesheet.
   ========================================================= */

/* ---------- page hero ---------- */
.page-hero {
  position: relative;
  background: var(--dark-teal);
  color: var(--white);
  overflow: hidden;
  padding: 88px 0 110px;
}
.page-hero-photo {
  position: absolute; inset: 0;
  background-image: url('../photos/sg-school-gate-golden-hour.jpg');
  background-size: cover;
  background-position: center 60%;
  opacity: 0.32;
  z-index: 1;
}
.page-hero-wash {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(20,116,132,0.94) 35%, rgba(20,116,132,0.65) 100%);
  z-index: 2;
}
/* Page-hero-inner inherits the .container width so hero text aligns to the
   same left baseline as body content below. Reading-width caps live on the
   title and lede themselves. */
.page-hero-inner {
  position: relative;
  z-index: 4;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--white);
  letter-spacing: -0.005em;
  max-width: 820px;
}
.page-hero-inner .hero-lede,
.page-hero-inner p.hero-lede {
  max-width: 700px;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
}
.breadcrumb span { margin: 0 8px; opacity: 0.6; }

/* ---------- about us intro — flyer copy as a calm warm-welcome panel ---------- */
.about-intro {
  background: var(--sky);
  padding: 64px 0;
  border-bottom: 1px solid rgba(20,116,132,0.06);
}
.about-intro-inner {
  max-width: 880px;
  text-align: center;
}
.about-intro-quote {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.2;
  color: var(--dark-teal);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.about-intro-attr {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0;
}
@media (max-width: 700px) {
  .about-intro-quote { font-size: 26px; }
}

/* ---------- journey strip (4 numbered steps) ---------- */
.journey { padding: 80px 0; background: var(--white); }
.journey-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey-step {
  background: var(--sky);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.journey-num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 10px;
}
.journey-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--dark-teal);
  margin-bottom: 10px;
}
.journey-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 16px;
  flex-grow: 1;
}
/* Small coral text on sky/white uses --coral-text (4.5:1+), not
   --coral (2.82–3.12:1, fails WCAG 1.4.3 AA). Same swap on the
   eyebrows, date chips and read-more links below. 20 Oct 2026. */
.journey-link {
  display: inline-block;
  padding-top: 4px;
  font-size: 13px;
  color: var(--coral-text);
  font-weight: 700;
  border-bottom: 1px solid var(--coral-text);
  padding-bottom: 1px;
  align-self: flex-start;
}
.journey-link:hover { text-decoration: none; opacity: 0.85; }

/* ---------- how to apply ---------- */
.apply { padding: 80px 0; background: var(--sky); }
.apply-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.apply-copy .section-title { margin-bottom: 16px; }
.apply-copy .lede { margin-bottom: 24px; }
.apply-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.apply-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(20,116,132,0.18);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.apply-list li:last-child { border-bottom: 1px solid rgba(20,116,132,0.18); }
.apply-list strong { color: var(--dark-teal); }
.apply-cta {
  background: var(--white);
  border: 1px solid rgba(20,116,132,0.16);
  border-radius: 12px;
  padding: 28px;
  position: sticky;
  top: 100px;
}
.apply-cta-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral-text);
  font-weight: 700;
  margin: 0 0 4px;
}
.apply-cta-line {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--dark-teal);
  margin: 0 0 18px;
  line-height: 1.2;
}
.apply-cta-foot {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.btn-block { display: block; text-align: center; }

/* ---------- key dates strip ---------- */
.dates { padding: 80px 0; background: var(--white); }
.dates-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.date-card {
  background: var(--sky);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Coral with --ink text (5.1:1); white on --coral is only 3.12:1. */
.date-card.date-card-highlight {
  background: var(--coral);
  color: var(--ink);
}
.date-card.date-card-highlight .date-when,
.date-card.date-card-highlight .date-title,
.date-card.date-card-highlight .date-body { color: var(--ink); }
.date-when {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral-text);
  font-weight: 700;
}
.date-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--dark-teal);
  line-height: 1.15;
}
.date-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- welcome videos band ---------- */
.welcome-videos { padding: 80px 0 96px; background: var(--sky); }
.welcome-videos-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.welcome-videos-intro .section-title { margin-bottom: 16px; }
.video-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,116,132,0.18); text-decoration: none; }
.video-card-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-teal);
  position: relative;
}
.video-play-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--coral);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  padding-left: 4px;
  z-index: 2;
}
.video-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--dark-teal);
  padding: 18px 18px 4px;
  line-height: 1.2;
}
.video-card-meta {
  padding: 0 18px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------- what to expect ---------- */
.expect { padding: 80px 0 56px; background: var(--white); }
.expect-list {
  margin-top: 24px;
  max-width: 760px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  padding: 12px 0 12px 32px;
  border-top: 1px solid rgba(20,116,132,0.16);
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}
.check-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}
.check-list li:last-child { border-bottom: 1px solid rgba(20,116,132,0.16); }

/* ---------- school readiness (8 categories) ---------- */
.readiness { padding: 64px 0 88px; background: var(--white); }
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.readiness-card {
  background: var(--sky);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.readiness-icon {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 4px;
}
.readiness-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--dark-teal);
  margin: 0 0 8px;
  line-height: 1.15;
}
.readiness-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.readiness-card ul li {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  border-top: 1px solid rgba(20,116,132,0.12);
}
.readiness-card ul li:first-child { border-top: none; padding-top: 0; }
.readiness-cta {
  text-align: center;
  margin-top: 8px;
}
.readiness-cta-foot {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* ---------- quick info cards (sub-pages) ---------- */
.quick-info { padding: 80px 0; background: var(--sky); }
.qi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.qi-card {
  border-radius: 12px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  position: relative;
  min-height: 170px;
  transition: transform .2s;
}
.qi-card:hover { transform: translateY(-3px); text-decoration: none; }
.qi-card-teal { background: var(--dark-teal); color: var(--white); }
.qi-card-coral { background: var(--coral); color: var(--white); }
.qi-card-sun { background: var(--sunshine); color: var(--ink); }
.qi-card-light { background: var(--light-teal); color: var(--ink); }
.qi-arrow {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: auto;
  align-self: flex-end;
}
.qi-label {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}
.qi-sub {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.92;
}

/* ---------- FAQs ---------- */
.faqs { padding: 80px 0 96px; background: var(--white); }
.faq-grid {
  max-width: 880px;
  /* margin: 0 auto removed 5 May 2026 — Al wanted FAQ list left-aligned
     with the section title rather than centred in the wider container. */
}
.faq {
  border-top: 1px solid rgba(20,116,132,0.18);
  padding: 0;
}
.faq:last-child { border-bottom: 1px solid rgba(20,116,132,0.18); }
.faq summary {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--dark-teal);
  padding: 22px 36px 22px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  font-size: 36px;
  font-weight: 300;
  color: var(--coral);
  line-height: 1;
  transition: transform .2s;
}
.faq[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--coral-text); }
.faq p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  padding: 0 0 24px;
  margin: 0;
  max-width: 720px;
}
.faq strong { color: var(--dark-teal); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .journey-row { grid-template-columns: repeat(2, 1fr); }
  .apply-grid { grid-template-columns: 1fr; gap: 36px; }
  .apply-cta { position: static; }
  .dates-row { grid-template-columns: repeat(2, 1fr); }
  .video-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .readiness-grid { grid-template-columns: repeat(2, 1fr); }
  .qi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .page-hero-title { font-size: 32px; }
  .journey-row { grid-template-columns: 1fr; }
  .dates-row { grid-template-columns: 1fr; }
  .video-grid-4 { grid-template-columns: 1fr; }
  .readiness-grid { grid-template-columns: 1fr; }
  .qi-grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 19px; }
}
@media (max-width: 420px) {
  /* Narrow-phone tier (e.g. Pixel 10 portrait at ~412 CSS px): drop the
     hero title another notch so it fits in 3 lines instead of 5, and
     pad the hero a bit tighter. */
  .page-hero { padding: 56px 0 72px; }
  .page-hero-title { font-size: 28px; line-height: 1.1; }
  .breadcrumb { font-size: 12px; }
}

/* ---------- 10 reasons expandable panel ---------- */
.reasons-expand {
  padding: 64px 0 80px;
  background: var(--white);
}
/* Bolder colour treatment 5 May 2026 — Al's note that the expandable
   wasn't drawing enough attention. Closed state is now a SUNSHINE
   yellow panel with teal-deep text (monochrome). Picked sunshine
   over coral because the page's "What to expect" already uses a
   coral panel — re-using coral here would be a colour repeat. Sunshine
   draws the eye just as hard but is a different visual moment. The
   teal-deep on sunshine combination is 5.28:1 AA-clean for body text.
   When OPEN we soften back to sky so the cards inside (each on white)
   sit on a calmer ground. */
.reasons-detail {
  background: var(--sky);
  border-radius: 14px;
  padding: 0;
  border: 1px solid rgba(20,116,132,0.16);
  overflow: hidden;
}
.reasons-detail:not([open]) {
  background: var(--sunshine);
  border-color: var(--sunshine-deep);
  box-shadow: 0 8px 28px -16px rgba(252,212,56,0.65);
}
.reasons-detail summary {
  list-style: none;
  cursor: pointer;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  border-radius: 14px;
  transition: background .2s;
}
.reasons-detail summary::-webkit-details-marker { display: none; }
.reasons-detail summary:hover { background: rgba(20,116,132,0.04); }
.reasons-detail:not([open]) summary:hover { background: rgba(14,89,102,0.06); }
.reasons-summary-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral-text);
  font-weight: 700;
}
.reasons-detail:not([open]) .reasons-summary-eyebrow { color: var(--teal-deep); }
.reasons-summary-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--dark-teal);
  line-height: 1.1;
}
.reasons-detail:not([open]) .reasons-summary-title { color: var(--teal-deep); }
.reasons-summary-hint {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 6px;
}
/* No opacity: at 0.85 the hint fell to 4.29:1 on sunshine (AA 4.5). */
.reasons-detail:not([open]) .reasons-summary-hint { color: var(--teal-deep); }
.reasons-detail summary::after {
  content: "+";
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  font-weight: 300;
  color: var(--coral);
  line-height: 1;
}
.reasons-detail:not([open]) summary::after { color: var(--teal-deep); }
.reasons-detail[open] summary::after { content: "−"; }

/* the cards inside the expandable */
.reasons-detail .reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 36px 32px;
}
.reasons-detail .reason-card {
  background: var(--white);
  border-radius: 12px;
  padding: 26px 26px 22px;
  border: 1px solid rgba(20,116,132,0.10);
}
.reasons-detail .reason-num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--coral);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.reasons-detail .reason-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  color: var(--dark-teal);
  margin: 0 0 12px;
}
.reasons-detail .reason-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.reasons-detail .reason-card p:last-child { margin-bottom: 0; }
.free-pill { font-weight: 700; }
.free-friendship { color: #f06468; }
.free-respect { color: #fcd438; }
.free-excellence { color: #58c4c4; }
.free-enjoyment { color: #f06468; }
.ofsted-pull {
  background: rgba(20,116,132,0.07);
  border-left: 3px solid var(--coral);
  padding: 12px 14px;
  margin-top: 12px;
  border-radius: 4px;
}
.ofsted-pull p {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--dark-teal);
  margin: 0 0 4px;
  line-height: 1.4;
}
.ofsted-pull .ofsted-attr {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 700;
}
.reasons-readmore {
  text-align: center;
  margin: 0;
  padding: 0 36px 32px;
}
.reasons-readmore a {
  color: var(--coral-text);
  font-weight: 700;
  border-bottom: 1px solid var(--coral-text);
  padding-bottom: 1px;
}
.reasons-readmore a:hover { text-decoration: none; opacity: 0.85; }

@media (max-width: 800px) {
  .reasons-detail summary { padding: 24px 24px; }
  .reasons-summary-title { font-size: 26px; }
  .reasons-detail summary::after { right: 20px; font-size: 36px; }
  .reasons-detail .reasons-grid { grid-template-columns: 1fr; padding: 0 20px 24px; gap: 16px; }
  .reasons-readmore { padding: 0 20px 24px; }
}
