/* ── Base & Typography ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(184, 92, 56, 0.2);
  color: #2d140c;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #D4A878;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B85C38;
}

/* ── Header transitions ── */
#site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#site-header.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ── Nav links ── */
.nav-link {
  position: relative;
}

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

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

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

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

.mobile-link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
}

/* ── Hero animations ── */
.hero-label {
  animation: fadeInUp 0.8s ease both;
}

.hero-label {
  animation-delay: 0.1s;
}

#hero h1 {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.25s;
}

#hero p {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.4s;
}

#hero .flex-wrap {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.55s;
}

#hero .mt-16 {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.7s;
}

#hero .lg\\:col-span-5 {
  animation: fadeInRight 0.9s ease both;
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Wine cards ── */
.wine-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.15);
}

/* ── Testimonial cards ── */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.1);
}

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

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

/* ── Responsive tweaks ── */
@media (max-width: 767px) {
  #hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* ── 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;
}
