/* Public Landing Page & Auth Pages */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navbar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(200, 155, 60, 0.14), transparent 42%),
    linear-gradient(135deg, #0b3d26 0%, #0f5132 55%, #146c43 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f6d37a;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
}

.hero-desc {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.stat-glass .stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #f6d37a;
  line-height: 1.1;
}

.stat-glass .stat-lbl {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.section-heading h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

/* Split Section for Inquiry */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

/* Footer */
.site-footer {
  background: #0b2619;
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

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

.footer-grid a {
  color: rgba(255, 255, 255, 0.8);
}
.footer-grid a:hover {
  color: #f6d37a;
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Auth Page Shell */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(200, 155, 60, 0.14), transparent 45%),
    linear-gradient(155deg, #e8f3ed 0%, #f6f8f7 55%, #fbf5e6 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand img {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  border-radius: 14px;
}

.auth-brand h1 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-grid, .split-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-links, .nav-actions {
    display: none;
  }
  .site-nav.nav-open .nav-links,
  .site-nav.nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.75rem 0;
  }
  .site-nav.nav-open .nav-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
    /* The open menu is a fixed ~387px tall. On short viewports (landscape
       phones) that exceeds the screen, and a sticky element taller than the
       viewport will not pin — the whole header, close button included,
       scrolls away. Cap it to the screen and scroll internally instead. */
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Short viewports (landscape phones): compact the open menu so the whole of
   it — including the Parent Portal button — fits without internal scrolling. */
@media (max-width: 768px) and (max-height: 500px) {
  .site-nav.nav-open .nav-inner {
    padding: 0.35rem 0;
    /* the 72px bar height is wasted space once the menu is expanded */
    min-height: 0;
    max-height: calc(100vh - 0.5rem);
  }
  .site-nav.nav-open .nav-links,
  .site-nav.nav-open .nav-actions {
    padding: 0.3rem 0;
    gap: 0.5rem;
  }
  .site-nav.nav-open .brand-subtitle {
    display: none;
  }
  .site-nav.nav-open .brand-logo {
    width: 34px;
    height: 34px;
  }
}

/* Honeypot field on the admission inquiry form. Positioned off-screen rather
   than display:none — some bots deliberately skip hidden inputs. Paired with
   aria-hidden and tabindex="-1" so people and screen readers never reach it. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
