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

body {
  overflow-x: hidden;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(180, 80, 42, 0.08);
}

#navbar.scrolled .nav-link {
  color: #78350f;
}

#navbar.scrolled .nav-link:hover {
  color: #b83d1f;
}

#navbar.scrolled .font-serif {
  color: #92400e;
}

/* ── 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.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Default state for reduced-motion / no-JS: always visible */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.scroll-indicator:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #f9d7cc;
}

.mobile-nav-link:last-of-type {
  border-bottom: none;
}

/* ── Button Hover Glow ── */
button:hover,
a:hover {
  transition: all 0.2s ease;
}

/* ── Input Focus ── */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ── Selection ── */
::selection {
  background: #f4b8a0;
  color: #782a1b;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fdf8f0;
}

::-webkit-scrollbar-thumb {
  background: #e66a3e;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b83d1f;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
  }
}
