/* ==========================================================================
   Espresso Martini Landing Page Stylesheet
   Design system tokens, responsive layout, modal overlays, and animations.
   ========================================================================== */

/* ============================================
   DESIGN TOKENS
============================================ */
:root {
  --espresso:   #2B1812;
  --chocolate:  #3F2A23;
  --mocha:      #6D5345;
  --caramel:    #B38A69;
  --cream:      #EADFCF;
  --ivory:      #F7F2E8;
  --taupe:      #C9B8A5;
  --black:      #111111;

  /* Price-only caramel. Brand --caramel (#B38A69) measures 4.31:1 on the
     --chocolate card body, just under WCAG AA. This lifts it to ~4.8:1.
     Scoped to prices on purpose - the wider palette is unchanged. */
  --caramel-price: #BC9273;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; }

/* #nav is position:fixed, so an anchor jump would otherwise land with the
   section's eyebrow label tucked underneath it. Nav is ~74px tall on desktop
   and ~66px on mobile; this clears it with margin to spare. */
section[id] { scroll-margin-top: 128px; }
@media (max-width: 768px) {
  section[id] { scroll-margin-top: 112px; }
}
/* #top is the page top - it must not inherit an offset. */
body#top { scroll-margin-top: 0; }
body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
}
.hamburger:focus-visible,
.menu-modal-close:focus-visible {
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   LOADER
============================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: clamp(24px, 4vh, 48px) 24px;
  isolation: isolate;
  overflow: hidden;
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(179,138,105,0.16), transparent 34%),
    linear-gradient(180deg, rgba(17,17,17,0.98), rgba(17,17,17,1));
  opacity: 0.9;
}

.loader-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(179,138,105,0.12);
  animation: loaderOrbit 12s linear infinite;
  pointer-events: none;
}

.loader-orbit-1 {
  width: min(60vw, 420px);
  height: min(60vw, 420px);
}

.loader-orbit-2 {
  width: min(78vw, 560px);
  height: min(78vw, 560px);
  animation-direction: reverse;
  animation-duration: 16s;
}

@keyframes loaderOrbit {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.03); }
  to { transform: rotate(360deg) scale(1); }
}

.loader-logo {
  display: block;
  width: clamp(170px, 18vw, 280px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(12px);
  filter: brightness(0) invert(1);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  position: relative;
  z-index: 1;
}
.loader-logo.visible { opacity: 1; transform: translateY(0); }

.loader-copy,
.loader-progress {
  position: relative;
  z-index: 1;
}

.loader-copy {
  display: grid;
  gap: 10px;
  text-align: center;
}

.loader-kicker {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(234,223,207,0.28);
}

.loader-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(179,138,105,0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.loader-label.visible { opacity: 1; transform: translateY(0); }

.loader-dots span {
  display: inline-block;
  animation: loaderDotPulse 1.4s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loaderDotPulse {
  0%, 80%, 100% { opacity: 0.15; }
  40% { opacity: 1; }
}

.loader-bar-wrap {
  width: clamp(220px, 34vw, 320px);
  height: 3px;
  background: rgba(179,138,105,0.16);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(179,138,105,0.06);
}
.loader-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(179,138,105,0.5), var(--caramel), rgba(234,223,207,0.92));
  box-shadow: 0 0 18px rgba(179,138,105,0.38);
  transition: width 0.24s ease-out;
}

.loader-progress {
  display: grid;
  gap: 14px;
}

.loader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.loader-status {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,184,165,0.55);
}

.loader-percent {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(234,223,207,0.4);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.loader-percent.visible { opacity: 1; }

@media (max-width: 540px) {
  .loader-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   NAVIGATION
============================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) calc(env(safe-area-inset-right, 0px) + 48px) 22px calc(env(safe-area-inset-left, 0px) + 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease-smooth), padding 0.4s var(--ease-smooth), box-shadow 0.4s;
}
#nav.scrolled {
  background: var(--ivory);
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  padding-bottom: 14px;
  box-shadow: 0 2px 20px rgba(43,24,18,0.08);
}
#nav.scrolled .nav-link { color: var(--espresso); }
#nav.scrolled .nav-cta { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

.nav-logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s;
}
#nav.scrolled .nav-logo { filter: none; }

