/* Juicerfo Responsive Header - Frontend */


/* Defensive reset: scoped to this plugin only and loaded after theme/plugin styles. */
.jrh-header.jrh-header--isolated {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    border: 0 !important;
    outline: 0;
    line-height: normal;
    letter-spacing: normal;
    text-indent: 0;
    text-transform: none;
    contain: style;
}

.jrh-header--isolated ul,
.jrh-header--isolated ol,
.jrh-header--isolated li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jrh-header--isolated a,
.jrh-header--isolated a:hover,
.jrh-header--isolated a:focus {
    text-decoration: none !important;
    box-shadow: none;
}

.jrh-header--isolated button,
.jrh-header--isolated input {
    appearance: none;
    -webkit-appearance: none;
}

.jrh-header--isolated img,
.jrh-header--isolated svg {
    border: 0;
    box-shadow: none;
}

.jrh-header,
.jrh-header *,
.jrh-header *::before,
.jrh-header *::after {
    box-sizing: border-box;
}

html.jrh-page-locked,
html.jrh-page-locked body {
    overflow: hidden;
}

.jrh-header {
    --jrh-primary: #064b35;
    --jrh-secondary: #226d35;
    --jrh-accent: #c9972c;
    --jrh-text: #18231d;
    --jrh-surface: #ffffff;
    --jrh-font: Inter, Arial, sans-serif;
    --jrh-menu-size: 13px;
    --jrh-menu-weight: 500;
    --jrh-topbar-size: 11px;
    --jrh-topbar-weight: 400;
    --jrh-button-size: 13px;
    --jrh-button-weight: 600;
    --jrh-mobile-menu-size: 15px;
    --jrh-logo-desktop: 210px;
    --jrh-logo-mobile: 155px;

    position: relative;
    z-index: 9990;
    width: 100%;
    color: var(--jrh-text);
    font-family: var(--jrh-font);
    isolation: isolate;
}

.jrh-header--sticky {
    position: sticky;
    top: 0;
}

.admin-bar .jrh-header--sticky {
    top: 32px;
}

.jrh-header a {
    color: inherit;
    text-decoration: none;
}

.jrh-header button {
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    font: inherit;
    background: none;
    cursor: pointer;
}

.jrh-header__container {
    width: min(100% - 48px, var(--jrh-container, 1400px));
    margin-inline: auto;
}

/* Language selector is displayed as a dropdown button inside the main header. */
.jrh-header__desktop-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: max-content;
}

.jrh-header__language-switcher {
    position: relative;
    flex: 0 0 auto;
}

.jrh-header__language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px !important;
    border: 1px solid color-mix(in srgb, var(--jrh-primary) 18%, transparent) !important;
    border-radius: 999px !important;
    color: var(--jrh-primary) !important;
    background: color-mix(in srgb, var(--jrh-primary) 5%, white) !important;
    box-shadow: 0 7px 18px rgba(6,75,53,.07);
    font-size: var(--jrh-topbar-size);
    font-weight: var(--jrh-topbar-weight);
    line-height: 1;
    white-space: nowrap;
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.jrh-header__language-button:hover,
.jrh-header__language-switcher.is-open .jrh-header__language-button {
    border-color: color-mix(in srgb, var(--jrh-primary) 38%, transparent) !important;
    background: color-mix(in srgb, var(--jrh-primary) 9%, white) !important;
    box-shadow: 0 10px 24px rgba(6,75,53,.12);
}

.jrh-header__language-button:hover {
    transform: translateY(-1px);
}

.jrh-header__language-flag {
    display: inline-flex;
    flex: 0 0 auto;
    width: 25px;
    height: 16px;
    border: 1px solid rgba(6,75,53,.14);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(6,75,53,.10);
    overflow: hidden;
}

.jrh-header__language-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

.jrh-header__language-current {
    display: block;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
}

.jrh-header__language-button[data-language="ar"] .jrh-header__language-current {
    direction: rtl;
    text-align: left;
    unicode-bidi: plaintext;
}

.jrh-header__language-globe,
.jrh-header__language-chevron,
.jrh-header__language-check {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jrh-header__language-globe {
    width: 17px;
    height: 17px;
}

.jrh-header__language-chevron {
    width: 14px;
    height: 14px;
    transition: transform .22s ease;
}

.jrh-header__language-switcher.is-open .jrh-header__language-chevron {
    transform: rotate(180deg);
}

.jrh-header__language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: grid;
    gap: 4px;
    width: 220px;
    padding: 9px;
    border: 1px solid rgba(6,75,53,.11);
    border-radius: 16px;
    background: rgba(255,255,255,.99);
    box-shadow: 0 22px 55px rgba(6,75,53,.17);
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px) scale(.98);
    transform-origin: top right;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

[dir="rtl"].jrh-header .jrh-header__language-dropdown {
    right: auto;
    left: 0;
    transform-origin: top left;
}

