/* ── Custom Properties ── */
:root {
  --plum-900: #1A0A12;
  --plum-800: #2D1520;
  --plum-700: #3D1A26;
  --plum-600: #5C2A3A;
  --amber-400: #E8B84B;
  --amber-500: #D4A03C;
  --bg-dark: #0D0A0E;
  --text-light: #F5F0EB;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ── */
.font-playfair { font-family: 'Playfair Display', serif; }
.font-raleway { font-family: 'Raleway', sans-serif; }

/* ── Navigation ── */
#nav {
  background: transparent;
  backdrop-filter: none;
}
#nav.scrolled {
  background: rgba(13, 10, 14, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 184, 75, 0.1);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber-400);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--amber-400) !important; }

/* ── Mobile Menu ── */
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: opacity 0.3s ease; }
.mobile-link:hover { opacity: 0.7; }

/* ── Hero ── */
.hero-bg { position: relative; }
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 10, 18, 0.85) 0%,
    rgba(61, 26, 38, 0.6) 50%,
    rgba(13, 10, 14, 0.9) 100%
  );
  z-index: 1;
}
.hero-bg img { position: relative; z-index: 0; }
.hero-overlay { z-index: 2; }

/* ── Particles ── */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--amber-400);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: float-particle 8s infinite ease-in-out;
}
@keyframes float-particle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  10% { opacity: 0.6; }
  50% { opacity: 0.3; transform: translateY(-120px) scale(1); }
  90% { opacity: 0; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation-name: fadeUp;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-iteration-count: 1;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-reveal] {
  opacity: 0.97;
  transform: translateY(24px);
}

/* ── Cards ── */
.wine-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #151018;
  border: 1px solid rgba(245, 240, 235, 0.05);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.wine-card:hover {
  border-color: rgba(232, 184, 75, 0.4);
  box-shadow: 0 20px 60px rgba(26, 10, 18, 0.5), 0 0 40px rgba(232, 184, 75, 0.05);
}
.wine-card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.wine-card:hover img {
  transform: scale(1.05);
}

/* ── Buttons ── */
.btn-primary {
  background: var(--amber-500);
  color: var(--bg-dark);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 184, 75, 0.2);
}
.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(245, 240, 235, 0.3);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  border-color: var(--amber-400);
  color: var(--amber-400);
  transform: translateY(-2px);
}

/* ── Form ── */
input, select, textarea {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(232, 184, 75, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.08);
}

/* ── Section Dividers ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.3), transparent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .font-playfair.text-5xl { font-size: 2.5rem; }
  .font-playfair.text-4xl { font-size: 2rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .font-playfair.text-5xl { font-size: 3.5rem; }
}

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