/* Drnovcovi – zemní práce a autodoprava */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F4F2EC; }
img { max-width: 100%; }
a { color: #1B1D1A; }
a:hover { color: #5A5D55; }
a:focus-visible, button:focus-visible { outline: 3px solid #F2B705; outline-offset: 3px; }
section[id], article[id] { scroll-margin-top: 16px; }

/* zástupná plocha bez fotky */
.ph { background-color: #2A2D28; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px); }

/* tlačítka – jemný hover */
a[href^="tel:"], a[href="#kontakt"], a[href="#realizace"] { transition: filter .15s ease, transform .15s ease; }
a[href^="tel:"]:hover, a[href="#kontakt"]:hover { filter: brightness(1.08); }

/* pro koho pracujeme: nadpis vlevo, 2 sloupce vpravo */
.clients-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .clients-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .clients { grid-template-columns: minmax(0, 1fr); } }

/* galerie */
.lb-item { display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #E3DFD4; }
.lb-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s ease; }
.lb-item:hover img { transform: scale(1.04); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(17,18,16,.96); color: #F4F2EC; display: flex; flex-direction: column; font-family: Inter, system-ui, sans-serif; }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.lb-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lb-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; }
.lb-pos { font-size: 14px; color: #B8B9B2; }
.lb-close { width: 48px; height: 48px; flex-shrink: 0; border: 0; border-radius: 8px; background: #2A2D28; color: #F4F2EC; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: #3A3D37; }
.lb-main { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; }
.lb-nav { width: 52px; height: 52px; flex-shrink: 0; border: 0; border-radius: 50%; background: #F2B705; color: #1B1D1A; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-nav:hover { filter: brightness(1.08); }
.lb-figure { margin: 0; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb-img { max-width: 100%; max-height: calc(100% - 48px); object-fit: contain; border-radius: 6px; display: block; }
.lb-caption { font-size: 15px; color: #CFCFC8; text-align: center; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 14px 20px 20px; }
.lb-thumbs button { padding: 0; border: 0; background: none; cursor: pointer; width: 64px; height: 48px; border-radius: 4px; overflow: hidden; opacity: .55; }
.lb-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px #F2B705; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.lb-open { overflow: hidden; }

@media (max-width: 640px) {
  .lb-main { padding: 0 6px; gap: 6px; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-thumbs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lb-item img { transition: none; }
}

/* ===== Mobilní hlavička ===== */
.hdr-wrap { position: relative; z-index: 50; }
.hdr-mobile { display: none; align-items: center; gap: 8px; }
.hdr-mcall, .hdr-burger { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.hdr-mcall { background: #F2B705; color: #1B1D1A; }
.hdr-mcall:hover { color: #1B1D1A; filter: brightness(1.08); }
.hdr-burger { background: #2A2D28; color: #F4F2EC; }
.hdr-burger .i-close { display: none; }
.hdr-burger[aria-expanded="true"] .i-open { display: none; }
.hdr-burger[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 760px) {
  .hdr { flex-wrap: nowrap !important; padding: 10px 16px !important; }
  .hdr > a:first-child img { height: 56px !important; }
  .hdr > a:first-child span span:first-child { font-size: 22px !important; }
  .hdr-mobile { display: flex; }
  .hdr-nav { display: none !important; position: absolute; left: 0; right: 0; top: 100%; background: #1B1D1A; border-top: 1px solid #2E312C; box-shadow: 0 12px 24px rgba(0,0,0,.35); flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 8px 16px 20px; }
  .hdr-nav.open { display: flex !important; }
  .hdr-nav a { padding: 14px 4px !important; font-size: 17px; border-bottom: 1px solid #2E312C !important; }
  .hdr-nav a[href^="tel:"] { justify-content: center; margin-top: 16px; border-bottom: 0 !important; border-radius: 8px; }
  .hdr-nav a[aria-current="page"] { border-bottom: 1px solid #2E312C !important; }
}
@media (max-width: 430px) {
  .hdr > a:first-child span span:last-child { display: none; }
}

/* ===== Mobil – rozestupy a mřížky ===== */
@media (max-width: 640px) {
  section[style*="padding: 96px 0"] { padding: 64px 0 !important; }
  section[style*="padding: 80px 0 24px"] { padding: 56px 0 8px !important; }
  #top > div { padding-top: 32px !important; padding-bottom: 56px !important; gap: 32px !important; }
  /* úvodní stránka – realizace po dvou */
  #realizace div[style*="minmax(min(100%, 280px)"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 12px !important; }
  #realizace div[style*="minmax(min(100%, 280px)"] a > span { font-size: 17px !important; line-height: 1.15; }
  /* galerie po dvou */
  .gallery > div { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .gallery { padding-bottom: 28px !important; }
  .gallery h3 { font-size: 24px !important; }
}
