/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

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

/* Fallback: always visible if JS is disabled or prefers-reduced-motion */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
}

/* ===== MOBILE MENU ANIMATION ===== */
.menu-line:nth-child(1) {
  transform-origin: center;
}
.menu-line:nth-child(2) {
  transform-origin: center;
}
.menu-line:nth-child(3) {
  transform-origin: center;
}

#mobileMenu.open .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#mobileMenu.open .menu-line:nth-child(2) {
  opacity: 0;
}
#mobileMenu.open .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.5rem;
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(196, 112, 75, 0.1);
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: #C4704B;
  color: #FFFAF5;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFFAF5;
}
::-webkit-scrollbar-thumb {
  background: #C4704B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A85A3B;
}
