/* ============================================================
 * Brighton International School — Redesign Concepts CSS
 * Three visual concepts sharing one stylesheet, differentiated
 * via body class: .c1 (Classic Warmth), .c2 (Modern Editorial),
 * .c3 (Bold Contemporary).
 *
 * Palette sourced from the real Brighton brand colors (as used in
 * mx_parent_pwa/static/src/pwa/app.css — logo shield oxblood +
 * crimson linework + logo gold), not an invented set.
 *
 * WCAG AA contrast verified for all text uses:
 * - Dark gold #786117 (darkened brand gold) on warm paper #faf8f8 → ~5.6:1 (pass)
 * - Crimson #c41e33 on warm paper #faf8f8 → passes AA for large/bold text
 * - Oxblood #4f1720 on warm paper #faf8f8 → passes AA
 * - Warm paper #faf8f8 on oxblood-dark #360f16 → passes AA
 * - Brand gold #c9a227 on oxblood-dark #360f16 → passes AA (dark bg only;
 *   fails on light backgrounds, so --gold-text uses the darkened variant)
 * ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.bis-site {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Focus visibility (WCAG 2.4.7 / 1.4.11) ───────────────────
 * Every interactive element gets a clear focus ring on keyboard
 * navigation. Uses :focus-visible so mouse clicks don't show it.
 *
 * Double-ring technique (white ring + oxblood ring): a single
 * gold ring fails the 3:1 non-text contrast minimum against our
 * own light backgrounds (paper/white ≈ 2.3:1), so instead we pair
 * a white inner ring (contrasts against dark sections/buttons)
 * with a dark oxblood outer ring (contrasts against light
 * sections) — together at least one ring always reaches 3:1
 * against whatever the element sits on.
 * ─────────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.bis-nav-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #360f16;
  border-radius: 4px;
}

/* Fallback for browsers without :focus-visible support */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #360f16;
}

/* ── Skip to content link ─────────────────────────────────────
 * Hidden off-screen until focused (first Tab stop on every page).
 * ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 2000;
  background: #360f16;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--gold-bright, #c9a227);
  outline-offset: 2px;
}

/* ── CSS Variables — Concept 1: Classic Warmth ─────────────── */
body.bis-site.c1 {
  --bg: #faf8f8;
  --bg-alt: #f4eced;
  --bg-dark: #360f16;
  --text: #201a1b;
  --text-muted: #6a5f61;
  --red: #c41e33;
  --red-dark: #a3182a;
  --gold-text: #786117;   /* darkened brand gold — passes WCAG AA on --bg */
  --gold-accent: #c9a227;  /* true brand gold — decorative only */
  --gold-bright: #c9a227;  /* brand gold reads fine on dark bg sections */
  --cream: #faf8f8;
  --border: #e5dfe0;
  --hero-overlay: rgba(54,15,22,0.46);
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --radius: 6px;
  --nav-bg: #fff;
  --nav-text: #201a1b;
  --nav-link: #201a1b;
  --nav-link-hover: #c41e33;
  --footer-bg: #360f16;
  --footer-text: #f4eced;
  --accent-section-bg: #c41e33;
  --accent-section-text: #fff;
  background: var(--bg);
  color: var(--text);
}

/* ── CSS Variables — Concept 2: Modern Editorial ───────────── */
body.bis-site.c2 {
  --bg: #ffffff;
  --bg-alt: #f4eced;
  --bg-dark: #360f16;
  --text: #201a1b;
  --text-muted: #6a5f61;
  --red: #c41e33;
  --red-dark: #a3182a;
  --gold-text: #786117;
  --gold-accent: #c9a227;
  --gold-bright: #c9a227;
  --cream: #ffffff;
  --border: #e5dfe0;
  --hero-overlay: rgba(54,15,22,0.6);
  --shadow: 0 2px 20px rgba(0,0,0,0.1);
  --radius: 0px;           /* editorial: sharp corners */
  --nav-bg: #4f1720;
  --nav-text: #ffffff;
  --nav-link: #ffffff;
  --nav-link-hover: #c9a227;
  --footer-bg: #201a1b;
  --footer-text: #cccccc;
  --accent-section-bg: #360f16;
  --accent-section-text: #ffffff;
  background: var(--bg);
  color: var(--text);
}

/* ── CSS Variables — Concept 3: Bold Contemporary ──────────── */
body.bis-site.c3 {
  --bg: #f7f6f4;
  --bg-alt: #eeece8;
  --bg-dark: #201a1b;
  --hero-bg: #360f16;
  --text: #18160e;
  --text-muted: #54504a;
  --red: #c41e33;
  --red-dark: #a3182a;
  --gold-text: #786117;
  --gold-accent: #c9a227;
  --gold-bright: #c9a227;
  --cream: #f7f6f4;
  --border: rgba(18,16,8,0.12);
  --hero-overlay: rgba(54,15,22,0.7);
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --radius: 4px;
  --nav-bg: #360f16;
  --nav-text: #f5f0e8;
  --nav-link: #f5f0e8;
  --nav-link-hover: #c9a227;
  --footer-bg: #360f16;
  --footer-text: #c8c0b0;
  --accent-section-bg: #360f16;
  --accent-section-text: #f5f0e8;
  background: var(--bg);
  color: var(--text);
}

/* ── Typography ─────────────────────────────────────────────── */
.c1 h1, .c1 h2, .c1 h3, .c1 h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.c2 h1, .c2 h2, .c2 h3, .c2 h4 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}

.c3 h1, .c3 h2, .c3 h3, .c3 h4 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

/* ── Navigation ─────────────────────────────────────────────── */
.bis-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  transition: box-shadow 0.2s;
}

.bis-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.bis-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.bis-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.bis-logo-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--nav-text);
  letter-spacing: 0.01em;
}

.c1 .bis-logo-name {
  font-family: Georgia, serif;
}

.bis-logo-tag {
  font-size: 0.65rem;
  color: var(--nav-link-hover);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.bis-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bis-nav-menu a {
  color: var(--nav-link);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.bis-nav-menu a:hover,
.bis-nav-menu a.active {
  color: var(--nav-link-hover);
  background: rgba(255,255,255,0.08);
}

.c1 .bis-nav-menu a {
  background: transparent;
}

.c1 .bis-nav-menu a:hover,
.c1 .bis-nav-menu a.active {
  background: rgba(181,39,27,0.08);
  color: var(--red);
}

.bis-nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 40px !important;
  font-weight: 700 !important;
  transition: background 0.18s !important;
}

.bis-nav-cta + .bis-nav-cta {
  margin-left: 0.5rem;
}

.bis-nav-cta:hover {
  background: var(--red-dark) !important;
}

/* Staff Login: dropdown with Mobile/Desktop choices */
.bis-nav-dropdown {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.bis-nav-dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  border: none;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.875rem;
  white-space: nowrap;
  line-height: normal;
}

.bis-nav-dropdown-caret {
  font-size: 0.7em;
  transition: transform 0.15s;
}

.bis-nav-dropdown.is-open .bis-nav-dropdown-caret {
  transform: rotate(180deg);
}

.bis-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 200;
}

.bis-nav-dropdown.is-open .bis-nav-dropdown-menu {
  display: block;
}

.bis-nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.1rem !important;
  color: #2b2b2b !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.bis-nav-dropdown-menu a:hover {
  background: #f5f0e8;
  color: var(--red) !important;
}

/* Mobile toggle */
.bis-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.bis-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.bis-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bis-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.bis-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Sections ──────────────────────────────────────────── */

/* === CONCEPT 1 HERO: Full-screen photo with stat bar === */
.c1 .bis-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.c1 .bis-hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.c1 .bis-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.c1 .bis-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem 5rem;
  color: #fff;
}

.c1 .bis-hero-kicker {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.c1 .bis-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #fff;
  margin-bottom: 1rem;
  max-width: 700px;
  font-family: Georgia, serif;
}

.c1 .bis-hero-tagline {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: 2rem;
}

.c1 .bis-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.c1 .bis-stat-bar {
  background: var(--red);
  color: #fff;
  padding: 1.25rem 2rem;
}

.c1 .bis-stat-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.c1 .bis-stat-item {
  text-align: center;
}

.c1 .bis-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  font-family: Georgia, serif;
  line-height: 1;
}

.c1 .bis-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.88;
}

/* === CONCEPT 2 HERO: Split-screen editorial === */
.c2 .bis-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
}

.c2 .bis-hero-photo-col {
  position: relative;
  overflow: hidden;
}

.c2 .bis-hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.c2 .bis-hero-text-col {
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 5rem;
}

.c2 .bis-hero-kicker {
  display: inline-block;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gold-bright);
  padding-bottom: 0.4rem;
}

.c2 .bis-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  color: #fff;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.c2 .bis-hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 400px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.c2 .bis-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === CONCEPT 3 HERO: Full-bleed dark with gold accent === */
.c3 .bis-hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  background: #0d0c0b;
}

.c3 .bis-hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.c3 .bis-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  color: #fff;
}

.c3 .bis-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.c3 .bis-hero-line {
  width: 60px;
  height: 3px;
  background: var(--gold-bright);
}

.c3 .bis-hero-eyebrow-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.c3 .bis-hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  color: #fff;
  margin-bottom: 1rem;
  max-width: 900px;
  font-weight: 800;
  line-height: 1.05;
}

.c3 .bis-hero h1 em {
  color: var(--gold-bright);
  font-style: normal;
}

.c3 .bis-hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.c3 .bis-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 40px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline-dark:hover {
  background: var(--bg-alt);
  border-color: var(--text);
}

.btn-gold {
  background: var(--gold-bright);
  color: #1c1a18;
  border-color: var(--gold-bright);
}

.btn-gold:hover {
  background: #a3811a;
  border-color: #a3811a;
  color: #1c1a18;
}

/* Concept 2: square buttons */
.c2 .btn {
  border-radius: 0;
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-sm {
  padding: 3rem 2rem;
}

.section-lg {
  padding: 7rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--accent-section-bg);
  color: var(--accent-section-text);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--accent-section-text) !important;
}

/* ── Section headers ─────────────────────────────────────────── */
.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);  /* dark gold — 7.6:1 on cream bg */
  margin-bottom: 0.6rem;
}

.section-dark .kicker {
  color: var(--gold-bright);  /* bright gold ok on dark bg */
}

.c2 .kicker {
  color: var(--red);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ── Card Grids ──────────────────────────────────────────────── */
/* Self-balancing grids — no fixed column counts that leave gaps */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-grid-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* ── Generic Card ────────────────────────────────────────────── */
.bis-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.bis-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.bis-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.bis-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bis-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.bis-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
}

.bis-card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
}

.bis-card-cta:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

/* ── Leadership / Staff Cards ─────────────────────────────────
 * LARGE photo-forward cards — NOT circular thumbnails.
 * Roughly 4:5 aspect ratio, object-fit: cover, full card width.
 * ─────────────────────────────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.leadership-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.leadership-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.leadership-card-photo {
  width: 100%;
  aspect-ratio: 4/5;      /* tall portrait format */
  object-fit: cover;      /* fill, no circular crop */
  object-position: top center;
  border-radius: 0;       /* no circle */
}

.leadership-card-info {
  padding: 1.25rem 1.4rem;
}

.leadership-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.leadership-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);  /* dark gold — WCAG AA */
  margin-bottom: 0.8rem;
}

.c3 .leadership-card-title {
  color: var(--red);
}

.leadership-card-quote {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Curriculum Stages ───────────────────────────────────────── */
.curriculum-card {
  background: var(--bg);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.curriculum-card-level {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.curriculum-card-age {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.6rem;
}

.curriculum-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Values grid ─────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.value-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.value-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Journey Steps (Concept 2 "Parent Decision Map") ─────────── */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  position: relative;
}

.journey-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.journey-step {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.journey-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 auto 1rem;
}

.journey-step-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.journey-step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.journey-step-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}

.journey-step-cta:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

/* ── Downloads grid ──────────────────────────────────────────── */
.download-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.download-card:hover {
  box-shadow: var(--shadow);
}

.download-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.download-info {
  flex: 1;
}

.download-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.download-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.download-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  display: inline-block;
  margin-top: 0.4rem;
}

/* ── Video embed — 16:9 responsive ──────────────────────────── */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-section {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Google Maps embed ───────────────────────────────────────── */
.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e8e8;
}

.map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Contact section ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.bis-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.form-label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.18s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--red);
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #360f16;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.5;
}

.form-submit-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.18s;
  align-self: flex-start;
}

.c2 .form-submit-btn {
  border-radius: 0;
}

.form-submit-btn:hover {
  background: var(--red-dark);
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-success-text {
  color: var(--text-muted);
}

.contact-info-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.contact-info-value a {
  color: var(--text);
}

.contact-info-value a:hover {
  color: var(--red);
  text-decoration: underline;
}

/* ── Page hero (subpages) ────────────────────────────────────── */
.page-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  color: #fff;
}

.page-hero-breadcrumb {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.page-hero-breadcrumb a {
  color: #fff;
}

.page-hero-breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
}

.c1 .page-hero-title {
  font-family: Georgia, serif;
}

.c1 .page-hero-title,
.c2 .page-hero-title,
.c3 .page-hero-title {
  color: #fff;
}

/* ── About page specifics ────────────────────────────────────── */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-intro-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-intro-text p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── Footer ──────────────────────────────────────────────────── */
.bis-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 2rem 2rem;
}

.bis-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.bis-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.bis-footer-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.c1 .bis-footer-brand-name {
  font-family: Georgia, serif;
}

.bis-footer-tagline {
  font-size: 0.85rem;
  opacity: 0.78;
  margin-bottom: 1rem;
  font-style: italic;
}

.bis-footer-address {
  font-size: 0.82rem;
  opacity: 0.78;
  line-height: 1.6;
}

.bis-footer-address a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bis-footer-heading {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-text);
  opacity: 0.78;
  margin-bottom: 1rem;
}

.bis-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bis-footer-links a {
  color: var(--footer-text);
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.15s, color 0.15s;
}

.bis-footer-links a:hover {
  opacity: 1;
  color: #fff;
}

.bis-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.bis-footer-copy {
  font-size: 0.78rem;
  opacity: 0.78;
}

.bis-footer-gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold-bright, #c9a227);
  margin-bottom: 1rem;
}

/* ── Concept 3 specific: dark hero + gold stripe ────────────── */
.c3 .bis-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-bright);
  z-index: 3;
}

/* ── Concept 2 specific styles ───────────────────────────────── */
.c2 .bis-card {
  border: none;
  border-top: 3px solid var(--red);
}

.c2 .leadership-card {
  border: none;
  border-top: 3px solid var(--red);
}

.c2 .curriculum-card {
  border-left: 4px solid var(--red);
  border-radius: 0;
}

/* ── Concept 3 specific: strong-accent overrides ────────────── */
.c3 .bis-card {
  border: 1px solid var(--border);
}

.c3 .section-dark {
  background: #0d0c0b;
  color: #f5f0e8;
}

.c3 .section-dark .kicker {
  color: var(--gold-bright);
}

/* ── Fade-in animation (progressive enhancement) ─────────────
 * Elements only start hidden once JS adds .fade-ready.
 * This means content is visible without JS / in headless screenshoting.
 * ─────────────────────────────────────────────────────────── */
.fade-in.fade-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.fade-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.cta-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.18s;
}

.cta-link:hover {
  color: var(--red-dark);
  gap: 0.5rem;
}

/* ── WhatsApp floating button (all pages, all concepts) ───────
 * Chrome/shadow matches each concept's palette; icon stays
 * WhatsApp's own green since that's a recognisable brand mark,
 * not a site color.
 * ─────────────────────────────────────────────────────────── */
.bis-whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  border: 2px solid var(--bg, #fff);
  transition: transform 0.18s, box-shadow 0.18s;
}

.bis-whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.bis-whatsapp-float:hover,
.bis-whatsapp-float:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(0,0,0,0.36);
}

.c2 .bis-whatsapp-float {
  border-color: var(--nav-bg);
}

.c3 .bis-whatsapp-float {
  border-color: var(--gold-bright);
}

@media (max-width: 640px) {
  .bis-whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    height: 50px;
  }

  .bis-whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

.bis-footer-whatsapp {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}

.bis-whatsapp-icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #25d366;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
  /* Show hamburger */
  .bis-nav-toggle {
    display: flex;
  }

  /* Hide desktop nav links */
  .bis-nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 999;
  }

  .bis-nav-menu.is-open {
    display: flex;
  }

  .bis-nav-menu a {
    font-size: 1.1rem;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    width: 100%;
  }

  .bis-nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-radius: 40px !important;
  }

  /* Concept 2 hero: stack */
  .c2 .bis-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .c2 .bis-hero-photo-col {
    height: 45vh;
    position: relative;
  }

  .c2 .bis-hero-text-col {
    padding: 3rem 2rem;
  }

  /* About intro grid */
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer grid */
  .bis-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Journey steps: remove connector line */
  .journey-grid::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 1.25rem;
  }

  .bis-header-inner {
    padding: 0 1.25rem;
  }

  .c1 .bis-hero-content {
    padding: 0 1.25rem 4rem;
  }

  .c3 .bis-hero-content {
    padding: 0 1.25rem;
  }

  .page-hero {
    height: 240px;
  }

  .bis-footer {
    padding: 3rem 1.25rem 2rem;
  }

  .card-grid,
  .card-grid-sm,
  .card-grid-lg {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .c1 .bis-stat-bar-inner {
    gap: 1rem;
  }
}
