/* Supreme Junior School — shared theme styles */

:root {
  --sj-navy: #0E2D6F;
  --sj-navy-deep: #081C4A;
  --sj-gold: #FFC72C;
  --sj-gold-deep: #D9A218;
  --sj-cream: #FAF6EE;
  --sj-brick: #B6532C;
  --sj-stone: #7A5D3F;
  --sj-leaf: #3C7A47;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #1f2937;
  background: var(--sj-cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Ndebele-inspired chevron pattern used as section accents */
.ndebele-band {
  height: 14px;
  background-image:
    linear-gradient(135deg, var(--sj-gold) 25%, transparent 25%),
    linear-gradient(225deg, var(--sj-gold) 25%, transparent 25%),
    linear-gradient(45deg,  var(--sj-navy) 25%, transparent 25%),
    linear-gradient(315deg, var(--sj-navy) 25%, transparent 25%);
  background-position: 0 0, 14px 0, 14px 0, 0 0;
  background-size: 28px 28px;
  background-repeat: repeat;
  background-color: var(--sj-cream);
}

/* Subtle textured background like woven mat */
.bg-savanna {
  background-color: var(--sj-cream);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 199, 44, 0.08) 0, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(14, 45, 111, 0.06) 0, transparent 45%);
}

.bg-pattern-shona {
  background-color: var(--sj-navy);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 199, 44, 0.06) 0, rgba(255, 199, 44, 0.06) 2px, transparent 2px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(255, 199, 44, 0.06) 0, rgba(255, 199, 44, 0.06) 2px, transparent 2px, transparent 14px);
}

/* Decorative gold rule */
.gold-rule {
  display: inline-block;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--sj-gold) 0%, var(--sj-gold-deep) 100%);
  border-radius: 9999px;
}

/* Cards */
.sj-card {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -15px rgba(8, 28, 74, 0.18);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(14, 45, 111, 0.06);
}
.sj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -18px rgba(8, 28, 74, 0.28);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--sj-gold);
  color: var(--sj-navy-deep);
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 8px 20px -8px rgba(255, 199, 44, 0.7);
  transition: all .2s ease;
}
.btn-primary:hover { background: var(--sj-gold-deep); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-weight: 600;
  padding: 0.78rem 1.5rem;
  border-radius: 9999px;
  transition: all .2s ease;
}
.btn-secondary:hover { background: #ffffff; color: var(--sj-navy); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
  color: var(--sj-navy);
  border: 2px solid var(--sj-navy);
  font-weight: 700;
  padding: 0.78rem 1.5rem;
  border-radius: 9999px;
  transition: all .2s ease;
}
.btn-outline:hover { background: var(--sj-navy); color: #ffffff; }

/* Header navigation */
.nav-link {
  position: relative;
  font-weight: 600;
  color: #ffffff;
  padding: 0.5rem 0;
  opacity: .9;
}
.nav-link:hover { opacity: 1; }
.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px; border-radius: 3px;
  background: var(--sj-gold);
}

/* Hero overlay */
.hero-overlay {
  background:
    linear-gradient(120deg, rgba(8, 28, 74, 0.85) 0%, rgba(14, 45, 111, 0.7) 55%, rgba(14, 45, 111, 0.45) 100%);
}

/* Value icon circle */
.value-icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FFE89C 0%, var(--sj-gold) 100%);
  color: var(--sj-navy-deep);
  box-shadow: 0 8px 18px -10px rgba(255, 199, 44, 0.9);
}

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  width: 60px; height: 60px;
  border-radius: 9999px;
  background: #25D366;
  color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(37, 211, 102, 0.6);
  z-index: 60;
  transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* Image fallback */
.img-tile {
  background-color: #e5e7eb;
  background-size: cover;
  background-position: center;
}

/* Form fields */
.field-label { display:block; font-weight:600; color: var(--sj-navy-deep); margin-bottom: .35rem; font-size: .95rem; }
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  border: 1.5px solid #E5E7EB;
  background: #ffffff;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--sj-navy);
  box-shadow: 0 0 0 4px rgba(14, 45, 111, 0.12);
}

/* Footer */
.footer-link {
  color: rgba(255,255,255,.78);
  display: inline-block;
  padding: 0.25rem 0;
  transition: color .2s ease, transform .2s ease;
}
.footer-link:hover { color: var(--sj-gold); transform: translateX(2px); }

/* Section title */
.eyebrow {
  display:inline-flex; align-items:center; gap:.5rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--sj-brick);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--sj-brick); display:inline-block;
}

/* Stat badges */
.stat-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(4px);
}

/* Animated fade-in on load */
@keyframes sj-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sj-rise { animation: sj-rise .7s ease both; }
.sj-rise.delay-1 { animation-delay: .1s; }
.sj-rise.delay-2 { animation-delay: .2s; }
.sj-rise.delay-3 { animation-delay: .3s; }

/* Aspect ratios */
.aspect-photo { aspect-ratio: 4 / 3; }
.aspect-banner { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
