/* =========================================================
   BrightSteps International School
   Design system, 2026 redesign
   Maroon from the BIS crest, set against porcelain and ink.
   ========================================================= */

:root {
  color-scheme: light only;

  /* Colour */
  --maroon: #5C1220;
  --maroon-deep: #3A0A14;
  --maroon-ink: #2A070E;
  --porcelain: #FDFCFA;
  --stone: #F1EFEC;
  --ink: #1B1B2F;
  --ink-soft: #4A4A5C;
  --marigold: #EF9022;
  --sky: #2A93D5;
  --line: rgba(27, 27, 47, 0.14);
  --line-light: rgba(253, 252, 250, 0.22);

  /* Type */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --step-hero: clamp(3.25rem, 1.25rem + 4.4vw, 5.5rem);

  /* Space */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --section: clamp(80px, 11vw, 160px);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.45em;
  color: inherit;
}
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.01em; line-height: 1.15; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--maroon); color: var(--porcelain);
  padding: 12px 20px; border-radius: 4px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0.005em;
  text-decoration: none; border-radius: 2px; border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-solid { background: var(--maroon); color: var(--porcelain); }
.btn-solid:hover { background: var(--maroon-deep); }
.btn-light { background: var(--porcelain); color: var(--maroon); }
.btn-light:hover { background: var(--stone); }
.btn-outline-light { border-color: var(--line-light); color: var(--porcelain); }
.btn-outline-light:hover { border-color: var(--porcelain); }

.text-link {
  font-weight: 600; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.25s ease;
}
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--porcelain);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--maroon); flex-shrink: 0; }
.nav-brand img { width: 52px; height: 52px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-text .name { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.02em; }
.nav-brand-text .sub { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 5px; }

.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
  font-size: 0.96rem; font-weight: 500;
}
.nav-links > li > a,
.nav-dropdown > button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 clamp(8px, 0.9vw, 14px); white-space: nowrap;
  background: none; border: 0; font: inherit; color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.nav-dropdown > button::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0.6;
}
.nav-links > li > a:hover,
.nav-dropdown > button:hover { color: var(--maroon); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px;
  background: var(--porcelain); border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(42, 7, 14, 0.35);
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dropdown-menu a {
  display: block; padding: 10px 22px; text-decoration: none; color: var(--ink);
}
.nav-dropdown-menu a:hover { background: var(--stone); color: var(--maroon); }
.nav-dropdown-menu.open,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 14px; }
.nav-links .nav-portal-link {
  white-space: nowrap;
  height: 44px; padding: 0 18px; display: inline-flex; align-items: center;
  background: var(--maroon); color: var(--porcelain); text-decoration: none; border-radius: 2px; font-weight: 600;
}
.nav-links .nav-portal-link:hover { background: var(--maroon-deep); }
.nav-links .nav-lang-link {
  height: 44px; min-width: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 2px; text-decoration: none; font-weight: 600; color: var(--ink);
}
.nav-links .nav-lang-link:hover { border-color: var(--maroon); color: var(--maroon); }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1260px) {
  :root { --header-h: 72px; }
  .nav-brand img { width: 44px; height: 44px; }
  .nav-brand-text .name { font-size: 1.4rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--porcelain); padding: 12px var(--gutter) 40px;
    overflow-y: auto; font-size: 1.15rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li > a, .nav-dropdown > button { width: 100%; height: 60px; padding: 0; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static; display: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 14px;
    opacity: 1; visibility: visible; transform: none; background: transparent;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu.open { display: block; }
  .nav-dropdown:hover .nav-dropdown-menu:not(.open) { display: none; }
  .nav-dropdown-menu a { padding: 10px 0 10px 16px; font-size: 1.02rem; color: var(--ink-soft); }
  .nav-dropdown-menu a:hover { background: none; }
  .nav-dropdown > button[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
  .nav-links > li.nav-actions { border-bottom: 0; margin: 28px 0 0; gap: 12px; }
  .nav-links .nav-portal-link { flex: 1 1 auto; justify-content: center; height: 52px; white-space: nowrap; }
  .nav-links .nav-lang-link { flex: 0 0 64px; height: 52px; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--maroon);
  color: var(--porcelain);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
/* The photo keeps the photos' own 3:2 shape at every screen size, so it is never zoomed in to fill a tall panel */
.hero { padding-block: clamp(28px, 3vw, 48px); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); align-items: center; }
.hero-media { aspect-ratio: 3 / 2; }

.hero-text {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(32px, 4vw, 64px) 0 var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}

.hero-slogan {
  font-size: var(--step-hero);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 400;
  margin: 0 0 clamp(20px, 2.5vw, 32px);
}
.hero-slogan span { display: block; }

.hero-lede {
  font-size: 1.125rem; line-height: 1.5; max-width: 34ch;
  color: var(--porcelain); opacity: 0.88; margin-bottom: 24px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { padding: 0 20px; min-height: 48px; font-size: 0.95rem; }

.hero-note {
  margin: clamp(18px, 2vw, 28px) 0 0; padding-top: 14px;
  border-top: 1px solid var(--line-light);
  font-size: var(--step--1); opacity: 0.8; max-width: 44ch;
}

.hero-media { position: relative; overflow: hidden; background: var(--maroon-ink); }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.015);
  transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }

.hero-playpause {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(42, 7, 14, 0.45); color: var(--porcelain); font-size: 0.62rem; letter-spacing: -0.1em;
  opacity: 0.7; transition: opacity 0.2s ease;
}
.hero-playpause:hover, .hero-playpause:focus-visible { opacity: 1; }

/* One orchestrated moment: the slogan arrives line by line on first load. */
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
.hero-slogan span { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-slogan span:nth-child(2) { animation-delay: 0.12s; }
.hero-slogan span:nth-child(3) { animation-delay: 0.24s; }
.hero-lede, .hero-actions, .hero-note { animation: rise 0.9s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 0; }
  .hero-media { order: -1; aspect-ratio: 3 / 2; width: 100%; }
  .hero-text { padding: 44px var(--gutter) 48px; }
  .hero-slogan { line-height: 0.9; }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-stone { background: var(--stone); }

.kicker {
  font-size: var(--step--1); font-weight: 600; color: var(--maroon);
  margin: 0 0 20px; letter-spacing: 0.01em;
}

/* Statement and facts */
.statement {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 7vw, 120px); align-items: end;
}
.statement h2 { font-size: var(--step-4); max-width: 16ch; }
.statement-body { font-family: var(--serif); font-size: var(--step-2); line-height: 1.4; letter-spacing: -0.005em; max-width: 34ch; margin-bottom: 28px; }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.facts li {
  display: grid; grid-template-columns: 5.5ch 1fr; gap: 20px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.facts strong { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; color: var(--maroon); }
.facts span { color: var(--ink-soft); line-height: 1.35; }

@media (max-width: 860px) {
  .statement { grid-template-columns: 1fr; align-items: start; }
  .statement-body { font-size: var(--step-1); line-height: 1.5; }
}

/* Approach */
.approach {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px); align-items: center;
}
.approach-photo { position: relative; }
.approach-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.approach-photo figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--ink-soft); }
.approach-intro { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; margin-bottom: 36px; }