/* Mobile: slightly larger logo for recognisability without inflating the nav bar.
   Desktop is 64px; 68px is a modest, safe increase that does not push nav height. */
@media (max-width: 768px) {
  .nav-logo {
    height: 68px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,242,232,0.85);
  transition: color 0.3s;
}
.nav-link:hover { color: var(--caramel); }

.nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--caramel);
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--caramel);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--caramel); color: var(--black); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
#nav.scrolled .hamburger span { background: var(--espresso); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  /* visibility (not just opacity) so the closed menu's links leave the tab
     order and the accessibility tree. Delayed so the fade-out still plays. */
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth), visibility 0s linear 0.4s;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) calc(env(safe-area-inset-right, 0px) + 24px) calc(env(safe-area-inset-bottom, 0px) + 24px) calc(env(safe-area-inset-left, 0px) + 24px);
}
#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.4s var(--ease-smooth), visibility 0s linear 0s;
}
.mobile-nav-link {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--caramel); }

@media (max-width: 768px) {
  #nav {
    padding: calc(env(safe-area-inset-top, 0px) + 18px) calc(env(safe-area-inset-right, 0px) + 20px) 18px calc(env(safe-area-inset-left, 0px) + 20px);
  }
  #nav.scrolled { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); padding-bottom: 12px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO - CANVAS FRAME ANIMATION
============================================ */
#hero {
  position: relative;
  width: 100%;
  height: 400vh;
  /* Tall scroll area - allows scroll while canvas stays pinned.
     JS (gsap.matchMedia) overrides this per device bucket; this is the
     no-JS / pre-init fallback, hidden behind the loader either way. */
}

body.motion-reduced #hero { height: 100vh; height: 100dvh; }

#hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--black);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Two stacked layers:
   1. a left-side scrim, because the hero copy is left-anchored and the frame
      sequence is a bright ivory room - ivory-on-ivory measured 1.22:1 without it.
      It fades out well before the centre so the bean/cup is never dimmed.
   2. the original bottom gradient, unchanged.
   Mobile portrait overrides this back to bottom-only (it uses dark copy). */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(17,17,17,0.68) 0%,
      rgba(17,17,17,0.45) 30%,
      rgba(17,17,17,0.0) 58%
    ),
    linear-gradient(
      to bottom,
      rgba(17,17,17,0.15) 0%,
      rgba(17,17,17,0.0) 35%,
      rgba(17,17,17,0.0) 55%,
      rgba(17,17,17,0.6) 100%
    );
  pointer-events: none;
}

.hero-panel {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(60px, 10vh, 120px));
  left: clamp(24px, 6vw, 80px);
  right: clamp(24px, 6vw, 80px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}

/* Mobile portrait: the portrait sequence keeps its negative space at the TOP
   of the frame (cup sits lower-center), so copy lives there instead of the
   bottom, where it would sit over the cup/pour action. */
@media (max-width: 767px) and (orientation: portrait) {
  /* This bucket already reads well: dark espresso copy on the light portrait
     frame. Drop the left scrim so we don't darken the frame for no reason. */
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(17,17,17,0.15) 0%,
      rgba(17,17,17,0.0) 35%,
      rgba(17,17,17,0.0) 55%,
      rgba(17,17,17,0.6) 100%
    );
  }
  #nav:not(.scrolled) .nav-logo { filter: none; }
  #nav:not(.scrolled) .hamburger span { background: var(--espresso); }
  .hero-panel {
    top: calc(env(safe-area-inset-top, 0px) + clamp(96px, 18vh, 160px));
    bottom: auto;
    left: 20px;
    right: 20px;
    /* Narrow width constraint keeps headline away from centre ribbons */
    max-width: min(100%, 340px);
  }
  .hero-panel .hero-headline {
    color: rgba(43,24,18,0.78);
    text-shadow: 0 1px 20px rgba(247,242,232,0.55);
  }
  .hero-panel .hero-subtext {
    color: rgba(43,24,18,0.68);
    font-weight: 400;
  }
  .hero-panel .hero-btn {
    color: var(--espresso);
    border-color: rgba(43,24,18,0.42);
    background: rgba(247,242,232,0.18);
  }
  .hero-panel .hero-headline { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-panel .hero-subtext { max-width: 300px; }
  .scroll-indicator { bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
}

@media (max-width: 767px) and (orientation: portrait) and (max-height: 640px) {
  .hero-panel {
    top: calc(env(safe-area-inset-top, 0px) + 76px);
  }
  .hero-panel .hero-headline {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
    margin-bottom: 12px;
  }
  .hero-panel .hero-subtext {
    margin-bottom: 18px;
    line-height: 1.55;
  }
  .hero-panel .hero-btn {
    padding: 12px 26px;
  }
}
.hero-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.hero-panel:not(.active) a,
.hero-panel:not(.active) button {
  pointer-events: none;
}

.hero-panel.active a,
.hero-panel.active button {
  pointer-events: auto;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 14px;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0.04em;
  color: var(--ivory);
  margin-bottom: 20px;
}
.hero-subtext {
  font-family: var(--sans);
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  color: rgba(247,242,232,0.65);
  max-width: 380px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--caramel);
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel);
  pointer-events: all;
  transition: background 0.3s, color 0.3s;
}
.hero-btn:hover { background: var(--caramel); color: var(--black); }

