/* ========================================
   NAVIGATION STYLES
   Stripe-like navigation with morphing megamenu
   ======================================== */

/* Navigation Container */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-slow);
    padding: 16px;
}

/* WP Admin Bar Support */
body.admin-bar .main-navigation {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .main-navigation {
        top: 46px;
    }
}

.main-navigation.scrolled {
    background: rgba(255, 255, 255, 0.95);
    /* Using bg-surface with opacity for glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider-dark);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

/* Fix for mobile menu in sticky state */
body.mobile-menu-open .main-navigation.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-container {
    max-width: var(--container-width, 1280px);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    transition: opacity var(--transition);
    padding: 0;
    z-index: 1002;
    margin-right: var(--space-lg);
    position: relative;
    width: 228px;
    height: 60px;
    flex-shrink: 0;
}

/* Separator after Logo */
.nav-logo::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background-color: var(--divider);
    transition: background-color var(--transition-slow);
}

.main-navigation.scrolled .nav-logo::after {
    background-color: var(--divider-dark);
}

@media (max-width: 1024px) {
    .nav-logo::after {
        display: none;
    }
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    width: 228px;
    height: 60px;
    object-fit: contain;
    object-position: left center;
}

.nav-logo .nav-logo-mobile {
    width: 228px;
    height: 60px;
    object-fit: contain;
    object-position: left center;
}

/* Mobile logo size */
@media (max-width: 1024px) {
    .nav-logo {
        width: 182px;
        height: 48px;
    }

    .nav-logo img.nav-logo-default {
        width: 182px;
        height: 48px;
    }

    .nav-logo .nav-logo-mobile {
        width: 182px;
        height: 48px;
    }
}

/* Main Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    /* Closer menu items */
    list-style: none;
    margin: 0 auto;
    /* Center the menu */
    padding: 0;
    z-index: 1002;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.625rem var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    /* 600 weight */
    color: var(--text-inverse);
    /* White by default */
    text-decoration: none;
    border-radius: 0;
    transition: all var(--transition);
    position: relative;
    background: transparent;
    overflow: visible;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -27px;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0px;
}

/* Show full underline when item is active (current page) */
.nav-item.current-menu-item .nav-link::after,
.nav-item.current_page_item .nav-link::after {
    background-size: 100% 100%;
}

/* Hide active underline when hovering other menu items */
.nav-menu:hover .nav-item.current-menu-item:not(:hover) .nav-link::after {
    background-size: 0% 100%;
}

/* Hide after effect when dropdown is open */
.nav-item.active .nav-link::after {
    display: none;
}

/* Hide active underline when any dropdown is open */
.nav-item.active~.nav-item.current-menu-item .nav-link::after,
.nav-item.current-menu-item.active .nav-link::after {
    background-size: 0% 100%;
}

/* Hide hover effect on mobile */
@media (max-width: 1024px) {
    .nav-link::after {
        display: none;
    }
}

.main-navigation.scrolled .nav-link {
    color: var(--text);
    /* Black in sticky state */
}

/* Active (current page) state - orange text */
.nav-item.current-menu-item .nav-link {
    color: var(--primary);
}

/* Desktop-only hover/active logic */
@media (min-width: 1025px) {

    /* Hide active state when hovering other menu items */
    .nav-menu:hover .nav-item.current-menu-item:not(:hover) .nav-link {
        color: var(--text-inverse);
    }

    .main-navigation.scrolled .nav-menu:hover .nav-item.current-menu-item:not(:hover) .nav-link {
        color: var(--text);
    }

    /* Hide active state when dropdown is open */
    .nav-item.active~.nav-item.current-menu-item .nav-link,
    .nav-item.current-menu-item.active .nav-link {
        color: var(--text-inverse);
    }

    .main-navigation.scrolled .nav-item.active~.nav-item.current-menu-item .nav-link,
    .main-navigation.scrolled .nav-item.current-menu-item.active .nav-link {
        color: var(--text);
    }
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary);
    background: transparent;
    border-radius: 0;
}

.main-navigation.scrolled .nav-link:hover,
.main-navigation.scrolled .nav-item.active .nav-link {
    color: var(--primary);
    background: transparent;
    border-radius: 0;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    background-size: 100% 100%;
}


