/* =====================================================================
   VELA & BORRA — Wine bar & adega de vinhos naturais
   "A taça como portal: cada rótulo é uma descoberta revelada por uma
    luz âmbar que persegue o scroll."
   MODERNO + MOTION · mobile-first · Fraunces (display, italic de ritual)
   + Inter (corpo/UI/preços). Anima só opacity/transform.
   prefers-reduced-motion respeitado (estado final visível).
   ===================================================================== */

/* -------------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------------- */
:root {
  /* Paleta dark avinhada */
  --borra:     #0E0708;  /* fundo base · quase-preto avinhado */
  --sedimento: #1A0D10;  /* superfícies elevadas / cards */
  --bordo:     #5B1726;  /* cor de marca · vinho tinto */
  --tanico:    #7A1F2B;  /* hover / acentos quentes */
  --esgotado:  #E3A8A0;  /* rótulo "esgotada" · rosé legível em fundo escuro (AA) */
  --dourado:   #C9A24B;  /* linhas finas, números, CTA */
  --ambar:     #E8B563;  /* glow de destaque · brilho da taça */
  --creme:     #EDE3D6;  /* texto sobre escuro */
  --cortica:   #9A8C7E;  /* texto secundário / legendas */

  --sedimento-2: #23131A; /* card hover / elevação extra */
  --linha:      rgba(201, 162, 75, 0.22); /* hairline dourada */
  --linha-soft: rgba(237, 227, 214, 0.12); /* hairline creme */

  /* Tipografia */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  /* Escala fluida (MAX sempre >= MIN) */
  --step--1: clamp(0.8rem, 0.76rem + 0.18vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --step-3:  clamp(2rem, 1.4rem + 2.9vw, 3.6rem);
  --step-4:  clamp(2.8rem, 1.7rem + 5.4vw, 5.6rem);
  --step-5:  clamp(3.4rem, 1.9rem + 7.6vw, 7rem);

  /* Espaçamento */
  --gutter:    clamp(1.25rem, 0.8rem + 2.2vw, 3.5rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw: 78rem;
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.7s;

  /* Progresso de scroll (atualizado por JS) */
  --scroll: 0;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--creme);
  background: var(--borra);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 360;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

em { font-style: italic; }

::selection { background: var(--ambar); color: var(--borra); }

:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translate(-50%, -150%);
  background: var(--dourado);
  color: var(--borra);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  z-index: 200;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* -------------------------------------------------------------------
   HELPERS
   ------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dourado);
}
.eyebrow--light { color: var(--ambar); }

.section-title {
  font-size: var(--step-3);
  color: var(--creme);
  max-width: 22ch;
}
.section-title em { color: var(--ambar); }
.section-title--light { color: var(--creme); }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn--gold {
  background: var(--dourado);
  color: var(--borra);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--ambar);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px -14px rgba(232, 181, 99, 0.7);
}
.btn--ghost {
  background: transparent;
  color: var(--creme);
  border-color: var(--linha);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--dourado);
  color: var(--ambar);
  transform: translateY(-3px);
}

/* -------------------------------------------------------------------
   CORTINA DE ENTRADA — abre uma vez (scaleY) revelando o hero
   ------------------------------------------------------------------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--borra);
  transform-origin: top;
  transition: transform 1s var(--ease);
  pointer-events: none;
  /* Fallback à prova de falha: se o JS não rodar, a cortina abre sozinha
     (e nunca prende o conteúdo coberto). O JS, quando roda, controla via classe. */
  animation: curtain-failsafe 1s var(--ease) 2.6s forwards;
}
@keyframes curtain-failsafe {
  to { transform: scaleY(0); visibility: hidden; }
}
.curtain::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56vmin;
  height: 56vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 181, 99, 0.5), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.curtain.is-lit::after { opacity: 1; }
.curtain.is-open { transform: scaleY(0); }

/* -------------------------------------------------------------------
   LUZ ÂMBAR QUE SEGUE O SCROLL
   posição vertical conduzida por --scroll (transform), não reflow
   ------------------------------------------------------------------- */
