/* Variabilní odsazení loga v headeru podle šířky displeje */

.logo-header {
    max-height: 25px;
    height: auto;
    vertical-align: middle;
    margin-left: 5vw;
}

@media (max-width: 600px) {
    .logo-header {
        margin-left: 3vw;
    }
}
* {
    margin: 0;
    padding: 0;
    font-family: "OpenSans", sans-serif;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.from-top {
    transform: translateY(-40px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-left.from-top {
    transform: translateX(50px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.from-top {
    transform: translateX(-50px);
}

@font-face {
    font-family: "OpenSans";
    src: url("fonts/OpenSans.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}


header {
    display: flex;
    width: 100%;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    background: rgb(0, 48, 82);
    background: linear-gradient(35deg, rgba(0, 48, 82, 1) -50%, rgba(0, 28, 52, 1) 45%);
    color: white;
}

header h4 {
    font-size: 1.5em;
    margin-left: 50px;
}

header a {
    color: white;
    font-style: normal;
    text-decoration: none;
    font-size: 1.5em;
    padding: 5px 10px;
}

nav {
    margin-right: 5vw;
}

nav ul {
    list-style: none;
    display: flex;
}

#poptavka {
    margin-left: 5vw;
    padding: 5px 10px;
    background-color: #001221;
    border-radius: 7px;
}

#domu {

    height: calc(100vh - 60px);
    background-color: #001C34;
    color: #FCFEFD;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('img/logo.svg'), linear-gradient(10deg, rgb(0, 40, 69) 0%, rgba(0, 28, 52, 1) 75%);
    background-size: auto 100%;
    /* Nastaví šířku SVG na 50 % šířky obrazovky */
    background-repeat: no-repeat;
    /* Zabrání opakování */
    background-position: calc(100% + 160px) calc(0%), top;
    /* Posune SVG za pravý dolní roh */
    clip-path: polygon(0 0, 100% 0, 100% 97%, 0% 100%);
}

#domu article {
    margin: 0 0 15vh 5vw;
}

#domu article h1 {
    font-size: 6.5em;
    line-height: 1.1em;
}

#domu article p {
    font-size: 2.4em;
    margin-top: 20px;
}

h1 {
    font-size: 5.5em;
}

#sluzby {
    background-color: #FCFEFD;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 80px;
    text-align: center;
    overflow: hidden;
}

#sluzby h2 {
    color: #001C34;
}

.carousel-wrapper {
    width: 100%;
    overflow: visible;
    padding: 20px 0 30px;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

#sluzby .articles {
    display: flex;
    gap: 30px;
    width: max-content;
    overflow: visible;
    padding: 10px 0;
    will-change: transform;
}

#sluzby article {
    flex: 0 0 240px;
    height: 360px;
    background-color: #003052;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: center;
}

#sluzby .card-icon {
    height: 50%;
    background-color: #001C34;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sluzby .card-icon img {
    height: 110px;
    width: 110px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

#sluzby .card-inner {
    height: 50%;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

#sluzby h3 {
    font-size: 1em;
    color: #FCFEFD;
    margin: 0;
}

#sluzby p {
    font-size: 0.85em;
    color: #a8c0d6;
    line-height: 1.5;
    margin: 0;
}

.sluzby-cta {
    font-size: 1.1em;
    color: #555;
    margin-top: 20px;
    padding: 0 20px;
}

h3 {
    font-size: 1.5em;
}

#onas {
    height: 100vh;
    min-height: 750px;
    background-color: #001C34;
    color: #FCFEFD;
    background-image: url('img/shield-icon.svg');
    background-size: auto 80%;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
}

.check {
    margin: 15vh 0;
    width: 50vw;
    display: flex;
    flex-direction: row;
}

#onas img {
    height: 50px;
    margin-right: 20px;
}

h2 {
    font-size: 5em;
    z-index: 1;
}

