/* Global header/footer component styles. */

/* ==================================================
   ADVANCED DENTAL OF BUSTLETON
   FULL-WIDTH RESPONSIVE HEADER
   Blue: #0B3768 | Red: #D71920 | Cyan: #18C7E8
================================================== */

#adb-header,
#adb-header * {
    box-sizing: border-box;
}

#adb-header {
    --adb-blue: #0B3768;
    --adb-red: #D71920;
    --adb-cyan: #18C7E8;
    --adb-white: #ffffff;
    --adb-light: #f4f9fc;

    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;

    position: relative;
    z-index: 99999;
    background: #ffffff;
    font-family: inherit;
}

#adb-header a {
    text-decoration: none !important;
}

#adb-header button {
    font-family: inherit;
}

/* FULL-WIDTH TOP BAR */

#adb-header .adb-topbar {
    width: 100%;
    background: var(--adb-blue);
    color: #ffffff;
}

#adb-header .adb-topbar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

#adb-header .adb-top-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
}

#adb-header .adb-top-contact a {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.6;
    transition: color .2s ease;
}

#adb-header .adb-top-contact a:hover {
    color: var(--adb-cyan);
}

#adb-header .adb-top-icon {
    color: var(--adb-cyan);
    margin-right: 6px;
    font-weight: 800;
}

#adb-header .adb-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

/* APPOINTMENT BUTTON */

#adb-header .adb-top-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border-radius: 4px;
    background: var(--adb-red);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-align: center;
    transition: .25s ease;
}

#adb-header .adb-top-appointment:hover {
    background: var(--adb-cyan);
    color: var(--adb-blue);
}

/* FULL-WIDTH MAIN NAVIGATION BAR */

#adb-header .adb-mainbar {
    width: 100%;
    background: #ffffff;
    position: relative;
    box-shadow: 0 5px 22px rgba(11,55,104,.09);
}

#adb-header .adb-mainbar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

/* LOGO */

#adb-header .adb-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 260px;
}

#adb-header .adb-logo img {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* NAVIGATION */

#adb-header .adb-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

#adb-header .adb-nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

#adb-header .adb-nav-list > li {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

#adb-header .adb-nav-list > li > a,
#adb-header .adb-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 12px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--adb-blue);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease;
}

#adb-header .adb-nav-list > li > a:hover,
#adb-header .adb-dropdown-toggle:hover,
#adb-header .adb-nav-list > li.adb-open > .adb-dropdown-toggle {
    color: var(--adb-red);
}

/* DROPDOWN ARROW */

#adb-header .adb-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    flex: 0 0 auto;
    transition: transform .2s ease;
}

#adb-header .adb-open > .adb-dropdown-toggle .adb-chevron {
    transform: rotate(225deg);
    margin-top: 4px;
}

/* DROPDOWN PANELS */

#adb-header .adb-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 270px;
    max-width: min(320px, 90vw);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border-top: 3px solid var(--adb-red);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 12px 30px rgba(11,55,104,.17);
    z-index: 100000;
}

#adb-header .adb-submenu li {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

#adb-header .adb-submenu a {
    display: block;
    padding: 10px 17px;
    color: var(--adb-blue);
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    white-space: normal;
    transition: color .2s ease, background .2s ease,
                padding .2s ease;
}

#adb-header .adb-submenu a:hover {
    color: var(--adb-red);
    background: var(--adb-light);
    padding-left: 22px;
}

/* DESKTOP DROPDOWNS */

@media (min-width: 1101px) {
    #adb-header .adb-has-dropdown:hover > .adb-submenu,
    #adb-header .adb-has-dropdown:focus-within > .adb-submenu,
    #adb-header .adb-has-dropdown.adb-open > .adb-submenu {
        display: block;
    }

    #adb-header .adb-mobile-toggle,
    #adb-header .adb-mobile-appointment {
        display: none !important;
    }
}

/* PHONE BUTTON */

#adb-header .adb-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    margin-left: 3px;
    border-radius: 4px;
    background: var(--adb-blue);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
    transition: background .25s ease;
}

#adb-header .adb-phone-link:hover {
    background: var(--adb-red);
    color: #ffffff !important;
}

/* MOBILE HAMBURGER */

#adb-header .adb-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--adb-blue);
    color: #ffffff;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

