/* ==========================================================================
   Fogo e Tradição — New Design Language
   Luxury hospitality, photography-first, black & white with warm gold accents
   Typography: DM Serif Display (headings) + DM Sans (body)
   ========================================================================== */

:root {
  /* Colors — Backgrounds */
  --color-bg: #FAFAF8;
  --color-bg-alt: #f3f1ed;
  --color-bg-warm: #eae6df;
  --color-bg-dark: #0c0a09;
  --color-bg-dark-warm: #1a1714;
  --color-bg-hero: #111;
  --color-bg-footer: #0c0a09;

  /* Colors — Accent */
  --color-gold: #81642f;
  --color-gold-light: #9a7a3e;
  --color-gold-dark: #6b5225;

  /* Colors — Text */
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-text-light: #FAFAF8;
  --color-text-light-muted: rgba(250, 250, 248, 0.6);

  /* Colors — Borders */
  --color-border: #e8e5e0;
  --color-border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale (fluid) — dramatic jumps, 1.33+ ratio */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.19vw, 0.75rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.19vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.31vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 2.25vw, 2.75rem);
  --text-3xl: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);
  --text-hero: clamp(3.5rem, 1.5rem + 10vw, 8rem);
  --text-statement: clamp(2rem, 1rem + 5vw, 3.75rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: clamp(5rem, 3rem + 10vw, 9rem);
  --space-section: clamp(6rem, 4rem + 10vw, 11rem);

  /* Layout */
  --container-max: 1200px;
  --container-padding: clamp(1.25rem, 0.5rem + 3.75vw, 2.5rem);

  /* Easing */
  --ease-snap: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Timing */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-reveal: 500ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}

p {
  text-wrap: pretty;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-gold);
  color: var(--color-text);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

.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;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

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

  .word-mask .word {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: 960px;
}

.section {
  padding-block: var(--space-section);
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Section dividers — short ember marks between sections */
.section-divider,
.section-divider--wide {
  border: none;
  margin: 0;
  position: relative;
  z-index: 1;
}

.section-divider {
  height: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
  background: transparent;
}

.section-divider::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-gold);
  margin-top: -0.5px;
}

.section-divider--wide {
  height: 1px;
  background: var(--color-border);
}

/* ==========================================================================
   Section Numbers
   ========================================================================== */

.section-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 5vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.04);
  margin-bottom: calc(-1 * clamp(1.5rem, 1rem + 2vw, 3rem));
  line-height: 1;
  user-select: none;
}

.section-number--light {
  color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Section Headings
   ========================================================================== */

.section-heading {
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}

.section-heading--center {
  text-align: center;
}

.section-heading--light {
  color: var(--color-text-light);
}

/* Word reveal animation masks — clip-path wipe from bottom */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
}

.word-mask .word {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.7s var(--ease-snap);
}

.word-mask.is-revealed .word {
  transform: translateY(0);
}

/* Hero words — slower, more dramatic */
.hero .word-mask .word {
  transition-duration: 0.9s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 400ms var(--ease-snap),
              box-shadow 400ms var(--ease-snap);
}

.site-header--dark {
  background: transparent;
}

.site-header.is-scrolled {
  background: rgba(250, 250, 248, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-lg) var(--container-padding);
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-light);
  transition: color 400ms var(--ease-snap);
}

.site-header.is-scrolled .site-logo__text {
  color: var(--color-text);
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 101;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-text-light);
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out),
              background-color 400ms var(--ease-snap);
}

.site-header.is-scrolled .nav-toggle__bar {
  background-color: var(--color-text);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Menu */
.nav-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 248, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  z-index: 100;
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--color-gold);
}

.btn--nav {
  display: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    gap: var(--space-2xl);
  }

  .nav-menu a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light-muted);
    transition: color 400ms var(--ease-snap);
  }

  .site-header.is-scrolled .nav-menu a {
    color: var(--color-text-muted);
  }

  .nav-menu a:hover,
  .nav-menu a:focus {
    color: var(--color-gold);
  }

  .site-header.is-scrolled .nav-menu a:hover,
  .site-header.is-scrolled .nav-menu a:focus {
    color: var(--color-gold);
  }

  .nav-menu a.is-active {
    color: var(--color-text-light);
  }

  .site-header.is-scrolled .nav-menu a.is-active {
    color: var(--color-text);
  }

  .btn--nav {
    display: inline-flex;
    font-size: var(--text-xs);
    padding: 0.625rem 1.5rem;
    background: var(--color-gold);
    color: #fff;
    transition: background 400ms var(--ease-snap),
                color 400ms var(--ease-snap);
  }

  .site-header.is-scrolled .btn--nav {
    background: var(--color-gold);
    color: #fff;
  }

  .btn--nav:hover {
    background: var(--color-gold-dark);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.btn--primary {
  background-color: var(--color-gold);
  color: #fff;
  padding: 1.125rem 2.5rem;
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--color-gold-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-light);
  padding: 1.125rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover,
.btn--outline:focus {
  border-color: #fff;
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: var(--color-text-light);
  padding: 1.125rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-light:hover,
.btn--outline-light:focus {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--color-bg-hero);
}

.hero__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}