.mobile-order-btn {
  margin-top: 8px;
  pointer-events: all;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  right: clamp(24px, 6vw, 80px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,242,232,0.4);
  transition: opacity 0.5s;
}
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

.scroll-line {
  width: 36px;
  height: 1px;
  background: rgba(179,138,105,0.4);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--caramel);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

#hero-loading {
  position: absolute;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 10;
  transition: opacity 0.6s;
}
#hero-loading.done { opacity: 0; pointer-events: none; }
#hero-loading p {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(179,138,105,0.55);
  text-transform: uppercase;
}
.hero-load-bar { width: 120px; height: 1px; background: rgba(179,138,105,0.18); overflow: hidden; }
.hero-load-fill { height: 100%; width: 0%; background: var(--caramel); transition: width 0.15s; }

/* ============================================
   BRAND INTRO
============================================ */
/* Vertical padding trimmed ~20% (160 -> 128 desktop, 80 -> 64 mobile). The
   section read as over-tall for three lines of copy; still generous, not cramped. */
#brand {
  background: var(--ivory);
  padding: clamp(64px, 9.5vw, 128px) clamp(24px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}

.brand-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: 24px;
}

.text-caramel-muted { color: rgba(179,138,105,0.65); }
.text-cream { color: var(--cream); }
.text-mocha { color: var(--mocha); }

.delay-1 { transition-delay: 0.1s; }
.delay-150 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.brand-heading {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--espresso);
  /* Pulled in from 36px so the paragraph reads as part of the heading block. */
  margin-bottom: 26px;
  letter-spacing: 0.02em;
}
.brand-heading em { font-style: italic; color: var(--mocha); }

.brand-text {
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--mocha);
  /* Widened from 540px: at 540 the copy broke to 3 tight lines with a short
     orphan. 680px lands 2-3 balanced lines on desktop. */
  max-width: 680px;
  margin: 0 auto;
}

/* CSS decorative beans */
/* Nudged up from 0.08/0.12: on the ivory background the beans were effectively
   invisible. Sizes and positions are unchanged - they stay decorative, not loud. */
.bean {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(179,138,105,0.14);
  pointer-events: none;
}
.bean::after {
  content: '';
  position: absolute;
  top: 30%; left: 20%; right: 20%; bottom: 30%;
  background: rgba(179,138,105,0.19);
  border-radius: 50%;
}
.bean-1 { width: 130px; height: 86px; top: 8%; left: 4%; transform: rotate(-28deg); }
.bean-2 { width: 90px; height: 60px; top: 55%; right: 5%; transform: rotate(22deg); }
.bean-3 { width: 70px; height: 46px; bottom: 12%; left: 10%; transform: rotate(55deg); opacity: 0.6; }

@media (max-width: 540px) {
  .bean {
    background: rgba(179,138,105,0.08);
  }
  .bean::after {
    background: rgba(179,138,105,0.12);
  }
}

