/* Centralized Footer CSS - Bennizar Website */
/* This ensures consistent footer styling across all pages */

/* Footer */
.footer {
    background: #030a1c;
    padding: 2rem 2rem 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #1d4ed8;
}

/* Footer Toggle Styles */
.footer-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    display: none; /* Hide by default for desktop/tablet */
}

.footer-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.footer-content-section {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.badge-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.footer .cert-badge {
    width: 95px;
    height: 95px;
    object-fit: contain;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.footer .cert-badge:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #1d4ed8;
}

/* Social Media Icons */
.social-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.follow-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.social-icon.linkedin:hover {
    background: #0077b5;
    color: white;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-icon.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-icon.tiktok:hover {
    background: #000000;
    color: white;
}

.social-icon.youtube:hover {
    background: #ff0000;
    color: white;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    /* Footer tablet layout - badges on right side */
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr auto;
        gap: 2rem;
        align-items: start;
    }

    .footer-badges {
        grid-column: 4;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
        justify-content: center;
    }

    .badge-row {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer .cert-badge {
        width: 70px;
        height: 70px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Footer mobile layout - collapsible sections */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }

    .footer-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }

    .footer-section:last-of-type {
        border-bottom: none;
    }

    .footer-toggle {
        margin-bottom: 0;
        padding: 0.5rem 0;
    }

    .toggle-icon {
        display: block; /* Show toggle icons on mobile */
    }

    .footer-content-section {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
    }

    .footer-content-section.active {
        max-height: 500px;
        opacity: 1;
        margin-top: 1rem;
    }

    .footer-badges {
        grid-column: 1;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        border-bottom: none;
        padding-bottom: 0;
    }

    .badge-row {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }

    .footer .cert-badge {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
}
