/* ===============================================
   Footer - Copied from 2.0
   =============================================== */

/* CSS Variables needed for logic */
:root {
    --background-color: #ffffff;
    --default-color: #54565a;
    --heading-color: #000000;
    --accent-color: #e7004c;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    --nav-hover-color: #bc955c;
}

.dark-background {
    --background-color: #e7004c;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    --surface-color: #b0003a;
    --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    color: var(--default-color) !important;
    background-color: var(--background-color) !important;
    font-size: 14px;
    position: relative;
}

.footer .footer-top {
    padding-top: 40px;
    /* Removed border-top since it might look weird without context */
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
    line-height: 1;
    margin-bottom: 25px;
}

.footer .footer-about .logo img {
    max-height: 80px;
    /* Adjusted to match Astro file */
    margin-right: 6px;
}

.footer .footer-about .logo span {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--heading-font);
    color: var(--heading-color) !important;
}

.footer .footer-about p {
    font-size: 14px;
}

.footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
    color: var(--heading-color) !important;
}

.footer .footer-links {
    margin-bottom: 30px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.footer .footer-links ul li:first-child {
    padding-top: 0;
}

.footer .footer-links ul a {
    color: #ffffff !important;
    display: inline-block;
    line-height: 1;
    text-decoration: none;
    transition: 0.3s;
}

.footer .footer-links ul a:hover {
    color: var(--accent-color) !important;
}

.footer .footer-contact p {
    margin-bottom: 5px;
}

/* Copyright (Separate container in 2.0 but styled here) */
.copyright {
    padding: 25px 0;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    background: white;
    /* Enforce white background for copyright section */
    color: #54565a !important;
}

.copyright p {
    margin-bottom: 0;
}

.copyright .credits {
    margin-top: 6px;
    font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.6s ease-out;
}

.preloader-icon {
    width: 100px;
    height: 100px;
    animation: pulse-logo 2s infinite ease-in-out;
}

@keyframes pulse-logo {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.0);
        opacity: 1;
    }

    100% {
        transform: scale(0.85);
        opacity: 0.8;
    }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background-color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: var(--contrast-color);
    line-height: 0;
}

.scroll-top:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}