/* ═══════════════════════════════════════════════
   style.css — Shared styles for all pages
   Jesus & Mary's Nursery School
═══════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --primary:        #1A237E;
  --primary-light:  #3949AB;
  --primary-dark:   #0D1642;
  --sky:            #E3F2FD;
  --sky-mid:        #BBDEFB;
  --gold:           #F9A825;
  --gold-dark:      #F57F17;
  --red:            #C62828;
  --white:          #FFFFFF;
  --bg:             #F0F7FF;
  --text:           #1A237E;
  --text-muted:     #546E7A;
  --text-dark:      #1C2833;
  --border:         #BBDEFB;
  --shadow-sm:      0 2px 12px rgba(26,35,126,0.08);
  --shadow-md:      0 6px 24px rgba(26,35,126,0.12);
  --shadow-lg:      0 12px 40px rgba(26,35,126,0.16);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --transition:     all 0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@500;600;700&display=swap');

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
#navbar {
  background: var(--primary);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(26,35,126,0.35);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: white;
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo-text {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
  color: var(--primary);
  text-align: center; line-height: 1.2;
  padding: 4px; flex-shrink: 0;
}

.nav-school-name {
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.nav-school-name span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--sky-mid);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

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

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.14);
  color: white;
}

.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--primary-dark) !important;
  font-weight: 800;
  margin-left: 0.5rem;
}

.nav-links a.nav-cta:hover { background: var(--gold-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

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

/* ── Mobile Nav ── */
.mobile-menu {
  display: none;
  position: absolute;
  top: 68px; left: 0; right: 0;
  background: var(--primary-dark);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu a:hover { background: rgba(255,255,255,0.1); color: white; }
.mobile-menu a.nav-cta {
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 800;
  text-align: center;
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════════
   PAGE HERO BANNER (for inner pages)
══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(249,168,37,0.07);
}

.page-hero-tag {
  display: inline-block;
  background: rgba(249,168,37,0.2);
  border: 1px solid rgba(249,168,37,0.45);
  color: var(--gold);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}

.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#footer {
  background: var(--primary-dark);
  color: white;
  padding: 3.5rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
  color: var(--primary);
  text-align: center; line-height: 1.2;
  padding: 3px; flex-shrink: 0;
}

.footer-brand-name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}

.footer-brand-name span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul li { margin-bottom: 0.55rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: white; }

.footer-contact-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}

.footer-contact-item .fc-icon {
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.83rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

.footer-motto {
  display: flex;
  gap: 1.5rem;
}

.footer-motto span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════
   SHARED UTILITIES
══════════════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

section { padding: 5rem 2rem; }

.section-tag {
  display: inline-block;
  background: var(--sky);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.75;
  max-width: 560px;
}

.divider {
  width: 56px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.85rem 0 1.25rem;
}

.divider.center { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(249,168,37,0.35);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,168,37,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--primary); color: white; }

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover { background: var(--sky); }

/* ── FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 3.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  #navbar { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
