#footer .footer-spacer {
    height: 0px;
    background-color: white;
}

#footer footer {
    background-image: url('../images/footer/Firefly 20250605065340.png');
    border-top: 2px solid var(--header-background-color);
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

#footer .footer-name h3 {
    margin: 0;
}

#footer .footer-content-container {
    width: 100%;
    box-sizing: border-box;
    max-width: 4096px;

    padding: 50px var(--horizontal-padding) 50px var(--horizontal-padding);
    min-height: 370px;

    background-image: url('../images/footer/Firefly 20250605065340.png');

    animation: fadeIn 2s ease forwards;

    display: flex;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#footer .footer-content-container .footer-content {
    max-width: var(--max-content-width);
    width: 100%;
    position: relative;
}

#footer .footer-content-container .footer-content .business-card {
    max-height: clamp(120px, (100vw - 239.35px) * 0.884615, 350px) /* AutoClamp(375, 120, 635, 350) */;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(-5px 15px 10px rgba(0, 0, 0, 0.4));
}

#footer .footer-content-container .footer-content .footer-content-inner {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3rem;
    max-width: 65%;
    flex-wrap: wrap;
}

#footer .footer-content-container .footer-content .footer-content-inner .footer-content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
    gap: 4rem;
}

@media (max-width: 835px) {
    #footer .footer-content-container .footer-content .footer-content-inner .footer-content-wrapper {
        flex-direction: column !important;
        gap: 0rem;
    }
}

#footer .footer-name {
    width: 290px;
    color: var(--header-background-color);
    font-family: 'TeXGyreChorus';
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0px;
    text-wrap: nowrap;
    font-size: clamp(26px, (100vw - -3020px) * 0.006061, 27px) /* AutoClamp(1270, 26, 1435, 27) */;
    margin-top: 3px;
}

#footer .contact-section h4,
#footer .opening-hours-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(16px, (100vw - 742px) * 0.030303, 21px) /* AutoClamp(1270, 16, 1435, 21) */;
    color: var(--header-background-color);
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-weight: 500;
    text-transform: uppercase;
}

#footer .contact-section h4::after,
#footer .opening-hours-section h4::after {
    content: '';
    display: block;
    height: 2px;
    background-color: var(--header-background-color);
    margin-top: 0.5rem;
}

#footer .contact-section h4::after {
    width: 95%;
}

#footer .opening-hours-section h4::after {
    width: 78%;
}

#footer .contact-information,
#footer .opening-hours-information {
    font-style: normal;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(11px, (100vw - -1290.71px)*0.006604, 18px) /* AutoClamp(375, 11, 1435, 18) */;
    color: black;
    min-width: 12rem;
}

#footer .opening-hours-information {
    display: flex;
}

#footer .opening-hours-information-inner {
    display: flex;
    flex-direction: column;
}

#footer .opening-hours-information-inner .opening-hours-information-days {
    text-align: center;
}

#footer .opening-hours-information-inner .opening-hours-information-hours {
    display: flex;
}

#footer .contact-information a {
    transition: color 0.3s ease;
    font-size: 16px;
}

#footer .contact-information a.phone {
    color: black;
    text-decoration: none;
}

#footer .contact-information a.email {
    color: #0066cc;
}

#footer .contact-information a.phone:hover {
    text-decoration: underline;
}

#footer .contact-information a:hover {
    color: #003d99;
}

#footer .footer-copyright {
    position: relative;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--header-background-color);
    width: 100%;
    padding: 0 var(--horizontal-padding);
    box-sizing: border-box;
}

#footer .footer-copyright p {
    margin: 0;
    text-align: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

#footer .footer-links {
    z-index: 1;
    height: 48px;
    border-top: 2px solid var(--header-background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 0 var(--horizontal-padding);

    width: 100%;
    box-sizing: border-box;

    background-color: grey;
}

#footer .footer-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
}

#footer .footer-links a:hover {
    color: var(--header-hover-item-color);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--header-background-color);
    border: 2px solid var(--header-background-color);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(34, 58, 94, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 58, 94, 0.4);
}

.scroll-to-top.show:hover {
    transform: translateY(-2px);
}

.scroll-to-top:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(34, 58, 94, 0.3);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: fill 0.3s ease;
}

.scroll-to-top:hover svg {
    fill: var(--header-background-color);
}

@media (max-width: 1420px) {
    #footer .opening-hours-section h4::after {
        width: 75%;
    }
}

@media (max-width: 1320px) {
    #footer .opening-hours-section h4::after {
        width: 65%;
    }
}

@media (min-width: 1000px) {
    #footer .footer-links {
        font-size: 20px;
    }

    #footer .footer-copyright p {
        font-size: 16.25px;
    }
}

/* Bottom position when near footer - only on mobile */
@media (max-width: 835px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 30px;
        right: 20px;
    }

    .scroll-to-top.near-footer {
        bottom: 136px !important;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }

    #footer .footer-content-container .footer-content {
        display: flex;
    }

    #footer .footer-content-container .footer-content .footer-content-inner {
        z-index: 1;
    }

    #footer .footer-content-container .footer-content .business-card {
        z-index: 0;
    }
}
