.menu-toggle {
    display: none;
}

/* ✅ Navigační panel */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
}

/* 📌 Efekt při scrollování */
.navbar.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 📌 Logo */
.navbar img {
    height: 70px;
    padding: 5px;
}

/* 📌 Navigační odkazy */
.nav-links {
    display: flex;
    gap: 40px;
    margin-left: auto;
    padding-right: 30px;
}

/* 📌 Styl odkazů */
.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    padding: 8px 16px;
    border-radius: 5px;
    display: inline-block;
}

/* ✨ Hover efekt pro všechny odkazy */
.nav-links a:hover {
    background: #B8860B;
    color: white;
}

/* 🔥 Zvýraznění tlačítka "Kontakt" */
.nav-links a:last-child {
    color: #B8860B;
    border: 2px solid #B8860B;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

/* ✨ Hover efekt pro tlačítko "Kontakt" */
.nav-links a:last-child:hover {
    background: linear-gradient(45deg, #B8860B, #D4A017);
    color: white;
    border-color: #D4A017;
}

/* 📱 RESPONSIVITA - Navigace na mobilu */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        background: white;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1.2em;
    }

    /* ✅ Zobrazí menu po aktivaci */
    .nav-links.show {
        display: flex;
    }

    /* 📌 Hamburger menu */
    .menu-toggle {
        display: block;
        font-size: 2em;
        cursor: pointer;
        color: #B8860B;
    }
}
 


/* 🎨 Hero sekce */
.hero {
    background: url('img/hero-bg.jpg') no-repeat center center/cover;
    min-height: 100vh; /* Zajistí správnou výšku */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    position: relative;
}


/* 🎭 Tmavý overlay pro lepší čitelnost textu */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Ujisti se, že overlay pokrývá CELÝ blok */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 1;
}

/* 🏆 Ujisti se, že text je nad overlayem */
.hero h1,
.hero p,
.cta-buttons {
    position: relative;
    z-index: 2;
}


/* 🏆 Nadpis HERO sekce */
.hero h1 {
    font-size: 5.5em;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.7);
}

/* 📜 Podnadpis HERO sekce */
.hero p {
    font-size: 2.2em;
    font-weight: 400;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin-bottom: 40px;
}

/* 🎯 CTA tlačítka */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* 🔳 Obecný styl pro tlačítka */
.btn {
    display: inline-block;
    padding: 22px 55px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    background: linear-gradient(45deg, #B8860B, #D4A017);
    color: white;
}

/* ✨ Hover efekt na tlačítka */
.btn:hover {
    background: linear-gradient(45deg, #D4A017, #B8860B);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.5);
}

/* 📱 Responsivita - tlačítka na mobilu pod sebou */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 4em;
    }
    .hero p {
        font-size: 1.6em;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 20px;
    }
}



/* ✅ O nás sekce */
.about-section {
    padding: 100px 40px;
    background-color: white;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap; /* Zajistí zalomení obsahu na menších displejích */
    gap: 40px; /* Přidá prostor mezi textem a obrázkem */
}

/* 📝 Text sekce */
.about-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.about-text h3 {
    color: #B8860B;
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: bold;
}

.about-text h2 {
    font-size: 3em;
    font-weight: 800;
    color: #222;
    margin: 10px 0;
}

.about-text p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.about-text ul li {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #222;
    font-weight: bold;
}

.about-text ul li::before {
    content: '✓'; /* Unicode pro fajfku */
    color: #B8860B; /* Použití zlaté barvy */
    font-size: 1.3em;
    margin-right: 10px;
    font-weight: bold;
}

/* 🖼️ Obrázek */
.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%; /* Obrázek se nikdy neroztáhne mimo kontejner */
    height: auto; /* Zachová poměr stran */
    max-height: 500px; /* Zabrání extrémně velkým obrázkům */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 📱 RESPONSIVITA */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Přepnutí na sloupcové zobrazení */
        text-align: center;
    }

    .about-text {
        max-width: 100%;
        text-align: center; /* Zarovnání textu na střed pro mobil */
    }

    .about-text h2 {
        font-size: 2.5em; /* Menší nadpisy na mobilech */
    }

    .about-text p {
        font-size: 1.1em;
    }

    .about-image {
        order: -1; /* Obrázek se zobrazí nad textem na mobilech */
    }

    .about-image img {
        max-width: 90%; /* Zajistí, že obrázek nebude přesahovat */
    }
}

/* 📱 Extra malá zařízení */
@media (max-width: 480px) {
    .about-section {
        padding: 60px 20px; /* Menší padding na mobilu */
    }

    .about-text h2 {
        font-size: 2.2em;
    }

    .about-text p {
        font-size: 1em;
    }

    .about-image img {
        max-width: 100%;
    }
}

