﻿/* =====================================
   HEADER STYLES - FIXED STICKY VERSION
   The header stays fixed at top when scrolling
   All toggles work perfectly on mobile
===================================== */

:root {
    --primary: #2b5e3b;
    --primary-dark: #1e4529;
    --secondary: #d97706;
    --secondary-dark: #b95f04;
    --mpl-blue: #2563eb;
    --srs-green: #059669;
    --futura-amber: #d97706;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --header-full-height: 180px; /* Total height of all three sections */
    --header-shrink-height: 70px; /* Height when scrolled (navbar only) */
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== HEADER WRAPPER - FIXED POSITION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

    /* Header states */
    .header.header-hidden {
        transform: translateY(-100%);
    }

/* Add padding to body to prevent content from hiding behind fixed header */
body {
    padding-top: var(--header-full-height);
    transition: padding-top 0.3s ease;
}

    body.header-shrink {
        padding-top: var(--header-shrink-height);
    }

/* ===== GROUP BANNER ===== */
.group-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%);
    padding: 8px 0;
    border-bottom: 2px solid var(--secondary);
    transition: all 0.3s ease;
}

.header-shrink .group-banner {
    display: none;
}

.group-banner-content {
    text-align: center;
}

.group-badge {
    color: var(--white);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

    .group-badge::before,
    .group-badge::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 30px;
        height: 1px;
        background: var(--secondary);
    }

    .group-badge::before {
        left: -20px;
    }

    .group-badge::after {
        right: -20px;
    }

/* ===== GROUP COMPANIES SHOWCASE ===== */
.group-showcase {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header-shrink .group-showcase {
    display: none;
}

.companies-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.company-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 8px 12px;
    background: var(--white);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    min-width: 180px;
}

    .company-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        border-color: var(--company-color);
    }

    .company-card.active {
        background: var(--company-color);
        border-color: var(--company-color);
    }

        .company-card.active .company-title,
        .company-card.active .company-subtitle {
            color: var(--white);
        }

.company-logo-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.company-subtitle {
    margin: 0;
    font-size: 0.75rem;
    color: var(--gray);
    line-height: 1.2;
}

.company-card.active .company-subtitle {
    color: rgba(255,255,255,0.9);
}

/* ===== NAVBAR - STICKY PART ===== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Futura Brand */
.futura-brand {
    flex-shrink: 0;
}

.futura-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.futura-logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.futura-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.futura-brand-text {
    display: flex;
    flex-direction: column;
}

.futura-brand-main {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.futura-brand-sub {
    font-size: 2rem;
    color: var(--gray);
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: var(--transition);
}

    .nav-link:hover {
        color: var(--primary);
        background: rgba(43, 94, 59, 0.05);
    }

.nav-item.active .nav-link {
    color: var(--primary);
    font-weight: 600;
    background: rgba(43, 94, 59, 0.08);
}

/* Dropdown Toggle */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    list-style: none;
    padding: 8px 0;
    margin: 5px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

    .dropdown-link:hover {
        background: rgba(43, 94, 59, 0.05);
        color: var(--primary);
        padding-left: 25px;
    }

    .dropdown-link.view-all {
        color: var(--secondary);
        font-weight: 600;
    }

        .dropdown-link.view-all:hover {
            color: var(--secondary-dark);
        }

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

    .action-btn:hover {
        background: rgba(43, 94, 59, 0.1);
        color: var(--primary);
    }

    .action-btn.active {
        background: var(--primary);
        color: var(--white);
    }

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 0;
    background: transparent;
}

    .menu-toggle span {
        width: 22px;
        height: 2px;
        background: var(--dark);
        border-radius: 2px;
        transition: var(--transition);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--primary);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--primary);
    }

/* Search Overlay - Fixed Position */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    z-index: 2000;
    padding: 15px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

    .search-overlay.active {
        transform: translateY(0);
    }