.jrh-header__language-switcher.is-open .jrh-header__language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.jrh-header__language-option {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 11px;
    color: var(--jrh-text) !important;
    font-size: var(--jrh-topbar-size);
    font-weight: var(--jrh-topbar-weight);
    text-align: left;
    direction: ltr;
    transition: color .2s ease, background .2s ease;
}

.jrh-header__language-option:hover {
    color: var(--jrh-primary) !important;
    background: color-mix(in srgb, var(--jrh-primary) 7%, white);
}

.jrh-header__language-option.is-active {
    color: var(--jrh-primary) !important;
    background: color-mix(in srgb, var(--jrh-primary) 10%, white);
    font-weight: 700;
}

.jrh-header__language-option-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jrh-header__language-option[data-language="ar"] .jrh-header__language-option-label {
    direction: rtl;
    text-align: left;
    unicode-bidi: plaintext;
}

.jrh-header__language-check-placeholder {
    display: block;
    width: 17px;
    height: 17px;
}

.jrh-header__language-check {
    width: 17px;
    height: 17px;
    color: var(--jrh-primary);
}

.jrh-header__main-shell {
    border-bottom: 1px solid color-mix(in srgb, var(--jrh-accent) 25%, transparent);
    background: color-mix(in srgb, var(--jrh-surface) 96%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow .3s ease, background .3s ease;
}

.jrh-header.is-scrolled .jrh-header__main-shell {
    box-shadow: 0 14px 35px rgba(6,75,53,.13);
}

.jrh-header__main {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    min-height: var(--jrh-desktop-height, 84px);
}

.jrh-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-width: 0;
}

.jrh-header__logo {
    display: block;
    width: min(var(--jrh-logo-desktop), 100%);
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
}

[dir="rtl"].jrh-header .jrh-header__logo {
    object-position: right center;
}

.jrh-header__brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid var(--jrh-accent);
    border-radius: 50%;
    color: var(--jrh-primary);
}

.jrh-header__brand-text {
    color: var(--jrh-primary);
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1;
}

.jrh-header__desktop-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    min-height: var(--jrh-desktop-height, 84px);
}

.jrh-header__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jrh-header__menu--desktop {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(14px, 1.3vw, 28px);
    min-height: var(--jrh-desktop-height, 84px);
}

.jrh-header__menu--desktop > .menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.jrh-header__menu--desktop > .menu-item > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--jrh-desktop-height, 84px);
    color: var(--jrh-text);
    font-size: var(--jrh-menu-size);
    font-weight: var(--jrh-menu-weight);
    white-space: nowrap;
    transition: color .22s ease;
}

.jrh-header__menu--desktop > .menu-item > a::after {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 2px;
    border-radius: 20px;
    background: var(--jrh-accent);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition: .22s ease;
}

.jrh-header__menu--desktop > .menu-item:hover > a,
.jrh-header__menu--desktop > .current-menu-item > a,
.jrh-header__menu--desktop > .current-menu-ancestor > a {
    color: var(--jrh-primary);
}

.jrh-header__menu--desktop > .menu-item:hover > a::after,
.jrh-header__menu--desktop > .current-menu-item > a::after,
.jrh-header__menu--desktop > .current-menu-ancestor > a::after {
    opacity: 1;
    transform: scaleX(1);
}

.jrh-header__menu--desktop .menu-item-has-children > a {
    gap: 6px;
}

.jrh-header__menu--desktop .menu-item-has-children > a::before {
    order: 2;
    width: 6px;
    height: 6px;
    margin-inline-start: 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
}

.jrh-header__menu--desktop .sub-menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    z-index: 10;
    width: 270px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(6,75,53,.1);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 22px 55px rgba(6,75,53,.16);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: .22s ease;
}

.jrh-header__menu--desktop .menu-item:hover > .sub-menu,
.jrh-header__menu--desktop .menu-item:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.jrh-header__menu--desktop .sub-menu .menu-item {
    position: relative;
}

.jrh-header__menu--desktop .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 13px;
    border-radius: 10px;
    color: var(--jrh-text);
    font-size: calc(var(--jrh-menu-size) - 1px);
    font-weight: var(--jrh-menu-weight);
    transition: .2s ease;
}

.jrh-header__menu--desktop .sub-menu a:hover {
    color: var(--jrh-primary);
    background: color-mix(in srgb, var(--jrh-primary) 7%, white);
}

.jrh-header__menu--desktop .sub-menu .sub-menu {
    top: -12px;
    left: calc(100% + 8px);
    transform: translate(8px, 0);
}

.jrh-header__menu--desktop .sub-menu .menu-item:hover > .sub-menu {
    transform: translate(0, 0);
}

.jrh-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid var(--jrh-secondary);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--jrh-primary), var(--jrh-secondary));
    box-shadow: 0 9px 20px color-mix(in srgb, var(--jrh-primary) 20%, transparent);
    font-size: var(--jrh-button-size);
    font-weight: var(--jrh-button-weight);
    white-space: nowrap;
    transition: transform .22s ease, box-shadow .22s ease;
}

