/* PD GROUP MOBILE NAVIGATION V1 */

@media (max-width: 1100px) {

    body.pd-mobile-ready {
        --pd-drawer-green: #124b2d;
        --pd-drawer-ink: #172d20;
    }

    body.pd-mobile-ready .pd-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 900 !important;
        background: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.admin-bar.pd-mobile-ready .pd-header {
        top: 32px !important;
    }

    body.pd-mobile-ready .pd-header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        min-height: 66px !important;
        height: 66px !important;
        gap: 14px !important;
    }

    body.pd-mobile-ready .pd-header-inner > nav,
    body.pd-mobile-ready .pd-header nav,
    body.pd-mobile-ready .pd-header .pd-menu-toggle,
    body.pd-mobile-ready .pd-header .pd-mobile-toggle,
    body.pd-mobile-ready .pd-header .pd-nav-toggle,
    body.pd-mobile-ready .pd-header .pd-hamburger,
    body.pd-mobile-ready .pd-header .menu-toggle,
    body.pd-mobile-ready .pd-header .mobile-menu-toggle {
        display: none !important;
    }

    body.pd-mobile-ready .pd-header .pd-brand {
        margin-right: auto !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    body.pd-mobile-ready .pd-header .pd-brand img {
        width: 150px !important;
        max-width: 100% !important;
        max-height: 44px !important;
        height: auto !important;
    }

    body.pd-mobile-ready .pd-mobile-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        flex: 0 0 auto !important;
        min-width: 48px !important;
        height: 44px !important;
        padding: 0 13px !important;
        border: 1px solid #dae5dc !important;
        border-radius: 12px !important;
        background: #f4f8f5 !important;
        color: #174b2d !important;
        font: 700 13px/1 system-ui,sans-serif !important;
        cursor: pointer !important;
        box-shadow: none !important;
    }

    body.pd-mobile-ready .pd-mobile-trigger-icon {
        width: 20px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    body.pd-mobile-ready .pd-mobile-trigger-icon span {
        display: block;
        height: 2px;
        width: 20px;
        border-radius: 4px;
        background: currentColor;
    }

    body.pd-mobile-ready .pd-mobile-trigger-icon span:last-child {
        width: 13px;
    }

    body.pd-mobile-ready .pd-mobile-trigger:focus-visible {
        outline: 3px solid #c8a64a !important;
        outline-offset: 2px;
    }
}

.pd-mobile-trigger,
.pd-mobile-overlay,
.pd-mobile-drawer {
    display: none;
}

