/* PD Brezina Pravotice — static rebuild of the 2020 Elementor design */
:root {
  --yellow: #fff000;
  --gold: #cdb26e;
  --dark: #23231e;
  --dark-2: #3a3a3a;
  --text: #e6e3d8;
  --text-dim: #bdb9ab;
  --ink: #23231e;
  --wrap: 1180px;
  --head: "Biryani", system-ui, sans-serif;
  --body: "Athiti", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark) url(/img/pd-brezina-pasy-cierne-150.png) repeat;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover, a:focus-visible { color: var(--yellow); }
h1, h2, h3 { font-family: var(--head); font-weight: 300; line-height: 1.25; margin: 0 0 .6em; letter-spacing: .04em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- top navigation ---------- */
.nav { background: var(--yellow); position: relative; z-index: 10; }
.nav .wrap { display: flex; justify-content: flex-end; align-items: center; min-height: 64px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.nav a { color: var(--ink); text-decoration: none; font: 400 1.05rem var(--body); letter-spacing: .02em; }
.nav a:hover, .nav a[aria-current="page"] { color: #8d8a7c; }
.nav-home { margin-right: auto; display: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav .wrap { justify-content: space-between; min-height: 56px; }
  .nav-home { display: block; font: 400 1.1rem var(--head); color: var(--ink); text-decoration: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    background: var(--ink); color: var(--yellow); border: 0; border-radius: 3px;
    padding: 8px 14px; font: 500 .95rem var(--body); letter-spacing: .08em;
  }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--yellow);
            flex-direction: column; gap: 0; padding: 4px 20px 14px; box-shadow: 0 8px 16px rgba(0,0,0,.25); }
  .nav.open ul { display: flex; }
  .nav li a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(35,35,30,.12); }
}

/* ---------- hero (yellow band with wheat) ---------- */
.hero {
  background:
    url(/img/pd-brezina-obilie-zlte-150.png) repeat-x left bottom,
    var(--yellow) url(/img/pd-brezina-pasy-zlte-150.png) repeat;
  min-height: 300px;
  position: relative;
}
.hero .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 300px; }
.hero-logo { width: 240px; margin-left: 50px; }
.band {  /* dark wheat strip under the yellow band */
  background: url(/img/pd-brezina-obilie-cierne-150.png) repeat-x left top;
  min-height: 114px;
}
.hero-photo {
  width: 460px; max-width: 42vw; align-self: flex-end; margin-bottom: -160px;
  border-radius: 50%; border: 6px solid var(--yellow); background: var(--yellow);
  position: relative; z-index: 2;
}

/* home variant */
.home .hero { min-height: 0; padding: 20px 0 90px; text-align: center; color: var(--ink);
  background: url(/img/pd-brezina-obilie-zlte-250px.png) repeat-x left bottom,
              var(--yellow) url(/img/pd-brezina-pasy-zlte-250px.png) repeat; }
.home .hero .wrap { display: block; min-height: 0; }
.home .hero-logo { margin: 0 auto 10px; width: 200px; }
.home .hero h1 { font: 400 1.15rem/1.6 var(--body); letter-spacing: .04em; margin: 0; }
.home .band { background-image: url(/img/pd-brezina-obilie-cierne-250px.png); min-height: 190px; margin-bottom: -190px; }

/* ---------- main content ---------- */
main { padding-bottom: 60px; }
.page-title { color: var(--yellow); font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; margin: 40px 0 36px 30px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 0 0 56px; }
.row.flip > :first-child { order: 2; }
.row .circle { width: 100%; max-width: 360px; justify-self: center; }
.row h2 { color: var(--gold); font-size: 1.75rem; text-transform: uppercase; text-align: center; }
.row .text { text-align: center; color: var(--text); }
.row .text.left { text-align: left; }
.lead { text-align: center; max-width: 900px; margin: 0 auto 30px; }
.circle { border-radius: 50%; box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.pair { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-bottom: 40px; }
.pair img { width: 320px; max-width: 80vw; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding: 6px 0 6px 28px; position: relative; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--yellow); }
.dots { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; }
.dots li:not(:last-child)::after { content: "•"; margin: 0 .5em; color: var(--gold); }
.partner { display: inline-block; margin-top: 10px; }
.partner img { width: 220px; margin: 0 auto; }
.note { background: rgba(255,240,0,.08); border-left: 3px solid var(--yellow); padding: 14px 18px; text-align: left; }

/* ---------- home tiles ---------- */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 60px; padding: 0 0 80px; position: relative; z-index: 2; }
.tile { width: 340px; text-align: center; text-decoration: none; }
.tile img { width: 100%; border-radius: 50%; border: 6px solid var(--yellow); background: var(--yellow); transition: transform .25s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile span { display: block; margin-top: 18px; color: var(--gold); font: 300 1.4rem var(--head); letter-spacing: .06em; text-transform: uppercase; }
.tile:hover span { color: var(--yellow); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 56px; }
.contact-grid h2 { color: var(--gold); font-size: 1.5rem; }
.contact-grid address { font-style: normal; }
.hours { border-collapse: collapse; }
.hours td { padding: 3px 18px 3px 0; }
.map { border: 0; width: 100%; height: 420px; display: block; filter: grayscale(.2); }
.map-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; height: 420px;
  background: #1b1b17; border: 1px solid #444; padding: 20px; }
.btn { display: inline-block; background: var(--yellow); color: var(--ink); text-decoration: none; padding: 10px 20px; border-radius: 3px; font-weight: 500; border: 0; cursor: pointer; font-family: var(--body); font-size: 1rem; }
.btn:hover { background: #fff; color: var(--ink); }

/* ---------- gallery ---------- */
.gallery-title { color: var(--gold); font-size: 1.5rem; text-transform: uppercase; border-bottom: 2px solid var(--text); padding-bottom: 12px; }
.gallery { columns: 4 220px; column-gap: 6px; }
.gallery a { display: block; margin-bottom: 6px; break-inside: avoid; }
.gallery img { width: 100%; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.9); }
dialog.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; }
dialog.lightbox button { position: fixed; background: rgba(0,0,0,.5); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; cursor: pointer; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; }
.lb-next { right: 10px; top: 50%; }

/* ---------- footer ---------- */
footer { background: var(--dark-2); border-top: 1px solid #555; color: #ddd; font-size: .95rem; padding: 36px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; }
footer a { color: #eee; }
footer p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero, .hero .wrap { min-height: 200px; }
  .hero-logo { width: 150px; margin-left: 0; }
  .hero-photo { width: 240px; margin-bottom: -90px; }
  .band { min-height: 90px; }
  .page-title { margin: 20px 0 30px; }
  .row, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .row.flip > :first-child { order: 0; }
  .row .circle { max-width: 280px; }
  .trio { grid-template-columns: 1fr; justify-items: center; }
  .trio img { max-width: 280px; }
  .tile { width: 260px; }
  .home .hero { padding-bottom: 110px; }
  .home .band { min-height: 120px; margin-bottom: -120px; }
}
@media (max-width: 480px) {
  .hero .wrap { gap: 10px; }
  .hero-logo { width: 120px; }
  .hero-photo { width: 180px; margin-bottom: -60px; }
  .tile { width: 220px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