.jrh-header__cta:hover {
    color: #fff;
    box-shadow: 0 13px 26px color-mix(in srgb, var(--jrh-primary) 28%, transparent);
    transform: translateY(-2px);
}

.jrh-header__arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
}

.jrh-header__cta:hover .jrh-header__arrow {
    transform: translateX(3px);
}

.jrh-header__mobile-actions {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.jrh-header__mobile-actions > * {
    flex: 0 0 auto;
}

.jrh-header__mobile-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding-inline: 16px;
    border-radius: 999px;
    color: #fff;
    background: var(--jrh-secondary);
    font-size: 12px;
    font-weight: var(--jrh-button-weight);
}

.jrh-header__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--jrh-primary) 7%, white);
}

.jrh-header__toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    border-radius: 10px;
    background: var(--jrh-primary);
}

.jrh-header__overlay {
    position: fixed;
    z-index: 9991;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(3,29,20,.55);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.jrh-header__drawer {
    position: fixed;
    z-index: 9992;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(88vw, 410px);
    height: 100dvh;
    padding: 24px;
    background: #fff;
    box-shadow: -25px 0 65px rgba(5,42,29,.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(105%);
    transition: transform .35s ease;
}

[dir="rtl"].jrh-header .jrh-header__drawer {
    right: auto;
    left: 0;
    transform: translateX(-105%);
}

.jrh-header.is-menu-open .jrh-header__overlay {
    opacity: 1;
    visibility: visible;
}

.jrh-header.is-menu-open .jrh-header__drawer,
[dir="rtl"].jrh-header.is-menu-open .jrh-header__drawer {
    transform: translateX(0);
}

.jrh-header__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(6,75,53,.12);
    color: var(--jrh-primary);
    font-size: 20px;
}

.jrh-header__close {
    position: relative;
    width: 42px;
    height: 42px;
}

.jrh-header__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 1.5px;
    background: var(--jrh-primary);
}

.jrh-header__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.jrh-header__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.jrh-header__mobile-nav {
    padding-top: 14px;
}

.jrh-header__menu--mobile > .menu-item {
    position: relative;
    border-bottom: 1px solid rgba(6,75,53,.11);
}

.jrh-header__menu--mobile > .menu-item > a {
    display: flex;
    align-items: center;
    min-height: 55px;
    padding-inline-end: 46px;
    color: var(--jrh-text);
    font-size: var(--jrh-mobile-menu-size);
    font-weight: var(--jrh-menu-weight);
}

.jrh-header__menu--mobile > .current-menu-item > a,
.jrh-header__menu--mobile > .current-menu-ancestor > a {
    color: var(--jrh-primary);
    font-weight: 700;
}

.jrh-header__submenu-toggle {
    position: absolute;
    top: 6px;
    right: 0;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
}

[dir="rtl"].jrh-header .jrh-header__submenu-toggle {
    right: auto;
    left: 0;
}

.jrh-header__submenu-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--jrh-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
}

.jrh-header__menu--mobile .is-submenu-open > .jrh-header__submenu-toggle svg {
    transform: rotate(180deg);
}

.jrh-header__menu--mobile .sub-menu {
    max-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    overflow: hidden;
    transition: max-height .32s ease, opacity .24s ease, padding .24s ease;
}

.jrh-header__menu--mobile .is-submenu-open > .sub-menu {
    max-height: 900px;
    padding-bottom: 10px;
    opacity: 1;
}

.jrh-header__menu--mobile .sub-menu > .menu-item {
    min-height: 0;
    overflow: hidden;
}

.jrh-header__menu--mobile .sub-menu a {
    display: block;
    margin: 2px 0;
    padding: 11px 14px;
    border-radius: 9px;
    color: #66716a;
    background: color-mix(in srgb, var(--jrh-primary) 6%, white);
    font-size: calc(var(--jrh-mobile-menu-size) - 2px);
    font-weight: var(--jrh-menu-weight);
}

.jrh-header__language-switcher--mobile {
    width: auto;
    margin: 0;
}

.jrh-header__language-switcher--mobile .jrh-header__language-button {
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 56px;
    min-height: 40px;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: calc(var(--jrh-topbar-size) - 1px);
    box-shadow: none;
}

.jrh-header__language-switcher--mobile .jrh-header__language-flag {
    width: 24px;
    height: 16px;
}

.jrh-header__language-switcher--mobile .jrh-header__language-current {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile selector is attached to the visible header bar, never the drawer. */
.jrh-header__language-switcher--mobile .jrh-header__language-dropdown {
    position: fixed;
    top: var(--jrh-language-mobile-top, 78px);
    right: auto !important;
    left: var(--jrh-language-mobile-left, 14px) !important;
    width: var(--jrh-language-mobile-width, 220px);
    max-width: calc(100vw - 20px);
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(6,75,53,.11);
    border-radius: 15px;
    background: rgba(255,255,255,.99);
    box-shadow: 0 20px 50px rgba(6,75,53,.18);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateY(8px) scale(.98);
    transform-origin: top center;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.jrh-header__language-switcher--mobile.is-open .jrh-header__language-dropdown {
    max-height: min(320px, calc(100dvh - var(--jrh-language-mobile-top, 78px) - 14px));
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    transform: translateY(0) scale(1);
}

.jrh-header__language-switcher--mobile .jrh-header__language-option {
    min-height: 42px;
    font-size: calc(var(--jrh-mobile-menu-size) - 2px);
}

.jrh-header__cta--mobile {
    width: 100%;
    margin-top: 22px;
}

/* Template 2: Modern Glass */
.jrh-header--glass {
    padding: 12px 0 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--jrh-primary) 8%, white), transparent);
}

