.ul-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 16px 0;
    border-bottom: 1px solid transparent;
}

html[data-theme="dark"] .ul-header {
    background: rgba(30, 30, 30, 0.7);
}

.ul-header.is-scrolled {
    padding: 8px 0;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .ul-header.is-scrolled {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.ul-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.ul-brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
}

.ul-logo img {
    max-height: 80px;
    width: auto;
    transition: max-height 0.3s;
}

.is-scrolled .ul-logo img {
    max-height: 60px;
}

.ul-brand-text {
    display: flex;
    flex-direction: column;
}

.ul-site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ast-global-color-2);
    line-height: 1.2;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.ul-site-tagline {
    font-size: 0.9rem;
    color: var(--ast-global-color-1);
    margin: 0;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}

.ul-header-right {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: flex-end;
}

.ul-nav {
    display: block;
}

.ul-nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ul-nav-menu li {
    position: relative;
    display: flex;
    align-items: center;
}
.ul-nav-menu li a {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ast-global-color-2);
    text-decoration: none !important;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ul-nav-menu li a:hover,
.ul-nav-menu .current-menu-item > a,
.ul-nav-menu .current-page-ancestor > a {
    color: var(--ast-global-color-1) !important;
}

/* Submenu arrow indicator */
.ul-nav-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.25s ease;
}

/* Submenu dropdown */
.ul-nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
}
html[data-theme="dark"] .ul-nav-menu .sub-menu {
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.ul-nav-menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ul-nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
    margin-top: 0;
}

/* Submenu items */
.ul-nav-menu .sub-menu li {
    padding: 0;
}
.ul-nav-menu .sub-menu a {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.ul-nav-menu .sub-menu a:hover {
    background: rgba(13, 71, 161, 0.06);
    color: var(--ast-global-color-0) !important;
}
html[data-theme="dark"] .ul-nav-menu .sub-menu a:hover {
    background: rgba(74, 144, 226, 0.1);
}
.ul-nav-menu .sub-menu .menu-item-has-children > a::after {
    transform: rotate(-45deg);
    margin-top: 0;
    margin-left: auto;
}
.ul-nav-menu .sub-menu .menu-item-has-children:hover > a::after {
    transform: rotate(135deg);
}

/* Nested submenu (third level) */
.ul-nav-menu .sub-menu .sub-menu {
    top: -8px;
    left: calc(100% + 8px);
}

.ul-theme-toggle {
    background: transparent !important;
    border: none !important;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    color: var(--ast-global-color-2);
    transition: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.ul-theme-toggle .theme-icon-light,
.ul-theme-toggle .theme-icon-dark {
    font-size: 1.6rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .ul-theme-toggle {
        width: 38px;
        height: 38px;
    }
    .ul-theme-toggle .theme-icon-light,
    .ul-theme-toggle .theme-icon-dark {
        font-size: 1.5rem;
    }
}

.ul-theme-toggle:hover,
.ul-theme-toggle:active,
.ul-theme-toggle:focus {
    background: transparent !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.theme-icon-light,
.theme-icon-dark {
    display: none;
}

html[data-theme="light"] .theme-icon-light {
    display: inline-block;
}

html[data-theme="light"] .theme-icon-dark {
    display: none;
}

html[data-theme="dark"] .theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-icon-dark {
    display: inline-block;
}

.ul-lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid var(--ast-global-color-0);
    color: var(--ast-global-color-0);
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.ul-lang-btn:hover {
    background: var(--ast-global-color-1);
    border-color: var(--ast-global-color-1);
    color: #fff;
}

.lang-globe {
    font-size: 0.9rem;
}



@media (max-width: 1024px) {
    .ul-lang-btn {
        display: none;
    }

    .ul-nav-menu {
        gap: 24px;
    }

    .ul-site-title {
        font-size: 1.35rem;
    }

    .ul-site-tagline {
        font-size: 0.8rem;
    }

    .ul-logo img {
        max-height: 72px;
    }

    .is-scrolled .ul-logo img {
        max-height: 54px;
    }
}

@media (max-width: 768px) {
    .ul-nav {
        display: none;
    }

    .ul-lang-btn {
        display: none;
    }

    .ul-site-title {
        font-size: 1.15rem;
    }

    .ul-site-tagline {
        font-size: 0.85rem;
    }

    .ul-logo img {
        max-height: 62px;
    }

    .is-scrolled .ul-logo img {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .ul-site-title {
        font-size: 1.05rem;
    }

    .ul-site-tagline {
        font-size: 0.8rem;
    }

    .ul-logo img {
        max-height: 56px;
    }
}

/* ==========================================================================
   CTA Button — "For Landowners" (class: .menu-btn-highlight)
   ========================================================================== */

/* --- Layout: balanced vertical centering among text links --- */
.menu-btn-highlight {
    display: inline-flex;
    align-items: center;
    margin: 0 8px;
}

.menu-btn-highlight > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px 8px 34px;

    /* Ghost button base */
    background: transparent;
    border: 1px solid var(--ast-global-color-0);
    border-radius: 4px;

    font-weight: 600;
    color: var(--ast-global-color-0) !important;
    font-size: 0.95rem;
    line-height: 1.4;

    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* --- Static core dot (::before) --- */
.menu-btn-highlight > a::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ast-global-color-1);
    z-index: 1;
    pointer-events: none;
}

/* --- Animated pulsing ring (::after) --- */
.menu-btn-highlight > a::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--ast-global-color-1);
    background: transparent;
    pointer-events: none;
    animation: cta-pulse 2.4s ease-out infinite;
}

@keyframes cta-pulse {
    0% {
        transform: translateY(-50%) scale(0.6);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50%) scale(1.8);
        opacity: 0.2;
    }
    100% {
        transform: translateY(-50%) scale(2.4);
        opacity: 0;
    }
}

/* --- Hover: solid primary background --- */
.ul-nav-menu .menu-btn-highlight > a:hover,
.ul-nav-menu .menu-btn-highlight > a:focus-visible {
    background: var(--ast-global-color-0);
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-2) !important;
}

html[data-theme="light"] .ul-nav-menu .menu-btn-highlight > a:hover,
html[data-theme="light"] .ul-nav-menu .menu-btn-highlight > a:focus-visible {
    color: #fff !important;
}

.ul-nav-menu .menu-btn-highlight > a:hover::before,
.ul-nav-menu .menu-btn-highlight > a:focus-visible::before {
    background: var(--ast-global-color-1);
}

.ul-nav-menu .menu-btn-highlight > a:hover::after,
.ul-nav-menu .menu-btn-highlight > a:focus-visible::after {
    border-color: var(--ast-global-color-1);
}

/* --- Active state for both modes --- */
.menu-btn-highlight > a:active {
    transform: scale(0.97);
}

/* --- Mobile (≤991px): strip to clean text link --- */
@media (max-width: 991px) {
    .menu-btn-highlight {
        margin: 0;
    }

    .menu-btn-highlight > a {
        padding: initial;
        background: transparent;
        border: none;
        border-radius: 0;
        color: inherit !important;
        font-weight: inherit;
        font-size: inherit;
    }

    .menu-btn-highlight > a::before,
    .menu-btn-highlight > a::after {
        display: none;
    }
}
