/* -----------------------------------------------------------------------------
   Navbar — top navigation bar, mega menu, mobile adaptation, cookie banner
----------------------------------------------------------------------------- */

/* --- NAVBAR BASE --- */
.navbar {
    background-color: var(--navbar-bg) !important;
    background-image: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 4.5rem;
    border-bottom: 1px solid rgba(123, 185, 62, 0.1);
}

/* --- BREAKPOINT OVERRIDE: raise hamburger trigger from Bulma's 1024px to 1366px --- */
@media screen and (min-width: 1024px) and (max-width: 1365px) {
    .navbar-burger {
        display: flex !important;
    }
    /* Brand fills full row so burger aligns to the right edge */
    .navbar-brand {
        width: 100%;
    }
    /* Menu hidden by default; wraps onto a new row when active */
    .navbar-menu {
        display: none !important;
        width: 100%;
    }
    .navbar-menu.is-active {
        display: block !important;
        width: 100%;
    }
    /* Allow the menu row to wrap below the brand row */
    .navbar > .container {
        flex-wrap: wrap;
    }
    /* Stack nav items vertically so dropdowns flow inline, not in a flex row */
    .navbar-end {
        display: block !important;
    }
}

@media screen and (min-width: 1366px) {
    .navbar > .container {
        position: relative;
    }
    .navbar-item.has-mega-dropdown {
        position: static !important;
    }
}

.navbar-brand .navbar-item {
    font-size: 1.8rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.5px;
}

.navbar-item, .navbar-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-link:not(.is-arrowless)::after {
    border-color: white !important;
}

.navbar-item:hover, .navbar-link:hover {
    background-color: transparent !important;
    color: var(--primary-green) !important;
}

.navbar-burger { color: white !important; }


/* --- MEGA MENU LAYOUT --- */
.navbar-dropdown {
    background: white;
    border: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    padding-top: calc(2rem + 1px);

    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;

    display: grid !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);

    transition: opacity 0.25s ease 0.2s, transform 0.25s ease 0.2s, visibility 0.25s 0.1s;
}

@media screen and (min-width: 1366px) {
    .navbar-item.has-mega-dropdown:hover > .navbar-dropdown {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }
}

/* --- MOBILE ADAPTATION --- */
@media screen and (max-width: 1365px) {
    .navbar-item.has-mega-dropdown {
        position: relative !important;
        display: block !important;
    }
    .navbar-dropdown {
        position: relative !important;
        display: none !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 1rem;
    }
    .navbar-item.has-mega-dropdown.is-active .navbar-dropdown {
        display: block !important;
        pointer-events: auto;
    }
    /* Single column layout for mobile mega-menu grids */
    .mega-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    .navbar-menu { background: var(--navbar-bg); }
    .navbar-item, .navbar-link { color: white !important; }

    /* Get Started dropdown — mobile */
    .has-gs-dropdown {
        display: block !important;
    }
    .has-gs-dropdown > .button {
        width: 100%;
        justify-content: center;
        border-radius: 6px !important;
        margin: 0.25rem 0;
        pointer-events: auto;
    }
    .has-gs-dropdown.is-active .navbar-dropdown {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        right: auto !important;
        left: auto !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        border: 1px solid rgba(255,255,255,0.15);
        margin-top: 0.25rem;
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}


/* --- MEGA MENU CONTENT --- */
.mega-menu-grid { display: grid; gap: 2rem; }
.mega-menu-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.mega-menu-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.mega-menu-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

.mega-menu-column-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-green);
}

.mega-menu-column-title-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-green);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}
.mega-menu-column-title-link:hover {
    color: var(--primary-green-darker);
    border-bottom-color: var(--primary-green);
    padding-left: 0.5rem;
}
.mega-menu-column-title-link i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}
.mega-menu-column-title-link:hover i {
    transform: translateX(3px);
}

.mega-menu-item {
    padding: 0.75rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}
.mega-menu-item:hover {
    background: var(--green-hover);
}
.mega-menu-item-title {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}
.mega-menu-item:hover .mega-menu-item-title {
    color: var(--primary-green-dark);
}
.mega-menu-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.mega-menu-highlight {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--lighter-green) 100%);
    padding: 1.5rem;
    border-radius: 8px;
}
.mega-menu-highlight-title {
    font-weight: 500;
    color: var(--primary-green-darker);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mega-menu-highlight-text {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.5;
}


/* --- BULMA PRIMARY BUTTON OVERRIDE --- */
.button.is-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: white !important;
    font-weight: 500;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
}
.button.is-primary.is-medium {
    padding: 0.9rem 2rem !important;
}
.button.is-primary:hover {
    background-color: #96DC4B !important;
    border-color: #96DC4B !important;
    color: white !important;
}


/* --- GET STARTED DROPDOWN --- */
.has-gs-dropdown {
    position: relative !important;
    align-items: center !important;
}
.has-gs-dropdown > .button {
    align-self: center;
}

@media screen and (min-width: 1366px) {
    .has-gs-dropdown .navbar-dropdown {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        width: 340px !important;
        display: block !important;
        padding: 0.5rem 1.25rem 1.25rem !important;
        border-radius: 12px !important;
        grid-template-columns: unset !important;
    }
    .has-gs-dropdown:hover > .navbar-dropdown {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }
}
.gs-dropdown-label {
    font-size: 0.65rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #aaa; margin-bottom: 0.75rem; padding: 0 0.25rem;
}
.gs-platform-card {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem;
    border-radius: 9px;
    text-decoration: none;
    transition: background 0.2s ease;
    border: 1px solid transparent;
}
.gs-platform-card:hover {
    background: var(--green-hover);
    border-color: rgba(123,185,62,0.2);
}
.gs-platform-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.gs-platform-body { flex: 1; min-width: 0; }
.gs-platform-name {
    font-size: 0.88rem; font-weight: 500;
    color: var(--navbar-bg); line-height: 1.2;
}
.gs-platform-desc {
    font-size: 0.75rem; color: var(--text-secondary);
    line-height: 1.4; margin-top: 0.15rem;
}
.gs-platform-arrow {
    font-size: 0.7rem; color: #ccc; flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.gs-platform-card:hover .gs-platform-arrow {
    transform: translateX(3px);
    color: var(--primary-green);
}
.gs-dropdown-divider {
    height: 1px; background: #f0f0f0;
    margin: 0.75rem 0;
}
.gs-dropdown-footer {
    display: flex; align-items: center; justify-content: center;
    gap: 0.4rem;
    font-size: 0.72rem; color: #aaa;
    padding: 0.25rem 0 0;
}
.gs-dropdown-footer a {
    color: var(--primary-green); text-decoration: none; font-weight: 500;
}
.gs-dropdown-footer a:hover { text-decoration: underline; }

/* --- FLAGSHIP BADGE --- */
.nav-flagship-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-green);
    background: rgba(123, 185, 62, 0.12);
    border: 1px solid rgba(123, 185, 62, 0.35);
    border-radius: 20px;
    padding: 0.15rem 0.5rem;
    vertical-align: middle;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-flagship-badge i {
    font-size: 0.55rem;
    color: #f5c518;
}
.mega-menu-item:hover .nav-flagship-badge {
    background: rgba(123, 185, 62, 0.22);
    border-color: rgba(123, 185, 62, 0.6);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    margin: 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--border-color);
}
.cookie-setting-bg {
    background-color: var(--light-green);
    color: white;
}
