/* =========================================================================
   MAGIC WINE DOO — global stylesheet
   Premium editorial wine site (Zorah-inspired, original)
   ========================================================================= */

/* -------- 0. Variables & resets -------- */
:root {
  /* Brand colors */
  --color-wine:        #650021;
  --color-wine-dark:   #2A0712;
  --color-cream:       #F6F1E8;
  --color-cream-2:     #EFE7D8;
  --color-white:       #FFFFFF;
  --color-charcoal:    #171717;
  --color-charcoal-2:  #0F0F0F;
  --color-gold:        #C9A24D;
  --color-gold-soft:   #B8923F;
  --color-stone:       #8A8178;
  --color-stone-soft:  #B5ADA3;

  --border-light: rgba(23, 23, 23, 0.16);
  --border-dark:  rgba(255, 255, 255, 0.18);

  /* Typography */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1640px;
  --gutter:    clamp(20px, 4vw, 64px);
  --header-h:  86px;

  /* Motion */
  --ease:      cubic-bezier(.2, .8, .2, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --t-fast:    .25s;
  --t-med:     .45s;
  --t-slow:    .9s;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.05;
}

p { margin: 0; }

::selection { background: var(--color-wine); color: var(--color-cream); }

/* -------- Reusable bits -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--t-med) var(--ease),
    color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
  will-change: transform;
}

.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--color-gold);
  color: var(--color-charcoal);
  border-color: var(--color-gold);
}
.btn--gold:hover { background: var(--color-gold-soft); border-color: var(--color-gold-soft); }

.btn--ghost {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--color-cream); }

.btn--ghost-dark {
  background: transparent;
  color: var(--color-charcoal);
  border-color: rgba(23,23,23,0.35);
}
.btn--ghost-dark:hover { background: var(--color-charcoal); color: var(--color-cream); border-color: var(--color-charcoal); }

.btn--ghost-light {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { background: var(--color-cream); color: var(--color-charcoal); }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 24px;
}

.section-eyebrow--light { color: rgba(255,255,255,0.7); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1.02;
  font-weight: 500;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

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

.section-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-stone);
  max-width: 52ch;
  margin-top: 22px;
  margin-bottom: 32px;
}

.section-text--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================================
   1. PRELOADER
   ========================================================================= */
.preloader {
  position: fixed; inset: 0;
  background: var(--color-cream);
  z-index: 999;
  display: grid;
  place-items: center;
  transition: opacity .9s var(--ease) .2s, visibility .9s linear .2s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__inner {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: pre-fade 1.6s var(--ease-out) both;
  padding: 0 24px;
}

.preloader__logo {
  display: block;
  height: clamp(54px, 8vw, 76px);
  width: auto;
  max-width: min(420px, 80vw);
  object-fit: contain;
}

.preloader__line {
  width: 0;
  height: 1px;
  background: var(--color-gold);
  animation: pre-line 1.4s var(--ease-out) .3s forwards;
}

@keyframes pre-line { to { width: 88px; } }
@keyframes pre-fade {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}

/* =========================================================================
   2. HEADER
   ========================================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  transition:
    background-color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    color var(--t-med) var(--ease);
  color: var(--color-cream);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Scrolled (or non-hero) state */
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--color-cream);
  color: var(--color-charcoal);
  border-bottom-color: var(--border-light);
  box-shadow: 0 4px 24px rgba(23,23,23,0.05);
}

.primary-nav { display: flex; }
.primary-nav--left  { justify-content: flex-start; }
.primary-nav--right { justify-content: flex-end; }

.primary-nav ul {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0;
}

.primary-nav li + li { border-left: 1px solid rgba(255,255,255,0.16); }
.site-header.is-scrolled .primary-nav li + li,
.site-header.is-solid .primary-nav li + li { border-left-color: var(--border-light); }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--t-fast) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 4px;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease-out);
}

.nav-link:hover { opacity: 0.85; }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-link__num {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  transform: translateY(-6px);
}

.nav-link__label { font-weight: 600; }

/* Brand */
.brand {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0;
  /* reserve space so the absolute positioned dark variant overlaps cleanly */
  min-height: 56px;
}

.brand__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: opacity .55s var(--ease);
  will-change: opacity;
}

/* Stack the two logos: light shown by default, dark on scrolled */
.brand__logo--dark {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
}

.site-header.is-scrolled .brand__logo--light,
.site-header.is-solid    .brand__logo--light { opacity: 0; }

.site-header.is-scrolled .brand__logo--dark,
.site-header.is-solid    .brand__logo--dark  { opacity: 1; }

/* Legacy monogram (used in footer + preloader) */
.brand__monogram {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}
.brand__monogram--lg { font-size: 38px; }
.brand__sep { color: var(--color-gold); margin: 0 1px; }
.brand__name {
  font-size: 10px;
  letter-spacing: 0.4em;
  font-weight: 600;
  text-transform: uppercase;
}

/* Language switcher (desktop sits inside primary-nav ul as a li.nav-lang) */
.nav-lang { display: flex; align-items: center; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
}

.lang-switch__opt {
  position: relative;
  opacity: 0.7;
  transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  padding: 2px 0;
}

.lang-switch__opt:hover { opacity: 1; }

.lang-switch__opt.is-active {
  opacity: 1;
  color: var(--color-gold);
}

.lang-switch__opt.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--color-gold);
}

