/* ==========================================================================
   Engineer's English School — shared stylesheet
   ========================================================================== */

:root {
  /* Light/white backgrounds throughout — red (from the school's logo) is
     used only for buttons, links, and small highlights, never as a large
     background block. Variable names kept as --navy-* since they're
     referenced throughout this file and every page; they now hold dark
     neutral tones (for text) and red tones (for accents), not navy blue. */
  --navy-900: #1c1c1c;
  --navy-800: #262626;
  --navy-700: #4b4b4b;
  --navy-600: #c0392b;
  --navy-100: #fdecea;
  --accent: #d7263d;
  --accent-dark: #a81e30;
  --ink: #1f2937;
  --ink-light: #5b6472;
  --bg: #ffffff;
  --bg-soft: #faf9f8;
  --border: #e6e2e0;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  /* Softer, larger, slightly warm-tinted shadows read as more "premium/
     modern" than tight pure-black ones — used throughout cards/buttons. */
  --shadow: 0 8px 24px rgba(28, 28, 28, 0.07);
  --shadow-lg: 0 20px 48px rgba(28, 28, 28, 0.12);
  --shadow-glow: 0 10px 28px rgba(215, 38, 61, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1140px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Branded keyboard-focus ring (mouse clicks don't trigger :focus-visible),
   replacing the default browser outline so it matches the rounded, red
   accent language everywhere instead of looking like an unstyled default. */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-light); }
a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; color: var(--ink-light); }
li { margin-bottom: 0.4em; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--navy-100);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  margin-bottom: 0.9em;
}

.section {
  padding: 4rem 0;
}
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-100); color: var(--ink); }
.section--navy h2, .section--navy h3 { color: var(--navy-800); }
.section--navy p { color: var(--ink-light); }
/* .cta-banner's own h2/p color rules (white, for its normal red/dark
   background) are defined later in this file and win at equal specificity
   — when .cta-banner is reused inside .section--navy (About page "Governed
   By"), raise specificity here so the dark-on-light colors apply instead. */
.section--navy .cta-banner h2, .section--navy .cta-banner h3 { color: var(--navy-800); }
.section--navy .cta-banner p { color: var(--ink-light); }

.section-head {
  max-width: 640px;
  margin: 0 auto 3.25rem;
  text-align: center;
}
.section-head p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.9em;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(215, 38, 61, 0.22);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-600);
  color: var(--navy-600);
}
.btn-outline-navy:hover { background: var(--navy-100); transform: translateY(-2px); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(28,28,28,0.02), 0 8px 24px rgba(28,28,28,0.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.3rem 1.5rem;
  max-width: 1340px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-800);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
}
@media (max-width: 640px) {
  .brand-logo { width: 64px; height: 64px; }
  .brand-badge { width: 56px; height: 56px; font-size: 1rem; }
}
.brand-logo-img {
  /* The uploaded seal is already circular on a transparent background —
     "contain" (not "cover") and no forced circular mask keep the whole
     design, including the outer text ring, visible instead of cropped. */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--ink-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { flex-shrink: 0; }
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.4em 0;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy-800); font-weight: 600; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-shrink: 0;
}
.nav-cta .btn { padding: 0.62em 1.2em; font-size: 0.86rem; white-space: nowrap; }
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--navy-800);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.5em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-login svg { width: 14px; height: 14px; }
.nav-login:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
}

@media (max-width: 1300px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9em 1.5rem; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero card (About / Academics inner-page use) ---------- */
.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--navy-800); margin-bottom: 0.9rem; }
.hero-card ul { color: var(--ink-light); padding-left: 1.1em; }
.hero-card li::marker { color: var(--accent); }

/* ---------- Hero slider (full-bleed photo, left-anchored dark gradient) ---------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade 0.6s ease; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-photo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* Slides with no uploaded image fall back to a solid dark panel instead of
   a photo — same text treatment, no gradient scrim needed since there's no
   photo underneath to darken. */