.jrh-header--glass .jrh-header__language-button {
    border-color: rgba(255,255,255,.88) !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: 0 8px 22px rgba(6,75,53,.08);
}

.jrh-header--glass .jrh-header__language-switcher.is-open .jrh-header__language-button,
.jrh-header--glass .jrh-header__language-button:hover {
    background: rgba(255,255,255,.94) !important;
}

.jrh-header--glass .jrh-header__main-shell {
    width: min(100% - 32px, calc(var(--jrh-container, 1400px) + 40px));
    margin-inline: auto;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 18px 48px rgba(6,75,53,.11);
}

.jrh-header--glass .jrh-header__container.jrh-header__main {
    width: min(100% - 30px, var(--jrh-container, 1400px));
}

.jrh-header--glass.is-scrolled {
    padding-top: 6px;
}

.jrh-header--glass.is-scrolled .jrh-header__main-shell {
    background: rgba(255,255,255,.94);
}

.jrh-header--glass .jrh-header__cta {
    border-color: var(--jrh-accent);
    background: linear-gradient(135deg, var(--jrh-primary), color-mix(in srgb, var(--jrh-accent) 45%, var(--jrh-secondary)));
}

/* The desktop/mobile breakpoint is generated dynamically from the plugin settings. */

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

@media (max-width: 767px) {
    .jrh-header__container {
        width: calc(100% - 28px);
    }

    .jrh-header__main {
        min-height: var(--jrh-mobile-height, 72px);
    }

    .jrh-header__main-shell {
        min-height: var(--jrh-mobile-height, 72px);
    }

    .jrh-header__logo {
        width: min(var(--jrh-logo-mobile), 100%);
        max-height: 52px;
    }

    .jrh-header__brand-text { font-size: 29px; }
    .jrh-header__mobile-quote { display: none; font-size: 11px; }

    .jrh-header--glass {
        padding-top: 6px;
    }

    .jrh-header--glass .jrh-header__main-shell {
        width: calc(100% - 16px);
        border-radius: 17px;
    }
}

@media (max-width: 480px) {
    .jrh-header__main {
        grid-template-columns: minmax(125px, 1fr) auto;
        gap: 10px;
    }

    .jrh-header__mobile-quote { display: none; }
    .jrh-header__mobile-actions { gap: 6px; }
    .jrh-header__language-switcher--mobile .jrh-header__language-button { min-width: 42px; width: 42px; padding: 0 7px !important; }
    .jrh-header__language-switcher--mobile .jrh-header__language-current,
    .jrh-header__language-switcher--mobile .jrh-header__language-chevron { display: none; }
    .jrh-header__drawer { width: min(92vw, 390px); padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .jrh-header *,
    .jrh-header *::before,
    .jrh-header *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ======================================================
   Search popover - v1.3.1
======================================================= */
.jrh-header__search {
    position: relative;
    flex: 0 0 auto;
}

.jrh-header__search-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--jrh-primary) 18%, transparent) !important;
    border-radius: 50% !important;
    color: var(--jrh-primary) !important;
    background: color-mix(in srgb, var(--jrh-primary) 5%, white) !important;
    box-shadow: 0 7px 18px rgba(6,75,53,.07);
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.jrh-header__search-button:hover,
.jrh-header__search.is-open .jrh-header__search-button {
    border-color: color-mix(in srgb, var(--jrh-primary) 38%, transparent) !important;
    background: color-mix(in srgb, var(--jrh-primary) 9%, white) !important;
    box-shadow: 0 10px 24px rgba(6,75,53,.12);
}

.jrh-header__search-button:hover {
    transform: translateY(-1px);
}

.jrh-header__search-icon {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jrh-header__search-popover {
    position: absolute;
    top: calc(100% + 11px);
    right: 0;
    z-index: 40;
    width: min(430px, calc(100vw - 30px));
    padding: 10px;
    border: 1px solid rgba(6,75,53,.11);
    border-radius: 16px;
    background: rgba(255,255,255,.99);
    box-shadow: 0 22px 55px rgba(6,75,53,.17);
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px) scale(.98);
    transform-origin: top right;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

[dir="rtl"].jrh-header .jrh-header__search-popover {
    right: auto;
    left: 0;
    transform-origin: top left;
}

.jrh-header__search.is-open .jrh-header__search-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.jrh-header__search-form {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    padding: 5px 6px 5px 14px;
    border: 1px solid color-mix(in srgb, var(--jrh-primary) 15%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--jrh-primary) 3%, white);
}