.amber-light {
  position: fixed;
  left: 50%;
  top: 0;
  width: min(120vw, 1100px);
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, calc(var(--scroll) * 80vh - 20vh));
  background: radial-gradient(ellipse at center,
              rgba(232, 181, 99, 0.16),
              rgba(201, 162, 75, 0.07) 38%,
              transparent 66%);
  opacity: 0.9;
  will-change: transform;
}

/* -------------------------------------------------------------------
   TOPBAR
   ------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  background: linear-gradient(to bottom, rgba(14, 7, 8, 0.92), rgba(14, 7, 8, 0));
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.topbar.is-stuck {
  background: rgba(14, 7, 8, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha-soft);
}

.topbar__sig {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--serif);
}
.topbar__mark {
  font-size: var(--step-1);
  color: var(--dourado);
  letter-spacing: 0.02em;
}
.topbar__name {
  font-size: var(--step-1);
  color: var(--creme);
  font-weight: 360;
}
.topbar__name em { color: var(--ambar); }

.topbar__nav { display: none; }

.topbar__cta {
  display: none;
}

.topbar__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--linha);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 11px;
}
.topbar__burger span {
  display: block;
  height: 1.5px;
  background: var(--creme);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.topbar__burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.topbar__burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: rgba(14, 7, 8, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: var(--gutter);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.drawer.is-open { opacity: 1; }
.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.drawer__nav a {
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--creme);
}
.drawer__nav a:hover { color: var(--ambar); }
.drawer__cta {
  align-self: flex-start;
  margin-top: 1rem;
  background: var(--dourado);
  color: var(--borra);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
}

/* -------------------------------------------------------------------
   SHELL / SECTIONS
   ------------------------------------------------------------------- */
section { position: relative; z-index: 1; }

/* -------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(6rem, 18vh, 9rem) var(--gutter) clamp(3.5rem, 9vh, 5rem);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  will-change: transform;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 7, 8, 0.96) 8%, rgba(14, 7, 8, 0.45) 48%, rgba(14, 7, 8, 0.72) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(232, 181, 99, 0.18), transparent 55%);
}

.hero__inner { max-width: 36rem; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cortica);
  margin-bottom: 1.4rem;
}
.kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 0 12px 2px rgba(232, 181, 99, 0.7);
}

.hero__title {
  font-size: var(--step-5);
  color: var(--creme);
  margin-bottom: 1.6rem;
}
.hero__line { display: block; }
.hero__line--accent em { color: var(--ambar); }

.hero__sub {
  color: var(--creme);
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3.5rem, 9vh, 5rem);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cortica);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--dourado), transparent);
}

/* -------------------------------------------------------------------
   MANIFESTO
   ------------------------------------------------------------------- */
.manifesto {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
  text-align: left;
}
.manifesto .eyebrow { margin-bottom: 2rem; }
.manifesto__body {
  font-family: var(--serif);
  font-weight: 340;
  font-size: var(--step-2);
  line-height: 1.42;
  color: var(--creme);
  max-width: 28ch;
  margin-bottom: 1.6rem;
}
.manifesto__body--soft {
  color: var(--cortica);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 40ch;
}

/* reveal por palavra */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.word.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------
   CARTA POR DOSE
   ------------------------------------------------------------------- */
.carta {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.carta__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.carta__head .eyebrow { margin-bottom: 1.2rem; }
.carta__note {
  color: var(--cortica);
  max-width: 46ch;
  margin-top: 1.2rem;
}

.carta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pour {
  background: var(--sedimento);
  border: 1px solid var(--linha-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.pour > article {
  padding: clamp(1.5rem, 4vw, 2rem);
  height: 100%;
}
.pour:hover,
.pour:focus-within {
  transform: translateY(-6px);
  border-color: var(--linha);
  background: var(--sedimento-2);
  box-shadow: 0 24px 50px -28px rgba(232, 181, 99, 0.4);
}

.pour__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pour__index {
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--dourado);
}
.pour__type {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cortica);
  text-align: right;
}
.pour__name {
  font-size: var(--step-2);
  color: var(--creme);
  margin-bottom: 0.4rem;
}
.pour__name em { color: var(--ambar); }
.pour__meta {
  font-size: var(--step--1);
  color: var(--dourado);
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}
.pour__notes {
  color: var(--cortica);
  font-size: var(--step-0);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}
.pour__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--linha-soft);
}
.price {
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--creme);
  font-weight: 380;
  line-height: 1;
}
.price--bottle { color: var(--cortica); font-size: var(--step-1); }
.price__cur {
  font-family: var(--sans);
  font-size: 0.55em;
  font-weight: 500;
  margin-right: 0.15em;
  vertical-align: 0.35em;
  color: var(--dourado);
}
.price__unit {
  font-family: var(--sans);
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cortica);
  margin-left: 0.35em;
}

