/* ==========================================
   NU TRUST - PREMIUM STICKY HEADER
========================================== */

:root {
    --nut-red: #ed1732;
    --nut-red-dark: #cc0927;
    --nut-text: #343943;
    --nut-muted: #69707a;
    --nut-white: #ffffff;
    --nut-container-width: 1590px;
    --nut-header-height: 82px;
}

.nut-header,
.nut-header *,
.nut-mobile-drawer,
.nut-mobile-drawer *,
.nut-mobile-overlay {
    box-sizing: border-box;
}

.nut-container {
    width: min(calc(100% - 80px), var(--nut-container-width));
    margin-inline: auto;
}

/* ==========================================
   HEADER BASE
========================================== */

.nut-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    font-family: "Montserrat", Arial, sans-serif;
}

.nut-header a {
    text-decoration: none;
}

.nut-header button,
.nut-mobile-drawer button {
    font-family: inherit;
}

/* ==========================================
   TOP BAR
========================================== */

.nut-topbar {
    height: 45px;
    background: linear-gradient(
        180deg,
        #fbfbfb 0%,
        #f4f4f5 100%
    );
    border-bottom: 1px solid #e9e9ea;
}

.nut-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nut-social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nut-social-links a {
    color: #62666d;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .3s ease, transform .3s ease;
}

.nut-social-links a:hover {
    color: var(--nut-red);
    transform: translateY(-3px);
}

.nut-social-separator {
    width: 1px;
    height: 17px;
    background: #d7d7da;
}

.nut-top-contact {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nut-top-contact a {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #60656d;
    font-size: 13px;
    font-weight: 500;
    transition: color .3s ease;
}

.nut-top-contact a i {
    color: var(--nut-red);
    font-size: 17px;
}

.nut-top-contact a:hover {
    color: var(--nut-red);
}

.nut-contact-separator {
    width: 1px;
    height: 20px;
    background: #cccdd1;
}

/* ==========================================
   FLOATING NAVIGATION
========================================== */

.nut-nav-wrap {
    position: relative;
    top: 0;
    margin-top: 8px;
    width: 100%;
    z-index: 1000;
}

.nut-nav-inner {
    width: 100%;
    height: var(--nut-header-height);
    padding: 0 25px 0 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 25px;

    box-shadow:
        0 14px 45px rgba(24, 31, 45, 0.11),
        0 2px 8px rgba(24, 31, 45, 0.03);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        height .35s ease,
        border-radius .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

/* ==========================================
   STICKY NAVIGATION
========================================== */

.nut-header.is-scrolled .nut-nav-wrap {
    position: fixed;
    top: 10px;
    left: 0;
    margin-top: 0;
    width: 100%;
    animation: nutStickyEnter .35s ease both;
}

.nut-header.is-scrolled .nut-nav-inner {
    height: 72px;
    border-radius: 20px;

    background: rgba(255,255,255,.97);

    box-shadow:
        0 12px 45px rgba(15,23,42,.14);
}

.nut-header.is-scrolled .nut-logo img {
    max-height: 58px;
}

@keyframes nutStickyEnter {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   LOGO
========================================== */

.nut-logo {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
}

.nut-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.nut-logo img,
.nut-logo .custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 135px;
    max-height: 68px;
    object-fit: contain;
    transition: max-height .35s ease, transform .35s ease;
}

.nut-logo img:hover {
    transform: scale(1.04);
}

.nut-text-logo {
    color: #262b33;
    font-weight: 800;
    font-size: 22px;
    white-space: nowrap;
}

/* ==========================================
   DESKTOP MENU
========================================== */

.nut-desktop-nav {
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;

    display: flex;
    align-items: center;
    justify-content: center;
}

.nut-primary-menu,
.nut-primary-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nut-primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2vw, 35px);
}

.nut-primary-menu > li {
    position: relative;
}

.nut-primary-menu > li > a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 29px 0;
    color: var(--nut-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .1px;
    transition: color .3s ease;
}

/* ANIMATED RED UNDERLINE */

