/* =========================================================
   ROOTS DENTAL CARE - RESPONSIVE HEADER
   Desktop + Laptop + Tablet + Mobile
   ========================================================= */

.rd-header,
.rd-header *,
.rd-header *::before,
.rd-header *::after {
    box-sizing: border-box;
}

.rd-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999999;
    background: #fff;
}

.rd-header a {
    text-decoration: none !important;
}

.rd-header button {
    font-family: inherit;
}


/* ================= MAIN HEADER ================= */

.rd-header-wrap,
.rd-mainbar {
    width: 100%;
    background: #fff;
}

.rd-mainbar {
    min-height: 82px;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 999999;
}

.rd-container {
    width: 100%;
    max-width: 1400px;
    min-height: 82px;
    margin: 0 auto;
    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    position: relative;
}


/* ================= LOGO ================= */

.rd-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000003;
}

.rd-logo a {
    display: flex;
    align-items: center;
}

.rd-logo img {
    display: block;
    width: 170px;
    height: auto;
}


/* ================= HAMBURGER ================= */

.rd-mobile-toggle-wrap {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    z-index: 1000005;
}

.rd-mobile-toggle {
    width: 44px !important;
    height: 44px !important;
    padding: 8px !important;
    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;

    border: 1px solid #004d48 !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer !important;
}

.rd-mobile-toggle span {
    display: block !important;
    width: 23px !important;
    height: 2px !important;
    background: #004d48 !important;
    border-radius: 2px !important;
}


/* ================= DESKTOP NAV ================= */

.rd-navigation {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1000000;
}

.rd-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.rd-nav-list > li {
    position: relative;
    margin: 0;
    padding: 0;
}


/* ================= NORMAL LINKS ================= */

.rd-nav-item > a {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    color: #222 !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;

    transition: color .25s ease;
}

.rd-nav-item > a:hover {
    color: #004d48 !important;
}


/* ================= SERVICES ================= */

.rd-services-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.rd-services-head {
    display: flex;
    align-items: center;
    width: 100%;
}

.rd-services-link {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 8px 10px 16px;

    color: #222 !important;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.rd-services-link:hover {
    color: #004d48 !important;
}

.rd-services-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;

    color: #222;
    cursor: pointer;
}

.rd-services-toggle i {
    font-size: 10px;
    transition: transform .25s ease;
}


/* ================= DESKTOP DROPDOWN ================= */

