/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* ── Mobile Menu Animations ── */
.menu-line:nth-child(1) {
  transform-origin: top;
}
.menu-line:nth-child(3) {
  transform-origin: bottom;
}

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

body.menu-open #mobileMenu {
  max-height: 400px;
}

/* ── 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='%23C0603A' stroke-width='2.5' 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;
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(192, 96, 58, 0.08);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF5EB;
}
::-webkit-scrollbar-thumb {
  background: #F0A176;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C0603A;
}

/* ── Selection color ── */
::selection {
  background: #F7C5AA;
  color: #57291B;
}