.nut-primary-menu > li > a::after {
    content: "";
    position: absolute;
    bottom: 17px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--nut-red);
    border-radius: 3px;

    transition:
        width .35s cubic-bezier(.22,1,.36,1),
        left .35s cubic-bezier(.22,1,.36,1);
}

.nut-primary-menu > li:hover > a::after,
.nut-primary-menu > li:focus-within > a::after,
.nut-primary-menu > .current-menu-item > a::after,
.nut-primary-menu > .current-menu-ancestor > a::after {
    width: 80%;
    left: 10%;
}

.nut-primary-menu > li:hover > a,
.nut-primary-menu > li:focus-within > a,
.nut-primary-menu > .current-menu-item > a,
.nut-primary-menu > .current-menu-ancestor > a {
    color: var(--nut-red);
}

/* DROPDOWN CHEVRON */

.nut-primary-menu .menu-item-has-children > a {
    padding-right: 17px;
}

.nut-primary-menu .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;

    transform: translateY(-65%) rotate(45deg);
    transition: transform .3s ease;
}

.nut-primary-menu .menu-item-has-children:hover > a::before,
.nut-primary-menu .menu-item-has-children:focus-within > a::before {
    transform: translateY(-15%) rotate(225deg);
}

/* ==========================================
   PREMIUM DROPDOWN
========================================== */

.nut-primary-menu .sub-menu {
    position: absolute;
    z-index: 50;
    top: 100%;
    left: -18px;

    width: 260px;
    padding: 12px;

    background: #ffffff;
    border: 1px solid #f0f0f2;
    border-radius: 15px;

    box-shadow:
        0 18px 50px rgba(15,23,42,.13);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);

    transition:
        opacity .25s ease,
        transform .3s ease,
        visibility .3s ease;
}

.nut-primary-menu li:hover > .sub-menu,
.nut-primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nut-primary-menu .sub-menu li {
    position: relative;
}

.nut-primary-menu .sub-menu a {
    display: block;
    position: relative;
    padding: 11px 15px;
    border-radius: 8px;

    color: #464b54;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        padding-left .25s ease;
}

.nut-primary-menu .sub-menu a:hover,
.nut-primary-menu .sub-menu a:focus-visible {
    background: #fff0f3;
    color: var(--nut-red);
    padding-left: 20px;
}

.nut-primary-menu .sub-menu .sub-menu {
    top: -12px;
    left: 100%;
}

.nut-primary-menu .sub-menu .menu-item-has-children > a {
    padding-right: 26px;
}

.nut-primary-menu .sub-menu .menu-item-has-children > a::before {
    right: 10px;
    transform: translateY(-50%) rotate(-45deg);
}

/* ==========================================
   HEADER ACTIONS
========================================== */

.nut-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nut-header-divider {
    width: 1px;
    height: 42px;
    background: #dbdce0;
}

/* ==========================================
   DONATE BUTTON
========================================== */

.nut-donate-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 174px;
    height: 51px;
    padding: 0 23px;

    background: linear-gradient(
        135deg,
        #f41f3c 0%,
        #d5082a 100%
    );

    border-radius: 50px;

    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 8px 22px rgba(237,23,50,.23);

    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        box-shadow .35s ease,
        background .35s ease;
}

.nut-donate-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255,255,255,.25) 50%,
        transparent 80%
    );

    transform: translateX(-140%);
    transition: transform .7s ease;
}

.nut-donate-btn:hover::before {
    transform: translateX(140%);
}

.nut-donate-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(237,23,50,.35);
}

.nut-donate-heart {
    font-size: 21px;
    display: inline-flex;
    transition: transform .3s ease;
}

.nut-donate-btn:hover .nut-donate-heart {
    transform: scale(1.17);
}

.nut-donate-separator {
    height: 22px;
    width: 1px;
    background: rgba(255,255,255,.65);
}

.nut-donate-label {
    letter-spacing: .3px;
}

/* ==========================================
   MOBILE TOGGLE
========================================== */

.nut-mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: 45px;
    height: 45px;

    padding: 0;
    border: 0;
    border-radius: 12px;

    background: #fff0f3;
    cursor: pointer;
}

