/* ══════════════════════════════════════════════════════
   wines.css — Wines page (wines.html) specific styles
   Desktop/base · Mobile (≤ 767px) · Desktop overrides (≥ 768px)
══════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════
   SCROLL REVEAL — base state
════════════════════════════════════════════ */
/* === WINES PAGE === */
/* Page-specific styles. Prefix: wn-. Map: PROJECT_MAP.md · Rules: CLAUDE.md */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger:nth-child(6) { transition-delay: 400ms; }


/* ════════════════════════════════════════════
   1. HERO — unified with Menu hero system
════════════════════════════════════════════ */
.wn-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: stretch;
  background: #080202;
  overflow: hidden;
}

/* Photo panel: right 78% — matches Menu hero inset */
.wn-hero-photo {
  position: absolute;
  inset: 80px 0 0 22%;
  background-size: 95%;                /* −5% от cover (≈100% по ширине) — уменьшение масштаба */
  background-position: 100% 30%;       /* вправо: фото у правого края, левый «зазор» под градиентом */
  background-repeat: no-repeat;
}

/* Cinematic vignette — exact Menu hero treatment */
.wn-hero-photo-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      #080202 0%,
      #080202 6%,
      rgba(8,2,2,0.93) 18%,
      rgba(8,2,2,0.72) 32%,
      rgba(8,2,2,0.35) 50%,
      rgba(8,2,2,0.08) 68%,
      transparent 82%
    ),
    linear-gradient(
      to top,
      #080202 0%,
      rgba(8,2,2,0.75) 14%,
      rgba(8,2,2,0.2) 30%,
      transparent 48%
    );
}

.wn-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
}

/* Text block: 52% wide — matches Menu hero */
.wn-hero-content {
  width: min(90%, 980px);   /* +40%: описание укладывается в две строки */
  padding: clamp(10rem, 20vh, 16rem) 0 clamp(3rem, 8vh, 6rem);
}

.wn-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(201,169,110,0.62);
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  display: block;
}

/* H1 — 10% reduction from original clamp(3.2rem, 6.5vw, 6rem) */
.wn-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.88rem, 5.85vw, 5.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--cream, #EFE2CF);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.wn-hero-title span {
  display: block;
}
.wn-hero-title span:last-child {
  font-style: normal;
  letter-spacing: 0.04em;
}

.wn-hero-rule {
  display: block;
  width: 4rem;
  height: 1px;
  background: linear-gradient(to right, #c9a96e, rgba(201,169,110,0.15));
  margin-bottom: 1.5rem;
}

.wn-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.93rem, 1.5vw, 1.05rem);
  font-style: normal;
  font-weight: 400;
  color: rgba(239,226,207,0.58);
  line-height: 1.74;
  max-width: 38ch;
  margin: 0;
}


/* ════════════════════════════════════════════
   2. PHILOSOPHY
════════════════════════════════════════════ */
.wn-philosophy {
  background: #080202;
  border-top: 1px solid rgba(201,169,110,0.12);
  padding: 4.5rem 0;
}

.wn-philosophy-inner {
  display: block;
}

.wn-philosophy-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.55);
  margin: 0 0 1.1rem;
  display: block;
}

.wn-philosophy-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 1.9vw, 1.42rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(239,226,207,0.72);
  line-height: 1.65;
  margin: 0;
}

.wn-philosophy-seal {
  width: clamp(100px, 12vw, 140px);
  height: clamp(100px, 12vw, 140px);
  flex-shrink: 0;
  opacity: 0.75;
}
.wn-philosophy-seal svg {
  width: 100%;
  height: 100%;
}


/* ════════════════════════════════════════════
   3. REGIONS WE LOVE
════════════════════════════════════════════ */
.wn-regions {
  background: #080202;
  padding: 5rem 0 6rem;
  border-top: 1px solid rgba(201,169,110,0.08);
}

.wn-regions-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  /* Было 3rem: пустая полоса под заголовком отодвигала фотографии
     за первый экран. Мобильный отступ задан ниже отдельно. */
  margin-bottom: 1.25rem;
}

.wn-regions-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(239,226,207,0.5);
  white-space: nowrap;
  margin: 0;
}

.wn-section-rule-left,
.wn-section-rule-right {
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,169,110,0.2));
  flex: 1;
}
.wn-section-rule-left {
  background: linear-gradient(to left, transparent, rgba(201,169,110,0.2));
}

/* 3-col grid */
.wn-regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,169,110,0.08);
  border: 1px solid rgba(201,169,110,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.wn-region-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #0e0305;
  cursor: default;
}

.wn-region-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.wn-region-card:hover .wn-region-photo {
  transform: scale(1.05);
}

.wn-region-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(8,2,2,0.92) 0%,
      rgba(8,2,2,0.65) 35%,
      rgba(8,2,2,0.22) 65%,
      rgba(8,2,2,0.08) 100%
    );
  transition: background 400ms ease;
}
.wn-region-card:hover .wn-region-overlay {
  background:
    linear-gradient(to top,
      rgba(8,2,2,0.88) 0%,
      rgba(8,2,2,0.52) 35%,
      rgba(8,2,2,0.14) 65%,
      rgba(8,2,2,0.04) 100%
    );
}

