/* ================================================================
   PSYCHOHEAL SHOP HEADER
================================================================ */

:root {
    --psh-primary: #22A6B3;
    --psh-dark: #132231;
    --psh-light: #F7FAFA;
    --psh-orange: #FF9F43;

    --psh-white: #ffffff;
    --psh-muted: #71808d;
    --psh-border: rgba(19, 34, 49, 0.09);

    --psh-header-height: 78px;
}


/* ================================================================
   BASIC RESET
================================================================ */

.psh-header *,
.psh-mobile-menu * {
    box-sizing: border-box;
}


.psh-header button,
.psh-mobile-menu button {
    appearance: none !important;
    -webkit-appearance: none !important;

    font-family: inherit !important;

    text-transform: none !important;

    box-shadow: none;
}


.psh-header button:hover,
.psh-header button:focus,
.psh-mobile-menu button:hover,
.psh-mobile-menu button:focus {
    outline: none;
}


.psh-header a,
.psh-mobile-menu a {
    text-decoration: none;
}


/* ================================================================
   HEADER
================================================================ */

.psh-header {
    position: fixed;

    top: 0;
    right: 0;
    left: 0;

    width: 100%;

    z-index: 99990;

    background: rgba(247, 250, 250, 0.94);

    border-bottom:
        1px solid rgba(19, 34, 49, 0.06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        box-shadow 0.25s ease,
        opacity 0.25s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}


.psh-header.psh-scrolled {
    box-shadow:
        0 10px 40px rgba(19, 34, 49, 0.07);
}


.psh-header-container {
    width: min(1380px, calc(100% - 48px));

    margin: 0 auto;

    position: relative;
}


.psh-header-bar {
    height: var(--psh-header-height);

    display: grid;

    grid-template-columns:
        minmax(245px, auto)
        minmax(300px, 1fr)
        minmax(245px, auto);

    grid-template-areas:
        "actions nav brand";

    align-items: center;

    column-gap: 32px;
}


.psh-header-offset {
    height: var(--psh-header-height);
}


/* ================================================================
   BRAND
================================================================ */

.psh-brand {
    grid-area: brand;

    justify-self: end;

    display: flex;
    align-items: center;

    gap: 12px;

    direction: rtl;

    min-width: max-content;
}


.psh-brand-mark {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 16px;

    background: #ffffff;

    border:
        1px solid rgba(34, 166, 179, 0.12);

    box-shadow:
        0 8px 24px rgba(19, 34, 49, 0.045);

    position: relative;
}


.psh-brand-mark::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    left: -3px;
    bottom: 7px;

    border-radius: 50%;

    background: var(--psh-orange);

    border: 2px solid var(--psh-light);
}


.psh-brand-mark img {
    display: block;

    width: 39px;
    height: 39px;

    object-fit: contain;
}


.psh-brand-text {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    direction: rtl;

    line-height: 1;
}


.psh-brand-text strong {
    color: var(--psh-dark);

    font-size: 17px;
    font-weight: 900;

    letter-spacing: -0.4px;
}


.psh-brand-text small {
    margin-top: 7px;

    color: var(--psh-primary);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.6px;

    direction: ltr;
}


/* ================================================================
   NAVIGATION
================================================================ */

.psh-desktop-navigation {
    grid-area: nav;

    display: flex;
    justify-content: center;

    min-width: 0;
}


.psh-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;

    list-style: none;

    gap: 3px;

    margin: 0;
    padding: 5px;

    border-radius: 16px;

    background:
        rgba(34, 166, 179, 0.045);
}


.psh-nav-list > li {
    position: relative;

    padding: 0;
    margin: 0;
}


