/**
 * Footer CSS — Castlo Industrial Theme
 * Castlo Mantenimiento Industrial
 * Colors: Navy #0D1B2A + Orange #E85D04
 */

/* ============================================================
   FOOTER-SPECIFIC VARIABLES
   (global brand tokens are defined in style.css :root)
============================================================ */
:root {
    --container-max:  1280px;
    --footer-pad-x:   clamp(1rem, 4vw, 2.5rem);
}

/* ============================================================
   FOOTER ROOT
============================================================ */
#castlo-footer {
    background-color: var(--castlo-navy);
    color: var(--castlo-white);
    padding-top: 4rem;
}

/* ============================================================
   FOOTER MAIN GRID
============================================================ */
.footer-main {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--footer-pad-x);
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr 2fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
}

/* ============================================================
   FOOTER LOGO / BRAND COLUMN
============================================================ */
.footer-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.footer-logo .logo-main {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--castlo-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo .logo-tagline {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ============================================================
   BRAND DESCRIPTION
============================================================ */
.footer-brand-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ============================================================
   SOCIAL LINKS
============================================================ */
.footer-social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
}

.footer-social-link:hover {
    background-color: var(--castlo-orange);
    border-color: var(--castlo-orange);
    color: var(--castlo-white);
}

/* ============================================================
   COLUMN TITLES
============================================================ */
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--castlo-white);
    border-bottom: 2px solid var(--castlo-orange);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* ============================================================
   FOOTER NAV LINKS
============================================================ */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: inline-block;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
    color: var(--castlo-orange-light);
    padding-left: 3px;
}

/* ============================================================
   CONTACT ITEMS
============================================================ */
.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--castlo-orange);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.footer-contact-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.footer-contact-text strong {
    display: block;
    color: var(--castlo-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* ============================================================
   FOOTER BOTTOM BAR
============================================================ */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0;
    margin-top: 3rem;
}

.footer-bottom-inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--footer-pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   LEGAL LINKS
============================================================ */
.footer-legal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--castlo-orange);
}

/* ============================================================
   PAYMENT ICONS
============================================================ */
.footer-payment-icons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.payment-icon {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* ============================================================
   RESPONSIVE — TABLET (769px–1024px): 2 columns
============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1; /* full-width brand row */
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px): 1 column
============================================================ */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-links a {
        font-size: 0.9rem; /* ≥14px for readability */
        line-height: 1.6;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-contact-text {
        font-size: 0.875rem; /* ≥14px */
        line-height: 1.6;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links,
    .footer-payment-icons {
        justify-content: center;
    }
}
