html {
    font-size: 16px;
}
#hero-section {
    height: 95vh;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 100%), url("../images/foukac-68af782c22c146a635a474dfc8459a08.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.h-95 {
    height: 95vh;
}

#cards-section {
    background-color: #0C7489;
}

#foukana-izolace {
    scroll-margin-top: 175px;
    background-color: #05333C;
}

#dotace {
    scroll-margin-top: 175px;
    background-color: #064755;
}

#aplikace {
    scroll-margin-top: 175px;
    background-color: #085362;
}

#cards {
    padding-top: 75px;
    padding-bottom: 75px;
}

.card-heading-font {
    font-size: 24px;
}

#card-button {
    border-width: 2px;
    text-align: left;
}

hr.solid {
    border-top: 2px solid #fff;
}

.card-picture {
    height: 100px;
    display: flex;
    align-items: center;
}

.card-image {
    max-height: 80px;
}

.card-shadow {
    box-shadow: 10px 10px 10px 0 rgba(33, 33, 33, 0.25);
}

#feature-section {
    padding-top: 75px;
    padding-bottom: 75px;
    background-color: #f2f2f2;
}

#kalkulacka {
    scroll-margin-top: 50px;
    padding-top: 75px;
    padding-bottom: 75px;
    background-color: #f2f2f2;
}

#fotogalerie {
    scroll-margin-top: 50px;
    padding-top: 75px;
    padding-bottom: 75px;
    background-color: #f2f2f2;
}

#calculator-box {
    margin-top: 50px;
    background-color: #fff;
    min-height: 500px;
    box-shadow: 10px 10px 10px 0 rgba(33, 33, 33, 0.1);
}

.blue-number {
    display: inline-block;
    width: 35px;
    line-height: 35px;
    border-radius: 50%;
    text-align: center;
    background-color: #0C7489;
    color: white;
    margin-right: 10px;
}

.btn-add-next-area {
    border: 2px solid #000;
    border-radius: 8px;
    color: #000;
    background-color: #fff;
    padding: 10px 15px;

    transition: background-color 0.3s;
}

.btn-add-next-area:hover {
    background-color: #0C7489;
    border-color: #0C7489;
    color: #fff;
}

.send-button {
    background-color: #0C7489;
    color: #fff;
    border: 2px solid #0C7489;
    border-radius: 8px;
    padding: 10px 15px;

    transition: background-color 0.3s, transform 0.3s;
}

.send-button:hover {
    transform: scale(1.02);
}

#kontakt {
    scroll-margin-top: 50px;
    padding-top: 75px;
    padding-bottom: 75px;
    background-color: #f2f2f2;
}

.blue-text {
    color: #0C7489 !important;
}

.custom-link {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

.custom-link:hover {
    color: #0C7489;
    text-decoration: none;
}

#map-section {
    padding-top: 75px;
    padding-bottom: 75px;
    background-color: #f2f2f2;
}

.map {
    width: 100%;
    height: 60vh;
}

#footer-section {
    background-color: #0C7489;
}

.nav-container {
    color: white;
    transition: background-color 0.2s linear;

    &.solid-nav {
        background-color: #ffffff;
        transition: background-color 0.2s linear;
    }
}

/* Nový styl pro hamburgerMenu */
#hamburgerMenu {
    position: absolute;
    top: 0; /* Initially set to 0 */
    left: 0;
    width: 100%;
    background-color: #fff; /* Background color of hamburgerMenu */
    padding: 15px 0; /* Padding for the content of hamburgerMenu */
    z-index: 1000; /* Ensure it is above other elements */
    display: none; /* Hide menu initially */
    transition: top 0.3s; /* Smooth transition for the top property */
}

#hamburgerMenu.show {
    display: block;
}

/* Mobile specific styles */
@media (max-width: 1200px) {
    .nav-container {
        background-color: #fff; /* Background color for the nav container */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow for better separation from content */
    }
}


.card-heading-font {
    font-size: 1.5rem; /* Případně můžete nastavit i jinou velikost písma */
}

.h-50 {
    height: 50vh;
}

#certificates-section {
    height: 50vh;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 100%), url("../images/certificates_hero-4a8630761f12240cfca4d1c737d20ead.jpg");
    background-size: cover;
    background-position: 50% 60%;
    background-repeat: no-repeat;
}

#card-custom {
    .card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
}
#card-custom {
    .card .card-body {
        flex: 1;
    }
}

#files-section {
    padding-top: 75px;
    padding-bottom: 75px;
    background-color: #f2f2f2;
}

.file-wrapper {
    border: 2px solid #0C7489;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin-right: 10px;
}

.file-wrapper:hover {
    background-color: #0C7489;
    color: #fff;
    text-decoration: none;

    .file-text {
        color: #fff;
    }
}

.pdf-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.file-text {
    color: #0C7489;
}

#files-to-download-section {
    padding-top: 75px;
    padding-bottom: 75px;
    background-color: #f2f2f2;
}

.custom-button {
    background-color: #0C7489;
    color: #fff;
    border: 2px solid #0C7489;
    border-radius: 8px;
    padding: 10px 15px;

    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary {
    background-color: #0C7489 !important;
    color: #fff !important;
    border: 2px solid #0C7489 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;

    transition: background-color 0.3s, transform 0.3s !important;
}

.btn-primary:hover {
    transform: scale(1.02) !important;
}

.phone {
    transition: transform 0.3s !important;
}

.phone:hover {
    transform: scale(1.1);
}

.card-blue-background {
    background-color: #05333C !important;
}

.text-yellow {
    color: #b5cd00;
}

@media only screen and (max-width: 1200px) {
    #floating_banner {
        display: none !important;
    }
}