/* 🎨 Styl pro sekci Služby */
.services-section {
    padding: 100px 40px;
    background-color: #f8f8f8;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5em;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    border-bottom: 4px solid #B8860B;
    display: inline-block;
    padding-bottom: 10px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-align: left;
    position: relative;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-title {
    font-size: 1.6em;
    color: #222;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #B8860B;
    padding-bottom: 5px;
}

.service-desc {
    font-size: 1.1em;
    color: #444;
    text-align: center;
}

.service-card .icon {
    font-size: 2.5em;
    color: #B8860B;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ✅ Oprava ikon pro Font Awesome */
.service-card[data-service] .icon::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
}

.service-card[data-service="dotace"] .icon::before {
    content: "\f559"; /* Ikona dokumentu */
}
.service-card[data-service="projektovani"] .icon::before {
    content: "\f6cf"; /* Pravítko tužka */
}
.service-card[data-service="betonarske-prace"] .icon::before {
    content: "\f807"; /* Cementová míchačka */
}
.service-card[data-service="izolace"] .icon::before {
    content: "\f2cb"; /* Ikona tepelné izolace */
}
.service-card[data-service="bytove-domy"] .icon::before {
    content: "\f1ad"; /* Ikona budovy */
}
.service-card[data-service="zamkova-dlazba"] .icon::before {
    content: "\f009"; /* Ikona cihel */
}
.service-card[data-service="demolice"] .icon::before {
    content: "\f6e3"; /* Bourací kladivo */
}
.service-card[data-service="hydroizolace"] .icon::before {
    content: "\f773"; /* Ikona deště */
}
.service-card[data-service="hromosvod"] .icon::before {
    content: "\f0e7"; /* Blesk */
}
.service-card[data-service="stresni-prace"] .icon::before {
    content: "\f73d"; /* Střecha */
}



/* 🎯 Sekce Reference */
#reference {
    padding: 80px 40px;
    background-color: #ffffff; /* Bílé pozadí celé sekce */
    text-align: center;
}

/* 🏆 Hlavní nadpis */
#reference h2 {
    font-size: 2.8em;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 4px solid #B8860B; /* Zlaté podtržení */
    display: inline-block;
    padding-bottom: 10px;
}

/* 📝 Podnadpis */
#reference p {
    font-size: 1.3em;
    color: #555;
    max-width: 800px;
    margin: auto;
    margin-bottom: 50px;
}

/* 🖼️ Kontejner pro reference */
.reference-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Dynamický grid */
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* 📌 Styl jednotlivých karet */
.reference-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center; /* Zarovnání textu */
    cursor: pointer;
}

/* 📌 Obrázky v kartách */
.reference-card img {
    width: 100%;
    height: 200px; /* Menší výška na mobilech */
    object-fit: cover;
}

/* 📌 Textová část karty */
.reference-text {
    padding: 25px;
    text-align: center;
}

/* 🏆 Nadpis karty s podtržením */
.reference-text h3 {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
    position: relative;
    display: inline-block;
}

.reference-text h3::after {
    content: "";
    display: block;
    width: 50%;
    height: 3px;
    background: #B8860B;
    margin: 5px auto 0;
}

/* 📌 Popis karty */
.reference-text p {
    font-size: 1.1em;
    color: #444;
    line-height: 1.5;
}

/* ✨ Efekt při najetí myší */
.reference-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 🎨 Styl modálního okna */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* 💡 Obsah modálního okna */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%; /* Šířka pro lepší přizpůsobení */
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* 🖼️ Obrázek v modálním okně */
.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.modal-body img {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    object-fit: cover;
}

/* 📌 Textová část */
.modal-text {
    flex: 1;
    text-align: center;
}

.modal-text h3 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.modal-text p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.5;
}

/* ❌ Zavírací tlačítko */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* 🔄 Navigace mezi referencemi */
.modal-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 1.5em;
    font-weight: bold;
}

.modal-navigation span {
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
}

.modal-navigation span:hover {
    color: #B8860B;
}

/* 📱 RESPONSIVITA */
@media (max-width: 768px) {
    .reference-container {
        grid-template-columns: 1fr; /* Pouze jeden sloupec na mobilech */
    }

    .reference-text p {
        font-size: 1em;
    }

    .modal-content {
        width: 95%; /* Širší modální okno */
    }

    .modal-body {
        flex-direction: column;
        text-align: center;
    }

    .modal-body img {
        max-width: 100%;
    }

    .modal-text h3 {
        font-size: 1.5em;
    }

    .modal-text p {
        font-size: 1.1em;
    }
}

