/* ===========================================================
   Pálenica Brestov — design tokens
   Subject: tradičná pestovateľská pálenica v obci Brestov.
   Paleta stavia na farbe destilátu (jantár/meď) na tmavom
   slivkovom podklade — nie krémová/terrakotová šablóna.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,900&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --plum-900: #241a26;
  --plum-800: #34232f;
  --plum-700: #402b38;
  --copper: #b5651d;
  --amber: #d99a3f;
  --amber-soft: #e8c088;
  --parchment: #efe6d6;
  --muted: #b3a58f;
  --line: rgba(239, 230, 214, 0.14);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--plum-900);
  color: var(--parchment);
  font-family: var(--body);
  line-height: 1.6;
  font-size: 1.05rem;
}

img { max-width: 100%; display: block; }

a {
  color: var(--amber-soft);
  text-decoration: none;
}
a:hover { color: var(--amber); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0 0 0.5em;
  color: var(--parchment);
  letter-spacing: 0.01em;
}

h1 { font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; color: var(--amber-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(36, 26, 38, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--parchment);
}
.brand span { color: var(--amber); }

nav.menu ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav.menu a {
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
nav.menu a:hover,
nav.menu a[aria-current="page"] {
  color: var(--parchment);
  border-bottom-color: var(--amber);
}

@media (max-width: 640px) {
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 0.85rem 1.25rem; }
  nav.menu ul { flex-wrap: wrap; row-gap: 0.5rem; column-gap: 1.1rem; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--amber);
  color: var(--plum-900);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4.5rem 1.5rem 4rem;
  max-width: var(--max);
  margin: 0 auto;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40ch;
}
.hero-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--plum-700), var(--plum-800));
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(36,26,38,0) 40%, rgba(36,26,38,0.55));
  pointer-events: none;
}

.news-card {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: var(--plum-800);
  padding: 1.1rem 1.3rem;
  border-radius: 2px;
}
.news-card .eyebrow { display: block; margin-bottom: 0.35rem; }
.news-card time,
.news-card strong { color: var(--amber-soft); font-family: var(--mono); font-weight: 400; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
}

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
section.alt { background: var(--plum-800); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.two-col.reverse .media { order: 2; }
.two-col img { border-radius: 4px; }
.two-col ul { padding-left: 1.1rem; color: var(--muted); }
.two-col li::marker { color: var(--copper); }
.two-col li { margin-bottom: 0.4rem; }

@media (max-width: 800px) {
  .two-col, .two-col.reverse .media { grid-template-columns: 1fr; order: initial; }
}

/* ---------- Process strip (genuine sequence: kvas -> destilácia -> ochutnávka) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  margin-top: 2.5rem;
}
.process .step {
  position: relative;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.process .step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  color: var(--amber);
  position: absolute;
  top: -0.85rem;
  left: 0;
  background: var(--plum-900);
  padding-right: 0.6rem;
  font-size: 0.95rem;
}
section.alt .process .step::before { background: var(--plum-800); }
.process h3 { margin-bottom: 0.4rem; }
.process p { color: var(--muted); margin: 0; font-size: 0.95rem; }

@media (max-width: 800px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  background: var(--plum-800);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 14, 21, 0.94);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}
.lightbox.open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-counter {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--amber-soft);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(52, 35, 47, 0.85);
  color: var(--parchment);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-btn:hover { background: var(--amber); color: var(--plum-900); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(52, 35, 47, 0.85);
  color: var(--parchment);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { background: var(--amber); color: var(--plum-900); }

@media (max-width: 640px) {
  .lightbox-btn { width: 2.6rem; height: 2.6rem; font-size: 1.3rem; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}

/* ---------- Cards / price note ---------- */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  background: var(--plum-800);
  padding: 1.5rem 1.75rem;
  border-radius: 2px;
  max-width: 46rem;
}
.notice .eyebrow { margin-bottom: 0.5rem; }
.phone-cta {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--amber);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.contact-grid dl { margin: 0; }
.contact-grid dt { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--copper); margin-top: 1.4rem; }
.contact-grid dt:first-child { margin-top: 0; }
.contact-grid dd { margin: 0.25rem 0 0; font-size: 1.05rem; }
.map-frame {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal details ---------- */
details.legal {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
details.legal summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--amber-soft);
}
details.legal p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--amber-soft); }
