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

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

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

#navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-logo-text {
  transition: color 0.3s ease;
}

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

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #1B4332;
}

#navbar.scrolled .nav-link:hover {
  color: #4A7C32;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    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);
  }
}

/* Default visible state for reduced-motion or no-JS */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

.mobile-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

.mobile-link:last-of-type {
  border-bottom: none;
}

/* ── Map container responsive ── */
#visit iframe {
  border-radius: 1.5rem;
}

/* ── Form focus styles ── */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(74, 124, 50, 0.15);
}

/* ── Button hover lift ── */
button[type="submit"],
a[href="#products"] {
  will-change: transform;
}

/* ── Selection color ── */
::selection {
  background: #D4E4D1;
  color: #1B4332;
}
