/* MV-izol hydroizolace — rebuild of the Canva design */
:root {
  --bg: #d9d9d9;
  --sage: #839796;
  --ink: #000;
  --navy: #304254;
  --white: #fff;
  --max: 1366px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.35;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  height: 102px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.logo { background: #f7f7f7; width: 107px; height: 60px; display: flex; align-items: center; justify-content: center; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.burger {
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: 4px;
}
.burger span { display: block; height: 4px; border-radius: 2px; background: #5a6775; transition: .25s; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(20, 28, 40, .45);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.menu-open .nav-backdrop { opacity: 1; pointer-events: auto; }
.nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); z-index: 100;
  background: var(--bg); transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto; padding: 70px 0 30px;
  font-family: Arial, Helvetica, sans-serif; font-weight: 400;
}
.menu-open .nav { transform: none; }
.menu-open { overflow: hidden; }
.nav a { display: block; padding: 14px 28px; font-size: 26px; line-height: 1.3; color: #77808a; }
.nav a:hover { color: #2d3a4b; }
.nav a[aria-current="page"] { color: #2d3a4b; }
.nav-close {
  position: absolute; top: 14px; right: 28px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer;
}
.nav-close::before, .nav-close::after {
  content: ""; position: absolute; left: 0; top: 17px; width: 36px; height: 3px; border-radius: 2px; background: #2d3a4b;
}
.nav-close::before { transform: rotate(45deg); }
.nav-close::after { transform: rotate(-45deg); }

/* ---------- Page 1: hero ---------- */
.hero { background: var(--white); padding: 20px; }
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  aspect-ratio: 1326 / 632;
  background: url(../img/hero.jpg) right 55% / 50% auto no-repeat;
}
.hero-inner::before,
.hero-inner::after { content: ""; position: absolute; inset: 0; }
.hero-inner::before { background: var(--white); clip-path: polygon(0 0, 51.7% 0, 69% 50%, 51.7% 100%, 0 100%); }
.hero-inner::after  { background: var(--sage);  clip-path: polygon(0 0, 48.3% 0, 65.4% 50%, 48.3% 100%, 0 100%); }
.hero-text { position: relative; z-index: 1; padding: 5.5% 0 0 2%; width: 50%; }
.hero h1 { font-size: clamp(26px, 3.4vw, 46px); font-weight: 700; margin-bottom: 1.9em; letter-spacing: .2px; }
.hero p { font-family: "Open Sans", sans-serif; font-size: clamp(17px, 2.35vw, 32px); line-height: 1.45; margin: 0 0 .6em .1em; }

.services { max-width: var(--max); margin: 0 auto; padding: 16px 48px 40px; }
.services h2 { font-size: clamp(24px, 2.6vw, 34px); color: #222; margin: 0 0 40px 13%; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.card { background: var(--sage); border: 6px solid var(--ink); min-height: 620px; padding: 6px 30px 40px; }
.pill {
  width: 230px; max-width: 100%; min-height: 112px; margin: 0 auto 70px;
  border: 6px solid var(--ink); border-radius: 60px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 22px; line-height: 1.4; padding: 6px 18px;
}
.card p { color: var(--white); font-size: 26px; line-height: 1.45; padding: 0 12px; }

.company { text-align: center; font-style: italic; padding: 10px 16px 30px; }
.company h3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.4; margin-bottom: 24px; }
.company p { font-size: 22px; line-height: 1.8; }

/* ---------- Page 2: o nás ---------- */
.about { padding: 0 0 6px; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-photos img { width: 100%; aspect-ratio: 673 / 250; object-fit: cover; border: 5px solid #111; }
.about-box {
  margin-top: 20px; background: #8a9c9b; border: 5px solid #111;
  min-height: 494px; display: flex; align-items: center; justify-content: center; padding: 60px 16px;
}
.about-box p { max-width: 960px; font-style: italic; text-transform: uppercase; font-size: clamp(17px, 1.85vw, 25px); line-height: 1.45; color: #111; }

/* ---------- Page 3: realizace ---------- */
.realizace { max-width: var(--max); margin: 0 auto; padding: 20px 66px 160px; }
.title-box { background: var(--sage); border: 4px solid var(--ink); text-align: center; padding: 26px 16px 54px; }
.title-box h2, .title-box p { font-family: "Philosopher", sans-serif; font-weight: 700; }
.title-box h2 { font-size: clamp(32px, 3.6vw, 48px); }
.title-box p { font-size: clamp(22px, 3vw, 40px); margin-top: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 76px; }
.tile { position: relative; border: 4px solid var(--ink); aspect-ratio: 1; overflow: hidden; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.05); }
.tile span {
  position: absolute; left: 0; right: 0; top: 66%; text-align: center;
  color: var(--white); font-size: 20px; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 0 6px rgba(0,0,0,.9), 0 2px 4px rgba(0,0,0,.8);
}

/* ---------- Gallery pages (základy, terasy, balkony, střechy) ---------- */
.gallery-hero {
  position: relative; aspect-ratio: 1366 / 768;
  background-size: cover; background-position: center;
}
.photo-stack img { width: 100%; aspect-ratio: 1366 / 768; object-fit: cover; }

.ov { position: absolute; background: var(--sage); }
.ov-box { left: 9.3%; top: 7.3%; width: 36%; border: 3px solid #fff; padding: 22px 8px 4px; text-align: center; }
.ov-box .lead { color: #fff; font-style: italic; font-size: clamp(14px, 1.45vw, 20px); }
.ov-box .lead2 { font-size: clamp(14px, 1.35vw, 18px); margin-top: 6px; }
.ov-box .small { font-size: clamp(11px, 1.05vw, 15px); line-height: 1.75; margin-top: 2px; padding: 0 30px; }
.radon { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 30px; }
.radon img { width: 46px; }
.radon span { color: #fff; font-style: italic; font-size: clamp(15px, 1.5vw, 21px); line-height: 1.45; }
.ov-box .quality { color: #fff; text-align: left; font-size: clamp(12px, 1.17vw, 16px); line-height: 1.5; padding: 0 0 0 20px; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.feats div { color: #fff; font-size: clamp(10px, 1.03vw, 14px); line-height: 1.45; padding: 4px 2px 10px; border-left: 4px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.feats div:first-child { border-left: 0; }
.feats img { height: 46px; width: auto; margin-bottom: 4px; }
.hint { position: absolute; right: 14.7%; top: 63%; font-size: clamp(14px, 1.65vw, 22px); display: flex; align-items: flex-start; }
.hint img { width: 54px; margin: 6px 0 0 4px; }

.circle {
  border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-family: "Barlow", sans-serif; color: #222;
}
.c-terasa { left: 18.2%; top: 21.5%; width: 28.4%; padding: 0 1.5%; font-size: clamp(12px, 1.4vw, 19px); line-height: 1.5; }
.c-terasa img { width: 30%; margin-bottom: 4%; }
.c-terasa2 { left: 54.8%; top: 22.5%; width: 27.6%; padding: 0 5.5%; }
.c-terasa2 h2 { font-size: clamp(16px, 1.9vw, 26px); line-height: 1.45; margin-bottom: 9%; }
.c-terasa2 p { font-size: clamp(12px, 1.35vw, 18px); line-height: 1.5; }

.c-balkon { left: 13.4%; top: 23.6%; width: 34.5%; padding: 0 2.5%; font-family: "Roboto", sans-serif; color: #111; }
.c-balkon img { width: 17%; margin-bottom: 3%; }
.c-balkon h2 { font-size: clamp(15px, 1.85vw, 25px); margin-bottom: 6%; }
.c-balkon p { font-size: clamp(13px, 1.6vw, 22px); line-height: 1.55; }

.ov-roof { left: 10.6%; top: 10.2%; width: 32.6%; border: 3px solid #fff; border-radius: 20px; padding: 26px 18px 6px; text-align: center; }
.ov-roof h2 { font-size: clamp(16px, 1.85vw, 25px); margin-bottom: 24px; }
.ov-roof hr { border: 0; height: 4px; background: #eee; margin: 0 4px; position: relative; }
.ov-roof p { font-size: clamp(13px, 1.5vw, 20px); line-height: 1.5; padding: 12px 0; }
.ov-roof ul { list-style: none; text-align: left; margin-top: 12px; }
.ov-roof li { display: flex; align-items: center; gap: 14px; color: #fff; font-size: clamp(13px, 1.4vw, 19px); margin-bottom: 4px; }
.ov-roof li img { width: 48px; }
.ov-roof li:first-child { font-size: clamp(11px, 1.15vw, 16px); }

/* ---------- Detail / nátěry grids ---------- */
.gradient { background: linear-gradient(90deg, #a6a6a6 0%, #fefefe 100%); }
.grid-page { max-width: var(--max); margin: 0 auto; padding: 22px 18px 80px; }
.text-box { background: var(--sage); border: 5px solid var(--ink); margin: 0 auto; }
.text-box.two { width: 54%; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px 50px 22px; text-align: center; font-size: clamp(14px, 1.5vw, 20px); line-height: 1.35; }
.text-box.long { width: 50.5%; padding: 10px 24px 4px; font-style: italic; font-size: clamp(14px, 1.6vw, 21px); line-height: 1.5; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 38px; margin-top: 26px; }
.photo-grid img { width: 100%; aspect-ratio: 297 / 240; object-fit: cover; border: 9px solid #000; }
.photo-grid.tight { gap: 10px; padding: 0 44px; margin-top: 16px; }
.photo-grid.tight img:nth-child(4n+2) { margin-right: 0; }
.photo-grid.tight > :nth-child(4n+3) { margin-left: 34px; }

/* ---------- Kontakt ---------- */
.contact { max-width: var(--max); margin: 0 auto; padding: 90px 30px 150px; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; }
.contact h2 { font-family: "Philosopher", sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; margin-bottom: 30px; }
.contact .item { color: var(--navy); font-size: 24px; margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.contact .item svg { width: 48px; height: 48px; }
.contact .firm p { color: var(--navy); font-size: 24px; margin: 22px 0 0; }
.contact .firm p:first-of-type { margin-top: 64px; }
.contact .social { padding-top: 46px; }
.contact .social .item { margin-bottom: 22px; }
.contact .social img { width: 50px; height: 50px; }
.cta {
  display: table; margin: 60px auto 0; transform: translateX(10%);
  background: var(--sage); border-radius: 34px; padding: 16px 36px; font-size: 30px; color: #000;
}
.cta:hover { filter: brightness(1.08); }

/* ---------- Footer ---------- */
.site-footer { text-align: center; font-size: 13px; color: #555; padding: 18px 16px; background: var(--bg); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .site-header { height: 76px; }
  .logo { width: 92px; height: 52px; }

  .hero { padding: 12px; }
  .hero-inner { aspect-ratio: auto; background: none; }
  .hero-inner::before, .hero-inner::after { display: none; }
  .hero-text { width: 100%; background: var(--sage); padding: 28px 18px 18px; }
  .hero h1 { margin-bottom: 1em; }
  .hero-photo { display: block !important; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

  .services { padding: 16px 16px 30px; }
  .services h2 { margin: 0 0 24px; text-align: center; }
  .cards { grid-template-columns: 1fr; gap: 24px; }
  .card { min-height: 0; padding: 6px 16px 30px; }
  .pill { margin-bottom: 26px; min-height: 90px; }
  .card p { font-size: 20px; }
  .company p { font-size: 18px; }

  .about-photos { grid-template-columns: 1fr; gap: 12px; }
  .about-photos img { aspect-ratio: 16/9; }
  .about-box { min-height: 0; padding: 32px 18px; }

  .realizace { padding: 16px 16px 60px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
  .tile span { font-size: 13px; white-space: normal; padding: 0 4px; }

  .gallery-hero { aspect-ratio: auto; background: none !important; display: flex; flex-direction: column; }
  .gallery-hero .ov, .gallery-hero .hint { position: static; width: auto; margin: 16px; }
  .gallery-hero .hero-photo { display: block !important; order: 2; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
  .hint { display: none !important; }
  .circle { border-radius: 24px; aspect-ratio: auto; padding: 24px 18px !important; }
  .c-terasa img { width: 80px; }
  .c-balkon img { width: 64px; }
  .photo-stack img { aspect-ratio: 4/3; }

  .text-box.two, .text-box.long { width: 100%; }
  .text-box.two { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .photo-grid, .photo-grid.tight { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; }
  .photo-grid.tight > :nth-child(4n+3) { margin-left: 0; }
  .photo-grid img { border-width: 5px; }

  .contact { padding: 40px 16px 80px; }
  .contact-cols { grid-template-columns: 1fr; gap: 44px; }
  .contact .firm p:first-of-type { margin-top: 0; }
  .contact .social { padding-top: 0; }
  .cta { transform: none; font-size: 22px; text-align: center; }
}
.hero-photo { display: none; }
@media (max-width: 900px) { .gallery-hero .hero-photo, .hero .hero-photo { display: block; } }

/* "Prohlédněte si…" — smooth scroll to the first gallery photo */
.photo-stack { scroll-margin-top: 102px; }
a.hint { cursor: pointer; }
a.hint:hover { text-decoration: underline; }
a.hint img { transition: transform .3s; }
a.hint:hover img { transform: translateY(4px); }
@media (max-width: 900px) { .photo-stack { scroll-margin-top: 76px; } }
