/* ============================================================
   Overstrand Coastal Academy
   Design: Sleek, clean, modern — white nav, Poppins, premium
   Palette: #1B3880 navy · #3CB8E8 sky blue · #F5A623 orange
   ============================================================ */

/* Self-hosted Poppins — eliminates Google Fonts cross-origin requests */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:800; font-display:swap; src:url('../fonts/poppins-800.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:900; font-display:swap; src:url('../fonts/poppins-900.woff2') format('woff2'); }

:root {
  --navy:        #1B3880;
  --navy-light:  #2a4da0;
  --sky:         #3CB8E8;
  --sky-light:   #EBF7FD;
  --orange:      #F5A623;
  --orange-dark: #D48810;
  --orange-light:#FEF4E0;

  --text:        #1B3880;
  --text-body:   #344E7A;
  --text-muted:  #6B85B0;
  --white:       #FFFFFF;
  --off-white:   #F8FAFF;
  --border:      #D8E6F5;

  --font: 'Poppins', system-ui, sans-serif;

  --max:    1160px;
  --r:      10px;
  --r-sm:   6px;
  --shadow: 0 4px 24px rgba(27,56,128,0.10);
  --shadow-sm: 0 2px 10px rgba(27,56,128,0.07);
  --ease:   0.22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--navy); }
ul { list-style: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Type ── */
h1,h2,h3,h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; font-weight: 600; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5.5rem 0; }
.section--white { background: var(--white); }
.section--off   { background: var(--off-white); }
.section--sky   { background: var(--sky-light); }
.section--navy  { background: var(--navy); }
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.85rem;
}
.section--navy .tag { color: var(--orange); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.section--navy .section-head p { color: rgba(255,255,255,0.7); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(245,166,35,0.35);
  transform: translateY(-1px);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--off-white);
}

.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost-white:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* ============================================================
   HEADER — white, logo on white, clean
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(27,56,128,0.08); }

/* ── Standard header ── */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo sits on white — mix-blend-mode cleans up the PNG background */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img {
  height: 58px;
  width: auto;
  max-width: 230px;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-links a {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: 999px;
  transition: all var(--ease);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--navy); background: var(--off-white); }
.nav-links a.active { color: var(--navy); background: var(--sky-light); }
.nav-links .btn { margin-left: 0.75rem; }


/* ── Dropdown nav ── */
.nav-links .has-dropdown {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.nav-links .dropdown-toggle { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.nav-links .dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--ease);
}
.nav-links .has-dropdown.open .dropdown-toggle::after,
.nav-links .has-dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(27,56,128,0.14);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 200;
  white-space: nowrap;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--border);
}
.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.83rem;
  font-weight: 600;
  border-radius: 0;
  width: 100%;
  color: var(--text-body);
}
.nav-dropdown li:first-child a { border-radius: 10px 10px 0 0; }
.nav-dropdown li:last-child  a { border-radius: 0 0 10px 10px; }
.nav-dropdown a:hover { background: var(--sky-light); color: var(--navy); }
.has-dropdown:hover .nav-dropdown,
.has-dropdown.open  .nav-dropdown { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease;
  opacity: 0;
}
.hero-bg.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(27,56,128,0.80) 0%,
    rgba(27,56,128,0.50) 55%,
    rgba(60,184,232,0.15) 100%
  );
}

/* Decorative wave line at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 680px;
  padding: 2rem 0 5rem;
}

.hero-content .tag { color: var(--orange); opacity: 0.95; }

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
  font-weight: 400;
}

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

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  padding-bottom: 3.5rem;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,56,128,0.88) 0%, rgba(27,56,128,0.35) 100%);
}

.page-hero-content { position: relative; z-index: 1; color: var(--white); }
.page-hero-content h1 { color: var(--white); margin-bottom: 0.4rem; }
.page-hero-content p { color: rgba(255,255,255,0.75); margin-bottom: 0; font-size: 1.05rem; font-weight: 400; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.6rem;
}
.breadcrumb a { color: rgba(255,255,255,0.45); }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  padding: 0 0 4rem;
  background: var(--white);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   SPLIT LAYOUTS
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split--flip { direction: rtl; }
.split--flip > * { direction: ltr; }

.split-img {
  border-radius: var(--r);
  object-fit: cover;
  width: 100%;
  height: 420px;
  box-shadow: var(--shadow);
}

.split-text .tag { display: block; }
.split-text h2 { margin-bottom: 1.1rem; }
.split-text p  { color: var(--text-muted); margin-bottom: 1rem; }
.split-text p:last-of-type { margin-bottom: 2rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--r);
  padding: 2.25rem;
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--sky);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--sky-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p  { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ============================================================
   VALUES PILLS
   ============================================================ */
.values-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  transition: all var(--ease);
  cursor: default;
}
.value-pill:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   CURRICULUM CHECKLIST
   ============================================================ */
.curriculum-list,
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.curriculum-list li, .check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.curriculum-list li::before, .check-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  margin-top: 0.22rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ============================================================
   EXTRAS BUBBLES
   ============================================================ */
.extras-wrap {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.extra-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.extra-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
}
.extra-item:hover .extra-circle {
  border-color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.2);
}
.extra-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
a.extra-item { text-decoration: none; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(60,184,232,0.06);
  pointer-events: none;
}