.brand-arc {
  position: absolute;
  width: 520px; height: 260px;
  border-radius: 0 0 260px 260px;
  border: 1px solid rgba(179,138,105,0.12);
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ============================================
   SIGNATURE DRINKS
============================================ */
#drinks {
  background: var(--espresso);
  padding: clamp(80px, 10vw, 140px) clamp(24px, 6vw, 80px);
  overflow: hidden;
}

/* Shares the grid's 1200px container so the heading's left edge stays flush
   with the first card instead of drifting out to the section padding. */
.section-header {
  /* Raised from a flat 64px: the cards sat too close under a 4.5rem heading. */
  margin-bottom: clamp(64px, 6vw, 96px);
  max-width: 1200px;
  margin-inline: auto;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1.05;
}

/* auto-fit (not auto-fill) collapses surplus tracks, so 4 cards never leave
   empty columns on a wide screen. The max-width keeps the row from stretching
   into a 1760px band at 1920 and centres it under the section heading. */
.drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin-inline: auto;
}

/* Tablet: force a clean 2x2. Left to auto-fit, 1024px would fit 3 tracks and
   strand the 4th card alone on a second row. */
@media (min-width: 768px) and (max-width: 1024px) {
  .drinks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: one card per row so names/descriptions/prices stay comfortably readable.
   Keep the original 3/4 aspect-ratio — all product images are portrait/tall.
   Use object-position: top so the product label and branding anchor to the top
   half of the crop window instead of the default centre. */
@media (max-width: 430px) {
  .drinks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .drink-card {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .card-img {
    aspect-ratio: 3/4; /* preserve original portrait ratio */
  }
  .drink-photo {
    object-position: center top; /* anchors label/branding into the visible crop zone */
  }
}

/* Flex column so every card in a row fills the full stretched grid height and
   the body can distribute its own space (see .card-desc / .card-price). */
.drink-card {
  background: var(--chocolate);
  border: 1px solid rgba(179,138,105,0.1);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out), border-color 0.4s;
}
.drink-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 64px rgba(17,17,17,0.55);
  border-color: rgba(179,138,105,0.3);
}
.drink-card:hover .card-img-inner { transform: scale(1.06); }
.drink-card:hover .card-accent { transform: scaleX(1); }

/* flex:none keeps the 3:4 image box identical across cards now that the card
   is a flex column - without it the image would stretch on taller cards. */
.card-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  flex: none;
}
.card-img-inner {
  width: 100%; height: 100%;
  transition: transform 0.7s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drink-photo {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.02);
}

.card-body {
  padding: 28px 24px 32px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-accent {
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.card-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 10px;
}
/* flex:1 lets the description absorb the card's spare height, so prices settle
   on one baseline across a row even when descriptions run to different lengths. */
.card-desc {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(201,184,165,0.65);
  line-height: 1.75;
  margin-bottom: 18px;
  flex: 1;
}

/* The hairline ties the price to the card content instead of leaving it adrift
   in the padding. Colour is the AA-checked --caramel-price (~4.8:1) - unchanged. */
.card-price {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--caramel-price);
  letter-spacing: 0.06em;
  padding-top: 16px;
  border-top: 1px solid rgba(179,138,105,0.18);
}

/* ============================================
   RITUAL
============================================ */
#ritual {
  background: var(--black);
  padding: clamp(80px, 12vw, 160px) clamp(24px, 6vw, 80px);
  overflow: hidden;
}

.ritual-inner { max-width: 1200px; margin: 0 auto; }
.ritual-header { margin-bottom: 80px; }

.ritual-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(179,138,105,0.18);
}

.ritual-step {
  padding: 60px 48px 60px 0;
  border-right: 1px solid rgba(179,138,105,0.18);
  position: relative;
  overflow: hidden;
}
.ritual-step:last-child { border-right: none; padding-right: 0; padding-left: 48px; }
.ritual-step:nth-child(2) { padding-left: 48px; }

.step-num {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 300;
  /* Was 0.08, which read as a rendering artefact on touch devices - they never
     get the :hover lift, so 01/02/03 were effectively invisible on every phone. */
  color: rgba(179,138,105,0.16);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  transition: color 0.6s;
}
.ritual-step:hover .step-num { color: rgba(179,138,105,0.3); }

.step-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 10px;
}
.step-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 16px;
}
.step-text {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(201, 184, 165, 0.72);
}

