/* ============================================
   SOL Christian Academy — Editorial Luxury
   Design System v2
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --cream: #D4DCBE;
  --cream-light: #E6ECCC;
  --cream-dark: #EBF0D4;
  --near-black: #0F0F0F;
  --charcoal: #1A1A1A;
  --muted: #555555;
  --border: #E0E4D0;
  --border-light: rgba(0,0,0,0.04);
  --green: #018028;
  --green-dark: #016B21;
  --green-light: rgba(1,128,40,0.06);
  --yellow: #FFFC4E;
  --yellow-dark: #E6D800;
  --white: #FFFFFF;

  --font-display: 'EB Garamond', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display-weight: 600;

  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 800ms var(--ease-spring);
  --transition-base: 500ms var(--ease-out);
  --transition-fast: 300ms var(--ease-out);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--near-black);
  font-weight: 600;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23018028' stroke-width='0.3' opacity='0.06'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%23018028' opacity='0.08'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--green);
  line-height: 1.15;
  font-weight: var(--font-display-weight);
}

h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white {
  color: var(--white);
}

.display-1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--green);
}

.display-2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--green);
}

.heading-1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--green-light);
  color: var(--green);
  margin-bottom: 1.25rem;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }
.bg-white { background: var(--white); }
.bg-green { background: var(--green); }

/* ---------- Noise Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================
   FLUID ISLAND NAV
   ============================================ */
.fluid-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-top: 1.25rem;
  pointer-events: none;
}

.fluid-nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.625rem 0.75rem 0.625rem 1.5rem;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 32px rgba(0,0,0,0.04);
  pointer-events: auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 1.5rem;
  transition: var(--transition-base);
}

.fluid-nav-logo {
  height: 2.75rem;
  width: auto;
  flex-shrink: 0;
}

.fluid-nav-links {
  display: none;
  align-items: center;
  gap: 0.125rem;
  margin-right: auto;
}

.fluid-nav-links a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.fluid-nav-links a:hover {
  background: var(--green-light);
  color: var(--green);
}

.fluid-nav-links a.active {
  background: var(--green);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--near-black);
  border-radius: 2px;
  transition: var(--transition-base);
  position: absolute;
}

.hamburger-line:nth-child(1) { transform: translateY(-4px); }
.hamburger-line:nth-child(2) { transform: translateY(4px); }

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  transform: rotate(-45deg);
}

/* Mobile Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(245,248,232,0.92);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease-out);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--near-black);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: var(--transition-slow);
  transition-delay: 0s;
}

.nav-overlay.open a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.open a:nth-child(1) { transition-delay: 100ms; }
.nav-overlay.open a:nth-child(2) { transition-delay: 150ms; }
.nav-overlay.open a:nth-child(3) { transition-delay: 200ms; }
.nav-overlay.open a:nth-child(4) { transition-delay: 250ms; }
.nav-overlay.open a:nth-child(5) { transition-delay: 300ms; }
.nav-overlay.open a:nth-child(6) { transition-delay: 350ms; }
.nav-overlay.open a:nth-child(7) { transition-delay: 400ms; }
.nav-overlay.open a:nth-child(8) { transition-delay: 450ms; }
.nav-overlay.open a:nth-child(9) { transition-delay: 500ms; }

/* ============================================
   HERO SLIDER — Fade
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 800ms ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 2rem;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.slide-content .eyebrow {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.slide-content .display-1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
}

.slide-desc {
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  color: rgba(255,255,255,0.75);
  max-width: 32rem;
  margin: 1.25rem auto 2rem;
  line-height: 1.7;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.slide-actions .btn-ghost {
  color: rgba(255,255,255,0.7);
}

.slide-actions .btn-ghost:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.25);
}

.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.6rem;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 300ms ease;
}

.slider-dots button.active {
  background: var(--green);
  border-color: var(--green);
}

@media (max-width: 767px) {
  .slider-arrow { width: 44px; height: 44px; font-size: 1.25rem; }
  .slider-arrow.prev { left: 0.75rem; }
  .slider-arrow.next { right: 0.75rem; }
  .slide-desc { font-size: 0.9375rem; }
  .slider-dots { bottom: 1.25rem; gap: 0.5rem; }
  .slider-dots button { width: 8px; height: 8px; border-width: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* ============================================
   BUTTONS — Double-Bezel + Island Architecture
   ============================================ */