/* 📱 Extra malá zařízení (např. starší iPhone SE) */
@media (max-width: 480px) {
    #reference {
        padding: 60px 20px;
    }

    #reference h2 {
        font-size: 2.2em;
    }

    .reference-container {
        gap: 20px;
    }

    .reference-text h3 {
        font-size: 1.3em;
    }

    .reference-text p {
        font-size: 1em;
    }

    .modal-content {
        width: 90%;
    }
}




/* 🎨 SEKCE KONTAKTUJTE NÁS */
#kontakt {
    padding: 80px 40px;
    background-color: #f8f9fa;
    text-align: center;
}

/* 🏆 Nadpis sekce */
#kontakt h2 {
    font-size: 2.8em;
    font-weight: 800;
    color: #222;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 4px solid #B8860B;
    display: inline-block;
    padding-bottom: 10px;
}

/* 📝 Podnadpis */
#kontakt p {
    font-size: 1.3em;
    color: #555;
    max-width: 800px;
    margin: auto;
    margin-bottom: 50px;
}

/* 📌 Flexbox rozložení kontaktů a formuláře */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

/* 📞 Levá část: Kontaktní informace */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    font-size: 1.2em;
    color: #333;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Jemný stín */
}

/* 📌 Zarovnání ikon nad textem */
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
}

/* 📌 Ikony kontaktů */
.contact-item i {
    font-size: 2em; /* ✅ Zvýšená velikost ikon */
    color: #B8860B;
    padding: 10px;
    background: rgba(184, 134, 11, 0.1); /* Jemné pozadí kolem ikon */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 📌 Odkazy na telefon a e-mail */
.contact-item a {
    text-decoration: none;
    color: #B8860B;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.contact-item a:hover {
    color: #D4A017;
}

/* 📩 Pravá část: Formulář */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 450px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Jemný stín */
}

/* 📌 Inputy a Textarea */
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #B8860B;
    box-shadow: 0 0 5px rgba(184, 134, 11, 0.3);
}

/* 📌 Tlačítko Odeslat zprávu */
.btn.primary {
    width: 100%;
    max-width: 300px;
    margin: auto;
    display: inline-block;
    background: linear-gradient(45deg, #B8860B, #D4A017);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 6px 10px rgba(184, 134, 11, 0.3); /* Jemný stín pro tlačítko */
}

/* ✨ Hover efekt na tlačítko */
.btn.primary:hover {
    background: linear-gradient(45deg, #D4A017, #B8860B);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.5);
}

/* 🎨 POP-UP OKNO */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 999;
}

/* 📌 Obsah pop-up okna */
.popup-content {
    position: relative; /* Zajištění správného umístění tlačítka zavření */
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    animation: fadeIn 0.5s ease-in-out;
}

/* 🏆 Nadpis v pop-up */
.popup-content h2 {
    font-size: 2em;
    color: #B8860B;
    margin-bottom: 15px;
}

/* 📜 Text v pop-up */
.popup-content p {
    font-size: 1.3em;
    color: #444;
    line-height: 1.6;
}

/* ❌ Tlačítko zavření */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8em;
    cursor: pointer;
    color: #444;
    transition: 0.3s;
    font-weight: bold;
    background: none;
    border: none;
    outline: none;
    z-index: 10; /* Ujistí se, že je tlačítko viditelné nad pop-upem */
}

/* ✨ Hover efekt pro křížek */
.close-btn:hover {
    color: #B8860B;
}

/* ✨ Animace pro fade-in efekt */
@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 📌 Zobrazení pop-up okna */
.popup.show {
    opacity: 1;
    visibility: visible;
}

/* 🎯 Status hlášky */
#form-status {
    max-width: 450px;
    margin: 15px auto 0;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 8px;
    display: none;
    text-align: left;
}

/* ✅ úspěch */
#form-status.success {
    background: #e6f9f0;
    border-left: 4px solid #28a745;
    color: #155724;
}

/* ❌ chyba */
#form-status.error {
    background: #fdecea;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* 🚜 jezdící bagr loader */
#form-status .loader-icon {
    display: inline-block;
    margin-right: 8px;
    animation: excavator-move 1s linear infinite;
}

@keyframes excavator-move {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(8px); }
    100% { transform: translateX(0); }
}

/* 🔒 Certifikát – box + tlačítko */
.certificate-box {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: left;
}

.certificate-box p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* 💛 Tlačítko certifikátu – vždy bílé písmo, žádná fialová */
.cert-btn {
    display: inline-block;
    margin-top: 5px;
    padding: 10px 22px;
    background: linear-gradient(45deg, #B8860B, #D4A017);
    color: #ffffff !important;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.cert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(184,134,11,0.5);
    color: #ffffff !important;
}

.cert-btn:visited {
    color: #ffffff !important;
}

.certificate-box small {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
}