#adb-header .adb-mobile-toggle:hover {
    background: var(--adb-red);
}

/* TABLET AND MOBILE NAVIGATION */

@media (max-width: 1100px) {
    #adb-header .adb-topbar-inner {
        padding: 10px 22px;
    }

    #adb-header .adb-mainbar-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 22px;
    }

    #adb-header .adb-logo {
        max-width: calc(100% - 60px);
    }

    #adb-header .adb-logo img {
        width: 205px;
    }

    #adb-header .adb-mobile-toggle {
        display: inline-flex;
        margin-left: auto;
        flex: 0 0 auto;
    }

    #adb-header .adb-nav {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        order: 3;
        padding: 8px 0 5px;
        border-top: 1px solid #e5edf4;
    }

    #adb-header .adb-nav.adb-menu-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    #adb-header .adb-nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #adb-header .adb-nav-list > li {
        width: 100%;
        border-bottom: 1px solid #edf1f5;
    }

    #adb-header .adb-nav-list > li > a,
    #adb-header .adb-dropdown-toggle {
        width: 100%;
        min-height: 45px;
        justify-content: space-between;
        padding: 12px 10px;
        text-align: left;
        white-space: normal;
        font-size: 14px;
    }

    #adb-header .adb-submenu {
        position: static;
        display: none;
        width: 100%;
        max-width: none;
        padding: 0 0 6px 8px;
        border-top: 0;
        border-left: 3px solid var(--adb-cyan);
        border-radius: 0;
        box-shadow: none;
        background: #f6fafc;
    }

    #adb-header .adb-has-dropdown.adb-open > .adb-submenu {
        display: block;
    }

    #adb-header .adb-submenu a {
        padding: 10px 14px;
        background: #f6fafc;
    }

    #adb-header .adb-submenu a:hover {
        padding-left: 19px;
        background: #eaf5fa;
    }

    #adb-header .adb-phone-link {
        width: 100%;
        min-height: 45px;
        margin: 12px 0 4px;
    }

    #adb-header .adb-mobile-appointment {
        display: block;
    }

    #adb-header .adb-nav-list > .adb-mobile-appointment > a {
        justify-content: center;
        margin-top: 10px;
        border-radius: 4px;
        background: var(--adb-red);
        color: #ffffff;
        font-weight: 800;
    }

    #adb-header .adb-nav-list > .adb-mobile-appointment > a:hover {
        background: var(--adb-blue);
        color: #ffffff;
    }
}

/* SMALL MOBILE */

@media (max-width: 650px) {
    #adb-header .adb-topbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 15px;
    }

    #adb-header .adb-top-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    #adb-header .adb-top-contact a {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    #adb-header .adb-top-right {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    #adb-header .adb-top-appointment {
        padding: 9px 12px;
        font-size: 11px;
    }

    #adb-header .adb-mainbar-inner {
        padding: 10px 15px;
        gap: 10px;
    }

    #adb-header .adb-logo img {
        width: 185px;
    }

    #adb-header .adb-mobile-toggle {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #adb-header *,
    #adb-header *::before,
    #adb-header *::after {
        transition: none !important;
        animation: none !important;
    }
}



/* =========================================
   ADVANCED DENTAL OF BUSTLETON - FOOTER
========================================= */

#batra-footer,
#batra-footer * {
    box-sizing: border-box;
}

#batra-footer {
    --footer-blue: #0B3768;
    --footer-cyan: #079BC8;
    --footer-white: #FFFFFF;
    --footer-text: #E2EBF5;

    position: relative;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--footer-blue);
    color: var(--footer-white);
    font-family: inherit;
    overflow: hidden;
    clear: both;
}

/* Full-width main container */
#batra-footer .batra-footer-main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto !important;
    padding: 55px 45px 45px !important;

    display: grid;
    grid-template-columns: 1.35fr 0.8fr 1fr 0.9fr;
    column-gap: 45px;
    row-gap: 35px;
    align-items: start;
}

#batra-footer .batra-footer-column {
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* White footer logo */
#batra-footer .batra-footer-logo {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    margin: 0 0 22px !important;
    padding: 0;
    object-fit: contain;
    object-position: left center;
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* About text */
#batra-footer .batra-footer-description {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--footer-text);
    font-size: 15px;
    line-height: 1.9;
    font-weight: 400;
}