.btn-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.125rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--green);
  transition: var(--transition-base);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.btn-shell:hover {
  background: var(--green-light);
}

.btn-core {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--green);
  color: var(--white);
  transition: var(--transition-base);
}

.btn-shell:hover .btn-core {
  background: var(--green-dark);
}

.btn-core .icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--green);
  font-size: 0.875rem;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.btn-shell:hover .icon-ring {
  transform: translateX(2px) translateY(-1px);
}

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-ghost:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* Active press state */
.btn-shell:active, .btn-ghost:active {
  transform: scale(0.97);
}

/* ============================================
   SECTION — Card Architecture on Wallpaper
   ============================================ */
.section, .content-section {
  margin: 1.5rem 0;
  background: #F5F8E8;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 48px rgba(0,0,0,0.1);
}

.section > .container, .content-section > .container {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-header p {
  color: var(--muted);
  margin-top: 1rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}

/* ============================================
   DOUBLE-BEZEL CARD ARCHITECTURE
   ============================================ */
.bezel {
  padding: 0.125rem;
  border-radius: var(--radius-xl);
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  transition: var(--transition-base);
}

.bezel:hover {
  border-color: rgba(1,128,40,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}

.bezel-inner {
  height: 100%;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border-radius: calc(var(--radius-xl) - 0.125rem);
  background: var(--cream-light);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15);
  transition: var(--transition-base);
}

/* ============================================
   ASYMMETRIC BENTO GRID
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.bento-card {
  display: flex;
  flex-direction: column;
}

.bento-card .icon-ring {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bento-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   SCHOOL STAGES — Editorial Split
   ============================================ */
.stages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stage-card {
  display: flex;
  flex-direction: column;
}

.stage-card .age-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--cream-dark);
  color: var(--muted);
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.stage-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stage-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ============================================
   FACILITIES GALLERY — Masonry
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item:nth-child(3n+1) {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-spring);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
}

.gallery-item:hover .overlay { opacity: 1; }

/* ============================================
   TESTIMONIALS — Z-Axis Cascade
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testimonial-card {
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
}

.testimonial-card .stars {
  color: var(--yellow-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}

.testimonial-card blockquote {
  color: var(--charcoal);
  font-style: italic;
  line-height: 1.8;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  margin-bottom: 1.5rem;
}

.testimonial-card cite {
  display: flex;
  flex-direction: column;
  font-style: normal;
}

.testimonial-card cite strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
}

.testimonial-card cite span {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ============================================
   NEWS CARDS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.news-card .bezel-inner {
  padding: 0;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem;
}

.news-card-body .date {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.news-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card-body p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.news-card-body .read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: var(--transition-fast);
}

.news-card-body .read-more:hover {
  gap: 0.625rem;
}

/* ============================================
   CTA — Double-Bezel
   ============================================ */
.cta {
  text-align: center;
}

.cta .bezel-inner {
  background: var(--near-black);
  padding: clamp(3rem, 5vw, 5rem);
}

.cta h2 {
  color: var(--white);
  max-width: 28rem;
  margin: 0 auto 0.75rem;
}

.cta p {
  color: rgba(255,255,255,0.6);
  max-width: 28rem;
  margin: 0 auto 2rem;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.7;
}

.cta .btn-shell {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  display: inline-flex;
}

.cta .btn-ghost {
  color: rgba(255,255,255,0.7);
}

.cta .btn-ghost:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.cta .btn-core {
  background: var(--white);
  color: var(--green);
}

.cta .btn-core .icon-ring {
  background: var(--green);
  color: var(--white);
}

.cta .btn-shell:hover .btn-core {
  background: rgba(255,255,255,0.85);
}

/* ============================================
   FOOTER — Editorial
   ============================================ */
.site-footer {
  padding: clamp(3rem, 5vw, 5rem) 0 0;
  background: var(--green);
  color: var(--white);
}

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

