/* ===========================================================
   STYLE.CSS – ANPA mont s.r.o.
   Kompletní, sjednocená a optimalizovaná verze (opravená)
   =========================================================== */

/* ===========================================================
   1️⃣ ZÁKLAD A ROZVRŽENÍ STRÁNKY
   =========================================================== */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
  padding-top: 70px;
}

.container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 40px;
  text-align: left;
  /* zarovnání s logem */
}

/* ===========================================================
   2️⃣ HLAVIČKA A NAVIGACE
   =========================================================== */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background-color: #b30000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s ease, opacity 0.4s ease;
  animation: fadeInHeader 0.6s ease-out forwards;
  transform: translateY(-10px);
  opacity: 0;
}

@keyframes fadeInHeader {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-bar.hide {
  transform: translateY(-100%);
  opacity: 0.8;
}

/* Logo */
.logo-box {
  background-color: #fff;
  height: 70px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 4px solid #b30000;
}

.logo-box img {
  height: 55px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Navigace – desktop */
.nav-bar {
  background-color: #b30000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 70px;
}

.nav-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-bar li {
  margin: 0;
}

.nav-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  transition: background 0.3s ease;
}

.nav-bar a:hover {
  background-color: #333;
}

.nav-bar a.active {
  background-color: #000;
}

/* Hamburger tlačítko */
.menu-toggle {
  display: none;
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
  z-index: 1100;
}

/* ===========================================================
   3️⃣ HLAVNÍ OBSAH A PATIČKA
   =========================================================== */
h2,
h3 {
  color: #111;
}

ul {
  padding-left: 20px;
}

footer.container {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #ddd;
  margin-top: 40px;
  padding-bottom: 30px;
}

/* ===========================================================
   4️⃣ FORMULÁŘE
   =========================================================== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 30px auto;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 25px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

form label {
  font-weight: bold;
  color: #222;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #b30000;
  outline: none;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

form button {
  background-color: #b30000;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

form button:hover {
  background-color: #333;
}

form button:active {
  transform: scale(0.97);
}

/* ===========================================================
   5️⃣ GALERIE A LIGHTBOX
   =========================================================== */
.home-gallery {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 20px;
}

.home-gallery img {
  width: 32%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.home-gallery img:hover {
  transform: scale(1.03);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* ===========================================================
   6️⃣ TÝM, TABULKY, ROZBALOVACÍ SEKCE
   =========================================================== */
.team-photo {
  text-align: center;
  margin: 30px 0;
}

.team-photo img {
  width: 100%;
  max-width: 900px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
}

.price-table th,
.price-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.price-table th {
  background-color: #b30000;
  color: white;
}

.price-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.price-table tr:hover {
  background-color: #f1f1f1;
}

/* ===========================================================
   7️⃣ ROZBALOVACÍ SEKCE A TLAČÍTKA (REFERENCE, CENÍK, SLUŽBY)
   =========================================================== */
.hidden-section {
  display: none;
  background: #f9f9f9;
  border-left: 4px solid #b30000;
  border-radius: 4px;
  margin-top: 15px;
  padding: 10px 15px;
}

.hidden-section.show {
  display: block;
}

.toggle-btn,
.service-btn,
.price-table button {
  display: inline-block;
  background-color: #a00;
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 20px 0;
  text-align: left;
  min-width: 220px;
}

.toggle-btn:hover,
.service-btn:hover,
.price-table button:hover {
  background-color: #c00;
}

/* ===========================================================
   8️⃣ REFERENCE SEKCE
   =========================================================== */
#reference {
  margin: 20px auto;
  padding: 25px 30px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
  max-width: 900px;
}

#reference h4 {
  color: #a00;
  margin-top: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 3px;
}

#reference ul {
  list-style: disc;
  margin-left: 30px;
  line-height: 1.6;
}

/* ===========================================================
   9️⃣ MOBILNÍ MENU
   =========================================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-bar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    color: #000;
    box-shadow: -3px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-bar.open {
    right: 0;
  }

  .nav-bar ul {
    list-style: none;
    margin: 100px 0 0 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .nav-bar li {
    width: 100%;
    border-bottom: 1px solid #ddd;
  }

  .nav-bar a {
    display: block;
    width: 100%;
    padding: 16px 25px;
    font-size: 1.1em;
    color: #000;
    text-decoration: none;
    text-align: left;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .nav-bar a:hover {
    background-color: #f4f4f4;
    color: #b30000;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1040;
  }

  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}

/* ===========================================================
   🔟 COOKIE BANNER A MODÁL
   =========================================================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  z-index: 2000;
  font-size: 0.95em;
  transition: opacity 0.3s ease;
}

.cookie-buttons {
  margin-top: 10px;
}

.cookie-buttons button {
  background: #b30000;
  color: #fff;
  border: none;
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-buttons button:hover {
  background: #800000;
}

.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cookie-modal-content {
  background: #fff;
  color: #000;
  padding: 30px 40px;
  border-radius: 8px;
  max-width: 450px;
  width: 90%;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 16px;
}

.cookie-modal-buttons {
  text-align: center;
  margin-top: 15px;
}

.cookie-modal-buttons button {
  background-color: #c00;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

.cookie-modal-buttons button:hover {
  background-color: #a00;
}

/* ===========================================================
   11️⃣ PARTNERSKÁ LOGA
   =========================================================== */
.partner-logos {
  text-align: center;
  margin: 40px 0;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.logo-row img {
  max-height: 70px;
  width: auto;
  transition: transform 0.3s ease;
  filter: grayscale(20%);
}

.logo-row img:hover {
  transform: scale(1.05);
  filter: none;
}