.carta__foot {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--cortica);
  text-align: center;
  max-width: 40ch;
  margin-inline: auto;
}

/* -------------------------------------------------------------------
   HARMONIZAÇÕES (díptico)
   ------------------------------------------------------------------- */
.harmon {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.harmon__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.harmon__head .eyebrow { margin-bottom: 1.2rem; }

.harmon__list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 5rem);
}

.pair {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pair__media { min-width: 0; }
.pair__fig {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--linha-soft);
  position: relative;
}
.pair__fig img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.pair:hover .pair__fig img { transform: scale(1.04); }

.pair__body { min-width: 0; }
.pair__pour {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 0.7rem;
}
.pair__pour em { color: var(--ambar); text-transform: none; font-size: 1.15em; letter-spacing: 0; }
.pair__dish {
  font-size: var(--step-2);
  color: var(--creme);
  margin-bottom: 0.9rem;
}
.pair__why {
  color: var(--cortica);
  line-height: 1.65;
  max-width: 44ch;
}

/* -------------------------------------------------------------------
   DEGUSTAÇÕES (agenda)
   ------------------------------------------------------------------- */
.tastings {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.tastings__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.tastings__head .eyebrow { margin-bottom: 1.2rem; }
.tastings__note {
  color: var(--cortica);
  max-width: 50ch;
  margin-top: 1.2rem;
}

.agenda {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--linha-soft);
}
.agenda__row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "date info"
    "date end";
  column-gap: 1.2rem;
  row-gap: 0.6rem;
  align-items: center;
  padding: clamp(1.3rem, 4vw, 1.8rem) 0;
  border-bottom: 1px solid var(--linha-soft);
  transition: background 0.3s var(--ease);
}
.agenda__row:hover { background: rgba(232, 181, 99, 0.04); }
.agenda__date {
  grid-area: date;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--linha);
  border-radius: 12px;
  min-width: 0;
}
.agenda__day {
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--ambar);
  line-height: 1;
}
.agenda__mon {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cortica);
}
.agenda__info { grid-area: info; min-width: 0; }
.agenda__theme {
  font-size: var(--step-1);
  color: var(--creme);
}
.agenda__theme em { color: var(--ambar); }
.agenda__desc {
  font-size: var(--step--1);
  color: var(--cortica);
  margin-top: 0.2rem;
}
.agenda__end {
  grid-area: end;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.agenda__seats {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dourado);
}
.agenda__seats--out { color: var(--esgotado); }
.agenda__cost {
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--creme);
}
.agenda__row--soldout { opacity: 0.72; }

.tastings__cta { margin-top: clamp(2rem, 5vw, 3rem); }

/* -------------------------------------------------------------------
   CLUBE DE ASSINATURA
   ------------------------------------------------------------------- */
.club {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 23, 38, 0.35), transparent 60%),
    var(--sedimento);
  border-block: 1px solid var(--linha-soft);
}
.club__head,
.club__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.club__head {
  padding-top: var(--section-y);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.club__head .eyebrow { margin-bottom: 1.2rem; }
.club__note {
  color: var(--cortica);
  max-width: 52ch;
  margin-top: 1.2rem;
}
.club__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding-bottom: var(--section-y);
}

