:root {
    --primary-color: #e61919;
    --primary-dark: #b30000;
    --dark-bg: #1a1a1a;
    --dark-text: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-bg);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.lang-switcher a {
    color: #999;
    text-decoration: none;
    margin: 0 5px;
    transition: var(--transition);
}

.lang-switcher a.active, .lang-switcher a:hover {
    color: var(--white);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text .site-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
    font-weight: 600;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
}

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

/* Hero Section */
.hero {
    background-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%), url('../images/hero_engine.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: #ddd;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 25, 25, 0.4);
}

.btn i {
    margin-left: 10px;
}

/* Features */
.features {
    background-color: var(--light-bg);
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}

.features-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    width: 40px;
}

.feature h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.feature p {
    font-size: 0.85rem;
    color: #666;
}

/* Brands */
.brands {
    padding: 80px 0;
}

.brands-header {
    margin-bottom: 50px;
}

.brands-header h3 {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.brands-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.brands-header p {
    max-width: 800px;
    color: #666;
}

.brands-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    filter: grayscale(100%);
    transition: var(--transition);
    padding: 10px;
    cursor: pointer;
}

.brand:hover {
    filter: grayscale(0%);
    color: var(--dark-text);
    transform: scale(1.05);
}

/* Contact */
.contact-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info-block {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info-block h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--dark-text);
}

.contact-info-block p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #555;
}

.contact-info-block p i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 400px;
    position: relative;
    z-index: 1; /* Fix for leaflet map overlapping header */
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #888;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .brands-logos {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        padding: 80px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        margin: 0 auto 30px auto;
    }
    
    .brands-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-inner {
        grid-template-columns: 1fr;
    }
    
    .contact-info-block {
        padding: 20px;
    }
    
    .contact-info-block p {
        font-size: 0.95rem;
        word-break: break-word;
    }
}
