/* pronajem-ck.cz – styly. Barvy a rozměry se mění v :root. */

/* Písma: variabilní, zmenšená na znaky češtiny, angličtiny a němčiny (viz README → Písma). */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("../fonts/source-serif-4-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url("../fonts/inter-wght.woff2") format("woff2");
}

:root {
  /* Vltavínová zeleň + mosaz na teplém papírovém podkladu */
  --green-900: #0d271e;
  --green-800: #133a2c;
  --green-700: #1a5440;
  --green-600: #2a7457;
  --green-100: #e3eee6;
  --gold: #b48c50;
  --gold-light: #d9bc8a;
  --gold-text: #86652f; /* mosaz pro drobný text na světlém pozadí (kontrast 4.8:1) */
  --ink: #1b231f;
  --muted: #59645e;
  --line: #e4ded2;
  --bg: #f8f5ee;
  --bg-alt: #f0ebe0;
  --white: #fff;
  --danger: #b3261e;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(13 39 30 / .05), 0 10px 30px -6px rgb(13 39 30 / .12);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 520; letter-spacing: -.02em; color: var(--green-900); }
h1 { font-size: clamp(2.1rem, 5vw, 3.45rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: .875rem; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip-link:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; letter-spacing: .005em; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.3em;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; line-height: 1.2;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: var(--white); box-shadow: 0 6px 16px -6px rgb(26 84 64 / .55); }
.btn-primary:hover { background: var(--green-900); color: var(--white); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: currentColor; }
.btn-ghost:hover { background: var(--green-100); color: var(--green-900); }
.btn-sm { padding: .5em 1em; font-size: .95rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 250 247 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--green-900); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--green-700); }
.brand-tld { color: var(--green-600); font-weight: 500; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 6px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; transition: background-color .2s, color .2s; }
.main-nav a:hover { color: var(--green-700); }
/* Sekce, ve které právě jsem (nastavuje main.js) */
.main-nav a[aria-current] { color: var(--green-900); background: var(--green-100); }
.header-cta { flex: none; white-space: nowrap; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { padding: 5px 7px; border-radius: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--green-800); background: var(--bg-alt); }
.lang-switch a[aria-current] { color: var(--green-900); background: var(--green-100); }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .lang-switch { margin-left: auto; }
}
/* Do 700 px je tlačítko prohlídky ve spodní liště (.mobile-bar) */
@media (max-width: 700px) {
  .header-cta { display: none; }
}