.lang-switch__sep {
  opacity: 0.4;
  font-weight: 400;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.menu-toggle__bar {
  display: block;
  position: absolute;
  left: 22%; right: 22%;
  top: 50%;
  margin-top: -0.75px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
.menu-toggle__bar:nth-child(1) { transform: translateY(-4px); }
.menu-toggle__bar:nth-child(2) { transform: translateY(4px); }
.menu-toggle__label { position: absolute; left: -9999px; }
.menu-toggle.is-open .menu-toggle__bar:nth-child(1) { transform: translateY(0) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar:nth-child(2) { transform: translateY(0) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--color-cream);
  color: var(--color-charcoal);
  z-index: 150;
  transform: translateY(-100%);
  transition: transform .65s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.mobile-menu__list {
  list-style: none;
  margin: 0; padding: 0;
}
.mobile-menu__list li {
  border-top: 1px solid var(--border-light);
}
.mobile-menu__list li:last-child { border-bottom: 1px solid var(--border-light); }

.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 500;
  line-height: 1;
  transition: color var(--t-fast) var(--ease);
}
.mobile-menu__list span {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  font-weight: 600;
}

.mobile-menu__list a:hover { color: var(--color-wine); }

.mobile-menu__lang {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu__lang-label {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-stone);
  font-weight: 600;
}
.lang-switch--lg {
  font-size: 14px;
  letter-spacing: 0.28em;
  padding: 0;
  gap: 12px;
  color: var(--color-charcoal);
}
.lang-switch--lg .lang-switch__opt.is-active::after { bottom: -6px; }

.mobile-menu__footer {
  margin-top: 28px;
  font-size: 13px;
  color: var(--color-stone);
  line-height: 1.8;
}
.mobile-menu__footer a { display: block; color: var(--color-charcoal); }
.mobile-menu__footer a:hover { color: var(--color-wine); }

/* =========================================================================
   3. HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--color-cream);
  overflow: hidden;
  isolation: isolate;
}

.hero__slider { position: absolute; inset: 0; z-index: 0; }

.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-wine-dark);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; }

/* Desktop / tablet background images */
.hero__slide[data-slide="1"] { background-image: url('../images/hero/magic-wine-slajder-1.png'); }
.hero__slide[data-slide="2"] { background-image: url('../images/hero/magic-wine-slajder-2.png'); }
.hero__slide[data-slide="3"] { background-image: url('../images/hero/magic-wine-slajder-3.png'); }

/* Mobile portrait images (≤ 768px) — logo stays visible in the crop */
@media (max-width: 768px) {
  .hero__slide[data-slide="1"] { background-image: url('../images/hero/magic-wine-slajder-1-mobile.png'); }
  .hero__slide[data-slide="2"] { background-image: url('../images/hero/magic-wine-slajder-2-mobile.png'); }
  .hero__slide[data-slide="3"] { background-image: url('../images/hero/magic-wine-slajder-3-mobile.png'); }
}

.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.38) 35%, rgba(0,0,0,0.68) 100%);
}

/* Decorative thin grid lines */
.hero__grid {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__grid span {
  border-right: 1px solid rgba(255,255,255,0.07);
  height: 100%;
}
.hero__grid span:last-child { border-right: 0; }

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 12vh, 160px);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 28px;
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8.4vw, 138px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero__title em {
  font-style: italic;
  color: var(--color-cream);
  font-weight: 400;
  opacity: 0.95;
}

.hero__lede {
  max-width: 52ch;
  margin-top: 28px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* Slider controls */
.hero__controls {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-cream);
}

.slider-arrow {
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--color-cream);
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.slider-arrow svg { width: 18px; height: 18px; }
.slider-arrow:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-charcoal); }

.hero__counter {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  min-width: 64px;
  text-align: center;
}
.hero__counter-sep { color: var(--color-gold); margin: 0 4px; }

/* Vertical side label */
.hero__side {
  position: absolute;
  right: 22px;
  top: 50%;
  z-index: 3;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* =========================================================================
   4. INTRO STATEMENT
   ========================================================================= */
.intro {
  background: var(--color-cream);
  border-top: 1px solid var(--border-light);
  padding: clamp(90px, 11vw, 160px) var(--gutter);
}

.intro__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.intro__inner .section-title em {
  font-style: italic;
  color: var(--color-wine);
  font-weight: 500;
}

.intro__inner .section-text {
  margin-left: auto;
  margin-right: auto;
  max-width: 64ch;
}

.intro__inner .section-text em {
  font-style: normal;
  color: var(--color-charcoal);
  font-weight: 600;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 1px;
}

/* =========================================================================
   4b. ASSORTMENT (3 category cards)
   ========================================================================= */
.assortment {
  background: var(--color-cream-2);
  padding: clamp(90px, 11vw, 160px) var(--gutter);
  border-top: 1px solid var(--border-light);
}

.assortment__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(50px, 6vw, 80px);
}

.assortment__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 1.8vw, 30px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.assortment-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--border-light);
  padding: clamp(28px, 2.4vw, 42px) clamp(26px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out);
}
.assortment-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width .6s var(--ease-out);
}
.assortment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -36px rgba(23,23,23,0.28);
  border-color: rgba(201,162,77,0.4);
}
.assortment-card:hover::before { width: 64px; }

.assortment-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 26px;
}

.assortment-card__num {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--color-wine);
  font-weight: 500;
  line-height: 1;
}

.assortment-card__cat {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-stone);
  font-weight: 600;
}

.assortment-card__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.05;
  font-weight: 500;
  margin-bottom: 16px;
}

.assortment-card__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-stone);
  margin-bottom: 24px;
}