.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  z-index: 1;
}

.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide fallback when video is playing */
.hero__video.is-playing + .hero__fallback {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  padding: 0 var(--container-padding) clamp(3rem, 6vh, 6rem);
  margin-inline: auto;
}

.hero__badges {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transition: opacity 0.8s var(--ease-snap);
}

.hero.is-loaded .hero__badges {
  opacity: 1;
  transition-delay: 0.8s;
}

.hero__badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light-muted);
}

.hero__badge-sep {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.05;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.is-loaded .hero__title {
  clip-path: inset(0 0 0 0);
  transition-delay: 0.3s;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-light-muted);
  max-width: 36rem;
  margin-bottom: var(--space-xl);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.is-loaded .hero__subtitle {
  clip-path: inset(0 0 0 0);
  transition-delay: 1.2s;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-snap), transform 0.6s var(--ease-spring);
}

.hero.is-loaded .hero__actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2s;
}

/* ==========================================================================
   A NOSSA ESSÊNCIA
   ========================================================================== */

.essencia__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .essencia__grid {
    grid-template-columns: 5fr 6fr;
    gap: clamp(3rem, 2rem + 5vw, 6rem);
  }
}

.essencia__image-col {
  position: relative;
}

/* Image bleeds left on desktop */
@media (min-width: 768px) {
  .essencia__image-col {
    margin-left: calc(-1 * var(--container-padding));
  }
}

.essencia__image-wrap {
  overflow: hidden;
  position: relative;
}

.essencia__image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  filter: saturate(0.7) contrast(1.05);
  transition: filter 0.6s var(--ease-out);
}

.essencia__image-wrap:hover .essencia__image {
  filter: saturate(0.9) contrast(1.05);
}

.essencia__placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #3a302a;
  border: 1px dashed rgba(209, 123, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.essencia__placeholder-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(209, 123, 68, 0.5);
}

/* Badge overlay on image — editorial style */
.essencia__image-badge {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.7);
  line-height: 1.2;
}

.essencia__image-badge-year {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--color-text-light);
  line-height: 1;
}

.essencia__content {
  display: flex;
  flex-direction: column;
}

.essencia__text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.essencia__text--drop::first-letter {
  font-family: var(--font-display);
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--color-text);
}

/* ==========================================================================
   À MESA — Carousel
   ========================================================================== */

.section--mesa {
  background: var(--color-bg-alt);
  /* Height set by JS to create scroll room for horizontal carousel */
  position: relative;
}

.mesa__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.section--mesa .mesa__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.mesa__intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 30rem;
  margin-inline: auto;
}

.carousel {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}

.carousel__track {
  display: flex;
  gap: var(--space-xl);
  padding-inline: var(--container-padding);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.carousel__card {
  flex: 0 0 340px;
  transform-style: preserve-3d;
  perspective: 800px;
}

@media (min-width: 768px) {
  .carousel__card {
    flex: 0 0 420px;
  }
}

@media (min-width: 1024px) {
  .carousel__card {
    flex: 0 0 480px;
  }
}

/* Progress bar */
.carousel__progress {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--container-padding);
  right: var(--container-padding);
  height: 2px;
  background: var(--color-border);
  max-width: 200px;
  margin-inline: auto;
  border-radius: 1px;
  overflow: hidden;
}

.carousel__progress-bar {
  height: 100%;
  background: var(--color-gold);
  width: 0%;
  border-radius: 1px;
  transition: width 50ms linear;
}

.carousel__image-wrap {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  background: var(--card-placeholder, var(--color-border));
  aspect-ratio: 4 / 5;
}

.carousel__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-snap);
}

/* Placeholder label for missing images */
.carousel__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.5;
  pointer-events: none;
}

.carousel__card:hover .carousel__image {
  transform: scale(1.04);
}

.carousel__caption {
  padding-top: var(--space-lg);
}