.psh-nav-list > li > a {
    min-height: 40px;

    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: var(--psh-dark);

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.psh-nav-list > li > a:hover {
    color: var(--psh-primary);

    background: #ffffff;
}


.psh-nav-list > li.current-menu-item > a,
.psh-nav-list > li.current-menu-parent > a {
    color: var(--psh-dark);

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(19, 34, 49, 0.05);
}


.psh-nav-list > li.current-menu-item > a::after,
.psh-nav-list > li.current-menu-parent > a::after {
    content: "";

    position: absolute;

    bottom: -3px;
    right: 50%;

    width: 5px;
    height: 5px;

    transform: translateX(50%);

    border-radius: 50%;

    background: var(--psh-orange);
}


/* ================================================================
   DESKTOP DROPDOWN
================================================================ */

.psh-nav-list .sub-menu {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    min-width: 215px;

    margin: 0;
    padding: 7px;

    list-style: none;

    border-radius: 15px;

    background: #ffffff;

    border:
        1px solid rgba(19, 34, 49, 0.07);

    box-shadow:
        0 18px 50px rgba(19, 34, 49, 0.11);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}


.psh-nav-list li:hover > .sub-menu,
.psh-nav-list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.psh-nav-list .sub-menu a {
    display: block;

    padding: 11px 12px;

    border-radius: 10px;

    color: var(--psh-dark);

    font-size: 12px;
    font-weight: 650;
}


.psh-nav-list .sub-menu a:hover {
    background:
        rgba(34, 166, 179, 0.07);

    color: var(--psh-primary);
}


/* ================================================================
   DESKTOP ACTIONS
================================================================ */

.psh-header-actions {
    grid-area: actions;

    justify-self: start;

    display: flex;
    align-items: center;

    gap: 7px;

    direction: ltr;
}


.psh-icon-button,
.psh-search-button {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    padding: 0 !important;

    margin: 0 !important;

    border:
        1px solid rgba(19, 34, 49, 0.085) !important;

    border-radius: 13px !important;

    background: #ffffff !important;

    color: var(--psh-dark) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease !important;
}


.psh-icon-button:hover,
.psh-search-button:hover {
    transform: translateY(-2px);

    border-color:
        rgba(34, 166, 179, 0.28) !important;

    background:
        rgba(34, 166, 179, 0.04) !important;
}


.psh-icon-button img,
.psh-search-button img {
    display: block;

    width: 17px;
    height: 17px;

    object-fit: contain;
}


.psh-contact-button {
    min-height: 46px;

    padding: 5px 15px 5px 6px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 15px;

    background: var(--psh-dark);

    color: #ffffff;

    direction: rtl;

    box-shadow:
        0 8px 24px rgba(19, 34, 49, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.psh-contact-button:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(19, 34, 49, 0.18);
}


.psh-contact-icon {
    width: 35px;
    height: 35px;

    flex-shrink: 0;

    border-radius: 11px;

    background: var(--psh-orange);

    display: flex;
    align-items: center;
    justify-content: center;
}


.psh-contact-icon img {
    display: block;

    width: 15px;
    height: 15px;

    object-fit: contain;
}


.psh-contact-copy {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    line-height: 1;
}


.psh-contact-copy small {
    color:
        rgba(255, 255, 255, 0.62);

    font-size: 8px;
    font-weight: 600;
}


.psh-contact-copy strong {
    margin-top: 5px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 850;
}


/* ================================================================
   HAMBURGER
================================================================ */

.psh-menu-toggle {
    grid-area: toggle;

    display: none;

    width: 43px !important;
    height: 43px !important;

    min-width: 43px !important;

    padding: 0 !important;
    margin: 0 !important;

    border:
        1px solid rgba(19, 34, 49, 0.09) !important;

    border-radius: 13px !important;

    background: #ffffff !important;

    color: var(--psh-dark) !important;

    align-items: center;
    justify-content: center;

    cursor: pointer;
}


.psh-menu-toggle svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;
    stroke-width: 2;

    stroke-linecap: round;
}


/* ================================================================
   SEARCH PANEL
================================================================ */

.psh-search-panel {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    width: min(570px, 100%);

    padding: 10px;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.98);

    border:
        1px solid rgba(19, 34, 49, 0.07);

    box-shadow:
        0 18px 55px rgba(19, 34, 49, 0.13);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(-7px) scale(0.985);

    transform-origin: top left;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


.psh-header.psh-search-open
.psh-search-panel {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0) scale(1);
}


.psh-search-form {
    display: flex;
    align-items: center;

    gap: 8px;

    direction: rtl;
}