.nut-mobile-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: var(--nut-red);
    transition: transform .3s ease, opacity .3s ease;
}

.nut-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nut-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nut-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   MOBILE OVERLAY
========================================== */

.nut-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;

    background: rgba(12,18,30,.66);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .3s ease, visibility .3s ease;
}

.nut-mobile-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nut-menu-open {
    overflow: hidden;
}

/* ==========================================
   MOBILE DRAWER
========================================== */

.nut-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;

    z-index: 1101;

    display: flex;
    flex-direction: column;

    width: min(410px, 90vw);
    height: 100vh;
    height: 100dvh;

    background: #ffffff;

    transform: translateX(105%);
    visibility: hidden;

    box-shadow: -20px 0 50px rgba(0,0,0,.15);

    transition:
        transform .4s cubic-bezier(.22,1,.36,1),
        visibility .4s ease;
}

.nut-mobile-drawer.is-active {
    transform: translateX(0);
    visibility: visible;
}

/* DRAWER HEADER */

.nut-drawer-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 25px;
    border-bottom: 1px solid #edeef0;
}

.nut-drawer-logo-image {
    display: block;
    width: auto;
    max-width: 115px;
    max-height: 65px;
    height: auto;
    object-fit: contain;
}

.nut-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: #fff0f3;
    color: var(--nut-red);
    border: 0;
    border-radius: 50%;

    font-size: 18px;
    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;
}

.nut-drawer-close:hover {
    background: #ffe0e6;
    transform: rotate(90deg);
}

/* DRAWER CONTENT */

.nut-drawer-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 27px 25px;
}

.nut-drawer-label {
    margin-bottom: 15px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    color: var(--nut-red);
}

/* MOBILE MENU */

.nut-mobile-menu,
.nut-mobile-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nut-mobile-menu li {
    position: relative;
}

.nut-mobile-menu > li {
    border-bottom: 1px solid #eceef0;
}

.nut-mobile-menu > li > a {
    display: block;
    padding: 17px 45px 17px 0;

    color: #353943;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;

    transition: color .25s ease, padding-left .25s ease;
}

.nut-mobile-menu > li > a:hover,
.nut-mobile-menu .current-menu-item > a {
    color: var(--nut-red);
    padding-left: 7px;
}

/* MOBILE SUBMENUS */

.nut-mobile-menu .sub-menu {
    display: none;
    padding: 0 0 12px 14px;
}

.nut-mobile-menu .submenu-open > .sub-menu {
    display: block;
    animation: nutSubmenuShow .25s ease;
}

@keyframes nutSubmenuShow {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nut-mobile-menu .sub-menu a {
    display: block;
    padding: 12px 40px 12px 10px;

    color: #606570;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;

    border-radius: 8px;

    transition: color .25s ease, background .25s ease;
}

.nut-mobile-menu .sub-menu a:hover {
    color: var(--nut-red);
    background: #fff1f3;
}

/* ACCORDION TOGGLE */

.nut-submenu-toggle {
    position: absolute;
    top: 7px;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    padding: 0;
    background: #f6f6f7;
    border: 0;
    border-radius: 9px;

    cursor: pointer;
    color: #555b65;
}

.nut-submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .25s ease;
}

.nut-submenu-toggle[aria-expanded="true"] {
    background: #fff0f3;
    color: var(--nut-red);
}

.nut-submenu-toggle[aria-expanded="true"]::before {
    transform: translateY(2px) rotate(225deg);
}

.nut-mobile-menu .sub-menu .nut-submenu-toggle {
    top: 2px;
}

/* MOBILE DONATE */

.nut-mobile-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 30px;
    padding: 16px;

    border-radius: 12px;
    background: linear-gradient(135deg, #f31e3b, #cc0929);

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 8px 20px rgba(237,23,50,.2);
}

.nut-mobile-donate:hover {
    color: #ffffff;
}

/* DRAWER FOOTER */

.nut-drawer-footer {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 20px 25px 26px;
    border-top: 1px solid #e9eaed;
    background: #f8f8f9;
}