#floating_banner {
    border-radius: 0 15px 15px 0;
    position: fixed;
    display: flex;
    left: 0;
    top: 20%;
    z-index: 1000;
    background-color: #ffffff;
    transform: translateX(-250px);
    transition: transform 0.3s;
    background-color: rgba(255, 255, 255, 0);
}

#floating_banner:hover {
    transform: translateX(0);
}

.floating_banner_inner {
    background-color: white;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    max-width: 250px;
}

.floating_banner_side {
    border: solid white 2px;
    border-left: none;
    border-radius: 0 15px 15px 0;
    padding: 15px;
    background-color: #0C7489;
    h3 {
        writing-mode: vertical-lr;
        margin: 0;
        padding: 0;
        color: #fff;
    }
}

#floating_banner_mobile {
    display: none; /* Skryjte element ve výchozím stavu */
}

@media only screen and (max-width: 1200px) {
    #floating_banner_mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #0C7489;
        padding: 10px;
        box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .floating_banner_mobile_inner {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .floating_banner_mobile_inner h3 {
        margin: 0;
    }

    .floating_banner_mobile_inner a {
        text-decoration: none;
        color: white;
    }

    #floating_banner_mobile {
        height: auto; /* Nastavte výšku na automatickou */
    }

    #floating_banner_mobile.fixed {
        position: fixed; /* Oprava pro iOS */
    }

    body {
        margin-bottom: 71.44px !important; /* Výška plovoucího banneru */
    }
}

.gallery-container {
    margin-top: 20px;
}

.gallery-item {
    display: block;
    margin-bottom: 15px;
}

.gallery-item img {
    width: 100%;
    height: 200px; /* Nastavte pevnou výšku */
    object-fit: cover; /* Ujistěte se, že obrázky jsou oříznuty a udržují svůj poměr stran */
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

.required::after {
    content: '*';
    color: red;
    margin-left: 3px;
    font-size: 0.8em;
    vertical-align: top;
}

.w-60 {
    width: 60%;
    height: auto;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    width: 100%;
}

.loading-indicator p {
    margin-bottom: 0;
    color: #666;
    font-size: 14px;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Floating Banners - Partnerské weby */
.floating-banners {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floating-banner {
    position: absolute;
    left: 0;
    width: 42px;
    height: 180px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.floating-banner-2 {
    height: 220px;
}

.floating-banner:hover {
    width: 280px;
    height: 200px;
}

.floating-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.floating-banner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.floating-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.floating-banner:hover .floating-banner-content {
    box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.35);
}

/* Vertikální text v zabaleném stavu */
.floating-banner-vertical-text {
    position: absolute;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.floating-banner:hover .floating-banner-vertical-text {
    opacity: 0;
}

/* Rozbalený obsah */
.floating-banner-expanded {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.floating-banner:hover .floating-banner-expanded {
    opacity: 1;
}

.floating-banner-text {
    color: white;
}

.floating-banner-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
    color: white;
}

.floating-banner-subtitle {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.3;
    color: white;
}

.floating-banner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-banner-logo-desktop {
    width: 100%;
    height: auto;
}

.floating-banner-logo-mobile {
    display: none;
}

.floating-banner-logo-mobile img {
    border-radius: 10px;
}

.floating-banner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Banner 1 - Žlutá */
.floating-banner-1 .floating-banner-content {
    background: linear-gradient(135deg, #e5a400 0%, #c08800 100%);
}

.floating-banner-1:hover .floating-banner-content {
    background: linear-gradient(135deg, #f0b410 0%, #d09800 100%);
}

/* Banner 2 - Modrá/Žlutá diagonální split */
.floating-banner-2 .floating-banner-content {
    background: linear-gradient(135deg, #0e758a 0%, #0e758a 50%, #c9a800 50%, #c9a800 100%);
}

.floating-banner-2:hover .floating-banner-content {
    background: linear-gradient(135deg, #1285a0 0%, #1285a0 50%, #dab810 50%, #dab810 100%);
}

/* Pozice bannerů */
.floating-banner-1 {
    top: calc(50% - 180px);
}

.floating-banner-2 {
    top: calc(50% + 30px);
}

/* Responsivita - mobilní verze jako fixní spodní lišta */
@media (max-width: 1024px) {
    .floating-banners {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        gap: 0;
        z-index: 1000;
    }

    .floating-banner {
        position: relative;
        top: auto !important;
        width: 50%;
        height: 65px;
        overflow: hidden;
    }

    .floating-banner:hover {
        width: 50%;
        height: 65px;
    }

    .floating-banner-content {
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    }

    .floating-banner-vertical-text {
        display: none;
    }

    .floating-banner-expanded {
        opacity: 1;
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0.6rem 0.75rem;
        gap: 0.6rem;
    }

    .floating-banner-text {
        flex: 1;
        min-width: 0;
    }

    .floating-banner-title {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .floating-banner-subtitle {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .floating-banner-logo-desktop {
        display: none;
    }

    .floating-banner-logo-mobile {
        display: flex;
        width: 40px;
        height: 40px;
        padding: 4px;
        order: -1;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .floating-banner {
        height: 56px;
    }

    .floating-banner:hover {
        height: 56px;
    }

    .floating-banner-expanded {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .floating-banner-title {
        font-size: 0.8rem;
    }

    .floating-banner-subtitle {
        display: none;
    }

    .floating-banner-logo-mobile {
        width: 36px;
        height: 36px;
    }
}

/* Skrytí na malých výškách - pouze desktop */
@media (min-width: 1025px) and (max-height: 600px) {
    .floating-banners {
        display: none;
    }
}