.carousel__tag {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.carousel__badge {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(129, 100, 47, 0.4);
  padding: 0.15rem 0.5rem;
}

/* Badge color coding by category */
.carousel__badge--assinatura {
  color: var(--color-gold);
  border-color: rgba(129, 100, 47, 0.4);
}

.carousel__badge--premium {
  color: #b4626a;
  border-color: rgba(180, 98, 106, 0.4);
}

.carousel__badge--tacho {
  color: #c48a50;
  border-color: rgba(196, 138, 80, 0.3);
}

.carousel__badge--grelha {
  color: #d17b44;
  border-color: rgba(209, 123, 68, 0.4);
}

.carousel__badge--classico {
  color: var(--color-text-light-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.carousel__badge--favorito {
  color: var(--color-gold-light);
  border-color: rgba(154, 122, 62, 0.4);
}

.carousel__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.carousel__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CARTA DE VINHOS
   ========================================================================== */

.section--vinhos {
  text-align: center;
  padding-bottom: var(--space-2xl);
}

.section--vinhos .section-number {
  text-align: center;
}

.vinhos__quote {
  max-width: 32rem;
  margin: var(--space-2xl) auto;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
}

.vinhos__quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
}

/* Wine regions — horizontal scroll with natural height blocks */
.vinhos__regions {
  display: flex;
  gap: var(--space-2xl);
  text-align: left;
  margin-top: var(--space-2xl);
  overflow-x: auto;
  padding-inline: var(--container-padding);
  padding-bottom: var(--space-md);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vinhos__regions::-webkit-scrollbar {
  display: none;
}

.vinhos__region {
  flex: 0 0 auto;
  min-width: 220px;
}

.vinhos__region-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.vinhos__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.vinhos__wine {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.vinhos__note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.7;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.vinhos__region-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.vinhos__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.vinhos__wine {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
}

.vinhos__wine-info {
  display: flex;
  flex-direction: column;
}

.vinhos__wine-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.3;
}

.vinhos__wine-origin {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

.vinhos__wine-price {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   GALERIA
   ========================================================================== */

.section--galeria {
  padding-block: var(--space-3xl);
  background: var(--color-bg-dark-warm);
}

.galeria__masonry {
  columns: 2;
  column-gap: var(--space-md);
  padding-inline: var(--container-padding);
  max-width: calc(var(--container-max) + var(--container-padding) * 2);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .galeria__masonry {
    columns: 3;
    column-gap: var(--space-lg);
  }
}

.galeria__item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: 4px;
  background: var(--placeholder, #3a302a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .galeria__item {
    margin-bottom: var(--space-lg);
  }
}

.galeria__item--tall {
  height: 420px;
}

.galeria__item--medium {
  height: 300px;
}

.galeria__item--short {
  height: 200px;
}

@media (min-width: 768px) {
  .galeria__item--tall {
    height: 520px;
  }
  .galeria__item--medium {
    height: 360px;
  }
  .galeria__item--short {
    height: 240px;
  }
}

.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.6);
  transition: filter 500ms ease;
}

.galeria__item:hover img {
  filter: saturate(1);
}

.galeria__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(22, 19, 16, 0.8), transparent);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0;
  transition: opacity 400ms ease;
}

.galeria__item:hover .galeria__label {
  opacity: 1;
}

/* Gallery reveal — CSS-only via animation-timeline where supported, instant fallback */
.galeria__item {
  animation: galeria-reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

@keyframes galeria-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fallback: browsers without scroll-driven animations just show items */
@supports not (animation-timeline: view()) {
  .galeria__item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   REVIEWS — horizontal scroll, minimal cards
   ========================================================================== */

.section--reviews {
  background: var(--color-bg-alt);
  padding-bottom: var(--space-3xl);
}

.section--reviews .container {
  margin-bottom: var(--space-xl);
}

.reviews__track {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  padding-inline: var(--container-padding);
  padding-bottom: var(--space-md);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.reviews__card {
  flex: 0 0 320px;
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .reviews__card {
    flex: 0 0 380px;
  }
}

.reviews__stars {
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.reviews__text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: normal;
}

.reviews__author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  font-style: normal;
  margin-top: auto;
}

.reviews__source {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   FOOTER — Reservar + Contacto unified
   ========================================================================== */

.site-footer {
  background: var(--color-bg-footer);
  padding-block: var(--space-section) var(--space-2xl);
  color: var(--color-text-light);
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Top section: Reservar + Info side by side */
.site-footer__top {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 2rem + 5vw, 6rem);
    align-items: start;
  }
}

.site-footer__reservar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.site-footer__ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-footer__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.site-footer__detail-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.site-footer__detail p {
  font-size: var(--text-base);
  color: var(--color-text-light-muted);
  line-height: 1.7;
}

.site-footer__detail a {
  color: var(--color-text-light-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__detail a:hover {
  color: var(--color-gold);
}

/* Rule separator */
.site-footer__rule {
  border: none;
  height: 1px;
  background: var(--color-border-dark);
  margin-bottom: var(--space-xl);
}

/* Bottom bar: nav + social + copyright */
.site-footer__bottom {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.site-footer__nav {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.site-footer__nav a {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__nav a:hover {
  color: var(--color-gold);
}

.site-footer__social {
  display: flex;
  gap: var(--space-lg);
}

.site-footer__social a {
  color: var(--color-text-light-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__social a:hover {
  color: var(--color-gold);
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: rgba(250, 250, 248, 0.25);
}

/* ==========================================================================
   Generic reveal (fade) for data-reveal="fade"
   ========================================================================== */

[data-reveal="fade"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-reveal) var(--ease-snap),
              transform var(--duration-reveal) var(--ease-snap);
}

[data-reveal="fade"].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Clip reveal for images */
[data-reveal="clip"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 700ms var(--ease-snap);
}

[data-reveal="clip"].is-revealed {
  clip-path: inset(0 0 0 0);
}
