/* ======================================================
   HIKANE PRIMARY SCHOOL — Style System
   Aesthetic: Warm African Earth — terra cotta, gold, deep green
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Caveat:wght@400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Primary earth palette */
  --terra:        #B85C38;
  --terra-dark:   #8B3A1F;
  --terra-light:  #D4845A;
  --terra-pale:   #F5E0D3;
  
  /* Accent gold */
  --gold:         #D4A843;
  --gold-dark:    #B08930;
  --gold-light:   #F0D48A;
  --gold-pale:    #FFF8E7;
  
  /* Deep greens */
  --forest:       #2D5F3A;
  --forest-dark:  #1A3D24;
  --forest-light: #4A8C5C;
  
  /* Neutrals */
  --charcoal:     #2B2B2B;
  --slate:        #4A4A4A;
  --grey:         #7A7A7A;
  --silver:       #B5B5B5;
  --cloud:        #E8E4DF;
  --cream:        #FAF7F2;
  --white:        #FFFFFF;
  
  /* Semantic */
  --bg-primary:   var(--cream);
  --bg-section:   var(--white);
  --text-primary: var(--charcoal);
  --text-secondary: var(--slate);
  --text-muted:   var(--grey);
  --accent:       var(--terra);
  --accent-alt:   var(--forest);
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;
  --font-accent:  'Caveat', cursive;
  
  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Layout */
  --max-width:   1200px;
  --header-h:    80px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --shadow-xl:  0 16px 64px rgba(0,0,0,.16);
  
  /* Transitions */
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --dur-fast:   .2s;
  --dur-med:    .4s;
  --dur-slow:   .7s;
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--terra-dark); }
ul,ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
::selection { background: var(--gold-light); color: var(--charcoal); }

/* ---------- Utility ---------- */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.section-padding { padding: var(--space-4xl) 0; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-forest { color: var(--forest); }
.text-gold { color: var(--gold-dark); }

.section-label {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--gold-dark);
  display: block;
  margin-bottom: var(--space-sm);
  letter-spacing: .02em;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
  border: none;
  border-radius: 2px;
  margin: var(--space-lg) auto var(--space-xl);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--dur-med) var(--ease-out);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--terra);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn-outline-dark:hover {
  background: var(--terra);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--forest-dark);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: .5rem 0;
  letter-spacing: .02em;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: var(--gold); }
.top-bar-left,
.top-bar-right { display: flex; align-items: center; gap: 1.2rem; }
.top-bar-right span,
.top-bar-left span { display: flex; align-items: center; gap: .35rem; }

/* ---------- Header / Navbar ---------- */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--dur-med) var(--ease-out);
}
.main-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.logo-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terra-dark);
  line-height: 1.15;
}
.logo-text span {
  font-size: .72rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: .15rem; }
.main-nav a {
  position: relative;
  padding: .5rem .85rem;
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--terra);
  border-radius: 1px;
  transition: all var(--dur-med) var(--ease-out);
  transform: translateX(-50%);
}
.main-nav a:hover,
.main-nav a.active { color: var(--terra); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 60%; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--dur-med) var(--ease-out);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27,61,36,.82) 0%,
    rgba(184,92,56,.55) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  padding: var(--space-4xl) 0;
}
.hero-label {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
  display: block;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .5s forwards;
}
.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .7s forwards;
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .9s forwards;
}

/* Hero carousel controls */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .6rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
}
.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 28px;
  border-radius: 5px;
}
.hero-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  pointer-events: all;
  transition: all var(--dur-med) var(--ease-out);
}
.hero-arrow:hover {
  background: rgba(255,255,255,.3);
  transform: scale(1.08);
}

/* ---------- Page Header (non-home pages) ---------- */
.page-header {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--terra-dark) 100%);
  color: var(--white);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
}
.page-header::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.04'%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");
  opacity: .5;
}
.page-header-content {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}
.page-header .breadcrumb a { color: var(--gold-light); }
.page-header .breadcrumb a:hover { color: var(--gold); }
.page-header .breadcrumb .sep { color: rgba(255,255,255,.4); }

/* ---------- Card System ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-med) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body { padding: var(--space-xl); }
.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.card-text {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.7;
}

/* ---------- Feature / Icon Cards ---------- */
.icon-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-med) var(--ease-out);
  border: 1px solid transparent;
}
.icon-card:hover {
  border-color: var(--terra-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.icon-card .icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.8rem;
}
.icon-terra { background: var(--terra-pale); color: var(--terra); }
.icon-gold  { background: var(--gold-pale);  color: var(--gold-dark); }
.icon-green { background: #E8F5E9;          color: var(--forest); }

.icon-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.icon-card p {
  color: var(--text-secondary);
  font-size: .93rem;
  line-height: 1.65;
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-2xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-2xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-xl); }
.grid-2-1 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--forest-dark);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,.15) 0%, transparent 70%);
  border-radius: var(--radius-full);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-xl); }
.stat-item { text-align: center; color: var(--white); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.stat-label { font-size: .9rem; color: rgba(255,255,255,.75); }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
  padding: var(--space-4xl) 0;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}
