/* ========== base / reset ========== */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --blue:#0095dd;
  --red:#d6251c;
  --text:#1a1a1a;
  --muted:#6b7280;
  --bg:#ffffff;
  --card:#ffffff;
  --max-width:1200px;
}

body{
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  background: linear-gradient(135deg, rgba(0,149,221,0.05), rgba(214,37,28,0.05)), #f3f6fb;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ========== NAV ========== */
nav{
  position:sticky;
  top:0;
  z-index:999;
  width:100%;
  background:#eef3f8;
  backdrop-filter:blur(8px);
  border-bottom:3px solid var(--blue);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 24px;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
  position: relative; /* pro mobilní menu */
}

/* Logo */
.nav-left img{height:56px;width:auto}

/* Hamburger */
.hamburger {
  display:none;
  font-size:28px;
  cursor:pointer;
  z-index:1010;
  transition:0.3s;
  color: var(--text);
}
.hamburger i {
  transition:0.3s ease;
}
.hamburger.open i {
  transform: rotate(180deg);
}

/* Navigační odkazy - desktop */
.nav-links{
  display:flex;
  gap:28px;
  list-style:none;
}
.nav-links a{
  text-decoration:none;
  font-weight:600;
  color:var(--text);
  padding:8px 14px;
  border-radius:10px;
  transition:0.25s;
  display:flex;
  align-items:center;
}
.nav-links a:hover{
  background: var(--blue);
  color: #fff;
  transform:translateY(-3px);
}
.nav-links a i { margin-right:8px; font-size:18px; vertical-align:middle; transition: color 0.2s; }
.nav-links a:hover i { color:#fff; }

/* Kontakt info */
.contact-info{
  display:flex;flex-direction:column;text-align:right;font-size:14px;gap:4px;
}
.contact-info i{color:var(--blue);margin-right:6px}

/* ========== HERO ========== */
.hero{
  width:100%;padding:80px 20px;text-align:center;color:#fff;
  background:linear-gradient(90deg,rgba(0,149,221,.80),rgba(214,37,28,.75)),
    url("https://source.unsplash.com/1600x900?plumber,tools") center/cover no-repeat;
  border-radius:14px;
  margin:24px 0;
  box-shadow:0 12px 32px rgba(0,0,0,.12);
}
.hero h1{font-size:44px;margin-bottom:14px}
.hero p{font-size:18px;color:#fff;text-shadow:1px 1px 4px rgba(0,0,0,.35)}

.hero-logo { height:80px;width:auto;display:block;margin:0 auto 12px; }
.hero-company { font-size:28px;color:#fff;margin-bottom:12px;text-align:center;font-weight:600; }

.hero-logo,.hero-company{
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: heroFadeUp .9s ease-out forwards;
}
.hero-company { animation-delay: 0.15s; }
.hero-title { animation-delay: 0.3s; }
.hero-sub { animation-delay: 0.45s; }

/* ========== SECTIONS ========== */
.section{
  padding:60px 20px;margin:24px auto;max-width:var(--max-width);
  background: rgba(255,255,255,0.6);
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  margin-bottom:40px;
}
.section h2{
  text-align:center;font-size:32px;margin-bottom:16px;font-weight:700;
  background: linear-gradient(90deg, #0095dd, #d6251c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}
.section p{text-align:center;color:var(--muted);max-width:850px;margin:0 auto 30px;}

/* ========== GRID ========== */
.grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:24px;margin-bottom:30px;
}

/* ====== SPECIALIZACE – MODERNÍ KARTY ====== */
.specializace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.special-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px;
  text-align: center;
  border: 1px solid #e6e9ef;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease, border .25s ease;
}
.special-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
  border-color: var(--blue);
}
.special-card h3 { margin-top:18px;margin-bottom:10px;font-size:22px;color:var(--text); }
.special-card p { color: var(--muted); }

/* ikonové kolečko */
.icon-circle {
  height: 80px;
  width: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  transition: transform .35s ease;
}
.special-card:hover .icon-circle { transform: scale(1.1); }
.icon-circle i { color: #fff; font-size:32px; }

/* boxy */
.box{
  background:var(--card);padding:22px;border-radius:14px;
  border:1px solid #e2e6ec;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  text-align:center;transition:0.25s;
}
.box:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 30px rgba(0,0,0,.1);
  border-color: var(--blue);
}
.box i{ font-size:38px;color:var(--blue);margin-bottom:12px; }
.box h3{ margin-bottom:8px;font-size:20px; }
.box p{ color:var(--muted); }

/* ========== TEXT + PHOTOS SECTION (slider) ======== */
.text-photo-grid{
  display:flex;
  justify-content:center;
  align-items:center;
  max-width:900px;
  height:240px;
  margin:0 auto;
  overflow:hidden;
  border-radius:12px;
  position:relative;
  background:#f3f6fb;
}
.text-photo-grid img#slider-image{
  width:100%;
  height:100%;
  object-fit:contain;
  transition: opacity 1s ease-in-out, transform 0.4s ease;
  display:block;
}
.text-photo-grid img#slider-image.fade-out{ opacity:0; }
.text-photo-grid img#slider-image:hover{ transform:scale(1.03); }

/* ========== FORMS ========== */
form{
  max-width:600px;margin:0 auto;background:#ffffff;
  padding:30px;border-radius:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}
form label{font-weight:700;margin-bottom:6px;display:block}
form input,form textarea{
  width:100%;padding:12px;margin-bottom:18px;
  border-radius:10px;border:1px solid #cfd6dd;transition:0.2s;
}
form input:focus,form textarea:focus{
  border-color:var(--blue);box-shadow:0 0 8px rgba(0,149,221,.25);outline:none;
}
form button{
  width:100%;padding:14px;background:var(--blue);color:#fff;
  border:none;border-radius:10px;font-weight:700;font-size:16px;transition:0.2s;
}
form button:hover{ background:var(--red);transform:translateY(-2px);cursor:pointer; }

/* ========== MAPA ========== */
.map{
  width:100%;max-width:900px;margin:40px auto;border-radius:14px;overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,.1);
}

/* ========== GALERIE ========== */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:16px;
}
.gallery-grid img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:12px;
  cursor:pointer;
  border:4px solid #fff;
  box-shadow:0 6px 22px rgba(0,0,0,.1);
  transition:0.2s;
}
.gallery-grid img:hover{ transform:scale(1.03) }

