/* ═══════════════════════════════════════════════════════════════
   Pimwick Mobile Fix & Menu v2.0
   All rules scoped to mobile only — desktop is never touched.
   ═══════════════════════════════════════════════════════════════ */

/* ─── BASE: hide everything above breakpoint ─── */
.pwmm-hamburger,
.pwmm-drawer,
.pwmm-backdrop { display: none; }


/* ═══════════════════════════════════════════════════════════════
   MOBILE ONLY  —  max-width: 1024px
   (the JS uses the same PWMM.breakpoint value)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 1 — MOBILE SPACING & LAYOUT FIXES              ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* ── 1a. Global overflow protection ── */
body.pwmm-fix-spacing,
body.pwmm-fix-spacing #smooth-wrapper,
body.pwmm-fix-spacing #smooth-content {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ── 1b. Pixora header padding / spacing ── */
body.pwmm-fix-spacing .px-header-area {
    padding: 12px 16px !important;
}

body.pwmm-fix-spacing .px-header-area .container,
body.pwmm-fix-spacing .px-header-area .container-1870 {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.pwmm-fix-spacing .tp-header-logo img,
body.pwmm-fix-spacing .px-header-logo img {
    max-height: 40px !important;
    width: auto !important;
}

/* ── 1c. Elementor section / container spacing ── */
body.pwmm-fix-spacing .elementor-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

body.pwmm-fix-spacing .elementor-section.elementor-section-full_width {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.pwmm-fix-spacing .elementor-section > .elementor-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.pwmm-fix-spacing .e-con {
    --padding-inline: 16px !important;
    max-width: 100% !important;
}

/* ── 1d. Elementor column gap / spacing ── */
body.pwmm-fix-spacing .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding: 10px 0 !important;
}

body.pwmm-fix-spacing .elementor-widget {
    margin-bottom: 16px !important;
}

/* ── 1e. Large desktop margins/paddings: scale down ── */
body.pwmm-fix-spacing [class*="mt-"]:not([class*="mt-5"]):not([class*="mt-10"]):not([class*="mt-15"]):not([class*="mt-20"]) {
    margin-top: clamp(20px, 5vw, 60px) !important;
}

body.pwmm-fix-spacing [class*="mb-"]:not([class*="mb-5"]):not([class*="mb-10"]):not([class*="mb-15"]):not([class*="mb-20"]) {
    margin-bottom: clamp(20px, 5vw, 60px) !important;
}

body.pwmm-fix-spacing [class*="pt-"]:not([class*="pt-5"]):not([class*="pt-10"]):not([class*="pt-15"]):not([class*="pt-20"]) {
    padding-top: clamp(20px, 5vw, 60px) !important;
}

body.pwmm-fix-spacing [class*="pb-"]:not([class*="pb-5"]):not([class*="pb-10"]):not([class*="pb-15"]):not([class*="pb-20"]) {
    padding-bottom: clamp(20px, 5vw, 60px) !important;
}

body.pwmm-fix-spacing .mr-85 {
    margin-right: 0 !important;
}

/* ── 1f. Large hero / title font scaling ── */
body.pwmm-fix-spacing .tp-section-title-clash,
body.pwmm-fix-spacing .studio-hero-title,
body.pwmm-fix-spacing .tp-section-title-mango,
body.pwmm-fix-spacing .tp-funfact-title,
body.pwmm-fix-spacing .tp-copyright-big-text {
    font-size: clamp(32px, 10vw, 72px) !important;
    letter-spacing: -1px !important;
    line-height: 1.05 !important;
    word-break: break-word !important;
}

/* ── 1g. Images: prevent overflow ── */
body.pwmm-fix-spacing img {
    max-width: 100% !important;
    height: auto !important;
}

body.pwmm-fix-spacing .tp-banner-img {
    height: auto !important;
    min-height: 260px !important;
    max-height: 55vh !important;
    object-fit: cover !important;
}

/* ── 1h. Columns stacking ── */
body.pwmm-fix-spacing .elementor-row {
    flex-wrap: wrap !important;
}

body.pwmm-fix-spacing .elementor-column {
    width: 100% !important;
    max-width: 100% !important;
}

/* ── 1i. Footer mobile tidy ── */
body.pwmm-fix-spacing .tp-footer-widget-title {
    font-size: clamp(28px, 7vw, 48px) !important;
}

body.pwmm-fix-spacing .tp-footer-copyright {
    text-align: center !important;
    padding: 18px 16px !important;
}

/* ── 1j. Pixora blur overlay / back-to-top ── */
body.pwmm-fix-spacing .px-blur-bottom {
    display: none !important;
}

body.pwmm-fix-spacing .back-to-top-wrapper {
    right: 16px !important;
    bottom: 16px !important;
    z-index: 99990 !important;
}

/* ── 1k. Text that overflows on mobile ── */
body.pwmm-fix-spacing h1,
body.pwmm-fix-spacing h2,
body.pwmm-fix-spacing h3,
body.pwmm-fix-spacing h4 {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

body.pwmm-fix-spacing .elementor-heading-title {
    word-break: break-word !important;
}

/* ── 1l. Pixora custom widths that break mobile ── */
body.pwmm-fix-spacing .tp-custom-full-width-menu {
    padding: 0 16px !important;
}

body.pwmm-fix-spacing .tp-pixora-about-custom {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

body.pwmm-fix-spacing .tp-pixora-about-custom .tp-pixora-about-custom-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 2 — HIDE THEME'S NATIVE MOBILE NAV             ║
   ╚═══════════════════════════════════════════════════════════╝ */

body.pwmm-hide-theme-nav .px-header-bar,
body.pwmm-hide-theme-nav .tp-offcanvas-open-btn,
body.pwmm-hide-theme-nav .tp-offcanvas-area,
body.pwmm-hide-theme-nav .px-offcanvas-style,
body.pwmm-hide-theme-nav .body-overlay,
body.pwmm-hide-theme-nav .tp-main-menu-mobile,
body.pwmm-hide-theme-nav header nav,
body.pwmm-hide-theme-nav .elementor-location-header nav,
body.pwmm-hide-theme-nav .elementor-nav-menu--main,
body.pwmm-hide-theme-nav .site-navigation,
body.pwmm-hide-theme-nav .main-navigation,
body.pwmm-hide-theme-nav .ast-mobile-menu-trigger,
body.pwmm-hide-theme-nav .elementor-menu-toggle {
    display: none !important;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 3 — HAMBURGER BUTTON                           ║
   ╚═══════════════════════════════════════════════════════════╝ */

.pwmm-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100100;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: var(--pwmm-accent, #9f1d21);
    box-shadow:
        0 4px 16px rgba(var(--pwmm-accent-rgb), .35),
        0 1px 3px rgba(0,0,0,.12);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .25s cubic-bezier(.4,0,.2,1),
                box-shadow .25s cubic-bezier(.4,0,.2,1);
}

.pwmm-hamburger:active {
    transform: scale(.92);
}

.pwmm-hamburger-box {
    width: 22px;
    height: 16px;
    position: relative;
}

.pwmm-bar {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .35s cubic-bezier(.77,0,.18,1),
                opacity .25s ease;
}

.pwmm-bar--top { top: 0; }
.pwmm-bar--mid { top: 7px; }
.pwmm-bar--bot { top: 14px; }

/* ── Hamburger → X morph ── */
body.pwmm-open .pwmm-hamburger {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

body.pwmm-open .pwmm-bar--top {
    transform: translateY(7px) rotate(45deg);
}

body.pwmm-open .pwmm-bar--mid {
    opacity: 0;
    transform: scaleX(0);
}

body.pwmm-open .pwmm-bar--bot {
    transform: translateY(-7px) rotate(-45deg);
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 4 — BACKDROP                                   ║
   ╚═══════════════════════════════════════════════════════════╝ */

.pwmm-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s cubic-bezier(.4,0,.2,1),
                visibility .4s;
}

body.pwmm-open .pwmm-backdrop {
    opacity: 1;
    visibility: visible;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 5 — DRAWER PANEL                               ║
   ╚═══════════════════════════════════════════════════════════╝ */

.pwmm-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100050;
    width: min(92vw, 420px);
    height: 100dvh;
    height: 100vh;
    background: var(--pwmm-panel-bg, #0e0e0e);
    color: var(--pwmm-text, #fff);
    transform: translateX(105%);
    transition: transform .45s cubic-bezier(.77,0,.18,1);
    will-change: transform;
    box-shadow: -24px 0 80px rgba(0,0,0,.35);
    overflow: hidden;
}

body.pwmm-open .pwmm-drawer {
    transform: translateX(0);
}

.pwmm-drawer-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px 24px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}


/* ── Drawer head ── */

.pwmm-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.pwmm-drawer-logo {
    max-width: 160px;
    max-height: 50px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.pwmm-drawer-sitename {
    font-size: 20px;
    font-weight: 700;
    color: var(--pwmm-text);
    text-decoration: none;
    letter-spacing: -.02em;
}

.pwmm-close-btn {
    appearance: none;
    border: none;
    background: rgba(255,255,255,.06);
    color: var(--pwmm-text);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.pwmm-close-btn:hover,
.pwmm-close-btn:focus-visible {
    background: rgba(255,255,255,.12);
}


/* ── Nav list ── */

.pwmm-drawer-nav {
    flex: 1;
    padding-top: 8px;
}

.pwmm-nav-list,
.pwmm-nav-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pwmm-nav-list > li {
    opacity: 0;
    transform: translateX(30px);
    animation: none;
}

body.pwmm-open .pwmm-nav-list > li {
    animation: pwmm-slide-in .45s cubic-bezier(.4,0,.2,1) forwards;
}

body.pwmm-open .pwmm-nav-list > li:nth-child(1)  { animation-delay: .08s; }
body.pwmm-open .pwmm-nav-list > li:nth-child(2)  { animation-delay: .12s; }
body.pwmm-open .pwmm-nav-list > li:nth-child(3)  { animation-delay: .16s; }
body.pwmm-open .pwmm-nav-list > li:nth-child(4)  { animation-delay: .20s; }
body.pwmm-open .pwmm-nav-list > li:nth-child(5)  { animation-delay: .24s; }
body.pwmm-open .pwmm-nav-list > li:nth-child(6)  { animation-delay: .28s; }
body.pwmm-open .pwmm-nav-list > li:nth-child(7)  { animation-delay: .32s; }
body.pwmm-open .pwmm-nav-list > li:nth-child(8)  { animation-delay: .36s; }
body.pwmm-open .pwmm-nav-list > li:nth-child(9)  { animation-delay: .40s; }
body.pwmm-open .pwmm-nav-list > li:nth-child(10) { animation-delay: .44s; }

@keyframes pwmm-slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* parent links */
.pwmm-nav-list > li > a {
    display: flex;
    align-items: center;
    padding: 18px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--pwmm-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: color .2s, padding-left .25s cubic-bezier(.4,0,.2,1);
    position: relative;
}

.pwmm-nav-list > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--pwmm-accent);
    transform: translateY(-50%);
    transition: width .3s cubic-bezier(.4,0,.2,1);
    border-radius: 1px;
}

.pwmm-nav-list > li > a:hover,
.pwmm-nav-list > li > a:focus-visible,
.pwmm-nav-list > li.current-menu-item > a,
.pwmm-nav-list > li.current-menu-ancestor > a {
    color: var(--pwmm-accent);
    padding-left: 18px;
}

.pwmm-nav-list > li > a:hover::before,
.pwmm-nav-list > li > a:focus-visible::before,
.pwmm-nav-list > li.current-menu-item > a::before,
.pwmm-nav-list > li.current-menu-ancestor > a::before {
    width: 10px;
}


/* ── submenu toggle button ── */

.pwmm-nav-list .menu-item-has-children {
    position: relative;
}

.pwmm-sub-toggle {
    position: absolute;
    top: 12px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: transparent;
    color: var(--pwmm-text);
    font-size: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .3s cubic-bezier(.4,0,.2,1);
}

.pwmm-sub-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.pwmm-sub-toggle:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.18);
}

.menu-item-has-children.pwmm-sub-open > .pwmm-sub-toggle svg {
    transform: rotate(180deg);
}


/* ── sub-menus ── */

.pwmm-nav-list .sub-menu {
    max-height: 0;
    overflow: hidden;
    padding-left: 16px;
    transition: max-height .4s cubic-bezier(.4,0,.2,1),
                opacity .3s ease;
    opacity: 0;
    border-left: 2px solid rgba(var(--pwmm-accent-rgb), .25);
    margin-left: 4px;
}

.menu-item-has-children.pwmm-sub-open > .sub-menu {
    max-height: 600px;
    opacity: 1;
}

.pwmm-nav-list .sub-menu a {
    display: block;
    padding: 12px 8px 12px 12px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s, padding-left .2s;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.pwmm-nav-list .sub-menu a:hover,
.pwmm-nav-list .sub-menu a:focus-visible {
    color: var(--pwmm-accent);
    padding-left: 18px;
}

/* third-level */
.pwmm-nav-list .sub-menu .sub-menu {
    border-left-color: rgba(var(--pwmm-accent-rgb), .12);
}

.pwmm-nav-list .sub-menu .sub-menu a {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    padding-left: 16px;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 6 — CTA BUTTON                                 ║
   ╚═══════════════════════════════════════════════════════════╝ */

.pwmm-drawer-cta {
    margin-top: 24px;
    flex-shrink: 0;
}

.pwmm-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 16px 24px;
    border-radius: 16px;
    background: var(--pwmm-accent);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 4px 20px rgba(var(--pwmm-accent-rgb), .3);
    transition: transform .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}

.pwmm-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(var(--pwmm-accent-rgb), .4);
}

.pwmm-cta-btn:active {
    transform: scale(.97);
}

.pwmm-cta-btn svg {
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.pwmm-cta-btn:hover svg {
    transform: translateX(4px);
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 7 — SOCIAL LINKS                               ║
   ╚═══════════════════════════════════════════════════════════╝ */

.pwmm-drawer-social {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    flex-shrink: 0;
}

.pwmm-drawer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    transition: color .2s, border-color .2s, background .2s;
}

.pwmm-drawer-social a:hover {
    color: var(--pwmm-accent);
    border-color: var(--pwmm-accent);
    background: rgba(var(--pwmm-accent-rgb), .08);
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 8 — ACCENT LINE                                ║
   ╚═══════════════════════════════════════════════════════════╝ */

.pwmm-drawer-accent-line {
    height: 3px;
    margin-top: 20px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        var(--pwmm-accent) 0%,
        rgba(var(--pwmm-accent-rgb), .2) 100%
    );
    flex-shrink: 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: none;
}

body.pwmm-open .pwmm-drawer-accent-line {
    animation: pwmm-accent-grow .6s .45s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes pwmm-accent-grow {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 9 — BODY LOCK                                  ║
   ╚═══════════════════════════════════════════════════════════╝ */

body.pwmm-open {
    overflow: hidden !important;
    touch-action: none;
}


/* ╔═══════════════════════════════════════════════════════════╗
   ║  SECTION 10 — SMALL MOBILE REFINEMENTS (≤ 480px)        ║
   ╚═══════════════════════════════════════════════════════════╝ */

@media (max-width: 480px) {

    body.pwmm-fix-spacing .px-header-area {
        padding: 10px 12px !important;
    }

    body.pwmm-fix-spacing .elementor-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .pwmm-hamburger {
        width: 46px;
        height: 46px;
        top: 12px;
        right: 12px;
        border-radius: 13px;
    }

    .pwmm-hamburger-box {
        width: 20px;
        height: 14px;
    }

    .pwmm-bar--mid { top: 6px; }
    .pwmm-bar--bot { top: 12px; }

    body.pwmm-open .pwmm-bar--top { transform: translateY(6px) rotate(45deg); }
    body.pwmm-open .pwmm-bar--bot { transform: translateY(-6px) rotate(-45deg); }

    .pwmm-drawer {
        width: 100vw;
    }

    .pwmm-drawer-inner {
        padding: 16px 20px 24px;
    }

    .pwmm-nav-list > li > a {
        font-size: 20px;
        padding: 16px 0;
    }

    .pwmm-cta-btn {
        min-height: 50px;
        padding: 14px 20px;
        font-size: 15px;
    }
}

} /* end max-width: 1024px */


@media (max-width: 1024px) {
    body.pwmm-active .pwmm-hamburger { display:flex !important; visibility:visible !important; opacity:1 !important; }
    body.pwmm-active .pwmm-backdrop { display:block !important; }
    body.pwmm-active .pwmm-drawer { display:flex !important; }
}
