/* ============================================================
   HEADER — extracted from Header.astro + HeaderMobile.astro
   ============================================================ */

@media (max-width: 1200px) {
    .header {
        display: none !important;
    }
}

.nav__link.active {
    /* color: var(--color-meteor); */
}

.nav__item {
    position: relative;
}

.has-mega {
    position: relative;
}

.nav__arrow {
    transition: transform 0.3s ease;
}

.nav__item.is-open .nav__arrow {
    transform: rotate(180deg);
}

/* V2 Dropdown Styles: Mega Menu */
.dropdown-menu.v2-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    padding-top: 20px;
    opacity: 0;
    visibility: hidden;
    translate: 0 15px;
    transition:
        opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        translate 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        visibility 0.4s;
    z-index: 100;
    pointer-events: none;
}

.dropdown-menu.v2-dropdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
}

.has-dropdown.is-open .dropdown-menu.v2-dropdown {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    pointer-events: auto;
}

.v2-dropdown .dropdown-inner {
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.mega-menu-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 15px;
}

.mega-menu-info h3 {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mega-menu-info p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mega-explore-link {
    color: var(--color-meteor);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
    transition: color 0.3s ease;
}

.mega-explore-link:hover {
    color: var(--color-white);
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-menu-links--2cols {
    flex-direction: column;
}

.dropdown-link-v2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-link-v2__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.dropdown-link-v2__icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    flex-shrink: 0;
    fill: currentColor;
}

.dropdown-link-v2 small {
    font-size: 12px;
    color: #888;
    transition: color 0.3s ease;
    padding-left: 33px;
}

.dropdown-link-v2:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dropdown-link-v2:hover .dropdown-link-v2__title {
    color: var(--color-meteor);
}

.dropdown-link-v2:hover small {
    color: #bbb;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.25rem;
}

/* ── Smart Peek ── */
@media (min-width: 1201px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 20px var(--hero-padding-x);
        z-index: 99999;
        -webkit-transform: translateZ(0);
        background-color: var(--color-black);
        transition:
            background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
            padding 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
            transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
            box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .header[data-transparent="true"] {
        background: transparent;
    }

    .header.scrolled {
        background-color: var(--color-black);
        padding: 14px var(--hero-padding-x);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .header.peek-hidden {
        transform: translateY(-100%);
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header__logo img {
    display: block;
    height: 32px;
    width: auto;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--gap-nav);
}

.nav__mobile-logo {
    display: none;
}

.nav__link {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--color-nev-orange);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 22px;
    background: var(--gradient-brand);
    color: var(--color-heavy-metal);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
}

.nav__cta:hover {
    transform: translateY(-2px);
    color: var(--color-heavy-metal);
}

.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

.header__menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 1200px) {
    .header__logo img {
        height: 28px;
    }

    .header__nav {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 99;
        padding: 40px;
    }

    .header__nav.is-open {
        display: flex;
    }

    .nav__mobile-logo {
        display: block;
        margin-bottom: 20px;
    }

    .nav__mobile-logo img {
        height: 28px;
        width: auto;
    }

    .header__menu-toggle {
        display: flex;
    }

    .nav__link {
        font-size: 24px;
    }

    .nav__cta {
        font-size: 24px;
        padding: 16px 48px;
    }
}

@media (max-width: 768px) {
    .header__logo img {
        height: 22px;
    }

    .nav__mobile-logo img {
        height: 24px;
    }

    .header__menu-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .header__menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .header__menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ============================================================
   MOBILE HEADER — extracted from HeaderMobile.astro
   ============================================================ */

.header-mobile-v1 {
    display: none;
}

a.hotline-number {
    line-height: 1;
}

@media (min-width: 1201px) {
    a.hotline-number {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .header-mobile-v1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 16px var(--hero-padding-x);
        z-index: 99999;
        -webkit-transform: translateZ(0);
        background-color: var(--color-black);
        transition:
            background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
            padding 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
            transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
            box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .header-mobile-v1[data-transparent="true"] {
        background: transparent;
    }

    .header-mobile-v1.scrolled {
        background-color: var(--color-black);
        padding: 12px var(--hero-padding-x);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .header-mobile-v1.peek-hidden {
        transform: translateY(-100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
    }
}

.logo-v1 {
    position: relative;
    z-index: 10001;
    display: flex;
    align-items: center;
}

.logo-v1 img {
    max-height: 24px;
    height: 6vw;
    width: auto;
}

.menu-toggle-v1 {
    position: relative;
    z-index: 10001;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 18px;
    width: 30px;
    padding: 0;
}

.menu-toggle-v1 .line {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    display: block;
    transform-origin: center;
}

/* Mega Menu Overlay */
.mega-menu-v1 {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: 10000;
    display: none;
    overflow-y: auto;
}

.mega-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 150px var(--hero-padding-x) 40px var(--hero-padding-x);
    overflow: auto;
}

.mega-menu-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin: auto 0;
}

.nav-v1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-link-v1 {
    font-size: clamp(40px, 8vw, 70px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    line-height: 1;
    overflow: hidden;
}

.nav-link-v1 .link-text {
    display: block;
    transition: color 0.3s ease;
}

.nav-link-v1:hover .link-text {
    color: var(--color-meteor);
}

.contact-info-v1 {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hotline-title {
    font-size: 14px;
    color: var(--color-meteor);
    font-weight: 700;
    letter-spacing: 2px;
}

.hotline-number {
    display: block;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.hotline-number:hover {
    opacity: 0.8;
}

.email-link {
    font-size: 18px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.email-link:hover {
    color: white;
}