/* ==========================================================================
   Greater Love School, Iseyin — Production Public Stylesheet
   Brand Palette: Deep Burgundy / Maroon (#6E1423) · Warm Cream (#FFF4DF) · Light Rose (#F4B8C4)
   ========================================================================== */

:root {
  --teal: #6E1423;
  --teal-deep: #520E19;
  --teal-dark: #3A0912;
  --teal-soft: #F9E6EA;
  --cream: #FFF4DF;
  --cream-light: #FFFBF2;
  --gold: #F4B8C4;
  --gold-muted: #9E3B52;
  --ink: #24161A;
  --ink-muted: #634C52;
  --border: rgba(110, 20, 35, 0.16);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-light { background: var(--cream-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-teal { background: var(--teal); color: var(--cream); }
.section-teal-deep { background: var(--teal-deep); color: var(--cream); }
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.section-teal .kicker, .section-teal-deep .kicker { color: var(--gold); }
.section-title { font-size: clamp(1.85rem, 3.2vw, 2.65rem); font-weight: 600; }
.tabular { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E89EAE; }
.btn-teal { background: var(--teal); color: var(--cream); }
.btn-teal:hover { background: var(--teal-deep); }
.btn-outline { border-color: rgba(255, 244, 223, 0.55); color: var(--cream); background: transparent; }
.btn-outline:hover { background: rgba(255, 244, 223, 0.1); }
.btn-outline-teal { border-color: rgba(110, 20, 35, 0.35); color: var(--teal); background: transparent; }
.btn-outline-teal:hover { background: rgba(110, 20, 35, 0.06); }

/* Sticky 3-Zone Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--teal);
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; white-space: nowrap; flex-shrink: 0; }
.brand-name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--cream); }
.gls-logo-img { object-fit: contain; border-radius: 4px; }

.desktop-nav { display: none; align-items: center; gap: 1.75rem; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: rgba(255, 244, 223, 0.9); white-space: nowrap; padding: 0.5rem 0; }
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--cream-light);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(58, 9, 18, 0.18);
  padding: 0.5rem;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.55rem 0.75rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: var(--teal); }
.dropdown-menu a:hover { background: var(--cream); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--cream);
  border-radius: 6px;
  cursor: pointer;
}
.mobile-drawer { display: none; background: var(--teal-deep); border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.25rem; }
.mobile-drawer.open { display: block; }
.mobile-drawer a { display: block; padding: 0.65rem 0.5rem; color: var(--cream); font-size: 0.95rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-toggle, .mobile-drawer { display: none !important; }
}

/* Hero Slider (Completely Transparent Banner Overlay) */
.hero-slider { position: relative; height: 76vh; min-height: 520px; max-height: 800px; overflow: hidden; background: transparent; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: transparent;
}
.hero-box { max-width: 680px; color: var(--cream); }
.hero-box .kicker { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85); }
.hero-box h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); margin: 0.6rem 0 1rem; color: var(--cream); text-shadow: 0 3px 14px rgba(0, 0, 0, 0.8); }
.hero-box p { font-size: 1.05rem; color: var(--cream); max-width: 560px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }
.hero-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 5;
}
.hero-controls-inner { display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dot {
  width: 10px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 244, 223, 0.6);
  cursor: pointer;
  transition: width 250ms ease, background-color 250ms ease;
}
.hero-dot.active { width: 34px; background: var(--gold); }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--cream);
  font-size: 1.15rem;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(110, 20, 35, 0.75); }

/* Quick Links Ribbon */
.quick-links-bar { background: var(--teal-deep); padding: 1.5rem 0; border-bottom: 1px solid rgba(244, 184, 196, 0.3); }
.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 0.75rem; }
.quick-card {
  display: block;
  padding: 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  transition: background-color 180ms ease;
}
.quick-card:hover { background: rgba(255, 255, 255, 0.12); }
.quick-card.highlight { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.quick-card-title { font-size: 0.82rem; font-weight: 700; display: block; }
.quick-card-sub { font-size: 0.72rem; opacity: 0.78; display: block; margin-top: 0.2rem; }

/* Grid Helpers & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.card-pad { padding: 1.75rem; }

/* Leadership Feature Splits */
.split-feature { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .split-feature { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
  .split-feature.reverse { grid-template-columns: 7fr 5fr; }
}
.portrait-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(244, 184, 196, 0.4); background: var(--teal-deep); }
.portrait-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.portrait-caption { padding: 1.15rem 1.25rem; }
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  padding: 1.25rem 0;
  margin: 1.25rem 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.95;
}

/* Facilities Large Fade Slideshow */
.facility-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 600px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--teal-deep);
}
.facility-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}
.facility-slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
.facility-slide img { width: 100%; height: 100%; object-fit: cover; }
.facility-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(58, 9, 18, 0.92), transparent);
  color: var(--cream);
}
.facility-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.facility-tab {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--cream-light);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}
.facility-tab.active { background: var(--teal); color: var(--cream); border-color: var(--teal); }

