/* =========================================================
   Vinarija Smiljković 90
   ========================================================= */

:root {
  --cream: #f5ede1;
  --cream-2: #ebdfcc;
  --paper: #fbf7f0;
  --ink: #2a1d1a;
  --muted: #6f5f58;
  --wine: #5c1a28;
  --wine-deep: #3a0f18;
  --gold: #b98a4e;
  --gold-soft: #d8b47c;
  --dark: #1b1311;
  --dark-2: #2a1f1b;
  --line: rgba(42, 29, 26, .14);
  --line-light: rgba(245, 237, 225, .18);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --pad: clamp(16px, 5vw, 72px);
  --maxw: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
em { font-style: italic; color: var(--gold); }

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--pad); }
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
h3 { font-family: var(--serif); font-weight: 600; }
.muted { color: var(--muted); }

.section-head { max-width: 720px; margin: 0 auto clamp(48px, 7vw, 88px); text-align: center; }
.section-head .section-lead { margin-top: 22px; color: var(--muted); font-size: 1.05rem; }
.section-head.light h2, .section-head.light { color: var(--cream); }
.section-head.light .section-lead { color: rgba(245, 237, 225, .78); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-wine { background: var(--wine); color: var(--cream); }
.btn-wine:hover { background: var(--wine-deep); }
.btn-wine[disabled] { opacity: .5; cursor: not-allowed; }
.btn-outline { border: 1px solid currentColor; color: var(--wine); }
.btn-outline:hover { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.btn-block { width: 100%; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js-pre .preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--dark);
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader img { width: 96px; height: auto; animation: spin 2.4s linear infinite; }
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader.hide img { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading, .is-loading body { overflow: hidden; }

/* ---------- Navigacija ---------- */
.nav {
  position: fixed; z-index: 50;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 32px), 1100px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 18px;
  background: rgba(27, 19, 17, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 180, 124, .18);
  border-radius: 999px;
  color: var(--cream);
  transition: transform .5s var(--ease), background .3s;
}
.nav.hide { transform: translate(-50%, -140%); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 34px; height: auto; }
.nav-logo span { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav-links a {
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; opacity: .82; transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid rgba(245, 237, 225, .2); border-radius: 999px; padding: 2px; }
.lang button { font-size: .66rem; font-weight: 600; letter-spacing: .1em; padding: 6px 9px; border-radius: 999px; opacity: .6; }
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--dark); opacity: 1; }
.cart-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wine); transition: background .2s;
}
.cart-btn:hover { background: var(--wine-deep); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--cream); stroke-width: 1.6; }
.cart-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--dark);
  font-size: .66rem; font-weight: 700; line-height: 19px; text-align: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.has { transform: scale(1); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--cream); transition: transform .3s var(--ease), top .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 360vh; background: var(--dark); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#hero-canvas, .hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; display: none; }
