/* ═══════════════════════════════════════════════════════════
   Greenwood High Inspired Layout
   ═══════════════════════════════════════════════════════════ */

/* ─── Full-Width Cinematic Hero ─────────────────────────── */
.hero-gwh {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(-1 * (var(--header-height) + var(--topbar-height)));
  padding-top: calc(var(--header-height) + var(--topbar-height) + 2rem);
}

.hero-gwh-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gwh-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-gwh-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 26, 66, 0.55) 0%, rgba(15, 26, 66, 0.75) 50%, rgba(15, 26, 66, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 26, 66, 0.7) 0%, transparent 55%);
}

.hero-gwh-anim-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.school-float-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.35);
  width: clamp(40px, 6vw, 72px);
  height: clamp(40px, 6vw, 72px);
  opacity: 0;
  animation: schoolIconFade 1s ease forwards;
}

.school-float-icon svg { width: 100%; height: 100%; }

.school-icon-1 { top: 15%; left: 8%; animation-delay: 0.2s; }
.school-icon-2 { top: 25%; right: 12%; animation-delay: 0.4s; }
.school-icon-3 { bottom: 35%; left: 15%; animation-delay: 0.6s; }
.school-icon-4 { top: 40%; right: 25%; animation-delay: 0.3s; }
.school-icon-5 { bottom: 25%; right: 8%; animation-delay: 0.5s; }
.school-icon-6 { top: 60%; left: 5%; animation-delay: 0.7s; }

@keyframes schoolIconFade {
  to { opacity: 1; }
}

.hero-gwh-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 2rem 1.5rem 6rem;
  color: #fff;
}

.hero-gwh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-gwh-badge-logo {
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

.hero-gwh-title {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff !important;
}

.hero-gwh-highlight {
  display: block;
  color: #ffffff !important;
}

.hero-gwh-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 560px;
}

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

.hero-gwh-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(8px);
}

.hero-gwh-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Stats bar — Greenwood style */
.hero-gwh-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(15, 26, 66, 0.95);
  backdrop-filter: blur(16px);
  border-top: 3px solid rgba(255, 255, 255, 0.35);
}

.hero-gwh-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
}

.gwh-stat {
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.gwh-stat:last-child { border-right: none; }

.gwh-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.gwh-stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.35rem;
}

.hero-gwh-scroll {
  position: absolute;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Rankings ticker */
.rankings-ticker {
  background: var(--navy-dark, #0F1A42);
  overflow: hidden;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rankings-ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: rankingsScroll 40s linear infinite;
}

.rankings-ticker-item {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rankings-ticker-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes rankingsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Facilities showcase — Greenwood tabs */
.facilities-showcase {
  padding: 2.5rem 0;
  background: var(--bg-alt, #F7F8FC);
}

.facilities-showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.facilities-showcase-tab {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--navy);
  border-radius: 50px;
  background: #fff;
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.facilities-showcase-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--navy);
}

.facilities-showcase-tab:hover:not(.active) {
  background: var(--navy-pale);
}

.facilities-showcase-stage {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.facilities-showcase-panel {
  display: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(27, 45, 107, 0.12);
  border: 1px solid rgba(27, 45, 107, 0.1);
  background: #fff;
}

.facilities-showcase-panel.active {
  display: block;
}

.facilities-showcase-media {
  position: relative;
  width: 100%;
  height: 280px;
  background: #e8ecf5;
  overflow: hidden;
}

.facilities-showcase-media img,
.facilities-showcase-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1 !important;
}

.facilities-showcase-caption {
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.facilities-showcase-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  flex: 1 1 220px;
  max-width: 620px;
}

.facilities-showcase-cta.btn-primary {
  background: #fff !important;
  color: var(--navy) !important;
  border-color: #fff !important;
  flex-shrink: 0;
  font-size: 0.78rem !important;
  padding: 0.5rem 1rem !important;
  white-space: nowrap;
}

.facilities-showcase-cta.btn-primary:hover {
  background: var(--navy-pale) !important;
  color: var(--navy) !important;
}

@media (max-width: 768px) {
  .facilities-showcase-media {
    height: 200px;
  }

  .facilities-showcase-media img,
  .facilities-showcase-img {
    min-height: 200px;
  }

  .facilities-showcase-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .facilities-showcase-cta {
    width: 100%;
    justify-content: center;
  }
}

/* Admission Modal */
.lvgi-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lvgi-modal.active {
  opacity: 1;
  visibility: visible;
}

.lvgi-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 66, 0.75);
  backdrop-filter: blur(6px);
}

.lvgi-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: var(--radius-lg);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lvgi-modal.active .lvgi-modal-panel {
  transform: translateY(0) scale(1);
}

.lvgi-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--navy-pale);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
}

.lvgi-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.lvgi-modal-header h2 {
  font-size: 1.35rem;
  color: var(--navy) !important;
  margin: 0.75rem 0 0.25rem;
}

.lvgi-modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.lvgi-modal-success {
  text-align: center;
  padding: 2rem 0;
}

.lvgi-modal-success .success-icon {
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.btn-block { width: 100%; justify-content: center; }

/* Sticky enquire — Greenwood */
.enquire-sticky {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  padding: 1rem 0.65rem;
  cursor: pointer;
  box-shadow: -4px 0 20px rgba(27, 45, 107, 0.35);
  transition: background 0.3s, padding 0.3s;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.enquire-sticky:hover {
  background: var(--navy-light);
  padding-right: 1rem;
}

.enquire-sticky-text { display: block; }

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo-img {
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 12px rgba(27, 45, 107, 0.15);
}

.logo-text-screen .logo-main { font-size: 1.1rem; }

@media (max-width: 900px) {
  .logo-text-screen { display: none; }
  .site-logo-img { max-height: 56px; }
}

.is-front-page .site-header {
  background: transparent !important;
  border-bottom-color: transparent !important;
  position: absolute;
  width: 100%;
  top: var(--topbar-height);
}

.is-front-page .site-header.scrolled {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom-color: var(--border-navy) !important;
  box-shadow: var(--shadow);
}

.is-front-page .site-header:not(.scrolled) .nav-list a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.is-front-page .site-header:not(.scrolled) .nav-list a:hover,
.is-front-page .site-header:not(.scrolled) .nav-list .current-menu-item a {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}

.is-front-page .site-header:not(.scrolled) .logo-main {
  color: #fff !important;
}

.is-front-page .site-header:not(.scrolled) .logo-sub {
  color: #fff !important;
}

@media (max-width: 768px) {
  .hero-gwh-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gwh-stat:nth-child(2) { border-right: none; }
  .gwh-stat:nth-child(1),
  .gwh-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-gwh-scroll { display: none; }

  .enquire-sticky {
    top: auto;
    bottom: 5rem;
    transform: none;
    border-radius: 8px 0 0 0;
    writing-mode: horizontal-tb;
    padding: 0.65rem 1rem;
  }

  .school-float-icon { display: none; }
}