/* Marquee Animations (RTL Staff & LTR Videos) */
.marquee-viewport { overflow: hidden; padding: 1rem 0; }
.marquee-track { display: flex; gap: 1.5rem; width: max-content; will-change: transform; }
.marquee-rtl { animation: gls-rtl 42s linear infinite; }
.marquee-ltr { animation: gls-ltr 48s linear infinite; }
.marquee-track:hover, .marquee-track:focus-within { animation-play-state: paused; }
@keyframes gls-rtl { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-50%,0,0); } }
@keyframes gls-ltr { 0% { transform: translate3d(-50%,0,0); } 100% { transform: translate3d(0,0,0); } }
.staff-card { width: 280px; flex-shrink: 0; }
.staff-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.video-card { width: 340px; flex-shrink: 0; cursor: pointer; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-thumb img, .video-thumb video { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 9, 18, 0.35);
}
.play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

/* Filter Tabs */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--cream-light);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn.active { background: var(--teal); color: var(--cream); border-color: var(--teal); }

/* Lightbox / Modals */
.gls-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(40, 6, 12, 0.94);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.gls-modal.open { display: flex; }
.gls-modal-inner { max-width: 920px; width: 100%; background: var(--teal-dark); color: var(--cream); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.gls-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.12); }

/* Forms & Maps */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
label.field-label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink); }
input.field, textarea.field, select.field {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(110, 20, 35, 0.28);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}
.form-alert { padding: 0.85rem 1rem; border-radius: 6px; font-size: 0.88rem; margin-top: 1rem; display: none; }
.form-alert.success { display: block; background: var(--teal-soft); color: var(--teal-deep); }
.form-alert.error { display: block; background: #fee2e2; color: #991b1b; }
.map-box iframe { width: 100%; height: 390px; border: 0; display: block; }

/* Page Hero Banner */
.page-banner { background: var(--teal); color: var(--cream); padding: 4rem 0; border-bottom: 4px solid var(--gold); }
.page-banner h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 0.5rem; }

/* Footer */
.site-footer { background: var(--teal); color: var(--cream); border-top: 4px solid var(--gold); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 4fr 3fr 2fr 3fr; } }
.footer-heading { font-family: var(--font-serif); color: var(--gold); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-rtl, .marquee-ltr { animation: none; overflow-x: auto; width: 100%; }
}

/* Floating Live Chat Widget & Admin Online/Offline Presence */
.gls-chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.gls-chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(244, 184, 196, 0.55);
  background: var(--teal);
  color: var(--cream);
  box-shadow: 0 14px 30px rgba(58, 9, 18, 0.28);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.gls-chat-launcher:hover { background: var(--teal-deep); }
.gls-chat-launcher-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.gls-chat-launcher-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.gls-chat-status-row { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; opacity: 0.94; }
.gls-presence-dot { width: 8px; height: 8px; border-radius: 50%; background: #d6d3d1; display: inline-block; flex-shrink: 0; }
.gls-presence-dot.online { background: #34d399; }
.gls-chat-unread {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gls-chat-drawer {
  width: min(385px, calc(100vw - 2rem));
  height: min(520px, 78vh);
  background: var(--cream-light);
  border: 1px solid rgba(110, 20, 35, 0.28);
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(58, 9, 18, 0.26);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gls-chat-drawer[hidden], .gls-chat-thread-wrap[hidden], .gls-chat-start[hidden], .gls-chat-unread[hidden] { display: none !important; }
.gls-chat-head {
  background: var(--teal);
  color: var(--cream);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}
.gls-chat-head-info { display: flex; align-items: center; gap: 0.65rem; }
.gls-chat-title { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; }
.gls-chat-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  cursor: pointer;
  font-size: 1rem;
}
.gls-chat-icon-btn:hover { background: rgba(255, 255, 255, 0.22); }
.gls-chat-banner {
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  background: var(--cream);
  color: #7C283C;
  border-bottom: 1px solid rgba(244, 184, 196, 0.35);
}
.gls-chat-banner.online {
  background: var(--teal-soft);
  color: var(--teal-deep);
  border-bottom-color: rgba(110, 20, 35, 0.16);
}
.gls-chat-start {
  flex: 1;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.gls-chat-thread-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gls-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(255, 244, 223, 0.5);
}
.gls-msg-row { display: flex; flex-direction: column; max-width: 86%; }
.gls-msg-row.visitor { align-self: flex-end; align-items: flex-end; }
.gls-msg-row.admin { align-self: flex-start; align-items: flex-start; }
.gls-msg-row.system { align-self: center; max-width: 96%; text-align: center; }
.gls-msg-meta { font-size: 0.68rem; color: var(--ink-muted); margin-bottom: 0.2rem; }
.gls-msg-bubble {
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.gls-msg-row.visitor .gls-msg-bubble { background: var(--teal); color: var(--cream); border-bottom-right-radius: 3px; }
.gls-msg-row.admin .gls-msg-bubble { background: #fff; color: var(--ink); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.gls-msg-row.system .gls-msg-bubble { background: rgba(255, 255, 255, 0.85); color: var(--ink-muted); border: 1px solid var(--border); font-size: 0.76rem; }
.gls-chat-input-bar {
  padding: 0.65rem;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

