/* ============================================================
   TECOIL HEADER — CLEAN FINAL VERSION  
   EXACT MATCH TO team.html  
   Fonts: Roboto + Montserrat
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Montserrat:wght@600;700&display=swap');

:root {
    --blue-dark: #002d53;
    --blue-deep: #001b3f;
    --blue-light: #0052a5;
    --yellow: #fdc300;
    --white: #ffffff;
    --dropdown-bg: rgba(0, 26, 58, 0.98);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   HEADER WRAPPER
============================================================ */
.header-advanced {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(135deg, rgba(0,45,83,0.96), rgba(0,26,58,0.96));
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}

/* ============================================================
   TOP BAR
============================================================ */
.header-top-bar {
    background: rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
}

.top-bar-content {
    max-width: 1650px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.75);
    font-family: Roboto, sans-serif;
    font-size: 14px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 25px;
}

/* ============================================================
   MAIN NAV WRAPPER
============================================================ */
.header-main-nav {
    padding: 22px 0;
}

.nav-content {
    max-width: 1650px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* TRUE 3-COLUMN LAYOUT — LOGO | MENU | CTA */
.header-main-nav .nav-content {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    width: 100% !important;
    gap: 40px !important;
}

/* Center menu flexibly and allow shrinking */
.header-main-nav .nav-menu {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* CTA always visible */
.header-main-nav .cta-button {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* ============================================================
   LOGO
============================================================ */
.logo-advanced {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 52px;
}

.logo-title {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--white);
}

.logo-tagline {
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--yellow);
}

/* ============================================================
   MEGA MENU — EXACT STYLE MATCH (team.html)
============================================================ */

/* Base dropdown container */
.sub-menu.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;

    min-width: 340px !important;
    padding: 18px 0 !important;

    background: rgba(0, 26, 58, 0.98) !important;
    border-radius: 16px !important;

    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28) !important;

    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(12px) !important;
    transition: all 0.25s ease !important;

    z-index: 999999 !important;
}

/* Show dropdown on hover */
.main-menu > li:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0px) !important;
}

/* Each dropdown <li> wrapper */
.mega-item,
.sub-menu > li {
    list-style: none !important;
}

/* FINAL DROPDOWN ROW LAYOUT (ICON + TEXT) */
.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important; /* matches universal header */
    padding: 12px 28px !important;
}

/* Hover effect: move ONLY the text group, not the icon */
.dropdown-item:hover {
    background: rgba(253,195,0,0.12) !important;
}

.dropdown-item:hover .dropdown-text-group {
    transform: translateX(6px);
    transition: 0.25s ease;
}


/* ============================================================
   TEXT BLOCK INSIDE DROPDOWN
============================================================ */

.dropdown-text-group,
.dropdown-text-box {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.3 !important;
}