.wn-region-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.5rem 2rem;
  z-index: 2;
}

.wn-region-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream, #EFE2CF);
  margin: 0 0 0.55rem;
  transition: color 300ms ease;
}
.wn-region-card:hover .wn-region-name {
  color: #c9a96e;
}

.wn-region-desc {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(239,226,207,0.55);
  line-height: 1.5;
  margin: 0;
}


/* ════════════════════════════════════════════
   4. VARIETALS WE LOVE
════════════════════════════════════════════ */
.wn-varietals {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(90,17,26,0.22) 0%, transparent 65%),
    linear-gradient(180deg, #0e0305 0%, #080202 100%);
  padding: 4.4rem 0 4.8rem;
  border-top: 1px solid rgba(201,169,110,0.08);
}

.wn-varietals-inner {
  text-align: center;
}

.wn-varietals-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.55);
  margin: 0 0 3.5rem;
}

.wn-varietals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 3.5rem;
  row-gap: 2.5rem;
}

.wn-varietal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.wn-varietal-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.28rem, 2.24vw, 1.92rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(239,226,207,0.82);
  line-height: 1;
  transition: color 280ms ease;
  cursor: default;
}
.wn-varietal-item:hover .wn-varietal-name {
  color: var(--cream, #EFE2CF);
}

.wn-varietal-accent {
  display: block;
  width: 2rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,169,110,0.55), transparent);
  transition: width 280ms ease, background 280ms ease;
}
.wn-varietal-item:hover .wn-varietal-accent {
  width: 3rem;
  background: linear-gradient(to right, transparent, rgba(201,169,110,0.82), transparent);
}


/* ════════════════════════════════════════════
   5. CTA — WINE LIST
════════════════════════════════════════════ */
.wn-cta {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  background: #080202;
  overflow: hidden;
}

.wn-cta-photo {
  position: absolute;
  inset: 0 0 0 22%;
  background-size: cover;
  background-position: center 30%;
}

.wn-cta-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      #080202 0%,
      #080202 6%,
      rgba(8,2,2,0.93) 18%,
      rgba(8,2,2,0.72) 32%,
      rgba(8,2,2,0.35) 50%,
      rgba(8,2,2,0.08) 68%,
      transparent 82%
    ),
    linear-gradient(
      to top,
      #080202 0%,
      rgba(8,2,2,0.75) 14%,
      rgba(8,2,2,0.2) 30%,
      transparent 48%
    );
}

.wn-cta-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(4rem, 10vh, 8rem);
  padding-bottom: clamp(4rem, 10vh, 8rem);
  padding-left: 0;
  padding-right: 0;
}

.wn-cta-content {
  width: min(46%, 520px);
}

.wn-cta-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.55);
  display: block;
  margin-bottom: 1.1rem;
}

.wn-cta-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--cream, #EFE2CF);
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}
.wn-cta-title span {
  display: block;
}

.wn-cta-rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(to right, #c9a96e, rgba(201,169,110,0.15));
  margin-bottom: 1.4rem;
}

.wn-cta-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-style: italic;
  color: rgba(239,226,207,0.58);
  line-height: 1.65;
  margin: 0 0 2.2rem;
}

.wn-cta-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239,226,207,0.82);
  text-decoration: none;
  border: 1px solid rgba(201,169,110,0.3);
  padding: 0.9rem 1.8rem;
  border-radius: 3px;
  transition:
    color 250ms ease,
    border-color 250ms ease,
    background 250ms ease,
    box-shadow 250ms ease;
}
.wn-cta-btn:hover {
  color: #c9a96e;
  border-color: rgba(201,169,110,0.65);
  background: rgba(201,169,110,0.06);
  box-shadow: 0 0 24px rgba(201,169,110,0.08);
}