.assortment-card__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.assortment-card__tags li {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid var(--border-light);
  color: var(--color-charcoal);
  background: var(--color-cream);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.assortment-card__tags li:hover {
  border-color: var(--color-gold);
  color: var(--color-wine);
}

.assortment-card__link {
  margin-top: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.assortment-card__link span { transition: transform var(--t-med) var(--ease); }
.assortment-card__link:hover { color: var(--color-wine); }
.assortment-card__link:hover span { transform: translateX(6px); }

/* =========================================================================
   5. EDITORIAL DARK
   ========================================================================= */
.editorial-dark {
  position: relative;
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: clamp(90px, 11vw, 160px) var(--gutter) clamp(80px, 9vw, 130px);
  text-align: center;
}

.editorial-dark__head {
  max-width: var(--max-width);
  margin: 0 auto;
}

.editorial-dark__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6.2vw, 110px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  position: relative;
  z-index: 3;
  transform: translateY(28px);
}

.editorial-dark__text {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

.editorial-dark__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.4vw, 26px);
  max-width: var(--max-width);
  margin: clamp(40px, 5vw, 70px) auto 0;
  position: relative;
  z-index: 1;
}

.editorial-dark__cell {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: var(--color-wine-dark);
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(160deg, rgba(101,0,33,0.4), rgba(23,23,23,0.85)),
    radial-gradient(circle at 50% 30%, rgba(201,162,77,0.15), transparent 60%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .8s var(--ease-out);
  margin: 0;
}
.editorial-dark__cell:hover { transform: translateY(-6px); }

.editorial-dark__cell:nth-child(2) {
  background-image:
    linear-gradient(160deg, rgba(23,23,23,0.5), rgba(42,7,18,0.9)),
    radial-gradient(circle at 30% 70%, rgba(201,162,77,0.15), transparent 60%);
}
.editorial-dark__cell:nth-child(3) {
  background-image:
    linear-gradient(160deg, rgba(42,7,18,0.4), rgba(23,23,23,0.85)),
    radial-gradient(circle at 70% 50%, rgba(201,162,77,0.18), transparent 60%);
}

.editorial-dark__num {
  position: absolute;
  top: 18px; left: 22px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--color-gold);
  font-weight: 600;
}
.editorial-dark__caption {
  position: absolute;
  bottom: 18px; left: 22px;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.02em;
}

/* Editorial cell image — fills the cell, with a soft top-to-bottom
   gradient so the number and caption stay legible. Scoped via :has(img)
   so empty placeholder cells keep their original wine-dark gradient. */
.editorial-dark__cell:has(img),
.editorial-dark__cell:has(img):nth-child(n) {
  background-image: none;
}
.editorial-dark__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}
.editorial-dark__cell:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.62) 100%);
  pointer-events: none;
  z-index: 1;
}
.editorial-dark__cell .editorial-dark__num,
.editorial-dark__cell .editorial-dark__caption { z-index: 2; }

.editorial-dark__foot { margin-top: clamp(40px, 5vw, 60px); }

/* =========================================================================
   6. PRODUCERS (filterable cards)
   ========================================================================= */
.producers {
  padding: clamp(90px, 11vw, 160px) var(--gutter);
  background: var(--color-cream);
}

.producers__head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(36px, 4vw, 56px);
}

.producers__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  max-width: var(--max-width);
  margin: 0 auto clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

.producers__tab {
  position: relative;
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-stone);
  transition: color var(--t-fast) var(--ease);
}
.producers__tab::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: 2px;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .5s var(--ease-out);
}
.producers__tab:hover { color: var(--color-charcoal); }
.producers__tab.is-active {
  color: var(--color-charcoal);
}
.producers__tab.is-active::after { transform: scaleX(1); }

.producers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.4vw, 24px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.producer-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--border-light);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out),
    opacity .35s var(--ease);
}
.producer-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width .6s var(--ease-out);
}
.producer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -28px rgba(23,23,23,0.25);
  border-color: rgba(201,162,77,0.4);
}
.producer-card:hover::before { width: 48px; }

.producer-card.is-hidden {
  display: none;
}

.producer-card__cat {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.producer-card__name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 14px;
}

.producer-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-stone);
  margin-bottom: 22px;
  flex: 1;
}

.producer-card__link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.producer-card__link span { transition: transform var(--t-med) var(--ease); }
.producer-card__link:hover { color: var(--color-wine); }
.producer-card__link:hover span { transform: translateX(6px); }

.producers__foot { text-align: center; margin-top: clamp(48px, 5vw, 72px); }

/* =========================================================================
   6b. WHY MAGIC WINE
   ========================================================================= */
.why {
  background: var(--color-cream-2);
  padding: clamp(90px, 11vw, 160px) var(--gutter);
  border-top: 1px solid var(--border-light);
}

.why__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(50px, 6vw, 80px);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.why-point {
  position: relative;
  padding: clamp(40px, 4vw, 60px) clamp(24px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.why-point + .why-point {
  border-left: 1px solid var(--border-light);
}

.why-point__num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--color-gold);
  line-height: 1;
}

.why-point__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-charcoal);
}

.why-point__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-stone);
}

/* =========================================================================
   7. PRICE LIST (3 category blocks)
   ========================================================================= */
.pricelist {
  position: relative;
  padding: clamp(90px, 11vw, 160px) var(--gutter);
  background: var(--color-cream);
  border-top: 1px solid var(--border-light);
}

.pricelist__head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto clamp(50px, 6vw, 80px);
}

