/* =========================================================
   Blue River Montessori — style.css
   Palette: warm sage green + deep forest + amber + cream
   Fonts: Lora (serif headings) + Work Sans (body)
   ========================================================= */

:root {
  --cream:       oklch(97% 0.012 85);
  --paper:       oklch(94% 0.018 83);
  --sage:        oklch(51% 0.11 148);
  --sage-light:  oklch(72% 0.09 148);
  --forest:      oklch(26% 0.07 152);
  --forest-mid:  oklch(35% 0.09 150);
  --amber:       oklch(67% 0.14 55);
  --amber-dark:  oklch(55% 0.13 53);
  --text-dark:   oklch(22% 0.03 152);
  --text-mid:    oklch(45% 0.04 150);
  --white:       oklch(99% 0.005 90);
  --white-faint: oklch(99% 0.008 90 / 0.9);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Lora', serif;
  font-weight: 600;
}

p { line-height: 1.75; }

a { text-decoration: none; }

img { display: block; max-width: 100%; }

/* ── NAVBAR ──────────────────────────────────────────────── */

#mainNav {
  background-color: var(--white);
  border-bottom: 1px solid oklch(90% 0.015 85);
  padding: 0.5rem 0;
  z-index: 1030;
}

.logo-img {
  border: 2px solid oklch(90% 0.015 85);
  border-radius: 4px;
}

.brand-name {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.navbar-nav .nav-link {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--sage);
}

.navbar-toggler {
  border-color: var(--sage);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234a7c59' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── HERO ────────────────────────────────────────────────── */

#hero {
  position: relative;
  min-height: 100vh;
  background: url('img/hero.webp') center 30% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  max-width: 820px;
  width: 100%;
  background: rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 8px;
}

.hero-eyebrow {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: oklch(90% 0.015 90);
  max-width: 600px;
  margin: 0 auto 0.5rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}

.btn-hero {
  display: inline-block;
  background-color: var(--amber);
  color: var(--white);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2.4rem;
  border-radius: 3px;
  border: none;
  transition: background-color 0.2s, transform 0.15s;
}
.btn-hero:hover, .btn-hero:focus {
  background-color: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── PILLARS STRIP ───────────────────────────────────────── */

.pillars-section { background-color: var(--forest); }

.pillars-row { width: 100%; margin: 0; }

.pillar-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background-color: var(--forest);
  border-right: 1px solid oklch(35% 0.07 152);
  transition: background-color 0.2s;
}

.pillar-cell:last-child { border-right: none; }

.pillar-cell.pillar-alt { background-color: var(--forest-mid); }

.pillar-icon {
  font-size: 1.8rem;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.pillar-stat {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.pillar-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-light);
}

/* ── SHARED SECTION ELEMENTS ─────────────────────────────── */

.section-eyebrow {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-eyebrow.light { color: var(--sage-light); }

.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto 1rem;
}

/* ── ABOUT ───────────────────────────────────────────────── */

.about-section {
  padding: 6rem 0;
  background-color: var(--cream);
}

.lead-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--forest-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-pill {
  display: inline-block;
  background-color: oklch(93% 0.03 148);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid oklch(82% 0.06 148);
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  background-color: oklch(82% 0.07 148 / 0.35);
  border-radius: 6px;
  z-index: 0;
}

.about-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 6px;
}

/* ── PROGRAMS ────────────────────────────────────────────── */

.programs-section {
  padding: 6rem 0;
  background-color: var(--paper);
}

.program-card {
  background-color: var(--white);
  border: 1px solid oklch(90% 0.015 85);
  border-top: 4px solid var(--sage);
  border-radius: 4px;
  padding: 2rem 2rem 1.75rem;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.15s;
}

.program-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.program-card--featured {
  border-top-color: var(--amber);
  background-color: oklch(98.5% 0.008 80);
}

.program-time {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.25rem;
}

.program-name {
  font-size: 1.2rem;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.program-days {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.program-days i { margin-right: 0.3rem; }

/* ── CURRICULUM ──────────────────────────────────────────── */

.curriculum-section {
  background-color: var(--forest);
}

.curriculum-text-col {
  padding: 5rem 4rem 5rem 5%;
}

@media (max-width: 991.98px) {
  .curriculum-text-col { padding: 4rem 2rem; }
}

.curriculum-inner { max-width: 540px; }

.curriculum-list { margin-top: 2rem; }

.curriculum-item {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.curriculum-item:last-child { margin-bottom: 0; }

.curriculum-icon {
  font-size: 1.4rem;
  color: var(--amber);
  margin-top: 2px;
  flex-shrink: 0;
}

.curriculum-item strong {
  display: block;
  font-family: 'Lora', serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.curriculum-item p {
  font-size: 0.9rem;
  color: oklch(75% 0.04 152);
  line-height: 1.65;
  margin: 0;
}

.curriculum-img-col { min-height: 500px; }

.curriculum-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── GALLERY ─────────────────────────────────────────────── */

.gallery-section {
  padding: 6rem 0 0;
  background-color: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 260px);
  gap: 0;
}

.gallery-cell {
  overflow: hidden;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-cell:hover img { transform: scale(1.04); }

@media (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 240px);
  }
}

@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 200px);
  }
}