#kontakt {
    min-height: 100vh;
    background-color: #FCFEFD;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

#kontakt h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

#kontakt-perex {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
    max-width: 600px;
}

#form-message {
    width: 100%;
    max-width: 600px;
    margin-bottom: 10px;
}

.form-success {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1em;
    background-color: #e6f4ea;
    color: #1e6b35;
    border: 1px solid #a8d5b5;
}

.form-error {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1em;
    background-color: #fdecea;
    color: #9b2335;
    border: 1px solid #f5b8bc;
}

#kontakt form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

#kontakt label {
    font-size: 1.1em;
    margin-bottom: 5px;
}

#kontakt input[type="text"],
#kontakt input[type="email"],
#kontakt input[type="tel"],
#kontakt textarea {
    padding: 12px 15px;
    margin-bottom: 4px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    font-family: "OpenSans", sans-serif;
    transition: border-color 0.2s;
    outline: none;
}

#kontakt input[type="text"]:focus,
#kontakt input[type="email"]:focus,
#kontakt input[type="tel"]:focus,
#kontakt textarea:focus {
    border-color: #003052;
}

#kontakt textarea {
    min-height: 150px;
    resize: vertical;
}

.field-error {
    color: #c0392b;
    font-size: 0.85em;
    margin-bottom: 10px;
    display: block;
    min-height: 1.2em;
}

#kontakt .cf-turnstile {
    margin-top: 10px;
}

#submit-btn {
    margin-top: 10px;
    padding: 12px 20px;
    background-color: #003052;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-family: "OpenSans", sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

#submit-btn:hover {
    background-color: #001C34;
}

@media screen and (max-width: 950px) {
    #kontakt {
        min-height: auto;
        padding: 60px 20px;
    }
}

footer {
    background-color: #001C34;
    color: #a8c0d6;
    font-size: 0.95em;
}

.footer-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-brand {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    color: #a8c0d6;
    line-height: 1.6;
}

.footer-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

footer h3 {
    color: #ffffff;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer a {
    color: #a8c0d6;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social img {
    height: 20px;
    width: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-social:hover img {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 20px 40px;
    color: #5a7a94;
    font-size: 0.85em;
}

@media screen and (max-width: 710px) {
    .footer-top {
        flex-direction: column;
        padding: 40px 24px 30px;
        gap: 30px;
    }

    .footer-col {
        width: 100%;
    }
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 5vw;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(35deg, rgba(0, 48, 82, 1) -50%, rgba(0, 28, 52, 1) 45%);
    z-index: 999;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mobile-menu ul li a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 14px 30px;
    transition: background-color 0.2s;
}

.mobile-menu ul li a:hover {
    background-color: rgba(255,255,255,0.08);
}

@media screen and (max-width: 710px) {
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    #domu article h1 {
        font-size: 5em;
    }

    #domu article p {
        font-size: 2em;
    }

    #sluzby {
        height: min-content;
    }

    .carousel-wrapper {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    #sluzby .articles {
        animation: none;
        display: grid;
        grid-template-columns: 1fr;
        width: 90%;
        max-width: 320px;
        gap: 20px;
        margin: 0 auto;
    }

    #sluzby .articles article[aria-hidden="true"] {
        display: none;
    }

    #sluzby article {
        flex: unset;
        width: 100%;
        height: auto;
        min-height: 320px;
    }

    #nav {
        display: none;
    }
}

@media screen and (max-width: 950px) {
    #onas {
        flex-direction: column;
        justify-content: center;
        min-height: min-content;
    }

    .check {
        margin: 12vh 0;
        padding-left: 5px;
        padding-right: 5px;
        width: 95vw;
    }

    #kontakt {
        height: auto;
        padding: 60px 20px;
    }

    #sluzby .articles article {
        flex: 0 0 240px;
    }
}

@media screen and (max-width: 550px) {
    .check {
        margin: 70px 0;
        width: 95vw;
    }

}