/* Interaction-only overrides for shared navigation and footer links. */
.site-header {
    z-index: 9999 !important;
    overflow: visible !important;
}

.site-header .header-main,
.site-header .desktop-nav,
.site-header .nav-list,
.site-header .nav-item,
.site-header .nav-link,
.site-header .nav-arrow {
    pointer-events: auto;
}

.site-header .nav-arrow {
    position: relative;
    z-index: 2;
    color: #7E9D35 !important;
    font-size: 0;
}

.site-header .nav-arrow::before {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform 180ms ease;
}

.site-header .has-dropdown.is-open > .nav-arrow::before {
    transform: translateY(2px) rotate(225deg);
}

.site-header .has-dropdown.is-hover-open > .simple-dropdown,
.site-header .has-dropdown.is-hover-open > .solenis-dropdown,
.site-header .has-dropdown.is-hover-open > .mega-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.site-header .simple-dropdown,
.site-header .solenis-dropdown,
.site-header .mega-menu,
.site-header .megamenu {
    z-index: 10000 !important;
    pointer-events: auto !important;
}

@media (min-width: 992px) {
    .site-header .desktop-nav {
        margin-left: -18px;
        transform: none !important;
    }

    .site-header .mega-menu.solutions-mega,
    .site-header .mega-menu.standard-mega,
    .site-header .solenis-dropdown {
        position: fixed !important;
        top: 82px !important;
        left: 50% !important;
        width: min(1180px, calc(100vw - 32px)) !important;
        height: min(520px, calc(100vh - 82px)) !important;
        max-height: calc(100vh - 82px);
        transform: translateX(-50%) !important;
    }

    .site-header .solutions-mega-inner,
    .site-header .standard-mega-inner {
        height: 100% !important;
        min-height: 0;
    }

    .site-header .solutions-panel-one,
    .site-header .solutions-sub-list,
    .site-header .solutions-product-list,
    .site-header .mega-promo {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .site-header .solutions-mega-inner,
    .site-header .standard-mega-inner {
        grid-template-columns: 22% 27% 27% 24% !important;
    }

    .site-header .solutions-main-link,
    .site-header .mega-sub-item,
    .site-header .mega-product-item {
        padding-right: 13px;
        padding-left: 13px;
        font-size: 12px;
    }
}

.site-header .mega-menu *,
.site-header .megamenu *,
.site-header .solenis-dropdown * {
    pointer-events: auto;
}

.site-header .has-dropdown::after {
    position: absolute;
    top: calc(100% - 8px);
    right: 0;
    left: 0;
    height: 16px;
    content: "";
}

footer.site-footer,
footer.site-footer .footer-grid,
footer.site-footer .footer-column {
    position: relative;
}

footer.site-footer .footer-grid,
footer.site-footer .footer-bottom {
    z-index: 3;
}

footer.site-footer a,
footer.site-footer .footer-column a,
footer.site-footer .footer-bottom a {
    position: relative;
    z-index: 4;
    cursor: pointer;
    pointer-events: auto !important;
}

body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 991px) {
    .desktop-nav,
    .desktop-menu {
        display: none !important;
    }

    .site-header .has-dropdown.is-hover-open > .simple-dropdown,
    .site-header .has-dropdown.is-hover-open > .solenis-dropdown,
    .site-header .has-dropdown.is-hover-open > .mega-menu {
        display: none !important;
    }

    .site-header .header-main {
        min-height: 70px;
        justify-content: space-between;
    }

    .site-header .header-cta {
        display: none !important;
    }

    .site-header .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        flex: 0 0 44px;
        cursor: pointer;
        pointer-events: auto;
    }

.site-header .mobile-menu-toggle span {
        background: #7E9D35 !important;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .site-header .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .site-header .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-header .mobile-drawer {
        position: fixed !important;
        top: 70px !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 10000 !important;
        display: block !important;
        width: 100%;
        max-height: none !important;
        padding: 18px 22px 40px;
        overflow-x: hidden;
        overflow-y: auto;
        color: #ffffff;
        background: #062e22;
        border: 0;
        border-radius: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%) !important;
        transition: transform 220ms ease, opacity 180ms ease, visibility 180ms ease;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .mobile-drawer.is-open,
    .site-header .mobile-drawer.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0) !important;
    }

    .mobile-nav {
        display: flex !important;
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-nav details,
    .mobile-nav a,
    .mobile-nav summary,
    .mobile-nav .mobile-submenu {
        max-width: 100%;
    }

    .mobile-nav a,
    .mobile-nav summary {
        cursor: pointer;
        pointer-events: auto;
    }

    .mobile-nav summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-nav .mobile-arrow {
        display: inline-block;
        width: 8px;
        height: 8px;
        flex: 0 0 8px;
        color: transparent !important;
        border-right: 2px solid #7E9D35;
        border-bottom: 2px solid #7E9D35;
        font-size: 0;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 180ms ease;
    }

    .mobile-nav details[open] > summary .mobile-arrow {
        transform: translateY(2px) rotate(225deg);
    }
}