.hero-photo--solid {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.hero-photo:not(.hero-photo--solid)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.74) 28%, rgba(10,10,10,0.32) 50%, rgba(10,10,10,0) 66%);
}
.hero-photo-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 4.5rem);
  color: #fff;
}
.hero-photo-content h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}
.hero-divider {
  width: 64px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--accent);
  margin: 1.3rem 0;
}
.hero-photo-content p.lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
}
/* Optional second bold line, shown after the subtitle on slides that use
   it (e.g. "Sports, Arts, and Leadership" ... subtitle ... "Alongside
   Academics") — styled to match h1 so it reads as a continuation. */
.hero-heading-2 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 1.1rem 0 0;
}

@media (max-width: 640px) {
  /* Narrow viewports show the photo at full width behind the text, so a
     purely horizontal gradient no longer has a "clear" side — switch to a
     bottom-anchored scrim and push the text down toward it instead. */
  .hero-photo {
    min-height: 560px;
    align-items: flex-end;
    padding-bottom: 2.75rem;
  }
  .hero-photo:not(.hero-photo--solid)::before {
    background: linear-gradient(0deg, rgba(10,10,10,0.92) 10%, rgba(10,10,10,0.8) 45%, rgba(10,10,10,0.55) 100%);
  }
  .hero-photo-content { max-width: 100%; }
}

.hero-arrow {
  /* Solid dark circle (not a translucent white one) so it stays visible
     whether the active slide is the light default background or a photo
     slide with a dark overlay. */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28,28,28,0.55);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 5;
}
.hero-arrow:hover { background: rgba(28,28,28,0.75); }
.hero-arrow-prev { left: 1.2rem; }
.hero-arrow-next { right: 1.2rem; }
/* .hero-arrow/.hero-dots set their own `display`, which otherwise beats the
   UA [hidden] rule at equal specificity — force it explicitly here (same
   fix as the admin login/dashboard toggle). */
.hero-arrow[hidden], .hero-dots[hidden] { display: none; }

.hero-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(28,28,28,0.3);
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dots button.active { background: var(--accent); transform: scale(1.3); }

@media (max-width: 640px) {
  /* Mid-height arrows collide with hero text once it wraps to 3-4 lines on
     narrow screens — move them down to sit beside the dots instead. */
  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    top: auto;
    bottom: 1.1rem;
    transform: none;
  }
}

/* small hero for inner pages */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 55%, var(--navy-100) 130%);
  color: var(--ink);
  padding: 3.6rem 0;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(192,57,43,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--navy-800); margin-bottom: 0.5rem; }
.page-hero p { color: var(--ink-light); max-width: 56ch; margin: 0 auto; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); }

/* Once the admin uploads a heading background photo for this page, JS sets
   --page-hero-photo and adds .has-photo — dot texture is dropped and text
   flips from dark-on-light to light-on-dark over the photo. */
.page-hero.has-photo {
  background-image: linear-gradient(160deg, rgba(28,28,28,0.72), rgba(28,28,28,0.55)), var(--page-hero-photo);
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
}
.page-hero.has-photo::before { display: none; }
.page-hero.has-photo h1 { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.page-hero.has-photo p { color: rgba(255,255,255,0.88); }
.page-hero.has-photo .breadcrumb { color: rgba(255,255,255,0.7); }
.page-hero.has-photo .breadcrumb a { color: var(--accent); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 1.6rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(215, 38, 61, 0.18);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(215,38,61,0.12), rgba(215,38,61,0.04));
  box-shadow: 0 0 0 6px rgba(215,38,61,0.045);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover .icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 0 0 6px rgba(215,38,61,0.12);
  transform: scale(1.08) rotate(-4deg);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.94rem; }

