/* Reset a základy */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  padding-top: 70px;
  transition: opacity 0.5s ease;
}

/* Kontejnery */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  scroll-margin-top: 70px;
}

/* Navigace */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 5000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

nav a {
  color: #333;
  text-decoration: none;
  padding: 8px;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #3c8a18;
}

.cta-btn {
  border: 1px solid #333;
  padding: 8px 15px;
  border-radius: 4px;
}

.cta-btn:hover {
  background: #3c8a18;
  color: #fff;
  border-color: #3c8a18;
}

.lang-switch {
  display: inline-block;
  margin-left: 15px;
  font-size: 0.95rem;
  font-weight: 500;
}

.lang-switch a {
  color: #333;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.3s;
}

.lang-switch a:hover {
  color: #3c8a18;
}

/* Hero sekce */
#hero {
  height: 100vh;
  background: url('images/hero.jpg') center/cover no-repeat;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: #3c8a18;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #2a5e0d;
}

/* Sekce */
.section-wrap {
  padding: 80px 0;
}

.grey-bg {
  background: #f9f9f9;
}

/* O nás */
.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.about-text, .about-img {
  flex: 1;
}

.about-text h5 {
  color: #3c8a18;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 600;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 600px;
}

.link-btn {
  display: inline-block;
  margin-top: 15px;
  font-weight: 500;
  color: #3c8a18;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.link-btn:hover {
  border-color: #3c8a18;
}

.about-img img {
  width: 100%;
  border-radius: 6px;
  height: auto;
}

/* Služby */
.services-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card h4 {
  padding: 15px;
  margin: 0;
}

.card p {
  padding: 0 15px 15px;
  color: #666;
}

/* Galerie */
.gallery-header {
  text-align: center;
  margin-bottom: 30px;
}

.gallery-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.gallery-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery-grid img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Modální okno a lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 6px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 6px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  padding: 0 20px;
  z-index: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Kontakt */
.contact-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form .btn {
  display: block;
  width: 100%;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-info h3 {
  margin-bottom: 10px;
}

.contact-info p {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 25px 15px;
  font-size: 0.9rem;
  border-top: 1px solid #444;
}

.footer a {
  color: #8cd47e;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #fff;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 15px 20px;
  display: none;
  z-index: 6000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.cookie-banner p {
  margin-bottom: 10px;
}

.cookie-banner a {
  color: #8cd47e;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.cookie-banner button {
  background: #3c8a18;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.cookie-banner button:hover {
  background: #2a5e0d;
}

/* Animace */
.fade-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 1s ease-out forwards;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Overlay pro animaci válečkem */
#videoOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease;
}

#introVideo {
  max-width: 100%;
  max-height: 100%;
}

#paintOverlay {
  background-color: transparent;
}

/* Responzivita */
@media (max-width: 900px) {
  .about-container,
  .contact-container {
    flex-direction: column;
  }
  .services-grid {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    z-index: 10001; /* přidáno pro zajištění klikatelnosti */
    position: relative;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10000; /* zvýšená hodnota, aby překryla roller/canvas */
  }

  nav.show {
    display: flex;
  }


  nav a {
    margin: 10px 0;
    padding: 10px;
  }

  .lang-switch {
    margin: 10px 0 0;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }

  .gallery-grid img {
    width: calc(50% - 20px);
    height: 150px;
  }
}

#paintOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

#paintRoller {
  position: fixed;
  width: 100px;       /* podle potřeby můžeš upravit */
  z-index: 10000;
  top: 0;
  left: -150px;       /* start mimo obrazovku vlevo */
  pointer-events: none;
}
/* Lightbox: obrázek se přizpůsobí bez deformace */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

/* Upozornění pro přetočení zařízení */
.rotate-notice {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 15px 20px;
  border-radius: 6px;
  z-index: 11000;
  text-align: center;
  font-size: 1rem;
  max-width: 90%;
  line-height: 1.5;
}
.modal img,
#lightboxImage {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

/* Skrýt mobilní tlačítko menu na větších obrazovkách */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

