/* ===============================================================
   PRESCHOOL — mint-accented phase page
   Overrides + additions on top of phases.css
   =============================================================== */

/* Phase color scheme (mint): emerald #1cbc91 on light AND dark backgrounds */
.phase-root--preschool {
  --phase: #1cbc91;
  --phase-dark: #1cbc91;
  --phase-ink: var(--ba-navy);
  --phase-soft: rgba(28, 188, 145, 0.08);
  --phase-mint-light: var(--ba-mint);
}

/* Eyebrows on light sections — mint #1cbc91 */
.phase-root--preschool .eyebrow-txt { color: #1cbc91; }

/* Hero — align spacing to HS billboard (no top padding, align-items end
   pushes content down; copy has natural bottom padding). */
.phase-root--preschool .phase-hero-v { min-height: 700px; }
.phase-root--preschool .phase-hero-v__inner {
  padding-top: 56px;
  min-height: 520px;
}
.phase-root--preschool .phase-hero-v__copy { padding-bottom: 72px; }
.phase-root--preschool .phase-hero-v__cutout img { max-width: 480px; }
@media (max-width: 900px) {
  .phase-root--preschool .phase-hero-v { min-height: 0; }
  .phase-root--preschool .phase-hero-v__inner { padding-top: 112px; min-height: 0; }
}

/* Hero — softer mint wash */
.phase-root--preschool .phase-hero-v__eyebrow { color: rgba(255,255,255,0.85); }
.phase-root--preschool .phase-hero-billboard__display em {
  color: var(--ba-mint);
}
.phase-root--preschool .phase-hero-v--natural .phase-hero-v__bg {
  filter: saturate(1.06) contrast(1.03);
  background-position: center 50%;
}
.phase-root--preschool .phase-hero-v--natural .phase-hero-v__wash {
  background:
    linear-gradient(100deg, rgba(0,29,57,0.80) 0%, rgba(0,29,57,0.48) 32%, rgba(0,29,57,0.08) 52%, rgba(0,29,57,0) 72%),
    linear-gradient(180deg, rgba(0,29,57,0) 55%, rgba(0,29,57,0.42) 100%);
}

/* ===============================================================
   DAY IN THE LIFE — horizontal rhythm strip
   =============================================================== */
.phase-section--day { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }

/* Day in the life — photo background with navy wash, light strip */
.phase-root--preschool .phase-section--day {
  background-image:
    linear-gradient(180deg, rgba(0,21,42,0.86) 0%, rgba(0,29,57,0.90) 100%),
    url(../assets/photos/campus-syringa.jpg);
  background-size: cover;
  background-position: center 38%;
}
.phase-root--preschool .phase-section--day .eyebrow-txt { color: #1cbc91; }
.phase-root--preschool .phase-section--day .phase-section__title { color: #fff; }
.phase-root--preschool .phase-section--day .phase-section__title em { color: #1cbc91; }
.phase-root--preschool .phase-section--day .day-rhythm {
  border-top-color: rgba(255,255,255,0.20);
  border-bottom-color: rgba(255,255,255,0.20);
}
.phase-root--preschool .phase-section--day .day-rhythm__item { border-left-color: rgba(255,255,255,0.16); }
.phase-root--preschool .phase-section--day .day-rhythm__time { color: #1cbc91; }
.phase-root--preschool .phase-section--day .day-rhythm__dot { background: #1cbc91; }
.phase-root--preschool .phase-section--day .day-rhythm__body { color: #fff; font-family: var(--font-sans); font-size: 15px; line-height: 1.5; }
.phase-root--preschool .phase-section--day .day-rhythm__body em { color: #fff; font-style: normal; }

.day-rhythm {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(0,29,57,0.12);
  border-bottom: 1px solid rgba(0,29,57,0.12);
}
.day-rhythm__item {
  padding: 28px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid rgba(0,29,57,0.10);
  min-width: 0;
}
.day-rhythm__item:first-child { border-left: 0; }
.day-rhythm__time {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1cbc91;
  font-weight: 500;
}
.day-rhythm__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--phase);
  margin-top: 4px;
}
.day-rhythm__body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.35;
  color: var(--ba-navy);
  margin-top: 6px;
}
.day-rhythm__body em {
  font-style: italic;
  color: var(--phase-dark);
}
@media (max-width: 900px) {
  .day-rhythm {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-left: 1px solid rgba(0,29,57,0.12);
    border-right: 1px solid rgba(0,29,57,0.12);
  }
  .day-rhythm::-webkit-scrollbar { display: none; }
  .day-rhythm__item {
    flex: 0 0 68%;
    scroll-snap-align: start;
    padding: 22px 20px 26px;
  }
  .day-rhythm__item:first-child { border-left: 0; }
}

/* ===============================================================
   CURRICULUM — two-column programme rows (no meta)
   =============================================================== */
.phase-curric {
  background: var(--ba-off-white);
}
.phase-curric__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .phase-curric__grid { gap: 32px; }
}

.programme-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 0;
}
.programme-row:nth-child(1),
.programme-row:nth-child(2) { border-top: 1px solid rgba(0,29,57,0.14); }
@media (max-width: 760px) {
  .programme-list { grid-template-columns: 1fr; }
  .programme-row:nth-child(2) { border-top: 0; }
}
.programme-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 32px 0 34px;
  border-bottom: 1px solid rgba(0,29,57,0.14);
}
.programme-row__name {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.2;
  color: var(--ba-navy);
  font-style: italic;
}
.programme-row__name em {
  font-style: italic;
}
/* Per-page heading accent */
.phase-root--preschool .programme-row__name,
.phase-root--preschool .programme-row__name em { color: #1cbc91; }
.phase-root--juniorprep .programme-row__name,
.phase-root--juniorprep .programme-row__name em { color: var(--ba-teal); }
.phase-root--seniorprep .programme-row__name,
.phase-root--seniorprep .programme-row__name em { color: var(--ba-teal); }
.programme-row__body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}
@media (max-width: 640px) {
  .programme-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
}

.phase-curric__note {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 25px;
  box-shadow: 0 18px 40px -24px rgba(0,29,57,0.16), 0 2px 8px rgba(0,29,57,0.04);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 760px) {
  .phase-curric__note { grid-template-columns: 1fr; }
}
.phase-curric__note-head {
  position: relative;
  display: flex; align-items: flex-end;
  padding: 30px;
  min-height: 200px;
  overflow: hidden;
}
.phase-curric__note-head img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;
}
.phase-curric__note-head::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(0,29,57,0.45) 0%, rgba(0,29,57,0.74) 100%);
}
.phase-curric__note-copy {
  padding: 32px 36px;
  align-self: center;
}
.phase-curric__note h3 {
  position: relative; z-index: 1;
  font-family: var(--font-serif); font-weight: 400;
  font-size: 24px; line-height: 1.22;
  margin: 0; color: #fff;
  max-width: 16ch;
}
.phase-curric__note h3 em { font-style: normal; color: #fff; }
.phase-curric__note p {
  font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0 0 12px;
}
.phase-curric__note p:last-child { margin-bottom: 0; }
.phase-curric__note-copy p:last-child { margin-bottom: 0; }
.phase-curric__note-copy p { max-width: none; }

/* ===============================================================
   AFTERCARE + TRANSPORT — reusing the .meals card pattern
   Two-column white card with image on top, divider between cols.
   =============================================================== */
.phase-aftercare { background: var(--ba-navy); position: relative; overflow: hidden; }
.phase-aftercare > .container { position: relative; z-index: 1; }
.phase-aftercare__watermark {
  position: absolute;
  top: 50%; right: -120px;
  transform: translateY(-50%);
  width: 620px; height: 620px;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
}
.phase-aftercare__watermark > .dandelion {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
}
.phase-aftercare .eyebrow-txt { color: #1cbc91; }
.phase-aftercare__title { color: #fff; }
.phase-aftercare__lead { color: rgba(255,255,255,0.82); }

.phase-aftercare__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px; row-gap: 0;
  align-items: start;
  max-width: none;
  margin-bottom: 40px;
}
.phase-aftercare__head .eyebrow-txt { grid-column: 1; grid-row: 1; }
.phase-aftercare__title { grid-column: 1; grid-row: 2; }
.phase-aftercare__lead  { grid-column: 2; grid-row: 2; }
@media (max-width: 760px) {
  .phase-aftercare__head { grid-template-columns: 1fr; }
  .phase-aftercare__head .eyebrow-txt,
  .phase-aftercare__title,
  .phase-aftercare__lead { grid-column: 1; }
  .phase-aftercare__lead { grid-row: auto; }
}
.phase-aftercare__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  color: #fff;
  margin: 0;
}
.phase-aftercare__title em {
  font-style: italic;
  color: #1cbc91;
}
.phase-aftercare__lead {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 52ch;
  margin: 0;
}

.phase-aftercare__card {
  background: #1f2c46;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.3);
  display: grid;
}
.phase-aftercare__card-body {
  padding: 40px 32px;
  display: grid;
  gap: 32px;
}
@media (min-width: 760px) {
  .phase-aftercare__card-body {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 48px;
  }
}
.phase-aftercare__col { display: flex; flex-direction: column; gap: 30px; }
.phase-aftercare__col--divider { padding-top: 0; }
@media (min-width: 760px) {
  .phase-aftercare__col--divider {
    margin-left: -24px;
    padding-left: 48px;
    border-left: 1px solid rgba(255,255,255,0.18);
    padding-top: 0;
  }
}
.phase-aftercare__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1cbc91;
  font-weight: 500;
}
.phase-aftercare__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.18;
  color: #fff;
  margin: 0;
}
.phase-aftercare__headline em {
  font-style: italic;
  color: #1cbc91;
}
.phase-aftercare__col p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-width: 48ch;
}
.phase-aftercare__col p + p { margin-top: 10px; }
.phase-aftercare__col p strong {
  color: #fff;
  font-weight: 500;
}

/* ===============================================================
   PRESCHOOL CTA — walkabout image, mint italic
   =============================================================== */
.phase-root--preschool .phase-cta-photo__title em {
  color: var(--ba-mint);
}

/* ===============================================================
   GALLERY — override phase-dark text color on dark band
   (Reusing .hs-gallery but phase here is mint, so italic reads mint)
   =============================================================== */
.phase-root--preschool .hs-gallery .phase-section__title em {
  color: var(--ba-mint);
}
