*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* Mobile menu open state */
#mobileMenu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile menu close state */
#mobileMenu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

/* Navbar scrolled state */
#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

/* Hamburger animation */
#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Scroll reveal base — content always visible */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal with JS enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Select styling */
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='%23065F46' 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;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #A7F3D0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #34D399;
}