.psh-search-input-wrap {
    flex: 1;

    height: 48px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 14px;

    border-radius: 13px;

    background: var(--psh-light);

    border:
        1px solid rgba(19, 34, 49, 0.055);
}


.psh-search-input-wrap img {
    width: 17px;
    height: 17px;

    flex-shrink: 0;
}


.psh-search-input-wrap input {
    width: 100%;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    color: var(--psh-dark);

    font-family: inherit;

    font-size: 12px;

    padding: 0 !important;
}


.psh-search-form > button {
    height: 48px !important;

    padding: 0 18px !important;

    border: 0 !important;

    border-radius: 13px !important;

    background:
        var(--psh-primary) !important;

    color: #ffffff !important;

    display: flex;
    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 800;
}


/* ================================================================
   MOBILE MENU
================================================================ */

.psh-mobile-menu {
    display: none;
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 1100px) {

    .psh-header-container {
        width:
            min(100% - 32px, 1000px);
    }


    .psh-header-bar {
        grid-template-columns:
            minmax(210px, auto)
            1fr
            minmax(210px, auto);

        column-gap: 18px;
    }


    .psh-nav-list > li > a {
        padding: 0 10px;

        font-size: 12px;
    }


    .psh-brand-text strong {
        font-size: 15px;
    }

}


/* ================================================================
   MOBILE MODE
================================================================ */

