/* ==========================================================================
   FOOTER-EXP.CSS
   Dependent on main.css for core variables and animations.
   ========================================================================== */

/* --- WhatsApp FAB --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    text-decoration: none;
    /* Transition for smooth appearance */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Initially hidden */
    opacity: 0;
    transform: scale(0.5) translateY(40px);
    pointer-events: none;
}

.whatsapp-float.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b355;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Pulsing effect to draw subtle attention */
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    z-index: -1;
    /* Pulsing starts when visible */
    animation: none;
}

.whatsapp-float.is-visible::after {
    animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

.contact_footer {
    width: 100%;
    background-color: var(--black, #202026);
    padding: var(--space-sm) var(--margin-with-screen, 20px);
}

.contact_footer_content {
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.contact_footer_content h2 {
    color: var(--white, #ffffff);
    font-size: var(--text-lg);
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact_footer_btn {
    background-color: var(--yellow, #fbb800);
    color: var(--black, #000000);
    font-size: var(--text-base);
    font-weight: 800;
    text-transform: uppercase;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid var(--yellow, #fbb800);
    box-sizing: border-box;
}

.contact_footer_btn:hover {
    color: var(--white, #ffffff);
    transform: translateY(-2px) scale(1.05);
}



/* --- 2. Link Library Section --- */
.footer_links {
    width: 100%;
    background-color: var(--yellow);
    padding: var(--space-sm) var(--margin-with-screen, 20px);
    border-top: 1px solid rgba(0,0,0,0.05); /* Subtle separation */
}

.footer_links_content {
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.footer_column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer_column h3 {
    font-size: var(--text-base);
    font-weight: 900;
    color: var(--black);
    text-shadow: none;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--black);
    display: inline-block;
    width: auto;
    padding-bottom: 0.2rem;
}

.footer-chevron {
    display: none;
}

.footer_column a {
    display: block;
    color: var(--black);
    font-size: var(--text-sm);
    font-weight: 700;
    transition: all 0.3s ease;
    width: fit-content;
    transform-origin: center;
}

.footer_column a:hover {
    transform: translateX(5px);
}

#footer {
    background: transparent;
    width: 100%;
    display: block;
}

/* --- 1. Main Footer Architecture --- */
.footer {
    background: transparent;
    color: var(--black, #202026);
    padding: 0;
    text-align: center;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(30px);
}

.footer.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-enter), transform var(--transition-enter);
}

.footer:not(.visible) {
    transition: opacity var(--transition-exit), transform var(--transition-exit);
}

.footer_bottom {
    background-color: var(--yellow, #fbb800);
    padding: var(--space-sm) var(--margin-with-screen, 20px);
    width: 100%;
}

.footer_content {
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.footer_social {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    opacity: 0;
    transform: translateY(15px);
}

.footer_social img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s var(--ease-smooth);
}

.footer_social a:hover img {
    transform: scale(1.2) translateY(-5px);
}

/* --- 3. Flex Columns --- */
.footer_left, .footer_center, .footer_right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer_left {
    align-items: flex-start;
}

.footer_center {
    align-items: center;
    gap: var(--space-md);
}

.footer_right {
    align-items: flex-end;
}

.footer_logo img {
    display: block;
    height: 70px;
    width: auto;
    object-fit: contain;
    margin: 0 !important;
    transition: all 0.3s var(--ease-smooth);
}

.footer_logo_link:hover img {
    transform: scale(1.1);
}

.footer_logo {
    opacity: 0;
    transform: translateY(15px);
}

.footer_text {
    opacity: 0;
    transform: translateY(15px);
}

.footer_text p {
    margin: 0;
    text-align: center;
}

.footer_info {
    line-height: 1.6;
    margin: 0 !important;
    text-align: center;
}

.footer_copyright {
    margin: 0 !important;
    text-align: center;
}



/* --- 5. Staggered Delay Logic (Visible state) --- */
.footer.visible .footer_social {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-enter) 100ms, transform var(--transition-enter) 100ms;
}

.footer.visible .footer_logo {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-enter) 200ms, transform var(--transition-enter) 200ms;
}

.footer.visible .footer_text {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-enter) 300ms, transform var(--transition-enter) 300ms;
}

.footer:not(.visible)>*>* {
    transition: opacity var(--transition-exit), transform var(--transition-exit);
}

/* --- 6. Responsive Adjustments --- */
@media (max-width: 768px) {
    .footer_links_content {
        grid-template-columns: 1fr;
        gap: 0.5rem; /* Reduced from space-md to eliminate dead space */
        text-align: center;
    }

    .footer_column {
        align-items: center;
        width: 100%;
        gap: 0; /* Eliminate internal gap between title and hidden links */
    }

    .footer_column h3 {
        width: 100%;
        text-align: center;
        border-bottom: none;
        padding: 0.8rem 0; /* Consistent padding for touch targets */
        margin: 0; /* Reset margin */
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: var(--black) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-chevron {
        display: inline-flex;
        transition: transform 0.4s ease;
    }

    .footer_column.active .footer-chevron {
        transform: rotate(180deg);
    }

    .footer_column a {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0 !important;
        pointer-events: none;
    }

    .footer_column.active a {
        max-height: 100px;
        opacity: 1;
        margin-top: 0.5rem !important;
        pointer-events: auto;
    }

    .footer_column a:hover {
        transform: translateX(5px);
    }

    /* FAB Mobile Tweaks */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}