.rd-services-menu {
    position: absolute;
    top: 100%;
    left: 50%;

    width: 290px;
    min-width: 290px;

    margin: 0;
    padding: 7px 0;

    list-style: none;
    background: #fff;

    border: 1px solid #eee;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);

    transform: translateX(-50%) translateY(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;

    z-index: 1000002;
}

@media (min-width: 992px) {

    .rd-services-item:hover > .rd-services-menu,
    .rd-services-item:focus-within > .rd-services-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .rd-services-item:hover .rd-services-toggle i {
        transform: rotate(180deg);
    }

    /* Arrow not needed on desktop */
    .rd-services-toggle {
        display: none;
    }

    .rd-services-head {
        display: block;
    }

    .rd-services-link {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ================= SUBMENU ================= */

.rd-services-menu > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.rd-services-menu > li > a {
    width: 100%;
    min-height: 44px;

    display: flex;
    align-items: center;

    padding: 10px 16px;

    color: #333 !important;
    background: #fff;

    font-size: 14px;
    font-weight: 400;

    border-bottom: 1px solid #f1f1f1;

    transition:
        color .25s ease,
        background .25s ease,
        padding-left .25s ease;
}

.rd-services-menu > li:last-child > a {
    border-bottom: 0;
}

.rd-services-menu > li > a i {
    width: 18px;
    flex: 0 0 18px;
    margin-right: 7px;
    color: #004d48;
    font-size: 9px;
}

/*.rd-services-menu > li > a:hover {*/
/*    color: #004d48 !important;*/
/*    background: #f5faff;*/
/*    padding-left: 21px;*/
/*}*/


/* ================= APPOINTMENT ================= */

.rd-appointment {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    z-index: 1000001;
}

.rd-appointment-btn {
    min-height: 45px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;

    color: #fff !important;
    background:#004d48;

    border-radius: 4px;

    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;

    transition: background .25s ease;
}

.rd-appointment-btn:hover {
    color: #fff !important;
    background: #004d48;
}

.rd-appointment-btn i {
    font-size: 14px;
}


/* ================= IMPORTANT:
   MOBILE LOGO INSIDE MENU HIDDEN
   ================= */

.rd-mobile-logo {
    display: none !important;
}


/* ================= CLOSE BUTTON ================= */

.rd-menu-close {
    display: none;

    position: absolute;
    top: 18px;
    right: 18px;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 4px;
    /*background: #f5f5f5;*/

    cursor: pointer;
    z-index: 1000008;
}

.rd-menu-close span {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 20px;
    height: 2px;

    background: #222;
}

.rd-menu-close span:first-child {
    transform: translate(-50%,-50%) rotate(45deg);
}

.rd-menu-close span:last-child {
    transform: translate(-50%,-50%) rotate(-45deg);
}


/* ================= SOCIAL ================= */

.rd-social {
    display: none;
}

.rd-social a {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: 7px;

    color: #004d48 !important;
    background: #f5f9fc;
    border-radius: 50%;
}

.rd-social a:hover {
    color: #fff !important;
    background: #004d48;
}


/* ================= OVERLAY ================= */

.rd-menu-overlay {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.45);
    z-index: 999998;
}

.rd-menu-overlay.rd-overlay-active {
    display: block;
}


/* =========================================================
   MOBILE + TABLET
   ========================================================= */

@media (max-width: 991px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    .rd-mainbar {
        min-height: 70px;
    }

    .rd-container {
        min-height: 70px;
        padding: 0 15px;
        gap: 10px;
    }


    /* Hamburger */

    .rd-mobile-toggle-wrap {
        display: flex !important;
    }


    /* Main header logo ONLY */

    .rd-logo {
        position: absolute;
        left: 50%;
        top: 50%;

        transform: translate(-50%,-50%);

        display: flex !important;
        z-index: 1000003;
    }

    .rd-logo img {
        width: 145px;
        max-width: 145px;
    }


    /* Appointment */

    .rd-appointment {
        margin-left: auto;
    }

    .rd-appointment-btn {
        width: 42px;
        height: 42px;
        min-height: 42px;

        padding: 0;
        border-radius: 50%;
    }

    .rd-appointment-btn span {
        display: none;
    }


    /* ================= MOBILE MENU ================= */

    .rd-navigation {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;

        width: 320px !important;
        max-width: 88vw !important;
        height: 100vh !important;

        margin: 0 !important;
        padding: 72px 18px 30px !important;

        display: block !important;

        background: #fff !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        box-shadow: 5px 0 25px rgba(0,0,0,.15) !important;

        transform: translateX(-110%) !important;

        transition: transform .35s ease !important;

        z-index: 1000000 !important;
    }

    .rd-navigation.rd-menu-open {
        transform: translateX(0) !important;
    }


    /* IMPORTANT:
       NO SECOND LOGO INSIDE MOBILE MENU */

    .rd-mobile-logo {
        display: none !important;
    }


    /* Close */

    /*.rd-menu-close {*/
    /*    display: block !important;*/
    /*}*/


    /* ================= MOBILE NAV ================= */

    .rd-nav-list {
        display: block !important;
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;
    }

    .rd-nav-list > li {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        border-bottom: 1px solid #eee !important;
    }


    .rd-nav-item > a {
        width: 100% !important;
        min-height: 52px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        padding: 14px 5px !important;

        color: #222 !important;
        font-size: 15px !important;
    }


    /* ================= MOBILE SERVICES ================= */

    .rd-services-item {
        width: 100% !important;
        height: auto !important;
        position: relative !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .rd-services-head {
        width: 100% !important;
        min-height: 52px !important;

        display: flex !important;
        align-items: center !important;
    }

    .rd-services-link {
        flex: 1 1 auto !important;

        min-height: 52px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        padding: 14px 5px !important;

        color: #222 !important;
        font-size: 15px !important;
    }

    .rd-services-toggle {
        width: 45px !important;
        height: 45px !important;
        flex: 0 0 45px !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        border: 0 !important;
        background: transparent !important;

        color: #004d48 !important;
    }

    .rd-services-toggle i {
        font-size: 11px !important;
        transition: transform .25s ease !important;
    }

    .rd-services-item.rd-services-open .rd-services-toggle i {
        transform: rotate(180deg) !important;
    }


    /* ================= MOBILE SUBMENU ================= */

    .rd-services-menu {
        position: static !important;

        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        display: none !important;

        visibility: visible !important;
        opacity: 1 !important;

        transform: none !important;
        pointer-events: auto !important;

        background: #f6f9fb !important;

        border: 0 !important;
        box-shadow: none !important;
    }

    .rd-services-item.rd-services-open > .rd-services-menu {
        display: block !important;
    }

    .rd-services-menu > li {
        width: 100% !important;
        border-bottom: 1px solid #e5e9ec !important;
    }

    .rd-services-menu > li > a {
        width: 100% !important;
        min-height: 46px !important;

        display: flex !important;
        align-items: center !important;

        padding: 11px 8px 11px 20px !important;

        color: #333 !important;
        background: #f6f9fb !important;

        font-size: 14px !important;
    }

    .rd-services-menu > li > a i {
        width: 18px !important;
        flex: 0 0 18px !important;
        margin-right: 8px !important;

        color: #004d48 !important;
        font-size: 9px !important;
    }


    /* ================= MOBILE SOCIAL ================= */

    .rd-social {
        display: flex !important;

        align-items: center;

        margin-top: 25px;
        padding-top: 20px;

        border-top: 1px solid #eee;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .rd-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .rd-logo img {
        width: 130px;
        max-width: 130px;
    }

    .rd-navigation {
        width: 300px !important;
        max-width: 88vw !important;

        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .rd-nav-item > a,
    .rd-services-link {
        font-size: 14px !important;
    }

    .rd-services-menu > li > a {
        font-size: 13px !important;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .rd-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .rd-mobile-toggle-wrap,
    .rd-mobile-toggle {
        width: 40px !important;
        height: 40px !important;
    }

    .rd-mobile-toggle span {
        width: 21px !important;
    }

    .rd-appointment-btn {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    .rd-navigation {
        width: 285px !important;
        max-width: 88vw !important;
    }
}


/* =========================================================
   LAPTOP 992 - 1199
   ========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {

    .rd-container {
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px;
    }

    .rd-logo img {
        width: 140px;
    }

    .rd-nav-list {
        gap: 0;
    }

    .rd-nav-item > a {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 13px;
    }

    .rd-services-link {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 13px;
    }

    .rd-appointment-btn {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .rd-container {
        min-height: 82px;
    }

    .rd-navigation {
        position: relative !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;

        padding: 0 !important;

        transform: none !important;

        overflow: visible !important;

        box-shadow: none !important;
    }
}


/* =========================================================
   FOCUS
   ========================================================= */

.rd-header a:focus,
.rd-header button:focus {
    outline: none;
}

.rd-header a:focus-visible,
.rd-header button:focus-visible {
    outline: 2px solid #28a1e1;
    outline-offset: 2px;
}


/* =========================================================
   MOBILE MENU BODY LOCK
   ========================================================= */

body.rd-mobile-menu-active {
    overflow: hidden !important;
}


/* =========================================================
   OVERFLOW
   ========================================================= */

.rd-header,
.rd-header-wrap,
.rd-mainbar,
.rd-container {
    overflow: visible !important;
}




@media (min-width: 992px) {

    .rd-services-link::after {
        content: "";
        display: inline-block;
        width: 7px;
        height: 7px;
        margin-left: 8px;
        margin-top: -4px;
        border-right: 2px solid #004d48;
        border-bottom: 2px solid #004d48;
        transform: rotate(45deg);
        vertical-align: middle;
        transition: transform 0.2s ease;
    }

    .rd-services-item:hover .rd-services-link::after {
        transform: rotate(225deg);
    }

}


    /* =========================================
   LEFT FLOATING CONTACT
========================================= */

.floating-contact {
    position: fixed;
    left: 20px;
    top: 90%;
    transform: translateY(-50%);
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Common */
.floating-contact a {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: #fff;

    font-size: 21px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.20);
}

/* CALL - Rounded Square */
.floating-call {
    background: #168bd2;
    border-radius: 12px;
}

/* WHATSAPP - Circle */
.floating-whatsapp {
    background: #25D366;
    border-radius: 50%;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .floating-contact {
        left: 12px;
        gap: 10px;
    }

    .floating-contact a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

}
    
/* APPOINTMENT POPUP */

.rd-ap-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999999;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.rd-ap-popup.show {
    display: flex;
}

.rd-ap-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

.rd-ap-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,.25);
}

.rd-ap-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 30px;
    line-height: 35px;
    cursor: pointer;
}

.rd-ap-box h3 {
    margin: 0;
    text-align: center;
    color: #004d48;
    font-size: 25px;
}

.rd-ap-subtitle {
    margin: 6px 0 22px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

.rd-ap-row {
    display: flex;
    gap: 15px;
}

.rd-ap-field {
    width: 100%;
    margin-bottom: 15px;
}

.rd-ap-field label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.rd-ap-field label b {
    color: red;
}

.rd-ap-field input,
.rd-ap-field select,
.rd-ap-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #333;
    font-size: 14px;
}

.rd-ap-field input:focus,
.rd-ap-field select:focus,
.rd-ap-field textarea:focus {
    border-color: #004d48;
}

.rd-ap-field textarea {
    height: 90px;
    resize: vertical;
}

.rd-ap-submit {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 4px;
    background: #004d48;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.rd-ap-submit:hover {
    background: #28a1e1;
}

body.rd-ap-open {
    overflow: hidden !important;
}


/* MOBILE */

@media (max-width: 600px) {

    .rd-ap-popup {
        padding: 8px;
        align-items: center;
    }

    .rd-ap-box {
        width: 100%;
        max-width: 100%;
        max-height: 94vh;
        padding: 25px 15px 18px;
        border-radius: 6px;
        overflow-x: hidden;
    }

    .rd-ap-row {
        display: block;
    }

    .rd-ap-field {
        width: 100%;
        margin-bottom: 12px;
    }

    .rd-ap-field input,
    .rd-ap-field select,
    .rd-ap-field textarea {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        padding: 10px 11px;
    }

    .rd-ap-field select {
        width: 100%;
        height: 42px;
        min-width: 0;
        box-sizing: border-box;
    }

    .rd-ap-field textarea {
        min-height: 80px;
        height: 80px;
    }

    .rd-ap-submit {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .rd-ap-close {
        top: 7px;
        right: 8px;
    }
}


/* SMALL MOBILE */

@media (max-width: 380px) {

    .rd-ap-popup {
        padding: 5px;
    }

    .rd-ap-box {
        max-height: 95vh;
        padding: 23px 12px 15px;
    }

    .rd-ap-field input,
    .rd-ap-field select,
    .rd-ap-field textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 13px;
    }

    .rd-ap-field select {
        height: 40px;
    }
}
    
    
    
  


 

