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

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

body {
  margin: 0;
  -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 ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* Hidden state — only applied via JS for progressive enhancement */
.reveal.is-hidden {
  opacity: 0;
  transform: translateY(24px);
}

/* ========== NAVBAR SCROLL ========== */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(20, 23, 28, 0.06);
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
  max-height: 400px;
}

/* ========== SELECTION ========== */
::selection {
  background-color: #E86A5A;
  color: white;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid #E86A5A;
  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;
  }
  .reveal.is-hidden {
    opacity: 1;
    transform: none;
  }
}

/* ========== SUBTLE PATTERN (optional bg texture) ========== */
.bg-pattern {
  background-image: radial-gradient(circle, rgba(232, 106, 90, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