.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,0.72); max-width: 520px; margin: 0 auto 2.25rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ADMISSIONS STEPS
   ============================================================ */
.steps-list { display: flex; flex-direction: column; }
.step { display: flex; gap: 1.25rem; padding-bottom: 2rem; }
.step:last-child { padding-bottom: 0; }

.step-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-dot {
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-line { width: 2px; flex: 1; background: var(--border); margin: 0.4rem 0; }
.step:last-child .step-line { display: none; }

.step-body { padding-top: 0.6rem; }
.step-body h4 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--text); }
.step-body p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* Info card */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
}
.info-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--orange);
  color: var(--text);
}

/* ============================================================
   GRADES TABLE
   ============================================================ */
.grades-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.grades-table th, .grades-table td {
  padding: 1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.grades-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.grades-table tr:last-child td { border-bottom: none; }
.grades-table tbody tr:nth-child(even) { background: var(--sky-light); }
.grades-table tbody tr:hover { background: var(--orange-light); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--sky-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,56,128,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.gallery-item:hover .gallery-overlay { background: rgba(27,56,128,0.45); }

.gallery-icon {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-icon { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,18,40,0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--r); object-fit: contain; }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   STAFF
   ============================================================ */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.staff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--ease);
}
.staff-card:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.staff-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sky);
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
}

.staff-card h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.staff-card .role { font-size: 0.75rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.staff-card .bio  { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.6; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }

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

.detail-icon {
  width: 40px;
  height: 40px;
  background: var(--sky-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.detail-text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.detail-text { padding-top: 0.5rem; }
.detail-text a { color: var(--text-body); }
.detail-text a:hover { color: var(--navy); }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: var(--white);
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--ease);
}
.whatsapp-btn:hover {
  background: #1aad52;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--off-white);
  outline: none;
  transition: border-color var(--ease), background var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--sky); background: var(--white); }

.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.map-wrap {
  margin-top: 2.5rem;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { display: block; width: 100%; height: 320px; border: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo img {
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
  opacity: 0.9;
  height: 50px;
  margin-bottom: 1rem;
}
.footer-brand .logo:hover img { opacity: 1; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.48); max-width: 280px; line-height: 1.7; }

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: rgba(255,255,255,0.48); font-size: 0.88rem; transition: color var(--ease); }
.footer-links a:hover { color: var(--white); }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-contact-list li { display: flex; gap: 0.65rem; font-size: 0.85rem; color: rgba(255,255,255,0.48); }
.footer-contact-list a { color: rgba(255,255,255,0.48); }
.footer-contact-list a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   APPLICATION FORM
   ============================================================ */
.application-form-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.form-section {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; }

.form-section-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--orange);
}

.form-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.form-success {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
}

.check-icon {
  width: 72px;
  height: 72px;
  background: var(--sky-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sky);
  margin: 0 auto 1.5rem;
  border: 2px solid var(--border);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 56, 128, 0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--white);
  border-radius: 10px;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm);
  transition: background var(--ease);
}
.modal-close:hover { background: var(--off-white); color: var(--text-dark); }
.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}
.modal-body { font-size: 0.875rem; line-height: 1.7; color: var(--text-dark); }
.modal-body p { margin-bottom: 0.75rem; }
.modal-body ul { margin: 0.4rem 0 0.75rem 1.4rem; }
.modal-body ul li { margin-bottom: 0.4rem; }
.modal-body a { color: var(--navy); text-decoration: underline; }

/* POPIA consent section */
.popia-section {
  background: var(--sky-light);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.75rem !important;
  margin-top: 0.5rem;
}
.popia-link {
  background: none;
  border: none;
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  font-weight: 600;
}
.consent-label {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-dark);
}
.consent-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(27,56,128,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.7rem 1rem; border-radius: var(--r-sm); }
  .nav-links .btn { margin-left: 0; width: 100%; margin-top: 0.75rem; }

  /* Make each dropdown <li> a vertical column so submenu sits below toggle */
  .nav-links .has-dropdown {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: static !important;
  }
  .nav-links .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  /* Reset desktop absolute-positioned dropdown to in-flow block */
  .nav-links .nav-dropdown {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid var(--sky-light) !important;
    border-radius: 0 !important;
    background: var(--off-white) !important;
    padding: 0.25rem 0 !important;
    margin: 0 0 0.25rem 1rem !important;
    min-width: 0 !important;
    width: auto !important;
    white-space: normal !important;
    z-index: auto !important;
  }
  .nav-links .nav-dropdown::before { display: none !important; }
  .nav-links .nav-dropdown a {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    white-space: normal;
    border-radius: var(--r-sm);
  }
  /* Hidden by default, shown when parent gets .open from JS */
  .nav-links .has-dropdown .nav-dropdown { display: none !important; }
  .nav-links .has-dropdown.open .nav-dropdown { display: block !important; }

  .hero { min-height: 75vh; }
  .hero::after { height: 50px; }
  .hero-content { padding-bottom: 3rem; }

  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--flip { direction: ltr; }
  .split-img { height: 260px; order: -1; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 280px; }
  .container { padding: 0 1rem; }
  .section   { padding: 2.5rem 0; }
}