.card--dark {
  background: var(--navy-100);
  border-color: var(--border);
}
.card--dark h3, .card--dark strong { color: var(--navy-800); }
.card--dark p { color: var(--ink-light); }
.card--dark .icon { background: #fff; color: var(--accent); }

.card--accent-top { border-top: 3px solid var(--accent); }

/* ---------- Editorial pull-quote ---------- */
.pull-quote {
  position: relative;
  font-style: italic;
  font-weight: 600;
}
.pull-quote::before {
  content: "\201C";
  display: block;
  font-style: normal;
  font-family: 'Poppins', sans-serif;
  font-size: 4.5rem;
  line-height: 0.4;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---------- Bento grid (asymmetric, one featured tile + regular tiles) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.bento-grid > .card:first-child {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.4rem;
  background: linear-gradient(150deg, var(--accent), var(--accent-dark));
  border: none;
  overflow: hidden;
}
/* Once the admin uploads a "Why Choose Us" photo, JS sets this as a CSS var
   and adds .has-photo — the gradient becomes a dark overlay on top of it so
   the white text stays legible over any image. */
.bento-grid > .card:first-child.has-photo {
  background-image: linear-gradient(160deg, rgba(215,38,61,0.6), rgba(28,28,28,0.5)), var(--featured-photo);
  background-size: cover;
  background-position: center;
}
.bento-grid > .card:first-child .icon {
  width: 58px; height: 58px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  color: #fff;
  position: relative;
  z-index: 1;
}
.bento-grid > .card:first-child h3,
.bento-grid > .card:first-child p { position: relative; z-index: 1; }
.bento-grid > .card:first-child.has-photo h3,
.bento-grid > .card:first-child.has-photo p {
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.bento-grid > .card:first-child .icon svg { width: 28px; height: 28px; }
.bento-grid > .card:first-child h3 { font-size: 1.5rem; color: #fff; font-family: 'Poppins', sans-serif; }
.bento-grid > .card:first-child p { color: rgba(255,255,255,0.85); font-size: 1rem; }
@media (max-width: 860px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid > .card:first-child { grid-column: span 1; grid-row: span 1; padding: 1.8rem; }
}

/* numbered pillar list (mission) */
.pillars { display: flex; flex-direction: column; gap: 1.2rem; }
.pillar {
  display: flex;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(215, 38, 61, 0.18);
}
.pillar .num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--accent);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.pillar:hover .num { background: var(--accent); color: #fff; transform: scale(1.08); }
.pillar h3 { margin-bottom: 0.3rem; }
.pillar p { margin: 0; font-size: 0.95rem; }

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--bg-soft);
  color: var(--ink);
  padding: 2.4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-strip .grid { text-align: center; }
.stat-strip strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--accent);
}
.stat-strip span { font-size: 0.85rem; color: var(--ink-light); }

/* ---------- Full-width photo section ---------- */
.full-photo-section { width: 100%; height: 500px; overflow: hidden; }
.full-photo-section img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .full-photo-section { height: 320px; }
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.9em 1.1em;
  border-bottom: 1px solid var(--border);
}
thead th {
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tbody tr:nth-child(even) { background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: none; }
.note {
  font-size: 0.85rem;
  color: var(--ink-light);
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 0.8em 1.1em;
  border-radius: 0 6px 6px 0;
  margin-top: 1rem;
}

/* ---------- Timeline / steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 1.3rem;
  padding-bottom: 2rem;
  position: relative;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 20px; top: 42px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.step .num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-700);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { margin: 0; }

/* ---------- Accordion (policies / FAQ) ---------- */
.accordion { display: flex; flex-direction: column; gap: 0.9rem; }
.accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.accordion-item:hover { border-color: rgba(215, 38, 61, 0.18); box-shadow: var(--shadow); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-800);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.accordion-trigger:hover { background: var(--bg-soft); }
.accordion-trigger .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.accordion-item.open .accordion-trigger .plus { transform: rotate(45deg); background: var(--accent); color: var(--navy-900); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1.4rem;
}
.accordion-item.open .accordion-panel { padding-bottom: 1.3rem; }
.accordion-panel ul { margin: 0; }
.accordion-panel p:last-child { margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.contact-card .icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-full);
  background: var(--navy-100);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.contact-card p { margin: 0; font-size: 0.93rem; }
.contact-card a { color: var(--navy-700); font-weight: 600; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--bg-soft);
  color: var(--ink-light);
  padding: 4.5rem 0 1.5rem;
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.9rem; }
.footer-brand strong { color: var(--navy-800); font-family: 'Poppins', sans-serif; }
.site-footer h4 {
  color: var(--navy-800);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6em; }
