/* 
    Blelec Charging Station - Layout Styles
    Header, Navigation, Footer, and Grid System
*/

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.nav-left { flex: 1; display: flex; align-items: center; }
.nav-center { flex: 2; display: flex; justify-content: center; }
.nav-right { flex: 1; display: flex; justify-content: flex-end; }

.logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: -0.5px;
    font-weight: 700;
}

.logo-accent {
    color: var(--accent);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link i {
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.nav-item.dropdown:hover > .nav-link i {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 2rem;
}

.dropdown-item i {
    color: var(--accent);
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    color: var(--primary);
}

/* Footer Refinement */
.footer {
    background: #001a33;
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--white);
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    margin: 1.5rem 0;
}

.trust-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.badge-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsiveness Updates */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav { 
        flex-direction: row; 
        justify-content: space-between; 
        height: 70px; 
    }
    .nav-left { flex: none; }
    .nav-center { display: contents; } 
    .nav-right { display: none; } 
    
    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
        margin: 0;
        padding: 2rem;
    }
    
    .nav-list.active {
        display: flex;
        overflow-y: auto;
    }
    
    .nav-item {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        background: transparent;
        transition: max-height 0.4s ease;
    }

    .nav-item.dropdown.open .dropdown-menu {
        max-height: 500px;
        margin-top: 1rem;
    }

    .dropdown-item {
        justify-content: center;
        padding: 1rem;
    }
    
    .nav-toggle { 
        display: block; 
        z-index: 1000;
        margin-left: auto;
    }

    .service-item-grid, 
    .contact-grid-page, 
    .footer-grid, 
    .about-grid, 
    .services-grid, 
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .grid-reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .timeline-container {
        padding-left: 2rem;
    }

    .timeline-dot {
        left: -3.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
    }
}
