/* Footer Styles for Grupo ZC theme */
:root {
    --color-primary: var(--theme-primary-color, #333333);
    --color-secondary: var(--theme-secondary-color, #ffffff);
    --color-footer-bg: var(--theme-footer-bg, #374151);
    --color-copyright-bg: var(--theme-copyright-bg, #1a1a1a);
}

.footer {
    color: var(--color-text-gray-700);
}

/* If the footer background is dark, we should ideally adjust text colors. 
   For now, strictly applying what's in Customizer. */

.footer-container {
    max-width: var(--max-width-7xl);
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-section {
    width: 100%;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    /* Use Primary color for footer titles */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Footer Navigation */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: var(--color-text-gray-300) !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    display: block;
    padding: 2px 0;
}

.footer-menu a:hover {
    color: var(--color-accent) !important;
    transform: translateX(5px);
}

/* Contact Information */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--color-accent);
}

.footer-contact-link {
    color: var(--color-text-gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-contact-link:hover {
    color: var(--color-accent);
}

/* Business Hours */
.business-hours {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.hours-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.hours-text {
    font-size: 0.875rem;
    color: var(--color-text-gray-300);
    margin: 0;
    line-height: 1.5;
    white-space: pre-line;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

/* Social Media */
.social-section {
    margin-top: 1.5rem;
}

.social-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-gray-300);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    color: white;
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Copyright Section */
.footer-copyright {
    background-color: var(--color-copyright-bg);
    padding: 1rem;
}

.footer-copyright-container {
    max-width: var(--max-width-7xl);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem 1.5rem;
    /* Vertical gap 0.5rem, horizontal gap 1.5rem */
}

@media (min-width: 768px) {
    .footer-copyright-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.footer-copyright-text {
    color: var(--color-text-gray-400);
    font-size: 0.8125rem;
    margin: 0;
}

.footer-copyright-link {
    color: white;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-copyright-link:hover {
    color: var(--color-accent);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-column {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1rem 0;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-title {
        font-size: 0.9375rem;
        margin-bottom: 0;
        cursor: pointer;
        justify-content: center;
        text-align: center;
        width: 100%;
        position: relative;
    }

    .footer-title::after {
        content: '+';
        font-size: 1.25rem;
        transition: transform 0.3s ease;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .footer-title.active::after {
        content: '−';
        transform: translateY(-50%) rotate(180deg);
    }

    .footer-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--transition-bezier);
    }

    .footer-content.active {
        max-height: 500px;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .social-links {
        justify-content: center;
    }
}