/* ============================================================
   VERDE — Natural Wine Bar
   Fraunces + Outfit · Playful organic palette
   Mobbin: MANA, Shopify Editions vinyl, Blue Apron wine
   Signature: cellar strip depth parallax + mood color worlds
   ============================================================ */

:root {
  --cream: #faf6ef;
  --sage: #2d5a3d;
  --sage-light: #4a7c59;
  --terra: #c4653a;
  --sun: #e8a84a;
  --ink: #1a1f1c;
  --ink-soft: #4a524c;
  --border: rgba(26, 31, 28, 0.1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --container: 1140px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --mood-accent: #e8a84a;
  --mood-glow: rgba(232, 168, 74, 0.25);
  --mood-bg: #faf6ef;
}

html[data-mood="orange"] {
  --mood-accent: #e8a84a;
  --mood-glow: rgba(232, 168, 74, 0.3);
  --mood-bg: #faf6ef;
}

html[data-mood="petnat"] {
  --mood-accent: #7eb8da;
  --mood-glow: rgba(126, 184, 218, 0.35);
  --mood-bg: #f0f7fb;
}

html[data-mood="red"] {
  --mood-accent: #c44d4d;
  --mood-glow: rgba(196, 77, 77, 0.25);
  --mood-bg: #faf3f0;
}

html[data-mood="blanc"] {
  --mood-accent: #6aab73;
  --mood-glow: rgba(106, 171, 115, 0.3);
  --mood-bg: #f4faf5;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--mood-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.8s var(--ease);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--mood-glow); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.pour-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ── Vinyl dock ── */
.vinyl-dock {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 300;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  max-width: calc(100vw - 48px);
}

.vinyl-dock__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.vinyl-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #333 0%, #111 40%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s linear;
}

.vinyl-disc.is-spinning {
  animation: spin 2.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.vinyl-disc__label {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mood-accent);
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.vinyl-dock__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.vinyl-dock__now {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 246, 239, 0.5);
}

.vinyl-dock__track {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.vinyl-dock__icon {
  font-size: 0.75rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.vinyl-dock__vol {
  width: 72px;
  height: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
}

.vinyl-dock__vol::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mood-accent);
}

.vinyl-dock.is-playing .vinyl-dock__icon::before { content: "❚❚"; }
.vinyl-dock:not(.is-playing) .vinyl-dock__icon::before { content: "▶"; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.6s, border-color 0.35s;
}

html[data-mood] .nav { background: color-mix(in srgb, var(--mood-bg) 88%, transparent); }

.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sage);
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--sage);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.3);
}

.btn-primary:hover { background: var(--sage-light); }

.btn-sm { padding: 10px 18px; font-size: 0.8125rem; }
.btn-full { width: 100%; }

.kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mood-accent);
  margin-bottom: 12px;
}

.hero-title, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero-title { font-size: clamp(2.6rem, 5.5vw, 4rem); margin-bottom: 18px; }
.hero-title em { font-style: italic; color: var(--mood-accent); transition: color 0.6s; }

.h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 14px; }

.body { color: var(--ink-soft); font-size: 1.0625rem; max-width: 52ch; }
.body.center { margin-inline: auto; text-align: center; }
.body.wide { max-width: 60ch; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-lead { margin-bottom: 24px; max-width: 44ch; }

.mood-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.25s var(--ease);
}

.mood-pill:hover { transform: translateY(-2px); }

.mood-pill.is-active {
  border-color: var(--mood-accent);
  background: var(--mood-glow);
  box-shadow: 0 4px 16px var(--mood-glow);
}

.hero-visual__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--mood-glow), rgba(255, 255, 255, 0.6));
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px var(--mood-glow);
  transition: box-shadow 0.8s, background 0.8s;
}

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

.hero-placeholder, .bar-ph, .menu-ph, .bottle-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: #e8e4dc;
}

.hero-visual__frame:has(.hero-img:not([hidden])) .hero-placeholder { display: none; }

.hero-hint {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: center;
}