.footer-logo {
  height: 3.5rem;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-about p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 22rem;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  padding: 0.3rem 0;
  transition: var(--transition-fast);
}

.footer-col a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  padding: 0;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--white);
  color: var(--green);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.accred-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.accred-grid img {
  height: 2.25rem;
  width: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1) grayscale(30%);
  transition: var(--transition-fast);
}

.accred-grid img:hover { opacity: 1; filter: brightness(0) invert(1) grayscale(0); }

/* ============================================
   LIGHTBOX MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
  padding: 2rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 56rem;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  transform: scale(0.95);
  transition: transform 500ms var(--ease-spring);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-content img {
  width: 100%;
  display: block;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.modal-header h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--cream-dark);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--near-black);
  color: var(--white);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  filter: blur(4px);
  transition: opacity 900ms var(--ease-spring), transform 900ms var(--ease-spring), filter 900ms var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.5rem); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .bento-card:nth-child(4) { grid-column: 1 / 4; }
  .stages-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .news-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
  .fluid-nav-links { display: flex; }
  .hamburger { display: none; }
}

@media (min-width: 1024px) {
  .bento { grid-template-columns: 2fr 1fr 1fr; }
  .bento-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento-card:nth-child(4) { grid-column: 1 / 4; }
}

@media (max-width: 767px) {
  .fluid-nav-inner { padding: 0.5rem 0.5rem 0.5rem 1rem; max-width: calc(100% - 1.5rem); margin: 0 0.75rem; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; }
  .fluid-nav-logo { height: 2.75rem; }
  .fluid-nav-inner > .btn-shell { display: none; }
  .hamburger-line { background: #fff; }
  .gallery-item:nth-child(3n+1) { grid-column: span 1; aspect-ratio: 4/3; }
  .section, .content-section { margin: 1rem 0.75rem; border-radius: var(--radius-md); }
  .section > .container, .content-section > .container { padding-top: 2rem; padding-bottom: 2rem; }
}

/* ============================================
   INNER PAGE — Page Header Image
   ============================================ */
.page-header-image {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 6rem 0 1.5rem;
  background: linear-gradient(rgba(1,128,40,0.88), rgba(0,0,0,0.75)), var(--hero-bg) center/cover no-repeat !important;
}

.page-header-image h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
}

.page-header-image p {
  color: rgba(255,255,255,0.8);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  margin-top: 0.5rem;
}

.page-header-image .breadcrumb-custom {
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.page-header-image .breadcrumb-custom a {
  color: rgba(255,255,255,0.6);
}

.page-header-image .breadcrumb-custom a:hover {
  color: var(--yellow);
}

/* ============================================
   INNER CONTENT
   ============================================ */

.content-block { max-width: 48rem; }

.content-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-block p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.content-block ul { padding-left: 1.5rem; list-style: disc; }
.content-block ul li { color: var(--muted); line-height: 1.8; margin-bottom: 0.5rem; }

.step-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step-number {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--green-light);
  color: var(--green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.step-content h5 { font-weight: 600; }
.step-content p { color: var(--muted); font-size: 0.9375rem; }

/* Contact form */
.contact-form-wrapper {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--cream-light);
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: var(--transition-fast);
  background: var(--cream);
  width: 100%;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-card .icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: var(--green);
}

.contact-info-card h6 { font-weight: 600; margin-bottom: 0.15rem; }
.contact-info-card p { color: var(--muted); font-size: 0.875rem; margin-bottom: 0; }

/* Contact page map */
.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.contact-map iframe {
  width: 100%;
  height: 250px;
  border: 0;
  display: block;
}

/* Admin tables */
.table-primary {
  --bs-table-bg: var(--green-light) !important;
  --bs-table-color: var(--green-dark) !important;
}

/* ============================================
   REDUCED MOTION — Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .nav-overlay a {
    opacity: 1 !important;
    transform: none !important;
  }

  .gallery-item img { transition: none !important; }
  .gallery-item .overlay { transition: none !important; }

  .modal-content { transform: none !important; }
  .modal-overlay.open .modal-content { transform: none !important; }
}
