/* ============================================================
   Čištění střech Šklíba — moderní statický web
   Barevnost převzatá z původního webu (Astra/Elementor paleta)
   ============================================================ */

:root {
  --c-bg: #150B0F;          /* hlavní pozadí */
  --c-bg-2: #231417;        /* panely / karty */
  --c-bg-3: #140609;        /* nejtmavší */
  --c-line: #3D2E32;        /* linky / okraje */
  --c-text: #FFEDE6;        /* světlý text */
  --c-text-dim: #cbb4ad;    /* tlumený text */
  --c-accent: #DD183B;      /* červená */
  --c-accent-2: #CC1939;    /* tmavší červená */
  --c-blue: #1E9BE9;        /* modrá z loga (telefonní pruh plakátu) */
  --font-head: 'Fjalla One', 'Arial Narrow', sans-serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;
  --radius: 14px;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-text); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .5px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(20, 6, 9, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 237, 230, .08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 46px; width: auto; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-family: var(--font-head);
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--c-text);
  transition: color .2s;
}

.header-phone:hover { color: var(--c-blue); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 999px;
  background-color: var(--c-accent);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .22s, transform .22s, box-shadow .22s;
}

.btn:hover {
  background-color: var(--c-accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(221, 24, 59, .35);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 237, 230, .35);
}

.btn-outline:hover {
  background-color: rgba(255, 237, 230, .08);
  box-shadow: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/texture.png");
  background-size: cover;
  background-position: center;
  opacity: .10;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-text h1 span { color: var(--c-accent); }

.hero-lead {
  color: var(--c-text-dim);
  max-width: 46ch;
  margin-bottom: 26px;
}

.hero-services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-services li {
  font-family: var(--font-head);
  font-size: .92rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(255, 237, 230, .25);
  border-radius: 999px;
  background-color: rgba(255, 237, 230, .05);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
  width: 100%;
  height: auto;
}

.hero-media img:last-child { margin-top: 42px; }

/* ---------- Sekce obecně ---------- */

.section { padding: 84px 0; }

.section-dark {
  background-color: var(--c-bg-3);
  position: relative;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/texture.png");
  background-size: cover;
  background-position: center;
  opacity: .08;
  pointer-events: none;
}

.section-dark > .container { position: relative; }

.section-head {
  margin-bottom: 42px;
}

.section-head .kicker {
  font-family: var(--font-head);
  color: var(--c-accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: .95rem;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-transform: uppercase;
}

.section-head p.sub {
  color: var(--c-text-dim);
  margin-top: 12px;
  max-width: 62ch;
}

/* ---------- Reference / RD na Rychnovsku ---------- */

.case .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.case-text .section-head { margin-bottom: 20px; }

.case-text p { color: var(--c-text-dim); }

.case-media {
  display: grid;
  gap: 18px;
}

.case-media img {
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}

.case-photo {
  position: relative;
  margin: 0;
}

.case-photo figcaption {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--c-accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

/* ---------- Galerie ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background-color: var(--c-bg-2);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .45s ease;
}

.gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- Banner ceník (ukázky práce) ---------- */

.page-banner {
  padding: 56px 0 8px;
}

.page-banner img {
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  margin: 0 auto;
}

/* ---------- Recenze ---------- */

.reviews-summary-line strong {
  color: var(--c-text);
  font-size: 1.05rem;
}

.reviews-summary-line .review-stars {
  margin-right: 4px;
}

.reviews-summary-line a { color: var(--c-blue); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.review-card {
  background-color: var(--c-bg-2);
  border: 1px solid rgba(255, 237, 230, .07);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.review-name { font-weight: 700; font-size: .98rem; }

.review-source {
  font-size: .8rem;
  color: var(--c-text-dim);
}

.review-stars {
  color: #FABB05;
  letter-spacing: 3px;
  font-size: 1rem;
}

.review-text {
  color: var(--c-text-dim);
  font-size: .95rem;
}

.reviews-note {
  margin-top: 26px;
  text-align: center;
  color: var(--c-text-dim);
  font-size: .9rem;
}

.reviews-note a { color: var(--c-blue); }

/* ---------- Poptávka / formulář ---------- */

.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--c-bg-2);
  border: 1px solid rgba(255, 237, 230, .07);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .3px;
}

.field label .req { color: var(--c-accent); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-text);
  background-color: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(221, 24, 59, .18);
}

.field textarea { min-height: 130px; resize: vertical; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-row label {
  font-size: .92rem;
  font-weight: 600;
  padding: 9px 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.radio-row input[type="radio"]:checked + label {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.radio-row input[type="radio"]:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(221, 24, 59, .35);
}

.form-actions { margin-top: 26px; text-align: center; }

.form-actions .btn { min-width: 220px; }

.form-status {
  margin-top: 18px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-status.ok { display: block; color: #6fd98a; }

.form-status.err { display: block; color: var(--c-accent); }

/* honeypot — skryté pole proti spamu */
.fld-web { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

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

.site-footer {
  background-color: var(--c-bg-3);
  border-top: 1px solid rgba(255, 237, 230, .08);
  padding: 44px 0 30px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img { height: 54px; width: auto; }

.footer-info {
  color: var(--c-text-dim);
  font-size: .92rem;
}

.footer-info a { color: var(--c-text); }

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 237, 230, .07);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--c-text-dim);
  font-size: .85rem;
}

.footer-bottom a { color: var(--c-text-dim); text-decoration: underline; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(10, 4, 6, .93);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .8);
}

.lightbox button {
  position: absolute;
  background: rgba(255, 237, 230, .1);
  border: 1px solid rgba(255, 237, 230, .25);
  color: var(--c-text);
  font-size: 1.5rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s;
}

.lightbox button:hover { background: rgba(255, 237, 230, .22); }

.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Textová stránka (cookies) ---------- */

.page-content { max-width: 820px; }

.page-content h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 26px; text-transform: uppercase; }

.page-content h2 { font-size: 1.5rem; margin: 34px 0 12px; }

.page-content p, .page-content li { color: var(--c-text-dim); margin-bottom: 12px; }

.page-content ul { padding-left: 22px; }

.page-content a { color: var(--c-blue); text-decoration: underline; }

/* ---------- Animace při scrollu ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responzivita ---------- */

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; }
  .case .container { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .brand-name { display: none; }
  .header-phone { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 30px 22px; }
  .hero-media { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-media img:last-child { margin-top: 26px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
