/* ── Base ── */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

::selection {
  background: #2d5a3d;
  color: #f5f2eb;
}

/* ── Navbar scroll state ── */
nav.scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08), 0 4px 20px rgba(0,0,0,0.06);
}

nav.scrolled .font-serif,
nav.scrolled a:not(.bg-cream-50) {
  color: #1a3a25;
}

/* ── Mobile menu animation ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.menu-line.active:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-line.active:nth-child(2) {
  opacity: 0;
}
.menu-line.active:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Floating card animations ── */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-card-1 { animation: float-1 6s ease-in-out infinite; }
.hero-card-2 { animation: float-2 7s ease-in-out infinite; }
.hero-card-3 { animation: float-3 5.5s ease-in-out infinite; }
.hero-card-4 { animation: float-1 8s ease-in-out infinite; }

/* ── Decorative pattern ── */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, #2d5a3d, transparent);
  opacity: 0.15;
  border: none;
}

/* ── Custom select arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── Subtle focus ring for accessibility ── */
*:focus-visible {
  outline: 2px solid #2d5a3d;
  outline-offset: 2px;
}

/* ── 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; }
}
