/* =========================================================
   Dům Krokocín ⇄ byt Brno — editoriální styl
   ========================================================= */

/* ---------- Písma (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+2212;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

/* ---------- Proměnné ---------- */
:root {
  --cream: #f6f1e7;
  --beige: #ede5d5;
  --ink: #1e2a22;
  --green: #2f4a38;
  --green-deep: #24392c;
  --brown: #8c6f52;
  --rose: #b0766d;
  --line: rgba(30, 42, 34, 0.16);
  --hero-ink: #281c10;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 38rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.25; }

p { margin: 0 0 1.1rem; max-width: var(--measure); }

a { color: var(--green); }

::selection { background: var(--green); color: var(--cream); }

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 1.4rem;
  max-width: none;
}

.section {
  padding: clamp(2.75rem, 5.5vw, 4.75rem) var(--pad);
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
}

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 1.05rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-deep); }

.btn-ghost {
  color: var(--ink);
  background: rgba(246, 241, 231, 0.75);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: var(--cream); }

.btn-light { background: var(--cream); color: var(--green-deep); }
.btn-light:hover { background: #fff; }

.btn-outline-light {
  color: var(--cream);
  border: 1px solid rgba(246, 241, 231, 0.55);
}
.btn-outline-light:hover { border-color: var(--cream); }

/* ---------- Hlavička ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: rgba(36, 57, 44, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(246, 241, 231, 0.92);
  text-decoration: none;
  margin-left: 1.6rem;
}
.site-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: flex-start;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img { object-fit: cover; object-position: 62% 42%; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 241, 231, 0.97) 0%, rgba(246, 241, 231, 0.86) 32%, rgba(246, 241, 231, 0.4) 58%, rgba(246, 241, 231, 0) 76%),
    linear-gradient(180deg, rgba(246, 241, 231, 0.95) 0%, rgba(246, 241, 231, 0.5) 40%, rgba(246, 241, 231, 0) 64%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(6.5rem, 13vh, 9rem) var(--pad) clamp(2.5rem, 6vw, 4.5rem);
  max-width: 46rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.8vw, 5.2rem);
  margin-bottom: 1.4rem;
  color: var(--hero-ink);
}

.hero .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--hero-ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.badge {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(246, 241, 231, 0.82);
  border: 1px solid var(--line);
  color: var(--hero-ink);
}

.badge-strong {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

/* ---------- Miniatury fotek v hero ---------- */
.hero-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.strip-thumb {
  display: block;
  width: clamp(5.5rem, 9vw, 7.5rem);
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.strip-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  box-shadow: 0 12px 26px -14px rgba(30, 42, 34, 0.5);
  transition: transform 0.35s ease;
}

.strip-thumb:hover img { transform: scale(1.05); }

.strip-more {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 74, 56, 0.4);
  padding-bottom: 0.1rem;
  margin-left: 0.4rem;
}

.strip-more:hover { border-bottom-color: var(--green-deep); }

/* Mobil: fotka nahoře, text pod ní na krému */
@media (max-width: 40rem) {
  .hero { min-height: 0; display: block; }
  .hero-media, .hero-media img { position: relative; inset: auto; }
  .hero-media { height: 54svh; }
  .hero-media img { height: 100%; }
  .hero::after { display: none; }
  .hero-content { padding-top: 2.2rem; }
  .site-header { position: relative; background: var(--green-deep); }
  .nav-extra { display: none; }
  .site-nav a { margin-left: 1.1rem; font-size: 0.88rem; }
}

/* ---------- Úvodní trojice ---------- */
.intro { border-bottom: 1px solid var(--line); }

.intro-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.intro-item h3 { margin-bottom: 0.6rem; }

.intro-item .num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--rose);
  display: block;
  margin-bottom: 1rem;
}

.intro-item p { font-size: 0.98rem; margin: 0; }

/* ---------- Editoriální dvojsloupec ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .split { grid-template-columns: 5fr 6fr; }
  .split.flip > .split-media { order: 2; }
  .split-text.offset { padding-top: 3rem; }
}

.split-media img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 24px 60px -30px rgba(30, 42, 34, 0.45);
}

.split-media figcaption,
.gallery figcaption,
.photo-caption {
  font-size: 0.82rem;
  color: rgba(30, 42, 34, 0.6);
  margin-top: 0.7rem;
  letter-spacing: 0.02em;
}

/* ---------- Fotka nás dvou (kolečko) ---------- */
.couple {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 1.8rem 0 2rem;
}