@media (max-width: 768px) {
  .step-text {
    color: rgba(201, 184, 165, 0.82);
  }
}

.step-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--caramel);
  transition: width 0.9s var(--ease-out);
}
.ritual-step.in-view .step-line { width: 55%; }

@media (max-width: 900px) {
  .ritual-steps { grid-template-columns: 1fr; }
  .ritual-step { border-right: none; border-bottom: 1px solid rgba(179,138,105,0.18); padding: 48px 0; }
  .ritual-step:last-child { border-bottom: none; padding: 48px 0; }
  .ritual-step:nth-child(2) { padding-left: 0; }
}

/* ============================================
   VISIT US
============================================ */
#visit {
  background: var(--ivory);
  padding: clamp(84px, 10vw, 140px) clamp(20px, 5vw, 70px);
  position: relative;
  overflow: hidden;
}

.visit-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(179,138,105,0.16);
  top: 50%; right: -220px;
  transform: translateY(-50%);
  pointer-events: none;
}
.visit-c1 { width: 620px; height: 620px; }
.visit-c2 { width: 420px; height: 420px; right: -100px; border-color: rgba(179,138,105,0.1); }

.visit-inner {
  max-width: 1480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.visit-header {
  max-width: 780px;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.visit-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 300;
  color: var(--espresso);
  line-height: 1.08;
  letter-spacing: 0.02em;
}
.visit-heading em { font-style: italic; color: var(--caramel); }

.action-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
}

.action-card {
  min-height: clamp(310px, 28vw, 410px);
  padding: clamp(30px, 3.5vw, 48px) clamp(24px, 3.5vw, 44px) clamp(28px, 3vw, 38px);
  border: 1px solid rgba(179,138,105,0.22);
  border-radius: 999px 999px 26px 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.82), rgba(247,242,232,0.38) 38%, rgba(234,223,207,0.2) 100%),
    linear-gradient(180deg, #fff8ea, #f7eedf);
  box-shadow: 0 20px 56px rgba(43,24,18,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.35s, box-shadow 0.4s;
}

/* Address inside Location card */
.action-address {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  color: var(--espresso);
  margin-bottom: 10px;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 50%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(179,138,105,0.3), transparent);
}

.action-card:hover {
  transform: translateY(-5px);
  border-color: rgba(179,138,105,0.4);
  box-shadow: 0 28px 68px rgba(43,24,18,0.12);
}

.action-card:hover .action-icon {
  box-shadow: 0 14px 30px rgba(43,24,18,0.22);
}

.action-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  background: var(--espresso);
  color: var(--cream);
  box-shadow: 0 14px 28px rgba(43,24,18,0.16);
  transition: box-shadow 0.35s var(--ease-out);
}

.action-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: var(--cream);
  flex-shrink: 0;
}

.action-kicker {
  font-family: var(--sans);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(109,83,69,0.72);
  margin-bottom: 12px;
}

.action-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.14;
  color: var(--espresso);
  margin-bottom: 14px;
}

.action-text {
  max-width: 300px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(109,83,69,0.7);
  flex: 1;
}

.action-handle {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--caramel);
  margin-top: 6px;
}

.action-btn {
  margin-top: 24px;
  min-width: 180px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.action-btn:hover {
  background: var(--caramel);
  color: var(--black);
  transform: translateY(-2px);
}

.action-btn:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
}

/* Reduced motion: disable card and button hover lifts */
@media (prefers-reduced-motion: reduce) {
  .action-card:hover { transform: none; }
  .action-btn:hover  { transform: none; }
}

/* --- Visit section responsive --- */

/* Tablet: 2-column grid for medium viewports */
@media (min-width: 641px) and (max-width: 980px) {
  .action-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .action-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    justify-self: center;
  }
}