.pricelist__blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricelist-block {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  box-shadow: 0 24px 60px -42px rgba(23,23,23,0.3);
  overflow: hidden;
}

.pricelist-block__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 26px clamp(22px, 2.4vw, 36px);
  border-bottom: 1px solid var(--border-light);
  background: var(--color-cream-2);
}
.pricelist-block__num {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}
.pricelist-block__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1;
}

.pricelist-table { font-size: 13.5px; }

.pricelist-table__head,
.pricelist-table__row {
  display: grid;
  grid-template-columns: 1.4fr 1.8fr 1fr 1fr;
  gap: 16px;
  padding: 14px clamp(22px, 2.4vw, 36px);
  align-items: center;
}

.pricelist-table__head {
  background: var(--color-charcoal);
  color: var(--color-cream);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
}

.pricelist-table__row {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast) var(--ease);
}
.pricelist-table__row:last-child { border-bottom: 0; }
.pricelist-table__row:hover { background: var(--color-cream); }

.pricelist-table__row span:first-child {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--color-wine);
}
.pricelist-table__row .is-price {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-charcoal);
}

.pricelist__foot {
  text-align: center;
  margin-top: clamp(48px, 5vw, 70px);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pricelist__foot .btn { margin-bottom: 22px; }

.pricelist__helper {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-stone);
  margin-bottom: 10px;
}

.pricelist__note {
  font-size: 12px;
  font-style: italic;
  color: var(--color-stone);
  opacity: 0.85;
}

/* =========================================================================
   8. GALLERY PREVIEW
   ========================================================================= */
.gallery {
  padding: clamp(90px, 11vw, 160px) var(--gutter);
  background: var(--color-cream);
}