/* Dropdown Arrow (Chevron in link) */
.dropdown-arrow {
    position: static;
    transition: transform var(--transition-slow);
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    flex-shrink: 0;
    width: 12px;
    height: 8px;
    /* Closer to text, vertically aligned */
}

.dropdown-arrow svg {
    width: 12px;
    height: 8px;
}

.nav-item.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Morphing Dropdown Wrapper */
.morphing-dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    perspective: 2000px;
    z-index: 1001;
    pointer-events: none;
    overflow: visible;
    /* Allow arrow to be visible outside */
}

/* Dropdown Window (Moves and Resizes) */
.dropdown-window {
    position: absolute;
    top: calc(100% + var(--space-md) + 5px - 15px);
    /* Positioned below menu with spacing + 5px lower */
    left: 0;
    z-index: 1000;
    width: 100px;
    /* Initial width, set by JS */
    height: 100px;
    /* Initial height, set by JS */
    transform-origin: top center;
    background: transparent;
    /* Transparent, background is on dropdown-background */
    border-radius: var(--radius-lg);
    overflow: visible;
    /* Visible to show arrow */
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.2s ease;
    will-change: transform, opacity, width, height;
}

.dropdown-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Dropdown Background (Just the visual layer inside window) */
.dropdown-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider-dark);
    box-shadow: var(--shadow-xl);
    pointer-events: none;
    overflow: hidden;
}

/* Arrow on Top - positioned inside dropdown-window, animates with it */
.dropdown-arrow-up {
    position: absolute;
    top: -6px;
    /* Arrow position stays the same relative to window */
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--divider-dark);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1003;
    opacity: 0;
    pointer-events: none;
}

.dropdown-window.open .dropdown-arrow-up {
    opacity: 1;
}

/* Dropdown Content Container */
.dropdown-content-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Dropdown Sections */
.dropdown-section {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(30px) translateY(8px);
    /* Start from right by default */
    padding: var(--space-2xl) var(--space-xl);
    /* Increased padding */
    width: max-content;
    max-width: 90vw;
    box-sizing: border-box;
}

.dropdown-section.from-left {
    transform: translateX(-30px) translateY(8px);
    /* Start from left */
}

.dropdown-section.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) translateY(0);
}

/* Megamenu Content Styles */
.megamenu-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    /* First column wider */
    gap: var(--space-2xl);
    /* Increased gap */
    min-width: 600px;
    align-items: start;
    /* Align items to start, don't stretch to match height */
}

.megamenu-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: fit-content;
    /* Not full width */
    max-width: 100%;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease 0.05s,
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.dropdown-section.active .megamenu-section {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-section:not(.active) .megamenu-section {
    opacity: 0;
    transform: translateY(8px);
    transition-delay: 0s;
}

.megamenu-title {
    font-size: var(--font-size-xl);
    /* Larger title */
    font-weight: var(--font-weight-extrabold);
    /* No text-transform - normal case */
    letter-spacing: normal;
    /* Normal letter spacing */
    color: var(--text);
    /* Ensure correct text color */
    margin: 0;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease 0.1s,
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.dropdown-section.active .megamenu-title {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-section:not(.active) .megamenu-title {
    opacity: 0;
    transform: translateY(4px);
    transition-delay: 0s;
}

.megamenu-description {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--text-muted);
    /* Lighter color for description */
    font-weight: var(--font-weight-medium);
    margin: 0;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease 0.15s,
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.dropdown-section.active .megamenu-description {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-section:not(.active) .megamenu-description {
    opacity: 0;
    transform: translateY(4px);
    transition-delay: 0s;
}

.megamenu-cta {
    /* Use btn-primary from DSL */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2rem;
    height: 46px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-extrabold);
    line-height: 1;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    white-space: nowrap;
    width: auto;
    max-width: fit-content;
    /* Not full width */
    margin-top: 0;
    /* Remove auto margin - keep it next to text */
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease,
        opacity 0.2s ease 0.2s,
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    /* Primary button styles from DSL */
    background: var(--primary);
    color: var(--text);
    border-color: var(--primary);
}

.dropdown-section.active .megamenu-cta {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-section:not(.active) .megamenu-cta {
    opacity: 0;
    transform: translateY(4px);
    transition-delay: 0s;
}

.megamenu-cta:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(253, 198, 0, 0.3);
}

.megamenu-cta:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(253, 198, 0, 0.2);
}

.megamenu-cta svg {
    width: 16px;
    height: 16px;
}

.megamenu-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.megamenu-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.megamenu-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
    opacity: 0;
    transform: translateY(4px) translateZ(0);
    /* GPU acceleration */
}

.megamenu-link:nth-child(1) {
    transition-delay: 0.05s;
}

.megamenu-link:nth-child(2) {
    transition-delay: 0.1s;
}

.megamenu-link:nth-child(3) {
    transition-delay: 0.15s;
}

.megamenu-link:nth-child(4) {
    transition-delay: 0.2s;
}

.dropdown-section.active .megamenu-link {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-section:not(.active) .megamenu-link {
    opacity: 0;
    transform: translateY(4px);
    transition-delay: 0s;
}

.megamenu-link:hover {
    background: var(--bg-muted);
    transform: translateY(-1px) translateZ(0);
    /* GPU acceleration for smoother animation */
}


.megamenu-link-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition:
        background 0.2s ease,
        color 0.2s ease;
    /* No transform/scale - icon stays same size */
}

.megamenu-link:hover .megamenu-link-icon {
    background: var(--primary);
    /* Orange background on hover */
    color: var(--text-inverse);
    /* White icon on hover */
}

.megamenu-link:hover .megamenu-link-icon svg {
    color: var(--text-inverse);
    /* White icon SVG */
    stroke: var(--text-inverse);
}

.megamenu-link-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.megamenu-link-icon svg[fill="currentColor"] {
    fill: currentColor;
}

.megamenu-link-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.megamenu-link-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    transition: color var(--transition);
}

