/* ========== BASE ========== */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #C0603A;
  color: #FFF8F0;
}

/* ========== SCROLL REVEAL ========== */
.scroll-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);
}

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

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

/* ========== NAVBAR SCROLLED ========== */
#navbar.scrolled {
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(192, 96, 58, 0.08);
}

/* ========== MOBILE LINKS ========== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(192, 96, 58, 0.1);
}

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

/* ========== IMAGE HOVER ========== */
img {
  max-width: 100%;
  height: auto;
}

/* ========== FOCUS ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C0603A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
  background: #e8c88a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C0603A;
}
