/* ── Base & Typography ── */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(45, 92, 45, 0.2);
  color: #1a3a1a;
}

/* ── Navbar ── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#navbar.scrolled {
  background-color: rgba(253, 252, 250, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 20px rgba(13, 31, 15, 0.08);
}

#navbar.scrolled .nav-logo {
  color: #1a3a1a;
}

#navbar.scrolled .nav-link {
  color: #2d5c2d;
}

/* ── Buttons ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  color: #1a3a1a;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-cta:hover {
  background-color: #f0f5f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-cta-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-primary-nav {
  display: inline-flex;
  align-items: center;
  background-color: #1a3a1a;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary-nav:hover {
  background-color: #2d5c2d;
  transform: translateY(-1px);
}

/* ── Cards ── */
.card-elevated {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(13, 31, 15, 0.1);
}

/* ── Hero Animations ── */
.hero-anim {
  opacity: 1;
  transform: translateY(0);
  animation: heroFadeUp 0.8s ease forwards;
}

.hero-anim:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-anim:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-anim:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile Menu ── */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-anim {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  .card-elevated:hover {
    transform: none;
  }
  .group:hover img {
    transform: none;
  }
}