/* Premium menu content refinements. Layout, width and interaction model stay unchanged. */
.site-header .mega-link-label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.site-header .mega-link-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    color: #7E9D35 !important;
}

.site-header .mega-link-icon .line-svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header .mega-link-text {
    min-width: 0;
}

.site-header .mega-product-item {
    gap: 10px;
}

.site-header .mega-product-item::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: 1px solid rgba(157, 180, 74, 0.92);
    border-radius: 50%;
    background: rgba(157, 180, 74, 0.14);
    content: "";
}

.site-header .mega-cta-panel,
.site-header .mega-promo.solutions-promo-card {
    justify-content: space-between !important;
    gap: 14px;
    padding: 24px !important;
    color: #ffffff !important;
    border: 1px solid rgba(247, 245, 239, 0.28) !important;
    background:
        radial-gradient(circle at 76% 13%, rgba(247, 231, 178, 0.22), transparent 32%),
        linear-gradient(145deg, #7E9D34 0%, #6E8A2E 52%, #345826 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.site-header .mega-cta-icon {
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    color: #F7E7B2 !important;
}

.site-header .mega-cta-icon .line-svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.45;
}

.site-header .mega-cta-eyebrow {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.site-header .mega-cta-panel .mega-cta-title {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1.16 !important;
}

.site-header .mega-cta-panel p {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13px !important;
    line-height: 1.56 !important;
}

.site-header .mega-cta-highlights {
    display: grid;
    width: 100%;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header .mega-cta-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
}

.site-header .mega-cta-highlights span {
    display: inline-grid;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    place-items: center;
    color: #365E2D !important;
    border-radius: 50%;
    background: #F7E7B2;
    font-size: 11px;
}

.site-header .mega-cta-actions {
    display: grid;
    width: 100%;
    gap: 9px;
}

.site-header .mega-cta-button,
.site-header .solutions-promo-card .mega-cta-button {
    display: inline-flex !important;
    min-height: 42px !important;
    align-items: center;
    justify-content: center;
    padding: 0 14px !important;
    color: #ffffff !important;
    border: 1px solid rgba(247, 231, 178, 0.62) !important;
    border-radius: 999px !important;
    background: transparent !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header .mega-cta-button.is-primary {
    color: #365E2D !important;
    background: #F7E7B2 !important;
}

.site-header .mega-cta-button:hover {
    color: #365E2D !important;
    background: #ffffff !important;
    transform: translateY(-1px);
}

/* Mobile drawer overlap guard: keeps the menu below the header and text clear. */
@media (max-width: 991px) {
    :root {
        --everklin-mobile-header-height: 82px;
    }

    .site-header {
        z-index: 100000 !important;
        overflow: visible !important;
    }

    .site-header .header-main {
        min-height: var(--everklin-mobile-header-height) !important;
    }

    .site-header .brand,
    .site-header .header-actions,
    .site-header .mobile-menu-toggle {
        position: relative;
        z-index: 100002 !important;
    }

    .site-header .mobile-drawer,
    .mobile-drawer {
        position: fixed !important;
        top: calc(var(--everklin-mobile-header-height) + env(safe-area-inset-top, 0px)) !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        z-index: 100001 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - var(--everklin-mobile-header-height) - env(safe-area-inset-top, 0px)) !important;
        height: calc(100dvh - var(--everklin-mobile-header-height) - env(safe-area-inset-top, 0px)) !important;
        min-height: calc(100vh - var(--everklin-mobile-header-height) - env(safe-area-inset-top, 0px)) !important;
        min-height: calc(100dvh - var(--everklin-mobile-header-height) - env(safe-area-inset-top, 0px)) !important;
        max-height: calc(100dvh - var(--everklin-mobile-header-height) - env(safe-area-inset-top, 0px)) !important;
        padding: 16px 18px max(34px, env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .mobile-nav,
    .mobile-nav details,
    .mobile-nav summary,
    .mobile-nav a,
    .mobile-nav .mobile-submenu {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .mobile-nav summary,
    .mobile-nav a {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 12px !important;
        align-items: center !important;
        min-height: 48px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .mobile-nav summary > span:first-child,
    .mobile-nav a > span:first-child {
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
    }

    .mobile-nav .mobile-arrow {
        justify-self: end !important;
        margin-left: 8px !important;
    }

    .mobile-nav details[open] > .mobile-submenu {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 10px !important;
        overflow: visible !important;
    }

    .mobile-level-3 summary,
    .mobile-level-3.mobile-link,
    .mobile-level-3 a,
    .mobile-level-4 summary,
    .mobile-level-4.mobile-link,
    .mobile-level-4 a {
        font-size: 13px !important;
        line-height: 1.28 !important;
    }
}

/* Final shared footer: original transparent logo, no card, readable olive layout. */
footer.site-footer {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 80px 60px 35px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #A0BB58 0%, #8FAE46 45%, #769337 100%) !important;
}

footer.site-footer::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.08 !important;
    background-image:
        radial-gradient(ellipse at 18% 24%, rgba(255, 255, 255, 0.55) 0 6%, transparent 7%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.38) 0 5%, transparent 6%),
        linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 55%);
    background-size: 220px 155px, 260px 190px, 100% 100%;
    pointer-events: none;
}

footer.site-footer .footer-leaf-art {
    opacity: 0.06 !important;
}

footer.site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 0.96fr) minmax(220px, 1.28fr) !important;
    gap: 44px !important;
    align-items: start !important;
}