.hero-uses-video .hero-video { display: block; }
.hero-uses-video #hero-canvas { display: none; }
.hero-poster { object-fit: cover; }
.js-hero .hero-poster { opacity: 0; transition: opacity .4s; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 19, 17, .55) 0%, rgba(27, 19, 17, .1) 35%, rgba(27, 19, 17, .25) 65%, rgba(27, 19, 17, .85) 100%),
    radial-gradient(ellipse at 85% 75%, rgba(27, 19, 17, .55), transparent 55%);
}
.hero-text {
  position: absolute; right: var(--pad); bottom: 14vh;
  max-width: min(640px, calc(100% - 2 * var(--pad))); color: var(--cream); text-align: right;
}
.hero-line {
  font-family: var(--serif); line-height: 1.02;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 4px 30px rgba(0, 0, 0, .55);
}
/* tamni oreol iza teksta da se čita na svetlom delu snimka */
.hero-text { isolation: isolate; }
.hero-text::before {
  content: ""; position: absolute; z-index: -1;
  inset: -35% -25% -35% -45%;
  background: radial-gradient(closest-side, rgba(20, 13, 11, .62), rgba(20, 13, 11, .35) 55%, transparent);
  pointer-events: none;
}
.hero-text-2::before { inset: -45% -45% -45% -25%; }
html:not(.js-pre) :is(.hl-1, .hl-2, .hl-3),
.is-loaded :is(.hl-1, .hl-2, .hl-3) { animation: heroIn 1.4s var(--ease) both; }
.is-loading :is(.hl-1, .hl-2, .hl-3) { opacity: 0; }
.hl-1 { animation-delay: .15s; }
.hl-2 { animation-delay: .35s; }
.hl-3 { animation-delay: .6s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); } }
.hl-1 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 500; margin-bottom: 6px; }
.hl-2 { font-size: clamp(2.8rem, 6.4vw, 6rem); font-weight: 500; letter-spacing: -.02em; }
.hl-2 em { color: var(--gold-soft); }
.hl-3 { margin-top: 26px; font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #ecd2a6; }
.hero-text-2 { bottom: auto; top: 50%; transform: translateY(-50%); right: auto; left: var(--pad); text-align: left; }
.hl-4 { font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 500; }
.hl-4 em { color: var(--gold-soft); }
.hl-5 { margin-top: 14px; font-size: clamp(1.3rem, 2.4vw, 2rem); font-style: italic; font-weight: 600; }
.js-anim .hero-text-2 .hero-line { opacity: 0; }
.hero-end {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none;
}
.hero-end img { width: min(56vw, 460px); height: auto; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .5)); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--cream); font-size: .64rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .8;
}
.scroll-hint i { width: 1px; height: 42px; background: linear-gradient(var(--cream), transparent); animation: hint 2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Uvod ---------- */
.intro { text-align: center; max-width: 1000px; }
.intro-statement {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.22;
  font-weight: 500;
}
.intro-statement .w { display: inline-block; white-space: pre; }

/* ---------- Priča / timeline ---------- */
.story { padding-top: 0; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.timeline-line { position: absolute; left: 0; right: 0; top: calc(var(--fig-h, 300px) + 28px); height: 1px; background: var(--line); }
.timeline-line i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 1)); }
.tl-item figure { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; box-shadow: 0 20px 50px -24px rgba(42, 29, 26, .45); }
.tl-item figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tl-item:hover figure img { transform: scale(1.06); }
.tl-item figure img.focus-top { object-position: 50% 8%; } /* portret: lice ostaje u kadru */
.tl-dot { display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); border: 1px solid var(--gold); position: relative; margin-bottom: 22px; }
.tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.tl-item h3 { font-size: 2.2rem; font-style: italic; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.tl-item p { font-size: .94rem; color: var(--muted); }

/* ---------- Vinograd ---------- */
.vineyard { position: relative; overflow: hidden; color: var(--cream); background: var(--dark); }
.vineyard-bg { position: absolute; inset: -12% 0; }
.vineyard-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 28s ease-in-out infinite alternate; }
.vineyard-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 19, 17, .7), rgba(27, 19, 17, .55) 50%, rgba(27, 19, 17, .9)); }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
.vineyard-inner { position: relative; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.stat { padding: 34px 12px 0; text-align: center; border-right: 1px solid var(--line-light); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; color: var(--gold-soft); }
.stat strong b { font-weight: inherit; }
.stat span { display: block; margin-top: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .78; }

/* ---------- Galerija ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(140px, 17vw, 230px);
  gap: clamp(10px, 1.6vw, 20px);
}
.g-item { overflow: hidden; border-radius: var(--radius); grid-column: span 2; grid-row: span 2; }
.g-item img { width: 100%; height: 125%; object-fit: cover; }
.g-tall { grid-row: span 3; }
.g-wide { grid-column: span 4; grid-row: span 2; }
.g-quote {
  grid-column: span 2; grid-row: span 1;
  display: flex; flex-direction: column; justify-content: center; padding: 8px 6px;
}
.g-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; }
.g-quote cite { margin-top: 14px; font-style: normal; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* Bure iz galerije se na skrol raširi preko ekrana i "uđe" se u njega.
   Omotač je pune širine i seče sve što izađe van njega. */
.gallery-wrap { position: relative; overflow: clip; background: var(--cream); }
.js-anim .gallery-wrap { min-height: 100vh; min-height: 100svh; z-index: 7; }
.js-anim .gallery-wrap.behind { z-index: 1; }
/* GSAP pakuje zakucanu galeriju u .pin-spacer; i on mora biti iznad vina */
.pin-spacer:has(> #gallery-wrap) { z-index: 7 !important; }
.pin-spacer:has(> #gallery-wrap.behind) { z-index: 1 !important; }
/* Vina se podvuku pod poslednji ekran galerije: kad se uđe u bure i sve potamni,
   galerija ode iza i vina su odjednom tu */
.js-anim .wines { position: relative; z-index: 6; margin-top: -100vh; margin-top: -100svh; }
.g-barrel { position: relative; z-index: 5; will-change: transform; }
.g-barrel img { height: 100%; will-change: transform; }
.g-dark { position: absolute; inset: 0; background: var(--dark); opacity: 0; pointer-events: none; }

/* ---------- Vina ---------- */
.wines {
  /* vrh je ista tamna boja kao kraj prelaza kroz bure, bez šava */
  background:
    linear-gradient(var(--dark), rgba(27, 19, 17, 0) 260px),
    radial-gradient(ellipse at 50% 22%, rgba(92, 26, 40, .5), transparent 60%),
    var(--dark);
  color: var(--cream);
}
/* više prostora iznad naslova, da se "Naša vina" vidi posle izlaska iz grozda */
.wines > .section { padding-top: clamp(130px, 20vh, 240px); }
@media (max-width: 760px) { .wines > .section { padding-top: 120px; } }
.wine-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2vw, 26px); }
.wine-card {
  flex: 0 1 calc((100% - 2 * clamp(16px, 2vw, 26px)) / 3);
  display: flex; flex-direction: column;
  background: var(--dark-2);
  border: 1px solid rgba(216, 180, 124, .14);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .3s;
}
.wine-card:hover { transform: translateY(-6px); border-color: rgba(216, 180, 124, .4); }
.wine-img {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse at 50% 55%, #fffaf2 0%, #efe4d3 55%, #d9c7ae 100%);
}
.wine-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.wine-card:hover .wine-img img { transform: scale(1.05); }
.wine-info { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.wine-type { font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); }
.wine-info h3 { font-size: 1.9rem; font-weight: 500; line-height: 1.1; margin: 8px 0 4px; }
.wine-info h3 small { font-family: var(--sans); font-size: .75rem; font-weight: 500; opacity: .6; margin-left: 6px; }
.wine-short { font-family: var(--serif); font-style: italic; font-size: 1.1rem; opacity: .82; margin-bottom: 14px; }
.more { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-bottom: 18px; }
.buy { display: grid; gap: 8px; margin-top: auto; }
.buy button {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid rgba(216, 180, 124, .35);
  transition: background .25s, color .25s, border-color .25s;
}
.buy button b { font-weight: 600; white-space: nowrap; }
.buy button:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--dark); }
.buy button.primary { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.buy button.primary:hover { background: var(--cream); border-color: var(--cream); color: var(--wine); }
.buy button.added { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--dark); }
.wines-note { margin-top: 40px; text-align: center; font-size: .78rem; opacity: .55; }

