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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
  .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
  .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
  .scroll-reveal:nth-child(7) { transition-delay: 0.48s; }
  .scroll-reveal:nth-child(8) { transition-delay: 0.56s; }
}

/* ===== Navbar scroll state ===== */
#navbar.scrolled {
  background: rgba(45, 96, 45, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-text-white {
  color: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled .nav-text-white {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Mobile menu ===== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
  display: block;
}

/* ===== Hero parallax subtle ===== */
#hero {
  position: relative;
}

#hero img {
  will-change: transform;
}

/* ===== Card hover glow ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ===== Focus visible ===== */
*:focus-visible {
  outline: 2px solid #5a9a5a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
  background: #aed0ad;
  color: #1c3d1c;
}

/* ===== Smooth scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f4f0e8;
}
::-webkit-scrollbar-thumb {
  background: #aed0ad;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7bb87b;
}