[dir="rtl"].jrh-header .jrh-header__search-form {
    padding: 5px 14px 5px 6px;
}

.jrh-header__search-field-icon {
    display: inline-grid;
    place-items: center;
    color: var(--jrh-primary);
}

.jrh-header__search-field-icon .jrh-header__search-icon {
    width: 18px;
    height: 18px;
}

.jrh-header__search-input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    color: var(--jrh-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--jrh-font);
    font-size: 14px;
}

.jrh-header__search-input::placeholder {
    color: #7b877f;
    opacity: 1;
}

.jrh-header__search-submit {
    min-height: 38px;
    padding: 0 16px !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: var(--jrh-primary) !important;
    font-family: var(--jrh-font);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.jrh-header__search--mobile .jrh-header__search-button {
    width: 40px;
    height: 40px;
}

.jrh-header--glass .jrh-header__search-button {
    border-color: rgba(255,255,255,.88) !important;
    background: rgba(255,255,255,.72) !important;
}

.jrh-header--glass .jrh-header__search.is-open .jrh-header__search-button,
.jrh-header--glass .jrh-header__search-button:hover {
    background: rgba(255,255,255,.94) !important;
}

/*
 * Mobile search is positioned against the viewport by JavaScript.
 * This prevents the popover from escaping the header/container in RTL,
 * narrow screens, Elementor containers and custom mobile breakpoints.
 */
.jrh-header__search--mobile .jrh-header__search-popover {
    position: fixed;
    top: var(--jrh-search-mobile-top, 84px);
    right: auto !important;
    left: var(--jrh-search-mobile-left, 14px) !important;
    width: var(--jrh-search-mobile-width, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 20px);
    max-height: var(--jrh-search-mobile-max-height, calc(100dvh - 100px));
    margin: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform-origin: top center !important;
}

.jrh-header__search--mobile .jrh-header__search-form {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.jrh-header__search--mobile .jrh-header__search-input,
.jrh-header__search--mobile .jrh-header__search-submit {
    max-width: 100%;
}

@media (max-width: 480px) {
    .jrh-header__search--mobile .jrh-header__search-popover {
        padding: 8px;
        border-radius: 14px;
    }

    .jrh-header__search-form {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 4px 5px 4px 10px;
    }

    [dir="rtl"].jrh-header .jrh-header__search-form {
        padding: 4px 10px 4px 5px;
    }

    .jrh-header__search-submit {
        min-height: 36px;
        padding-inline: 11px !important;
    }
}

@media (max-width: 350px) {
    .jrh-header__search-form {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        padding-inline-start: 10px;
    }

    .jrh-header__search-field-icon {
        display: none;
    }

    .jrh-header__search-input {
        font-size: 13px;
    }

    .jrh-header__search-submit {
        padding-inline: 9px !important;
        font-size: 11px;
    }
}

/* ======================================================
   Universal submenu + isolation refinements - v1.6.0
======================================================= */
.jrh-header--isolated .jrh-header__menu,
.jrh-header--isolated .jrh-header__menu .menu-item,
.jrh-header--isolated .jrh-header__menu .sub-menu {
    margin-block: 0;
    list-style: none;
}

.jrh-header--isolated .jrh-header__menu--desktop .sub-menu {
    max-width: calc(100vw - 24px);
}

.jrh-header--isolated[dir="ltr"] .jrh-header__menu--desktop > .menu-item:first-child > .sub-menu {
    left: 0;
    right: auto;
    transform: translate(0, 12px);
}

.jrh-header--isolated[dir="ltr"] .jrh-header__menu--desktop > .menu-item:first-child:hover > .sub-menu,
.jrh-header--isolated[dir="ltr"] .jrh-header__menu--desktop > .menu-item:first-child:focus-within > .sub-menu {
    transform: translate(0, 0);
}

.jrh-header--isolated[dir="ltr"] .jrh-header__menu--desktop > .menu-item:last-child > .sub-menu {
    right: 0;
    left: auto;
    transform: translate(0, 12px);
}

.jrh-header--isolated[dir="ltr"] .jrh-header__menu--desktop > .menu-item:last-child:hover > .sub-menu,
.jrh-header--isolated[dir="ltr"] .jrh-header__menu--desktop > .menu-item:last-child:focus-within > .sub-menu {
    transform: translate(0, 0);
}

.jrh-header--isolated[dir="rtl"] .jrh-header__menu--desktop > .menu-item:first-child > .sub-menu {
    right: 0;
    left: auto;
    transform: translate(0, 12px);
}

.jrh-header--isolated[dir="rtl"] .jrh-header__menu--desktop > .menu-item:first-child:hover > .sub-menu,
.jrh-header--isolated[dir="rtl"] .jrh-header__menu--desktop > .menu-item:first-child:focus-within > .sub-menu {
    transform: translate(0, 0);
}

.jrh-header--isolated[dir="rtl"] .jrh-header__menu--desktop > .menu-item:last-child > .sub-menu {
    left: 0;
    right: auto;
    transform: translate(0, 12px);
}

.jrh-header--isolated[dir="rtl"] .jrh-header__menu--desktop > .menu-item:last-child:hover > .sub-menu,
.jrh-header--isolated[dir="rtl"] .jrh-header__menu--desktop > .menu-item:last-child:focus-within > .sub-menu {
    transform: translate(0, 0);
}

.jrh-header--isolated .jrh-header__menu--desktop .sub-menu .current-menu-item > a {
    color: var(--jrh-primary);
    background: color-mix(in srgb, var(--jrh-primary) 9%, white);
    font-weight: 700;
}

.jrh-header--isolated .jrh-header__menu--mobile .sub-menu .current-menu-item > a {
    color: var(--jrh-primary);
    background: color-mix(in srgb, var(--jrh-primary) 11%, white);
    font-weight: 700;
}

.jrh-header--isolated .jrh-header__drawer,
.jrh-header--isolated .jrh-header__overlay,
.jrh-header--isolated .jrh-header__search--mobile .jrh-header__search-popover,
.jrh-header--isolated .jrh-header__language-switcher--mobile .jrh-header__language-dropdown {
    font-family: var(--jrh-font) !important;
}

/* ======================================================
   Production responsive & accessibility refinements - v1.7.0
======================================================= */
.jrh-header.jrh-header--isolated {
    z-index: var(--jrh-z, 9990);
    max-width: 100vw !important;
    transition: transform .26s ease, opacity .2s ease;
    will-change: transform;
}

.jrh-header--sticky-smart.is-header-hidden:not(.is-menu-open) {
    transform: translateY(calc(-100% - 8px));
}

.jrh-header__container {
    width: min(calc(100% - (var(--jrh-padding-desktop, 24px) * 2)), var(--jrh-container, 1400px));
    max-width: 100%;
}

.jrh-header__main-shell,
.jrh-header__main,
.jrh-header__brand,
.jrh-header__desktop-nav,
.jrh-header__desktop-actions,
.jrh-header__mobile-actions {
    min-width: 0;
    max-width: 100%;
}

.jrh-header__main {
    grid-template-columns: minmax(150px, min(18vw, 230px)) minmax(0, 1fr) auto;
    gap: clamp(12px, 1.6vw, 30px);
}

.jrh-header__menu--desktop {
    gap: clamp(10px, 1.2vw, var(--jrh-menu-gap, 22px));
    max-width: 100%;
}

.jrh-header__menu--desktop > .menu-item > a,
.jrh-header__cta,
.jrh-header__language-button,
.jrh-header__search-button,
.jrh-header__toggle,
.jrh-header__submenu-toggle,
.jrh-header__close {
    -webkit-tap-highlight-color: transparent;
}

.jrh-header a:focus-visible,
.jrh-header button:focus-visible,
.jrh-header input:focus-visible,
.jrh-header select:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--jrh-accent) 70%, white) !important;
    outline-offset: 3px;
}

