/* ============================================================
   Excellent Spirit International School — shared stylesheet
   Brand palette: blue #2D5682 · maroon #9C1F2D · green #315937 · gold #B8963E
   ============================================================ */

:root {
  --blue: #2D5682;
  --blue-dark: #1e3c5c;
  --maroon: #9C1F2D;
  --green: #315937;
  --gold: #B8963E;
  --gold-light: #f6ecd8;
  --ink: #1f2a33;
  --ink-soft: #4b5a66;
  --paper: #ffffff;
  --paper-soft: #f7f5f0;
  --border: #e3ddce;
  --shadow: 0 10px 30px rgba(30, 60, 92, 0.08);
  --radius: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--blue-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top banner ---------- */
.top-banner {
  background: var(--blue-dark);
  color: #dce8f2;
  font-size: 0.85rem;
  padding: 6px 0;
}
.top-banner .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.top-banner a { color: #dce8f2; }
.top-banner a:hover { color: #fff; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}
/* The header row alone gets extra width beyond --max-width: adding the
   OIC logo (compliance-driven minimum size, see BUILD-NOTES) narrows the
   room left for the nav links, so without this the "Admissions" button
   wraps to its own line at standard desktop widths. */
header.site-header .nav-wrap { max-width: 1260px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
}
.brand img { height: 48px; width: auto; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--blue-dark);
  font-size: 1.05rem;
}
.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
}
nav.main-nav a:hover { background: var(--gold-light); text-decoration: none; }
nav.main-nav a.active { background: var(--blue); color: #fff; }
nav.main-nav a.sen-link { color: var(--maroon); }
nav.main-nav a.sen-link.active { background: var(--maroon); color: #fff; }

.nav-cta {
  background: var(--maroon);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 999px;
}
.nav-cta:hover { background: #7d1824; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.oic-badge-header { flex-shrink: 0; display: flex; align-items: center; }
.oic-logo-header { height: 48px; width: auto; display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 2px; padding: 10px 0; }
  nav.main-nav a { display: block; }
  .nav-wrap { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 72px 0 84px;
}
.hero .container { max-width: var(--max-width); }
.hero h1 { color: #fff; }
.hero p.lede { color: #dce8f2; font-size: 1.15rem; max-width: 640px; }
.hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  background: rgba(184,150,62,0.18);
  border: 1px solid rgba(184,150,62,0.4);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.page-hero {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}
.page-hero .eyebrow {
  display: inline-block;
  color: var(--maroon);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.page-hero p.lede { font-size: 1.1rem; max-width: 680px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: #2a2107; }
.btn-gold:hover { background: #a3822f; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: #7d1824; }
.btn-blue-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-blue-outline:hover { background: var(--blue); color: #fff; }
.btn-green-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-green-outline:hover { background: var(--green); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #24422a; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--paper-soft); }
section.tight { padding: 44px 0; }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .kicker {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
}

.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card.value { border-top: 4px solid var(--gold); }
.card h3 { margin-bottom: 10px; }

.callout {
  background: var(--gold-light);
  border: 1px solid #e8d8ac;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 28px 0;
}
.callout.blue {
  background: #eaf1f8;
  border-color: #c9dcec;
  border-left-color: var(--blue);
}
.callout.maroon {
  background: #f8ecec;
  border-color: #edd0d3;
  border-left-color: var(--maroon);
}
.callout.green {
  background: #eaf1ea;
  border-color: #cfe0cf;
  border-left-color: var(--green);
}
.callout p:last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 6px 6px 0;
}

/* ---------- Tables ---------- */
table.nice {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
table.nice th, table.nice td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}
table.nice th {
  background: var(--blue-dark);
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
}
table.nice tr:last-child td { border-bottom: none; }
table.nice tr:nth-child(even) td { background: var(--paper-soft); }
.table-scroll { overflow-x: auto; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.step-num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.step h3 { margin-bottom: 6px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.checklist .mark { color: var(--green); font-weight: 800; font-size: 1.1rem; }
.checklist strong { display: block; color: var(--blue-dark); margin-bottom: 3px; }

/* ---------- Real photo frames ---------- */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero with a classroom photograph behind a dark blue wash */
.hero--photo {
  background:
    linear-gradient(135deg, rgba(16,42,74,0.88) 0%, rgba(16,42,74,0.62) 100%),
    url("../assets/hero-classroom.jpg") center 30% / cover no-repeat;
}

/* ---------- Placeholder blocks (photos not yet supplied) ---------- */
.photo-placeholder {
  background: repeating-linear-gradient(135deg, #eef1f4, #eef1f4 10px, #e4e9ee 10px, #e4e9ee 20px);
  border: 1px dashed #a9b6c1;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #5c6b78;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  min-height: 220px;
}

/* Compact variant for a multi-photo gallery grid: same dashed "to be
   supplied" treatment, sized for four-across rather than a single
   two-column pairing, with a small category tag above the caption. */
.gallery-grid .photo-placeholder {
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 16px;
  gap: 8px;
}
.gallery-grid .photo-placeholder .category-tag {
  display: inline-block;
  background: var(--paper);
  color: var(--blue-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gallery-grid .photo-placeholder span:not(.category-tag) {
  font-weight: 600;
  font-size: 0.82rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--maroon);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #f3dee0; max-width: 560px; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Kaleidoscope divider ----------
   Decorative brand accent, cropped from the Oxford International
   Curriculum "Kaleidoscope" graphic supplied in OUP's brand guidelines
   (see BUILD-NOTES.md for full provenance and compliance notes).
   Shown as a single, unscaled-aspect slice — never stretched or
   recoloured — in a slim band between the CTA and the footer, echoing
   the "foot of the page" placement the guidelines show for OIC marks. */
.kaleidoscope-divider {
  width: 100%;
  height: 56px;
  background-image: url("../assets/kaleidoscope-band.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-top: 6px solid var(--paper);
  border-bottom: 6px solid var(--paper);
}
@media (max-width: 700px) {
  .kaleidoscope-divider { height: 34px; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--blue-dark);
  color: #cddcea;
  padding: 48px 0 24px;
  font-size: 0.92rem;
}
footer.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 32px; }
footer.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
footer.site-footer a { color: #cddcea; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site-footer .foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #9fb4c7;
}
@media (max-width: 700px) {
  footer.site-footer .grid { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
}

.tbd-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff6e0;
  border: 1px solid #ecd48a;
  color: #7a5b06;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.breadcrumb-space { height: 4px; background: linear-gradient(90deg, var(--blue), var(--gold), var(--maroon), var(--green)); }

/* Filled gallery tile: a real photo, same 4/3 frame and category tag as
   the placeholder it replaces, so tiles can be swapped in one at a time
   as photos clear consent without the grid shifting. */
.gallery-grid .gallery-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-grid .gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-grid .gallery-photo .category-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--paper);
  color: var(--blue-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* ---------- Enquiry form ---------- */
.enquiry-form {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.enquiry-form .field { margin-bottom: 18px; }
.enquiry-form label {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
}
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.enquiry-form textarea { min-height: 110px; resize: vertical; }
.enquiry-form .form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; margin-bottom: 0; }
.enquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) {
  .enquiry-form .form-row { grid-template-columns: 1fr; }
  .enquiry-form { padding: 22px; }
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}
.whatsapp-float:hover { background: #1eb85a; text-decoration: none; color: #fff; }
.whatsapp-float svg { width: 24px; height: 24px; flex-shrink: 0; }
@media (max-width: 620px) {
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; }
}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