/* ---------- Nagrade ---------- */
.awards { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.awards-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; box-shadow: 0 30px 70px -30px rgba(42, 29, 26, .5); }
.awards-img img { width: 100%; height: 100%; object-fit: cover; }
.awards-text h2 { margin-bottom: 24px; }
.awards-text p + p { margin-top: 14px; }
.awards-text > p:not(.eyebrow) { color: var(--muted); }
.awards-badge { margin-top: 30px !important; }
.awards-badge span {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--wine);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Degustaciona sala ---------- */
.hall { background: var(--paper); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; overflow: hidden; }
.hall-media { position: relative; height: 100%; min-height: 640px; }
.hall-a { position: absolute; inset: 0 12% 0 0; overflow: hidden; }
.hall-a img { width: 100%; height: 125%; object-fit: cover; }
.hall-b {
  position: absolute; right: 0; bottom: 10%; width: 44%; aspect-ratio: 3 / 2;
  border-radius: var(--radius); overflow: hidden; border: 6px solid var(--paper);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4);
}
.hall-b img { width: 100%; height: 100%; object-fit: cover; }
.hall-text { padding-left: clamp(24px, 4vw, 64px); }
.hall-text h2 { margin-bottom: 24px; }
.hall-text > p:not(.eyebrow) { color: var(--muted); max-width: 460px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 34px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: .8rem; font-weight: 500; }