/* ════════════════════════════════════════════
   MOBILE  (≤ 767px)
════════════════════════════════════════════ */
/* === MOBILE: WINES === */
/* NAV-INDEX (sub-sections top->bottom): Hero | Philosophy | Regions | Varietals | CTA */
@media (max-width: 767px) {

  /* ── Hero ── */
  .wn-hero {
    min-height: 64svh;
    align-items: center;
  }

  .wn-hero-photo {
    inset: 0 0 0 30%;
    background-position: center center;
  }

  .wn-hero-photo-vignette {
    background:
      linear-gradient(to right,
        rgba(8,2,2,0.95) 0%,
        rgba(8,2,2,0.90) 25%,
        rgba(8,2,2,0.72) 38%,
        rgba(8,2,2,0.38) 52%,
        rgba(8,2,2,0.10) 66%,
        transparent 80%
      ),
      linear-gradient(to bottom,
        rgba(8,2,2,0.80) 0%,
        rgba(8,2,2,0.30) 16%,
        transparent 34%
      ),
      linear-gradient(to top,
        #080202 0%,
        rgba(8,2,2,0.97) 18%,
        rgba(8,2,2,0.72) 38%,
        rgba(8,2,2,0.30) 62%,
        transparent 78%
      );
  }

  .wn-hero-inner {
    padding: 0 1.25rem;
    width: 100%;
    align-items: flex-start;
  }

  .wn-hero-content {
    width: 81%;   /* +40%: описание ложится в две строки */
    padding: 2rem 0 1.5rem;
  }

  .wn-eyebrow { display: none; }

  .wn-hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 7vw;
  }

  .wn-hero-sub {
    font-size: 1.12rem;
    line-height: 1.72;
    max-width: 18rem;
    margin-bottom: 7vw;
    color: rgba(239,226,207,0.82);
    text-shadow: 0 1px 12px rgba(0,0,0,0.65), 0 2px 28px rgba(0,0,0,0.45);
  }
  .wn-hero-sub br { display: none; }

  /* ── Philosophy ── */
  .wn-philosophy {
    padding: 3rem 0;
  }

  .wn-philosophy-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wn-philosophy-seal {
    display: none;
  }

  .wn-philosophy-body {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
  }

  /* ── Regions ── */
  .wn-regions {
    padding: 3.5rem 0 4rem;
  }

  .wn-regions-header {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
  }

  .wn-regions-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 1.5rem;
  }

  .wn-region-card {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
  }

  .wn-region-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .wn-region-name {
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    margin-bottom: 0.35rem;
  }

  .wn-region-desc {
    font-size: 0.92rem;
  }
  .wn-region-desc br { display: none; }

  /* ── Varietals ── */
  .wn-varietals {
    padding: 3.5rem 0 4rem;
  }

  .wn-varietals-title {
    margin-bottom: 2.5rem;
  }

  .wn-varietals-list {
    gap: 0 2rem;
    row-gap: 1.75rem;
  }

  .wn-varietal-name {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  /* ── CTA ── */
  .wn-cta {
    min-height: auto;
    flex-direction: column;
  }

  .wn-cta-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 52vw;
    order: 2;
  }

  .wn-cta-photo-overlay {
    background:
      linear-gradient(to top,
        rgba(8,2,2,0.65) 0%,
        rgba(8,2,2,0.18) 50%,
        transparent 100%
      );
  }

  .wn-cta-inner {
    order: 1;
    padding: 3.5rem 1.5rem 2rem;
    width: 100%;
  }

  .wn-cta-content {
    width: 100%;
  }

  .wn-cta-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
    margin-bottom: 1.1rem;
  }

  .wn-cta-body {
    font-size: 0.96rem;
    margin-bottom: 1.75rem;
  }
  .wn-cta-body br { display: none; }

  .wn-cta-btn {
    font-size: 0.66rem;
    padding: 0.85rem 1.5rem;
  }

} /* end @media (max-width: 767px) */


/* ════════════════════════════════════════════
   DESKTOP  (≥ 768px)
   Fine-tuned layout enhancements
════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* Philosophy — hidden on desktop */
  .wn-philosophy {
    display: none;
  }

  /* Remove divider line and gap — no philosophy section above on desktop */
  .wn-regions {
    border-top: none;
    padding: 0;
  }

  /* Full-width grid, landscape cards — 2-col tablet */
  .wn-regions-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .wn-region-card {
    aspect-ratio: 16 / 9;
  }

  /* CTA — левый край текста как у hero/header (margin-left clamp, без padding) */
  .wn-cta-inner {
    margin-left: clamp(2rem, 4vw, 4rem);
    margin-right: auto;
  }

} /* end @media (min-width: 768px) */


/* ════════════════════════════════════════════
   WIDE DESKTOP  (≥ 1100px)
   Full 3-col regions
════════════════════════════════════════════ */
@media (min-width: 1100px) {

  .wn-regions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wn-region-card {
    aspect-ratio: 16 / 9;
  }

} /* end @media (min-width: 1100px) */

/* === Кнопка Explore Wine List в hero === */
.wn-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  /* Ноль: отбивку целиком задаёт margin-bottom описания, чтобы просвет
     над кнопкой совпал с просветом между дивайдером и описанием. */
  margin-top: 0;
}

/* Десктоп: переносы из вёрстки мешают описанию лечь в две строки */
@media (min-width: 768px) {
  .wn-hero-sub br { display: none; }
}


/* Кнопка Explore Wine List подтянута к описанию ещё ближе: 12px вместо 24 */
.wn-hero-content .wn-hero-sub { margin-bottom: 0.75rem; }


/* Короткий заголовок hero — только мобильная версия (см. mobile.css) */
.wn-hero-title .wnt-short { display: none; }


/* Короткое начало описания hero — только мобильная версия (см. mobile.css) */
.wn-hero-sub .wns-short { display: none; }


/* Вторая кнопка hero — только десктоп (на телефоне скрыта в mobile.css) */
.wn-hero-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-left: 0.85rem;
}