/* ── FACULTY ─────────────────────────────────────────────── */

.faculty-section {
  padding: 6rem 0;
  background-color: var(--paper);
}

.faculty-card {
  background-color: var(--white);
  border: 1px solid oklch(91% 0.012 85);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: box-shadow 0.2s;
}

.faculty-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.faculty-initial {
  width: 54px;
  height: 54px;
  background-color: var(--forest);
  color: var(--white);
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.faculty-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.faculty-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.75rem;
}

.faculty-bio {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */

.testimonials-section {
  padding: 6rem 0;
  background-color: var(--forest);
}

.testimonial-card {
  background-color: oklch(31% 0.07 150);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  height: 100%;
  border-left: 3px solid var(--amber);
}

.quote {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.0rem;
  color: oklch(92% 0.012 90);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
}

.testimonial-location {
  font-size: 0.78rem;
  color: var(--sage-light);
  letter-spacing: 0.05em;
}

/* ── ADMISSIONS ──────────────────────────────────────────── */

.admissions-section {
  padding: 6rem 0;
  background-color: var(--cream);
}

.steps-list { padding-left: 0; }

.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid oklch(90% 0.015 85);
}

.step-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  font-family: 'Lora', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: oklch(88% 0.045 148);
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

.btn-primary-action {
  display: inline-block;
  background-color: var(--sage);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  transition: background-color 0.2s;
}
.btn-primary-action:hover { background-color: var(--forest-mid); color: var(--white); }

.btn-secondary-action {
  display: inline-block;
  background-color: transparent;
  color: var(--sage);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  border: 2px solid var(--sage);
  transition: background-color 0.2s, color 0.2s;
}
.btn-secondary-action:hover { background-color: var(--sage); color: var(--white); }

/* ── CONTACT ─────────────────────────────────────────────── */

.contact-section {
  padding: 6rem 0;
  background-color: var(--paper);
}

.contact-info-block { padding-top: 0.5rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.4rem;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-family: 'Lora', serif;
  font-size: 0.92rem;
  color: var(--forest);
  margin-bottom: 0.2rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.contact-item a {
  color: var(--sage);
  font-weight: 500;
}
.contact-item a:hover { color: var(--amber); }

.map-wrapper {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid oklch(88% 0.016 85);
}

.map-wrapper iframe { display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */

.site-footer {
  background-color: var(--forest);
  padding: 3.5rem 0 1.5rem;
}

.footer-logo {
  filter: brightness(1);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer-links a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(75% 0.04 152);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.footer-social a {
  color: oklch(70% 0.05 152);
  font-size: 1.35rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--amber); }

.footer-address {
  font-size: 0.82rem;
  color: oklch(68% 0.04 152);
}

.footer-address + p a {
  color: oklch(72% 0.05 152);
  font-size: 0.86rem;
}
.footer-address + p a:hover { color: var(--amber); }

.wf-credit {
  margin-top: 0.5rem;
}

.wf-credit a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--amber);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.wf-credit a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid oklch(34% 0.06 152);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: oklch(52% 0.04 152);
  margin: 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 991.98px) {
  .about-section { padding: 4rem 0; }
  .programs-section { padding: 4rem 0; }
  .faculty-section { padding: 4rem 0; }
  .testimonials-section { padding: 4rem 0; }
  .admissions-section { padding: 4rem 0; }
  .contact-section { padding: 4rem 0; }
  .gallery-section { padding: 4rem 0 0; }

  .about-img { height: 380px; }

  .curriculum-text-col { order: 2; }
  .curriculum-img-col { order: 1; min-height: 320px; }
}

@media (max-width: 767.98px) {
  .pillar-cell { border-right: none; border-bottom: 1px solid oklch(35% 0.07 152); }
  .pillar-cell:last-child { border-bottom: none; }

  .hero-content { padding: 2rem 1.25rem; }

  .about-img { height: 300px; }
  .about-img-wrap::before { display: none; }

  .step-item { gap: 1rem; }
  .step-number { font-size: 1.8rem; width: 42px; }

  .brand-name { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .navbar-nav .nav-link { font-size: 1rem; padding: 0.6rem 1rem; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 180px);
  }
}
