/* includes/footer.php — moved from its inline <style> block (loaded at the same position). */
/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #006266 0%, #004a4d 50%, #003033 100%);
    color: #ffffff;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
}

.footer-main {
    position: relative;
}

.footer-logo {
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1.3);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #ffffff;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e5f3f4;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    color: #ffffff;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 1px;
}

.footer-links {
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #b3d9db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: #ffffff;
    color: #006266;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Contact Items */
.contact-item {
    font-size: 0.95rem;
    color: #e5f3f4;
}

.contact-item i {
    font-size: 1.1rem;
    color: #22c55e;
}

.contact-item .footer-link {
    color: #b3d9db;
}

.contact-item .footer-link:hover {
    color: #ffffff;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #b3d9db;
}

.footer-bottom-links {
    margin-top: 0.5rem;
}

.footer-bottom-links .footer-link {
    font-size: 0.9rem;
    color: #b3d9db;
}

.footer-bottom-links .footer-link:hover {
    color: #ffffff;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow:
        0 4px 15px rgba(34, 197, 94, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateX(-50%) translateY(-3px);
    box-shadow:
        0 6px 20px rgba(34, 197, 94, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-back-to-top:focus {
    outline: none;
    box-shadow:
        0 4px 15px rgba(34, 197, 94, 0.3),
        0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0;
    }

    .footer-bottom-links {
        text-align: center !important;
        margin-top: 1rem;
    }

    /* .social-links {
        justify-content: center;
    } */

    .btn-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        font-size: 1.1rem;
    }
}

/* @media (max-width: 576px) {
    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        justify-content: center;
    }

    .btn-back-to-top {
        width: 40px;
        height: 40px;
        bottom: 10px;
        font-size: 1rem;
    }
} */

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .footer {
        background: #000000 !important;
        border-top: 3px solid #ffff00;
        color: #ffffff !important;
    }

    .footer::before {
        background: #ffff00;
        height: 3px;
    }

    .footer-title,
    .footer-heading,
    .footer-description,
    .contact-item {
        color: #ffffff !important;
    }

    .footer-link {
        color: #ffffff !important;
        font-weight: 600;
    }

    .footer-link:hover {
        color: #ffff00 !important;
        background: #333333;
        padding: 0.25rem 0.5rem;
        border-radius: 3px;
        transform: none;
    }

    .footer-link::before {
        background: #ffff00;
    }

    .footer-heading::after {
        background: #ffff00;
    }

    .social-link {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #ffffff;
        font-weight: bold;
    }

    .social-link:hover {
        background: #ffff00 !important;
        color: #000000 !important;
        border-color: #ffff00;
        transform: none;
    }

    .contact-item i {
        color: #ffff00 !important;
    }

    .footer-bottom {
        background: #333333 !important;
        border-top: 2px solid #ffff00;
    }

    .footer-bottom p,
    .footer-bottom .footer-link {
        color: #ffffff !important;
    }

    .footer-bottom .footer-link:hover {
        color: #ffff00 !important;
    }

    .btn-back-to-top {
        background: #000000 !important;
        border: 3px solid #ffff00 !important;
        color: #ffff00 !important;
        font-weight: bold;
    }

    .btn-back-to-top:hover {
        background: #ffff00 !important;
        color: #000000 !important;
        border-color: #ffff00 !important;
        transform: translateX(-50%) !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .social-link,
    .btn-back-to-top {
        transition: none;
    }

    .footer-link:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
    }

    .btn-back-to-top:hover {
        transform: none;
    }
}