.img-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sage);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 999px;
}

.img-title { font-weight: 600; font-size: 0.9375rem; }

.img-copy {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.img-copy:hover { border-color: var(--mood-accent); }
.img-copy.copied { background: var(--mood-glow); border-color: var(--mood-accent); }

.img-prompt {
  width: 100%;
  max-width: 320px;
  padding: 10px;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--ink-soft);
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

/* ── Cellar strip ── */
.cellar-section {
  position: relative;
  z-index: 1;
  background: var(--sage);
  color: var(--cream);
}

.cellar-intro {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 32px;
  text-align: center;
}

.cellar-intro .kicker { color: var(--sun); }
.cellar-intro .body { color: rgba(250, 246, 239, 0.72); margin-inline: auto; }

.cellar-pin { height: 140vh; }

.cellar-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.cellar-track {
  display: flex;
  gap: 48px;
  padding: 0 max(24px, calc((100vw - 900px) / 2));
  will-change: transform;
  cursor: grab;
}

.cellar-track.is-dragging { cursor: grabbing; }

.bottle-card {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.45;
  transform: scale(0.82);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: transform;
}

.bottle-card.is-focus {
  opacity: 1;
  transform: scale(1);
}

.bottle-figure {
  position: relative;
  width: 120px;
  height: 280px;
  margin-bottom: 20px;
}

.bottle-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.bottle-ph {
  position: relative;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.bottle-figure:has(.bottle-img:not([hidden])) .bottle-ph { display: none; }

.bottle-region {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
}

.bottle-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 6px 0 8px;
}

.bottle-info p {
  font-size: 0.875rem;
  color: rgba(250, 246, 239, 0.7);
  line-height: 1.5;
  margin-bottom: 10px;
}

.bottle-price {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--sun);
}

.cellar-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  margin: 24px 24px 0;
  border-radius: 2px;
  overflow: hidden;
}

.cellar-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--sun);
  transition: width 0.1s linear;
}

/* ── Menu ── */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-head { text-align: center; margin-bottom: 40px; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.menu-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--mood-glow);
}

.menu-card__img {
  position: relative;
  aspect-ratio: 4/3;
  background: #e8e4dc;
}

.menu-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card__img:has(img:not([hidden])) .menu-ph { display: none; }

.menu-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.menu-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 16px 16px 6px;
}

.menu-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding: 0 16px 12px;
  line-height: 1.5;
}

.menu-card span {
  display: block;
  padding: 0 16px 16px;
  font-weight: 700;
  color: var(--sage);
}

/* ── Bar ── */
.bar-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.bar-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #e8e4dc;
}

.bar-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bar-visual:has(img:not([hidden])) .bar-ph { display: none; }

.bar-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.bar-facts {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-facts li {
  font-size: 0.9375rem;
  font-weight: 500;
  padding-left: 20px;
  position: relative;
}

.bar-facts li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--mood-accent);
}

/* ── Visit ── */
.visit {
  background: var(--sage);
  color: var(--cream);
  max-width: none;
}

.visit-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
}

.visit .kicker { color: var(--sun); }

address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
  margin: 20px 0 28px;
  color: rgba(250, 246, 239, 0.85);
}

.visit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.visit-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.visit-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.visit-form input:focus {
  outline: none;
  border-color: var(--sun);
}

.visit-form .btn-primary {
  background: var(--sun);
  color: var(--ink);
  margin-top: 8px;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.footer-ref { margin-top: 8px; font-size: 0.75rem; }
.footer-ref a { color: var(--sage); text-decoration: underline; }

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--sage);
  color: var(--cream);
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 400;
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .hero, .bar-split { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-inner > .btn { display: none; }
  .nav-toggle { display: flex; }
  .vinyl-dock__vol { display: none; }
  .vinyl-dock__track { max-width: 120px; }
  .cellar-pin { height: auto; }
  .cellar-sticky { position: relative; height: auto; padding: 24px 0; }
  .cellar-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
  .bottle-card { scroll-snap-align: center; }
}
