/* ============================================
   ST GREGORIOS ENGLISH MEDIUM SCHOOL
   Custom Design System + Tailwind Overrides
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy: #0A1628;
  --deep-blue: #1B3A5C;
  --royal-blue: #2563EB;
  --gold: #D4A843;
  --light-gold: #F5E6C8;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --light-gray: #E2E8F0;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
  --shadow-md: 0 4px 12px rgba(10,22,40,0.1);
  --shadow-lg: 0 12px 40px rgba(10,22,40,0.12);
  --shadow-xl: 0 20px 60px rgba(10,22,40,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* ---------- Skip to Content (A11y) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 24px;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.top-bar a:hover {
  color: var(--gold);
}

.admission-badge {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ---------- Navbar ---------- */
.navbar-main {
  transition: all var(--transition-smooth);
  z-index: 1000;
}

.navbar-main.scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(10,22,40,0.08);
}

.navbar-main.scrolled .nav-link-item {
  color: var(--text-primary) !important;
}

.navbar-main.scrolled .nav-link-item:hover {
  color: var(--royal-blue) !important;
}

.navbar-main.scrolled .school-name {
  color: var(--navy) !important;
}

.nav-link-item {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: 8px 0;
  z-index: 100;
  border: 1px solid var(--light-gray);
}

.nav-dropdown:hover .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-custom a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.dropdown-menu-custom a:hover {
  background: var(--off-white);
  color: var(--royal-blue);
  padding-left: 24px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.navbar-main.scrolled .hamburger span {
  background: var(--navy);
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  transition: right var(--transition-smooth);
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.mobile-nav.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,22,40,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,0.85) 0%,
    rgba(27,58,92,0.7) 50%,
    rgba(10,22,40,0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,168,67,0.15);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 50px;
  padding: 8px 20px;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .text-gold {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.7;
}

/* Hero Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce-scroll 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-mouse 2s ease-in-out infinite;
}

@keyframes scroll-mouse {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 22px; opacity: 0.3; }
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Section Styles ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title-light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- Admission Alert Banner ---------- */
.admission-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #C4982D 100%);
  color: var(--navy);
  overflow: hidden;
  position: relative;
}

.admission-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.03) 20px,
    rgba(255,255,255,0.03) 40px
  );
}

/* ---------- Cards ---------- */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226,232,240,0.5);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--royal-blue), var(--gold));
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(212,168,67,0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--royal-blue);
  transition: all var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--royal-blue), var(--deep-blue));
  color: var(--white);
  transform: scale(1.1);
}

/* Program Card */
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-smooth);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.program-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
}

/* Facility Card */
.facility-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  group: true;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.facility-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(10,22,40,0.9));
  color: var(--white);
  transition: all var(--transition-smooth);
}

.facility-card:hover .facility-card-overlay {
  padding-bottom: 32px;
}

/* News Card */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  height: 200px;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

/* ---------- Stats Counter ---------- */
.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
  font-weight: 500;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-gray);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 5rem;
  font-family: 'Poppins', sans-serif;
  color: rgba(212,168,67,0.15);
  line-height: 1;
  font-weight: 700;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* Testimonial Carousel */
.testimonial-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 8px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-gray);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
  width: 32px;
  border-radius: 5px;
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
}

.gallery-grid .gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,22,40,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(10,22,40,0.4);
}

.gallery-item-overlay svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
  color: var(--white);
}

.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Events Timeline ---------- */
.event-item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--light-gray);
  padding-bottom: 24px;
}

.event-item:last-child {
  padding-bottom: 0;
}

.event-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---------- Contact Form ---------- */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input::placeholder {
  color: var(--text-secondary);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--royal-blue);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #C4982D;
  box-shadow: 0 8px 24px rgba(212,168,67,0.3);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 12px 30px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  box-shadow: none;
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 30px;
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.footer h4 {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}

.footer a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Social Icons */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ---------- WhatsApp Button ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 900;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  color: var(--white);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--royal-blue);
  transform: translateY(-3px);
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Image Placeholder (until real photos are added) ---------- */
.img-placeholder {
  background: linear-gradient(135deg, var(--deep-blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.875rem;
  text-align: center;
  padding: 16px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,22,40,0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ---------- Principal Section ---------- */
.principal-section {
  position: relative;
  overflow: hidden;
}

.principal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.pull-quote {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

/* ---------- Map ---------- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 180px);
  }

  .gallery-grid .gallery-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 160px);
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-slide {
    background-size: cover;
    background-position: center;
  }

  .scroll-indicator {
    display: none;
  }

  .facility-card {
    height: 220px;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 16px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 78px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 140px);
  }

  .testimonial-card {
    padding: 24px;
  }
}

/* ---------- Utility Classes ---------- */
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-deep-blue { background-color: var(--deep-blue) !important; }
.bg-off-white { background-color: var(--off-white) !important; }
.bg-gold { background-color: var(--gold) !important; }
.font-heading { font-family: 'Poppins', sans-serif !important; }

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--royal-blue), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