.gallery__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(50px, 6vw, 80px);
}
.gallery__head .section-text { margin-left: auto; margin-right: auto; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: clamp(14px, 1.4vw, 22px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery__cell {
  position: relative;
  margin: 0;
  background-color: var(--color-wine-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  grid-column: span 2;
  grid-row: span 2;
  background-image:
    linear-gradient(160deg, rgba(101,0,33,0.6), rgba(23,23,23,0.8)),
    radial-gradient(circle at 50% 40%, rgba(201,162,77,0.18), transparent 60%);
}
.gallery__cell--tall { grid-row: span 3; }
.gallery__cell--wide { grid-column: span 4; }

.gallery__cell:nth-child(2) {
  background-image:
    linear-gradient(160deg, rgba(23,23,23,0.85), rgba(101,0,33,0.5)),
    radial-gradient(circle at 30% 60%, rgba(201,162,77,0.16), transparent 60%);
}
.gallery__cell:nth-child(3) {
  background-image:
    linear-gradient(160deg, rgba(42,7,18,0.75), rgba(23,23,23,0.65)),
    radial-gradient(circle at 70% 30%, rgba(201,162,77,0.18), transparent 60%);
}
.gallery__cell:nth-child(4) {
  background-image:
    linear-gradient(160deg, rgba(101,0,33,0.4), rgba(23,23,23,0.85)),
    radial-gradient(circle at 60% 60%, rgba(201,162,77,0.18), transparent 60%);
}
.gallery__cell:nth-child(5) {
  background-image:
    linear-gradient(160deg, rgba(23,23,23,0.8), rgba(101,0,33,0.5)),
    radial-gradient(circle at 50% 70%, rgba(201,162,77,0.14), transparent 60%);
}
.gallery__cell:nth-child(6) {
  background-image:
    linear-gradient(160deg, rgba(42,7,18,0.5), rgba(23,23,23,0.75)),
    radial-gradient(circle at 30% 30%, rgba(201,162,77,0.18), transparent 60%);
}

.gallery__cell::before,
.gallery__cell::after {
  content: "";
  position: absolute; inset: 0;
  transition: opacity var(--t-med) var(--ease);
}
.gallery__cell::after {
  background: rgba(23,23,23,0);
  transition: background var(--t-med) var(--ease);
}
.gallery__cell {
  transition: transform 1.2s var(--ease-out);
}
.gallery__cell:hover { transform: scale(1.02); }
.gallery__cell:hover::after { background: rgba(23,23,23,0.28); }

.gallery__foot { text-align: center; margin-top: clamp(48px, 5vw, 72px); }

/* Gallery image cards (only when a cell actually contains a product image).
   Uses :has(img) so the homepage gallery placeholders are untouched. */
.gallery__grid:has(img) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
}
.gallery__grid:has(img) .gallery__cell,
.gallery__grid:has(img) .gallery__cell--tall,
.gallery__grid:has(img) .gallery__cell--wide {
  grid-column: span 1;
  grid-row: span 1;
  aspect-ratio: 4 / 5;
}

.gallery__cell:has(img) {
  background-color: var(--color-cream);
  background-image: none;
  border: 1px solid rgba(23, 23, 23, 0.08);
  cursor: zoom-in;
}
/* Beat the per-nth-child gradient placeholder rules above */
.gallery__cell:has(img):nth-child(n) { background-image: none; }

.gallery__cell:has(img) a {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  padding: 22px;
  box-sizing: border-box;
}
.gallery__cell:has(img) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* Decorative hover overlay (::after) must NOT swallow clicks meant for the
   Fancybox-bound anchor underneath it. */
.gallery__cell:has(img)::before,
.gallery__cell:has(img)::after { pointer-events: none; }
/* Softer hover for cream product cards — keep premium, drop the dark veil. */
.gallery__cell:has(img):hover { transform: scale(1.015); }
.gallery__cell:has(img):hover::after { background: transparent; }

@media (max-width: 960px) {
  .gallery__grid:has(img) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__cell:has(img) a { padding: 18px; }
}
@media (max-width: 640px) {
  .gallery__grid:has(img) { grid-template-columns: 1fr; }
  .gallery__grid:has(img) .gallery__cell { aspect-ratio: 4 / 5; }
  .gallery__cell:has(img) a { padding: 16px; }
}

/* =========================================================================
   9. CONTACT CTA
   ========================================================================= */
.contact-cta {
  position: relative;
  padding: clamp(100px, 12vw, 180px) var(--gutter);
  color: var(--color-cream);
  isolation: isolate;
  /* Replace background with assets/images/contact-bg.jpg */
  background:
    linear-gradient(135deg, var(--color-wine-dark) 0%, var(--color-wine) 60%, var(--color-charcoal-2) 100%);
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(201,162,77,0.18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(101,0,33,0.5), transparent 55%);
  z-index: -1;
}

.contact-cta__overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 25% 100%;
  pointer-events: none;
  opacity: 0.6;
  z-index: -1;
}

.contact-cta__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.6vw, 108px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.contact-cta__text {
  max-width: 50ch;
  margin: 0 auto 38px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.contact-cta__buttons {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
}

.contact-cta__info {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 40px;
  font-size: 14px;
}
.contact-cta__info li {
  display: flex; flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 14px;
}
.contact-cta__label {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 600;
}
.contact-cta__info a:hover { color: var(--color-gold); }

/* =========================================================================
   10. FOOTER
   ========================================================================= */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: clamp(80px, 9vw, 130px) var(--gutter) 30px;
}

.site-footer__top {
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: clamp(50px, 6vw, 80px);
  margin-bottom: clamp(50px, 6vw, 80px);
}

.site-footer__brand {
  display: inline-flex; flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.site-footer__name {
  font-size: 11px;
  letter-spacing: 0.5em;
  font-weight: 600;
  text-transform: uppercase;
}

.site-footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255,255,255,0.85);
  max-width: 36ch;
  margin: 0 auto;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: clamp(30px, 4vw, 64px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: clamp(50px, 6vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
/* Each column is centered as a unit inside its grid cell, but content
   inside the column is left-aligned so every line shares the same axis. */
.site-footer__nav,
.site-footer__contact {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.site-footer__nav ul {
  list-style: none; padding: 0; margin: 0;
}
.site-footer__nav li + li { margin-top: 14px; }
.site-footer__nav a {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--t-fast) var(--ease);
}
.site-footer__nav a span {
  font-size: 10px;
  color: var(--color-gold);
  letter-spacing: 0.2em;
}
.site-footer__nav a:hover { color: var(--color-gold); }

.site-footer__contact {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
}
.site-footer__contact strong {
  color: var(--color-cream);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.site-footer__contact a:hover { color: var(--color-gold); }

.site-footer__bottom {
  display: flex; justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer__note { font-style: italic; }

/* =========================================================================
   FOOTER CREDIT
   ========================================================================= */
.site-footer__credit {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.site-footer__credit a {
  color: var(--color-cream);
  position: relative;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(201,162,77,0.4);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.site-footer__credit a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* Footer logo images (added when client replaced the text marks) */
.site-footer__brand-img {
  display: block;
  width: auto;
  height: clamp(52px, 5.4vw, 72px);
}
.site-footer__contact-logo {
  display: block;
  width: auto;
  height: 42px;
  margin: 0 0 14px;
}
.site-footer__signoff {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.site-footer__mark {
  display: block;
  width: auto;
  height: 26px;
  opacity: 0.82;
}
@media (max-width: 640px) {
  .site-footer__signoff { align-items: center; }
  .site-footer__contact-logo { margin-left: auto; margin-right: auto; }
}

/* =========================================================================
   Contact form — FormSubmit AJAX states
   ========================================================================= */
.contact-page__honey {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-page__status {
  margin: 18px 0 0;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--color-text);
  min-height: 0;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.contact-page__status:not(:empty) { opacity: 1; }
.contact-page__status.is-loading {
  border-left-color: rgba(101, 0, 33, 0.35);
  background: rgba(101, 0, 33, 0.04);
  color: var(--color-wine);
}
.contact-page__status.is-success {
  border-left-color: var(--color-gold);
  background: rgba(201, 162, 77, 0.08);
  color: var(--color-wine-dark);
}
.contact-page__status.is-error {
  border-left-color: #b53a3a;
  background: rgba(181, 58, 58, 0.06);
  color: #8a2a2a;
}
.contact-page__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* =========================================================================
   BACK TO TOP
   ========================================================================= */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 180;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-wine);
  color: var(--color-cream);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px -16px rgba(42,7,18,0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity var(--t-med) var(--ease),
    transform var(--t-med) var(--ease),
    visibility 0s linear var(--t-med),
    background var(--t-med) var(--ease),
    color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
}
.back-to-top svg {
  width: 18px; height: 18px;
}
.back-to-top__label {
  position: absolute; left: -9999px;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.back-to-top:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
  border-color: var(--color-gold);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* =========================================================================
   INNER PAGES — shared elements (brendovi.html, cenovnik.html)
   ========================================================================= */

/* Inner pages: hero sits behind the transparent fixed header */
.page-main { padding-top: 0; }

/* ----- Page hero (image background, 50vh, editorial) ----- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 50vh;
  min-height: max(50vh, 420px);
  padding: var(--header-h) 0 0;
  color: var(--color-cream);
  background-color: var(--color-wine-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Per-page hero image (data-hero="1" | "2" | "3") */
.page-hero[data-hero="1"] { background-image: url('../images/hero/magic-wine-slajder-1.png'); }
.page-hero[data-hero="2"] { background-image: url('../images/hero/magic-wine-slajder-2.png'); }
.page-hero[data-hero="3"] { background-image: url('../images/hero/magic-wine-slajder-3.png'); }

@media (max-width: 768px) {
  .page-hero[data-hero="1"] { background-image: url('../images/hero/magic-wine-slajder-1-mobile.png'); }
  .page-hero[data-hero="2"] { background-image: url('../images/hero/magic-wine-slajder-2-mobile.png'); }
  .page-hero[data-hero="3"] { background-image: url('../images/hero/magic-wine-slajder-3-mobile.png'); }
}

.page-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.65) 100%);
}

.page-hero__grid {
  position: absolute; inset: 0; z-index: -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
}
.page-hero__grid span {
  border-right: 1px solid rgba(255,255,255,0.06);
  height: 100%;
}
.page-hero__grid span:last-child { border-right: 0; }

.page-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) var(--gutter);
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.6vw, 96px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 14px 0 22px;
  max-width: 22ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.page-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-cream);
  opacity: 0.95;
}

.page-hero__text {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
  max-width: 60ch;
}

/* Light variant for eyebrows over dark hero */
.section-eyebrow--light { color: var(--color-gold); opacity: 1; }

/* ----- Category filter bar (sticky under the header) ----- */
.cat-filter {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: var(--color-cream);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: saturate(120%) blur(6px);
}
.cat-filter__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cat-filter__btn {
  position: relative;
  padding: 18px 26px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-stone);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.cat-filter__btn + .cat-filter__btn { border-left: 1px solid var(--border-light); }
.cat-filter__btn::after {
  content: "";
  position: absolute;
  left: 26px; right: 26px; bottom: 10px;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .5s var(--ease-out);
}
.cat-filter__btn:hover { color: var(--color-charcoal); }
.cat-filter__btn.is-active {
  color: var(--color-charcoal);
}
.cat-filter__btn.is-active::after { transform: scaleX(1); }

/* ----- Category section (used by both pages) ----- */
.cat-section,
.pricelist-section {
  padding: clamp(60px, 7vw, 110px) var(--gutter);
  background: var(--color-cream);
  border-top: 1px solid var(--border-light);
  /* Offset for filter click smooth-scroll, accounting for fixed header + sticky filter */
  scroll-margin-top: calc(var(--header-h) + 64px);
}
.cat-section.is-hidden,
.pricelist-section.is-hidden { display: none; }

.cat-section--alt { background: var(--color-cream-2); }

.cat-section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 70px);
}

/* ----- Producer block (brendovi.html) ----- */
.producers-list {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 7vw, 110px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.producer-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.producer-block--imgright {
  direction: rtl;
}
.producer-block--imgright > * { direction: ltr; }

.producer-block__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, rgba(101,0,33,0.45), rgba(23,23,23,0.75)),
    radial-gradient(circle at 50% 30%, rgba(201,162,77,0.22), transparent 60%);
  background-color: var(--color-wine-dark);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.producer-block__media--strana {
  background:
    linear-gradient(160deg, rgba(23,23,23,0.7), rgba(101,0,33,0.55)),
    radial-gradient(circle at 30% 70%, rgba(201,162,77,0.2), transparent 60%);
}
.producer-block__media--rakija {
  background:
    linear-gradient(160deg, rgba(42,7,18,0.7), rgba(23,23,23,0.65)),
    radial-gradient(circle at 70% 30%, rgba(201,162,77,0.18), transparent 60%);
}
.producer-block__media::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.producer-block__initial {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 500;
  color: var(--color-cream);
  letter-spacing: 0.04em;
  line-height: 1;
}

.producer-block__tag {
  position: absolute;
  top: 22px; left: 24px;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}

.producer-block__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 58ch;
}

