/* Stavby Literák — sdílené styly
   Paleta vychází z loga: grafit (pozadí loga), oranžová cihel, beton.
   Hrany jsou záměrně ostré — technický list, ne aplikace. */

:root {
  --graphite: #1d2126;
  --graphite-2: #2a3037;
  --ink: #1b1f24;
  --muted: #5b636c;
  --concrete: #e7e9ea;
  --concrete-2: #d6dadc;
  --paper: #f4f5f5;
  --line: #c3c8cc;
  --amber: #f39a1e;
  --amber-deep: #a35800;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.55rem; }

p { margin: 0 0 1em; }

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

.label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 12px; }

/* ---------- Hlavička ---------- */

.site-header {
  background: var(--graphite);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--amber);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand img { width: 136px; }
@media (max-width: 900px) { .brand img { width: 112px; } }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav a {
  text-decoration: none;
  padding: 8px 12px;
  color: #d9dde0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--amber); }

.nav .nav-call {
  margin-left: 10px;
  background: var(--amber);
  color: var(--graphite);
  border-bottom: 0;
}
.nav .nav-call:hover { background: #ffb24a; color: var(--graphite); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #56606a;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--graphite);
    padding: 8px var(--gutter) 20px;
    border-bottom: 3px solid var(--amber);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #39414a; }
  .nav .nav-call { margin: 14px 0 0; text-align: center; padding: 14px; }
}

/* ---------- Úvod (rozcestník) ---------- */

.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: min(78vh, 720px);
  border-bottom: 1px solid var(--line);
}

.hero-panel {
  background: var(--graphite);
  color: var(--white);
  padding: clamp(32px, 5vw, 64px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-panel .ridge {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46%;
  pointer-events: none;
}

.hero-panel h1 { position: relative; z-index: 2; max-width: 11ch; }

/* Volitelná fotka na pozadí úvodu — ztmavená, aby nadpis zůstal čitelný */
.hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-panel:has(.hero-bg)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(29, 33, 38, 0.82) 0%, rgba(29, 33, 38, 0.55) 55%, rgba(29, 33, 38, 0.9) 100%);
}
.hero-panel h1 span { color: var(--amber); }

.hero-panel .hero-meta {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #aeb5bb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-index {
  padding: clamp(28px, 4vw, 56px) var(--gutter);
  background: var(--paper);
}

.hero-index .label { margin: 0 0 14px; display: block; font-weight: 400; }

.chooser { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }

.chooser a {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: baseline;
  gap: 8px 16px;
  padding: 18px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, padding 0.15s ease;
}

.chooser .no { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

.chooser .name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}

.chooser .hint {
  grid-column: 2 / 3;
  color: var(--muted);
  font-size: 0.97rem;
}

.chooser .arrow {
  grid-row: 1 / 3;
  grid-column: 3;
  align-self: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber-deep);
  transition: transform 0.15s ease;
}

.chooser a:hover { background: var(--white); padding-left: 12px; padding-right: 12px; }
.chooser a:hover .arrow { transform: translateX(6px); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel { min-height: 0; padding-bottom: 120px; }
  .hero-panel .hero-meta { margin-top: 8px; }
  .hero-panel .ridge { height: 100px; }
}