/* ---------- Úvod ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(ellipse 70% 60% at 85% 20%, rgb(42 116 87 / .10), transparent 70%), linear-gradient(180deg, var(--bg) 0%, #ece6d8 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 1em; }
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34em; }

.price-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  margin: 28px 0; padding: 18px 22px;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.price-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.price-value { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 560; color: var(--green-900); line-height: 1.1; }
.price-value small { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-note { margin: 0; font-size: .95rem; color: var(--muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.facts {
  list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.facts li { padding: 18px 20px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; overflow-wrap: break-word; hyphens: auto; font-family: var(--font-display); font-weight: 560; font-size: 1.3rem; color: var(--green-900); }
.facts span { font-size: .9rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { border-left: 0; border-top: 1px solid var(--line); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts li:nth-child(even) { border-left: 1px solid var(--line); }
  .facts li:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---------- Sekce ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46em; margin-bottom: clamp(24px, 4vw, 40px); }
.section-lead { color: var(--muted); font-size: 1.08rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
/* 7 fotek: velká (8/12) + 2 vedle (4/12) + řada 4 (3/12). Při jiném počtu upravte span. */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.gallery > * { min-width: 0; }
.gallery-item { position: relative; display: block; grid-column: span 3; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-alt); }
.gallery-item:first-child { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item picture { display: block; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a.gallery-item:hover img { transform: scale(1.03); }
.gallery-item.is-visualization::after, .gallery-item.is-previous-use::after {
  content: "Vizualizace"; position: absolute; left: 10px; top: 10px;
  padding: 3px 10px; border-radius: 999px; background: rgb(15 46 34 / .85); color: var(--white);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
:lang(en) .gallery-item.is-visualization::after { content: "Visualisation"; }
:lang(de) .gallery-item.is-visualization::after { content: "Visualisierung"; }
.gallery-item.is-previous-use::after { content: "Původní provoz"; }
:lang(en) .gallery-item.is-previous-use::after { content: "Previous use"; }
:lang(de) .gallery-item.is-previous-use::after { content: "Bisherige Nutzung"; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-item, .gallery-item:nth-child(2), .gallery-item:nth-child(3) { grid-column: auto; }
  .gallery-item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* ---------- Parametry ---------- */
.spec-table { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.spec-table > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; }
.spec-table-compact { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .spec-table { grid-template-columns: 1fr; }
  .spec-table > div { flex-direction: column; gap: 2px; }
  .spec-table dd { text-align: left; }
}

/* ---------- Využití ---------- */
.use-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.use-card { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.use-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.use-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.use-icon { width: 40px; height: 40px; padding: 8px; margin-bottom: 14px; border-radius: 10px; background: var(--green-100); fill: var(--green-700); color: var(--green-700); }
@media (max-width: 900px) { .use-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .use-grid { grid-template-columns: 1fr; } }

.note { display: flex; gap: 10px; align-items: flex-start; margin: 28px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--green-100); color: var(--green-900); font-size: .95rem; }
.note .icon { margin-top: .2em; color: var(--green-700); }

/* ---------- Půdorys / mapa ---------- */
.floorplan, .map-figure { margin: 0; }
.floorplan img, .map-figure img { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.floorplan figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

.check-list { list-style: none; margin: 0 0 28px; padding: 0; }
.check-list li { position: relative; padding: 8px 0 8px 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%231e5641' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Cena ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.price-card { position: relative; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.price-card-featured { border: 2px solid var(--green-700); box-shadow: var(--shadow); }
.price-card-value { font-family: var(--font-display); font-size: 2.3rem; font-weight: 560; color: var(--green-900); margin: 0 0 14px; line-height: 1.1; }
.price-card-value small { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.badge { position: absolute; top: -13px; right: 20px; padding: 4px 12px; border-radius: 999px; background: var(--gold-light); color: var(--green-900); font-size: .8rem; font-weight: 700; }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }

.cost-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.cost-table caption { text-align: left; font-weight: 700; padding-bottom: 12px; font-size: 1.1rem; }
.cost-table th, .cost-table td { padding: 13px 18px; text-align: right; border-bottom: 1px solid var(--line); }
.cost-table th[scope="row"], .cost-table thead th:first-child { text-align: left; font-weight: 500; }
.cost-table thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); }
.cost-table td[colspan] { text-align: center; color: var(--muted); }
.cost-table th small { color: var(--muted); font-size: .85em; font-weight: 400; }
.cost-table tfoot th, .cost-table tfoot td { font-weight: 700; background: var(--green-100); border-bottom: 0; color: var(--green-900); }
@media (max-width: 560px) {
  .cost-table { font-size: .92rem; }
  .cost-table th, .cost-table td { padding: 11px 10px; }
}
@media (max-width: 360px) {
  .cost-table { font-size: .86rem; }
  .cost-table th, .cost-table td { padding: 10px 6px; }
}

.terms { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
@media (max-width: 700px) { .terms { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.section-dark { background: radial-gradient(ellipse 60% 80% at 0% 100%, rgb(42 116 87 / .35), transparent 70%), var(--green-900); color: #e6ede8; }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark .section-lead { color: #b9cabf; }
.contact-grid { align-items: center; }

.agent-card { display: flex; align-items: center; gap: 16px; margin: 28px 0 20px; }
.agent-avatar, .agent-photo { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.agent-avatar { display: grid; place-items: center; background: var(--gold-light); color: var(--green-900); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.agent-photo { object-fit: cover; }
.agent-name { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--white); }
.agent-role { margin: 0; color: #b9cabf; }
.agent-role a { color: inherit; }
.agent-role a:hover { color: var(--gold-light); }

.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.contact-links a:hover { color: var(--gold-light); }
.contact-links .icon { width: 22px; height: 22px; color: var(--gold-light); }

.inquiry { padding: clamp(22px, 4vw, 34px); background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 0 20px 50px rgb(0 0 0 / .25); }
.inquiry h3 { font-family: var(--font-display); font-weight: 540; font-size: 1.7rem; color: var(--green-900); margin-bottom: .25em; }
.form-hint { color: var(--muted); font-size: .95rem; }
.form-hint.small { font-size: .82rem; margin: 12px 0 0; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 4px; font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7em .85em; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-600); outline-offset: 0; border-color: transparent; background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.checkbox { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--green-700); }
.form-error { color: var(--danger); font-weight: 600; font-size: .95rem; }

/* ---------- Patička ---------- */
.site-footer { padding: 36px 0 40px; background: #091d16; color: #93a89c; font-size: .95rem; }
.site-footer a { color: #d6e2da; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.footer-inner .small { flex-basis: 100%; }

/* ---------- Mobilní lišta ---------- */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgb(251 250 247 / .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  body { padding-bottom: 76px; }
}

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(5 15 11 / .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 6px; }
.lightbox button { position: fixed; border: 0; background: rgb(255 255 255 / .12); color: var(--white); cursor: pointer; font-size: 2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; }
.lightbox button:hover { background: rgb(255 255 255 / .25); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- Místa k doplnění (před spuštěním musí zmizet – viz scripts/check-placeholders.sh) ---------- */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 120px; padding: 12px; text-align: center;
  color: var(--green-700); font-weight: 600;
  background: repeating-linear-gradient(-45deg, var(--green-100) 0 12px, #edf3ef 12px 24px);
  border: 2px dashed var(--green-600); border-radius: var(--radius-sm);
}
.ph-hero { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.ph-floorplan, .ph-map { aspect-ratio: 4 / 3; }
.ph-tag, .ph-inline {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: #ffe9a8; color: #6b4e00; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}

/* Nejužší telefony: dlouhá slova (hlavně v němčině) v pruhu s údaji */
@media (max-width: 360px) {
  .facts li { padding: 16px 14px; }
  .facts strong { font-size: 1.12rem; }
}

/* Střední šířky (malé notebooky, tablet na šířku): menu + jazyky se nevejdou s tlačítkem */
@media (min-width: 901px) and (max-width: 1240px) {
  .header-cta { display: none; }
}
@media (min-width: 901px) and (max-width: 1040px) {
  .header-inner { gap: 16px; }
  .main-nav a { padding: 6px 7px; font-size: .9rem; }
}
