/* Decinka — decentní vinotéka. One page, dark cellar palette, burgundy accent from the logo. */
:root {
  --bg: #120c0c;
  --bg-2: #1b1212;
  --bg-3: #241818;
  --paper: #f3e9dc;
  --paper-2: #e6d6c2;
  --ink: #2a1a17;
  --text: #e9dfd3;
  --muted: #b3a597;
  --wine: #b3202e;
  --wine-2: #7c1520;
  --gold: #c9a46a;
  --line: rgba(233, 223, 211, .14);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #e2c18b; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: clamp(72px, 11vw, 136px) 0; }
.kicker {
  font: 500 .74rem/1 var(--sans);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--wine); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(18, 12, 12, .0);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.bar.solid {
  background: rgba(18, 12, 12, .82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.bar-brand {
  font: 600 1.7rem/1 var(--serif); color: var(--paper); text-decoration: none;
  letter-spacing: .02em; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
}
.bar.solid .bar-brand { opacity: 1; transform: none; }
.bar-brand .dot { color: var(--wine); }
.bar-nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.bar-nav a {
  color: var(--text); text-decoration: none;
  font-size: .8rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.bar-nav a:hover { color: var(--paper); }
.bar-nav a.active { color: var(--paper); border-color: var(--wine); }
@media (max-width: 560px) {
  .bar { justify-content: center; }
  .bar-brand { display: none; }
  .bar-nav a { font-size: .7rem; letter-spacing: .12em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -4%; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(18,12,12,.35), rgba(18,12,12,.88) 72%),
    linear-gradient(to bottom, rgba(18,12,12,.3), rgba(18,12,12,.1) 40%, var(--bg)),
    url(../img/hero.webp) center / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero-inner { padding: calc(var(--bar-h) + 24px) 24px 96px; }
.hero-logo { width: min(360px, 76vw); margin: 0 auto 28px; mix-blend-mode: screen; }  /* drops the PNG's baked-in dark glow */
.hero h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.5rem); font-style: italic; font-weight: 500;
  color: var(--paper); text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.hero-hours {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 28px 0 34px; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(18,12,12,.45);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-2);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 0 rgba(179,32,46,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(179,32,46,0); } 100% { box-shadow: 0 0 0 0 rgba(179,32,46,0); } }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 2px;
  font: 400 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--wine); color: #fff; border: 1px solid var(--wine); }
.btn-solid:hover { background: #c9293a; color: #fff; }
.btn-ghost { color: var(--paper); border: 1px solid rgba(243,233,220,.4); }
.btn-ghost:hover { border-color: var(--paper); color: #fff; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; width: 1px; height: 56px;
  background: linear-gradient(var(--paper), transparent); opacity: .5;
}

/* ---------- welcome ---------- */
.welcome-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.welcome-text h2 { margin-bottom: 26px; }
.welcome-text p { margin: 0 0 18px; color: var(--text); }
.lead { font-size: 1.16rem; color: var(--paper) !important; }
blockquote {
  margin: 36px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--wine);
  font: italic 500 clamp(1.5rem, 2.6vw, 1.95rem)/1.3 var(--serif); color: var(--paper);
}
.signature { color: var(--muted) !important; }
.signature strong { color: var(--paper); font-weight: 500; }

.offer { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.offer-card {
  position: relative; padding: 26px 28px 24px 92px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 4px;
}
.offer-card h3 { font-size: 1.6rem; color: var(--paper); margin-bottom: 6px; }
.offer-card p { margin: 0; font-size: .98rem; color: var(--muted); }
.offer-card strong { color: var(--text); font-weight: 500; }
.offer-icon {
  position: absolute; left: 26px; top: 26px; width: 44px; height: 44px;
  fill: none; stroke: var(--paper-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.offer-icon .fill { fill: var(--wine); stroke: none; opacity: .9; }

/* ---------- our winemakers: logos in one cream tone (made from the wineries' own logos) ---------- */
.vinari { margin-top: clamp(56px, 8vw, 96px); text-align: center; }
.vinari .kicker { justify-content: center; }
.vinari .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.vinari-logos {
  list-style: none; margin: 8px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(36px, 7vw, 88px);
}
.vinari-logos img { width: auto; opacity: .85; }
/* optical sizes: the logos have very different shapes */
.logo-foukal { height: 34px; }
.logo-necas { height: 58px; }
.logo-soska { height: 48px; }
.logo-vajbar { height: 50px; }
@media (max-width: 560px) {
  .vinari-logos { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 30px 20px; }
  .logo-foukal { height: 26px; } .logo-necas { height: 50px; } .logo-soska { height: 40px; } .logo-vajbar { height: 42px; }
}

/* ---------- menu ---------- */
.menu { overflow: hidden; isolation: isolate; }
.menu-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(var(--bg), rgba(18,12,12,.72) 22%, rgba(18,12,12,.72) 78%, var(--bg)),
    url(../img/sklenice.webp) center / cover no-repeat;
}
.menu .wrap { max-width: 920px; text-align: center; }
.menu .kicker { justify-content: center; }
.menu .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.menu h2 { color: var(--paper); }
.menu-note { margin: 14px 0 44px; font: italic 500 1.3rem/1.4 var(--serif); color: var(--paper-2); }
.menu-card {
  position: relative; text-align: left;
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper); color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(42,26,23,.08), inset 0 0 0 10px var(--paper), inset 0 0 0 11px rgba(124,21,32,.35);
}
.menu-group h3 {
  font-size: 1.55rem; font-weight: 600; color: var(--wine-2);
  margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(124,21,32,.25);
}
/* groups flow in two columns, however many headings the menu has (admin-edited) */
.menu-cols { columns: 2 260px; column-gap: clamp(32px, 6vw, 72px); }
.menu-group { break-inside: avoid; padding-bottom: 30px; }
.menu dl { margin: 0; }
.menu dl > div { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 1rem; font-weight: 400; }
.menu dt { flex: 0 1 auto; }
.menu dt small { color: #7d6a5e; font-size: .82em; margin-left: 2px; white-space: nowrap; }
.menu dl > div::after { content: ""; order: 1; flex: 1 1 24px; border-bottom: 1px dotted rgba(42,26,23,.4); transform: translateY(-4px); }
.menu dd { order: 2; margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: right; }
.menu dd span { font-weight: 300; }
.menu-currency { margin: 0; font-size: .8rem; color: #7d6a5e; text-align: right; letter-spacing: .06em; }

/* ---------- gallery ---------- */
.gallery h2 { margin-bottom: 14px; }
.gallery-note { max-width: 640px; color: var(--muted); margin: 0 0 40px; }
.grid { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 12px; }
.grid li { break-inside: avoid; margin: 0 0 12px; }
.grid a { display: block; position: relative; overflow: hidden; border-radius: 3px; background: var(--bg-3); }
.grid img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.92) brightness(.92); }
.grid a:hover img, .grid a:focus-visible img { transform: scale(1.045); filter: none; }
.grid a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.gallery-sub { font-size: 1.9rem; color: var(--paper); margin: 0 0 6px; }
.gallery-sub-note { margin: 0 0 22px; color: var(--muted); font-size: .95rem; }
.gallery-sub ~ .gallery-sub { margin-top: 64px; }
.gallery-sub ~ .gallery-sub + .grid { margin-top: 22px; }
/* paintings: justified rows. Each tile's width grows with its proportions (--r, set by JS),
   so every tile in a row ends up the same height and the grid has a straight bottom edge. */
.grid-paintings { display: flex; flex-wrap: wrap; gap: 12px; columns: auto; }
.grid-paintings li { margin: 0; flex: var(--r, 1) 1 calc(var(--r, 1) * 210px); }
.grid-paintings li[hidden] { display: none; }
.grid-paintings::after { content: ""; flex: 999 1 0; }   /* last row keeps its height instead of stretching */
.grid-paintings img { filter: none; }
@media (max-width: 560px) {
  .grid-paintings { gap: 8px; }
  .grid-paintings li { flex-basis: calc(var(--r, 1) * 120px); }
}
/* painting name + size, shown on hover (always on touch screens, small) */
.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(10,6,6,.82));
  font: italic 500 1.08rem/1.2 var(--serif); color: var(--paper);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.tile-label small { display: block; font: 300 .72rem/1.5 var(--sans); letter-spacing: .08em; color: var(--paper-2); font-style: normal; }
.grid a:hover .tile-label, .grid a:focus-visible .tile-label { opacity: 1; transform: none; }
@media (hover: none) { .tile-label { opacity: 1; transform: none; padding-top: 22px; font-size: .95rem; } }
.more {
  display: block; margin: 20px auto 0; padding: 12px 26px; cursor: pointer;
  background: none; color: var(--paper); border: 1px solid rgba(243,233,220,.35); border-radius: 2px;
  font: 400 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.more:hover { border-color: var(--paper); background: rgba(243,233,220,.05); }
.more[hidden], .feed-fail[hidden] { display: none; }
.feed-fail { color: var(--muted); padding: 18px 20px; border: 1px dashed var(--line); }

/* ---------- contact ---------- */
.contact { overflow: hidden; isolation: isolate; background: var(--bg-2); }
.contact-bg {
  position: absolute; inset: 0 0 0 45%; z-index: -1; opacity: .22;
  background: linear-gradient(to right, var(--bg-2), transparent 40%), url(../img/lahve.webp) center / cover no-repeat;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.contact h2 { margin-bottom: 28px; }
address { font-style: normal; font-size: 1.12rem; line-height: 1.6; color: var(--paper); }
address strong { font: 600 1.35rem/1.4 var(--serif); }
.find { margin: 14px 0 32px; color: var(--muted); }
.find strong { color: var(--text); font-weight: 500; }
.hours { padding: 20px 24px; border: 1px solid var(--line); border-left: 2px solid var(--wine); background: rgba(18,12,12,.5); margin-bottom: 28px; }
.hours h3 { font: 500 .74rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hours p { margin: 0; display: flex; justify-content: space-between; gap: 16px; font: 500 1.45rem/1.3 var(--serif); color: var(--paper); flex-wrap: wrap; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.links li:last-child { border-bottom: 1px solid var(--line); }
.links span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.links a { color: var(--paper); text-decoration: none; overflow-wrap: anywhere; }
.links a:hover { color: var(--gold); }
.map { position: relative; min-height: 380px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map-link {
  position: absolute; right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 2px;
  background: var(--bg); color: var(--paper); text-decoration: none; font-size: .8rem; letter-spacing: .08em;
}

/* ---------- footer ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 28px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
.foot p { margin: 0; }
.foot-brand { font: 600 1.15rem/1 var(--serif); color: var(--paper); margin-right: 6px; }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(10,6,6,.95); color: var(--paper);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10,6,6,.6); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; max-height: 82dvh; object-fit: contain; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-cap {
  position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; padding: 0 70px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 18px;
  text-align: center; font: italic 500 1.15rem/1.3 var(--serif); color: var(--paper-2);
}
.lb-cap a { font: 400 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lb-cap a[hidden] { display: none; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: rgba(243,233,220,.08); color: var(--paper); font: 300 2rem/1 var(--sans); cursor: pointer;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(243,233,220,.18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: calc(50% - 26px); }
.lb-next { right: 16px; top: calc(50% - 26px); }

/* ---------- reveal on scroll (added by JS, so content shows without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .welcome-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-bg { inset: 0; opacity: .12; }
  .map { min-height: 320px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .offer-card { padding: 22px 20px 20px 78px; }
  .offer-icon { left: 18px; top: 22px; width: 40px; height: 40px; }
  .menu-card { padding: 26px 18px; }
  .menu dl > div { font-size: .95rem; }
  .links li { grid-template-columns: 1fr; gap: 2px; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; }
  .lb-cap { bottom: 22px; padding: 0 16px; font-size: 1rem; }
}

/* phones: tiles are too small for a label; the lightbox shows name and size */
@media (max-width: 560px) { .tile-label { display: none; } }
