/* 
 * Saigon Bảo Tín - Footer Styles
 * Pure CSS Implementation - Enhanced Version
 */

.site-footer {
    background-color: #0f172a;
    /* Deep Navy Background */
    color: #e2e8f0;
    /* High contrast body text */
    border-top: 4px solid var(--primary);
    /* Brand Accent Line */
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.site-footer a:visited {
    color: inherit !important;
}

/* Subtle background texture/glow */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-box {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}

.footer-desc {
    color: #cbd5e1;
    max-width: 450px;
    font-size: 1.125rem;
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.social-btn,
.social-btn:visited {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(250, 117, 22, 0.3);
}

.footer-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-link,
.footer-link:visited {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-link::before {
    content: '→';
    opacity: 0;
    margin-left: -15px;
    transition: all 0.2s ease;
}

.footer-link:hover::before {
    opacity: 1;
    margin-left: 0;
    margin-right: 8px;
    color: var(--primary);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item .icon {
    color: var(--primary);
    font-size: 1.4rem;
    margin-top: 2px;
}

.contact-item .text {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 120px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.copyright {
    color: #64748b;
    font-size: 0.75rem;
    width: 100%;
    margin-top: 20px;
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.5);
}

.scroll-to-top .material-symbols-outlined {
    font-size: 24px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 30px;
        right: 30px;
        width: 45px;
        height: 45px;
    }
}


/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 110px; /* Above scroll-to-top */
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.f-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.f-btn:hover {
    transform: scale(1.1);
}

.f-btn-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: white;
    font-size: 20px;
}

.f-zalo {
    background-color: transparent; /* Changed to transparent for image */
}

.f-phone {
    background-color: transparent; /* Changed to transparent for image */
}

/* Pulse Animation */
.f-anim-ring {
    position: absolute;
    inset: -5px;
    border: 2px solid;
    border-radius: 50%;
    animation: f-pulse 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: 1;
}

.f-zalo .f-anim-ring { border-color: #0068ff; }
.f-phone .f-anim-ring { border-color: #2c3e50; }

@keyframes f-pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 95px;
        right: 30px;
    }
    .f-btn {
        width: 45px;
        height: 45px;
    }
    .f-zalo .f-btn-icon {
        font-size: 13px;
    }
    .f-btn-icon i {
        font-size: 18px;
    }
    .site-footer {
        padding: 60px 0 40px;
    }
}