footer.site-footer .footer-column {
    min-width: 0;
}

footer.site-footer .footer-column .footer-column-title {
    margin: 0 0 18px !important;
    color: #F7E7B2 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}

footer.site-footer .footer-column a,
footer.site-footer .footer-column p,
footer.site-footer .footer-column li,
footer.site-footer .footer-column address {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px !important;
    font-style: normal !important;
    line-height: 1.72 !important;
}

footer.site-footer .footer-column a {
    display: block;
    width: fit-content;
    margin: 0 0 4px !important;
    transition: color 180ms ease, transform 180ms ease;
}

footer.site-footer .footer-column a:hover,
footer.site-footer .footer-bottom a:hover {
    color: #F7E7B2 !important;
    transform: translateX(2px);
}

footer.site-footer .footer-contact-panel {
    padding-left: 34px !important;
    border-left: 1px solid rgba(247, 231, 178, 0.26) !important;
}

footer.site-footer .footer-brand {
    display: block !important;
    width: fit-content !important;
    max-width: 220px !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

footer.site-footer .footer-brand:hover {
    transform: none !important;
}

footer.site-footer .footer-logo {
    display: block !important;
    width: min(220px, 100%) !important;
    max-width: 220px !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    object-fit: contain !important;
}

footer.site-footer .footer-contact-heading {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

footer.site-footer .footer-contact-item {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 12px !important;
    margin-top: 18px !important;
}

footer.site-footer .footer-contact-icon {
    display: grid !important;
    width: 28px !important;
    height: 28px !important;
    place-items: center !important;
    color: #6E8A2E !important;
    border-radius: 50% !important;
    background: #F7E7B2 !important;
    font-size: 13px !important;
}

footer.site-footer .footer-contact-item strong {
    display: block !important;
    margin-bottom: 3px !important;
    color: #F7E7B2 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.55px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
}

footer.site-footer .footer-contact-item a,
footer.site-footer .footer-contact-item address {
    width: auto !important;
    margin: 0 !important;
    line-height: 1.58 !important;
}

footer.site-footer .footer-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin-top: 56px !important;
    padding-top: 25px !important;
    border-top: 1px solid rgba(247, 231, 178, 0.24) !important;
}

footer.site-footer .footer-bottom,
footer.site-footer .footer-bottom p,
footer.site-footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 14px !important;
}

footer.site-footer .footer-bottom p {
    margin: 0 !important;
}

footer.site-footer .footer-bottom > div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
}

@media (max-width: 1100px) {
    footer.site-footer .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    footer.site-footer .footer-contact-panel {
        grid-column: span 2;
        padding-left: 0 !important;
        border-left: 0 !important;
    }
}

@media (max-width: 900px) {
    footer.site-footer {
        padding: 60px 28px 30px !important;
    }

    footer.site-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }

    footer.site-footer .footer-contact-panel {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    footer.site-footer .footer-grid {
        grid-template-columns: 1fr !important;
    }

    footer.site-footer .footer-contact-panel {
        grid-column: auto;
    }

    footer.site-footer .footer-bottom {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}