.jrh-header__logo {
    height: auto;
    max-width: 100%;
}

.jrh-header__logo--mobile,
.jrh-header__logo--sticky {
    display: none;
}

.jrh-header--has-sticky-logo.is-scrolled .jrh-header__logo--default,
.jrh-header--has-sticky-logo.is-scrolled .jrh-header__logo--mobile {
    display: none !important;
}

.jrh-header--has-sticky-logo.is-scrolled .jrh-header__logo--sticky {
    display: block;
}

.jrh-header__announcement {
    min-height: var(--jrh-announcement-height, 32px);
    color: #fff;
    background: linear-gradient(90deg, var(--jrh-primary), var(--jrh-secondary));
    font-size: max(11px, calc(var(--jrh-topbar-size) - 1px));
    line-height: 1.35;
}

.jrh-header__announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--jrh-announcement-height, 32px);
    text-align: center;
}

.jrh-header__announcement a,
.jrh-header__announcement span {
    color: inherit !important;
}

.jrh-header__main-shell {
    -webkit-backdrop-filter: blur(var(--jrh-blur, 18px));
    backdrop-filter: blur(var(--jrh-blur, 18px));
}

@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
    .jrh-header__main-shell,
    .jrh-header--glass .jrh-header__main-shell {
        background: var(--jrh-surface, #fff);
    }
}

.jrh-header--transparent:not(.is-scrolled) .jrh-header__main-shell {
    border-bottom-color: transparent;
    background: transparent;
    box-shadow: none;
}

.jrh-header--transparent:not(.is-scrolled).jrh-header--glass .jrh-header__main-shell {
    background: color-mix(in srgb, var(--jrh-surface) 56%, transparent);
}

.jrh-header--sticky-after:not(.is-sticky-active) .jrh-header__main-shell {
    box-shadow: none;
}

