/* styl.css */
:root {
  --primary: #0a6aa8;
  --primary-dark: #075082;
  --accent: #f08a24;
  --text: #333;
  --light: #fff;
  --gray: #f5f5f5;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-text {
  font-weight: 700;
  color: var(--primary-dark);
}

.header__phone {
  font-size: 1rem;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Navigation */
.nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--light);
  box-shadow: var(--shadow);
}

.nav--open {
  display: flex;
}

.nav a {
  padding: 14px 20px;
  display: block;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.nav a:hover {
  color: var(--primary);
  background: var(--gray);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  margin: 4px 0;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--light);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,100 L0,80 Q50,0 100,80 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--light);
  box-shadow: 0 4px 10px rgba(240, 138, 36, 0.3);
}

.btn-primary:hover {
  background: #e07a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(240, 138, 36, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--light);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--light);
}

/* O mě */
.o-mne {
  padding: 80px 0;
  background: var(--light);
}

.o-mne .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.o-mne img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.o-mne h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.o-mne p {
  margin-bottom: 20px;
}

/* Služby */
.sluzby {
  padding: 80px 0;
  background: var(--gray);
}

.sluzby h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 50px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card p {
  margin-bottom: 20px;
}

.card-link {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Služby detail */
.sluzby-detail {
  padding: 80px 0;
  background: var(--light);
}

.sluzby-detail h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.sluzby-detail p {
  margin-bottom: 20px;
}

/* Ceny a CTA */
.ceny-a-cta {
  padding: 40px 40px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--light);
  border-radius: 12px;
  margin-top: 40px;
}
.ceny-a-cta a {
  color: #ffd56b;
  text-decoration: underline;
  font-weight: 600;
}

.cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-contact {
  display: inline-block;
  background: var(--accent);
  color: var(--light);
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.cta-contact:hover {
  background: #e07a1a;
  transform: translateY(-2px);
}

/* Oblast */
.oblast {
  padding: 80px 0;
  background: var(--light);
}

.oblast h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 40px;
}

.oblast ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  list-style: none;
}

.oblast li {
  padding: 12px 16px;
  background: var(--gray);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: var(--gray);
}

.faq h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 40px;
}

.faq-item {
  background: var(--light);
  margin-bottom: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item details {
  padding: 20px;
  cursor: pointer;
}

.faq-item summary {
  font-weight: 600;
  color: var(--primary-dark);
  list-style: none;
  padding-right: 20px;
  position: relative;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding-top: 16px;
  color: #555;
}

/* Kонтakt */
.kontakt {
  padding: 80px 0;
  background: var(--light);
}

.kontakt h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 40px;
}

.kontakt .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.kontakt form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kontakt input,
.kontakt textarea {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.kontakt input:focus,
.kontakt textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 106, 168, 0.1);
}

.kontakt textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  padding: 60px 0 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 260px));
  gap: 40px;
  margin-bottom: 40px;
  justify-content: center;
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.footer__block h3 {
  color: var(--light);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer__block p,
.footer__block a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer__block a:hover {
  text-decoration: underline;
}

.footer__copyright a {
  color: #ffd56b;
  text-decoration: underline;
}
.footer__copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
}

/* Responsive */
@media (min-width: 768px) {
  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
  }

  .nav a {
    padding: 0 16px;
    border-bottom: none;
  }

  .nav-toggle {
    display: none;
  }

  .header__inner {
    padding: 20px 0;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .o-mne .container,
  .kontakt .container {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.8rem;
  }

  .container {
    padding: 0 30px;
  }
}

/* dodatek: formulář a stránky */
.breadcrumb {
  font-size: 0.875rem;
  color: #666;
}
.breadcrumb a {
  color: #0a6aa8;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.page {
  padding: 2rem 1rem;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #075082;
}

.contact__form {
  max-width: 640px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #075082;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: #0a6aa8;
  box-shadow: 0 0 0 3px rgba(10, 106, 168, 0.2);
}

.form-error {
  display: block;
  color: #d93025;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.flash-ok {
  padding: 1rem;
  background-color: #e6f4ea;
  border: 1px solid #badbcc;
  color: #0a6aa8;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.flash-err {
  padding: 1rem;
  background-color: #fce8e6;
  border: 1px solid #e0b0b0;
  color: #d93025;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hp {
  display: none !important;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #f08a24;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-primary:hover {
  background-color: #d6751b;
}