.producer-block__name {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}

.producer-block__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-stone);
  margin-bottom: 26px;
}

.producer-block__wines {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.producer-block__wines li {
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border: 1px solid var(--border-light);
  background: var(--color-white);
  color: var(--color-charcoal);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.producer-block__wines li:hover {
  border-color: var(--color-gold);
  background: var(--color-cream);
}

/* ----- Cenovnik render target ----- */
.pricelist-section__body {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ----- Gallery page note ----- */
.gallery__note {
  max-width: 56ch;
  margin: clamp(40px, 5vw, 70px) auto 0;
  text-align: center;
  font-size: 13.5px;
  font-style: italic;
  color: var(--color-stone);
}

/* ----- Contact page (kontakt.html) ----- */
.contact-page {
  background: var(--color-cream);
  padding: clamp(70px, 9vw, 130px) var(--gutter);
  border-top: 1px solid var(--border-light);
}

.contact-page__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  gap: clamp(40px, 5vw, 90px);
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.contact-page__info { padding-top: 6px; }

.contact-page__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--border-light);
}
.contact-page__list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-charcoal);
}
.contact-page__label {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-gold);
}
.contact-page__list a { color: var(--color-charcoal); border-bottom: 1px solid var(--border-light); padding-bottom: 1px; }
.contact-page__list a:hover { color: var(--color-wine); border-bottom-color: var(--color-gold); }

