/* === BASE HEADER LAYOUT (DESKTOP) === */
:root {
    --header-offset: 25px;
    --header-height: 51px;
    --dropdown-top: 138px;
    --mobile-menu-top: 98px;
    /* Heade
   r inner height: 75px minu
  s      24px buf
  f er */
    --dropdown-gap: 15px;
    /* Gap between
        header and dropdown 
    p   er Figma 
   */
}

/* Desktop-only: icon swap and hover color for menu-item-has-children */
@media (min-width: 801px) {
    .header-dropdown-icon--orange {
        display: none;
    }

    .header-dropdown-icon--default {
        display: inline-block;
    }

    .main-navigation .menu-item-has-children:hover > .menu-item-link,
    .main-navigation .menu-item-has-children:focus-within > .menu-item-link,
    .main-navigation .menu-item-has-children.dropdown-open > .menu-item-link {
        color: #ed6a59;
    }

    .main-navigation .menu-item-has-children:hover .header-dropdown-icon--orange,
    .main-navigation .menu-item-has-children:focus-within .header-dropdown-icon--orange,
    .main-navigation .menu-item-has-children.dropdown-open .header-dropdown-icon--orange {
        display: inline-block;
    }

    .main-navigation .menu-item-has-children:hover .header-dropdown-icon--default,
    .main-navigation .menu-item-has-children:focus-within .header-dropdown-icon--default,
    .main-navigation .menu-item-has-children.dropdown-open .header-dropdown-icon--default {
        display: none;
    }
}

.site-header {
    background: transparent;
    color: #403936;
    position: sticky;
    top: var(--header-offset);
    z-index: 999;
    padding: 0 120px;
    /* animate visual properties (not position) for smooth blur transition */
    transition:
        background-color 220ms ease,
        box-shadow 220ms ease,
        opacity 220ms ease;
}

/* Remove shifting of header on scroll. We'll keep the header at its offset
   and instead show a frosted backdrop above it to avoid a visual jump. */
.site-header.is-scrolled {
    /* intentionally empty: keep header at its offset */
}

body:not(.admin-bar) .site-header {
    top: var(--header-offset);
}

/* Do not change top when scrolled for non-admin view */
body:not(.admin-bar) .site-header.is-scrolled {
    top: var(--header-offset);
}

/* Admin bar adjustments */
body.admin-bar {
    --header-offset: 57px;
    /* 32px admin bar + 25px spacing */
    --mobile-menu-top: 128px;
}

/* When admin bar present, keep header offset consistent on scroll */
body.admin-bar .site-header.is-scrolled {
    top: var(--header-offset);
}

.site-header-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 40px;
    max-width: 1200px;
    border: 1px solid #005b68;
    border-radius: 75px;
    background: #fdf5f1;
    position: relative;
}

/* Frosted backdrop above the header when page is scrolled.
   Covers the area from the viewport top down to the header offset
   (plus an optional 24px buffer) so the top-of-page content is blurred
   and the header does not appear to jump into place. */
.site-header::before {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    /* area above header: header offset only (removed 24px buffer) */
    height: var(--header-offset);
    pointer-events: none;
    z-index: 998;
    /* sit just behind header (header z-index: 999) */
    background: rgba(253, 245, 241, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition:
        opacity 220ms ease,
        backdrop-filter 220ms ease;
}

/* Reveal the frosted area when header is marked scrolled */
.site-header.is-scrolled::before {
    opacity: 1;
}

/* Slightly soften header inner background when scrolled to blend with backdrop */
.site-header.is-scrolled .site-header-inner {
    box-shadow: 0 8px 24px rgba(3, 6, 12, 0.08);
}

.mobile-book-session-wrapper {
    display: none;
}

.mobile-language-switcher-wrapper {
    display: none;
}

/* === BRANDING / LOGO === */
.branding-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-self: center;
    text-align: center;
}

.branding-center .site-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #403936;
    text-decoration: none;
    line-height: normal;
}

.branding-center .site-title .site-title-first {
    font-family: 'Hurricane', cursive;
    font-size: 26.196px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 1.5717px;
}

.branding-center .site-title .site-title-last {
    font-family: 'Cinzel', serif;
    font-size: 22.374px;
    font-weight: 400;
    margin-left: 11.24px;
    margin-top: -10px;
}

