/* ============================================================
   FGSC-MM — Facilities Page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  background: linear-gradient(135deg, #f8faf6 0%, #e8f0e4 100%);
  color: #1a2410;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

img, iframe { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(15, 31, 20, 0.05); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, #6fcf87, #8bc68f);
  border-radius: 4px; 
}

/* ============================================================
   MENU BUTTON
   ============================================================ */
.menu-btn {
  position: fixed;
  top: 28px;
  left: 28px;
  padding: 12px 20px;
  background: linear-gradient(145deg, rgba(15, 31, 20, 0.92), rgba(26, 36, 30, 0.9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  cursor: pointer;
  z-index: 10000;
  color: #6fcf87 !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  border: 1px solid rgba(168, 213, 162, 0.25);
  box-shadow: 0 4px 20px rgba(15, 31, 20, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn:hover {
  background: linear-gradient(145deg, rgba(168, 213, 162, 0.15), rgba(120, 180, 120, 0.12));
  border-color: #6fcf87;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(168, 213, 162, 0.25);
}

/* ============================================================
   SIDEBAR (Faculty version - shorter & cleaner)
   ============================================================ */

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 275px;
  height: 100vh;
  background: #1c3d28;
  border-right: 1px solid rgba(120, 180, 120, 0.12);
  transition: left 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 6px 0 40px rgba(0,0,0,0.5);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6fcf87, transparent);
  opacity: 0.55;
  z-index: 10;
}

.sidebar.active { left: 0; }

.sidebar-header {
  position: relative;
  z-index: 2;
  padding: 30px 20px 22px;
  border-bottom: 1px solid rgba(120, 180, 120, 0.1);
  display: flex;
  align-items: center;
  gap: 13px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(120, 180, 120, 0.1);
  border: 1px solid rgba(120, 180, 120, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 700;
  color: #6fcf87;
  flex-shrink: 0;
}

.sidebar-title { display: flex; flex-direction: column; gap: 3px; }

.sidebar-title span:first-child {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #c8e8c4;
}

.sidebar-title span:last-child {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(168, 213, 162, 0.4);
  text-transform: uppercase;
}

.close-btn {
  position: absolute;
  top: 22px;
  right: 16px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: rgba(168, 213, 162, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  z-index: 3;
}

.close-btn:hover {
  color: #6fcf87;
  border-color: rgba(120, 180, 120, 0.2);
  background: rgba(120, 180, 120, 0.08);
  transform: rotate(90deg);
}

.nav-links {
  list-style: none;
  padding: 18px 14px;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  z-index: 2;
}

.nav-links li { margin: 2px 0; }

.nav-links li a {
  text-decoration: none;
  color: rgba(168, 213, 162, 0.55);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.nav-links li a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6fcf87;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.25s ease;
  transform: scale(0);
}

.nav-links li a span { position: relative; z-index: 1; }

.nav-links li a:hover {
  color: #c8e8c4;
  background: rgba(120, 180, 120, 0.07);
  border-color: rgba(120, 180, 120, 0.12);
  padding-left: 18px;
}

.nav-links li a:hover::before { opacity: 1; transform: scale(1); }

.nav-links li a.active {
  color: #6fcf87;
  background: rgba(120, 180, 120, 0.1);
  border-color: rgba(120, 180, 120, 0.2);
  border-left: 2px solid #6fcf87;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(120, 180, 120, 0.08);
  text-align: center;
}

.sidebar-footer p {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(120, 180, 120, 0.2);
  text-transform: uppercase;
  margin: 0;
}



/* ============================================================
   PAGE HEADER BAND — shared by Our Schools, Our Teams, Our Facilities
   ============================================================ */
.facilities-header {
  width: 100%;
  background: linear-gradient(135deg, #1c3d28 0%, #2d5a3d 55%, #d9a441 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.facilities-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(168, 213, 162, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(168, 213, 162, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.facilities-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168,213,162,0.4), #6fcf87, rgba(168,213,162,0.4), transparent);
  box-shadow: 0 0 20px rgba(168, 213, 162, 0.3);
}

.facilities-header-inner { 
  position: relative; 
  z-index: 2; 
  max-width: 800px;
}

.facilities-header .header-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #6fcf87;
  margin-bottom: 16px;
  opacity: 0.9;
  font-weight: 500;
}

.facilities-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 
    0 2px 10px rgba(0,0,0,0.5),
    0 0 30px rgba(168, 213, 162, 0.2);
  position: relative;
}

.facilities-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6fcf87, transparent);
}

.facilities-header .header-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   SHARED GRID SECTION — Schools / Teams / Facilities
   All three use the same centred 2-column layout
   ============================================================ */
.schools-section,
.teams-section,
.facilities-section {
  padding: 70px 50px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.schools-container,
.teams-container,
.facilities-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   CARDS — facility-card & team-card share the same base
   ============================================================ */
.facility-card,
.team-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(168, 213, 162, 0.15);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.facility-card:hover,
.team-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  border-color: rgba(168, 213, 162, 0.4);
}

.card-image {
  overflow: hidden;
  height: 240px;
  position: relative;
}

/* Team cards use a portrait aspect ratio so the whole headshot shows, at any card width */
.team-card .card-image {
  aspect-ratio: 4 / 5;
  height: auto;
}

/* ── FIXED: facility card images — centre crop ── */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── FIXED: team/teacher portrait images — anchor at top so
       the face is always visible even in landscape-ratio crops ── */
.team-card .card-image img {
  object-fit: cover;
  object-position: center 18%;
}

.facility-card:hover .card-image img,
.team-card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 28px 26px 26px;
  position: relative;
}

