/* ═══════════════════════════════════════════════════════
   FarmBeezz Primary School — Premium Design System
   ═══════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
.font-poppins { font-family: 'Poppins', sans-serif; }
.font-inter   { font-family: 'Inter', sans-serif; }

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#0f2d5e,#1e3a8a); border-radius: 6px; }

/* ── Gradient utilities ───────────────────────────────── */
.text-gradient-gold {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-gradient-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bg-gradient-navy {
  background: linear-gradient(135deg, #0f2d5e 0%, #1e3a8a 50%, #0f2d5e 100%);
}
.bg-gradient-gold {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
}

/* ── Glass morphism ───────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
}
.glass-dark {
  background: rgba(15,45,94,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Navbar ───────────────────────────────────────────── */
#main-navbar {
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
#main-navbar.scrolled {
  background: rgba(255,255,255,1) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: #0f2d5e;
  border-radius: 2px;
  transition: left 0.3s ease, right 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { left: 8px; right: 8px; }
.nav-link.text-yellow-400 { color: #0f2d5e !important; font-weight: 700; }

/* ── Mobile menu ──────────────────────────────────────── */
#mobile-menu {
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  max-height: 0; opacity: 0; overflow: hidden;
}
#mobile-menu.open { max-height: 520px; opacity: 1; }

/* ── Banner Slider ────────────────────────────────────── */
.banner-slide { transition: opacity 0.9s ease-in-out; }

/* ── Hero particles (CSS only) ───────────────────────── */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(250,204,21,0.15);
  animation: float-particle 8s infinite ease-in-out;
}
@keyframes float-particle {
  0%,100% { transform: translateY(0) scale(1); opacity:0.15; }
  50%      { transform: translateY(-40px) scale(1.1); opacity:0.3; }
}

/* ── Card premium hover ───────────────────────────────── */
.premium-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
  will-change: transform;
}
.premium-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 32px 64px rgba(15,45,94,0.18);
}

/* ── Branch card ──────────────────────────────────────── */
.branch-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.branch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,25,55,0.9) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}
.branch-card:hover { transform: translateY(-8px); box-shadow: 0 40px 80px rgba(0,0,0,0.25); }
.branch-card:hover::before { background: linear-gradient(180deg, transparent 10%, rgba(10,25,55,0.95) 100%); }
.branch-card-content { position: relative; z-index: 2; }

/* ── Section label pill ───────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(250,204,21,0.15), rgba(250,204,21,0.05));
  border: 1px solid rgba(250,204,21,0.3);
  color: #d97706;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.section-label-blue {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.04));
  border: 1px solid rgba(59,130,246,0.25);
  color: #1d4ed8;
}

/* ── Stat card glow ───────────────────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(250,204,21,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Animated underline heading ──────────────────────── */
.heading-underline {
  position: relative; display: inline-block;
}
.heading-underline::after {
  content: '';
  position: absolute; bottom: -6px; left: 0;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, #facc15, #f59e0b);
  border-radius: 4px;
}

/* ── Pill tags ────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
}

/* ── Form inputs ──────────────────────────────────────── */
.form-input {
  width: 100%;
  background: rgba(248,250,252,0.8);
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  transition: all 0.25s ease;
  outline: none;
}
.form-input:focus {
  background: #fff;
  border-color: #0f2d5e;
  box-shadow: 0 0 0 4px rgba(15,45,94,0.08);
}
.form-input::placeholder { color: #94a3b8; }

/* ── CTA Button pulse ─────────────────────────────────── */
.btn-pulse {
  animation: pulse-glow 2.5s infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(250,204,21,0.5); }
  50%      { box-shadow: 0 0 0 12px rgba(250,204,21,0); }
}

/* ── Gallery hover ────────────────────────────────────── */
.gallery-item { overflow: hidden; }
.gallery-item img { transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,25,55,0.8) 100%);
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Scroll reveal animation ──────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Timeline (branch page) ───────────────────────────── */
.timeline-item { position: relative; padding-left: 2.5rem; }
.timeline-item::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px;
  background: #facc15; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(250,204,21,0.2);
}
.timeline-item::after {
  content: '';
  position: absolute; left: 6px; top: 20px;
  width: 2px; height: calc(100% + 16px);
  background: linear-gradient(180deg, #facc15, transparent);
}
.timeline-item:last-child::after { display: none; }

/* ── Page hero gradient ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0a1937 0%, #0f2d5e 40%, #1e3a8a 70%, #0f2d5e 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  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");
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, #ffffff);
}

/* ── Announcement ticker marquee ─────────────────────── */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 22s linear infinite;
  will-change: transform;
}
.announcement-bar-hidden { transform: translateY(-100%); max-height: 0; overflow: hidden; }

/* ── Gallery infinite marquee carousel ───────────────── */
.gallery-marquee-overflow {
  overflow: hidden;
  position: relative;
}
.gallery-marquee-overflow::before,
.gallery-marquee-overflow::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.gallery-marquee-overflow::before {
  left: 0;
  background: linear-gradient(90deg, var(--marquee-fade-color, #f1f5f9) 0%, transparent 100%);
}
.gallery-marquee-overflow::after {
  right: 0;
  background: linear-gradient(270deg, var(--marquee-fade-color, #f1f5f9) 0%, transparent 100%);
}
.gallery-marquee-track {
  display: flex;
  gap: 16px;
  animation: gallery-slide 40s linear infinite;
  width: max-content;
}
.gallery-marquee-track:hover { animation-play-state: paused; }
@keyframes gallery-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gallery-marquee-item {
  flex-shrink: 0;
  width: 260px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.gallery-marquee-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-marquee-item:hover img { transform: scale(1.06); }

/* ── Print ────────────────────────────────────────────── */
@media print {
  #main-navbar, #footer-placeholder, .no-print { display: none !important; }
}

/* ── Status badges ────────────────────────────────────── */
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-contacted { background: #dbeafe; color: #1e40af; }
.badge-enrolled  { background: #d1fae5; color: #065f46; }
