@import url(./root.css);

.footer {
    background: var(--ihd-primary-color);
    background: linear-gradient(180deg, rgba(12, 87, 145, 1) 0%, rgba(14, 53, 85, 1) 52%, rgba(7, 31, 48, 1) 100%);
    padding: 0px !important;
}

/* ===== FOOTER LAYOUT ===== */
.footer > .container {
    padding-top: 40px;
    padding-bottom: 40px;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    width: 100%;
}

/* ===== SOCIAL ICONS ===== */
.footer .social-icons a i {
    color: #fff;
}

.footer .social-icons a:hover {
    box-shadow: rgba(255, 255, 255, 0.2) 0px 7px 29px 0px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    flex-shrink: 0;
}

.social-icon i {
    font-size: 16px;
    line-height: 1;
}

/* ===== SECTION TITLE ===== */
.footer .position-title {
    position: relative;
    margin-bottom: 20px;
    font-size: 15px;
}

.footer .position-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 70px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Address / contact rows */
.footer .info-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.footer .info-row p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

.footer .footer-copyright {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */

/* Tablet: 2 columns */
@media (max-width: 991.98px) {
    .footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand contact"
            "offices offices";
        gap: 30px;
    }

    .footer .footer-col-brand {
        grid-area: brand;
        align-items: center;
        text-align: center;
    }

    .footer .footer-col-brand > img {
        height: 50px !important;
    }

    .footer .footer-col-offices {
        grid-area: offices;
    }

    .footer .footer-col-contact {
        grid-area: contact;
    }

    .footer .position-title::after {
        left: 50%;
        transform: scaleX(1) translateX(-50%);
        transform-origin: center;
    }

    .footer > .container {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Mobile: single column */
@media (max-width: 575.98px) {
    .footer .footer-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "contact";
        gap: 24px;
    }

    .footer .footer-col-brand {
        grid-column: unset;
    }

    .footer .footer-col-brand > img {
        height: 42px !important;
    }

    .footer .footer-col-offices {
        display: none;
    }

    .footer .footer-col-contact {
        width: min(100%, 290px);
        margin: 0 auto !important;
    }

    .footer .footer-col-contact .position-title {
        text-align: center;
    }

    .footer .footer-col-contact .position-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer .position-title::after {
        left: 0;
        transform: scaleX(1);
        transform-origin: left;
    }

    .footer > .container {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .footer .info-row p {
        font-size: 13px;
    }
}
