/* Header Include Styles - Expanding Search Bar */

/* Temporarily hide logo badge and separator */
.logo-badge {
    display: none !important;
}

.logo-separator {
    display: none !important;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 999;
}

.search-overlay.active {
    background: rgba(0, 0, 0, 0.7);
    pointer-events: all;
}

.search-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 700px;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
}

.search-expanded.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.search-input-large {
    width: 100%;
    padding: 20px 60px 20px 24px;
    font-size: 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
    font-family: var(--font-primary);
}

.search-input-large:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.search-icon-large {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.search-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 20px;
    color: var(--gray-600);
}

.search-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.search-suggestions {
    display: grid;
    gap: 12px;
}

.search-suggestion-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--gray-700);
}

.search-suggestion-item:hover {
    background: var(--accent);
    color: white;
    transform: translateX(4px);
}

.search-suggestion-icon {
    font-size: 20px;
    opacity: 0.6;
}

.search-suggestion-text {
    font-size: 14px;
    font-weight: 500;
}

/* Hide menu when search is active */
.nav-menu {
    transition: all 0.3s ease;
}

body.search-active .nav-menu {
    opacity: 0;
    pointer-events: none;
}

body.search-active .dropdown .btn-search:first-child {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Menu - Modern Full Screen Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-container {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.25s,
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}

.mobile-menu-overlay.active .mobile-menu-container {
    opacity: 1;
    transform: translateY(0);
}

/* Close Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    z-index: 10;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Menu Content */
.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 90%;
    margin: 0 auto;
    width: 100%;
    padding: 0 0 40px;
}

/* Limit width on phones only */
@media (max-width: 767px) {
    .mobile-menu-content {
        max-width: 500px;
    }
}

/* Logo */
.mobile-menu-logo {
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.mobile-menu-divider {
    height: 3px;
    background: linear-gradient(90deg, #f39c12 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
    margin-top: 20px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

/* Navigation */
.mobile-menu-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-menu-item {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(0.1s + var(--item-index) * 0.1s);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-link:active {
    transform: translateX(8px);
}

.mobile-menu-link:active::before {
    width: 100%;
}

.mobile-menu-link-text {
    flex: 1;
}

.mobile-menu-link-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #f39c12;
}

.mobile-menu-link:active .mobile-menu-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Dropdown Styles */
.mobile-menu-dropdown .dropdown-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    opacity: 0.7;
    color: #f39c12;
}

.mobile-menu-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-dropdown.active .mobile-submenu {
    max-height: 600px;
}

.mobile-submenu-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-dropdown.active .mobile-submenu-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    padding: 16px 0 16px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #f39c12;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu-link:active {
    color: white;
    padding-left: 28px;
}

.mobile-submenu-link:active::before {
    opacity: 1;
}

/* Nested Mobile Submenu (3rd level) */
.mobile-submenu-dropdown {
    position: relative;
}

.mobile-submenu-toggle {
    justify-content: space-between;
}

.mobile-submenu-toggle .submenu-arrow {
    transition: transform 0.3s ease;
}

.mobile-submenu-dropdown.expanded .submenu-arrow {
    transform: rotate(180deg);
}

.mobile-nested-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.12) 0%, rgba(230, 126, 34, 0.08) 100%);
    border-left: 3px solid #f39c12;
    border-radius: 0 8px 8px 0;
    margin-left: 16px;
}

.mobile-submenu-dropdown.expanded .mobile-nested-submenu {
    max-height: 500px;
    padding: 12px 0;
    margin-top: 12px;
}

.mobile-nested-submenu .mobile-submenu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nested-submenu .mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-nested-submenu .mobile-submenu-link {
    padding: 14px 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-nested-submenu .mobile-submenu-link:active {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.mobile-nested-submenu .mobile-submenu-link::before {
    content: '→';
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    opacity: 0.6;
    margin-right: 10px;
    font-size: 12px;
    color: #f39c12;
    transform: none;
}

/* First item (Overzicht) styling */
.mobile-nested-submenu .mobile-submenu-item:first-child .mobile-submenu-link {
    font-weight: 600;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 0 6px 0 0;
}

.mobile-nested-submenu .mobile-submenu-item:first-child .mobile-submenu-link::before {
    content: '★';
    opacity: 1;
}

/* Action Button */
.mobile-menu-actions {
    margin-top: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.mobile-menu-cta {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-menu-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.mobile-menu-cta:hover::before {
    left: 100%;
}

.mobile-menu-cta:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.mobile-menu-cta svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-cta:active svg {
    transform: translateX(4px);
}

/* Footer Contact */
.mobile-menu-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
}

.mobile-contact-item:active {
    color: #f39c12;
    transform: translateX(4px);
}

.mobile-contact-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile toggle animation when active */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-toggle span {
    transition: all 0.3s ease;
}

/* Call Button Styles - HIDDEN BY DEFAULT */
.btn-call {
    display: none !important;
}

/* Hide elements on tablets and mobile */
@media (max-width: 1100px) {
    .top-bar {
        display: none !important;
    }
    .nav-actions .dropdown {
        display: none !important;
    }
    .nav-actions #searchToggle {
        display: none !important;
    }
    .nav-actions .btn-quote {
        display: none !important;
    }
    .logo-badge {
        display: none !important;
    }
    .logo-separator {
        display: none !important;
    }

    /* Mobile nav-wrapper adjustments */
    .nav-wrapper {
        padding: 12px 0;
        display: flex;
        align-items: center;
    }

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

    /* Logo should not grow on mobile */
    .logo {
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Better spacing on mobile - clean layout */
    .nav-actions {
        gap: 0;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        margin-left: auto;
        margin-right: 8px;
    }

    .mobile-toggle {
        flex-shrink: 0;
        display: flex;
    }

    /* Add subtle grey accent border on mobile for clean, elegant look */
    .main-nav {
        border-top: 1px solid #e5e7eb;
    }
}

/* Phone-only styles (not tablets) */
@media (max-width: 767px) {
    /* Show call button on phones only */
    .btn-call {
        display: flex !important;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: transparent;
        color: var(--gray-700);
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        text-decoration: none;
        flex-shrink: 0;
    }

    .btn-call:active {
        background: var(--gray-100);
        transform: scale(0.92);
    }
}