.facility-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(145deg, #1c3d28, #1a2a20);
  color: #6fcf87;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 16px;
  border-radius: 25px;
  border: 1px solid rgba(168,213,162,0.3);
  box-shadow: 0 4px 12px rgba(15,31,20,0.3);
}

.card-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1c3d28;
  margin: 0 0 16px 0;
  line-height: 1.25;
}

/* Team card name sits closer to the role badge */
.team-card .card-content h3 {
  margin-bottom: 6px;
}

/* Role badge — team cards only */
.team-role {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6fcf87;
  background: linear-gradient(145deg, #1c3d28, #1a2a20);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(168,213,162,0.3);
  margin-bottom: 14px;
}

.facility-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2a4a32;
}

.detail-row i {
  font-size: 0.85rem;
  color: #6fcf87;
  width: 18px;
}

.facility-details p {
  color: #4a6a52;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #142a1c;
  color: #c8e8c4;
  padding: 70px 50px 40px;
  border-top: 2px solid rgba(168, 213, 162, 0.15);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6fcf87, transparent);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  gap: 40px;
}

.footer-col h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6fcf87;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(168, 213, 162, 0.25);
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #6fcf87;
}

.footer-col ul { 
  list-style: none; 
  padding: 0; 
}

.footer-col ul li { 
  margin: 12px 0; 
}

.footer-col ul li a {
  text-decoration: none;
  color: rgba(212, 240, 216, 0.6);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover { 
  color: #6fcf87; 
  padding-left: 8px;
}

.map-container iframe {
  border-radius: 16px;
  width: 100%;
  min-width: 300px;
  height: 220px;
  border: 1px solid rgba(168, 213, 162, 0.2);
}

.footer-text {
  text-align: center;
  margin-top: 45px;
  color: rgba(168, 213, 162, 0.45);
  font-size: 0.9rem;
  line-height: 1.85;
}

.footer-text strong { 
  color: rgba(168, 213, 162, 0.75);
  font-weight: 600;
}

.social-icons { 
  margin-top: 25px; 
  text-align: center; 
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 12px;
  font-size: 20px;
  transition: all 0.35s ease;
  opacity: 0.75;
  border-radius: 12px;
  border: 1px solid rgba(168, 213, 162, 0.2);
  color: #6fcf87;
}

.social-icons a:hover { 
  transform: translateY(-4px) scale(1.15); 
  opacity: 1;
  background: rgba(168, 213, 162, 0.15);
  border-color: rgba(168, 213, 162, 0.4);
}

.social-icons a.facebook { color: #1877f2; }

.social-icons a.instagram { color: #E1306C; }
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .menu-btn { 
    top: 24px; 
    left: 24px; 
    padding: 10px 16px; 
    font-size: 11px; 
  }

  .facilities-header {
    min-height: 38vh;
    padding: 100px 20px 60px;
  }

  .facilities-header h1 { font-size: 2.8rem; }

  .schools-section,
  .teams-section,
  .facilities-section { 
    padding: 40px 24px 60px; 
  }

  .schools-container,
  .teams-container,
  .facilities-container { 
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }

  .card-image { height: 210px; }
  .team-card .card-image { height: 260px; }
  .card-content { padding: 24px 20px 20px; }

  footer { padding: 50px 28px 32px; }
  .footer-container { flex-direction: column; gap: 32px; }
}

@media (max-width: 480px) {
  .card-image { height: 250px; }

  .facilities-header {
    min-height: 32vh;
    padding: 110px 16px 50px;
  }

  .facilities-header h1 { font-size: 2.4rem; }
}.footer-bottom a { color:rgba(255,255,255,0.6); text-decoration:none; }
.footer-bottom a:hover { color:#d9a441; }

.meet-team-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #d9a441, #b9852f);
  color: #142a1c;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(217,164,65,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.meet-team-btn:hover {
  background: linear-gradient(135deg, #6fcf87, #4caf7d);
  color: #142a1c;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(111,207,135,0.4);
}
.footer-bottom { text-align: center; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); }
