/* ─── Base & Typography ─── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #d4a574;
  color: #022c22;
}

/* ─── Scroll Reveal ─── */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ─── Hero Animations ─── */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.2s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.6s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(2, 44, 34, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  color: rgba(253, 251, 247, 0.85);
}

#navbar.scrolled .nav-link {
  color: rgba(253, 251, 247, 0.85);
}

/* ─── Mobile Menu ─── */
.mobile-link {
  color: rgba(253, 251, 247, 0.9);
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #d4a574;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Buttons ─── */
button, a {
  cursor: pointer;
}

/* ─── Form Styles ─── */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5ec;
}
::-webkit-scrollbar-thumb {
  background: #064e3b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* ─── Reduced Motion ─── */
@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;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
