/* Základní styly */

:root {
    --primary-color: #fafafa;
    --secondary-color:  #202020;
    --accent-color: #C4A77D;
    --accent-color-hover: #b28f5d;
    --text-color: white;
}
html{
    scroll-behavior: smooth;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: 'Inter';
    max-width: 100%;
}

h1, h2, h3 {
    font-family: 'Oswald';
}

/* Obecné nastavení sekcí */
section {
    padding-top: 20px;
    padding-bottom: 40px;
    background: var(--primary-color);
    border-radius: 5px;
    text-align: center;
}

/* Banner s tmavším pozadím */
.banner {
    position: relative;
    background-image: url('obrazek-banner.JPG'); /* Pozadí obrázek */
    background-size: cover;
    background-position: center;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0px;
    margin: 0px;

}

/* Překrytí (overlay) pro stmavení obrázku */
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Tmavší efekt, můžeš upravit intenzitu */
    z-index: 1; /* Overlay je nad obrázkem, ale pod textem */
}

/* Obsah v banneru (text) */
.banner-content {
    position: relative;
    color: white;
    z-index: 2; /* Text bude nad overlay */
    padding: 50px;
    background: linear-gradient(235deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.company-name {
    font-size: 3em;
    margin: 0;
}

.slogan {
    font-size: 1.5em;
}

/* Header - základní styl pro navigaci */
/* Základní styl pro header */

.header {
    position: fixed;
    max-height: 35px;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
}

/* Když je header poscrollovaný, změní se pozadí */
.header.scrolled {
    background-color: #000000;
    color: var(--text-color);
}

.header .logo img {
    height: 50px;  /* Výška loga */
}

/* Navigace */
.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    color: white;
    flex-grow: 1;  /* Umožní navigaci růst a zabírat prostor mezi logem a social links */
    justify-content: center; /* Navigace bude ve středu */
}

.navigation a {
    color: inherit;
    text-decoration: none;
    font-size: 1.2em;
    position: relative;
    padding-bottom: 5px; /* Prostor pro podtržení */
    transition: color 0.3s ease;
}

/* Animace podtržení od středu do stran */
.navigation a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.navigation a:hover::after {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.navigation a:hover {
    color: #fff;
}

/* Social links */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: right;
    padding-right: 75px;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

/* Ikony */
.social-links a img {
    height: 20px;
    width: auto;
    max-height: 20px;
    object-fit: contain;
}

/* Pokud je header poscrollovaný, změní se barvy */
.header.scrolled .navigation a {
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s ease;
}

.hamburger span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Stav po kliknutí */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sekce O nás */
.o-nas {
    position: relative;
    padding: 20px;
    margin: 20px;
    background-color: var(--primary-color);
}

.o-nas-content {
    position: relative;
}

.o-nas-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    max-height: 506px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.text-card {
    position: absolute;
    top: 15%;
    right: 11%;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    width: 20%;
    min-height: 200px;
    text-align: left;
}

.text-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.text-card p {
    font-size: 16px;
}

.flextlacitko {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ctaOnas {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-family: 'Bebas Neue';
}

.ctaOnas:hover {
    background-color: var(--accent-color-hover); /* Pokud máš hover barvu, můžeš ji definovat */
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.ctaOnas:active {
    transform: scale(0.95);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Sekce Naše služby */

#sluzby {
    text-align: center;
    margin-left: 0px;
    margin-right: 0px;
    border-radius: 0px;
    background-color: var(--secondary-color);
}

#sluzby h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-item {
    width: 150px;
    text-align: center;
    padding: 10px;
}

.service-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.service-item h3 {
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--text-color);
}

/* Sekce Výhody */

#vyhody {
    text-align: center;
    background: var(--primary-color);
}

#vyhody h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: black;
}

/* Dvousloupcové rozložení */
.vyhody-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

/* Levý sloupec - Výhody */
.vyhody-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

/* Styl pro jednotlivé výhody */
.vyhoda {
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: left;
    gap: 20px;
}

.vyhoda img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.vyhoda-text {
    display: flex;
    flex-direction: column;
}

.vyhoda h3 {
    font-size: 20px;
    margin: 0;
    color: var(--text-color);
}

.vyhoda p {
    font-size: 16px;
    color: var(--text-color);
    margin: 5px 0 0 0;
}

/* Pravý sloupec - Galerie */

.galerie-vyhody {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Efekt "poházených fotek" */
.photo-stack {
    position: relative;
    width: 350px;
    height: 450px;
}

.photo {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: opacity 1s ease-in-out, transform 0.8s ease-in-out;
    opacity: 0;
}

/* Viditelná fotka */
.photo.active {
    opacity: 1;
}

/*sekce zakázky */

#zakazky {
    background-color: var(--secondary-color);
    width: 100%;
}
h2 {
    font-size: 2em;
    margin-bottom: 20px;
}
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}
.projekt {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projekt:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin: 7px;
    border-radius: 4px;
}

.indicators {
    position: absolute;
    bottom: 93px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 4;
}

.indicator {
    width: 7px;
    height: 7px;
    background: white;
    border-radius: 50%;
    opacity: 0.1;
    cursor: pointer;
}

