/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;
    margin: 0;

    background-image: url('../images/footer_banner.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    color: var(--rosewood-navy);

    border-top: 1px solid rgba(0, 107, 82, 0.08);
}


/* =========================================================
   MAIN FOOTER CONTAINER
========================================================= */

.footer-container {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    gap: 55px;

    padding: 55px 0 40px;
}


/* =========================================================
   EACH LOCATION
========================================================= */

.footer-location {
    min-width: 0;
}


/* =========================================================
   LOGO
========================================================= */

.footer-logo {
    display: block;

    width: auto;
    max-width: 230px;
    height: 65px;

    margin: 0 0 25px;

    object-fit: contain;
    object-position: left center;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.footer-info {
    display: flex;
    flex-direction: column;
}


/* Individual information row */

.footer-info-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 10px;

    padding: 13px 0;

    border-bottom: 1px solid rgba(7, 28, 66, 0.14);

    color: var(--rosewood-navy);

    font-size: 14px;
}


/* Icons */

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;

    color: var(--rosewood-green);

    font-size: 15px;
    line-height: 1.4;
}


/* Labels */

.footer-info-row strong {
    display: block;

    color: var(--rosewood-navy);

    font-size: 14px;
    font-weight: 700;
}


/* Address */

.footer-info-row p {
    margin: 5px 0 0;

    color: var(--rosewood-text);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   PHONE / FAX
========================================================= */

.footer-line {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.footer-line strong {
    flex-shrink: 0;
}

.footer-line a,
.footer-line span {
    color: var(--rosewood-text);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.footer-line a:hover {
    color: var(--rosewood-dark-orrange);
}


/* =========================================================
   OPENING HOURS
========================================================= */

.footer-hours {
    min-width: 0;
}

.footer-hours h3 {
    margin: 8px 0 28px;

    color: var(--rosewood-navy);

    font-size: 15px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* Individual hours row */

.footer-hours-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;

    padding: 14px 0;

    border-bottom: 1px solid rgba(7, 28, 66, 0.14);

    color: var(--rosewood-text);

    font-size: 13px;
}

.footer-hours-row strong {
    color: var(--rosewood-navy);

    font-weight: 700;
}

.footer-hours-row span {
    color: var(--rosewood-text);

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   BOTTOM FOOTER
========================================================= */

.footer-bottom {
    width: min(1400px, calc(100% - 80px));

    margin: 0 auto;
    padding: 18px 0 22px;

    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 30px;

    border-top: 1px solid rgba(7, 28, 66, 0.15);

    color: var(--rosewood-text);

    font-size: 12px;
}

.footer-bottom p {
    margin: 0;

    color: var(--rosewood-text);
}


/* =========================================================
   FOOTER NAVIGATION
========================================================= */

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 20px;
}

.footer-nav a {
    color: var(--rosewood-navy);

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-nav a:hover {
    color: var(--rosewood-dark-orrange);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .footer {
        background-position: center;
    }

    .footer-container {
        width: calc(100% - 50px);

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 40px;
    }

    /* Hours use full width below both clinics */

    .footer-hours {
        grid-column: 1 / -1;
    }

    .footer-hours-row {
        grid-template-columns: 1fr auto;
    }

    .footer-bottom {
        width: calc(100% - 50px);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .footer {
        background-size: cover;
        background-position: center;
    }

    .footer-container {
        width: calc(100% - 40px);

        grid-template-columns: 1fr;

        gap: 35px;

        padding: 40px 0 30px;
    }


    /* Reset tablet span */

    .footer-hours {
        grid-column: auto;
    }


    /* Logo */

    .footer-logo {
        width: auto;
        max-width: 210px;
        height: auto;

        margin-bottom: 20px;
    }


    /* Contact */

    .footer-info-row {
        padding: 12px 0;
    }


    /* Hours */

    .footer-hours h3 {
        margin: 0 0 15px;
    }

    .footer-hours-row {
        grid-template-columns: 1fr;
        gap: 5px;

        padding: 12px 0;
    }

    .footer-hours-row span {
        white-space: normal;
    }


    /* Bottom */

    .footer-bottom {
        width: calc(100% - 40px);

        flex-direction: column;
        align-items: flex-start;

        gap: 15px;

        padding: 20px 0;

        text-align: left;
    }


    /* Navigation */

    .footer-nav {
        justify-content: flex-start;

        gap: 10px 18px;
    }
}

/* =========================================================
   FOOTER LINKS
========================================================= */

.footer-links .footer-hours-row {
    display: block;
    padding: 0;

    border-bottom: 1px solid rgba(7, 28, 66, 0.14);
}

.footer-links .footer-hours-row a {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 11px 5px;

    color: var(--rosewood-navy);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease,
        background-color 0.2s ease;
}


/* Arrow */

.footer-links .footer-hours-row a span {
    color: var(--rosewood-green);

    font-size: 18px;

    transition: transform 0.2s ease;
}


/* Hover */

.footer-links .footer-hours-row a:hover {
    padding-left: 12px;

    color: var(--rosewood-dark-orrange);

    background: rgba(255, 255, 255, 0.25);
}

.footer-links .footer-hours-row a:hover span {
    transform: translateX(5px);

    color: var(--rosewood-dark-orrange);
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .footer-container,
    .footer-bottom {
        width: calc(100% - 30px);
    }

    .footer-line {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }

    .footer-logo {
        max-width: 190px;
    }
}