.couple img {
  width: clamp(8.5rem, 18vw, 11.5rem);
  height: clamp(8.5rem, 18vw, 11.5rem);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 12px 30px -12px rgba(30, 42, 34, 0.45);
}

.couple figcaption {
  font-size: 0.88rem;
  color: rgba(30, 42, 34, 0.65);
  max-width: 12rem;
}

/* ---------- Kontaktní formulář (aktivní až s e-mailem v config.js) ---------- */
.contact-form {
  margin-top: 2rem;
  max-width: 34rem;
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: rgba(246, 241, 231, 0.85);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.contact-form textarea { min-height: 7.5rem; resize: vertical; }

.contact-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.contact-form .form-note {
  font-size: 0.82rem;
  color: rgba(246, 241, 231, 0.6);
  margin: 0;
}

/* ---------- Sekce Dům ---------- */
.house { background: var(--beige); }

.facts {
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.facts .fact {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-weight: 600;
  font-size: 0.95rem;
}

.facts dd {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(30, 42, 34, 0.85);
}

@media (max-width: 32rem) {
  .facts .fact { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ---------- Velká fotografie přes šířku ---------- */
.full-photo { padding: 0 var(--pad); }
.full-photo figure { max-width: 72rem; margin: 0 auto; }
.full-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 4px;
}

/* ---------- Zahrada — koláž ---------- */
.garden-collage {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2rem;
}

@media (min-width: 56rem) {
  .garden-collage {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
  .garden-collage figure:nth-child(2) { margin-top: 4rem; }
}

.garden-collage img { width: 100%; border-radius: 4px; }

.checklist {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: var(--measure);
}

.checklist li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.98rem;
}

.checklist li::before {
  content: "·";
  font-size: 1.6rem;
  line-height: 1;
  position: absolute;
  left: 0.2rem;
  top: 0.75rem;
  color: var(--brown);
}

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  margin-top: 2rem;
}

.gallery-grid a {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  outline-offset: 3px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid a:hover img { transform: scale(1.035); }

/* ---------- Poctivá sekce ---------- */
.honest-card {
  background: #fbf8f1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 52rem;
  margin: 0 auto;
}

.honest-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.honest-card ul {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.honest-card li {
  padding: 0.65rem 0 0.65rem 1.6rem;
  position: relative;
  font-size: 0.98rem;
  border-bottom: 1px dashed var(--line);
}

.honest-card li::before {
  content: "·";
  font-size: 1.6rem;
  line-height: 1;
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  color: var(--rose);
}

/* ---------- Kroky ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  counter-increment: step;
  border-top: 2px solid var(--green);
  padding-top: 1.2rem;
}

.step::before {
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--brown);
  display: block;
  margin-bottom: 0.6rem;
}

.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; margin: 0; }

.steps-note {
  margin-top: 2.2rem;
  font-size: 0.88rem;
  color: rgba(30, 42, 34, 0.65);
}

/* ---------- Kontakt ---------- */
.contact {
  background: var(--green-deep);
  color: var(--cream);
}

.contact .kicker { color: rgba(246, 241, 231, 0.65); }

.contact h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 26ch;
}

.contact p { color: rgba(246, 241, 231, 0.88); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.2rem 0 1.2rem;
}

.contact-names {
  font-size: 0.92rem;
  color: rgba(246, 241, 231, 0.7);
  letter-spacing: 0.04em;
}

.contact-hint {
  font-size: 0.88rem;
  color: rgba(246, 241, 231, 0.6);
  max-width: 34rem;
}

/* ---------- Patička ---------- */
.site-footer {
  padding: 2.2rem var(--pad);
  font-size: 0.85rem;
  color: rgba(30, 42, 34, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.site-footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 27, 22, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 4.5rem;
}

.lightbox img {
  max-width: min(94vw, 78rem);
  max-height: 78svh;
  object-fit: contain;
  border-radius: 3px;
}

.lightbox-bar {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(246, 241, 231, 0.85);
  font-size: 0.9rem;
  max-width: 90vw;
}

.lightbox-counter {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(246, 241, 231, 0.55);
  margin-top: 0.25rem;
}

.lightbox button {
  position: absolute;
  background: rgba(246, 241, 231, 0.08);
  color: var(--cream);
  border: 1px solid rgba(246, 241, 231, 0.25);
  border-radius: 999px;
  width: 2.9rem;
  height: 2.9rem;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox button:hover { background: rgba(246, 241, 231, 0.22); }

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 0.8rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.8rem; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animace ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery-grid img { transition: none; }
}

/* ---------- Focus viditelný ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}
