/* ── Base & Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ── Hero Pattern ── */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

/* ── Floating Animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-2deg); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-delay 8s ease-in-out infinite;
  animation-delay: 1s;
}

/* ── Navigation ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(139, 26, 74, 0.08);
}

#navbar.scrolled .nav-link {
  color: #4a5568;
}

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

#navbar.scrolled .font-serif.text-xl {
  color: #8B1A4A;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal.delay-100 {
  transition-delay: 0.1s;
}

.reveal.delay-200 {
  transition-delay: 0.2s;
}

/* ── Mobile Menu ── */
.mobile-link {
  position: relative;
}

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

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

/* ── Product Card Hover ── */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

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

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

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

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

/* ── Selection ── */
::selection {
  background: #fce7ef;
  color: #6d1338;
}

/* ── Focus Styles ── */
:focus-visible {
  outline: 2px solid #e86a9a;
  outline-offset: 2px;
}

/* ── Form Focus Transitions ── */
input:focus, textarea:focus {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ── Button Ripple Effect ── */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ── Image Loading ── */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── 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 {
    opacity: 1;
    transform: none;
  }
}

/* ── Tablet ── */
@media (max-width: 768px) {
  .font-serif.text-4xl,
  .font-serif.text-5xl {
    font-size: 2.25rem;
  }
}

/* ── Small Mobile ── */
@media (max-width: 360px) {
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