.jrh-header__cta {
    border-radius: var(--jrh-cta-radius, 999px);
    color: var(--jrh-cta-text, #fff) !important;
}

.jrh-header__cta:hover,
.jrh-header__cta:focus-visible {
    color: var(--jrh-cta-text, #fff) !important;
}

/* Active navigation styles are intentionally subtle for a B2B header. */
.jrh-header--active-text .jrh-header__menu--desktop > .menu-item > a::after,
.jrh-header--active-background .jrh-header__menu--desktop > .menu-item > a::after,
.jrh-header--active-none .jrh-header__menu--desktop > .menu-item > a::after {
    display: none;
}

.jrh-header--active-background .jrh-header__menu--desktop > .current-menu-item > a,
.jrh-header--active-background .jrh-header__menu--desktop > .current-menu-ancestor > a {
    padding-inline: 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--jrh-primary) 8%, white);
}

.jrh-header--active-none .jrh-header__menu--desktop > .current-menu-item > a,
.jrh-header--active-none .jrh-header__menu--desktop > .current-menu-ancestor > a {
    color: var(--jrh-text);
}

.jrh-header--active-dot .jrh-header__menu--desktop > .menu-item > a::after {
    right: auto;
    bottom: 14px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
}

.jrh-header--active-dot .jrh-header__menu--desktop > .menu-item:hover > a::after,
.jrh-header--active-dot .jrh-header__menu--desktop > .current-menu-item > a::after,
.jrh-header--active-dot .jrh-header__menu--desktop > .current-menu-ancestor > a::after {
    transform: translateX(-50%) scale(1);
}

