/* ==========================================================================
   KidsDoctor - Site Footer Styles (footer.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Footer Container & Layout
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 59px 0 60px;
    border-top: 1px solid var(--gold);
    color: #93a5bc;
    background: var(--navy);
    font-size: 16px;
    line-height: 19px;
}

.footer-grid {
    padding-inline: 50px;
    display: grid;
    grid-template-columns: 188px minmax(0, 539px) 119px;
    justify-content: space-between;
    align-items: start;
    gap: 30px;
    min-height: 158px;
}

/* --------------------------------------------------------------------------
   2. Brand Section
   -------------------------------------------------------------------------- */
.footer-brand {
    --footer-logo-width: 183px;
    --footer-logo-inset: 10px;
    width: var(--footer-logo-width);
    max-width: 100%;
    text-align: left;
}

.footer-brand > a {
    display: block;
    width: 100%;
}

.footer-brand img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-brand p {
    color: var(--gold-light);
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    padding-inline: var(--footer-logo-inset);
    font-size: 14px;
    line-height: 23px;
    font-weight: 500;
    white-space: normal;
}

/* --------------------------------------------------------------------------
   3. Company Information
   -------------------------------------------------------------------------- */
.footer-company {
    min-width: 0;
    letter-spacing: -0.8px;
}

.footer-company-details,
.footer-company-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-company-contact {
    margin-top: 20px;
}

.footer-company-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
}

.footer-company-row > span,
.footer-company-row > a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.footer-company strong {
    color: #d3dfeb;
}

/* --------------------------------------------------------------------------
   4. Footer Navigation Links
   -------------------------------------------------------------------------- */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: -0.9px;
    white-space: nowrap;
}

.site-footer a:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   5. Footer Bottom Copyright
   -------------------------------------------------------------------------- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ffffff35;
    margin-top: 40px;
    padding: 39px 50px 0;
}

/* --------------------------------------------------------------------------
   6. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 2fr;
        padding: 0;
        gap: 30px;
        min-height: 0;
    }

    .footer-company {
        font-size: 14px;
        line-height: 22px;
    }

    .footer-links {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 25px;
    }

    .footer-bottom {
        padding-inline: 0;
    }
}

@media (max-width: 650px) {
    .site-footer {
        padding: 35px 0 24px;
        font-size: 12px;
        line-height: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand {
        --footer-logo-width: 140px;
        --footer-logo-inset: 8px;
    }

    .footer-brand p {
        margin-top: 16px;
        font-size: 12px;
        line-height: 18px;
        white-space: normal;
    }

    .footer-company {
        font-size: 12px;
        line-height: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        font-size: 14px;
        line-height: 22px;
    }

    .footer-bottom {
        gap: 20px;
        font-size: 10px;
    }
}
