/* ═══════════════════════════════════════════════════════════
   ALBAN Preschool — shared stylesheet
   All pages link to this file. Edit once, applies everywhere.
═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --cream:       #f5ede0;
  --cream-dark:  #ede0ce;
  --green-deep:  #1a3a2a;
  --green-mid:   #2d6a4f;
  --green-light: #d8ead2;
  --green-pale:  #eef5eb;
  --sand:        #c8b89a;
  --text:        #1a3a2a;
  --text-muted:  #4a6355;
  --white:       #ffffff;
  --radius:      10px;
  --nav-h:       92px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* Prevent horizontal overflow / white strip on mobile */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: clip;
}
h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--green-deep);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }

div.section-title-div {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: .75rem;
  color: var(--green-deep);
}


/* ── NAVBAR ──────────────────────────────────────────────── */
#mainNav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--cream);
  min-height: var(--nav-h);
  width: 100%;
  left: 0; right: 0;
  border-bottom: 1px solid var(--cream-dark);
  transition: box-shadow .3s;
}
#mainNav.scrolled { box-shadow: 0 2px 16px rgba(26,58,42,.10); }
#mainNav .container {
  width: 100% !important;
  max-width: 1320px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Brand: icon + wordmark */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.navbar-brand .brand-icon {
  height: 98px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: -6px 0;       /* slight pull to keep it centred in the bar */
}
.navbar-brand .brand-wordmark {
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.navbar-brand .brand-wordmark span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-deep);
  display: block;
}
.navbar-brand .brand-wordmark .brand-sub {
  letter-spacing: 1.5px;
}

/* Responsive icon sizes */
@media (min-width: 992px) {
  .navbar-brand .brand-icon { height: 108px; }
}
@media (max-width: 575px) {
  .navbar-brand .brand-icon { height: 74px; }
  .navbar-brand .brand-wordmark span { font-size: 1.25rem; }
  #mainNav .container { padding-left: .75rem; padding-right: .75rem; }
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem; font-weight: 500;
  color: var(--green-deep) !important;
  padding: .4rem .75rem !important;
  transition: color .2s;
}
.nav-link:hover { color: var(--green-mid) !important; }
.nav-link.active { color: var(--green-mid) !important; font-weight: 600; }
.nav-cta {
  background: var(--green-mid);
  color: var(--white) !important;
  border-radius: 6px;
  padding: .45rem 1.2rem !important;
  font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--green-deep) !important; }
.navbar-toggler { border: none; padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231a3a2a' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
@media (max-width:991px) {
  .navbar-collapse {
    background: var(--cream);
    padding: 1rem 1rem 1.5rem;
    border-top: 1px solid var(--cream-dark);
    width: 100%;
  }
  .nav-link { padding: .6rem 0 !important; border-bottom: 1px solid var(--cream-dark); }
  .nav-cta { margin-top: .75rem; display: inline-block; border-bottom: none !important; padding: .6rem 1.25rem !important; }
}

/* ── DROPDOWN MENUS ──────────────────────────────────────── */
.dropdown-menu {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: .5rem 0;
  margin-top: .25rem;
  box-shadow: 0 8px 24px rgba(26,58,42,.10);
}
.dropdown-item {
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: var(--green-deep);
  padding: .5rem 1.25rem;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--green-pale);
  color: var(--green-mid);
}
.dropdown-divider {
  border-color: var(--cream-dark);
  margin: .25rem 0;
}

/* ── Anchor Spacing & Style ─────────────────────────────── */
/* Offset anchor links to account for sticky nav height */
[id] {
  scroll-margin-top: 128px;
}

/* Flash highlight when an anchor card is targeted */
.feature-card:target,
[id]:target .feature-card,
.room-block:target .feature-icon {
  animation: highlight-flash 1.8s ease-out;
}

@keyframes highlight-flash {
  0%   { box-shadow: 0 0 0 3px var(--green-mid); }
  100% { box-shadow: none; }
}


/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--cream);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--cream-dark);
}
.page-hero .section-label { margin-bottom: .5rem; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: .75rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin: 0;
}

/* ── SHARED SECTION STYLES ───────────────────────────────── */
section { padding: 5rem 0; }
.section-label {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1; margin-bottom: 1.25rem;
}
.section-body {
  font-size: 1rem; line-height: 1.8;
  color: var(--text-muted); max-width: 600px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-green {
  background: var(--green-mid); color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 2.4rem; border-radius: var(--radius);
  border: none; transition: background .2s; display: inline-block; cursor: pointer;
}
.btn-primary-green:hover { background: var(--green-deep); color: var(--white); }
.btn-outline-green {
  background: transparent; color: var(--green-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .85rem 2.2rem; border-radius: var(--radius);
  border: 2px solid var(--green-mid);
  transition: background .2s, color .2s; display: inline-block;
}
.btn-outline-green:hover { background: var(--green-mid); color: var(--white); }

/* ── FEATURE CARDS ───────────────────────────────────────── */
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.75rem; height: 100%;
  border: 1px solid var(--cream-dark);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover,
.feature-card:focus-within { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,58,42,.09); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--green-pale); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--green-mid); margin-bottom: 1.25rem;
}
.feature-card h4 { font-size: 1.2rem; margin-bottom: .6rem; }
.feature-card p { font-size: .92rem; line-height: 1.7; color: var(--text-muted); margin: 0; }
.feature-link {
  display: inline-block; margin-top: 1rem;
  font-size: .85rem; font-weight: 600; color: var(--green-mid);
  text-decoration: underline; text-underline-offset: 3px;
}
.feature-link:focus-visible {
  outline: 2px solid var(--green-mid); outline-offset: 3px; border-radius: 2px;
}