.search-wrapper {
    display: flex;
    gap: 10px;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transition: var(--transition);
}

    .search-input:focus {
        outline: none;
        border-color: var(--secondary);
        background: rgba(255,255,255,0.15);
    }

    .search-input::placeholder {
        color: rgba(255,255,255,0.6);
    }

.search-submit {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

    .search-submit:hover {
        background: var(--secondary-dark);
        transform: scale(1.05);
    }

.search-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

    .search-close:hover {
        background: rgba(255,255,255,0.2);
        transform: rotate(90deg);
    }

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 3000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

    .mobile-menu.active {
        right: 0;
    }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--primary);
}

.mobile-futura-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-futura-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mobile-futura-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
}

.mobile-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

    .mobile-close-btn:hover {
        background: rgba(255,255,255,0.3);
        transform: rotate(90deg);
    }

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-link {
    display: block;
    padding: 12px 25px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

    .mobile-link:hover,
    .mobile-link.active {
        background: rgba(43, 94, 59, 0.05);
        color: var(--primary);
        border-left-color: var(--primary);
    }

/* Mobile Dropdown */
.mobile-dropdown {
    border-bottom: 1px solid var(--border);
}

.mobile-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--dark);
}

    .mobile-dropdown-header:hover {
        background: rgba(43, 94, 59, 0.05);
    }

.mobile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    display: none;
    background: #f1f5f9;
    padding: 8px 0;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
}

.mobile-sub-link {
    display: block;
    padding: 10px 35px;
    color: var(--dark-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

    .mobile-sub-link:hover {
        background: var(--white);
        color: var(--primary);
        padding-left: 40px;
    }

    .mobile-sub-link.view-all {
        color: var(--secondary);
        font-weight: 600;
    }

.mobile-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.mobile-section-title {
    padding: 15px 25px 5px;
    color: var(--gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.company-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 1025px) {
    .desktop-nav {
        display: block;
    }

    .menu-toggle {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .futura-brand-main {
        font-size: 1.2rem;
    }

    .futura-brand-sub {
        display: none;
    }

    .search-overlay .search-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-full-height: 160px;
    }

    .companies-grid {
        gap: 15px;
    }

    .company-card {
        min-width: 150px;
        padding: 6px 15px 6px 10px;
    }

    .company-logo-wrapper {
        width: 38px;
        height: 38px;
    }

    .company-title {
        font-size: 0.9rem;
    }

    .company-subtitle {
        font-size: 0.65rem;
    }

    .navbar-container {
        height: 65px;
    }

    .futura-brand-main {
        font-size: 1.1rem;
    }

    .futura-logo-icon {
        width: 50px;
        height: 50px;
    }

    .action-btn {
        width: 38px;
        height: 38px;
    }

    .search-overlay .search-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    :root {
        --header-full-height: 150px;
    }

    .group-badge {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

        .group-badge::before,
        .group-badge::after {
            width: 15px;
        }

    .companies-grid {
        gap: 10px;
    }

    .company-card {
        min-width: 130px;
        padding: 5px 10px 5px 8px;
    }

    .company-logo-wrapper {
        width: 32px;
        height: 32px;
    }

    .company-title {
        font-size: 0.8rem;
    }

    .company-subtitle {
        display: none;
    }

    .navbar-container {
        height: 60px;
    }

    .futura-brand-main {
        font-size: 1rem;
    }

    .futura-logo-icon {
        width: 32px;
        height: 32px;
    }

    .action-btn {
        width: 35px;
        height: 35px;
    }

    .mobile-menu {
        max-width: 280px;
    }
}

/* Print Styles */
@media print {
    .header {
        position: relative;
        box-shadow: none;
    }

    body {
        padding-top: 0;
    }

    .group-banner,
    .group-showcase,
    .search-overlay,
    .mobile-menu,
    .mobile-overlay,
    .menu-toggle,
    .search-toggle {
        display: none !important;
    }
}
