/* SIVAA Nursery & Primary School — Design System */


:root {
  --color-primary: #1E3A8A;
  --color-primary-dark: #152e6e;
  --color-primary-light: #2563EB;
  --color-secondary: #38BDF8;
  --color-secondary-dark: #0EA5E9;
  --color-accent-yellow: #FACC15;
  --color-accent-yellow-dark: #EAB308;
  --color-accent-green: #86EFAC;
  --color-white: #FFFFFF;
  --color-off-white: #F8FAFC;
  --color-bg: #F0F7FF;
  --color-bg-alt: #EFF6FF;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-overlay: rgba(15, 23, 42, 0.6);
  --gradient-hero: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #38BDF8 100%);
  --gradient-hero-overlay: linear-gradient(135deg, rgba(30,58,138,0.85) 0%, rgba(37,99,235,0.7) 50%, rgba(56,189,248,0.6) 100%);
  --gradient-cta: linear-gradient(135deg, #FACC15 0%, #F59E0B 100%);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-blue-soft: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  --gradient-footer: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  --font-heading: 'Times New Roman', Times, serif;
  --font-body: 'Times New Roman', Times, serif;
  --font-alt: 'Times New Roman', Times, serif;
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-xl: clamp(1.15rem, 1rem + 0.75vw, 1.25rem);
  --text-2xl: clamp(1.35rem, 1.1rem + 1.25vw, 1.5rem);
  --text-3xl: clamp(1.6rem, 1.2rem + 2vw, 1.875rem);
  --text-4xl: clamp(1.9rem, 1.3rem + 3vw, 2.25rem);
  --text-5xl: clamp(2.2rem, 1.5rem + 3.5vw, 3rem);
  --text-6xl: clamp(2.5rem, 1.5rem + 5vw, 3.75rem);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
  --radius-xl: 20px; --radius-2xl: 24px; --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(30,58,138,0.06);
  --shadow-md: 0 4px 12px rgba(30,58,138,0.08);
  --shadow-lg: 0 8px 30px rgba(30,58,138,0.12);
  --shadow-xl: 0 15px 50px rgba(30,58,138,0.15);
  --shadow-card: 0 2px 8px rgba(30,58,138,0.06), 0 0 0 1px rgba(30,58,138,0.03);
  --shadow-card-hover: 0 12px 40px rgba(30,58,138,0.15), 0 0 0 1px rgba(30,58,138,0.05);
  --transition-fast: 150ms ease; --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --z-sticky: 200; --z-navbar: 300; --z-overlay: 400; --z-modal: 500;
  --container-max: 1200px; --container-narrow: 900px; --navbar-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body); font-size: var(--text-base); font-weight: 400;
  line-height: 1.7; color: var(--color-text); background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-primary); }
h1 { font-size: var(--text-6xl); } h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); } h4 { font-size: var(--text-xl); }
p { margin-bottom: var(--space-4); color: var(--color-text-muted); }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--space-16) 0; }
.section--lg { padding: var(--space-24) 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-2 { gap: var(--space-2); } .gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); } .gap-8 { gap: var(--space-8); }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); }
.text-center { text-align: center; }
.text-white { color: var(--color-white); }

.section-header { text-align: center; margin-bottom: var(--space-12); max-width: 700px; margin-left: auto; margin-right: auto; }
.section-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); background: var(--gradient-blue-soft);
  color: var(--color-primary); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600; font-family: var(--font-alt);
  margin-bottom: var(--space-4); letter-spacing: 0.02em;
}
.section-title { margin-bottom: var(--space-4); }
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--gradient-cta); border-radius: var(--radius-full);
  margin: var(--space-4) auto 0;
}
.section-subtitle { font-size: var(--text-lg); color: var(--color-text-muted); font-family: var(--font-alt); }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger.revealed > * { opacity: 1; transform: translateY(0); }

.bg-white { background-color: var(--color-white); }
.bg-light-blue { background-color: var(--color-bg-alt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --navbar-height: 64px; }
  .section { padding: var(--space-12) 0; }
  .container { padding: 0 var(--space-4); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-header { margin-bottom: var(--space-8); }
  .hide-mobile { display: none !important; }
}
@media (max-width: 480px) { .container { padding: 0 var(--space-3); } }
@media (min-width: 769px) { .show-mobile-only { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
}
