/*
===============================================================================
BIG TEXAN D2C - FOOTER STYLES
===============================================================================
Styles for the shared site footer component.
Loaded on all pages. Component HTML: /components/footer.html
===============================================================================
*/

/* --- FOOTER CONTAINER --- */
.site-footer {
    background: var(--brand-maroon);
    color: var(--brand-cream);
    padding-top: 3rem;
}

/* --- NEWSLETTER SECTION --- */
.footer-subscribe {
    text-align: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 500px;
    margin: 0 auto;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    line-height: 1.45;
    margin-bottom: 1rem;
    color: var(--brand-cream);
    overflow: visible;
}

.footer-subscribe form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.footer-subscribe input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.footer-subscribe button {
    padding: 0.75rem 1.5rem;
    background: var(--texan-yellow);
    color: var(--brand-maroon);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: filter var(--transition-fast);
}

.footer-subscribe button:hover {
    filter: brightness(1.1);
}

/* --- FOOTER GRID --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2.5rem var(--content-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    margin-top: 0.5rem;
}

.footer-col .footer-title {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    min-width: 36px;
    min-height: 36px;
    color: var(--brand-cream);
    font-size: var(--text-sm);
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    opacity: 1;
    color: var(--texan-yellow);
}

/* --- SOCIAL ICONS --- */
.social-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--brand-cream);
    transition: all var(--transition-fast);
}

.social-icon-btn:hover {
    background: var(--texan-yellow);
    color: var(--brand-maroon);
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.social-icon-btn:hover svg,
.social-icon-btn:focus-visible svg {
    color: var(--brand-maroon);
}

/* --- FOOTER BOTTOM --- */
.footer-bottom {
    text-align: center;
    padding: 1.5rem var(--content-padding);
    background: rgba(0, 0, 0, 0.2);
    font-size: var(--text-sm);
    opacity: 0.8;
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--brand-cream);
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
    opacity: 1;
    color: var(--texan-yellow);
}

/* --- TRUST BADGES IN FOOTER --- */
.footer-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}

.footer-trust img {
    height: 40px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-trust img:hover {
    opacity: 1;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .footer-subscribe form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .social-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