.tier {
  position: relative;
  background: var(--borra);
  border: 1px solid var(--linha-soft);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.2rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.tier:hover,
.tier:focus-within {
  transform: translateY(-6px);
  border-color: var(--linha);
  box-shadow: 0 24px 50px -28px rgba(232, 181, 99, 0.35);
}
.tier--feature {
  border-color: var(--dourado);
  background: linear-gradient(180deg, rgba(91, 23, 38, 0.3), var(--borra) 55%);
}
.tier__tag {
  position: absolute;
  top: -0.8rem;
  left: clamp(1.6rem, 4vw, 2.2rem);
  background: var(--dourado);
  color: var(--borra);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.tier__name {
  font-family: var(--serif);
  font-size: var(--step-2);
  color: var(--creme);
  margin-bottom: 0.6rem;
}
.tier__price {
  font-family: var(--serif);
  font-size: var(--step-3);
  color: var(--ambar);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.tier__cur {
  font-family: var(--sans);
  font-size: 0.4em;
  font-weight: 500;
  vertical-align: 0.6em;
  margin-right: 0.1em;
  color: var(--dourado);
}
.tier__per {
  font-family: var(--sans);
  font-size: 0.32em;
  font-weight: 400;
  color: var(--cortica);
  letter-spacing: 0.04em;
  margin-left: 0.3em;
}
.tier__line {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 1.4rem;
}
.tier__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  flex: 1;
}
.tier__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--creme);
  font-size: var(--step-0);
  line-height: 1.5;
}
.tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dourado);
}
.tier__cta { width: 100%; }

/* -------------------------------------------------------------------
   A ADEGA / O ESPAÇO (full-bleed)
   ------------------------------------------------------------------- */
.cellar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 92svh;
  padding: var(--section-y) var(--gutter);
}
.cellar__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cellar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cellar__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 7, 8, 0.97) 12%, rgba(14, 7, 8, 0.5) 55%, rgba(14, 7, 8, 0.82) 100%),
    radial-gradient(ellipse at 30% 60%, rgba(232, 181, 99, 0.16), transparent 55%);
}
.cellar__inner { max-width: 40rem; }
.cellar__inner .eyebrow { margin-bottom: 1.2rem; }
.cellar .section-title { margin-bottom: 1.5rem; }
.cellar__body {
  color: var(--creme);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 2rem;
}

.hours {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 26rem;
}
.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--linha-soft);
}
.hours__row dt {
  color: var(--cortica);
  font-size: var(--step-0);
}
.hours__row dd {
  color: var(--ambar);
  font-family: var(--serif);
  font-size: var(--step-0);
}

/* -------------------------------------------------------------------
   VISITE-NOS
   ------------------------------------------------------------------- */
.visit {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}
.visit__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.visit__head .eyebrow { margin-bottom: 1.2rem; }

.visit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}
.visit__info { min-width: 0; }
.visit__facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--linha-soft);
}
.fact__label {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dourado);
}
.fact__value { color: var(--creme); line-height: 1.5; }
.fact__value a { color: var(--ambar); }
.fact__value a:hover { text-decoration: underline; }

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.visit__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--linha-soft);
  min-width: 0;
}
.visit__map img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.visit__mapcap {
  padding: 0.9rem 1.1rem;
  font-size: var(--step--1);
  color: var(--cortica);
  background: var(--sedimento);
}

/* -------------------------------------------------------------------
   RODAPÉ
   ------------------------------------------------------------------- */
.footer {
  background: var(--sedimento);
  border-top: 1px solid var(--linha-soft);
  padding: var(--section-y) var(--gutter) 6.5rem;
  max-width: 100%;
}
.footer__top {
  max-width: var(--maxw);
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.footer__sig {
  font-family: var(--serif);
  font-size: var(--step-4);
  color: var(--creme);
  display: inline-block;
}
.footer__sig em { color: var(--ambar); }
.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--cortica);
  margin-top: 0.6rem;
}

.footer__cols {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--linha-soft);
}
.footer__nav,
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
}
.footer__nav a,
.footer__social a {
  color: var(--cortica);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}
.footer__nav a:hover,
.footer__social a:hover { color: var(--ambar); }

