/* Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
  background: #d9a7b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a35268;
}

/* Selection */
::selection {
  background: #e9d0d9;
  color: #4d212f;
}

/* Navigation */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(253, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(163, 82, 104, 0.1);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile menu */
.mobile-link {
  border-bottom: 1px solid rgba(217, 167, 184, 0.2);
  padding-bottom: 0.75rem;
}

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

/* Hero image animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* Product card hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Button ripple effect */
button, a {
  cursor: pointer;
}

/* Form focus states */
input:focus, textarea:focus {
  outline: none;
}

/* Print styles */
@media print {
  #navbar, #mobile-toggle, #mobile-menu {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* Large screen adjustments */
@media (min-width: 1280px) {
  .font-serif {
    line-height: 1.05;
  }
}
