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

:root {
  --navy:         #1d2340;
  --navy-mid:     #252a4a;
  --navy-light:   #2f3660;
  --red:          #DA291C;
  --text:         #2a2a2a;
  --text-mid:     #555555;
  --text-light:   #888888;
  --white:        #ffffff;
  --off-white:    #f7f6f3;
  --border:       #e2ddd5;
  --black:        #111111;
  --font-serif:   'ClashGrotesk-Variable', 'Clash Grotesk', sans-serif;
  --font-sans:    'ClashGrotesk-Variable', 'Clash Grotesk', sans-serif;
  --font-manrope: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; }

/* ============================================
   AGE GATE
============================================ */
#age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 2rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#age-gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.ag-inner    { text-align: center; max-width: 440px; }
.ag-logo     { width: 90px; margin: 0 auto 2rem; }
.ag-rule     { width: 50px; height: 1px; background: var(--red); margin: 1.5rem auto; }
.ag-label    { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); margin-bottom: 0.8rem; }
.ag-title    { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 400; color: var(--navy); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.ag-sub      { font-size: 0.75rem; color: var(--text-mid); letter-spacing: 0.06em; margin-bottom: 2.5rem; line-height: 1.8; }
.ag-btns     { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.ag-legal    { margin-top: 2.5rem; font-size: 0.58rem; letter-spacing: 0.1em; color: var(--text-light); line-height: 1.9; }

.btn-yes {
  font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 0.9rem 2.5rem;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 9999px; cursor: pointer; transition: background 0.3s;
}
.btn-yes:hover { background: var(--navy-light); }

.btn-no {
  font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 0.9rem 2.5rem;
  background: transparent; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 9999px; cursor: pointer; transition: all 0.3s;
}
.btn-no:hover { background: var(--navy); color: var(--white); }

/* ============================================
   NAVIGATION
============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 2.5rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Brand name — invisible until scrolled */
.nav-brand {
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
nav.scrolled .nav-brand { opacity: 1; }

.nav-brand-main {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 0.9;
  display: block;
}
.nav-brand-sub {
  font-family: var(--font-manrope);
  font-size: 1rem;
  font-weight: 300;
  color: #222;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  margin-top: 0.12rem;
  display: block;
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  z-index: 20;
}

.hero-img {
  position: absolute;
  inset: 0;
  background: url('../img/hero.png') center 35% / cover no-repeat;
  animation: zoomIn 10s ease-out both;
}
@keyframes zoomIn {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,12,28,0.5);
}

/* Brand name — top of hero, same level as nav */
.hero-brand {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  padding-top: 1.2rem;
  animation: fadeUp 1.2s ease 0.3s both;
  white-space: nowrap;
}

.hero-brand-main {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 0.9;
}

.hero-brand-sub {
  font-family: var(--font-manrope);
  font-size: clamp(1.05rem, 2.2vw, 2.1rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  margin-top: 0.1rem;
}

/* Tagline — upper-center of hero, bigger */
.hero-tagline {
  position: absolute;
  top: 37%;
  left: 50%;
  text-align: center;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.93);
  letter-spacing: 0.04em;
  line-height: 1.45;
  white-space: nowrap;
  animation: fadeUpTagline 1.4s ease 0.5s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeUpTagline {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ============================================
   BOTTLE — overlaps hero, no background
============================================ */
.bottle-section {
  position: relative;
  background: transparent;
  text-align: center;
  padding: 0;
}

.bottle-section img {
  max-height: 125vh;
  width: auto;
  max-width: 600px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 11;
}

/* ============================================
   SCENE WRAPPER — alpine bg behind bottle + origin
============================================ */
.scene-wrapper {
  position: relative;
  /* no z-index: lets children set their own z-index in the page context */
  margin-top: -48vh;
  background: url('../img/origin-bg.png') center top / cover no-repeat;
}

.scene-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0)   0%,
    rgba(255, 255, 255, 0.55) 28%,
    rgba(255, 255, 255, 0.72) 55%
  );
  z-index: 0;
}

.scene-wrapper > * {
  position: relative;
  z-index: 2;
}

/* Bottle must sit above hero (z-index:20) — higher specificity wins over scene-wrapper > * */
.scene-wrapper > .bottle-section {
  z-index: 25;
}

/* ============================================
   ORIGIN — description + made in switzerland
============================================ */
.origin-section {
  background: transparent;
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 7rem;
  text-align: center;
}

.origin-desc {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  max-width: 800px;
  margin: 0 auto 4.5rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

/* Matches .gallery-title exactly */
.origin-made-text {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.origin-made-text em {
  font-style: normal;
  color: var(--red);
}

.origin-made-sub {
  font-size: clamp(0.68rem, 1.1vw, 0.88rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 1.4rem;
}

/* ============================================
   PARALLAX
============================================ */
.parallax { position: relative; height: 65vh; min-height: 440px; overflow: hidden; }
.parallax-bg {
  position: absolute; inset: -10%;
  background: url('../img/parallax-bg.png') center 40% / cover no-repeat;
  background-attachment: fixed;
}
.parallax-overlay { position: absolute; inset: 0; background: rgba(15,18,40,0.62); }
.parallax-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 2rem;
}
.parallax-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 300; font-style: italic;
  color: var(--white); max-width: 760px;
  line-height: 1.4; letter-spacing: 0.02em;
}

/* ============================================
   GALLERY
============================================ */
.gallery-section { background: var(--white); padding: 6rem 2rem; }
.gallery-section .container { max-width: 1200px; }
.gallery-header { text-align: center; margin-bottom: 3.5rem; }
.gallery-eyebrow {
  font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem; display: block;
}
.gallery-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300; color: var(--navy);
  line-height: 1.1; letter-spacing: 0.01em; margin-bottom: 1rem;
}
.gallery-title em { font-style: italic; color: var(--red); }
.gallery-rule { width: 40px; height: 1px; background: var(--red); margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-item { position: relative; overflow: hidden; background: var(--off-white); aspect-ratio: 4 / 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,18,40,0.5) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ============================================
   COCKTAILS
============================================ */
.cocktails-section { background: var(--white); padding: 6rem 2rem; }
.cocktails-section .container { max-width: 1120px; }
.cocktails-header { text-align: center; margin-bottom: 4rem; }

.cocktails-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}

.cocktail-card { display: flex; flex-direction: column; }
.cocktail-card:first-child { border-right: 1px solid var(--border); }

/* Name row */
.cocktail-card-name {
  padding: 1.6rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Card body */
.cocktail-card-body {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--off-white);
  overflow: hidden;
}

/* Front — image */
.cocktail-front {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.55s ease;
}
.cocktail-front img { width: 100%; height: 100%; object-fit: cover; }

/* Back — recipe */
.cocktail-back {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  padding: 2.8rem 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--off-white);
  overflow-y: auto;
}

