/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Hero Gradient ── */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #2a0509 0%,
    #4a0a13 20%,
    #6B0F1A 40%,
    #851a2b 55%,
    #a82334 70%,
    #c43548 85%,
    #d46b4a 100%
  );
}

/* ── Hero Vignette ── */
.hero-vignette {
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    transparent 0%,
    rgba(42, 5, 9, 0.4) 100%
  );
}

/* ── Scroll Indicator ── */
.hero-scroll-line { opacity: 0.6; transition: opacity 0.3s; }
.hero-scroll-line:hover { opacity: 1; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F5E6E0;
  color: #6B0F1A;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(107, 15, 26, 0.2);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 15, 26, 0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #F5E6E0;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1.5px solid rgba(245, 230, 224, 0.4);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
  background: rgba(245, 230, 224, 0.1);
  border-color: rgba(245, 230, 224, 0.8);
  transform: translateY(-2px);
}

/* ── Reveal Tags ── */
.reveal-tag {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #B5485B;
  margin-bottom: 0.75rem;
}

/* ── Reveal Titles ── */
.reveal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
}

/* ── Input Fields ── */
.input-field {
  background: #fefdfb;
  border: 1px solid #e9919d;
  border-radius: 12px;
  padding: 0.875rem 1.125rem;
  color: #3d2b1f;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}
.input-field::placeholder { color: #c43548; opacity: 0.4; }
.input-field:focus {
  border-color: #6B0F1A;
  box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.1);
  background: #fff;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal, .reveal-card, .reveal-grid, .reveal-form {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.visible, .reveal-card.visible, .reveal-grid.visible, .reveal-form.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-card:nth-child(2) { transition-delay: 0.1s; }
  .reveal-card:nth-child(3) { transition-delay: 0.2s; }
  .reveal-card:nth-child(4) { transition-delay: 0.3s; }
  .reveal-card:nth-child(5) { transition-delay: 0.4s; }
  .reveal-card:nth-child(6) { transition-delay: 0.5s; }
}

/* Default state: always visible */
.reveal, .reveal-card, .reveal-grid, .reveal-form {
  opacity: 1;
  transform: none;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile Menu ── */
.mobile-link { transition: opacity 0.3s; }
.menu-line { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
body.menu-open .menu-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
body.menu-open .menu-line:nth-child(2) { opacity: 0; }
body.menu-open .menu-line:nth-child(3) { width: 6; transform: rotate(-45deg) translate(5px, -5px); }

/* ── Navbar transition ── */
#navbar.scrolled {
  background: rgba(42, 5, 9, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
#navbar.scrolled .nav-link { color: rgba(245, 230, 224, 0.85); }

/* ── Wine Card Hover ── */
.card-wine {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-wine:hover { transform: translateY(-6px); }

/* ── Selection ── */
::selection { background: rgba(181, 72, 91, 0.25); color: #2a0509; }
</style>