@media (max-width: 1100px) {

    .pd-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 99980;
        background: rgba(5,24,13,.59);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .27s ease,visibility .27s ease;
    }

    .pd-mobile-drawer {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 99981;
        width: min(390px, 92vw);
        max-width: 100%;
        flex-direction: column;
        background: #ffffff;
        color: #1c3124;
        box-shadow: -20px 0 55px rgba(0,0,0,.16);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .32s cubic-bezier(.22,1,.36,1),
                    visibility .32s ease;
        overflow: hidden;
    }

    body.pd-mobile-open {
        overflow: hidden !important;
    }

    body.pd-mobile-open .pd-mobile-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.pd-mobile-open .pd-mobile-drawer {
        transform: translateX(0);
        visibility: visible;
    }

    .pd-mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 77px;
        padding: 17px 22px;
        border-bottom: 1px solid #e5ece6;
        flex: 0 0 auto;
    }

    .pd-mobile-drawer-brand img {
        width: 160px;
        max-width: 100%;
        height: auto;
        max-height: 45px;
        object-fit: contain;
    }

    .pd-mobile-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 41px;
        height: 41px;
        border-radius: 11px;
        background: #f2f6f3;
        border: 1px solid #dce7de;
        color: #1a4930;
        font: 400 25px/1 system-ui,sans-serif;
        cursor: pointer;
    }

    .pd-mobile-drawer-scroll {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 20px 20px 28px;
    }

    .pd-mobile-drawer-kicker {
        margin: 0 0 15px;
        font: 700 10px/1.3 system-ui,sans-serif;
        letter-spacing: .16em;
        color: #728478;
    }

    .pd-mobile-list,
    .pd-mobile-list ul {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        list-style: none !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .pd-mobile-list > li {
        position: relative;
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #e8eee9;
        padding: 0 !important;
        margin: 0 !important;
    }

    .pd-mobile-item-row {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 8px;
        min-height: 52px;
    }

    .pd-mobile-list a {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto;
        min-width: 0;
        padding: 13px 4px !important;
        color: #213b2a !important;
        font: 650 15px/1.35 system-ui,sans-serif !important;
        text-decoration: none !important;
        white-space: normal !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .pd-mobile-sub-toggle {
        display: inline-flex;
        width: 37px;
        height: 37px;
        flex: 0 0 37px;
        align-items: center;
        justify-content: center;
        border: 1px solid #e0e9e2;
        border-radius: 10px;
        background: #f5f8f5;
        color: #23573b;
        font: 700 20px/1 system-ui,sans-serif;
        cursor: pointer;
    }

    .pd-mobile-sub-toggle[aria-expanded="true"] {
        color: #fff;
        background: #175438;
        border-color: #175438;
    }

    .pd-mobile-submenu {
        display: none !important;
        margin: 0 0 12px !important;
        padding: 5px 9px 7px !important;
        border-radius: 11px !important;
        background: #f3f7f3 !important;
    }

    .pd-mobile-submenu.pd-expanded {
        display: flex !important;
        animation: pd-sub-reveal .2s ease both;
    }

    .pd-mobile-submenu li {
        width: 100%;
    }

    .pd-mobile-submenu a {
        min-height: 0;
        padding: 10px 12px !important;
        font-size: 13px !important;
        font-weight: 550 !important;
        border-radius: 7px !important;
    }

    .pd-mobile-submenu a:hover {
        background: #e6efe7 !important;
    }

    .pd-mobile-drawer-footer {
        padding: 17px 20px calc(17px + env(safe-area-inset-bottom));
        background: #f7f9f6;
        border-top: 1px solid #e1e9e2;
        flex: 0 0 auto;
    }

    .pd-mobile-booking {
        display: flex !important;
        width: 100%;
        min-height: 47px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 15px;
        border-radius: 10px;
        color: #fff !important;
        background: #18532f !important;
        text-decoration: none !important;
        font: 700 14px/1.25 system-ui,sans-serif !important;
        box-sizing: border-box;
    }

    .pd-mobile-location {
        text-align: center;
        font: 12px/1.4 system-ui,sans-serif;
        color: #758477;
        margin-top: 13px;
    }

    .pd-mobile-drawer a:focus-visible,
    .pd-mobile-drawer button:focus-visible {
        outline: 2px solid #bd9d45 !important;
        outline-offset: 2px;
    }

    @keyframes pd-sub-reveal {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 782px) {
    body.admin-bar.pd-mobile-ready .pd-header {
        top: 46px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-mobile-overlay,
    .pd-mobile-drawer,
    .pd-mobile-submenu {
        transition: none !important;
        animation: none !important;
    }
}

/* PDGROUP_MOBILE_V2_START */

/*
 * PD Group Mobile Menu V2
 * Single hamburger, compact drawer,
 * truly collapsed submenus.
 */

@media (max-width:1100px) {

    /*
     * Hide the original theme's menu controls
     * after the replacement drawer initializes.
     * Preserve the new menu trigger.
     */
    body.pd-mobile-ready .pd-header
    button:not(.pd-mobile-trigger),

    body.pd-mobile-ready .pd-header
    [class*="menu-toggle"]:not(.pd-mobile-trigger),

    body.pd-mobile-ready .pd-header
    [class*="mobile-toggle"]:not(.pd-mobile-trigger),

    body.pd-mobile-ready .pd-header
    [class*="nav-toggle"]:not(.pd-mobile-trigger),

    body.pd-mobile-ready .pd-header
    [class*="hamburger"]:not(.pd-mobile-trigger),

    body.pd-mobile-ready .pd-header
    [aria-controls="primary-menu"]:not(.pd-mobile-trigger) {
        display: none !important;
    }

    /* Clean single-row mobile header */
    body.pd-mobile-ready .pd-header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        min-height: 62px !important;
        height: 62px !important;
        gap: 12px !important;
    }

    body.pd-mobile-ready .pd-header .pd-brand {
        margin-right: auto !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    body.pd-mobile-ready .pd-header .pd-brand img {
        width: clamp(125px, 35vw, 155px) !important;
        max-height: 42px !important;
        object-fit: contain !important;
    }

    /* Modern compact menu button */
    body.pd-mobile-ready .pd-mobile-trigger {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 91px !important;
        height: 42px !important;
        gap: 9px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        border: 1px solid #dce7dd !important;
        background: #f5f8f5 !important;
        color: #17472b !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    body.pd-mobile-ready
    .pd-mobile-trigger-icon span {
        height: 2px !important;
        background: #17472b !important;
    }

    /* Drawer surface and spacing */
    .pd-mobile-drawer {
        width: min(355px, 92vw) !important;
        background: #fff !important;
    }

    .pd-mobile-drawer-header {
        min-height: 65px !important;
        padding: 12px 19px !important;
    }

    .pd-mobile-drawer-brand img {
        width: 145px !important;
        max-height: 40px !important;
    }

    .pd-mobile-drawer-scroll {
        padding: 15px 18px 20px !important;
    }

    .pd-mobile-drawer-kicker {
        margin-bottom: 9px !important;
        font-size: 10px !important;
    }

    .pd-mobile-list > li {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #edf1ed !important;
    }

    .pd-mobile-item-row {
        min-height: 45px !important;
        gap: 8px !important;
    }

    .pd-mobile-list > li >
    .pd-mobile-item-row > a {
        padding: 10px 4px !important;
        min-height: 0 !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        font-weight: 650 !important;
    }

    .pd-mobile-sub-toggle {
        width: 32px !important;
        height: 32px !important;
        flex-basis: 32px !important;
        border-radius: 9px !important;
        font-size: 18px !important;
        background: #f4f7f4 !important;
    }

    .pd-mobile-sub-toggle[aria-expanded="true"] {
        background: #175438 !important;
        color: #fff !important;
    }

    /*
     * Critical fix:
     * The original broad .pd-mobile-list ul
     * selector forces submenus to display:flex.
     * Use a more specific rule to keep
     * collapsed submenus genuinely hidden.
     */
    body.pd-mobile-ready .pd-mobile-drawer
    .pd-mobile-list ul.pd-mobile-submenu:not(.pd-expanded) {
        display: none !important;
        visibility: hidden !important;
    }

    body.pd-mobile-ready .pd-mobile-drawer
    .pd-mobile-list ul.pd-mobile-submenu.pd-expanded {
        display: flex !important;
        position: static !important;
        visibility: visible !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 0 9px !important;
        padding: 4px 7px !important;
        gap: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        background: #f4f8f4 !important;
        border: 0 !important;
        border-radius: 9px !important;
        box-shadow: none !important;
        animation: pd-sub-reveal .18s ease both;
    }

    body.pd-mobile-ready .pd-mobile-drawer
    .pd-mobile-submenu li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body.pd-mobile-ready .pd-mobile-drawer
    .pd-mobile-submenu a {
        display: block !important;
        padding: 9px 11px !important;
        min-height: 0 !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }

    /* Compact footer CTA */
    .pd-mobile-drawer-footer {
        padding:
            12px 18px
            calc(12px + env(safe-area-inset-bottom))
            !important;
    }

    .pd-mobile-booking {
        min-height: 44px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    .pd-mobile-location {
        margin-top: 9px !important;
        font-size: 11px !important;
    }

    .pd-mobile-close {
        width: 37px !important;
        height: 37px !important;
        border-radius: 10px !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    .pd-mobile-drawer,
    .pd-mobile-overlay,
    .pd-mobile-submenu {
        transition: none !important;
        animation: none !important;
    }
}

/* PDGROUP_MOBILE_V2_END */

/* PDG_DESKTOP_HEADER_V1_START */

/* Desktop only. Preserve the mobile drawer. */
@media screen and (min-width: 1101px) {

  .pd-header .pd-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 26px !important;
  }

  /* Larger, proportional company logo */
  .pd-header .pd-brand {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
  }

  .pd-header .pd-brand img {
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain !important;
  }

  /* Balanced desktop navigation */
  .pd-header .pd-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 22px !important;
    margin-left: auto !important;
    min-width: 0 !important;
  }

  .pd-header .pd-navigation > .pd-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: clamp(12px, 1.25vw, 22px) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .pd-header .pd-navigation > .pd-menu > li {
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .pd-header .pd-navigation > .pd-menu > li > a {
    white-space: nowrap !important;
    letter-spacing: 0 !important;
  }

  /* Appointment button remains right-aligned */
  .pd-header .pd-nav-cta {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }
}

/* PDG_DESKTOP_HEADER_V1_END */