.cocktail-card:hover .cocktail-front { opacity: 0; }
.cocktail-card:hover .cocktail-back  { opacity: 1; }

/* Section label */
.ci-section-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

/* Ingredient rows */
.ci-list { margin-bottom: 1.8rem; }

.ci-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.ci-amount {
  font-family: var(--font-manrope);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  min-width: 2.5rem;
}

.ci-name {
  font-family: var(--font-manrope);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Preparation */
.ci-prep-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  cursor: default;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
}

.ci-plus { display: none; }

.ci-prep-body { padding-top: 1.2rem; }

.ci-prep-body p {
  font-family: var(--font-manrope);
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Mobile */
@media (max-width: 700px) {
  .cocktails-board { grid-template-columns: 1fr; }
  .cocktail-card:first-child { border-right: none; border-bottom: 1px solid var(--border); }

  .cocktail-card-body { position: static; aspect-ratio: unset; overflow: visible; background: transparent; }

  .cocktail-front {
    position: static;
    opacity: 1 !important;
    aspect-ratio: 3 / 4;
    background: var(--off-white);
  }
  .cocktail-front img { object-fit: contain; padding: 2rem; }

  .cocktail-back {
    position: static;
    opacity: 1 !important;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .ci-section-label { padding: 1.2rem 1.5rem; border-top: 1px solid var(--border); }
  .ci-list { margin-bottom: 0; }
  .ci-row { padding: 0.7rem 1.5rem; }

  .ci-prep-toggle {
    padding: 1.1rem 1.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    justify-content: center;
  }
  .ci-plus { display: inline; }

  .ci-prep-body { padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
  .ci-prep.open .ci-prep-body { max-height: 400px; }
  .ci-prep.open .ci-prep-body p { padding: 1.2rem 1.5rem; text-align: left; }
  .ci-prep.open .ci-plus::after { content: '−'; }
  .ci-prep.open .ci-plus { font-size: 0; }
  .ci-prep.open .ci-plus::after { font-size: 0.6rem; letter-spacing: 0; }
}

/* ============================================
   PROMISE
============================================ */
.promise-section { text-align: center; padding: 8rem 2rem; background: var(--off-white); }
.promise-section .container { max-width: 700px; }
.eyebrow { font-size: 0.55rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; display: block; }
.section-rule { width: 40px; height: 1px; background: var(--red); margin-bottom: 2rem; }
.promise-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  font-weight: 300; color: var(--navy);
  line-height: 1.3; letter-spacing: 0.01em; margin: 2rem 0;
}
.promise-quote em { font-style: italic; color: var(--red); }
.promise-sub { font-size: 0.75rem; color: var(--text-mid); letter-spacing: 0.12em; line-height: 2; }

/* ============================================
   FOOTER
============================================ */
footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 4rem 3rem 2.5rem; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; gap: 2rem;
}
.footer-logo img { height: 56px; }
.footer-nav { list-style: none; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); transition: color 0.3s;
}
.footer-nav a:hover { color: var(--red); }
.footer-tagline { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--red); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; flex-wrap: wrap; gap: 1rem;
}
.footer-legal { font-size: 0.58rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); line-height: 1.9; }

/* ============================================
   SCROLL REVEAL
============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.up { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.22s; }
.d3 { transition-delay: 0.38s; }
.d4 { transition-delay: 0.52s; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .footer-top { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .hero-tagline { white-space: normal; width: 90%; }
  .hero-brand { white-space: normal; }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 4px; }
  .gallery-item { aspect-ratio: 3 / 4; }
  .bottle-section img { max-height: 80vh; max-width: 320px; }
  .hero-tagline { font-size: 1.9rem; }
  .hero-brand-main { font-size: 2rem; }
}
