*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* NAV */
#site-header {
  background: transparent;
}

#site-header.scrolled {
  background: rgba(250, 245, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(116, 48, 67, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

#site-header:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#site-header:not(.scrolled) .nav-link:hover {
  color: #fbbf24;
}

#site-header:not(.scrolled) .nav-link::after {
  background: #fbbf24;
}

#site-header:not(.scrolled) .font-serif {
  color: #fff;
}

#site-header:not(.scrolled) .w-9 {
  background: rgba(251, 191, 36, 0.3);
}

#site-header:not(.scrolled) .w-9 svg {
  stroke: #fbbf24;
}

#site-header:not(.scrolled) .bg-plum-700 {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#site-header:not(.scrolled) .bg-plum-700:hover {
  background: rgba(255, 255, 255, 0.25);
}

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

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

.mobile-link {
  position: relative;
  padding-left: 0;
}

/* Product cards */
.product-card {
  will-change: transform;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

/* Hero parallax subtle */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    will-change: transform;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #d9a5b2;
  border-radius: 4px;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: #eacdd5;
  color: #4f212b;
}