.contact-page__form {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-page__form .section-eyebrow { margin-bottom: 10px; }
.contact-page__form .section-title { font-size: clamp(28px, 3vw, 44px); margin-bottom: 14px; }

.contact-page__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-page__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-page__field > span {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-stone);
}
.contact-page__field input,
.contact-page__field select,
.contact-page__field textarea {
  font: inherit;
  font-size: 14.5px;
  color: var(--color-charcoal);
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  background: var(--color-cream);
  border-radius: 0;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  width: 100%;
}
.contact-page__field textarea { resize: vertical; min-height: 130px; }
.contact-page__field input:focus,
.contact-page__field select:focus,
.contact-page__field textarea:focus {
  outline: 0;
  border-color: var(--color-gold);
  background: var(--color-white);
}

.contact-page__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--color-stone);
  line-height: 1.6;
}
.contact-page__check input { margin-top: 4px; accent-color: var(--color-wine); }

.contact-page__note {
  font-size: 12px;
  font-style: italic;
  color: var(--color-stone);
  margin-top: 6px;
}

/* ----- Final CTA on inner pages ----- */
.page-cta {
  padding: clamp(90px, 12vw, 180px) var(--gutter);
  color: var(--color-cream);
  text-align: center;
  isolation: isolate;
  background:
    linear-gradient(135deg, var(--color-wine-dark) 0%, var(--color-wine) 60%, var(--color-charcoal-2) 100%);
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 80% 0%, rgba(201,162,77,0.18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(101,0,33,0.5), transparent 55%),
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 25% 100%;
}

.page-cta__inner { max-width: 760px; margin: 0 auto; }

.page-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.6vw, 90px);
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.page-cta__text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 56ch;
  margin: 0 auto 36px;
}