.indicator.active {
    opacity: 1;
    background: rgb(255, 255, 255);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsla(0, 0%, 0%, 0.8);
    color: white;
    padding: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.projekt:hover .overlay {
    opacity: 1;
}

/* Sekci kontakt */

.contact-section {
    background-color: #fafafa;
    margin-left: 100px;
    margin-right: 100px;
    padding-top: 5px;
    padding-right: 50px;
    padding-left: 50px;
    padding-bottom: 50px;
    max-width: 100%;
    color: black;
}
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.contact-info-map, .contact-form {
    width: 50%;
}
.contact-info {
    text-align: left;
    margin-bottom: 20px;
}
.contact-info p {
    margin: 5px 0;
}
.map-container {
    width: 100%;
    height: 300px;
}
iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}
.contact-form {
    text-align: left;
}
.contact-form h3 {
    text-align: center;
}
.contact-form label {
    display: block;
    margin: 10px 0 5px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-form button {
    width: 100%;
    padding: 10px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Toast */

.toast {
    visibility: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    max-width: 400px;
    background-color: #333;
    color: #fff;
    border-radius: 10px;
    padding: 14px 20px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-family: sans-serif;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    font-size: 20px;
}

.toast.success {
    background-color: #4BB543;
}

.toast.error {
    background-color: #e74c3c;
}

/* Footer */

footer {
    background-color:#000000;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 30px;
}



/* Responzivní design */

/* Mobilní telefon */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    body {
        width: 100%;
        overflow-x: hidden;
    }
    /* banner + navigace */
    .header {
        padding: 30px 7%;
    }

    .header .logo img {
        height: 30px;
        max-width: 100%;
    }
    .social-links {
        display: none;
    }
    .navigation {
        display: none;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        text-align: center;
    }

    .navigation.mobile-active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .navigation.mobile-active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: black;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }

    .navigation.mobile-active ul {
        flex-direction: column;
        gap: 20px;
    }

    .navigation.mobile-active a {
        font-size: 1.2em;
    }

    .banner {
        width: 100%;
        height: auto;
        border-radius: 0px;
    }
    .banner-content {
        border-radius: 0px;
        width: 100%;
        background-color: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        
    }
    /* sekce o nas */
    .o-nas{
        padding: 0px;
        margin: 0px;
        justify-content: center;
    }
    .o-nas-content {
        display: flex;
        flex-direction: column-reverse;
        margin: 0px;
        padding: 0px;
        justify-content: center;
        

    }
    .text-card{
        top: auto;
        right: auto;
        position: relative;
        width: 100%;
        text-align: center;
        margin: 0px;
        border-radius: 0px;
        box-shadow: none;
        background-color: var(--primary-color);
        color: var(--secondary-color);
        

    }
    .flextlacitko{
        display: none;
    }
    .o-nas-img{
        position: relative;
        border-radius: 0px;
        width: 100%;
        margin: 0px;
        padding: 0px;
    }
    /* sekce naše služby */
    /* sekce výhody */
    .vyhody-wrapper{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .vyhody-container{
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .vyhoda{
        max-width: 80%;
    }
    .galerie-vyhody{
        display: none;
    }

    /* sekce zakazky */
    #zakazky{
        max-width: 100%;
        border-radius: 0px;
    }
    .projekt{
        max-width: 100%;
    }
    .indicators{
        display: none;
    }
    /* sekce kontakt */
    #kontakt{
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }
    .contact-section{
        padding: 0px;
        margin: 0px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .contact-container{
        position: relative;
        display: flex;
        flex-direction: column;
        text-align: center ;
        justify-content: center;
    }
    .contact-info-map, .contact-form {
        width: 75%;
        text-align: left;
        justify-content: center;
        align-items: center;
        margin-left: 12.5%;
        margin-right: 12.5%;
        margin-bottom: 20px;
    }
    /* footer */
    footer {
        justify-content: center;
        align-items: center;
        height: 100px;
    }
}
/* styly pro tablety */

@media (min-width: 768px) and (max-width: 1024px) {

    .body {
        max-width: 100%;
    }
    /* navigace+banner*/

    .header {
        max-width: 100%;
    }

    /* sekce o nas */
    .o-nas{
        padding: 0px;
        margin: 0px;
        justify-content: center;
        max-width: 100%;
    }
    .o-nas-content {
        display: flex;
        flex-direction: column-reverse;
        margin: 0px;
        padding: 0px;
        justify-content: center;
        align-items: center;
        

    }
    .text-card{
        top: auto;
        right: auto;
        position: relative;
        width: 80%;
        text-align: center;
        margin: 0px;
        border-radius: 0px;
        box-shadow: none;
        background-color: var(--primary-color);
        color: var(--secondary-color);
        

    }
    .flextlacitko{
        display: none;
    }
    .o-nas-img{
        position: relative;
        border-radius: 0px;
        width: 100%;
        margin: 0px;
        padding: 0px;
    }

    /* sekce vyhody */

    .galerie-vyhody {
        display: none;
    }

    .vyhody-container { 
        align-items: center;
        justify-content: center;
    }

    .vyhoda {
        width: 70%;
    }

    /* sekce zakazky */

    /* sekce kontakt */

    /* footer */
    footer {
            justify-content: center;
            align-items: center;
            height: 100px;
            padding-bottom: 100px;
            margin-bottom: 0px;
            background-color: #000000;
    }

    
}
