:root {
    --wf-header-surface: rgba(255, 255, 255, 0.86);
    --wf-header-surface-solid: #ffffff;
    --wf-header-text: #2d2f31;
    --wf-header-text-soft: rgba(45, 47, 49, 0.76);
    --wf-header-accent: #bdfc00;
    --wf-header-accent-dark: #354900;
    --wf-header-border: rgba(172, 173, 175, 0.3);
    --wf-header-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.wf-shell {
    width: min(calc(100% - 32px), 1440px);
    margin: 0 auto;
}

#masthead.wf-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: var(--wf-header-surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    box-shadow: var(--wf-header-shadow);
}

#masthead.wf-site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
}

.wf-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 80px;
}

.wf-site-brand {
    display: inline-flex;
    align-items: center;
    color: #15171a;
    font-family: "Lexend", sans-serif;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.08em;
    text-decoration: none;
}

.wf-site-brand--logo img,
.wf-site-brand--logo .custom-logo {
    max-height: 48px;
    width: auto;
}

.wf-site-nav .wf-site-menu,
.wf-site-mobile-nav .wf-site-mobile-menu,
.wf-site-mobile-nav .wf-site-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wf-site-nav .wf-site-menu > li {
    position: relative;
}

.wf-site-nav .menu-item-has-children,
.wf-site-mobile-nav .menu-item-has-children {
    position: relative;
}

.wf-site-nav .menu-item-has-children > a,
.wf-site-mobile-nav .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.wf-site-nav .menu-item-has-children > a::after,
.wf-site-mobile-nav .menu-item-has-children > a::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.wf-site-nav .menu-item-has-children:hover > a::after,
.wf-site-nav .menu-item-has-children:focus-within > a::after {
    transform: rotate(45deg) translateY(1px);
    opacity: 1;
}

.wf-site-nav a,
.wf-site-mobile-nav a {
    position: relative;
    color: var(--wf-header-text-soft);
    font-family: "Lexend", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wf-site-nav .current-menu-item > a,
.wf-site-nav .current_page_item > a,
.wf-site-nav .current-menu-ancestor > a,
.wf-site-nav a:hover,
.wf-site-mobile-nav a:hover {
    color: #111214;
}

.wf-site-nav .current-menu-item > a::after,
.wf-site-nav .current_page_item > a::after,
.wf-site-nav .current-menu-ancestor > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.65rem;
    height: 2px;
    background: var(--wf-header-accent);
}

.wf-site-nav .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    border: 1px solid rgba(12, 14, 16, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 46px rgba(12, 14, 16, 0.12);
    z-index: 80;
}

.wf-site-nav .menu-item-has-children > .sub-menu::before {
    content: "";
    position: absolute;
    top: -0.9rem;
    left: 0;
    right: 0;
    height: 0.9rem;
}

.wf-site-nav .menu-item-has-children:hover > .sub-menu,
.wf-site-nav .menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

.wf-site-nav .sub-menu li {
    display: block;
    width: 100%;
}

.wf-site-nav .sub-menu a {
    display: block;
    padding: 0.7rem 1rem;
    color: #1b1d20;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.wf-site-nav .sub-menu a::after {
    display: none;
}

.wf-site-nav .sub-menu a:hover,
.wf-site-nav .sub-menu .current-menu-item > a {
    color: #496400;
    background: rgba(73, 100, 0, 0.06);
}

.wf-site-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wf-site-header__icon,
.wf-site-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5a5c5e;
    text-decoration: none;
}

.wf-site-header__cta,
.wf-site-mobile-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.4rem;
    border-radius: 8px;
    background: #b1ed00;
    color: var(--wf-header-accent-dark);
    font-family: "Lexend", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.wf-site-mobile-toggle,
.wf-site-mobile-nav {
    display: none;
}

.wf-site-mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 0 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--wf-header-border);
    box-shadow: 0 30px 60px rgba(12, 14, 16, 0.1);
}

.wf-site-mobile-nav .wf-site-mobile-menu,
.wf-site-mobile-nav .wf-site-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.wf-site-mobile-nav .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.75rem 0 0 1rem;
    padding: 0.9rem 0 0 1rem;
    list-style: none;
    border-left: 1px solid rgba(12, 14, 16, 0.1);
}

.wf-site-mobile-nav .sub-menu a {
    color: #4c5054;
    font-size: 0.9rem;
}

.wf-site-mobile-nav .menu-item-has-children > a::after {
    margin-left: 0.15rem;
}

.wf-site-mobile-nav__cta {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 820px) {
    .wf-shell {
        width: min(calc(100% - 24px), 1440px);
    }

    .wf-site-nav,
    .wf-site-header__actions .wf-site-header__icon,
    .wf-site-header__cta {
        display: none;
    }

    .wf-site-mobile-toggle {
        display: inline-flex;
    }
}