.page-cta__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.page-cta__note {
  font-size: 12px;
  letter-spacing: 0.06em;
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* Laptop */
@media (max-width: 1440px) {
  :root { --header-h: 78px; }
  .nav-link { padding: 10px 14px; }
  .brand__logo { height: 40px; }
  .lang-switch { padding: 10px 14px; font-size: 10.5px; }
}

/* Smaller laptop / large tablet */
@media (max-width: 1180px) {
  .producers__grid { grid-template-columns: repeat(2, 1fr); }
  .assortment__grid { grid-template-columns: repeat(3, 1fr); }
  .brand__logo { height: 36px; }
  .nav-link { padding: 10px 11px; }
  .lang-switch { padding: 10px 12px; }

  .page-hero { min-height: max(48vh, 380px); }
}

/* Tablet */
@media (max-width: 960px) {
  :root { --header-h: 70px; --gutter: 28px; }

  /* Hide desktop nav, show toggle */
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Mobile header: logo flush left, hamburger flush right, both ~30px from edges */
  .site-header__inner {
    display: flex;
    grid-template-columns: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
  }

  .brand__name { display: none; }
  .brand__logo { height: 34px; }
  .brand { min-height: 44px; justify-content: flex-start; }

  .assortment__grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .producers__grid  { grid-template-columns: repeat(2, 1fr); }

  .why__grid { grid-template-columns: 1fr; }
  .why-point + .why-point {
    border-left: 0;
    border-top: 1px solid var(--border-light);
  }

  .editorial-dark__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .editorial-dark__cell { aspect-ratio: 4 / 3; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery__cell { grid-column: span 1; grid-row: span 2; }
  .gallery__cell--tall { grid-row: span 2; }
  .gallery__cell--wide { grid-column: span 2; }

  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__contact { grid-column: 1 / -1; }

  /* Pricelist tables — switch to card per row */
  .pricelist-table__head { display: none; }
  .pricelist-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 22px;
  }
  .pricelist-table__row span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
  }
  .pricelist-table__row span::before {
    content: attr(data-label);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--color-stone);
    text-transform: uppercase;
    font-weight: 600;
    align-self: center;
  }
  .pricelist-table__row span:first-child::before { color: var(--color-gold); }

  .contact-cta__info { grid-template-columns: 1fr; }

  /* Inner pages */
  .producer-block {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 30px;
  }
  .producer-block--imgright { direction: ltr; }
  .producer-block__media { max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 3; }
  .producer-block__body { align-items: center; text-align: center; margin: 0 auto; }
  .producer-block__wines { justify-content: center; }

  .cat-filter__btn { padding: 16px 18px; }
  .cat-filter__btn::after { left: 18px; right: 18px; }

  .contact-page__inner { grid-template-columns: 1fr; }
  .contact-page__row   { grid-template-columns: 1fr; }
  .contact-page__list li { grid-template-columns: 110px 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: 20px; }

  /* Header: 50px edge padding, +20% logo & hamburger */
  .site-header__inner { padding: 0 50px; }
  .brand__logo { height: 36px; }
  .brand { min-height: 48px; }
  .menu-toggle { width: 48px; height: 48px; margin: 0; }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
  .back-to-top svg { width: 16px; height: 16px; }

  .hero__side { display: none; }

  /* Hero — vertically center the content block inside a safe area.
     Top padding reserves space for the navbar.
     Bottom padding reserves space for the slider controls.
     Whatever's left, the content centers within. */
  .hero {
    align-items: center;
    padding-top: 100px;
    padding-bottom: 110px;
  }
  .hero__content {
    padding-bottom: 0;
  }
  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.28em;
    margin-bottom: 16px;
  }
  .hero__title {
    font-size: clamp(40px, 11vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.02em;
  }
  .hero__lede {
    font-size: 14px;
    line-height: 1.55;
    margin-top: 20px;
    max-width: 42ch;
  }
  .hero__cta {
    gap: 10px;
    margin-top: 26px;
  }
  .hero__cta .btn {
    width: 100%;
    max-width: 320px;
    min-height: 46px;
    padding: 13px 22px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  /* Slider controls — slightly smaller, more breathing room from the edges */
  .hero__controls { gap: 8px; bottom: 24px; right: 22px; }
  .slider-arrow { width: 36px; height: 36px; }
  .hero__counter { font-size: 11px; min-width: 54px; }

  .producers__grid { grid-template-columns: 1fr; }
  .producers__tabs { gap: 4px; padding: 10px 0; }
  .producers__tab  { padding: 8px 14px; font-size: 10.5px; letter-spacing: 0.18em; }
  .producers__tab::after { left: 14px; right: 14px; }

  .assortment-card__tags li { font-size: 10.5px; padding: 5px 10px; }

  .pricelist-block__head { padding: 22px 20px; }
  .pricelist-table__row { padding: 16px 20px; }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery__cell, .gallery__cell--tall, .gallery__cell--wide {
    grid-column: span 1; grid-row: span 1;
  }

  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__contact { grid-column: 1; }
  .site-footer__bottom { flex-direction: column; align-items: center; text-align: center; }

  .contact-cta__buttons .btn { width: 100%; }

  /* Inner pages — mobile */
  .page-hero { min-height: max(55vh, 360px); }
  .page-hero__inner { padding: 30px var(--gutter); }
  .page-hero__title { font-size: clamp(32px, 8.5vw, 48px); margin: 10px 0 18px; }
  .page-hero__text { font-size: 14.5px; }

  .cat-filter__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cat-filter__inner::-webkit-scrollbar { display: none; }
  .cat-filter__btn { padding: 14px 16px; font-size: 10px; letter-spacing: 0.2em; }
  .cat-filter__btn::after { left: 16px; right: 16px; }

  .producer-block__name { font-size: clamp(28px, 8vw, 40px); }
  .producer-block__media { aspect-ratio: 4 / 3; }

  .page-cta__buttons .btn { width: 100%; }

  .contact-page__list li { grid-template-columns: 1fr; gap: 6px; }
  .contact-page__form { padding: 26px 22px; }
}

/* Small phones (≤ 390px) — iPhone 13 / 13 mini / 14 */
@media (max-width: 390px) {
  .hero__title { font-size: clamp(36px, 10vw, 48px); }
  .hero__lede  { font-size: 13.5px; }
  .hero {
    padding-top: 92px;
    padding-bottom: 100px;
  }
  .hero__cta .btn {
    font-size: 10.5px;
    padding: 12px 20px;
    min-height: 44px;
  }
}

/* Very short viewports (e.g., iPhone SE landscape, older devices) — tighten the safe zone */
@media (max-width: 640px) and (max-height: 640px) {
  .hero {
    padding-top: 86px;
    padding-bottom: 92px;
  }
}

/* Print-friendly fallback */
@media print {
  .preloader, .site-header, .mobile-menu, .hero__controls, .back-to-top { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================================
   Brand logo display (producer-block on brendovi / en/brands)
   When the client provides an official logo, the JS-free fallback works like
   this: the markup ships with .has-logo and an <img>; if the file fails to
   load, an inline onerror handler strips .has-logo and removes the broken
   image, so the existing initials fallback shows. No broken image icons,
   no JS dependency, no layout shift.
   ========================================================================= */
/* Uniform tab dimensions — every producer card has the same logo area
   width and height at any given breakpoint, regardless of whether a logo
   image or the initials fallback renders inside. Replaces aspect-ratio
   sizing so the tab is intentional and consistent. */
.producer-block__media {
  aspect-ratio: auto;
  height: 320px;
  min-height: 0;
}
.producer-block__logo {
  position: relative;
  max-width: min(90%, 460px);
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.producer-block__media.has-logo {
  background: var(--color-cream);
  border-color: rgba(101, 0, 33, 0.10);
  padding: 28px;
}
.producer-block__media.has-logo::before { display: none; }
.producer-block__media.has-logo .producer-block__initial { display: none; }
.producer-block__media.has-logo .producer-block__tag { color: var(--color-wine); }

/* Initials fallback — sized to the new uniform tab, not the original
   tall cinematic card. Stays centered, never tiny. */
.producer-block__media .producer-block__initial {
  font-size: clamp(72px, 9vw, 150px);
}

/* Laptop */
@media (max-width: 1180px) {
  .producer-block__media { height: 290px; }
  .producer-block__logo {
    max-width: min(88%, 420px);
    max-height: 195px;
  }
}

/* Tablet */
@media (max-width: 960px) {
  .producer-block__media { height: 260px; }
  .producer-block__media.has-logo { padding: 24px; }
  .producer-block__logo {
    max-width: 84%;
    max-height: 170px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .producer-block__media { height: 220px; }
  .producer-block__media.has-logo { padding: 20px; }
  .producer-block__logo {
    max-width: 86%;
    max-height: 140px;
  }
  .producer-block__media .producer-block__initial {
    font-size: clamp(58px, 16vw, 92px);
  }
}

/* Small mobile (≤480) */
@media (max-width: 480px) {
  .producer-block__media { height: 190px; }
  .producer-block__media.has-logo { padding: 18px; }
  .producer-block__logo {
    max-width: 88%;
    max-height: 120px;
  }
  .producer-block__media .producer-block__initial {
    font-size: clamp(48px, 18vw, 72px);
  }
}
