/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ─── NAVBAR ─── */
#navbar {
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 80, 37, 0.08);
}
#navbar.scrolled {
  background: rgba(250, 248, 244, 0.95);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

/* ─── SCROLL REVEAL ─── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-enabled .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-enabled .scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MOBILE MENU ─── */
#mobile-menu {
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HERO DECORATIVE SHAPES ─── */
.hero-shape {
  animation: float 6s ease-in-out infinite;
}
.hero-shape:nth-child(2) { animation-delay: -2s; animation-duration: 8s; }
.hero-shape:nth-child(3) { animation-delay: -4s; animation-duration: 7s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

/* ─── BUTTON HOVER EFFECTS ─── */
a { text-decoration: none; }

/* ─── IMAGE HOVER ─── */
img { max-width: 100%; height: auto; }

/* ─── SECTION DIVIDERS ─── */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, #3d6830, #e09530, #3d6830);
  opacity: 0.3;
}

/* ─── ACCESSIBILITY ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── FOCUS STYLES ─── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #3d6830;
  outline-offset: 2px;
  border-radius: 4px;
}
