/* Global Footer Styles */
.global-footer {
    width: 100%;
    margin-top: auto;
    padding: 24px 40px;
    border-top: 1px solid var(--glass-border);
    background: var(--footer-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-color);
    font-family: var(--font-main);
}

/* --- Top Row: Brand | Newsletter | Links --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 1. Brand Section */
.brand-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 15px;
    border-left: 1px solid var(--glass-border);
    padding-left: 20px;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-color);
}

/* 2. Newsletter Section (Minimal) */
.newsletter-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-heading {
    display: none;
    /* Hide heading for minimal look */
}

.newsletter-input-wrapper {
    position: relative;
    width: 200px;
    border-bottom: 1px solid var(--glass-border);
}

.newsletter-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 5px 0;
    font-size: 11px;
    color: var(--text-color);
    outline: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: left;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.newsletter-input:focus {
    border-bottom-color: var(--text-color);
}

/* 3. Link Section */
.link-section {
    display: flex;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.footer-link:hover {
    color: var(--text-color);
}

/* --- Bottom Row: Business Info (Collapsible) --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
}

.business-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.biz-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    padding: 0;
    cursor: pointer;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.biz-toggle-btn:hover {
    opacity: 1;
    color: var(--text-color);
}

.business-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.business-info.visible {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 25px;
    margin-bottom: 20px;
}

.biz-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.biz-label {
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    font-size: 9px;
}

.biz-link {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.2s;
}

.biz-link:hover {
    color: var(--text-color);
}

.biz-addr {
    opacity: 0.8;
    line-height: 1.4;
}

.copyright {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    opacity: 0.5;
    letter-spacing: 0.05em;
}


/* Responsive */
@media (max-width: 900px) {
    .global-footer {
        padding: 24px 20px;
        /* Default Tablet */
        gap: 30px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    /* ... (Tablets keep mostly same structure) ... */

    .brand-section {
        width: 100%;
        justify-content: space-between;
    }

    .footer-socials {
        border-left: none;
    }

    .newsletter-section {
        width: 100%;
        justify-content: space-between;
    }

    .newsletter-input-wrapper {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .business-info p {
        flex-direction: column;
        gap: 5px;
    }

    .copyright {
        align-self: flex-start;
    }
}

/* Mobile Compact Mode (Strict) */
@media (max-width: 768px) {
    .global-footer {
        padding: 12px 20px !important;
        /* py-6 equiv approx */
        gap: 16px;
    }

    /* Scale down all text */
    .footer-logo {
        font-size: 12px;
    }

    .social-link,
    .footer-link,
    .newsletter-input,
    .copyright,
    .biz-toggle-btn {
        font-size: 10px !important;
        /* Tiny text */
    }

    .footer-top {
        gap: 16px;
    }

    .footer-bottom {
        padding-top: 12px;
        gap: 12px;
    }
}