/* Footer headings */
#batra-footer .batra-footer-heading {
    position: relative;
    display: block;
    color: var(--footer-white) !important;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: none;
    margin: 0 0 27px !important;
    padding: 0 0 14px !important;
    border: 0;
}

#batra-footer .batra-footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--footer-cyan);
}

/* Footer links */
#batra-footer .batra-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#batra-footer .batra-footer-links li {
    display: block;
    list-style: none !important;
    margin: 0 0 13px !important;
    padding: 0 !important;
}

#batra-footer .batra-footer-links li::before {
    content: none !important;
    display: none !important;
}

#batra-footer .batra-footer-links a {
    display: inline-block;
    color: var(--footer-text) !important;
    font-size: 14px;
    line-height: 1.75;
    font-weight: 400;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition: color 0.25s ease, transform 0.25s ease;
}

#batra-footer .batra-footer-links a:hover {
    color: #48D8F3 !important;
    transform: translateX(4px);
}

/* Contact information */
#batra-footer .batra-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    margin: 0 0 20px !important;
    padding: 0 !important;
    color: var(--footer-text);
    font-size: 14px;
    line-height: 1.8;
}

#batra-footer .batra-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--footer-white);
    background: rgba(7, 155, 200, 0.18);
    border: 1px solid rgba(7, 155, 200, 0.6);
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

#batra-footer .batra-contact-item > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

#batra-footer .batra-contact-item a {
    color: var(--footer-text) !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition: color 0.25s ease;
}

#batra-footer .batra-contact-item a:hover {
    color: #48D8F3 !important;
}

/* Full-width cyan copyright strip */
#batra-footer .batra-copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 18px 20px !important;
    background: var(--footer-cyan);
    color: var(--footer-white);
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

#batra-footer .batra-copyright p {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--footer-white) !important;
    font-size: inherit;
    line-height: inherit;
}

#batra-footer .batra-copyright strong {
    color: var(--footer-white) !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* Remove bottom spacing within footer */
#batra-footer,
#batra-footer .batra-footer-main,
#batra-footer .batra-copyright {
    border-bottom: 0 !important;
}

/* Hide back-to-top buttons inside the footer */
#batra-footer .batra-back-to-top,
#batra-footer .back-to-top,
#batra-footer .scroll-to-top,
#batra-footer #back-to-top,
#batra-footer #scroll-to-top {
    display: none !important;
}

/* =========================================
   TABLET RESPONSIVENESS
========================================= */
@media (max-width: 1024px) {
    #batra-footer .batra-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 35px;
        row-gap: 38px;
        padding: 45px 35px 38px !important;
    }

    #batra-footer .batra-footer-logo {
        width: 240px;
    }

    #batra-footer .batra-footer-heading {
        font-size: 18px;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 600px) {
    #batra-footer .batra-footer-main {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 30px;
        padding: 36px 22px 30px !important;
    }

    #batra-footer .batra-footer-logo {
        width: 230px;
        margin-bottom: 17px !important;
    }

    #batra-footer .batra-footer-description {
        font-size: 14px;
        line-height: 1.85;
    }

    #batra-footer .batra-footer-heading {
        font-size: 18px;
        margin-bottom: 21px !important;
        padding-bottom: 12px !important;
    }

    #batra-footer .batra-footer-links li {
        margin-bottom: 10px !important;
    }

    #batra-footer .batra-footer-links a,
    #batra-footer .batra-contact-item {
        font-size: 14px;
    }

    #batra-footer .batra-contact-item {
        gap: 11px;
        margin-bottom: 16px !important;
    }

    #batra-footer .batra-copyright {
        padding: 15px 16px !important;
        font-size: 12px;
    }
}

/* Extra-small mobile screens */
@media (max-width: 360px) {
    #batra-footer .batra-footer-main {
        padding-left: 17px !important;
        padding-right: 17px !important;
    }

    #batra-footer .batra-footer-logo {
        width: 200px;
    }

    #batra-footer .batra-footer-heading {
        font-size: 17px;
    }
}




/* Service dropdown anchor aliases: keep them accessible without affecting the service grid layout. */
#main .service-detail-list { position: relative; }
#main .service-anchor-alias { position: absolute; width: 1px; height: 1px; overflow: hidden; }