.jrh-header__drawer {
    z-index: calc(var(--jrh-z, 9990) + 2);
    width: min(92vw, var(--jrh-drawer-width, 410px));
    max-width: 100vw;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.jrh-header__overlay {
    z-index: calc(var(--jrh-z, 9990) + 1);
}

.jrh-header__search--mobile .jrh-header__search-popover,
.jrh-header__language-switcher--mobile .jrh-header__language-dropdown {
    z-index: calc(var(--jrh-z, 9990) + 4);
}

.jrh-header__drawer-tools {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 4px;
}

.jrh-header__search--drawer,
.jrh-header__language-switcher--drawer {
    position: relative;
}

.jrh-header__search--drawer .jrh-header__search-popover {
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: min(340px, calc(100vw - 48px));
    transform-origin: top left;
}

[dir="rtl"].jrh-header .jrh-header__search--drawer .jrh-header__search-popover {
    transform-origin: top right;
}

.jrh-header__language-switcher--drawer .jrh-header__language-dropdown {
    inset-inline-start: 0;
    inset-inline-end: auto;
}

.jrh-header__drawer .jrh-header__search-button,
.jrh-header__drawer .jrh-header__language-button {
    min-width: 44px;
    min-height: 44px;
}

.jrh-header__drawer .jrh-header__language-current {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jrh-header__menu--mobile > .menu-item > a,
.jrh-header__menu--mobile .sub-menu a {
    overflow-wrap: anywhere;
}

.jrh-header__menu--mobile .sub-menu {
    max-width: 100%;
}

/* Fix the glass template after the plugin-level defensive reset. */
.jrh-header.jrh-header--isolated.jrh-header--glass {
    padding-top: 12px !important;
}

.jrh-header.jrh-header--isolated.jrh-header--glass.is-scrolled {
    padding-top: 6px !important;
}

/* Nested desktop dropdowns follow the reading direction. */
[dir="rtl"].jrh-header .jrh-header__menu--desktop .sub-menu .sub-menu {
    right: calc(100% + 8px);
    left: auto;
}

/* Keep desktop actions compact on medium laptop widths. */
@media (max-width: 1366px) {
    .jrh-header__desktop-actions { gap: 8px; }
    .jrh-header__cta--desktop { padding-inline: 17px; }
    .jrh-header__language-button { padding-inline: 11px !important; }
}

@media (max-width: 1024px) {
    .jrh-header__container {
        width: min(calc(100% - (var(--jrh-padding-tablet, 20px) * 2)), var(--jrh-container, 1400px));
    }

    .jrh-header__logo,
    .jrh-header__logo--sticky {
        width: min(var(--jrh-logo-tablet, 180px), 100%);
        max-height: 58px;
    }
}

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

@media (max-width: 767px) {
    .jrh-header__container {
        width: min(calc(100% - (var(--jrh-padding-mobile, 14px) * 2)), var(--jrh-container, 1400px));
    }

    .jrh-header__logo,
    .jrh-header__logo--sticky {
        width: min(var(--jrh-logo-mobile, 155px), 100%);
        max-height: 52px;
    }

    .jrh-header.jrh-header--isolated.jrh-header--glass {
        padding-top: 6px !important;
    }

    .jrh-header__announcement-inner {
        justify-content: flex-start;
        overflow: hidden;
        text-align: start;
        white-space: nowrap;
    }

    .jrh-header__announcement-inner > * {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .jrh-header--announcement-desktop-only .jrh-header__announcement {
        display: none;
    }

    .jrh-header__drawer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .jrh-header__main {
        grid-template-columns: minmax(105px, 1fr) auto;
        gap: 8px;
    }

    .jrh-header__mobile-actions { gap: 5px; }
    .jrh-header__toggle,
    .jrh-header__search--mobile .jrh-header__search-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .jrh-header__drawer {
        width: min(94vw, var(--jrh-drawer-width, 410px));
        padding-inline: 16px;
    }
}

/* On the narrowest phones keep only brand + menu toggle in the bar.
   Search and language remain available inside the drawer. */
@media (max-width: 360px) {
    .jrh-header__mobile-actions > .jrh-header__language-switcher--mobile,
    .jrh-header__mobile-actions > .jrh-header__search--mobile,
    .jrh-header__mobile-actions > .jrh-header__mobile-quote {
        display: none !important;
    }

    .jrh-header__main {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .jrh-header__brand {
        max-width: calc(100vw - 88px);
    }

    .jrh-header__logo,
    .jrh-header__logo--sticky {
        max-width: min(var(--jrh-logo-mobile, 155px), calc(100vw - 92px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .jrh-header.jrh-header--isolated {
        transition: none !important;
    }
}

/* Auto-upgrade long desktop dropdowns to a compact mega-menu grid. */
@supports selector(.sub-menu:has(> .menu-item:nth-child(7))) {
    .jrh-header__menu--desktop .sub-menu:has(> .menu-item:nth-child(7)) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
        width: min(620px, calc(100vw - 40px));
    }

    .jrh-header__menu--desktop .sub-menu:has(> .menu-item:nth-child(11)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: min(840px, calc(100vw - 40px));
    }
}

.jrh-header__language-button[data-language="fa"] .jrh-header__language-current,
.jrh-header__language-option[data-language="fa"] .jrh-header__language-option-label {
    direction: rtl;
    unicode-bidi: plaintext;
}

@media (min-width: 431px) and (max-width: 767px) {
    .jrh-header__mobile-quote {
        display: inline-flex;
        font-size: 11px;
    }
}


/* ======================================================
   Mobile / Tablet interaction & sticky reliability - v1.7.2
   Scoped to Juicerfo header so theme/Elementor button rules cannot
   leave an invisible layer above the page or override touch controls.
======================================================= */

/* Do not create a transformed containing block on the header root.
   Mobile Safari/Chrome can otherwise treat fixed drawer/popovers as
   fixed to the header instead of to the viewport. */
.jrh-header.jrh-header--isolated {
    will-change: auto;
}

/* Make sticky resilient against generic theme rules such as
   header { position:relative/static !important; }. */
.jrh-header.jrh-header--sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0;
}

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

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

/* Hidden UI must never capture taps/clicks. */
.jrh-header__overlay {
    pointer-events: none;
}

.jrh-header__drawer {
    visibility: hidden;
    pointer-events: none;
}

.jrh-header.is-menu-open .jrh-header__overlay,
.jrh-header.is-menu-open .jrh-header__drawer {
    pointer-events: auto;
}

.jrh-header.is-menu-open .jrh-header__drawer {
    visibility: visible;
}

.jrh-header__search-popover,
.jrh-header__language-dropdown {
    pointer-events: none;
}

.jrh-header__search.is-open .jrh-header__search-popover,
.jrh-header__language-switcher.is-open .jrh-header__language-dropdown {
    pointer-events: auto;
}

/* Reliable touch targets and no theme-injected red/pink backgrounds. */
.jrh-header.jrh-header--isolated .jrh-header__toggle,
.jrh-header.jrh-header--isolated .jrh-header__close,
.jrh-header.jrh-header--isolated .jrh-header__submenu-toggle,
.jrh-header.jrh-header--isolated .jrh-header__search-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.jrh-header.jrh-header--isolated .jrh-header__close,
.jrh-header.jrh-header--isolated .jrh-header__submenu-toggle {
    border-color: transparent !important;
    color: var(--jrh-primary) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.jrh-header.jrh-header--isolated .jrh-header__close:hover,
.jrh-header.jrh-header--isolated .jrh-header__close:focus-visible,
.jrh-header.jrh-header--isolated .jrh-header__submenu-toggle:hover,
.jrh-header.jrh-header--isolated .jrh-header__submenu-toggle:focus-visible {
    color: var(--jrh-primary) !important;
    background: color-mix(in srgb, var(--jrh-primary) 8%, white) !important;
}

/* Search focus: remove browser/theme yellow outlines while retaining a
   clearly visible Juicerfo-green keyboard focus state on the whole field. */
.jrh-header.jrh-header--isolated .jrh-header__search-input,
.jrh-header.jrh-header--isolated .jrh-header__search-input:focus,
.jrh-header.jrh-header--isolated .jrh-header__search-input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.jrh-header.jrh-header--isolated .jrh-header__search-form:focus-within {
    border-color: color-mix(in srgb, var(--jrh-primary) 45%, transparent) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--jrh-primary) 10%, transparent) !important;
}

html.jrh-page-locked,
html.jrh-page-locked body,
body.jrh-page-locked-body {
    overscroll-behavior: none;
}