/* ── INFO CARDS (used on admissions, parents etc) ────────── */
.info-card {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--green-mid);
}
.info-card h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; margin-bottom: .5rem;
}
.info-card p, .info-card li {
  font-size: .93rem; color: var(--text-muted); line-height: 1.75; margin: 0;
}
.info-card ul { padding-left: 1.1rem; margin: .5rem 0 0; }

/* ── ACCORDION (FAQ) ─────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--cream-dark) !important;
  border-radius: var(--radius) !important;
  margin-bottom: .5rem; overflow: hidden;
}
.accordion-button {
  font-family: 'DM Sans', sans-serif;
  font-size: .97rem; font-weight: 600;
  color: var(--green-deep) !important;
  background: var(--white) !important;
  padding: 1.1rem 1.4rem;
}
.accordion-button:not(.collapsed) {
  background: var(--green-pale) !important;
  color: var(--green-mid) !important;
  box-shadow: none !important;
}
.accordion-button::after {
  filter: invert(24%) sepia(27%) saturate(800%) hue-rotate(100deg);
}
.accordion-body {
  font-size: .93rem; color: var(--text-muted);
  line-height: 1.8; padding: 1rem 1.4rem 1.4rem;
  background: var(--white);
}

/* ── TEAM CARDS ──────────────────────────────────────────── */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(26,58,42,.09); }
.team-card-img {
  height: 300px; overflow: hidden;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.team-card-img img { height: 300px; object-fit: cover; object-position: center 20%; }

.team-card-img .initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 700;
  color: var(--green-mid);
}
.team-card-body { padding: 1.25rem 1.5rem; }
.team-card-body h5 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-card-body .role {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: .6rem;
}
.team-card-body p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── POLICY LIST ─────────────────────────────────────────── */
.policy-group { margin-bottom: 2rem; }
.policy-group h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--green-deep);
  border-bottom: 2px solid var(--green-light);
  padding-bottom: .5rem; margin-bottom: 1rem;
}
.policy-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem;
  border-radius: 8px;
  color: var(--text);
  font-size: .92rem;
  transition: background .15s;
  border: 1px solid transparent;
}
.policy-link:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
  color: var(--green-mid);
}
.policy-link i { color: var(--green-mid); flex-shrink: 0; }

/* ── CONTACT FORM ────────────────────────────────────────── */
.form-label {
  font-size: .82rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: .4rem;
}
.form-control {
  border: 1.5px solid var(--cream-dark); border-radius: 8px;
  padding: .75rem 1rem; font-size: .95rem; color: var(--text);
  background: var(--white); transition: border-color .2s;
}
.form-control:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
textarea.form-control { resize: vertical; min-height: 130px; }

/* ── CONTACT INFO ────────────────────────────────────────── */
.contact-card { background: var(--green-pale); border-radius: var(--radius); padding: 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon {
  width: 40px; height: 40px; background: var(--green-light);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--green-mid); font-size: 1.1rem; flex-shrink: 0;
}
.contact-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .2rem;
}
.contact-value { font-size: .95rem; color: var(--text); font-weight: 500; }
.map-wrap { border-radius: var(--radius); overflow: hidden; height: 260px; margin-top: 1.5rem; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ── STATS STRIP ─────────────────────────────────────────── */
.stats { background: var(--green-pale); border-bottom: 1px solid var(--green-light); }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem; font-weight: 700;
  color: var(--green-mid); line-height: 1; margin-bottom: .3rem;
}
.stat-label {
  font-size: .88rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase;
}

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band { background: var(--cream); padding: 5rem 0; text-align: center; }
.cta-band p { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.65);
  padding: 3rem 0 2rem;
  font-size: .88rem;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: .4rem;
}
footer a { color: rgba(255,255,255,.65); transition: color .2s; }
footer a:hover { color: var(--white); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: .5rem; }
.footer-heading {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

/* ── OFSTED BADGE ────────────────────────────────────────── */
.ofsted-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-pale); border: 1px solid var(--green-light);
  border-radius: 6px; padding: .5rem 1rem;
  font-size: .82rem; font-weight: 600; color: var(--green-mid);
}

/* ── NOTICE BOX ──────────────────────────────────────────── */
.notice {
  background: var(--cream); border-left: 4px solid var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem; font-size: .9rem;
  color: var(--text-muted); line-height: 1.7;
}

/* ── Our Rooms (about.html #our-rooms) ──────────────────── */
.room-block + .room-block { margin-top: 4rem; }
.room-title {
  display: flex; align-items: center; gap: 1rem;
  font-size: 1.6rem; margin-bottom: 1.5rem;
}
.room-title .feature-icon { margin-bottom: 0; flex-shrink: 0; }

/* Uniform 4:3 tiles so mixed orientations line up (global img rule supplies cover) */
.room-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
/* Portrait shots: shift the crop down to keep the subject in frame */
.room-photo--pos-70 { object-position: center 70%; }
.room-photo--pos-80 { object-position: center 80%; }
/* Tall tiles: 9:16 photos and the portrait video share one height in a row */
.room-photo--tall { aspect-ratio: 9 / 16; }

/* Portrait (9:16) video: never cropped, height capped, centred in its column */
.room-video {
  display: block;
  width: auto; max-width: 100%;
  height: auto; max-height: 70vh;
  margin-inline: auto;
  border-radius: var(--radius);
}
/* Video as a grid tile: fill the column so it matches the tall photos beside it */
.room-video--tile { width: 100%; max-height: none; aspect-ratio: 9 / 16; object-fit: cover; }