/* === HEADER SECTIONS === */
.header-left {
    display: flex;
    align-items: center;
    justify-self: start;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

.header-left .main-navigation,
.header-right .main-navigation {
    display: flex;
    align-items: center;
}

/* === NAVIGATION MENU (DESKTOP) === */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a:not(.btn) {
    color: #403936;
    text-decoration: none;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Active / hover nav link styles */
.main-navigation li.current-menu-item > a:not(.btn),
.main-navigation li.current_page_item > a:not(.btn),
.main-navigation li.current_page_parent > a:not(.btn),
.main-navigation li.current_page_ancestor > a:not(.btn),
.main-navigation li.current-menu-ancestor > a:not(.btn),
.main-navigation li.current-menu-parent > a:not(.btn),
.main-navigation a:not(.btn):focus,
.main-navigation a:not(.btn):hover {
    color: #ed6a59;
}

/* === STANDARD WORDPRESS SUBMENU (non-mega dropdown) === */
.main-navigation > ul li ul {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(3, 6, 12, 0.08);
    padding: 0;
    min-width: 220px;
    z-index: 50;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
    pointer-events: none;
}

.main-navigation > ul li ul li {
    display: block;
    white-space: nowrap;
}

.main-navigation > ul li ul li a {
    display: block;
    color: #181818;
    font-size: 13px;
}

/* === MEGA DROPDOWN STRUCTURE === */
.main-navigation .menu {
    display: flex;
    gap: 27.443px;
    align-items: center;
}

.main-navigation .menu-item {
    position: relative;
}

/* Separate parent link and dropdown toggle */
.main-navigation .menu-item-has-children {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-navigation .menu-item-link {
    pointer-events: auto;
}

.main-navigation .dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    padding-right: 0;
    margin-right: 0;
    outline: none;
    z-index: 90;
}

/* Hide mobile-specific elements on desktop */
.menu-item-services-toggle,
.mobile-services-checkbox,
.mobile-services-accordion {
    display: none !important;
}

/* Show desktop Services link */
.menu-item-services-link-desktop {
    display: inline-flex;
}

.main-navigation .dropdown-toggle:focus {
}

.header-dropdown-icon {
    width: auto;
    height: 12px;
    transition: transform 0.2s ease;
    padding-bottom: 4px;
    transform: rotate(180deg);
}

/* Full-width dropdown panel (DESKTOP) */
.main-navigation .dropdown-panel-desktop {
    position: fixed;
    left: 0;
    right: 0;
    /* Fixed position below header now that header does not shift */
    top: var(--dropdown-top, 138px);
    background: transparent;
    z-index: 80;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

/* Invisible hover bridge to prevent dropdown closing when moving cursor */
/* Extends from the menu item down to overlap with the dropdown */
.main-navigation .menu-item-has-children::after {
    content: '';
    position: absolute;
    left: -40px;
    right: -40px;
    top: 100%;
    /* Height covers: header padding bottom + gap + some overlap with dropdown */
    height: calc(var(--dropdown-gap) + 50px);
    background: transparent;
    pointer-events: none;
    z-index: 81;
}

.main-navigation .menu-item-has-children.dropdown-open::after {
    pointer-events: auto;
}

/* Hide mobile dropdown panel on desktop */
.main-navigation .dropdown-panel-mobile {
    display: none !important;
}

.main-navigation .dropdown-wrapper {
    width: 100%;
}

.main-navigation .dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    background: #fffbf8;
    border-radius: 43px;
    border: 1px solid #ed6a59;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 48px 56px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tagline at top */
.dropdown-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #403936;
    margin: 0;
    text-align: left;
}

/* Main content area */
.dropdown-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left: Service columns */
.dropdown-links {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.dropdown-column {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.dropdown-column-title,
.dropdown-column-title a {
    font-family: 'IvyOra Display', serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-style: italic !important;
    line-height: normal !important;
    color: #111111 !important;
    margin: 0 !important;
    text-align: left !important;
    font-feature-settings:
        'liga' off,
        'clig' off;
}

.dropdown-column-title a {
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

.dropdown-column-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ensure mega-dropdown inner lists aren't affected by the generic submenu hiding rules */
.main-navigation .dropdown-panel .dropdown-column-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border: none;
    position: static;
    min-width: auto;
    text-align: left;
    background: transparent;
    box-shadow: none;
}

.main-navigation .dropdown-panel .dropdown-column .dropdown-column-links {
    display: flex !important;
    align-items: flex-start;
}

.dropdown-column-links a {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: left;
}

/* Ensure dropdown links override default submenu styles and remove borders/backgrounds */
.main-navigation .dropdown-column-links a {
    font-size: 16px;
    color: #111111;
}

.main-navigation .dropdown-panel .dropdown-column-links li {
    border: none;
}

.main-navigation .dropdown-panel .dropdown-column-links a {
    background: transparent;
    color: #111111;
}

.main-navigation .dropdown-panel .dropdown-column-links a:hover {
    color: #ed6a59;
}

/* Optional "All Services" link (used in mobile services menu state) */
.dropdown-all-services {
    margin-top: 4px;
    display: none;
}

.dropdown-all-services a {
    font-family: 'IvyOra Display', serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    color: #111111;
    text-decoration: underline;
}

/* Right: Action card */
.dropdown-action {
    flex: 1 0 0;
    min-height: 195px;
    min-width: 400px;
    align-self: stretch;
    background: #e9d9d0;
    border-radius: 24px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.dropdown-action-image {
    position: absolute;
    inset: 4.81% 1.6% 0.17% 38.75%;
    z-index: 0;
    pointer-events: none;
}

.dropdown-action-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.dropdown-action-text {
    position: absolute;
    left: 16px;
    bottom: 86px;
    width: 148px;
    text-align: left;
    z-index: 2;
}

.dropdown-action-text h4 {
    font-family: 'IvyOra Display', serif;
    font-size: 24px;
    font-weight: 500;
    color: #403936;
    margin: 0;
    line-height: normal;
}

.dropdown-action-text h4 em {
    font-style: italic;
}

.dropdown-action-cta {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 2;
}

/* Dropdown buttons now use centralized component (primary and outline-orange) */

/* === HEADER ACTIONS / CTA BUTTON === */
/* Header button now uses centralized component (type: teal-primary) */
/* Keep only layout properties */
.header-actions .btn {
    min-width: 161px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-language-switcher {
    display: flex;
    align-items: center;
}

.header-mobile-language {
    display: none;
}

.gd-language-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fdf5f1;
    border: 1px solid #005b68;
    border-radius: 999px;
    padding: 7px 34px 7px 12px;
    display: inline-flex;
    align-items: center;
    height: 38px;
    box-shadow: 0 2px 6px rgba(3, 6, 12, 0.08);
    color: #403936;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #005b68 50%), linear-gradient(135deg, #005b68 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 16px,
        calc(100% - 12px) 16px;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

.gd-language-select:focus {
    outline: none;
    border-color: #ed6a59;
}

.gd-google-translate-mount {
    display: none !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

iframe.goog-te-menu-frame {
    z-index: 100000 !important;
}

body {
    top: 0 !important;
}

/* === HAMBURGER MENU TOGGLE (MOBILE - HIDDEN ON DESKTOP) === */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #111;
    align-items: center;
    gap: 8px;
}

.menu-icon {
    display: none;
}

.menu-icon-svg {
    width: 22px;
    height: 22px;
    display: inline-block;
}

.mobile-menu-margins,
.mobile-menu-margins .barn-icon {
    display: none;
}

/* ========================================== 
   DESKTOP BEHAVIORS (HOVER/FOCUS/CLASS-BASED)
   ========================================== */
.main-navigation .dropdown-wrapper {
    padding: 0 120px;
}

/* Show dropdown on hover/focus (min-width: 801px to prevent mobile conflicts) */
@media (max-width: 1200px) {
    .site-header {
        padding: 0 60px;
    }

    .main-navigation .dropdown-wrapper {
        padding: 0 60px;
    }

    .branding-center {
        position: static;
        left: auto;
        transform: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        order: 2;
        margin-left: auto;
        /* push to the right, so it sits left of the Book button */
        margin-right: 12px;
        gap: 8px;
    }

    .branding-center .site-title {
        display: flex;
        /* flex-direction: row;
        align-items: center; */
    }

    .branding-center .site-title .site-title-first {
        font-size: 20px;
        line-height: 1;
    }

    .branding-center .site-title .site-title-last {
        font-size: 16px;
        margin-left: 8px;
        margin-top: 0;
    }

    /* Explicit ordering so header pieces flow correctly on small screens */
    .header-left {
        order: 1;
    }

    .branding-center {
        order: 2;
    }

    .header-right {
        order: 3;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .gd-language-select {
        padding: 6px 10px;
        padding-right: 30px;
        height: 34px;
    }

    .gd-language-select {
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .main-navigation .dropdown-wrapper {
        padding: 0 40px;
    }
}

@media (min-width: 801px) {
    /* Show dropdown when parent has dropdown-open class (set via JS on hover/focus) */
    .main-navigation .menu-item-has-children.dropdown-open .dropdown-panel-desktop {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        max-height: 1000px;
        max-height: 1000px;
    }

    /* Rotate chevron when dropdown is open */
    .main-navigation .menu-item-has-children.dropdown-open .dropdown-toggle .header-dropdown-icon {
        transform: rotate(0deg);
    }

    /* Show standard WordPress submenu on hover */
    .main-navigation > ul li:hover > ul,
    .main-navigation > ul li:focus-within > ul {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* ==========================================
   MOBILE RESPONSIVE STYLES
   ========================================== */
@media (max-width: 800px) {
    /* === HEADER LAYOUT === */
    .site-header {
        padding: 0 24px;
        position: sticky;
        z-index: 10001;
    }

    /* Disable hover bridge on mobile */
    .main-navigation .menu-item-has-children::after {
        display: none;
    }

    /* Re-enable separator for menu-item-has-children in mobile menu */
    /* Position absolutely so it appears right after the link, not after accordion content */
    .main-navigation ul > li.menu-item-has-children {
        padding-bottom: 25px;
        /* Space for separator (24px margin + 1px height) */
    }

    .main-navigation ul > li.menu-item-has-children::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        margin: 0 auto 24px;
        right: 0;
        width: 100%;
        height: 1px;
        background: #bdbdbd;
        display: block;
    }

    .main-navigation .dropdown-wrapper {
        padding: 0 24px;
    }

    /* Show mobile-specific elements, hide desktop elements */
    /* Hide desktop Services link */
    .menu-item-services-link-desktop {
        display: none !important;
    }

    /* Show mobile Services toggle */
    .menu-item-services-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        color: #403936;
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 16px;
        font-weight: 400;
        text-decoration: none;
    }

    .mobile-services-checkbox {
        display: block !important;
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .mobile-services-accordion {
        display: none !important;
        /* Hidden by default, shown when checkbox checked */
    }

    .dropdown-toggle {
        display: none !important;
    }

    .dropdown-checkbox {
        display: none !important;
    }

    .main-navigation .menu-item-has-children {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }

    .site-header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        border-radius: 56px;
        height: 64px;
        /* max-width: 327px; */
        margin: 0 auto;
    }

    /* === BRANDING === */
    .branding-center {
        position: static;
        transform: none;
        order: 1;
        margin: 0;
    }

    .branding-center .site-logo img {
        max-height: 48px;
    }

    /* === HEADER SECTIONS === */
    .header-left {
        order: 3;
        /* margin-left: auto; */
    }

    .header-right {
        order: 4;
    }

    .header-mobile-language {
        display: flex;
        order: 2;
        align-items: center;
        margin-left: auto;
    }

    .header-mobile-language .gd-language-select {
        min-width: 112px;
        height: 32px;
        font-size: 12px;
        padding: 6px 28px 6px 10px;
        background-position:
            calc(100% - 16px) 15px,
            calc(100% - 10px) 15px;
        box-shadow: none;
        border-color: #ed6a59;
        background-color: #fffbf8;
    }

    /* === MOBILE MENU TOGGLE === */
    .menu-toggle {
        display: inline-flex;
        z-index: 10000;
    }

    .menu-label {
        display: none;
    }

    .header-actions {
        display: none;
    }

    /* === MOBILE NAVIGATION OVERLAY === */
    .main-navigation:not(.toggled) ul {
        display: none !important;
    }

    .main-navigation .menu {
        gap: 24px;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: fixed;
        /* Position below header: 98px for non-admin, 128px for admin */
        top: var(--mobile-menu-top, 98px);
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 44px);
        height: 80%;
        background: #fffbf8;
        padding: 32px 16px;
        margin: 0;
        z-index: 10000;
        overflow-y: auto;
        border-radius: 39px;
        border: 1px solid #ed6a59;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
        justify-content: flex-start;
        align-items: center;
        gap: 0;
    }

    .main-navigation.toggled ul {
        display: flex !important;
    }

    /* Wrapper for menu items to handle spacing */
    .main-navigation ul > li:first-child {
        /* margin-top: auto; */
    }

    .main-navigation ul > li:last-child {
        /* margin-bottom: auto; */
        display: flex;
    }

    /* === MOBILE MENU ITEMS === */
    .main-navigation ul > li {
        margin: 0;
        padding: 0;
        flex-direction: column;
        align-items: center;
        border-bottom: none;
        position: relative;
        width: 100%;
    }

    .main-navigation ul > li:last-child {
        margin-bottom: 0;
    }

    .main-navigation ul > li::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background-repeat: repeat-x;
        background-size: auto 2px;
        opacity: 0.3;
    }

    .main-navigation ul > li > a:not(.btn) {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        padding: 0;
        color: #403936;
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 16px;
        font-weight: 400;
        text-align: center;
        text-decoration: none;
        width: auto;
    }

    /* Services menu item - chevron is inline so no extra padding needed */
    .main-navigation ul > li.menu-item-has-children > a {
        /* No extra padding - chevron is inside anchor */
        align-self: flex-start;
    }

    .main-navigation ul > li.current_page_item > a,
    .main-navigation ul > li.current-menu-item > a {
        color: #ed6a59;
    }

    /* Separator after each menu item */
    .main-navigation ul > li::after {
        content: '';
        position: relative;
        width: 100%;
        height: 1px;
        background: #bdbdbd;
        margin-top: 24px;
        display: block;
    }

    .main-navigation ul > li:last-child::after {
        display: none;
    }

    /* Remove desktop underline pseudo-elements on mobile */
    .main-navigation a::after {
        display: none !important;
    }

    /* === MOBILE DECORATIVE MARGINS === */
    .mobile-menu-margins {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 10001;
        max-width: 100vw;
        display: none;
    }

    .main-navigation.toggled .mobile-menu-margins {
        display: block;
    }

    .mobile-menu-margins .margin {
        position: absolute;
        pointer-events: none;
        z-index: 10002;
    }

    .mobile-menu-margins .margin.left {
        left: 20px;
        top: 60px;
        height: calc(100% - 120px);
        width: auto;
    }

    .mobile-menu-margins .margin.right {
        right: 20px;
        top: 60px;
        height: calc(100% - 120px);
        width: auto;
    }

    .mobile-menu-margins .margin.top {
        left: 20px;
        right: 20px;
        top: 60px;
        width: calc(100% - 40px);
        height: auto;
    }

    .mobile-menu-margins .barn-icon {
        position: absolute;
        left: 50%;
        top: 75%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: auto;
        z-index: 0;
    }

    /* === MOBILE DROPDOWN (SERVICES INLINE ACCORDION) === */
    /* Hide desktop mega-dropdown panel on mobile */
    .main-navigation .dropdown-panel-desktop {
        display: none !important;
    }

    /* Hide desktop dropdown toggle on mobile */
    .main-navigation .dropdown-checkbox,
    .main-navigation .dropdown-toggle {
        display: none !important;
    }

    /* Show mobile Services toggle */
    .main-navigation .mobile-services-checkbox {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .main-navigation .mobile-services-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 4px;
        z-index: 2;
    }

    .mobile-services-chevron {
        width: 16px;
        height: 16px;
        padding-bottom: 4px;
        transition: transform 0.3s ease;
        transform: rotate(180deg);
    }

    .main-navigation .mobile-services-checkbox:checked ~ .mobile-services-toggle .mobile-services-chevron {
        transform: rotate(0deg);
    }

    /* Mobile Services accordion (hidden by default, shown inline when expanded) */
    .main-navigation .mobile-services-accordion {
        display: none;
        flex-direction: column;
        margin: 16px 0 0;
        padding: 0;
        width: 100%;
        gap: 8px;
    }

    .main-navigation .mobile-services-checkbox:checked ~ .mobile-services-accordion {
        display: flex !important;
    }

    /* Inline chevron inside the Services anchor (renders on mobile) */
    .mobile-services-toggle-inline {
        display: inline-flex !important;
        align-items: center;
        padding: 0;
        margin: 0;
        cursor: pointer;
    }

    .mobile-services-toggle-inline .mobile-services-chevron {
        width: 15px;
        height: 15px;
        padding-bottom: 4px;
        transition: transform 0.2s ease;
        transform: rotate(180deg);
        padding-bottom: 4px;
    }

    .main-navigation .menu-item-has-children:has(.mobile-services-checkbox:checked) .mobile-services-chevron {
        transform: rotate(0deg);
    }

    /* Book a Session button positioning in mobile menu */
    .header-actions {
        display: none !important;
    }

    /* Mobile Book a Session button */
    .mobile-book-session-wrapper {
        display: flex !important;
        justify-content: center;
        margin: auto 0 0 0 !important;
        padding: 0 !important;
        text-align: center;
        width: 100% !important;
    }

    .mobile-book-session-wrapper::after {
        display: none !important;
    }

    /* Mobile book session button now uses centralized component (teal-primary) */
    /* Keep class for display control */
    .mobile-book-session-btn {
        display: flex !important;
    }

    /* Category items in mobile accordion */
    .mobile-category-item {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 0;
        width: 100%;
    }

    /* No separator after category items - they're inside the Services section */
    .mobile-category-item::after {
        display: none;
    }

    .mobile-category-header {
        display: flex;
        align-items: center;
        padding: 12px 0;
        position: relative;
        width: 100%;
    }

    /* Category toggle label (full width clickable) */
    .main-navigation .mobile-category-header .mobile-category-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
        cursor: pointer;
        padding: 0;
    }

    .main-navigation .mobile-category-link {
        font-family: 'IvyOra Display', serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        font-style: italic !important;
        line-height: normal;
        color: #403936 !important;
        text-decoration: none !important;
        text-align: left;
    }

    /* When category link is an actual anchor (no grandchildren) */
    .main-navigation .mobile-category-header a.mobile-category-link {
        display: block;
        width: 100%;
    }

    /* Category toggle checkbox */
    .mobile-category-checkbox {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .mobile-category-chevron {
        width: 15px;
        height: 15px;
        padding-bottom: 4px;
        transition: transform 0.2s ease;
        transform: rotate(180deg);
    }

    .mobile-category-checkbox:checked + .mobile-category-toggle .mobile-category-chevron {
        transform: rotate(0deg);
    }

    /* Grandchildren list (hidden by default, shown inline when category expanded) */
    .mobile-grandchildren-list {
        display: none;
        flex-direction: column;
        padding: 0 0 12px 0;
        margin: 0;
        gap: 12px;
    }

    .mobile-category-item:has(.mobile-category-checkbox:checked) .mobile-grandchildren-list {
        display: flex !important;
    }

    .mobile-grandchild-link {
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: normal;
        color: #403936;
        text-decoration: none;
        padding: 0;
        display: block;
        text-align: left;
    }

    .mobile-grandchild-link:hover {
        color: #ed6a59;
    }

    /* All Services link in mobile accordion */
    .mobile-all-services-link {
        font-family: 'IvyOra Display', serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        font-style: italic !important;
        line-height: normal;
        color: #403936 !important;
        text-decoration: underline !important;
        padding: 12px 0;
        display: block;
        text-align: left;
        border-bottom: 1px solid transparent;
        position: relative;
    }

    .mobile-all-services-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background-repeat: repeat-x;
        background-size: auto 2px;
        opacity: 0.3;
    }

    .mobile-all-services-link:hover {
        color: #ed6a59;
    }

    /* === MOBILE SUBMENU (OLD WP STYLE) === */
    .main-navigation ul ul {
        display: none !important;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        min-width: 0;
    }

    .main-navigation ul > li.submenu-open > ul {
        display: block !important;
    }

    .main-navigation ul ul li {
        padding: 0;
        border: none;
    }

    .main-navigation ul ul li::after {
        display: none;
    }

    .main-navigation ul ul li a {
        padding: 12px 0;
        font-size: 18px;
        color: #181818;
        opacity: 0.8;
    }

    .main-navigation ul ul li.current_page_item a {
        color: #833c1e;
        opacity: 1;
    }

    /* Services dropdown chevron in mobile */
    .main-navigation ul > li.page_item_has_children > a::after {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-left: 8px;
        background-image: url('/assets/icons/dropdown-icon.svg');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        transition: transform 0.3s ease;
    }

    .main-navigation ul > li.page_item_has_children.submenu-open > a::after {
        transform: rotate(180deg);
    }
}

/* Visible language code inside custom globe pill (EN, MR, TA, etc.) */
.lang-globe-pill {
    gap: 6px;
}

.gd-language-code {
    display: inline-block;
    min-width: 24px;
    color: #403936;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
}

.lang-globe-pill .gd-language-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0;
    border: none !important;
    border-radius: 999px;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    min-width: 0 !important;
    color: transparent !important;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

/* Ensure native dropdown options are readable */
.lang-globe-pill .gd-language-select option {
    color: #403936;
    background: #fff;
}

/* Explicit icon/text/arrow alignment for language pill */
.lang-globe-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #005b68;
    border-radius: 999px;
    background: #fdf5f1;
}

.lang-globe-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
    pointer-events: none;
}

.gd-language-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}

.lang-dropdown-icon {
    width: 10px;
    height: 10px;
    display: block;
    flex: 0 0 auto;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
    pointer-events: none;
}

/* Rotate chevron when language select is open */
.lang-globe-pill.is-open .lang-dropdown-icon {
    transform: rotate(0deg);
}