.footer__bottom {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-top: clamp(1.8rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer__responsible {
  font-size: var(--step--1);
  color: var(--cortica);
  letter-spacing: 0.04em;
}
.footer__legal {
  font-size: var(--step--1);
  color: var(--cortica);
  opacity: 0.9;
}

/* -------------------------------------------------------------------
   DOCK (CTA fixo mobile)
   ------------------------------------------------------------------- */
.dock {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dourado);
  color: var(--borra);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem;
  border-radius: 999px;
  box-shadow: 0 14px 40px -16px rgba(232, 181, 99, 0.8);
  transform: translateY(150%);
  transition: transform 0.4s var(--ease);
}
.dock.is-visible { transform: none; }

/* -------------------------------------------------------------------
   REVEAL genérico
   ------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ===================================================================
   BREAKPOINT 640px — carta 2 colunas, harmonização díptico, clube etc.
   =================================================================== */
@media (min-width: 640px) {
  .carta__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pair {
    flex-direction: row;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
  }
  .pair--flip { flex-direction: row-reverse; }
  .pair__media { flex: 0 0 44%; }
  .pair__body { flex: 1; }

  .agenda__row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "date info end";
    column-gap: 1.6rem;
  }
  .agenda__end { justify-content: flex-end; }

  .visit__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ===================================================================
   BREAKPOINT 1024px — desktop completo (layouts próprios)
   =================================================================== */
@media (min-width: 1024px) {
  /* Nav desktop */
  .topbar { padding-block: 1.1rem; }
  .topbar__nav {
    display: flex;
    gap: clamp(1.4rem, 2.4vw, 2.6rem);
    font-size: var(--step--1);
    letter-spacing: 0.04em;
  }
  .topbar__nav a { color: var(--creme); }
  .topbar__nav a:hover { color: var(--ambar); }
  .topbar__cta {
    display: inline-flex;
    background: var(--dourado);
    color: var(--borra);
    font-weight: 600;
    font-size: var(--step--1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  }
  .topbar__cta:hover { background: var(--ambar); transform: translateY(-2px); }
  .topbar__burger { display: none; }
  .dock { display: none; }

  .footer { padding-bottom: var(--section-y); }

  /* HERO split assimétrico: texto à esquerda, taça sangra à direita */
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 var(--gutter);
  }
  .hero__media { left: 42%; }
  .hero__img { object-position: center; }
  .hero__veil {
    background:
      linear-gradient(to right, var(--borra) 18%, rgba(14, 7, 8, 0.55) 45%, rgba(14, 7, 8, 0.15) 75%),
      linear-gradient(to top, rgba(14, 7, 8, 0.7), transparent 40%),
      radial-gradient(ellipse at 60% 45%, rgba(232, 181, 99, 0.22), transparent 55%);
  }
  .hero__inner {
    max-width: 40rem;
    position: relative;
    padding-left: clamp(1.5rem, 4vw, 3rem);
  }
  .hero__inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    bottom: 0.4em;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--dourado), transparent);
  }
  .hero__scroll { display: flex; }

  /* MANIFESTO — duas colunas editoriais */
  .manifesto {
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
  .manifesto .eyebrow {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 6rem;
  }
  .manifesto__body { grid-column: 2; max-width: 34ch; }
  .manifesto__body--soft { grid-column: 2; }

  /* CARTA — grade editorial irregular; taça destaque ocupa coluna inteira */
  .carta__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }
  .pour--feature {
    grid-column: 1 / -1;
    display: grid;
  }
  .pour--feature > article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }
  .pour--feature .pour__head { grid-column: 1 / -1; }
  .pour--feature .pour__name {
    font-size: var(--step-3);
    grid-column: 1;
  }
  .pour--feature .pour__meta { grid-column: 1; }
  .pour--feature .pour__notes {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    margin-bottom: 0;
    font-size: var(--step-0);
  }
  .pour--feature .pour__price { grid-column: 1 / -1; }

  /* HARMONIZAÇÕES — díptico com divisória central */
  .pair__media { flex: 0 0 50%; }
  .pair__fig img { aspect-ratio: 4 / 5; }
  .pair__body { padding-inline: clamp(1rem, 3vw, 2.5rem); }
  .pair--flip .pair__body { border-left: none; }

  /* CLUBE — 3 colunas, do meio elevada */
  .club__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
  .tier--feature { transform: translateY(-1.5rem); }
  .tier--feature:hover { transform: translateY(-2.1rem); }

  /* VISITA — info + mapa lado a lado, mapa maior */
  .visit__grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 5vw, 4rem); }

  /* FOOTER — colunas lado a lado */
  .footer__cols { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ===================================================================
   MOTION OFF — estado final visível, sem parallax/glow animado
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  .word { opacity: 1 !important; transform: none !important; }
  .curtain { display: none; }
  .amber-light { transform: translate(-50%, 30vh); }
  .hero__img { transform: none !important; }
}