.pillars { list-style: none; margin: 0; padding: 0; }
.pillars li { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars h3 { margin: 0; font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.005em; font-weight: 500; }
.pillars p { margin: 0; color: var(--ink-soft); }

@media (max-width: 860px) {
  .approach { grid-template-columns: 1fr; }
  .pillars li { grid-template-columns: 1fr; gap: 8px; }
}

/* Journey: the ten levels as one continuous line */
.journey-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 80px); }
.journey-head h2 { margin: 0; max-width: 14ch; }
.journey-head p { margin: 0; max-width: 38ch; color: var(--ink-soft); }

.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.journey::before {
  content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ink);
}
.journey li { position: relative; padding: 40px 28px 0 0; }
.journey li::before {
  content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--porcelain); border: 1.5px solid var(--maroon);
}
.journey li:last-child::before { background: var(--maroon); }
.journey .age { display: block; font-size: var(--step--1); font-weight: 600; color: var(--maroon); margin-bottom: 14px; }
.journey h3 { font-size: var(--step-2); margin-bottom: 12px; }
.journey p { color: var(--ink-soft); margin: 0; max-width: 24ch; }

@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; padding-left: 36px; }
  .journey::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .journey li { padding: 0 0 44px; }
  .journey li:last-child { padding-bottom: 0; }
  .journey li::before { left: -36px; top: 6px; }
}

/* Campus band: text beside the entrance photo, shown whole */
.campus { background: var(--maroon-ink); color: var(--porcelain); padding: var(--section) 0; }
.campus-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.campus-text h2 { margin: 0 0 28px; max-width: 13ch; }
.campus-text p { color: rgba(253, 252, 250, 0.82); font-size: var(--step-1); line-height: 1.55; margin: 0; max-width: 44ch; }
.campus-figure { margin: 0; }
.campus-figure img { width: 100%; height: auto; max-height: 680px; aspect-ratio: 1260 / 1567; object-fit: cover; object-position: center bottom; }
@media (max-width: 860px) {
  .campus-inner { grid-template-columns: 1fr; }
  .campus-figure { order: -1; }
  .campus-figure img { max-height: 520px; }
}