/* ---------- Smeštaj ---------- */
.stay { background: var(--cream-2); }
/* Fotografija vinarije u zalasku preko celog ekrana, naslov preko nje */
.stay-hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--cream);
}
.stay-photo { position: absolute; inset: 0; margin: 0; }
.stay-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; display: block; }
.stay-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 13, 11, .78) 0%, rgba(20, 13, 11, .45) 40%, rgba(20, 13, 11, 0) 70%),
    linear-gradient(0deg, rgba(20, 13, 11, .75) 0%, rgba(20, 13, 11, 0) 50%);
}
.stay-hero-text {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad) clamp(64px, 9vw, 120px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35), 0 4px 30px rgba(0, 0, 0, .5);
}
.stay-hero-text h2 { margin-bottom: 20px; font-size: clamp(2.8rem, 6.4vw, 5.4rem); color: var(--cream); }
.stay-hero-text h2 em { color: var(--gold-soft); }
.stay-hero-text .eyebrow { color: var(--gold-soft); }
.stay-hero-text p:not(.eyebrow) { max-width: 500px; font-size: 1.05rem; color: rgba(245, 237, 225, .92); }
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 32px); max-width: 960px; margin: 0 auto; }
.room figure { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.room figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.room:hover figure img { transform: scale(1.05); }
.room figure img.room-low { object-position: 50% 62%; } /* kvadratna slika: kreveti u kadru */
.room h3 { font-size: 1.6rem; font-weight: 500; }
.room-price { font-size: .86rem; color: var(--muted); }
.room-price b { color: var(--wine); font-weight: 600; }
.amenities { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 56px 0 30px; }
.amenities li { position: relative; padding-left: 18px; font-size: .86rem; font-weight: 500; }
.amenities li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.stay-cta { text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--muted); }
.stay-cta a { color: var(--wine); font-weight: 600; text-decoration: none; }
.stay-cta a:hover { text-decoration: underline; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.contact h2 { margin-bottom: 32px; }
.contact dl { display: grid; gap: 4px; }
.contact dt { margin-top: 16px; font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.contact dd a { color: var(--wine); font-weight: 600; text-decoration: none; }
.contact dd a:hover { text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 30px; }
.social a { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--wine); color: var(--wine); text-decoration: none; font-size: .8rem; font-weight: 600; transition: background .2s, color .2s; }
.social a:hover { background: var(--wine); color: var(--cream); }
.contact-map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--cream-2); }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.4) sepia(.2); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--cream); text-align: center; padding: 80px var(--pad) 40px; }
.footer img { width: 220px; height: auto; margin: 0 auto 18px; opacity: .9; }
.footer p { font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.footer .footer-small { margin-top: 40px; font-family: var(--sans); font-style: normal; font-size: .74rem; opacity: .5; }
.footer .footer-credit { margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .74rem; opacity: .7; }
.footer-credit a { color: var(--gold-soft); text-decoration: none; font-weight: 600; letter-spacing: .04em; }
.footer-credit a:hover { text-decoration: underline; }

.footer .footer-company { margin-top: 28px; font-family: var(--sans); font-style: normal; font-size: .74rem; line-height: 1.8; opacity: .62; }
.footer .footer-links { margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: .76rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-links a { color: var(--cream); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--gold-soft); }

/* ---------- Pravne stranice ---------- */
[hidden] { display: none !important; }
.legal-page { background: var(--cream); }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 800px; margin: 0 auto; padding: 22px 20px; }
.legal-logo img { width: 52px; height: auto; }
.legal-back { color: var(--wine); font-size: .85rem; font-weight: 600; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.legal { max-width: 800px; margin: 0 auto; padding: 20px 20px 64px; font-size: .98rem; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 7vw, 3.4rem); line-height: 1.1; }
.legal-date { color: var(--muted); font-size: .82rem; margin: 8px 0 30px; }
.legal h2 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin: 30px 0 8px; color: var(--wine); }
.legal h3 { font-family: var(--sans); font-size: .95rem; margin-bottom: 8px; }
.legal p + p { margin-top: 10px; }
.legal a { color: var(--wine); overflow-wrap: anywhere; }
.legal-box { margin-top: 16px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.legal-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 26px 20px; background: var(--dark); font-size: .8rem; }
.legal-foot a { color: var(--cream); }