.megamenu-link:hover .megamenu-link-title {
    color: var(--primary);
    /* Orange title on hover */
}

.megamenu-link-desc {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    /* Lighter color for link description */
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

/* CTA Button */
.nav-cta {
    margin-left: var(--space-sm);
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.nav-cta svg {
    width: 20px;
    height: 20px;
}

/* CTA Button - Ghost white by default, primary in sticky */
.nav-cta.btn-ghost-white {
    color: var(--text-inverse);
    /* White text from DSL */
}

.main-navigation.scrolled .nav-cta {
    background: var(--primary);
    color: var(--text);
    border-color: var(--primary);
}

.main-navigation.scrolled .nav-cta:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(253, 198, 0, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    z-index: 1002;
}

.mobile-menu-toggle:hover {
    background: transparent;
    opacity: 0.8;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--text-inverse);
    /* White by default */
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation.scrolled .hamburger-line {
    background: var(--text);
    /* Black when scrolled */
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line {
    background: var(--text);
    /* Black when open */
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu {
        margin: 0;
        margin-left: auto;
        /* Align to right since CTA is gone */
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 1024px) {

    .main-navigation,
    .main-navigation.scrolled {
        padding: 8px;
    }

    .nav-menu,
    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Menu Overlay - Full Screen White Background */
    body.mobile-menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-surface);
        z-index: 999;
        pointer-events: none;
    }

    /* Mobile Menu Styles */
    .nav-menu.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-surface);
        padding: var(--space-md);
        padding-top: calc(var(--space-md) + 120px);
        padding-bottom: var(--space-md);
        box-shadow: none;
        max-height: 100vh;
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    /* Reset active state on mobile - Force black text for ALL states */
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: var(--space-md);
        font-size: var(--font-size-base);
        color: #000000 !important;
    }

    .nav-link:hover,
    .nav-link:active,
    .nav-link:focus,
    .nav-item.active .nav-link,
    body .nav-item.current-menu-item .nav-link,
    body .nav-item.active~.nav-item.current-menu-item .nav-link,
    body .nav-item.current-menu-item.active .nav-link,
    .nav-item.mobile-open .nav-link {
        color: #000000 !important;
    }

    .nav-link:hover,
    .nav-item.active .nav-link,
    .nav-item.mobile-open .nav-link {
        background: #F9FAFB;
    }

    /* Hide desktop morphing dropdown on mobile */
    .morphing-dropdown-wrapper {
        display: none !important;
    }

    /* Mobile Dropdown Content - Accordion Style */
    .mobile-dropdown-content {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--bg-subtle);
    }

    .nav-item.mobile-open .mobile-dropdown-content {
        max-height: 2000px;
        /* Large enough for content */
    }

    .nav-item.mobile-open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Mobile Megamenu Styles */
    .mobile-megamenu-content {
        padding: var(--space-md);
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
    }

    .mobile-megamenu-section {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    .mobile-megamenu-title {
        display: none;
        font-size: var(--font-size-sm) !important;
        font-weight: var(--font-weight-extrabold);
        color: var(--text);
        margin: 0;
    }

    .mobile-megamenu-description {
        font-size: var(--font-size-sm);
        color: var(--text-muted);
        line-height: var(--line-height-relaxed);
        margin: 0;
    }

    .mobile-megamenu-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-sm);
        padding: 0.5rem 1.25rem;
        /* Smaller padding */
        height: 38px;
        /* Fixed small height */
        font-size: 0.8125rem;
        /* 13px */
        font-weight: var(--font-weight-extrabold);
        line-height: 1;
        text-decoration: none;
        border-radius: var(--radius-md);
        border: 2px solid transparent;
        white-space: nowrap;
        width: auto;
        background: var(--primary);
        color: var(--text) !important;
        border-color: var(--primary);
    }

    .mobile-megamenu-cta:hover {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(253, 198, 0, 0.3);
    }

    .mobile-megamenu-links {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .mobile-megamenu-link {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: var(--space-md);
        border-radius: var(--radius-sm);
        text-decoration: none;
        background: var(--bg-surface);
        border: 1px solid var(--border);
        transition: all var(--transition);
    }

    .mobile-megamenu-link:hover {
        background: var(--bg-muted);
        border-color: var(--primary);
    }

    .mobile-megamenu-link-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-muted);
        border-radius: var(--radius-sm);
        color: var(--text);
    }

    .mobile-megamenu-link:hover .mobile-megamenu-link-icon {
        background: var(--primary);
        color: var(--text-inverse);
    }

    .mobile-megamenu-link:hover .mobile-megamenu-link-icon svg {
        color: var(--text-inverse);
        stroke: var(--text-inverse);
    }

    .mobile-megamenu-link-icon svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .mobile-megamenu-link-icon svg[fill="currentColor"] {
        fill: currentColor;
    }

    .mobile-megamenu-link-content {
        display: flex;
        flex-direction: column;
        gap: 0.125rem;
        flex: 1;
    }

    .mobile-megamenu-link-title {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
        color: var(--text);
    }

    .mobile-megamenu-link:hover .mobile-megamenu-link-title {
        color: var(--primary);
    }

    .mobile-megamenu-link-desc {
        font-size: var(--font-size-xs);
        color: var(--text-muted);
        line-height: 1.4;
    }
}