.site-footer a { color: var(--ink-light); font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
}

/* ---------- Split photo section: text + image with a soft decorative
   shape behind the photo. Use .split-photo--reverse to flip which side
   the photo sits on (alternate per page so they don't feel copy-pasted). */
.split-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-photo--reverse .split-photo-text { order: 2; }
.split-photo--reverse .split-photo-visual { order: 1; }
.split-photo-text h2 { margin-bottom: 0.7rem; }
.split-photo-visual {
  position: relative;
  padding: 1.6rem;
}
.split-photo-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.15;
  border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
  z-index: 0;
}
.split-photo-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
@media (max-width: 860px) {
  .split-photo { grid-template-columns: 1fr; gap: 2rem; }
  .split-photo--reverse .split-photo-text,
  .split-photo--reverse .split-photo-visual { order: initial; }
}

/* ---------- Photo gallery grid ---------- */
/* Gallery reads better wider than the standard 1140px content column —
   bigger photos, still centered, without stretching every other section. */
.container--wide { max-width: 1400px; }

.photo-grid {
  /* auto-fit + a capped column width means a handful of photos (e.g. just
     2-3) center themselves at a natural size instead of a fixed 4-column
     grid leaving a big empty gap where the missing columns would be.
     420px cap (not higher) keeps 3 columns fitting side by side inside
     .container--wide's 1400px — a wider cap pushes it down to 2. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  justify-content: center;
  gap: 1.5rem;
}
/* A single photo (or two) gets extra room to read as an intentional
   featured shot instead of a small, lonely thumbnail in a big empty
   section — most pages only have 1-2 gallery photos tagged so far. */
.photo-grid:has(.photo-card:only-child) { max-width: 460px; margin: 0 auto; }
.photo-grid:has(.photo-card:only-child) .photo-card { aspect-ratio: 16 / 11; }
@media (max-width: 480px) { .photo-grid { grid-template-columns: 1fr; } }

.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #fff;
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.5em 1em;
  border-radius: 999px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 404 page ---------- */
.error-page { text-align: center; padding: 6rem 0; }
.error-page .error-code {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { margin-top: 0.5rem; }
.error-page .lead { max-width: 46ch; margin: 0 auto; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 60;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: waPop 0.4s var(--ease) 1.2s both;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55); }
@keyframes waPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (max-width: 640px) {
  .whatsapp-fab { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab { animation: none; }
}

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-visible { opacity: 1; transform: none; transition: none; }
  .hero-slide.active { animation: none; }
}

/* ---------- Mobile nav animation polish ---------- */
.nav-links {
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}
.nav-links.open { opacity: 1; }
@media (min-width: 1301px) {
  .nav-links { opacity: 1; }
}

/* ---------- Announcement / event popup ---------- */
.ees-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 20, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ees-popup-overlay.open { opacity: 1; pointer-events: auto; }
.ees-popup-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.25s ease;
}
.ees-popup-overlay.open .ees-popup-card { transform: scale(1) translateY(0); }
.ees-popup-scroll {
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
}
.ees-popup-image {
  /* Scales to the card's width at whatever aspect ratio the uploaded image
     actually is, instead of being squeezed into a fixed-height box — a
     ready-made banner graphic keeps its own proportions. */
  width: 100%;
  height: auto;
  display: block;
}
.ees-popup-body { padding: 1.7rem; }
.ees-popup-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.5em;
}
.ees-popup-body h3 { margin-bottom: 0.5rem; }
.ees-popup-body p { font-size: 0.94rem; margin-bottom: 1.2rem; }
.ees-popup-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ees-popup-close:hover { background: #fff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  background: var(--navy-100);
  color: var(--navy-700);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45em 0.95em;
  border-radius: 999px;
}