/* ========== LIGHTBOX ========== */
#lightbox{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,0.95);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
  padding:30px;
}
#lightbox.active{display:flex}

/* ✅ Upravené img pro zachování poměru stran */
#lightbox img{
  max-width: 90%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius:12px;
  box-shadow:0 6px 22px rgba(0,0,0,.2);
  object-fit: contain;
}

.lb-inner{
  position:relative;
  max-width:1000px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.lb-close,.lb-prev,.lb-next{
  position:absolute;
  background:rgba(0,0,0,0.08);
  padding:12px;
  border:none;
  border-radius:10px;
  cursor:pointer;
}
.lb-close{top:10px;right:10px;transform:none;}
.lb-prev{left:-50px;top:50%;transform:translateY(-50%);}
.lb-next{right:-50px;top:50%;transform:translateY(-50%);}
.lb-caption{text-align:center;margin-top:10px;color:var(--text);font-weight:600}

/* ========== FOOTER ========== */
footer{
  width:100%;background:#eef3f8;border-top:4px solid var(--red);
  padding:40px 20px;margin-top:60px;
}
.footer-contact{
  max-width:var(--max-width);margin:0 auto;
  display:flex;flex-direction:column;text-align:center;gap:8px;
}
.footer-contact div{
  display:flex;justify-content:center;gap:10px;color:var(--muted);
}
.footer-contact i{color:var(--blue)}

.social{text-align:center;margin-top:16px}
.social a{color:var(--blue);margin:0 8px;font-size:20px}

/* ========== MOBILE NAV ================= */
@media(max-width:900px){
  .hamburger { display:block; }

  .nav-links {
    display:none; /* default skryté */
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    flex-direction:column;
    align-items:center;
    background:#ffffff;
    padding:15px 0;
    gap:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    border-top:2px solid var(--blue);
    z-index:1000;
  }

  .nav-links.show {
    display: flex !important;
  }

  .nav-links li {
    margin:5px 0;
    width: 100%;
    text-align:center;
  }

  .nav-links a {
    font-size:18px;
    display:block;
    width:100%;
    padding:10px 0;
  }

  .contact-info { display:none; }
}

/* ========= VIZUÁLNÍ ANIMACE ========= */
.animate {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity .55s ease, transform .55s ease;
}
.animate.show { opacity: 1; transform: translateY(0) scale(1); }

/* ================= HERO TEXT ANIMACE ================= */
.animate-hero { opacity: 0; transform: translateY(28px); animation: heroFadeUp .9s ease-out forwards; }
.hero-sub { animation-delay: .25s; }
@keyframes heroFadeUp { 0% {opacity:0; transform:translateY(28px);} 100% {opacity:1; transform:translateY(0);} }

/* ======= ÚVODNÍ TEXT NAD BOXY ===== */
.intro-boxes {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 30px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

.gdpr-box {
  margin: 15px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gdpr-box input {
  width: 18px;
  height: 18px;
}

.cta-gradient {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 32px;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #0077ff, #00b3ff);
  box-shadow: 0 10px 26px rgba(0, 119, 255, 0.25);
  transition: transform .3s ease, box-shadow .3s ease;
}

.cta-gradient:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 119, 255, 0.35);
}

.cta-projects-wrapper {
  text-align: center;
  margin: 50px 0 20px;
}

.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;        /* centrování horizontálně */
  text-align: center;         /* centrování textu */
  
  padding: 60px 20px;         /* vnitřní odsazení */
  margin: 40px auto 60px;     /* horní mezera od předchozí sekce + spodní mezera */
  
  max-width: var(--max-width);
  background: #f8fafc;        /* jemné odlišení od ostatních sekcí */
  border-radius: 12px;        /* podobně jako jiné sekce */
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-top: 1px solid #e6e9ef;
  border-bottom: 1px solid #e6e9ef;
}

.cta-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--text); /* fallback */
  background: linear-gradient(90deg, #0095dd, #d6251c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}


.cta-section p {
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* CTA tlačítko */
.cta-section .cta-gradient {
  padding: 16px 38px;
  font-size: 1.25rem;
}