/* Mobile CTA Button */
.nav-cta-mobile-wrapper {
    display: none;
}

@media (max-width: 1024px) {
    .nav-cta-mobile-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: var(--space-lg);
        gap: 0.5rem;
    }

    .nav-cta-mobile {
        width: 100%;
        padding: 0.5rem 1.25rem;
        /* Smaller padding */
        text-align: center;
        background: var(--primary);
        height: 38px;
        /* Standardize specific small height */
        display: flex;
        /* Use flex to align content if needed */
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: var(--text) !important;
        border: none;
        border-radius: var(--radius-md);
        font-size: 0.8125rem;
        /* 13px */
        font-weight: var(--font-weight-extrabold);
        text-decoration: none;
        transition: all var(--transition);
    }

    .nav-cta-mobile .btn-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }

    .nav-cta-mobile svg {
        width: 20px;
        height: 20px;
    }

    .nav-cta-mobile:hover {
        background: var(--primary-hover);
        color: var(--text) !important;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(253, 198, 0, 0.3);
    }

    .nav-cta-mobile.btn-outline {
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text) !important;
    }

    .nav-cta-mobile.btn-outline:hover {
        background: var(--bg-muted);
        border-color: var(--text);
        box-shadow: none;
    }



}

/* Hide mobile dropdown on desktop */
@media (min-width: 1025px) {
    .mobile-dropdown-content {
        display: none !important;
    }

    .nav-cta-mobile {
        display: none !important;
    }
}