/* Custom overrides and utilities */

html {
  scroll-behavior: smooth;
}

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

/* Navbar scroll state */
#site-header.scrolled {
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(61, 98, 46, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #3d622e;
  transition: width 0.25s ease;
}

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

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

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(61, 98, 46, 0.08);
}

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

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  box-shadow: 0 0 0 30px #fbf9f4 inset !important;
  -webkit-text-fill-color: #1a2e10 !important;
}

/* Selection color */
::selection {
  background: #b7ccab;
  color: #1a2e10;
}

/* Subtle image hover zoom */
img {
  transition: transform 0.5s ease;
}

/* Map styling override */
iframe[src*="google.com/maps"] {
  filter: saturate(0.7) contrast(1.05);
}