.nut-drawer-footer-label {
    color: #9397a0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.nut-drawer-footer a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #505761;
    font-size: 12px;
    text-decoration: none;
}

.nut-drawer-footer a i {
    color: var(--nut-red);
    font-size: 15px;
}

/* ==========================================
   RESPONSIVE - LAPTOP
========================================== */

@media (max-width: 1450px) {

    .nut-nav-inner {
        padding-inline: 22px;
        gap: 14px;
    }

    .nut-logo {
        flex-basis: 125px;
    }

    .nut-logo img {
        max-width: 115px;
    }

    .nut-primary-menu {
        gap: 18px;
    }

    .nut-primary-menu > li > a {
        font-size: 11.5px;
    }

    .nut-header-actions {
        gap: 16px;
    }

    .nut-donate-btn {
        min-width: 150px;
        padding-inline: 17px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1199px) {

    .nut-desktop-nav {
        display: none;
    }

    .nut-mobile-toggle {
        display: flex;
    }

    .nut-nav-inner {
        height: 78px;
        padding: 0 20px;
    }

    .nut-header.is-scrolled .nut-nav-inner {
        height: 70px;
    }

    .nut-logo {
        flex-basis: auto;
    }

    .nut-header-divider {
        display: none;
    }

    .nut-logo img {
        max-height: 62px;
        max-width: 125px;
    }

    .nut-donate-btn {
        height: 45px;
        min-width: 145px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .nut-container {
        width: calc(100% - 28px);
    }

    .nut-topbar {
        height: 38px;
    }

    .nut-social-links {
        display: none;
    }

    .nut-topbar-inner {
        justify-content: center;
    }

    .nut-top-contact {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .nut-top-contact a {
        gap: 6px;
        font-size: 10px;
    }

    .nut-top-contact a i {
        font-size: 12px;
    }

    .nut-contact-separator {
        height: 14px;
    }

    .nut-nav-wrap {
        margin-top: 8px;
    }

    .nut-nav-inner {
        height: 69px;
        padding: 0 13px;
        border-radius: 18px;
        gap: 8px;
    }

    .nut-header.is-scrolled .nut-nav-wrap {
        top: 7px;
    }

    .nut-header.is-scrolled .nut-nav-inner {
        height: 63px;
        border-radius: 16px;
    }

    .nut-logo img {
        max-width: 95px;
        max-height: 54px;
    }

    .nut-header.is-scrolled .nut-logo img {
        max-height: 48px;
    }

    .nut-text-logo {
        font-size: 17px;
    }

    .nut-header-actions {
        gap: 9px;
    }

    .nut-donate-btn {
        min-width: auto;
        height: 40px;
        gap: 7px;
        padding: 0 13px;
    }

    .nut-donate-heart {
        font-size: 16px;
    }

    .nut-donate-separator {
        height: 17px;
    }

    .nut-donate-label {
        font-size: 11px;
    }

    .nut-mobile-toggle {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

@media (max-width: 380px) {

    .nut-nav-inner {
        padding-inline: 10px;
    }

    .nut-logo img {
        max-width: 78px;
    }

    .nut-donate-btn {
        padding-inline: 10px;
    }

    .nut-donate-label {
        font-size: 10px;
    }

    .nut-header-actions {
        gap: 6px;
    }
}

/* ==========================================
   WORDPRESS ADMIN BAR
========================================== */

body.admin-bar .nut-header.is-scrolled .nut-nav-wrap {
    top: 42px;
}

@media (max-width: 782px) {

    body.admin-bar .nut-header.is-scrolled .nut-nav-wrap {
        top: 53px;
    }
}

@media (max-width: 600px) {

    body.admin-bar .nut-header.is-scrolled .nut-nav-wrap {
        top: 7px;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.nut-header a:focus-visible,
.nut-header button:focus-visible,
.nut-mobile-drawer a:focus-visible,
.nut-mobile-drawer button:focus-visible {
    outline: 2px solid var(--nut-red);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .nut-header *,
    .nut-mobile-drawer *,
    .nut-mobile-overlay,
    .nut-mobile-drawer {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}