/* Small screens: single column stack */
@media (max-width: 640px) {
  .action-card-grid { grid-template-columns: 1fr; }
  .action-card {
    min-height: 0; /* content-driven height on mobile */
    padding-top: clamp(28px, 8vw, 42px);
    padding-bottom: clamp(24px, 6vw, 34px);
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  #visit { padding-inline: 18px; }
  .action-card {
    border-radius: 180px 180px 20px 20px; /* softer arch on narrow phones */
    padding-inline: 20px;
  }
  .action-btn { width: 100%; min-width: 0; }
}

/* ============================================
   PHONE CONTACT STRIP
============================================ */
.visit-phone-strip {
  margin-top: clamp(28px, 4vw, 52px);
}

.visit-phone-strip__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 26px) clamp(20px, 3vw, 36px);
  border-radius: 16px;
  background: rgba(255,248,234,0.72);
  border: 1px solid rgba(179,138,105,0.22);
  box-shadow: 0 12px 36px rgba(43,24,18,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
}

.visit-phone-strip__copy {
  flex: 1;
  min-width: 0;
}

.visit-phone-strip__label {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(109,83,69,0.6);
  margin-bottom: 4px;
}

.visit-phone-strip__number {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--espresso);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.visit-phone-strip__sub {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 300;
  color: rgba(109,83,69,0.65);
  line-height: 1.5;
}

.visit-phone-strip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 13px 28px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, transform 0.25s var(--ease-out);
  white-space: nowrap;
}

.visit-phone-strip__btn:hover {
  background: var(--caramel);
  color: var(--black);
  transform: translateY(-2px);
}

.visit-phone-strip__btn:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .visit-phone-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .visit-phone-strip__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visit-phone-strip__btn:hover { transform: none; }
}

/* ============================================
   MENU MODAL
============================================ */
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 8888;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  /* Same reasoning as #mobile-menu: the closed dialog must not hold focusable
     controls (close button, PDF iframe) in the tab order. */
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}

.menu-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0s;
}

.menu-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.menu-modal-content {
  position: relative;
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  background: var(--ivory);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.5s var(--ease-out);
}

@keyframes slideIn {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.menu-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(43, 24, 18, 0.1);
}

.menu-modal-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--espresso);
  margin: 0;
}

.menu-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--espresso);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.menu-modal-close:hover {
  transform: scale(1.1);
}

.menu-modal-body {
  flex: 1;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
}

.menu-iframe {
  width: 100%;
  flex: 1;
  min-height: 0;
  border: none;
  display: block;
}

/* Fallback UI: Clear, accessible, and touch-friendly direct link to PDF. */
.menu-modal-fallback {
  flex: none;
  padding: 16px 20px calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(43, 24, 18, 0.12);
}

.menu-modal-fallback-text {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--mocha);
  margin: 0;
}

.menu-fallback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.25s var(--ease-smooth), transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(43, 24, 18, 0.15);
}

.menu-fallback-btn:hover {
  background: var(--mocha);
  color: var(--ivory);
}

.menu-fallback-btn:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .menu-modal-content {
    width: 100%;
    height: calc(100vh - 40px);
    border-radius: 4px;
  }

  .menu-modal-header {
    padding: 16px 20px;
  }

  .menu-modal-title {
    font-size: 1.25rem;
  }

  .menu-modal {
    padding: 20px 10px;
  }
}

/* ============================================
   FOOTER
============================================ */
/* A thin caramel hairline eases the transition from the light Visit section
   into the dark footer. Keeps the treatment restrained — no heavy gradient. */
#footer {
  background: var(--black);
  padding: 48px clamp(24px, 6vw, 80px) 32px;
  border-top: 1px solid rgba(179,138,105,0.22);
  margin-top: 8px; /* slight lift to make the hairline read clearly */
}

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

.footer-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 90px;
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  flex-shrink: 0;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-link {
  font-family: var(--sans);
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,242,232,0.3);
  transition: color 0.3s;
  white-space: nowrap;
}
.footer-link:hover { color: var(--caramel); }

.footer-copy {
  font-family: var(--sans);
  font-size: 0.66rem;
  color: rgba(247,242,232,0.18);
  letter-spacing: 0.06em;
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(179,138,105,0.06);
}

/* Footer responsive - mobile stacking */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer-logo {
    max-width: 70px;
  }
  .footer-links {
    justify-content: center;
    gap: 20px;
  }
  .footer-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ============================================
   SCROLL REVEAL UTILS
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.stagger-children.in-view > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.00s; }
.stagger-children.in-view > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.stagger-children.in-view > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.stagger-children.in-view > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }
