/* ── Custom Properties ────────────────────────────────────────────────────── */
:root {
  --bg:        #0d0a0b;
  --bg-alt:    #110e0f;
  --surface:   #1a1410;
  --surface-2: #221c17;
  --gold:      #c9a84c;
  --gold-dim:  rgba(201, 168, 76, 0.15);
  --gold-glow: rgba(201, 168, 76, 0.08);
  --cream:     #f5f0e8;
  --muted:     #8a7968;
  --wine:      #7b1d1d;
  --wine-dim:  rgba(123, 29, 29, 0.3);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius:    10px;
  --max-w:     var(--content-wide);
  --section-v: clamp(5rem, 10vw, 8rem);

  --cols: 12;
  --gutter: 1.5rem;
  --bl: 8px;
  --lh: 24px;
  --space-sm: 24px;
  --space-md: 48px;
  --space-lg: 72px;
  --content-narrow: 720px;
  --content-mid: 880px;
  --content-wide: 1100px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, iframe { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }

p  { color: rgba(245, 240, 232, 0.78); line-height: 1.8; }

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ── Reveal Animations ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-child.visible { opacity: 1; transform: translateY(0); }

.no-js .reveal,
.no-js .reveal-child {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Shared Section Styles ────────────────────────────────────────────────── */
section {
  padding-block: var(--section-v);
}
.alt-bg { background-color: var(--bg-alt); }

.section-rule {
  width: 3rem;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-top: -0.5rem;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.label-caps {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.badge {
  display: inline-block;
  border: 1px solid var(--gold-dim);
  border-radius: 100px;
  padding: 0.3em 0.9em;
  margin-bottom: 1.25rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #0d0a0b;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9em 2.2em;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #dfc06a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.25);
}
.btn-primary:active { transform: translateY(0); }

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9em 2.2em;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.15);
}
.btn-ghost:active { transform: translateY(0); }

/* ── Reservation Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 8, 8, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #18120e;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 14px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90dvh;
  overflow-y: auto;
  transform-origin: var(--modal-origin-x, 50%) var(--modal-origin-y, 50%);
}

.modal-box.animating {
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.08); }
  to   { opacity: 1; transform: scale(1);    }
}

@media (prefers-reduced-motion: reduce) {
  .modal-box.animating { animation: none; }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: rgba(245, 240, 232, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--cream); }

.modal-box h2 { margin-bottom: 1.5rem; }

.reservation-form { display: flex; flex-direction: column; gap: 1rem; }
.res-field { display: flex; flex-direction: column; gap: 0.35rem; }
.res-field label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
}
.res-field input,
.res-field select {
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75em 1em;
  transition: border-color 0.2s;
  width: 100%;
  color-scheme: dark;
}
.res-field input:focus,
.res-field select:focus {
  outline: none;
  border-color: var(--gold);
}
.res-submit { margin-top: 0.5rem; width: 100%; justify-content: center; }
.res-status {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
  min-height: 1.4em;
  color: rgba(245, 240, 232, 0.65);
}
.res-status.success { color: #7ecf8a; }
.res-status.error   { color: #e07070; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: opacity 0.1s linear;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.04) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(13,10,11,0.3) 0%, rgba(13,10,11,0.04) 50%, rgba(13,10,11,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-corner-cta {
  position: absolute;
  top: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--gold);
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(13, 10, 11, 0.5);
  transition: background 0.2s, border-color 0.2s;
}
.hero-corner-cta svg { fill: var(--gold); flex-shrink: 0; }
.hero-corner-cta:hover {
  background: rgba(13, 10, 11, 0.85);
  border-color: rgba(201, 168, 76, 0.4);
}
.hero-corner-left { left: max(1rem, calc(50% - 22.5rem)); }
.hero-corner-right { right: max(1rem, calc(50% - 22.5rem)); }

/* ── Announcement CTA (top-center of hero) ───────────────────────────────── */
.hero-corner-center {
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 2.75rem;
  padding-inline: 1rem;
  gap: 0.45rem;
  border-radius: 9999px;
  border-color: rgba(200, 200, 220, 0.35);
  color: #c8c8dc;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}
.hero-corner-center svg { fill: #c8c8dc; flex-shrink: 0; }
.hero-corner-center-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-corner-center:hover {
  background: rgba(13, 10, 11, 0.85);
  border-color: rgba(200, 200, 220, 0.55);
}
.hero-corner-center::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-150%) skewX(-15deg);
  animation: ann-cta-shine 5s linear infinite;
  pointer-events: none;
}
@keyframes ann-cta-shine {
  0%, 54%   { transform: translateX(-150%) skewX(-15deg); opacity: 0; }
  57%       { transform: translateX(-150%) skewX(-15deg); opacity: 1; }
  68%       { transform: translateX(350%)  skewX(-15deg); opacity: 1; }
  72%, 100% { transform: translateX(350%)  skewX(-15deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-corner-center::after { animation: none; }
}

/* ── Announcement modal overrides ────────────────────────────────────────── */
.announcement-box {
  border-color: rgba(200, 200, 220, 0.2);
  padding: 0;
  max-width: 520px;
  overflow: hidden;
}
.announcement-box .modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  z-index: 2;
  background: rgba(13, 10, 11, 0.6);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(245, 240, 232, 0.75);
  transition: color 0.15s, background 0.15s;
}
.announcement-box .modal-close:hover {
  color: var(--cream);
  background: rgba(13, 10, 11, 0.9);
}
.ann-modal-img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}
.ann-modal-caption {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.65;
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  margin: 0;
}

/* ── Announcement nav link ────────────────────────────────────────────────── */
.float-nav-link--announcement {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
  width: 100%;
  font-size: inherit;
  color: #c8c8dc;
  font-weight: 500;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 1.25rem;
  max-width: 860px;
  padding-top: 3rem;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  mask-image: url('assets/FF-The-Wine-Vault-02.png');
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('assets/FF-The-Wine-Vault-02.png');
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
}

.hero-logo {
  width: min(640px, 72vw);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.2));
}

.hero-logo-wrap::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: translateX(-150%) skewX(-15deg);
  animation: hero-logo-shine 20s linear infinite;
  pointer-events: none;
}

@keyframes hero-logo-shine {
  0%, 54%   { transform: translateX(-150%) skewX(-15deg); opacity: 0; }
  57%       { transform: translateX(-150%) skewX(-15deg); opacity: 1; }
  68%       { transform: translateX(350%)  skewX(-15deg); opacity: 1; }
  72%, 100% { transform: translateX(350%)  skewX(-15deg); opacity: 0; }
}

@media (max-width: 479px) {
  .hero-logo { width: min(400px, 82vw); }
}

@media (max-width: 767px) {
  #hero::after {
    background:
      radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.04) 0%, transparent 70%),
      linear-gradient(to bottom, transparent 0%, rgba(13,10,11,0.04) 50%, rgba(13,10,11,0.7) 100%);
  }
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(245, 240, 232, 0.7);
  font-weight: 400;
  margin-top: -0.25rem;
}

.hero-hours-line {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: scrollPulse 2s ease-in-out infinite;
}
.chevron {
  width: 11px;
  height: 11px;
  border-right: 1.5px solid rgba(201, 168, 76, 0.55);
  border-bottom: 1.5px solid rgba(201, 168, 76, 0.55);
  transform: rotate(45deg);
}
.chevron:nth-child(2) { opacity: 0.4; }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(5px); }
}

/* ── About ────────────────────────────────────────────────────────────────── */
#about .container {
  max-width: var(--content-narrow);
}
#about p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
#about blockquote {
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.75;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

#about h2 { margin-top: 0.5rem; }

.about-photo-solo {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(201, 168, 76, 0.12);
}

.about-photo-solo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s ease;
}

.about-photo-solo img:hover { transform: scale(1.03); }

@media (max-width: 767px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

/* ── What We Pour — Label Cards ───────────────────────────────────────────── */
#menu h2 { margin-bottom: 0.5rem; }

.pour-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  align-items: start;
  margin-bottom: 2rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pour-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .pour-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    margin-inline: calc(-1 * clamp(1.25rem, 5vw, 3rem));
    /* symmetric — all cards are fully visible at max scroll; do NOT replace with calc(100vw - card-width), which creates empty trailing scroll space */
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .pour-track::-webkit-scrollbar { display: none; }
}

.pour-card {
  flex: 0 0 110px;
  width: 110px;
  min-height: 180px;
  background: var(--surface);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  scroll-snap-align: start;
  outline: none;
}

@media (min-width: 768px) {
  .pour-card {
    flex: unset;
    width: auto;
    min-height: 190px;
  }
}

.pour-card:hover,
.pour-card:focus-visible {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.08);
  transform: translateY(-2px);
}

.pour-card:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}

.pour-card.expanded {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.12);
}

.pour-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.pour-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
}
.pour-toggle::before,
.pour-toggle::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.2s;
}
.pour-toggle::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}
.pour-toggle::after {
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}
.pour-card.expanded .pour-toggle::after {
  transform: translateX(-50%) scaleY(0);
}

.pour-brands {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              margin-top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease;
  opacity: 0;
}
.pour-card.expanded .pour-brands {
  max-height: 200px;
  margin-top: 0.75rem;
  opacity: 1;
}
.pour-brands li {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.6;
  padding: 0.15rem 0;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}
.pour-brands li:first-child {
  border-top: none;
  padding-top: 0;
}

.pour-label-color {
  width: 100%;
  height: 80px;
  border-radius: 4px;
  background: linear-gradient(170deg, var(--g1) 0%, var(--g2) 28%, var(--g3) 65%, var(--g4) 100%);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

@keyframes pour-glint {
  0%   { transform: translateX(-160%) skewX(-15deg); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(260%) skewX(-15deg); opacity: 0; }
}

.pour-label-color::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  animation: pour-glint 6s ease-in-out infinite;
  animation-delay: var(--glint-delay, 0s);
  pointer-events: none;
}

@keyframes pour-bubbles {
  from { background-position: 0 0; }
  to   { background-position: 0 -40px; }
}

.pour-label-color[data-theme="sparkling"]::before,
.pour-label-color[data-theme="craft-beer"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.5px, transparent 1.5px);
  background-size: 12px 14px;
  animation: pour-bubbles 2.5s linear infinite;
  pointer-events: none;
}

.pour-label-color[data-theme="exclusives"]::after {
  background: linear-gradient(90deg, transparent 0%, rgba(201, 168, 76, 0.3) 50%, transparent 100%);
}

@keyframes pour-seasonal-shift {
  0%   { filter: hue-rotate(0deg); }
  25%  { filter: hue-rotate(20deg); }
  50%  { filter: hue-rotate(-15deg); }
  75%  { filter: hue-rotate(10deg); }
  100% { filter: hue-rotate(0deg); }
}

.pour-label-color[data-theme="seasonal"] {
  animation: pour-seasonal-shift 10s ease-in-out infinite;
}

.pour-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.pour-category {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 0;
}

/* ── Wine Club Membership ─────────────────────────────────────────────────── */
#membership h2 { margin-bottom: 0.5rem; }

/* ─ Tier card track — mirrors .pour-track ─ */
.membership-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  align-items: start;
  margin-bottom: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .membership-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .membership-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    margin-inline: calc(-1 * clamp(1.25rem, 5vw, 3rem));
    /* symmetric — mirrors .pour-track; all 4 cards are fully visible at max scroll on any phone ≥ 320px wide, so no oversized end-padding is needed */
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .membership-track::-webkit-scrollbar { display: none; }
}

/* ─ Compact card — mirrors .pour-card sizing ─ */
.membership-card {
  flex: 0 0 140px;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  background: linear-gradient(
    170deg,
    color-mix(in srgb, var(--tier-color) 22%, var(--surface)) 0%,
    color-mix(in srgb, var(--tier-color)  8%, var(--surface)) 60%,
    var(--surface) 100%
  );
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 1rem;
  gap: 0.4rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  scroll-snap-align: start;
  outline: none;
  user-select: none;
}

@media (min-width: 768px) {
  .membership-card {
    flex: unset;
    width: auto;
  }
}

.membership-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.membership-card:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}

.membership-card:focus-visible {
  outline: 2px solid var(--tier-color);
  outline-offset: 2px;
}

.membership-card.selected {
  border-color: var(--tier-color);
  box-shadow: 0 0 0 1px var(--tier-color), 0 6px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

/* ─ Metallic swatch with icon — mirrors .pour-label-color ─ */
.membership-label-color {
  width: 100%;
  height: 64px;
  background: var(--tier-color);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--tier-color) 65%, var(--cream)) 0%,
    color-mix(in srgb, var(--tier-color) 45%, var(--cream)) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  flex-shrink: 0;
}

.membership-icon-svg {
  width: 1.85rem;
  height: 1.85rem;
}

/* ─ Card text ─ */
.membership-tier-label {
  margin-bottom: 0;
}

.membership-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
  margin: 0;
}

.membership-price span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.membership-teaser {
  font-size: 0.73rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.45;
  margin: 0;
  padding: 0 0.6rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.membership-card-hint {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--tier-color);
  opacity: 0.65;
  margin-top: 0.25rem;
  transition: opacity 0.2s;
}

.membership-card:hover .membership-card-hint {
  opacity: 1;
}

.membership-card.selected .membership-card-hint {
  opacity: 0.4;
}

/* ─ Detail drawer ─ */
.membership-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              margin 0.3s ease;
  margin-top: 0;
  margin-bottom: 0;
}

.membership-drawer.open {
  max-height: 520px;
  margin-top: 0.6rem;
  margin-bottom: var(--space-md);
}

.membership-drawer-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-left: 4px solid var(--drawer-tier-color, var(--gold));
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
}

@media (max-width: 640px) {
  .membership-drawer.open { max-height: 700px; }
  .membership-drawer-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.1rem;
  }
}

.membership-drawer-content { flex: 1; }

.membership-drawer-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.membership-drawer-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0;
}

.membership-drawer-price {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.membership-drawer-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
}

@media (max-width: 640px) {
  .membership-drawer-perks { grid-template-columns: 1fr; }
}

.membership-drawer-perks li {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.72);
  line-height: 1.55;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.membership-drawer-perks li::before {
  content: "—";
  color: var(--drawer-tier-color, var(--gold));
  margin-right: 0.45rem;
  opacity: 0.7;
}

.membership-drawer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 130px;
}

.membership-drawer-note {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

/* ─ Buttons ─ */
.btn-membership,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65em 1.25em;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 100px;
  background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-align: center;
  white-space: nowrap;
}

.btn-membership:hover,
.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--cream);
}

/* ─ Annual note + CTA strip ─ */
.membership-annual {
  text-align: center;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.membership-annual p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
}

.membership-cta-strip {
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius);
  padding: var(--space-md);
  max-width: var(--content-mid);
  margin-inline: auto;
}

.membership-cta-strip > p {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.membership-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Reviews Marquee ──────────────────────────────────────────────────────── */
#reviews {
  background: var(--bg-alt);
}

#reviews .container {
  max-width: var(--content-mid);
}

#reviews h2 { margin-bottom: 0.5rem; }

/* Outer wrapper — clips overflow and fades the left/right edges */
.marquee-outer {
  margin-top: 2rem;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* Scrollable fallback for reduced-motion */
.marquee-outer.reduced-motion {
  overflow-x: auto;
  mask-image: none;
  -webkit-mask-image: none;
  scrollbar-width: none;
}
.marquee-outer.reduced-motion::-webkit-scrollbar { display: none; }

/* The moving strip — JS sets --marquee-duration */
.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee var(--marquee-duration, 32s) linear infinite;
}

.marquee-outer:hover .marquee-track,
.marquee-outer:focus-within .marquee-track,
.marquee-outer.paused .marquee-track {
  animation-play-state: paused;
}

.marquee-outer.reduced-motion .marquee-track {
  animation: none;
  width: auto;
  flex-wrap: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual review card */
.review-card {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: 1.25rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 280px;
  flex-shrink: 0;
  height: 200px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 1px 6px rgba(201, 168, 76, 0.06);
  transition: box-shadow 0.3s;
}

/* Decorative opening quote — sits behind the text */
.review-card::before {
  content: '\201C';
  position: absolute;
  top: -0.15rem;
  left: 0.7rem;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.marquee-outer:hover .review-card,
.review-card:focus-within {
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.22),
    0 6px 30px rgba(0, 0, 0, 0.45),
    0 2px 10px rgba(201, 168, 76, 0.1);
}

.stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.stars svg {
  width: 13px;
  height: 13px;
  fill: var(--gold);
}

.review-text {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviewer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  flex-shrink: 0;
}
.reviewer-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.reviewer-source {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 639px) {
  .review-card { width: 240px; }
}

@media (max-width: 479px) {
  .review-card {
    width: 220px;
    padding: 1.1rem 1rem 0.9rem;
  }
}

/* ── Events Calendar ──────────────────────────────────────────────────────── */
.events-section {
  background: linear-gradient(to bottom, transparent 0%, var(--wine-dim) 80%), var(--bg-alt);
}
#membership {
  background: linear-gradient(to bottom, var(--wine-dim) 0%, transparent 70%), var(--bg-alt);
}
.events-section .container { max-width: var(--content-mid); }
.events-section .section-rule { margin-inline: 0; margin-bottom: 1.5rem; }
.events-section h2 { text-align: left; margin-bottom: 0.5rem; }
.events-intro {
  text-align: left;
  margin-bottom: var(--space-md);
}

.events-signup-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.events-signup-strip p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(245, 240, 232, 0.7);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .events-signup-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.reviews-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  max-width: 760px;
  margin-inline: auto;
}

.reviews-cta-strip p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(245, 240, 232, 0.7);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .reviews-cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.calendar {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cal-month-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--gold);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.cal-nav:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.75);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  min-height: 40px;
}

.cal-day.empty {
  pointer-events: none;
  visibility: hidden;
}

.cal-day.today:not(.active) {
  border-color: rgba(201, 168, 76, 0.3);
}

.cal-day.has-event {
  cursor: pointer;
}
.cal-day.has-event:hover {
  background: var(--gold-glow);
  border-color: rgba(201, 168, 76, 0.25);
}

.cal-day .event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  bottom: 5px;
}

.cal-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transform-origin: var(--cal-origin-x, 50%) var(--cal-origin-y, 50%);
}
.cal-overlay[hidden] {
  display: none;
}
.cal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  animation: calOverlayIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes calOverlayIn {
  from {
    opacity: 0;
    transform: scale(0.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cal-overlay-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.15);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cal-overlay-close:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-dim);
}

.cal-overlay-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0.5rem 0.5rem;
  overflow-y: auto;
}

.cal-overlay-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  text-align: center;
}

.cal-overlay h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.cal-overlay .cal-event-time {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.cal-overlay p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.65;
  margin: 0;
}

.cal-event-divider {
  border: none;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  margin: 1rem 0;
}

/* ── Location ─────────────────────────────────────────────────────────────── */
#location {
  background: linear-gradient(-45deg, var(--wine-dim) 0%, transparent 55%);
}

#location .container {
  max-width: var(--content-mid);
}

#location h2 { margin-bottom: 0.5rem; }

.location-sub {
  margin-bottom: var(--space-md);
  text-align: left;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 100%;
  margin-inline: auto;
}
@media (min-width: 600px) {
  .location-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 3rem;
  }
  .location-hours-col {
    border-left: 1px solid rgba(201, 168, 76, 0.12);
    padding-left: 3rem;
  }
}

.location-contact {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.location-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.location-hours-label {
  margin-bottom: 0.75rem;
}

.location-hours {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hours-line {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item svg {
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.7;
}
.contact-item a { transition: color 0.2s; }
.contact-item a:hover { color: var(--gold); }

.social-row {
  display: flex;
  gap: 0.75rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding-block: 1.25rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.7;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: border-color 0.2s, background 0.2s;
}
.social-link svg { fill: var(--muted); transition: fill 0.2s; }
.social-link:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.social-link:hover svg { fill: var(--gold); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── Misc utility ─────────────────────────────────────────────────────────── */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .cal-overlay.visible { animation: none; }
  .pour-brands { transition: none; }
  .pour-label-color::after,
  .pour-label-color::before { animation: none; }
  .pour-label-color[data-theme="seasonal"] { animation: none; }
}

/* ── Floating Nav ────────────────────────────────────────────────────────── */

/* Outer wrapper — centered at top, hidden until hero exits */
.float-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.float-nav.float-nav--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ── Toggle button ── */
.float-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Closed: small circle */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;

  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(13, 10, 11, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;

  /* Width + shape transition for hamburger → logo morph */
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-radius 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.2s,
              background 0.2s;
}

.float-nav-btn:hover {
  border-color: var(--gold);
  background: rgba(13, 10, 11, 0.95);
}

.float-nav-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Open state: expand to pill to reveal logo */
.float-nav--open .float-nav-btn {
  width: 160px;
  border-radius: 20px;
}

/* ── Hamburger icon (idle: cycles with vault wheel) ── */
.fn-hamburger {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 1;
  animation: fn-ham-cycle 5s ease-in-out infinite;
  pointer-events: none;
}

.float-nav--open .fn-hamburger {
  opacity: 0;
  animation: none;
  pointer-events: none;
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: rgba(201, 168, 76, 0.8);
  border-radius: 2px;
}

/* ── Vault Wheel (idle cycle icon) ── */
.fn-wheel-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0;
  animation: fn-wheel-cycle 5s ease-in-out infinite;
  pointer-events: none;
}

.fn-wheel {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Shine streak that sweeps across when the wheel is visible */
.fn-wheel-wrap::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: translateX(-100%) skewX(-15deg);
  animation: fn-wheel-shine 5s linear infinite;
  pointer-events: none;
}

.float-nav--open .fn-wheel-wrap {
  opacity: 0;
  animation: none;
  pointer-events: none;
}

/* ── Logo image (shown when open) ── */
.fn-logo {
  position: absolute;
  height: 22px;
  width: auto;
  display: block;
  opacity: 0;
  /* Delay logo fade-in so it starts after the pill has widened */
  transition: opacity 0.2s ease 0.15s;
}

.float-nav--open .fn-logo {
  opacity: 1;
}

/* ── Idle cycle keyframes ── */
@keyframes fn-ham-cycle {
  0%, 42%  { opacity: 1; }
  55%      { opacity: 0; }
  90%      { opacity: 0; }
  100%     { opacity: 1; }
}

@keyframes fn-wheel-cycle {
  0%, 42%  { opacity: 0; }
  55%      { opacity: 1; }
  90%      { opacity: 1; }
  100%     { opacity: 0; }
}

@keyframes fn-wheel-shine {
  0%, 54%   { transform: translateX(-150%) skewX(-15deg); opacity: 0; }
  57%       { transform: translateX(-150%) skewX(-15deg); opacity: 1; }
  68%       { transform: translateX(350%)  skewX(-15deg); opacity: 1; }
  72%, 100% { transform: translateX(350%)  skewX(-15deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fn-hamburger       { animation: none; opacity: 1; }
  .fn-wheel-wrap      { animation: none; opacity: 0; }
  .fn-wheel-wrap::after { animation: none; }
  .hero-logo-wrap::after { animation: none; }
}

/* ── Section link dropdown ── */
.float-nav-menu {
  list-style: none;
  background: rgba(13, 10, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius);
  padding: 0.45rem 0;
  min-width: 180px;
  white-space: nowrap;

  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.22s ease,
              transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.float-nav--open .float-nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ── Section links ── */
.float-nav-link {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.62);
  transition: color 0.18s, background 0.18s;
}

.float-nav-link:hover {
  color: var(--cream);
  background: rgba(201, 168, 76, 0.07);
}

.float-nav-link.active {
  color: var(--gold);
}

.float-nav-menu li + li {
  border-top: 1px solid rgba(201, 168, 76, 0.07);
}

.float-nav-link--gift { color: rgba(201, 168, 76, 0.75); }
.float-nav-link--gift:hover { color: var(--gold); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .float-nav,
  .float-nav-btn,
  .fn-hamburger,
  .fn-logo,
  .float-nav-menu { transition: none; }
}

/* ── Below-fold paint optimization ────────────────────────────────────────── */
#about, #menu, #reviews, #events, #membership, #location {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ── Float nav: meet 48×48 px tap-target recommendation ───────────────────── */
.float-nav-btn {
  width: 48px;
  height: 48px;
}
.float-nav--open .float-nav-btn {
  width: 168px;
}

/* ── Add to Home Screen banner ────────────────────────────────────────────── */
.a2hs-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(13, 10, 11, 0.97);
  border-top: 1px solid rgba(201, 168, 76, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Inter', sans-serif;
  color: var(--cream);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  /* keep above the float nav */
  padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
}

.a2hs-banner.a2hs-banner--visible {
  transform: translateY(0);
}

.a2hs-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.a2hs-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.a2hs-text strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.a2hs-text span {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.3;
}

.a2hs-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.a2hs-install {
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.a2hs-dismiss {
  background: none;
  border: none;
  color: rgba(245, 240, 232, 0.5);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.a2hs-dismiss:hover,
.a2hs-dismiss:focus-visible {
  color: var(--cream);
}

.a2hs-dismiss:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* iOS variant: single row, no install button */
.a2hs-banner--ios .a2hs-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

.a2hs-share-icon {
  display: inline-block;
  vertical-align: middle;
  fill: var(--gold);
  margin: 0 1px;
}