@media (max-width: 900px) {

    :root {
        --psh-header-height: 68px;
    }


    .psh-header-container {
        width: calc(100% - 30px);
    }


    .psh-header-bar {
        height: var(--psh-header-height);

        grid-template-columns:
            auto 1fr;

        grid-template-areas:
            "toggle brand";

        column-gap: 15px;
    }


    .psh-desktop-navigation,
    .psh-header-actions,
    .psh-search-panel {
        display: none !important;
    }


    .psh-menu-toggle {
        display: flex !important;

        justify-self: start;
    }


    .psh-brand {
        justify-self: end;

        gap: 9px;
    }


    .psh-brand-mark {
        width: 42px;
        height: 42px;

        border-radius: 13px;
    }


    .psh-brand-mark img {
        width: 33px;
        height: 33px;
    }


    .psh-brand-mark::after {
        width: 7px;
        height: 7px;
    }


    .psh-brand-text strong {
        font-size: 14px;
    }


    .psh-brand-text small {
        margin-top: 5px;

        font-size: 6.5px;

        letter-spacing: 1.25px;
    }


    /* ============================================================
       HIDE HEADER WHEN MENU OPEN
    ============================================================ */

    body.psh-menu-open
    .psh-header {
        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            translateY(-100%);
    }


    body.psh-menu-open {
        overflow: hidden;
    }


    /* ============================================================
       MOBILE FULLSCREEN MENU
    ============================================================ */

    .psh-mobile-menu {
        position: fixed;

        inset: 0;

        z-index: 100000;

        display: block;

        width: 100%;
        height: 100dvh;

        overflow-y: auto;
        overflow-x: hidden;

        background:
            radial-gradient(
                circle at 90% -5%,
                rgba(34, 166, 179, 0.36),
                transparent 38%
            ),
            radial-gradient(
                circle at -10% 100%,
                rgba(255, 159, 67, 0.12),
                transparent 38%
            ),
            var(--psh-dark);

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transform:
            scale(1.015);

        transition:
            opacity 0.28s ease,
            visibility 0.28s ease,
            transform 0.32s ease;
    }


    body.psh-menu-open
    .psh-mobile-menu {
        opacity: 1;
        visibility: visible;

        pointer-events: auto;

        transform:
            scale(1);
    }


    .psh-mobile-menu-inner {
        width: 100%;

        min-height: 100%;

        padding:
            max(22px, env(safe-area-inset-top))
            22px
            max(22px, env(safe-area-inset-bottom));

        display: flex;
        flex-direction: column;

        direction: rtl;
    }


    /* ============================================================
       MOBILE MENU TOP
    ============================================================ */

    .psh-mobile-menu-top {
        display: flex;
        align-items: center;
        justify-content: space-between;

        direction: ltr;
    }


    .psh-menu-close {
        width: 43px !important;
        height: 43px !important;

        min-width: 43px !important;

        padding: 0 !important;
        margin: 0 !important;

        border:
            1px solid rgba(255, 255, 255, 0.13) !important;

        border-radius: 14px !important;

        background:
            rgba(255, 255, 255, 0.06) !important;

        color: #ffffff !important;

        display: flex !important;
        align-items: center;
        justify-content: center;

        cursor: pointer;
    }


    .psh-menu-close svg {
        width: 22px;
        height: 22px;

        fill: none;

        stroke: var(--psh-orange);
        stroke-width: 2;

        stroke-linecap: round;
    }


    .psh-mobile-brand {
        display: flex;
        align-items: center;

        gap: 9px;

        direction: rtl;

        color: #ffffff;
    }


    .psh-mobile-brand-mark {
        width: 44px;
        height: 44px;

        border-radius: 14px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: var(--psh-light);
    }


    .psh-mobile-brand-mark img {
        width: 34px;
        height: 34px;

        object-fit: contain;
    }


    .psh-mobile-brand > span:last-child {
        display: flex;
        flex-direction: column;

        line-height: 1;
    }


    .psh-mobile-brand strong {
        color: #ffffff;

        font-size: 14px;
        font-weight: 900;
    }


    .psh-mobile-brand small {
        margin-top: 5px;

        color: var(--psh-primary);

        font-size: 6.5px;
        font-weight: 800;

        letter-spacing: 1.4px;

        direction: ltr;
    }


    /* ============================================================
       INTRO
    ============================================================ */

    .psh-mobile-intro {
        margin-top: 44px;
        margin-bottom: 27px;
    }


    .psh-mobile-intro > span {
        display: block;

        margin-bottom: 9px;

        color: var(--psh-orange);

        font-size: 8px;
        font-weight: 900;

        letter-spacing: 2px;

        direction: ltr;

        text-align: right;
    }


    .psh-mobile-intro h2 {
        margin: 0;

        color: #ffffff;

        font-size:
            clamp(23px, 7vw, 31px);

        font-weight: 900;

        line-height: 1.5;

        letter-spacing: -0.8px;
    }


    /* ============================================================
       MOBILE NAV
    ============================================================ */

    .psh-mobile-nav-list,
    .psh-mobile-nav-list .sub-menu {
        list-style: none;

        padding: 0;
        margin: 0;
    }


    .psh-mobile-nav-list > li {
        position: relative;

        margin: 0;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.085);
    }


    .psh-mobile-nav-list > li:first-child {
        border-top:
            1px solid rgba(255, 255, 255, 0.085);
    }


    .psh-mobile-nav-list > li > a {
        min-height: 58px;

        display: flex;
        align-items: center;

        position: relative;

        padding:
            0 20px 0 40px;

        color: #ffffff;

        font-size: 14px;
        font-weight: 750;

        transition:
            color 0.2s ease,
            padding 0.2s ease;
    }


    .psh-mobile-nav-list > li > a::before {
        content: "";

        position: absolute;

        right: 0;

        width: 8px;
        height: 8px;

        border-radius: 3px;

        border:
            2px solid var(--psh-primary);

        transform: rotate(45deg);
    }


    .psh-mobile-nav-list > li > a::after {
        content: "←";

        position: absolute;

        left: 3px;

        color:
            rgba(255, 255, 255, 0.32);

        font-size: 17px;

        transition:
            color 0.2s ease,
            transform 0.2s ease;
    }


    .psh-mobile-nav-list > li > a:hover {
        padding-right: 24px;

        color: var(--psh-orange);
    }


    .psh-mobile-nav-list > li > a:hover::after {
        color: var(--psh-orange);

        transform:
            translateX(-3px);
    }


    .psh-mobile-nav-list
    > li.current-menu-item
    > a {
        color: var(--psh-orange);
    }


    /* ============================================================
       MOBILE SUB MENU
    ============================================================ */

    .psh-mobile-nav-list .sub-menu {
        margin:
            -3px 20px 8px 0;

        padding-right: 14px;

        border-right:
            1px solid rgba(34, 166, 179, 0.35);
    }


    .psh-mobile-nav-list
    .sub-menu a {
        display: block;

        padding: 8px 5px;

        color:
            rgba(255, 255, 255, 0.62);

        font-size: 11px;
        font-weight: 600;
    }


    /* ============================================================
       BOTTOM
    ============================================================ */

    .psh-mobile-menu-bottom {
        margin-top: auto;

        padding-top: 35px;
    }


    .psh-mobile-divider {
        display: flex;
        align-items: center;

        gap: 12px;

        margin-bottom: 15px;
    }


    .psh-mobile-divider::before {
        content: "";

        flex: 1;

        height: 1px;

        background:
            rgba(255, 255, 255, 0.1);
    }


    .psh-mobile-divider span {
        color:
            rgba(255, 255, 255, 0.52);

        font-size: 9px;
        font-weight: 700;
    }


    .psh-mobile-actions {
        display: grid;

        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(0, 1fr);

        gap: 9px;

        direction: rtl;
    }


    .psh-mobile-call {
        min-height: 55px;

        padding: 6px 7px 6px 14px;

        display: flex;
        align-items: center;

        gap: 9px;

        border-radius: 16px;

        color: var(--psh-dark);

        background: var(--psh-orange);
    }


    .psh-mobile-instagram {
        min-height: 55px;

        padding: 6px 11px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 8px;

        border-radius: 16px;

        color: #ffffff;

        background:
            rgba(255, 255, 255, 0.055);

        border:
            1px solid rgba(255, 255, 255, 0.13);

        font-size: 10px;
        font-weight: 750;
    }


    .psh-mobile-action-icon {
        width: 35px;
        height: 35px;

        flex-shrink: 0;

        border-radius: 11px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: #ffffff;
    }


    .psh-mobile-action-icon img {
        width: 15px;
        height: 15px;

        object-fit: contain;
    }


    .psh-mobile-call > span:last-child {
        display: flex;
        flex-direction: column;

        line-height: 1;
    }


    .psh-mobile-call small {
        color:
            rgba(19, 34, 49, 0.65);

        font-size: 8px;
        font-weight: 700;
    }


    .psh-mobile-call strong {
        margin-top: 5px;

        color: var(--psh-dark);

        font-size: 11px;
        font-weight: 900;
    }

}