/* Parent voices strip */
.voices { background: var(--stone); padding: clamp(36px, 5vw, 64px) 0; }
.voices-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 8fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.voices-inner .kicker { margin: 0; }
.voices-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.voice { margin: 0; padding-left: 18px; border-left: 3px solid var(--maroon); }
.voice blockquote { margin: 0; }
.voice blockquote p { font-family: var(--serif); font-size: var(--step-1); line-height: 1.4; color: var(--ink); margin: 0; }
.voice figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.voices-inner .text-link { white-space: nowrap; }
#families { scroll-margin-top: var(--header-h); }
@media (max-width: 1000px) { .voices-inner { grid-template-columns: 1fr; gap: 20px; } .voices-inner .text-link { justify-self: start; } }
@media (max-width: 640px) { .voices-list { grid-template-columns: 1fr; gap: 20px; } }

/* Families */
.families { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.families h2 { max-width: 12ch; }
.families-sub { color: var(--ink-soft); max-width: 34ch; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--maroon-ink); overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster-btn { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; display: block; width: 100%; }
.video-poster-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.video-poster-btn:hover img { transform: scale(1.02); }
.video-play-icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--porcelain); color: var(--maroon);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; padding-left: 5px;
  box-shadow: 0 20px 40px -16px rgba(42, 7, 14, 0.6);
}
.video-privacy-note { font-size: var(--step--1); color: var(--ink-soft); margin: 14px 0 0; }
@media (max-width: 860px) { .families { grid-template-columns: 1fr; } }
.parent-quotes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: clamp(16px, 3vw, 40px); }
@media (max-width: 860px) { .parent-quotes { grid-template-columns: 1fr; } }
.parent-quote { margin: 0; padding: 4px 0 4px clamp(20px, 3vw, 40px); border-left: 3px solid var(--maroon); }
.parent-quote blockquote { margin: 0; }
.parent-quote blockquote p { font-family: var(--serif); font-size: var(--step-0); line-height: 1.6; color: var(--ink); max-width: 62ch; margin: 0; }
.parent-quote figcaption { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; font-size: var(--step--1); color: var(--ink-soft); }
.parent-quote figcaption strong { color: var(--ink); font-weight: 600; font-size: var(--step-0); }

/* Enroll */
.enroll { background: var(--maroon); color: var(--porcelain); padding: var(--section) 0; }
.enroll-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.enroll h2 { font-size: var(--step-4); margin: 0; max-width: 14ch; }
.enroll p { opacity: 0.86; font-size: var(--step-1); max-width: 34ch; }
.enroll-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.enroll-actions .text-link { color: var(--porcelain); }
@media (max-width: 860px) { .enroll-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--maroon-ink); color: rgba(253, 252, 250, 0.78); padding: clamp(64px, 8vw, 112px) 0 32px; font-size: 0.97rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 3fr) repeat(2, minmax(0, 2fr)); gap: 36px; }
.site-footer .nav-brand { color: var(--porcelain); }
.site-footer .nav-brand-text .sub { color: rgba(253, 252, 250, 0.6); }
.footer-address { margin: 24px 0 0; line-height: 1.7; }
.footer-address a { text-decoration: none; }
.footer-address a:hover { color: var(--porcelain); }
.site-footer h2 { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.01em; color: var(--porcelain); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { color: var(--porcelain); }
.footer-bottom {
  margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step--1);
}
.footer-slogan { font-family: var(--serif); color: var(--porcelain); font-size: 1.05rem; }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- WhatsApp ---------- */

.whatsapp-bubble {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 16px; border-radius: 26px;
  background: var(--maroon); color: var(--porcelain); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 16px 32px -12px rgba(42, 7, 14, 0.55);
}
.whatsapp-bubble svg { width: 22px; height: 22px; }
.whatsapp-bubble:hover { background: var(--maroon-deep); }
@media (max-width: 560px) {
  .whatsapp-bubble { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .whatsapp-bubble-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* First homepage slide: small photo on phones, large on wider screens */
.hero-slide-first { background-image: url('student-portrait-sm.jpg'); }
@media (min-width: 900px) { .hero-slide-first { background-image: url('student-portrait-lg.jpg'); } }
