/* Reset základního stylu */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #222;
    color: #fff;
    padding: 15px 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
  }
  
  .cookie-banner a {
    color: #00aced;
    text-decoration: underline;
  }
  
  .cookie-button {
    background-color: #00aced;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
  }
  
  .cookie-button:hover {
    background-color: #008bb9;
  }
  
/* Globální styl pro okraje stránky */
body {
    margin: 20px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #d6d4d4;
    scroll-padding-top: 100px; /* Upraveno: Přidán scroll-padding-top */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:30px;
    background: white;
    border: 2px solid #666;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0px;
     display:none; 
}

/* Logo vlevo v headeru (normální logo) */
header .logo {
    display: flex;
    align-items: center;
    width: 100px;
    height: 50%;
    margin-top: 0;
    /* display: none;  ODSTRANĚNO: Chceme logo zobrazit */
}

header .logo span {
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* Menu vpravo - ZÁKLADNÍ STYLY (pro mobil) */
.nav-menu {
    display: none; /* Skryjeme v základu pro mobil */
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, border-image 0.3s ease;
    border: 1px solid #333;
}

.nav-menu a:hover {
    border-image: linear-gradient(to right, red, gray) 1;
    border-radius: 10px;
}

/* Hamburger menu */
.hamburger-menu {
    display: block; /* Zobrazíme hamburger menu defaultně pro mobil */
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* RESPONSIVNÍ STYLY - Desktop (od 768px šířky) */
@media (min-width: 768px) {
    .hamburger-menu {
        display: none; /* Skryjeme hamburger na desktopu */
    }

    .nav-menu {
        display: flex; /* Zobrazíme menu jako flexbox */
        position: fixed;  /* Fixní pozice */
        top: 0px; /* Odsazení od horního okraje */
        left: 50%; /* Umístění do středu */
        transform: translateX(-50%); /* Vycentrování */
        gap: 40px;      /* Mezery mezi položkami menu */
        align-items: center;  /* Vertikální vycentrování položek */
        background-color: white; /* Pozadí menu */
        padding: 10px 20px;   /* Vnitřní odsazení */
        border-radius: 8px;   /* Zaoblení rohů */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Jemný stín */
        z-index: 100;       /* Zajištění zobrazení nad ostatním obsahem */
        border: 2px solid #333; /* Přidán rámeček */

    }

    /* Volitelné: Pokud chcete, aby se logo v headeru skrylo na desktopu: */
    /* header { display: none; } */
}

/* Responsivní zobrazení headeru - MOBILE (do 768px) */
@media (max-width: 767px) {

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        height: auto;
    }

    header .logo img {
        height: 200px;
        margin-right: 10px;
        transform: translateX(-30%);
    }

    header .logo span {
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: white;
        position: absolute;
        top: 250px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 10px 20px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu a {
        text-decoration: none;
        color: #333;
        font-weight: bold;
        padding: 10px 20px;
        border-radius: 5px;
        transition: background 0.3s ease, border-image 0.3s ease;
        border: 1px solid #333;
    }
}


/* Ostatní styly (hero, atd.) - Zůstávají beze změn */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    color: #333;
    padding: 50px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    margin-top: 30px;
    border: 2px solid #333;
    min-height: 100vh; /* Nastaví minimální výšku na 100% viewport height */
}

.hero-content {
    max-width: 40%;
    text-align: center;
}

/* Styl pro klasické podtržení VŠECH nadpisů H2 */
h2 {
    text-decoration: underline red !important; /* Klasické podtržení textu, !important */
  }
  
  /* Zrušení podtržení pro nadpisy H2 v Hero sekci */
  .hero .hero-content h2,
  .hero h2 {
    text-decoration: none !important; /* Zrušení podtržení, !important */
  }
  
  /* Zrušení podtržení pro nadpisy H2 v sekci Kontakt */
  footer #kontakt h2 {
    text-decoration: none !important; /* Zrušení podtržení, !important */
  }

.hero-content p {
    font-size: 1.2rem;
}

.hero-content .handwriting {
    font-family: 'Pacifico';
    font-size: 1.5rem;
    color: #333;
}

.hero-image {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    
}

/* Nový styl pro obrázek v Hero sekci */
.hero-content .hero-text-image {
    max-width: 70%; /* Nebo jiná hodnota, jakou potřebujete */
    height: auto;
    display: block; /* Zajistí, aby se obrázek choval jako blokový element */
    margin: 0 auto 20px; /* Automatické okraje pro vycentrování a odstup od textu */
    border-radius: 8px; /* Zaoblení rohů obrázku */
     /* Jemný stín pro oddělení obrázku */
}

/* Skrytí obrázku v responsivním zobrazení */
@media (max-width: 768px) {
   .hero-text-image {
   display:none;

    }   
}

/* Responsivní úpravy pro Hero sekci */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto; /* Odstranit 100vh na malých obrazovkách, pokud to způsobuje problémy */
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-image {
        max-width: 80%;
        max-height: auto;
        width: auto;
        height: auto;
        /*display: none; /*skryje obrázek v responzivním zobrazení */
    }

  .hero-content .hero-text-image {
       display: none;  /* skryje obrázek v responzivním zobrazení */
    }
}

