/* ==========================================================================
   ESDESIRE V2 — NAVIGATION
   Loaded on EVERY page via master-v2.blade.php
   ========================================================================== */

.v2-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--v2-nav-h);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

.v2-nav-inner {
    display: flex;
    align-items: center;
    height: var(--v2-nav-h);
    gap: 40px;
}

/* Logo */
.v2-nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 16px;
}

.v2-nav-logo img {
        height: 36px;
    width: auto;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.v2-nav-logo:hover img {
    transform: translateY(-1px) scale(1.01);
}

/* Links */
.v2-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    flex: 1;
    margin: 0;
    padding: 0;
}

.v2-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--v2-white);
    white-space: nowrap;
    transition: color 0.2s;
    border: none;
    background: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

a.v2-nav-link:link,
a.v2-nav-link:visited {
    color: var(--v2-white);
}

.v2-nav-link:focus,
.v2-nav-link:focus-visible,
.v2-nav-link:active {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.v2-nav-link::-moz-focus-inner {
    border: 0;
}

.v2-nav-link:hover {
    color: var(--v2-green);
}

a.v2-nav-link:hover,
a.v2-nav-link:focus,
a.v2-nav-link:focus-visible,
a.v2-nav-link:active {
    color: var(--v2-green);
}

.v2-nav-link .chevron {
    display: inline-block;
    font-size: 13px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s;
    transform-origin: center;
    transform: rotate(0deg);
    backface-visibility: hidden;
    will-change: transform;
}

.v2-nav-link:hover .chevron {
    color: var(--v2-green);
}

/* Active (open) state */
.v2-nav-dropdown.is-open > .v2-nav-link,
.v2-nav-link[aria-expanded="true"] {
    color: var(--v2-green);
}

.v2-nav-link[aria-expanded="true"] .chevron {
    color: var(--v2-green);
}

/* Dropdown */
.v2-nav-dropdown {
    position: static;
}

/* ── Mega Menu (full-width panel) ── */
.v2-mega-menu {
    position: fixed;
    top: var(--v2-nav-h);
    left: 0;
    width: 100%;
    background: var(--v2-gray-900);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 2px solid var(--v2-green);
    padding: 48px 0;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    overflow: hidden;
    will-change: height, opacity, transform;
    z-index: 9998;
}

.v2-nav-dropdown.is-open > .v2-mega-menu,
.v2-nav-dropdown.is-animating > .v2-mega-menu {
    display: block;
    visibility: visible;
    pointer-events: auto;
}

.v2-nav-link[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.v2-mega-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Column */
.v2-mega-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.v2-mega-heading {
    font-family: var(--v2-font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--v2-green);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.v2-mega-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--v2-gray-400);
    text-decoration: none;
    transition: color 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

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

.v2-mega-item .dd-arrow {
    font-size: 12px;
    color: var(--v2-green);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.v2-mega-item:hover {
    color: var(--v2-white);
}

.v2-mega-item:hover .dd-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Featured column (right-most) */
.v2-mega-featured {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 28px;
    gap: 0;
}

.v2-mega-featured .v2-mega-heading {
    display: none;
}

.v2-mega-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v2-green);
    margin-bottom: 14px;
}

.v2-mega-feature-title {
    font-family: var(--v2-font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--v2-white);
    line-height: 1.3;
    margin-bottom: 10px;
}

.v2-mega-feature-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--v2-gray-400);
    margin-bottom: 20px;
}

.v2-mega-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--v2-green);
    text-decoration: none;
    transition: gap 0.2s;
}

.v2-mega-feature-link:hover {
    gap: 12px;
    color: var(--v2-white);
}

.v2-mega-feature-link i {
    font-size: 12px;
}

/* Right side */
.v2-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ── Domain Hosting button (purple filled) ── */
a.v2-nav-hosting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--v2-white);
    background: var(--v2-purple);
    border: 2px solid var(--v2-purple);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.v2-nav-hosting i {
    font-size: 12px;
}

a.v2-nav-hosting:hover {
    background: transparent;
    color: var(--v2-purple);
    border-color: var(--v2-purple);
}

/* Language selector */
.v2-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--v2-white);
    background: none;
    border: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.v2-lang-btn:hover {
    color: var(--v2-gray-400);
}

.v2-lang-btn .globe { font-size: 16px; }
.v2-lang-btn .chevron {
    font-size: 13px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-lang-dropdown { position: relative; }
.v2-lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--v2-gray-900);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
}

.v2-lang-dropdown:hover .v2-lang-dropdown-menu,
.v2-lang-dropdown.is-open .v2-lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v2-lang-dropdown:hover .v2-lang-btn .chevron {
    transform: rotate(180deg);
}

.v2-lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--v2-gray-400);
    transition: color 0.15s, background 0.15s;
}

.v2-lang-dropdown-item:hover {
    color: var(--v2-white);
    background: rgba(255,255,255,0.04);
}

.v2-lang-dropdown-item.active {
    color: var(--v2-white);
    font-weight: 600;
}

/* ── Mobile hamburger ── */
.v2-nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.v2-nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--v2-white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.v2-nav-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.v2-nav-burger.is-open span:nth-child(2) {
    opacity: 0;
}
.v2-nav-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
    .v2-nav-burger { display: flex; }
    .v2-nav-hosting { display: none; }

    .v2-nav-links {
        position: fixed;
        top: var(--v2-nav-h);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--v2-nav-h));
        background: var(--v2-black);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px 24px 28px;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
    }

    .v2-nav-links.is-open {
        transform: translateX(0);
    }

    .v2-nav-link {
        font-size: 20px;
        padding: 14px 0;
        width: 100%;
        white-space: normal;
        line-height: 1.3;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /* Mega menu collapses on mobile */
    .v2-mega-menu {
        position: static;
        border: none;
        border-bottom: none;
        background: transparent;
        padding: 4px 0 0 12px;
        transform: translateY(-6px);
    }

    .v2-mega-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .v2-mega-heading {
        font-size: 12px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .v2-mega-item {
        font-size: 15px;
        padding: 8px 0;
        white-space: normal;
        line-height: 1.45;
    }

    .v2-mega-featured {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .v2-nav {
        height: 68px;
    }

    .v2-nav-inner {
        height: 68px;
        gap: 16px;
    }

    .v2-nav-logo {
        margin-right: 0;
    }

    .v2-nav-logo img {
        height: 30px;
    }

    .v2-nav-burger {
        width: 36px;
        height: 36px;
    }

    .v2-nav-links {
        top: 68px;
        height: calc(100dvh - 68px);
        padding: 16px 18px 24px;
    }

    .v2-nav-right {
        gap: 4px;
    }

    .v2-nav-link {
        font-size: 18px;
        padding: 12px 0;
    }

    .v2-mega-inner {
        gap: 18px;
    }

    .v2-mega-featured {
        padding: 16px;
    }

    .v2-mega-feature-title {
        font-size: 18px;
    }
}

/* ── Spacer (nav clearance) ── */
.v2-nav-spacer {
    height: var(--v2-nav-h);
}