.cta-section p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.main-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.75);
  padding: var(--space-4xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-about .logo-text h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.footer-about p {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: all var(--dur-med) var(--ease-out);
}
.footer-social a:hover {
  background: var(--terra);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: var(--space-lg);
}
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: all var(--dur-fast) var(--ease-out);
}
.footer-col ul a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom {
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---------- About Page ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }
.about-intro img { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.about-values .values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-xl); margin-top: var(--space-2xl); }
.value-card {
  padding: var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--terra);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-med) var(--ease-out);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.value-card p { color: var(--text-secondary); font-size: .93rem; }

/* Timeline */
.timeline { position: relative; padding: var(--space-2xl) 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cloud);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  margin-bottom: var(--space-2xl);
  position: relative;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--terra);
  border: 3px solid var(--white);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  box-shadow: var(--shadow-sm);
}
.timeline-content {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.timeline-content h4 {
  font-family: var(--font-display);
  color: var(--terra);
  margin-bottom: var(--space-xs);
}
.timeline-content p { color: var(--text-secondary); font-size: .93rem; }

/* ---------- Staff Page ---------- */
.staff-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-med) var(--ease-out);
  text-align: center;
}
.staff-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.staff-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
}
.staff-card-body { padding: var(--space-xl); }
.staff-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .2rem;
}
.staff-card-body .role {
  color: var(--terra);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}
.staff-card-body .staff-email {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--grey);
  margin-bottom: var(--space-md);
  padding: .25rem .7rem;
  border-radius: 20px;
  background: var(--cream);
  transition: all var(--dur-med) var(--ease-out);
  word-break: break-all;
}
.staff-card-body .staff-email:hover {
  background: var(--terra-pale);
  color: var(--terra);
}
.staff-card-body .staff-email i {
  font-size: .72rem;
  flex-shrink: 0;
}
.staff-card-body p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Academics / Programs ---------- */
.program-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-2xl);
  transition: all var(--dur-med) var(--ease-out);
}
.program-card:hover { box-shadow: var(--shadow-md); }
.program-card:nth-child(even) .program-img { order: 2; }
.program-img { min-height: 320px; }
.program-img img { width: 100%; height: 100%; object-fit: cover; }
.program-info {
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.program-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.program-info p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}
.program-info ul { margin-bottom: var(--space-lg); }
.program-info ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: .95rem;
}
.program-info ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 700;
}

/* ---------- Admissions ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-xl); margin: var(--space-2xl) 0; }
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--terra), var(--terra-light));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}
.step p { color: var(--text-secondary); font-size: .9rem; }

/* Info boxes */
.info-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}
.info-box h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--terra);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.info-box ul li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--cloud);
  color: var(--text-secondary);
  font-size: .95rem;
}
.info-box ul li:last-child { border-bottom: 0; }
.info-box ul li strong { color: var(--text-primary); }

/* ---------- Life @ School ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--space-md);
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: var(--white);
  font-size: .9rem;
  transform: translateY(100%);
  transition: transform var(--dur-med) var(--ease-out);
}
.gallery-item:hover .caption { transform: translateY(0); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-3xl); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-lg); }
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-group label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .85rem 1rem;
  border: 1.5px solid var(--cloud);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px var(--terra-pale);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

.contact-info-list { display: flex; flex-direction: column; gap: var(--space-lg); }
.contact-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.contact-info-item .icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--terra-pale);
  color: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: .15rem;
}
.contact-info-item p { color: var(--text-secondary); font-size: .93rem; }

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-2xl);
}
.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* ---------- Advantages ---------- */
.advantage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}
.advantage-row:nth-child(even) .advantage-img { order: -1; }
.advantage-img img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.advantage-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.advantage-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}
.advantage-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: .95rem;
}
.advantage-list li .check {
  color: var(--forest);
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- Testimonial ---------- */
.testimonial-section {
  background: var(--terra-pale);
  padding: var(--space-4xl) 0;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--terra-pale);
  position: absolute;
  top: .2rem;
  left: 1.2rem;
  line-height: 1;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.testimonial-card .author-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.testimonial-card .author-name {
  font-weight: 600;
  font-size: .95rem;
}
.testimonial-card .author-role {
  font-size: .82rem;
  color: var(--grey);
}

/* ---------- Notification / Alert ---------- */
.school-notice {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  padding: var(--space-md) var(--space-xl);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}
.school-notice .notice-icon { font-size: 1.5rem; }
.school-notice p { font-size: .93rem; color: var(--text-secondary); }
.school-notice strong { color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .program-card { grid-template-columns: 1fr; }
  .program-card:nth-child(even) .program-img { order: 0; }
  .program-img { min-height: 240px; }
  .about-intro { grid-template-columns: 1fr; }
  .advantage-row { grid-template-columns: 1fr; }
  .advantage-row:nth-child(even) .advantage-img { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: var(--space-2xl); }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot { left: 20px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 64px; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: right var(--dur-med) var(--ease-out);
    align-items: flex-start;
    gap: .4rem;
    z-index: 999;
  }
  .main-nav.open { right: 0; }
  .main-nav a { font-size: 1rem; padding: .65rem 0; width: 100%; }
  .nav-toggle { display: flex; }
  .hero { min-height: 70vh; }
  .hero-title { font-size: 2rem; }
  .top-bar-right { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .about-values .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--terra);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur-med) var(--ease-out);
  z-index: 100;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--terra-dark);
  transform: translateY(-3px);
}

/* ---------- Misc ---------- */
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.text-white { color: var(--white); }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