.dropdown-text-group strong,
.dropdown-text-box strong {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.dropdown-text-group small,
.dropdown-text-box small {
    font-size: 12px !important;
    color: rgba(255,255,255,0.65) !important;
}

/* Hover: text becomes yellow */
.dropdown-item:hover strong,
.dropdown-item:hover small {
    color: #fdc300 !important;
}
/* ============================================================
   MOBILE MENU (Exact team.html behaviour)
============================================================ */

@media (max-width: 1024px) {

    /* Hide desktop menu */
    .nav-menu .main-menu {
        display: none !important;
    }

    /* Show burger */
    .mobile-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        cursor: pointer !important;
        padding: 6px !important;
    }

    .mobile-toggle span {
        width: 28px;
        height: 3px;
        background: #ffffff !important;
        border-radius: 3px;
        transition: 0.3s ease;
    }

    /* Open animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    /* Mobile dropdown container */
    .mobile-menu-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background: #001b3f;
        padding: 40px 25px;
        transition: right 0.35s ease;
        z-index: 20000;
    }

    /* Slide-in */
    .mobile-menu-panel.active {
        right: 0;
    }

    /* Mobile menu links */
    .mobile-menu-panel ul {
        list-style: none;
        padding: 0;
    }

    .mobile-menu-panel li {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu-panel a {
        font-size: 18px;
        color: #ffffff !important;
        text-decoration: none;
        font-family: Roboto, sans-serif;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile dropdown arrow */
    .mobile-menu-panel a svg {
        width: 12px;
        height: 12px;
        opacity: 0.7;
    }

    /* Mobile submenu */
    .mobile-menu-panel .sub-menu {
        display: none;
        padding-left: 18px;
        margin-top: 10px;
    }

    /* Show submenu when parent is expanded */
    .mobile-menu-panel .open > .sub-menu {
        display: block !important;
    }
}

/* ============================================================
   KONTAKT BUTTON FIX
============================================================ */

.cta-button {
    background: #fdc300 !important;
    color: #002d53 !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    border-radius: 100px !important;

    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.cta-button:hover {
    background: #ffe15a !important;
    color: #002d53 !important;
}

/* Make text always white in main menu (desktop) */
.header-main-nav .nav-menu .main-menu .cta-button,
.header-main-nav .nav-menu .main-menu .cta-button * {
    color: #002d53 !important;
}

/* Fix top bar phone/email color */
.header-top-bar a,
.header-top-bar,
.header-top-bar * {
    color: #ffffff !important;
}
/* Remove white underline in top-bar */
.header-top-bar a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.header-top-bar a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Ensure right CTA never hides */
.header-main-nav .cta-button {
    margin-left: 40px !important;
    flex-shrink: 0 !important;
}

/* Medium screens */
@media (max-width: 1400px) {
    .header-main-nav .main-menu {
        gap: 28px !important;
    }
}

/* Tablets / small laptops */
@media (max-width: 1200px) {
    .header-main-nav .main-menu {
        gap: 20px !important;
    }
}

/* Very small screens — stack nav properly */
@media (max-width: 1024px) {
    .header-main-nav .nav-content {
        grid-template-columns: auto auto auto !important;
    }
    .header-main-nav .main-menu {
        gap: 16px !important;
    }
}
/* Ensure logo block never expands too wide */
.logo-advanced {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
/* REMOVE underline from phone/email */
.header-top-bar a {
    text-decoration: none !important;
    color: #ffffff !important;
}

.header-top-bar a:hover {
    color: #fdc300 !important;
}
.main-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
}
.nav-menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}
/* ============================
   FIX HEADER TO MATCH UNIVERSAL VERSION
============================ */

/* 1. Make ALL menu links white (normal state) */
.header-main-nav .main-menu > li > a,
.header-main-nav .main-menu > li > a .nav-text {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Hover = Yellow */
.header-main-nav .main-menu > li:hover > a,
.header-main-nav .main-menu > li:hover > a .nav-text {
    color: #fdc300 !important;
}

/* 2. FIX menu bullet dots showing between items */
.header-main-nav .main-menu li {
    list-style: none !important;
}
.header-main-nav .main-menu li::marker {
    display: none !important;
}

/* 3. REMOVE grey horizontal line under header */
.header-main-nav hr,
.header-advanced hr,
.header-advanced .separator {
    display: none !important;
}

/* 4. FIX menu alignment (logo | menu | CTA) */
.header-main-nav .nav-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* Keep menu centered and responsive */
.header-main-nav .nav-menu {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Control spacing between menu items */
.header-main-nav .main-menu {
    display: flex !important;
    gap: 36px !important;
}

/* 5. CTA button aligned correctly */
.header-main-nav .cta-button {
    flex-shrink: 0 !important;
    margin-left: 30px !important;
}

/* 6. Fix the grey dots between menu items */
.header-main-nav .main-menu li::before {
    content: "" !important;
    display: none !important;
}
/* Make logo block display correctly in two rows */
.logo-advanced {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important; /* nice spacing */
}

/* Prevent the logo image from shrinking or distorting */
.logo-advanced .logo-img {
    height: 52px !important;
    width: auto !important;
}

/* Style text under the logo to match universal header */
.logo-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
}

.logo-tagline {
    font-size: 13px !important;
    letter-spacing: 2px !important;
    margin-top: 0px !important;
    color: #fdc300 !important;
}
/* Remove underline from Kontakt button */
.cta-button,
.cta-button * {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Proper size for SVG icons */
.dropdown-icon-svg {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Perfect vertical alignment for dropdown icons */
.dropdown-icon-box img.dropdown-icon-svg {
    margin-top: 2px !important;
}
/* ===============================
   FINAL WORKING ICON SYSTEM
================================= */

.dropdown-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;

    display: flex;`1
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.dropdown-icon-svg {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

/* Remove emoji fallback entirely */
.dropdown-icon-emoji {
    display: none !important;
}
/* ============================================
   MAIN NAV MENU (Elementor Shortcode Menu)
============================================ */

/* Horizontal Menu Layout */
.elementor-header .elementor-nav-menu, 
.elementor-shortcode .main-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Top Level Menu Items */
.elementor-shortcode .main-menu > li > a {
    color: #FFFFFF !important;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Hover Color */
.elementor-shortcode .main-menu > li:hover > a {
    color: #FFD449 !important;
}

/* Remove Bullets */
.elementor-shortcode .main-menu, 
.elementor-shortcode .main-menu li {
    list-style: none !important;
}

/* Dropdown Arrow */
.elementor-shortcode .main-menu .dropdown-icon {
    margin-left: 4px;
    stroke: #FFFFFF;
    transition: 0.3s;
}

/* Rotate arrow on hover */
.elementor-shortcode .main-menu > li:hover .dropdown-icon {
    transform: rotate(180deg);
}


/* ============================================
   DROPDOWN CONTAINER (Mega Menu)
============================================ */

.elementor-shortcode .dropdown-menu {
    background: #062C52;
    border-radius: 14px;
    padding: 20px 26px;
    min-width: 300px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.25);
    position: absolute;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s all ease;
    margin-top: 12px;
}

/* Show dropdown on hover */
.elementor-shortcode .main-menu > li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}


/* ============================================
   MEGA MENU ITEMS
============================================ */

.elementor-shortcode .mega-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}

/* Icon Box */
.elementor-shortcode .dropdown-icon-inline svg {
    width: 32px;
    height: 32px;
}

/* Text Group */
.elementor-shortcode .dropdown-text-group strong {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.elementor-shortcode .dropdown-text-group small {
    color: #B5C4D6;
    font-size: 13px;
    font-weight: 400;
}

/* Hover background */
.elementor-shortcode .mega-item:hover {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
}
