/* ===== Base & Utilities ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f3fa; }
::-webkit-scrollbar-thumb { background: #b3c1e0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8da3d0; }

/* ===== Navigation ===== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a843;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile nav links */
.mobile-nav-link { display: block; }

/* Header scroll state */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13, 28, 51, 0.08);
}

#site-header.scrolled .font-display { color: #0d1c33; }

/* ===== Hero ===== */
#hero { position: relative; }

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .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; }
}

/* ===== Wine Cards ===== */
.wine-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.wine-card:hover { transform: translateY(-4px); }

/* ===== Buttons ===== */
button, a[type="submit"] { cursor: pointer; }

/* ===== Form ===== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ===== Mobile Menu Transition ===== */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ===== Hamburger Animation ===== */
#menu-btn.active #bar1 {
  transform: translateY(4px) rotate(45deg);
}
#menu-btn.active #bar2 {
  opacity: 0;
}
#menu-btn.active #bar3 {
  transform: translateY(-4px) rotate(-45deg);
}
#menu-btn.active #menu-icon-open { display: none; }
#menu-btn.active #menu-icon-close { display: flex; }

/* ===== Responsive ===== */
@media (max-width: 767px) {
  #hero h1 { font-size: 2.75rem; }
  .reveal { opacity: 1; transform: none; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .reveal { opacity: 1; transform: none; }
}
