/* Zelenka stavby, decentní verze. Klid, velké fotky, čitelné písmo pro starší klientelu.
   Tmavě borovicová zeleň a světlá šalvějová, jediný akcent je oranžová z loga. */
:root {
  --paper: #f2efe4;
  --sand: #e6e1d0;
  --white: #ffffff;
  --ink: #14211c;
  --ink-soft: #4b5952;
  --line: #cdd5c8;
  --dark: #2b3022;
  --on-dark: #f3f5ed;
  --on-dark-soft: #c2d0c6;
  --line-dark: rgba(242, 239, 228, 0.24);
  --accent: #6a7838;
  --accent-hover: #56622c;
  --on-accent: #14211c;
  --accent-deep: #4b5527;
  --accent-light: #e6d29c;
  --header: 80px;
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(72px, 10vw, 148px);
  --radius: 6px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
p { margin: 0; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 13px 26px;
  border: 1.5px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-small { min-height: 46px; padding: 9px 18px; font-size: 16px; }
.btn-white { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--sand); border-color: var(--sand); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-line-dark { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-line-dark:hover { background: var(--sand); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Horní lišta */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: block; flex: none; }
.brand img { height: 53px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a { padding: 8px 0; font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.top-cta { display: flex; align-items: center; gap: 20px; flex: none; }
.top-tel { font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap; }
.top-tel:hover { color: var(--accent); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 24px; height: 2px; background: var(--ink); position: relative; }
.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }

/* Slovo jednatele */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; padding-block: var(--section); }
.intro h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.14; }
.intro-text > p:first-of-type { margin-top: 26px; color: var(--ink-soft); max-width: 36em; }
.sign { margin-top: 30px; width: 190px; height: auto; }
.sign-name { margin-top: 6px; font-size: 16px; color: var(--ink-soft); }
.intro-photos { position: relative; padding-bottom: 14%; }
.ip-big img { width: 84%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.ip-small { position: absolute; right: 0; bottom: 0; width: 48%; }
.ip-small img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); outline: 10px solid var(--paper); }

/* Společná hlavička sekce */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p { margin-top: 18px; color: var(--ink-soft); font-size: clamp(18px, 1.5vw, 20px); }

/* Jak stavíme: jedna dlouhá stránka. Každý krok je řádek s fotkou a textem, jede celý najednou. */
.how { padding-block: var(--section); background: var(--sand); }
.how-steps { --g: clamp(72px, 9vw, 130px); list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr auto auto auto 1fr; column-gap: var(--g); padding-block: clamp(24px, 3vw, 44px); }
.step-img { grid-column: 1; grid-row: 1 / -1; width: 100%; aspect-ratio: 3 / 2; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.step-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step h3, .step p, .step .btn { grid-column: 2; justify-self: start; }
.step h3 { grid-row: 2; color: inherit; font-size: clamp(26px, 2.5vw, 34px); }
.step p { grid-row: 3; margin-top: 12px; max-width: 28em; }
.step .btn { grid-row: 4; margin-top: 24px; }
.step-no { font-weight: 600; }

/* Služby */
.services { padding-block: var(--section); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4.5vw, 64px) var(--gap); }
.svc { display: block; text-decoration: none; }
.svc-img { display: block; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; background: var(--sand); }
.svc-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.9s ease; }
.svc h3 { transition: color 0.2s; }
.svc:hover h3 { color: var(--accent); }
.svc p { margin-top: 8px; color: var(--ink-soft); max-width: 34em; }

/* Sliby */
.promises { background: var(--dark); color: var(--on-dark); }
.promises-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; padding-block: var(--section); }
.promises-text > p { margin-top: 20px; color: var(--on-dark-soft); max-width: 32em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); margin: 40px 0 0; }
.facts > div { padding-block: 20px; border-top: 1px solid var(--line-dark); }
.facts dt { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; color: var(--accent-light); }
.facts dd { margin: 4px 0 0; color: var(--on-dark-soft); font-size: 17px; }
.promises-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 660px; object-fit: cover; border-radius: var(--radius); }

/* Reference */
.refs { padding-block: var(--section); }
.ref-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 40px) var(--gap); }
.w8 { grid-column: span 8; } .w6 { grid-column: span 6; } .w4 { grid-column: span 4; }
.ref button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); background: var(--sand); cursor: zoom-in; overflow: hidden; }
.ref img { width: 100%; height: clamp(240px, 31vw, 440px); object-fit: cover; transition: transform 0.9s ease; }
.ref button:hover img { transform: scale(1.025); }
.ref figcaption { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }

/* Malá Louka */
.louka { padding-block: var(--section); background: var(--sand); }
.louka-in { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.louka-text { grid-column: 1 / span 5; grid-row: 1; align-self: center; padding-right: clamp(0px, 3vw, 40px); }
.louka-text p { margin: 20px 0 28px; color: var(--ink-soft); }
.l-main { grid-column: 6 / -1; grid-row: 1; }
.l-a { grid-column: 1 / span 6; }
.l-b { grid-column: 7 / -1; }
.louka figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* Kontakt */
.contact { padding-block: var(--section); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.lead { margin-top: 20px; color: var(--ink-soft); font-size: clamp(18px, 1.5vw, 20px); max-width: 30em; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.people p { color: var(--ink-soft); font-size: 16px; }
.people a { display: block; width: fit-content; padding-block: 4px; overflow-wrap: anywhere; }
.people .big-link { margin-top: 12px; font-size: clamp(24px, 2.3vw, 30px); font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--accent-deep); }
.people .big-link:hover { text-decoration: underline; }
.address { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 16px; }

.form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 40px); background: var(--white); border-radius: var(--radius); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 17px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid #7d8a81; border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #a4221c; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); }
.err { color: #a4221c; font-size: 16px; font-weight: 500; }
.form .btn { width: 100%; }
.form-note:empty { display: none; }
.form-note { font-size: 16px; color: var(--ink-soft); }

/* Patička */
.foot { padding-block: 34px; background: var(--dark); color: var(--on-dark-soft); font-size: 16px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; }
.foot a { color: var(--on-dark); font-weight: 600; text-decoration: none; }
.mobile-bar { display: none; }

/* Zvětšená fotka */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 14, 12, 0.96); color: var(--on-dark); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15, 14, 12, 0.96); }
.lightbox img { max-width: min(92vw, 1500px); max-height: 80dvh; object-fit: contain; border-radius: var(--radius); }
.lightbox p { margin-top: 14px; padding-inline: 16px; text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; padding: 0 0 4px; border: 0; border-radius: var(--radius); background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 34px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lb-btn:focus-visible { outline-color: var(--white); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }


@media (max-width: 1180px) {
  .top-tel { display: none; }
}
@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr; }
  :root { --header: 72px; }
  .brand img { height: 46px; }
  .top-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; font-size: 19px; border-bottom: 1px solid var(--line); }

  .intro, .promises-in, .contact-in { grid-template-columns: 1fr; }
  .step { display: block; padding-block: 0 44px; }
  .step:last-child { padding-bottom: 0; }
  .step-img { margin-bottom: 18px; }
  .promises-photo img { aspect-ratio: 3 / 2; }
  .louka-text { grid-column: 1 / -1; padding-right: 0; margin-bottom: 16px; }
  .l-main { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 760px) {
  body { font-size: 17px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .svc-grid { grid-template-columns: 1fr; }
  .w8, .w6, .w4 { grid-column: 1 / -1; }
  .ref img { height: auto; aspect-ratio: 3 / 2; }
  .facts { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lightbox img { max-height: 70dvh; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc-img img, .ref img { transition: none; }
  .ref button:hover img { transform: none; }
}
