.elementor-section:has(.elementor-widget-mx-site-header),
.elementor-section.elementor-top-section:has(.elementor-widget-mx-site-header),
.elementor-section.elementor-section-boxed:has(.elementor-widget-mx-site-header),
.elementor-section.elementor-section-stretched:has(.elementor-widget-mx-site-header) {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    max-width: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.elementor-section:has(.elementor-widget-mx-site-header) > .elementor-container,
.elementor-section:has(.elementor-widget-mx-site-header) > .elementor-container > .elementor-column,
.elementor-section:has(.elementor-widget-mx-site-header) .elementor-widget-wrap,
.elementor-section:has(.elementor-widget-mx-site-header) .elementor-element-populated,
.elementor-widget-mx-site-header,
.elementor-widget-mx-site-header > .elementor-widget-container {
    position: static !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.sb-header {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 1001 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 24px clamp(20px, 4vw, 40px) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--mx-color-ink, #45375d) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    transition: padding 0.22s ease, background 0.22s ease, box-shadow 0.22s ease !important;
}

.sb-header--sticky {
    position: fixed !important;
}
.sb-header.is-open {
    z-index: 10000 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
}

body.admin-bar .sb-header--sticky {
    top: 32px !important;
}

.sb-header.is-scrolled,
.sb-header--sticky.is-scrolled {
    background: #fffafb !important;
    background-color: #fffafb !important;
    background-image: none !important;
    box-shadow: 0 4px 24px rgba(69, 55, 93, 0.06) !important;
    border-bottom: 1px solid rgba(69, 55, 93, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Scale logo down when scrolled */
.sb-header.is-scrolled .sb-header__logo-icon,
.sb-header--sticky.is-scrolled .sb-header__logo-icon {
    height: 70px !important;
    transition: height 0.22s ease !important;
}

.sb-header__logo-icon {
    transition: height 0.22s ease !important;
}

.sb-header__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: clamp(20px, 2.4vw, 36px) !important;
    width: 100% !important;
    max-width: 1500px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 clamp(22px, 4.6vw, 64px) !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.sb-header__nav {
    margin-left: auto !important;
    justify-content: flex-end !important;
    width: auto !important;
}
.sb-header__nav-list {
    justify-content: flex-end !important;
}

.sb-header__logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: auto !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--mx-color-ink, #45375d) !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.sb-header__logo-icon {
    display: block !important;
    height: 74px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: -8px 0 0 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
}

.sb-header__logo-text {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Theafalina', 'Allura', cursive !important;
    font-size: 54px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: transparent !important;
    background: linear-gradient(90deg, #E04794 0%, #D05693 100%) !important;
    -webkit-background-clip: text !important;
            background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-decoration: none !important;
}

.sb-header__logo:hover .sb-header__logo-text {
    opacity: 0.86 !important;
}

.sb-header__nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
}

.sb-header__nav-list {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(22px, 2.4vw, 36px) !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sb-header__nav-list li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.sb-header__nav-list a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    font-family: var(--mx-font-body, "Aileron", system-ui, sans-serif) !important;
    font-size: 17px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    color: var(--mx-color-body, #53475c) !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: color 0.18s ease !important;
}

.sb-header__nav-list a::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: -3px !important;
    left: 0 !important;
    height: 2px !important;
    background: var(--mx-color-brand, #f372b3) !important;
    border-radius: 999px !important;
    transform: scaleX(0) !important;
    transform-origin: left center !important;
    transition: transform 0.22s ease !important;
}

.sb-header__nav-list a:hover,
.sb-header__nav-list a:focus-visible,
.sb-header__nav-list .current-menu-item > a {
    color: var(--mx-color-ink, #45375d) !important;
}

.sb-header__nav-list a:hover::after,
.sb-header__nav-list a:focus-visible::after,
.sb-header__nav-list .current-menu-item > a::after {
    transform: scaleX(1) !important;
}

.sb-header__cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: max-content !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 22px 38px !important;
    border: 0 !important;
    border-radius: 68px !important;
    background: linear-gradient(267deg, #F372B3 0.6%, #FF60AF 99.4%) !important;
    box-shadow: 0 6px 18px rgba(243, 114, 179, 0.28) !important;
    color: #ffffff !important;
    font-family: var(--mx-font-body, "Aileron", system-ui, sans-serif) !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}
.sb-header__cta { font-weight: 800 !important; }

.sb-header__cta:hover,
.sb-header__cta:focus-visible {
    background: linear-gradient(267deg, #F92D93 0.6%, #FF60AF 99.4%) !important;
    border-color: #ffffff !important;
    border-radius: 68px !important;
    box-shadow: 0 10px 26px rgba(243, 114, 179, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

.sb-header__burger {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(243, 114, 179, 0.12) !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background 0.18s ease !important;
}
.sb-header__burger:hover,
.sb-header__burger:focus-visible {
    background: rgba(243, 114, 179, 0.22) !important;
}
.sb-header.is-open .sb-header__burger {
    background: rgba(243, 114, 179, 0.18) !important;
}

/* SVG burger — show bars normally, swap to X when open */
.sb-burger-bars { display: block !important; }
.sb-burger-close { display: none !important; }
.sb-header.is-open .sb-burger-bars { display: none !important; }
.sb-header.is-open .sb-burger-close { display: block !important; }

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

@media (max-width: 1024px) {
    .sb-header {
        padding: 20px 32px !important;
    }

    .sb-header__nav-list {
        gap: 22px !important;
    }
}

@media (max-width: 768px) {
    .sb-header {
        padding: 14px 10px !important;
    }

    .sb-header__inner {
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
        padding: 0 !important;
    }

    .sb-header__nav {
        display: none !important;
    }

    .sb-header__cta {
        display: none !important;
    }

    .sb-header__burger {
        display: inline-flex !important;
        margin-left: auto !important;
        position: relative !important;
        z-index: 10001 !important;
    }

    .sb-header__logo-icon {
        height: 56px !important;
        margin: -4px 0 0 0 !important;
    }
    /* Smaller logo when sticky header is scrolled, on mobile */
    .sb-header.is-scrolled .sb-header__logo-icon,
    .sb-header--sticky.is-scrolled .sb-header__logo-icon {
        height: 46px !important;
    }
}

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

/* Mobile drawer — fullscreen overlay menu. Hidden until burger sets .is-open.
   NOTE: class names below must match the markup in site-header.php:
   .sb-drawer > .sb-drawer__overlay + .sb-drawer__panel
   ( .sb-drawer__head / __logo / __close, .sb-drawer__nav > .sb-drawer__list,
     .sb-drawer__foot > .sb-drawer__cta ) */
.sb-drawer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.sb-drawer.is-open {
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Backdrop: fades in */
.sb-drawer__overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(69, 55, 93, 0.32) !important;
    -webkit-backdrop-filter: blur(3px) !important;
            backdrop-filter: blur(3px) !important;
    opacity: 0 !important;
    transition: opacity 0.35s ease !important;
}
.sb-drawer.is-open .sb-drawer__overlay {
    opacity: 1 !important;
}

/* Panel: slides in from the right with spring easing */
.sb-drawer__panel {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 20px clamp(22px, 6vw, 40px) calc(28px + env(safe-area-inset-bottom)) !important;
    background: rgba(255, 233, 234, 0.98) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
            backdrop-filter: blur(24px) saturate(180%) !important;
    box-sizing: border-box !important;
    transform: translateX(100%) !important;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) !important;
    overflow-y: auto !important;
    will-change: transform !important;
}
.sb-drawer.is-open .sb-drawer__panel {
    transform: translateX(0) !important;
}

.sb-drawer__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 64px !important;
    margin-bottom: 12px !important;
}
.sb-drawer__logo {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}
.sb-drawer__logo-icon {
    display: block !important;
    height: 54px !important;
    width: auto !important;
    object-fit: contain !important;
}
.sb-drawer__close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    background: rgba(243, 114, 179, 0.12) !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #F372B3 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.18s ease !important;
}
.sb-drawer__close:hover {
    background: rgba(243, 114, 179, 0.22) !important;
}

.sb-drawer__nav {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
}
.sb-drawer__list {
    list-style: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(18px, 3.4vh, 30px) !important;
}
.sb-drawer__list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    opacity: 0 !important;
    transform: translateX(28px) !important;
    transition: opacity 0.36s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.sb-drawer.is-open .sb-drawer__list li:nth-child(1) { opacity: 1 !important; transform: none !important; transition-delay: 0.14s !important; }
.sb-drawer.is-open .sb-drawer__list li:nth-child(2) { opacity: 1 !important; transform: none !important; transition-delay: 0.19s !important; }
.sb-drawer.is-open .sb-drawer__list li:nth-child(3) { opacity: 1 !important; transform: none !important; transition-delay: 0.24s !important; }
.sb-drawer.is-open .sb-drawer__list li:nth-child(4) { opacity: 1 !important; transform: none !important; transition-delay: 0.29s !important; }
.sb-drawer.is-open .sb-drawer__list li:nth-child(5) { opacity: 1 !important; transform: none !important; transition-delay: 0.34s !important; }
.sb-drawer.is-open .sb-drawer__list li:nth-child(6) { opacity: 1 !important; transform: none !important; transition-delay: 0.39s !important; }
.sb-drawer__list a {
    display: inline-block !important;
    font-family: var(--mx-font-display, Georgia, serif) !important;
    font-size: clamp(28px, 7vw, 40px) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    color: var(--mx-color-ink, #45375d) !important;
    text-decoration: none !important;
    transition: color 0.18s ease !important;
}
.sb-drawer__list a:hover,
.sb-drawer__list a:focus-visible,
.sb-drawer__list .current-menu-item > a {
    color: var(--mx-color-brand, #f372b3) !important;
}

.sb-drawer__cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 18px 28px !important;
    background: linear-gradient(267deg, #F372B3 0.6%, #FF60AF 99.4%) !important;
    box-shadow: 0 6px 18px rgba(243, 114, 179, 0.28) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 68px !important;
    font-family: var(--mx-font-body, "Aileron", sans-serif) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}
.sb-drawer__cta:hover,
.sb-drawer__cta:focus-visible {
    background: linear-gradient(267deg, #F92D93 0.6%, #FF60AF 99.4%) !important;
    box-shadow: 0 10px 26px rgba(243, 114, 179, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* CTA slides in after nav items */
.sb-drawer__cta {
    margin-top: 28px !important;
    opacity: 0 !important;
    transform: translateX(28px) !important;
    transition: opacity 0.36s ease 0.42s, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.42s, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}
.sb-drawer.is-open .sb-drawer__cta {
    opacity: 1 !important;
    transform: none !important;
}

/* Foot: phone + address at the very bottom */
.sb-drawer__foot {
    flex: 0 0 auto !important;
    margin-top: auto !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(243, 114, 179, 0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.sb-drawer__foot-phone {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-family: var(--mx-font-body, "Aileron", sans-serif) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--mx-color-ink, #45375d) !important;
    text-decoration: none !important;
}
.sb-drawer__foot-phone:hover { color: #F372B3 !important; }
.sb-drawer__foot-address {
    font-style: normal !important;
    font-family: var(--mx-font-body, "Aileron", sans-serif) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--mx-color-body, #53475c) !important;
    line-height: 1.5 !important;
}

/* Lock background scroll while the fullscreen menu is open */
body.sb-drawer-open {
    overflow: hidden !important;
}