/* dodatek: galerie */
.galerie {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.galerie h1 {
  text-align: center;
  color: #0a6aa8;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .galerie-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .galerie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.galerie-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.galerie-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* dodatek: lightbox galerie */
.galerie-polozka {
  display: block;
  text-decoration: none;
  border: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 1rem;
  cursor: zoom-out;
}

.lightbox__img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox__zavrit {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__zavrit:hover {
  color: #f08a24;
}

/* public/css/styl.css – override na KONEC (úpravy Oto 2026-10-15) */

/* 1) VŠECHNY bloky na STŘED, s odskokem od okrajů */
.hero, .sluzby, .o-mne, .oblast, .proc-ja, .cta, .kontakt {
  text-align: center;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hero > *, .sluzby > *, .o-mne > *, .oblast > *, .proc-ja > *, .cta > *, .kontakt > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Vycentrování seznamů (odrážky nejsou roztáhnuté přes celou šířku) */
.proc-ja ul, .oblast ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  padding-left: 1.5rem;
}

/* Stránka Služby – odrážky odsazené od levého okraje (puntík na úrovni textu, ne přetéká vlevo) */
.sluzby-detail ul {
  list-style-position: inside;
  padding-left: 0.5rem;
  margin-left: 0;
}
.sluzby-detail li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* 2) HLAVIČKA + logo */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 6px;
}

/* 3) MENU VODOROVNĚ (desktop), skládací (mobil) */
.nav__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

/* Mobil: výchozí skryté, po kliknutí zobrazené */
.nav {
  display: none;
}

.nav.nav--open {
  display: block;
}

.nav-toggle {
  display: block;
}

/* Desktop: vždy viditelné, hamburger skrytý */
@media (min-width: 768px) {
  .nav {
    display: block !important;
  }
  .nav-toggle {
    display: none !important;
  }
  /* Menu na JEDEN řádek (Oto 28.10.: nahoře bylo dvouřádkové) — bez zalamování,
     těsnější mezery a menší odsazení odkazů, ať se vejdou všechny položky. */
  .nav__list {
    flex-wrap: nowrap;
    gap: .25rem .4rem;
  }
  .nav__list a {
    padding: 8px 10px;
    white-space: nowrap;
  }
}

/* 4) KONTAKT – text vlevo, fotka vpravo (zmenšená), vycentrované */
.kontakt__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.kontakt__info {
  margin: 0;
}

.kontakt__foto {
  width: 220px;
  max-width: 40vw;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* Mobil: fotka pod text */
@media (max-width: 600px) {
  .kontakt__layout {
    flex-direction: column;
  }
  .kontakt__foto {
    width: 100%;
    max-width: 100%;
  }
}

/* 5) CTA kontakt – telefon a mail každý na SAMOSTATNÉM řádku */
.cta-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}

.cta-contact a {
  display: inline-block;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

/* 6) JEMNÁ GRAFIKA – lehký diagonální gradient (modrá/instalatérská identita) */
body {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(20, 80, 140, 0.03) 0,
    rgba(20, 80, 140, 0.03) 10px,
    transparent 10px,
    transparent 20px
  );
}

/* Alternativně: jemný tečkovaný vzor přes pseudo-element (pokud by bylo potřeba jemnější) */
/* body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(20,80,140,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
} */

/* 7) Telefon v hlavičce – nedělit číslo přes dva řádky (úzké zalamování) */
.header__phone {
  white-space: nowrap;
}

/* public/css/styl.css – navigace v lightboxu galerie (Oto 28.10.: listovat fotkami z rozkliknuté fotky) */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  z-index: 1001;
  padding: 0;
}

.lightbox__nav:hover {
  background-color: rgba(240, 138, 36, 0.8);
  color: #fff;
}

.lightbox__predchozi { left: 1rem; }
.lightbox__dalsi { right: 1rem; }

@media (max-width: 600px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.75rem; }
}

.lightbox__nav[aria-hidden="true"] { display: none; }