/* ---------- Modal vina ---------- */
.wine-modal {
  margin: auto; border: 0; padding: 0;
  width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px);
  border-radius: 18px; background: var(--paper); color: var(--ink);
  overflow: auto;
}
.wine-modal::backdrop { background: rgba(27, 19, 17, .7); backdrop-filter: blur(4px); }
.wine-modal[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.wm-body { display: grid; grid-template-columns: 1fr 1.2fr; }
.wm-img { background: radial-gradient(ellipse at 50% 55%, #fffaf2 0%, #efe4d3 60%, #d9c7ae 100%); }
.wm-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; aspect-ratio: 3 / 4; }
.wm-text { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.wm-text h3 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; line-height: 1; }
.wm-year { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: 6px 0 18px; }
.wm-year:empty { display: none; }
#wm-desc { color: var(--muted); margin: 18px 0 28px; }
.wm-text .buy button { border-color: var(--line); }
.wm-text .buy button:hover { background: var(--cream-2); color: var(--ink); border-color: var(--cream-2); }
.wm-text .buy button.primary { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.wm-text .buy button.primary:hover { background: var(--wine-deep); }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; background: rgba(255, 255, 255, .8);
}
.modal-close:hover { background: var(--cream-2); }

/* ---------- Korpa ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(27, 19, 17, .55); opacity: 0; transition: opacity .35s; }
.drawer-backdrop.show { opacity: 1; }
.drawer {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .5s var(--ease);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .2);
}
.drawer.open { transform: none; }
.drawer-head { position: relative; padding: 26px 24px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 2rem; }
.drawer-head .modal-close { top: 20px; right: 16px; background: transparent; }
.drawer-step { flex: 1; overflow-y: auto; padding: 18px 24px 28px; display: flex; flex-direction: column; }
.drawer-step[hidden] { display: none; }
.cart-items { list-style: none; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--cream-2); mix-blend-mode: multiply; }
.ci-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.ci-meta { font-size: .78rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; font-size: 1rem; }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 22px; text-align: center; font-size: .85rem; font-weight: 600; }
.ci-right { text-align: right; }
.ci-price { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.ci-remove { font-size: .7rem; color: var(--muted); text-decoration: underline; margin-top: 6px; }
.cart-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.cart-sum { margin-top: auto; padding-top: 20px; }
.cart-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }
.cart-sum > div b { font-weight: 600; text-align: right; }
.cart-sum .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 1.05rem; }
.cart-sum .total b { color: var(--wine); font-size: 1.25rem; }
.cart-pay { font-size: .78rem; color: var(--muted); margin: 6px 0 18px; }
.ship-note { font-weight: 500 !important; font-size: .8rem; color: var(--muted); max-width: 170px; }
.checkout label { display: block; margin-bottom: 12px; }
.checkout label > span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.checkout input, .checkout textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font: inherit; font-size: .95rem; color: var(--ink);
}
.checkout input:focus, .checkout textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.checkout .invalid { border-color: #b3261e; }
.checkout .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout .check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 6px 0 4px; }
.checkout .check input { width: auto; margin-top: 5px; accent-color: var(--wine); }
.checkout .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link-back { align-self: flex-start; font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.link-back:hover { color: var(--wine); }
.form-error { color: #b3261e; font-size: .86rem; margin: 6px 0; }
.cart-sum.compact { margin-top: 10px; }
.done { text-align: center; justify-content: center; gap: 14px; }
.done h3 { font-size: 2.2rem; font-weight: 500; color: var(--wine); }

/* ---------- Animacije (početna stanja samo kad JS radi) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    padding: 18px 22px; border-radius: 22px;
    background: rgba(27, 19, 17, .96); border: 1px solid rgba(216, 180, 124, .18);
  }
  .nav-links.open a { padding: 10px 0; font-size: .8rem; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .timeline-line { display: none; }
  .hall { grid-template-columns: 1fr; }
  .hall-media { min-height: 0; height: 70vh; }
  .hall-text { padding: 72px var(--pad); }
}
@media (max-width: 760px) {
  .nav { top: 12px; padding-left: 14px; }
  .nav-logo span { display: none; }

  /* Hero na telefonu: tekst dole preko tamnog prelaza, ne preko Vladimira */
  .hero { height: 250vh; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(27, 19, 17, .4) 0%, rgba(27, 19, 17, 0) 18%, rgba(27, 19, 17, 0) 50%, rgba(27, 19, 17, .62) 70%, rgba(27, 19, 17, .9) 100%);
  }
  .hero-text, .hero-text-2 {
    left: 20px; right: 20px; top: auto; bottom: 92px; transform: none;
    max-width: none; text-align: left;
  }
  .hero-text::before { display: none; }
  .hl-1 { font-size: 1.45rem; margin-bottom: 4px; }
  .hl-2 { font-size: clamp(2.6rem, 12vw, 3.4rem); line-height: 1; }
  .hl-3 { margin-top: 18px; font-size: .68rem; letter-spacing: .24em; }
  .hl-4 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.05; }
  .hl-5 { font-size: 1.2rem; margin-top: 10px; }
  .scroll-hint { bottom: 18px; }
  .scroll-hint i { height: 30px; }
  .hero-end img { width: 68vw; }

  .section-head { margin-bottom: 44px; }
  .section-head .section-lead { font-size: .98rem; }
  .intro-statement { font-size: 1.75rem; line-height: 1.25; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 8px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .g-item, .g-tall, .g-wide { grid-column: span 1; grid-row: span 1; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-column: span 2; grid-row: span 1; }
  .g-quote { grid-column: span 2; padding: 20px 4px; }
  .awards, .contact { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr; }
  .wm-body { grid-template-columns: 1fr; }
  .wm-img img { aspect-ratio: 4 / 3; }
  /* Vina: jedno vino po redu, slika levo, tekst i dugmad desno */
  .wine-grid { flex-direction: column; gap: 14px; }
  .wine-card { flex: none; width: 100%; flex-direction: row; }
  .wine-card:hover { transform: none; }
  .wine-img { flex: 0 0 38%; aspect-ratio: auto; min-height: 230px; }
  .wine-info { padding: 16px 14px 16px 16px; min-width: 0; }
  .wine-type { font-size: .6rem; letter-spacing: .14em; }
  .wine-info h3 { font-size: 1.6rem; margin: 6px 0 2px; }
  .wine-short { font-size: 1rem; margin-bottom: 10px; }
  .more { margin-bottom: 14px; }
  .buy { gap: 7px; }
  .buy button { padding: 9px 12px; font-size: .72rem; gap: 6px; }

  /* Degustaciona sala */
  .hall-media { height: 64vh; }
  .hall-a { inset: 0; }
  .hall-b { width: 74%; right: 16px; bottom: -64px; border-width: 4px; }
  .hall-text { padding-top: 100px; }

  .awards-badge span { font-size: .64rem; letter-spacing: .08em; padding: 9px 14px; }
  /* na telefonu: zgrada u kadru, tekst dole preko tamnog prelaza */
  .stay-photo img { object-position: 30% 50%; }
  .stay-hero::after {
    background: linear-gradient(0deg, rgba(20, 13, 11, .92) 0%, rgba(20, 13, 11, .7) 32%, rgba(20, 13, 11, 0) 62%);
  }
  .stay-hero-text { padding: 0 20px 48px; }
  .stay-hero-text h2 { font-size: clamp(2.5rem, 11vw, 3.2rem); margin-bottom: 14px; }
  .stay-hero-text p:not(.eyebrow) { font-size: .98rem; }
  .rooms { grid-template-columns: 1fr; }
  .stay-cta { flex-direction: column; align-items: center; }
  .contact-map, .contact-map iframe { min-height: 300px; }
  .footer img { width: 180px; }
}
@media (max-width: 420px) {
  .timeline { grid-template-columns: 1fr; }
  .tl-item figure { aspect-ratio: 4 / 3; }
  .lang button { padding: 6px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100vh; }
  .vineyard-bg img, .scroll-hint i, .hl-1, .hl-2, .hl-3 { animation: none !important; opacity: 1 !important; }
  .preloader img { animation-duration: 6s; }
  .js-anim [data-reveal] { opacity: 1; transform: none; }
}