/* ---------- Sekce ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-concrete { background: var(--concrete); }

/* Upoutávka mimo stavební služby (gastropůjčovna) — teplý pruh, ať je jasné, že jde o „něco navíc“ */
.promo { background: #fbe7c8; border-top: 4px solid var(--amber); }
.promo .label { color: #6a4300; }
.promo p { max-width: 52ch; font-size: 1.125rem; line-height: 1.65; color: #3a2a12; }
.promo .btn { margin-top: 8px; background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.promo .btn:hover { background: var(--ink); border-color: var(--ink); }
.promo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.promo-grid.no-photo { grid-template-columns: 1fr; }
.promo-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 4px solid var(--graphite); }
@media (max-width: 800px) { .promo-grid { grid-template-columns: 1fr; gap: 28px; } }
.section-dark { background: var(--graphite); color: var(--white); }
.section-dark .label { color: #9aa3ab; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; font-size: 1.125rem; line-height: 1.65; }
.section-dark .section-head p { color: #bfc6cc; }

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

/* Jak pracujeme — tři zásady vedle sebe, bez karet */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.principles > div { padding: 24px 28px 8px 0; }
.principles > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.principles .label { display: block; margin-bottom: 10px; }

@media (max-width: 800px) {
  .principles { grid-template-columns: 1fr; }
  .principles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Tlačítka a odkazy */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 13px 22px;
  background: var(--amber);
  color: var(--graphite);
  border: 2px solid var(--amber);
  cursor: pointer;
}
.btn:hover { background: #ffb24a; border-color: #ffb24a; }

.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.textlink {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
}
.textlink:hover { color: var(--amber-deep); }

/* ---------- Stránka služby ---------- */

.page-hero {
  background: var(--concrete);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 64px);
}
.page-hero .crumbs { margin-bottom: 18px; display: block; }
.page-hero .crumbs a { text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero .lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  max-width: 46ch;
  color: #3a4148;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
}

/* Fakta vpravo v hlavičce služby */
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; }

@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
}

/* Termovize — hlavička s teplotní stupnicí */
.page-hero.thermal {
  background:
    linear-gradient(90deg, rgba(29,33,38,0.94) 0%, rgba(29,33,38,0.86) 55%, rgba(29,33,38,0.35) 100%),
    linear-gradient(115deg, #1b0f4a 0%, #5a1aa0 22%, #c42a6b 44%, #f2582a 62%, #f9a51b 78%, #fff3a6 100%);
  color: var(--white);
  border-bottom: 0;
}
.page-hero.thermal .label,
.page-hero.thermal .crumbs a { color: #b8c0c7; }
.page-hero.thermal .lead { color: #dfe3e6; }
.page-hero.thermal .facts { border-top-color: var(--white); }
.page-hero.thermal .facts div { border-bottom-color: rgba(255,255,255,0.18); }
.page-hero.thermal .facts dt { color: #b8c0c7; }

.scale {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #c9cfd4;
}
.scale i {
  flex: 0 0 180px;
  height: 10px;
  background: linear-gradient(90deg, #1b0f4a, #5a1aa0, #c42a6b, #f2582a, #f9a51b, #fff3a6);
}

/* Dvousloupcový obsah s bočním sloupcem */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 64px;
}
.content-grid aside { align-self: start; position: sticky; top: 110px; }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid aside { position: static; }
}

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--amber-deep); }

/* Kdy se vyplatí — seznam s velkými čísly */
.uses { list-style: none; margin: 0 0 2em; padding: 0; counter-reset: use; border-top: 2px solid var(--ink); }
.uses li {
  counter-increment: use;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.uses li::before {
  content: counter(use, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-deep);
  padding-top: 4px;
}
.uses strong { display: block; font-size: 1.05rem; }
.uses span { color: var(--muted); }

/* Průběh — svislá časová osa */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--amber);
  border: 2px solid var(--ink);
}
.timeline strong { display: block; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; line-height: 1.1; margin-bottom: 4px; }

/* Výrobky hliníkového programu — mřížka bez karet */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--ink);
  margin-bottom: 2em;
}
.products > div { padding: 18px 20px 14px 0; border-bottom: 1px solid var(--line); }
.products > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.products h3 { font-size: 1.3rem; margin-bottom: 4px; }
.products p { margin: 0; color: var(--muted); font-size: 0.96rem; }

@media (max-width: 600px) {
  .products { grid-template-columns: 1fr; }
  .products > div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Boční poptávkový box */
.ask {
  background: var(--graphite);
  color: var(--white);
  padding: 28px;
  border-top: 4px solid var(--amber);
}
.ask h2 { font-size: 1.55rem; margin-bottom: 10px; }
.ask .label { color: #9aa3ab; }
.ask .ask-note { margin-top: 14px; }
.ask p { color: #c6ccd1; font-size: 0.97rem; }
.ask .phone {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  margin: 6px 0 4px;
}
.ask .mail { color: var(--white); }
.ask .btn { margin-top: 18px; width: 100%; text-align: center; }

/* Otázky */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--amber-deep);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 40px; }

/* Poznámka pro klienta k doplnění (před spuštěním odstranit) */
.todo {
  background: #fff4d6;
  border-left: 4px solid var(--amber);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #6a4a00;
}
.todo.is-info { background: #eef0f1; border-color: var(--muted); color: #3a4148; }

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-intro { color: #bfc6cc; }
.contact-lines { margin: 0; }
.contact-lines div { padding: 14px 0; border-bottom: 1px solid #3a424b; }
.contact-lines dt { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9aa3ab; }
.contact-lines dd { margin: 2px 0 0; font-size: 1.15rem; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { color: var(--amber); }
.contact-lines .big { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--amber); line-height: 1.1; }

.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9aa3ab; margin-bottom: 6px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--white);
  background: var(--graphite-2);
  border: 1px solid #47505a;
  border-radius: 0;
  padding: 12px 14px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); }
.form .note { font-size: 0.85rem; color: #9aa3ab; margin: 0; }

/* ---------- Patička ---------- */

.site-footer {
  background: #15181c;
  color: #9aa3ab;
  padding: 40px 0;
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer img { width: 92px; }
.site-footer a { color: #d9dde0; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Pomalé odhalení sekcí při posunu */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Katalog půjčovny — název | popis | počet kusů */
.catalog { list-style: none; margin: 0 0 2.2em; padding: 0; border-top: 2px solid var(--ink); }
.catalog li {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.catalog h3 { font-size: 1.3rem; margin: 0; }
.catalog p { margin: 0; }
.catalog .spec { margin-top: 6px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.catalog .count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 3px 8px;
  border: 1px solid var(--ink);
  align-self: start;
}
@media (max-width: 700px) {
  .catalog li { grid-template-columns: 1fr auto; }
  .catalog li > div { grid-column: 1 / -1; }
}

/* Fotka v hlavičce služby (fakta se pak přesunou pod úvodní text) */
.page-hero .lead + .facts { margin-top: 28px; }
.hero-photo { margin: 0; align-self: stretch; }
.hero-photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-bottom: 4px solid var(--amber); }
.hero-photo figcaption { margin-top: 8px; }

/* Fotka v obsahu stránky (blok „Fotka“ z adminu) */
.content-photo { margin: 0 0 2em; }
.content-photo img { width: 100%; border-bottom: 4px solid var(--amber); }
.content-photo figcaption { margin-top: 8px; }