/* Společné pozadí sekcí */
.hero-bg {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid #333;
}

.hero-bg .section-image {
    max-width: 50%;
    height: auto;
    margin-top: 20px;

}
.btn {
    margin-bottom: 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, border-image 0.3s ease;
    border: 1px solid #333;
}

.btn:hover {
    border-image: linear-gradient(to right, red, gray) 1;
    border-radius: 10px;

}
/* Služby */
.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.service {
    position: relative;
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
    margin: 1rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #333;
    text-align: center;
}

.service h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.service p {
    color: #333;
}

/* Reference */
.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.testimonial {
    position: relative;
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
    margin: 1rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #333;
    text-align: center;
}

.testimonial h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.testimonial p {
    color: #333;
}

/* Úprava pro zobrazení testimonial v desktopu ve dvou sloupcích */
@media (min-width: 768px) {
    .testimonial {
        flex: 1 1 calc(50% - 20px); /* Dva sloupce mínus mezera */
        max-width: calc(50% - 20px);
    }
}

/* Responsivní zobrazení */
@media (max-width: 768px) {
    .hero-bg {
        padding: 15px;
    }

    .hero-bg h2 {
        font-size: 1.5rem;
    }

    .hero-bg .intro-text {
        font-size: 0.9rem;
    }

    .hero-bg .section-image {
        max-width: 80%;
        height: auto;
        margin: 15px auto;
    }
}

/* Responzivní zobrazení */
@media screen and (max-width: 768px) {
    .service, .testimonial {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Obecné styly pro footer */
footer {
    background: linear-gradient(135deg, #333, white);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
}

footer h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-container {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Kontaktní údaje */
.contact-info {
    text-align: center;
}

.contact-info address {
    margin-bottom: 1rem;
}

.map-image {
    width: 200px;
    height: auto;
    border-radius: 5px;
    margin-top: 1rem;
}

/* Kontaktní formulář */
.contact-form {
    width: 100%;
    max-width: 600px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 1rem;
    background: #f9f9f9;
    color: #333;
}

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

/* Styl pro tlačítko */
.contact-form button {
    background: #333;
    color: white;
    border: 2px solid black;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
    background: red;
    color: white;
}

/* Spodní zarovnaný text */
.footer-credits {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #333;
}

.icon {
    position: fixed;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: 2px solid red;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

#envelope-icon {
    bottom: 200px;
    right: 20px;
}

#arrow-icon {
    bottom: 140px;
    right: 20px;
    transform: rotate(180deg);
}

#arrow-icon:hover {
    transform: rotate(180deg) scale(1.2);
}

.icon img {
    width: 24px;
    height: 24px;
    color: #170fae;
}

#FB-icon {
    bottom: 80px;
    right: 20px;
}
/* Základní styly pro Google Mapy v kontaktech */
.contact-details iframe {
    width: 20rem; /* Základní šířka mapy na desktopu */
    height: 15rem; /* Základní výška mapy na desktopu */
    border: 0;
    border-radius: 1.3rem; /* Zaoblení hran */
    margin-top: 1rem; /* Mezery nad mapou */
    transition: all 0.3s ease; /* Plynulý přechod pro změny */
}

/* Zvýšení velikosti mapy na desktopu */
@media (min-width: 1024px) {
    .contact-details iframe {
        width: calc(20rem * 1.3); /* Zvětšení šířky o 1.3 */
        height: calc(15rem * 1.3); /* Zvětšení výšky o 1.3 */
    }
}

/* Tablety a menší obrazovky */
@media (max-width: 1023px) and (min-width: 768px) {
    .contact-details iframe {
        width: 18rem; /* Menší šířka pro tablety */
        height: 13.5rem; /* Menší výška pro tablety */
        border-radius: 1rem; /* Mírně menší zaoblení */
    }
    .hero-text-image{
    display:none;
    }
}

/* Mobilní zařízení */
@media (max-width: 767px) {
    .contact-details iframe {
        width: 100%; /* Plná šířka kontejneru */
        height: 12rem; /* Přizpůsobená výška pro mobily */
        border-radius: 0.8rem; /* Menší zaoblení pro mobily */
    }
}
/* ===== Cookie banner ===== */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10050;
  display: none;              /* ukazuje JS */
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
}

.cookie-content{
  font-size: 14px;
  line-height: 1.35;
  color: #222;
}

.cookie-content a{
  color: #2e4954;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-button{
  appearance: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;

  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;

  background: #2e4954;
  color: #fff;

  transition: transform .15s ease, opacity .15s ease;
}

.cookie-button:hover{
  transform: translateY(-1px);
  opacity: 0.95;
}

.cookie-button:active{
  transform: translateY(0);
  opacity: 0.9;
}

@media (max-width: 640px){
  .cookie-banner{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-button{
    width: 100%;
  }
}
