/* --- Üldised Stiilid --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Päis ja Navigatsioon --- */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

.lang-switcher a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 5px;
    font-weight: bold;
}

.lang-switcher .active-lang {
    color: #3498db;
    text-decoration: underline;
}

/* --- Kangelase Sektsioon --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/misel-min.jpg');
    height: 90vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    margin-top: 60px; /* Päise kõrguse jagu */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* --- Nupud --- */
.cta-button {
    background-color: #3498db;
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* --- Sisu Sektsioonid --- */
.content-section {
    padding: 60px 0;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.content-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
}

.bg-light {
    background-color: #f4f7f9;
}

/* --- Veokipargi Galerii --- */
.fleet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* --- Jalus --- */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
}

/* --- Mobiilivaade --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 10px;
    }
    .hero {
        margin-top: 110px; /* Päise kõrgus mobiilis */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
}

/* --- Company Stats Dashboard --- */
.company-header {
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

.vtc-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.financial-dashboard {
    display: flex;
    height: 20px;
    width: 100%;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.financial-bar.income { background-color: #4caf50; height: 100%; }
.financial-bar.expense { background-color: #f44336; height: 100%; }

/* --- Members Section --- */
.member-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.member-info { font-size: 14px; text-align: left; }

/* --- Deliveries Section --- */
.delivery-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.driver-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.delivery-info { font-size: 14px; text-align: left; }