/* ==========================================================================
   Footer Styles (Replicating Root Site Design)
   ========================================================================== */

.footer__lower {
    background-color: #FAFAFA !important;
    padding: 80px 0 !important;
}

.footer__lower li,
.footer__lower p,
.footer__nav li a {
    color: #231815 !important;
    display: block;
}

/* Navigation Titles */
.footer__nav .menu-item-has-children>a,
.footer__nav>li>.footer-title {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
    font-size: 16px !important;
    color: #231815 !important;
    font-weight: bold !important;
}

/* Child Menu Items */
.footer__lower ul.sub-menu li,
.footer__nav>li>ul>li {
    padding-left: 0;
    margin-bottom: 4px;
    font-size: 14px !important;
    display: flex;
    align-items: center;
}

/* Orange Dash Icon */
.footer__lower ul.sub-menu li::before,
.footer__nav>li>ul>li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 2px;
    background-color: #FD9400;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.footer__nav>li>ul>li>a {
    text-decoration: none;
    color: #231815 !important;
}

.footer__nav>li>ul>li>a:hover {
    text-decoration: underline;
    opacity: 0.7;
}

/* Layout */
footer .inner.footer__nav-wrap {
    display: flex;
    justify-content: space-between;
}

footer .footer__nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    width: calc(100% - 120px);
    font-weight: bold;
}

/* Logo & Info */
footer .content {
    font-weight: 500;
}

footer .img-logo img {
    width: 100%;
    max-width: 320px;
}

footer .footer-info {
    text-align: left;
    padding: 16px 0;
    margin-top: 32px;
    border-top: 1px solid #D1C9C0;
    border-bottom: 1px solid #D1C9C0;
    font-size: 15px;
}

footer .footer-info .clinic-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-info .clinic-row {
    display: flex;
    gap: 16px;
    line-height: 1.5;
}

.footer-info .label {
    font-weight: bold;
    min-width: 5em;
}

/* Copyright section */
.footer-copyright {
    background: #F8BA5E !important;
    color: #fff !important;
    text-align: center;
    width: 100%;
}

.footer-copyright .copyright {
    display: block;
    padding: 12px 0 !important;
    font-size: 18px;
    letter-spacing: 0;
}

@media (max-width: 599px) {
.footer-copyright .copyright {
        font-size: 14px;
    }
}

/* Nav Wrapper */
footer .footer__nav {
    font-size: 0.89em;
    line-height: 1.5;
    font-weight: bold;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px 40px !important;
    /* Group items to match root site gap */
    text-align: left;
    justify-content: flex-start !important;
    /* Align to left to match root site's periodic-perfect wrap */
    width: 55% !important;
    padding: 0;
    margin: 0;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    footer .footer__nav {
        width: 100% !important;
        justify-content: flex-start !important;
        /* Reset justify-content for column layout */
    }

    .inner.footer__nav-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .footer-logo-wrap {
        width: 100% !important;
    }

    footer .footer__nav-wrap {
        max-width: 85% !important;
        width: auto !important;
    }

    footer .img-logo {
        width: 50% !important;
        margin: 0 auto 56px !important;
    }

    footer .footer-info {
        padding: 24px 0 !important;
    }
}

@media screen and (max-width: 768px) {
    footer .img-logo {
        width: 50% !important;
        min-width: 320px !important;
        margin-bottom: 56px !important;
    }

    footer .inner.footer__nav-wrap {
        margin: 0 40px !important;
        max-width: 100% !important;
        width: auto !important;
    }
}

@media screen and (max-width: 599px) {
    .footer__lower {
        padding: 28px 0 !important;
        /* Match root base theme mobile padding */
    }

    footer .img-logo {
        width: 75% !important;
        min-width: 240px !important;
    }

    footer .footer__nav-wrap {
        margin: 0 24px !important;
        max-width: 100% !important;
        width: auto !important;
    }

    footer ul.footer__nav>li {
        width: 42.5% !important;
        margin-bottom: 20px !important;
    }
}

/* Mappin Icon spacing fix */
.map-link {
    display: inline-flex;
    align-items: center;
}

.map-icon-img {
    width: 16px;
    height: auto;
    margin-right: 4px;
}