/* =============================================================
   Site Footer
   Tema Piedrangular
   ============================================================= */

/* =============================================================
   Main footer grid
   ============================================================= */
.site-footer {
    font-size: 0.875rem;
}

.footer-main {
    background-color: var(--color-navy, #0a1f3d);
    padding: 4rem 0 3rem;
}

.footer-main__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* =============================================================
   Column headings
   ============================================================= */
.footer-col__heading {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.25rem;
}

/* =============================================================
   Column 1: Brand + social
   ============================================================= */
.footer-brand {
    margin-bottom: 1.5rem;
}

/* Logo in footer — ensure it's visible on dark bg */
.footer-brand a {
    display: inline-block;
}

.footer-brand img {
    max-height: 72px;
    width: auto;
    display: block;
}

.footer-brand__name {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
}

/* Social icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.footer-social__link:hover {
    background-color: var(--color-primary, #1a4ddb);
    color: #ffffff;
}

/* =============================================================
   Column 2: Services links
   ============================================================= */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links__item {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.footer-links__item:hover {
    color: #ffffff;
}

/* =============================================================
   Column 3: Contact list
   ============================================================= */
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-contact__item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact__item a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact__item a:hover {
    color: #ffffff;
}

.footer-contact__item--address span {
    display: block;
    line-height: 1.6;
}

/* =============================================================
   Bottom bar
   ============================================================= */
.footer-bar {
    background-color: #061539;
    border-top: 1px solid rgba(255, 255, 255, 0.582);
    padding: 1.125rem 0;
}

.footer-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bar__copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bar__copy a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.footer-bar__copy a:hover {
    color: #ffffff;
}

/* Footer nav menu */
.footer-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-menu li a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-menu li a:hover {
    color: #ffffff;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
    .footer-main__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-main__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }
}
