/* ══════════════════════════════════════
   WinWinari V2 — Framer-Style Scroll
   ══════════════════════════════════════ */

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

:root {
  --black: #080604;
  --deep: #0e0a08;
  --burgundy: #7B1C1C;
  --gold: #C9A84C;
  --gold-dim: rgba(201,168,76,0.6);
  --cream: #F0E8D8;
  --cream-dim: rgba(240,232,216,0.6);
  --grain-opacity: 0.035;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  transition: padding 0.5s ease, background 0.5s ease;
  mix-blend-mode: difference;
}

#nav.scrolled {
  padding: 1rem 4rem;
  background: rgba(8,6,4,0.8);
  backdrop-filter: blur(20px);
  mix-blend-mode: normal;
}

#nav.hidden {
  transform: translateY(-100%);
  transition: transform 0.4s ease, padding 0.5s ease, background 0.5s ease;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 200;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-order {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-order:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* ── PANELS (Full-screen sections) ── */
.panel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,6,4,0.55) 0%, rgba(8,6,4,0.78) 100%);
}

.panel-content {
  position: relative;
  z-index: 2;
}

.panel-content.center {
  text-align: center;
}

/* ── TYPOGRAPHY ── */
.display-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 200;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 1.05;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  margin: 1rem 0;
}

.display-title em {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: rgba(240,232,216,0.75);
  margin-top: 1.5rem;
  max-width: 56ch;
  margin-inline: auto;
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(240,232,216,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { opacity: 0.3; transform: scaleY(0.5) translateY(-20px); }
  50%  { opacity: 1;   transform: scaleY(1)   translateY(0); }
  100% { opacity: 0.3; transform: scaleY(0.5) translateY(10px); }
}

/* ── HORIZONTAL SCROLL SECTION ── */
#horizontal-scroll-wrap {
  position: relative;
  /* height set by JS: track.scrollWidth */
}

#horizontal-track {
  display: flex;
  width: max-content;
  position: sticky;
  top: 0;
  height: 100vh;
  align-items: center;
}

.h-slide {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  flex-shrink: 0;
}

.h-slide-img {
  height: 100vh;
  overflow: hidden;
}

.h-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-slide-text {
  padding: 6rem 6rem 6rem 4rem;
  background: var(--black);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.h-year {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: block;
}

.h-slide-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 200;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 2rem;
}

.h-slide-text p {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(240,232,216,0.82);
  max-width: 42ch;
  font-size: 1rem;
  font-weight: 300;
}

/* Bottle slide */
.h-slide--bottle {
  grid-template-columns: 1fr 1fr;
  background: var(--black);
}

.h-slide-bottle {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 4rem;
}

.h-slide-bottle img {
  height: 80vh;
  width: auto;
  object-fit: contain;
}

/* ── SHOP SECTION ── */
.shop-side {
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.shop-inner {
  max-width: 420px;
}

.shop-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 200;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.05;
  color: var(--cream);
  margin: 1.5rem 0 2rem;
}

.shop-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}

.shop-detail {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
}

.shop-detail::before {
  content: '— ';
  color: var(--gold-dim);
}

.shop-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.shop-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(201,168,76,0.2);
  background: transparent;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--cream-dim);
  font-family: 'Inter', sans-serif;
  font-weight: 200;
}

.shop-option.active,
.shop-option:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--cream);
}

.opt-price {
  color: var(--gold);
  font-size: 1rem;
}

.opt-price small {
  color: var(--cream-dim);
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.shop-cta {
  width: 100%;
  padding: 1.1rem;
  background: var(--gold);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  margin-bottom: 1rem;
}

.shop-cta:hover {
  background: var(--cream);
}

.shop-email {
  display: block;
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.75rem;
  text-decoration: none;
}

.shop-email:hover {
  color: var(--gold);
}

/* ── FOOTER ── */
footer#footer {
  background: var(--black);
  padding: 3rem 4rem;
  border-top: 1px solid rgba(201,168,76,0.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 200;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--cream-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 200;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  color: rgba(240,232,216,0.3);
  font-size: 0.7rem;
  font-family: 'Inter', sans-serif;
  font-weight: 200;
}

/* ── GRAIN OVERLAY ── */
#grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.25s, height 0.25s, opacity 0.25s, background 0.25s;
  will-change: transform;
}

#cursor.hover {
  width: 36px;
  height: 36px;
  transform: translate(-14px, -14px) !important;
  opacity: 0.25;
  mix-blend-mode: difference;
}

/* ══════════════════════════════════════
   MOBILE (max-width: 768px)
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  #nav {
    padding: 1.5rem 1.5rem;
  }

  .display-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .h-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh 50vh;
  }

  .h-slide-img {
    height: 50vh;
  }

  .h-slide-text {
    padding: 2rem;
    height: 50vh;
    overflow: hidden;
  }

  .h-slide-text h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .h-slide-text p {
    display: none;
  }

  #panel-shop .panel-content {
    grid-template-columns: 1fr !important;
  }

  #panel-shop .panel-content > div:first-child {
    display: none;
  }

  .shop-side {
    height: 100vh;
    padding: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* ── STICKY PURCHASE CTA ── */
#sticky-buy {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 1rem 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s;
  pointer-events: none;
  border-radius: 0;
}
#sticky-buy.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#sticky-buy:hover { background: var(--cream); }
@media (max-width: 768px) {
  #sticky-buy {
    bottom: 0; right: 0; left: 0;
    border-radius: 0;
    padding: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .display-title { font-size: clamp(2.2rem, 9vw, 3.5rem); line-height: 1.1; }
  .subtitle { font-size: 0.9rem; line-height: 1.7; }
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.25em; }
  .h-slide-text p { display: block !important; font-size: 0.85rem; line-height: 1.6; }
  .h-slide-text h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .h-slide-text { padding: 1.5rem 2rem; }
}
