/* Baťova svobodárna - one-page presentation */

:root {
  --bg: #f7f5f3;
  --bg-soft: #efebe6;
  --card: #fcfbfa;
  --ink: #333333;
  --ink-muted: #6b6b6b;
  --line: rgba(122, 122, 122, 0.45);
  --btn: #e68364;
  --btn-hover: #d26f50;
  --accent: #d68a69;
  --radius: 16px;
  --wrap: 1140px;
  --gutter: 20px;
  --header-h: 64px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: #f9f8f6;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 90px 0; }
/* menu jumps: land with the title ~30px under the fixed header, not 90px */
.section[id] { scroll-margin-top: calc(var(--header-h) - 50px); }

.eyebrow {
  display: block;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.title { font-size: 34px; margin-bottom: 28px; }
.lead { max-width: 820px; margin-bottom: 28px; }

.rounded { border-radius: var(--radius); overflow: hidden; }

/* Section backgrounds - neighbours never share a colour */
.bg-1 { background: #f4f3f0; }
.bg-2 { background: #f9f8f6; }
.bg-w { background: #fff; }
.centered { text-align: center; }
.centered .gallery { text-align: left; }
.dark { background: #221e1c; color: #fff; }
.dark .eyebrow { color: #a7a29e; }
.dark .card { border-color: rgba(255, 255, 255, .22); }
.dark .card p { color: #9c9793; }
.dark .gallery a { background: #2e2926; }



/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--btn-hover); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--btn); text-decoration: none; font-size: 17px; font-weight: 500; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .12);
}
.header .wrap {
  max-width: none;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { font-family: var(--serif); font-size: 28px; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  color: #1f2124;
  padding: 8px 14px;
  border-radius: 12px;
  transition: background .2s;
}
.nav a:hover { background: rgba(0, 0, 0, .06); }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  margin-top: var(--header-h);
  height: min(690px, 88vh);
  background: #cfd6dc url("../img/hero.jpg") center 60% / cover no-repeat;
}
.intro { text-align: center; padding: 40px 0 56px; }
.intro h1 { font-size: 34px; }
.intro p { margin-top: 6px; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact svg { width: 34px; height: 34px; margin: 0 0 22px 10px; color: var(--btn); }
.fact small { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); padding: 0 10px; }
.fact strong { display: block; font-weight: 500; font-size: 17px; padding: 4px 10px 0; }

/* ---------- Two-column blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.top { align-items: start; }
.split > * { min-width: 0; } /* never let a wide child push the page sideways */
.split.narrow-left { grid-template-columns: 1fr 2fr; }

/* ---------- Galleries ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform .5s ease, filter .3s;
}
.gallery a:hover img { transform: scale(1.04); }
.gallery.plans { gap: 18px; }
.gallery.plans img { aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.gallery.tall { max-width: 700px; margin: 0 auto; gap: 18px; }
.gallery.tall img { aspect-ratio: 698 / 1000; }
.gallery.tall a:hover img { transform: none; filter: brightness(.75); }
.gallery.docs { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery.docs a { border-radius: 8px; background: #fff; }
.gallery.docs img { aspect-ratio: 1060 / 1500; object-fit: contain; }

/* ---------- Embeds ---------- */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #222; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #111; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-cover span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border-radius: 14px;
  background: #ff0033;
  display: grid; place-items: center;
  transition: transform .2s;
}
.video-cover:hover span { transform: translate(-50%, -50%) scale(1.08); }
.video-cover svg { width: 24px; height: 24px; margin-left: 2px; color: #fff; }

/* ---------- Cards (investment potential, documents) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 32px; margin: 40px 20px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 36px 36px; }
.card svg { width: 26px; height: 26px; margin-bottom: 16px; color: var(--btn); }
.card h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; margin: 12px 0 10px; }
.card p { font-size: 15px; }

.docs-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 0 10px; }
.doc { background: #f9f8f6; border-radius: var(--radius); padding: 16px 28px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.doc > svg { width: 46px; height: 46px; margin: 0 0 18px; color: var(--btn); }
.doc h3 { font-size: 40px; margin-bottom: 20px; }
.doc p { font-size: 17px; margin-bottom: 24px; }
.doc .btn, .doc .link-arrow { margin-top: auto; }
.doc .link-arrow { padding: 11px 0; font-weight: 600; }
.doc .btn { font-size: 17px; padding: 12px 26px; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 6px; background: #efeeeb; border: 1px solid #e8e6e2; border-radius: var(--radius); padding: 5px; margin: 12px 0 36px; }
.tabs button {
  font: inherit;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 17px;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.tab-panel[hidden] { display: none; }

/* ---------- Before / after map ---------- */
.compare { position: relative; aspect-ratio: 2 / 1; overflow: hidden; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none;
}
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, .25);
}
.compare .handle::before {
  content: "\25C2\2009\25B8"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: #fff; font-size: 15px; line-height: 1; white-space: nowrap;
  text-shadow: 0 0 4px rgba(0, 0, 0, .4);
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Parking ---------- */
.parking h3 { font-size: 34px; margin-bottom: 20px; }
.parking p { font-size: 17px; }
.parking strong { font-weight: 600; }
.after-note { margin-top: 32px; }

/* ---------- History ---------- */
.icons-panel { background: #fff; border-radius: var(--radius); padding: 24px; }

/* ---------- Location ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin-top: 32px; }
.stat { border-left: 3px solid var(--btn); padding: 6px 0 10px 18px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; white-space: nowrap; }
.stat span { display: block; font-size: 17px; margin-top: 12px; }
.map { aspect-ratio: 4 / 3; }

/* ---------- Quote ---------- */
.quote { text-align: center; }
.section.quote { padding: 110px 0; }
.quote blockquote { margin: 0 auto; max-width: 560px; color: #f4f3f0; font-family: var(--serif); font-size: 46px; line-height: 1.05; }
.quote hr { width: 340px; max-width: 70%; border: 0; border-top: 1px solid var(--btn); margin: 36px auto 18px; }
.quote cite { font-style: normal; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--btn); }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.footer { background: #fff; }
.contact .lead { margin: 0 auto 44px; font-size: 17px; max-width: 540px; }
.contact .btn { font-size: 17px; padding: 12px 22px; }
.contact img { width: 110px; margin: 0 auto 14px; }
.contact h3 { font-size: 34px; margin-bottom: 18px; }

.footer { text-align: center; font-size: 13px; color: var(--ink-muted); padding: 0 0 36px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 20, 20, .94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 6px; }
.lightbox figcaption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; }
  .menu-toggle { display: block; order: 2; }
  .header .btn { order: 3; }
  .brand { order: 1; flex: 1; }
  .split, .split.narrow-left { grid-template-columns: 1fr; gap: 32px; }
  .split .media-first { order: -1; }
  .split .media-first img { max-width: min(420px, 100%); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery.plans { grid-template-columns: repeat(2, 1fr); }
  .quote blockquote { font-size: 38px; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  :root { --header-h: 58px; }
  .section { padding: 64px 0; }
  .section[id] { scroll-margin-top: calc(var(--header-h) - 40px); }
  .doc { padding: 24px 20px; }
  .doc h3 { font-size: 30px; }
  .stat b { font-size: 32px; }
  .brand { font-size: 22px; }
  .header .btn span { display: none; }
  .header .btn { padding: 10px 12px; }
  .hero { height: 62vh; min-height: 340px; }
  .intro h1, .title { font-size: 28px; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .gallery, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery.plans { grid-template-columns: 1fr; }
  .gallery.tall { grid-template-columns: repeat(4, 1fr); }
  .gallery.docs { grid-template-columns: repeat(2, 1fr); }
  .cards, .docs-cards { grid-template-columns: 1fr; }
  .cards { margin: 32px 0 0; }
  .card { padding: 24px; }
  .compare { aspect-ratio: 4 / 3; }
  .map { aspect-ratio: 1 / 1; }
  .quote blockquote { font-size: 30px; }
  .section.quote { padding: 72px 0; }
  .contact h3 { font-size: 28px; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: 10px 8px; }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  .brand { font-size: 19px; }
  .header .wrap { gap: 8px; }
  .menu-toggle { padding: 6px; }
  .tabs button { font-size: 15px; padding: 10px 4px; }
}