/* ================================================================
   SMALL MOBILE
================================================================ */

@media (max-width: 420px) {

    .psh-header-container {
        width: calc(100% - 24px);
    }


    .psh-brand-mark {
        width: 39px;
        height: 39px;
    }


    .psh-brand-mark img {
        width: 31px;
        height: 31px;
    }


    .psh-brand-text strong {
        font-size: 13px;
    }


    .psh-brand-text small {
        font-size: 6px;
    }


    .psh-mobile-menu-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

}


/* ================================================================
   VERY SMALL MOBILE
================================================================ */

@media (max-width: 340px) {

    .psh-brand-text small {
        display: none;
    }


    .psh-mobile-actions {
        grid-template-columns: 1fr;
    }

}


/* ================================================================
   WORDPRESS ADMIN BAR
================================================================ */

body.admin-bar
.psh-header {
    top: 32px;
}


@media (max-width: 782px) {

    body.admin-bar
    .psh-header {
        top: 46px;
    }


    body.admin-bar
    .psh-mobile-menu {
        top: 46px;

        height:
            calc(100dvh - 46px);
    }

}


/* ================================================================
   ACCESSIBILITY
================================================================ */

.psh-icon-button:focus-visible,
.psh-menu-toggle:focus-visible,
.psh-menu-close:focus-visible,
.psh-contact-button:focus-visible,
.psh-nav-list a:focus-visible,
.psh-mobile-nav-list a:focus-visible {
    outline:
        2px solid var(--psh-orange) !important;

    outline-offset: 3px !important;
}


@media (prefers-reduced-motion: reduce) {

    .psh-header *,
    .psh-mobile-menu * {
        transition: none !important;
    }

}