/* --- MUUTUJAD JA ÜLDSEADED --- */
:root {
    --primary: #0f172a;      /* Sügavsinine */
    --accent: #fbbf24;       /* Akebau kollane */
    --accent-dark: #d97706;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- HEADER JA NAVIGATSIOON --- */
header {
    background: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { font-size: 1.6rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }

.nav-links { 
    display: flex; 
    gap: 25px; 
    list-style: none; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-dark); 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: var(--transition);
}

.nav-links a:hover { color: var(--accent-dark); }

.nav-phone { 
    background: var(--bg-alt); 
    padding: 8px 18px; 
    border-radius: 50px; 
    border: 1px solid var(--border); 
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- KEELEVALIK (Dropdown) --- */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 8px;
    min-width: 70px;
    z-index: 100;
    top: 100%;
    right: 0;
    border: 1px solid var(--border);
    overflow: hidden;
}

.lang-dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--primary);
    text-align: center;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lang-dropdown a:hover { background: var(--bg-alt); color: var(--accent-dark); }

.lang-switcher:hover .lang-dropdown { display: block; }

/* --- HERO SEKTSIOON --- */
.hero { padding: 80px 0; background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.hero h1 { 
    font-size: clamp(2.2rem, 5vw, 3.5rem); 
    line-height: 1.1; 
    margin-bottom: 24px; 
    font-weight: 800; 
    color: var(--primary);
}

.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 35px; }

.hero-actions { display: flex; gap: 16px; }

.btn {
    padding: 16px 32px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn:hover { background: var(--accent-dark); transform: translateY(-3px); }
.btn-secondary { background: var(--primary); color: white; }

.hero-image img { 
    width: 100%; 
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

/* --- AUTOMARKIDE SLIDER --- */
.brand-slider {
    padding: 50px 0;
    background: white;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.slider-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.logos { display: flex; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); }

.logos-slide {
    display: flex;
    animation: 30s slide infinite linear;
}

.logos-slide span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 50px;
    opacity: 0.25;
    transition: 0.3s;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* --- KATEGOORIAD --- */
.inventory { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.category-card {
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.category-card:hover { 
    border-color: var(--accent); 
    transform: translateY(-5px); 
    box-shadow: var(--shadow); 
}

.card-icon { 
    font-size: 2rem; 
    background: var(--bg-alt); 
    width: 60px; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 12px; 
}

.card-info h4 { font-size: 1.2rem; margin-bottom: 4px; }
.card-arrow { margin-left: auto; color: var(--accent); font-weight: bold; }

/* --- KONTAKTVORM --- */
.cta { padding: 80px 0; background: var(--bg-alt); }
.cta-box { 
    background: white; 
    padding: 50px; 
    border-radius: 24px; 
    box-shadow: var(--shadow); 
    max-width: 900px; 
    margin: 0 auto; 
}

.main-form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.full-width { grid-column: span 2; }

/* --- CAPTCHA --- */
.captcha-wrapper { background: #f9fafb; border: 1px solid #d1d5db; padding: 15px; width: fit-content; border-radius: 4px; }
.captcha-container { display: flex; justify-content: space-between; align-items: center; min-width: 270px; }
.captcha-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.captcha-label input { width: 22px; height: 22px; }

/* --- FOOTER --- */
footer { padding: 80px 0 30px; border-top: 1px solid var(--border); background: white; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 30px; margin-top: 60px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* --- MOBIILI KOHANDUS (NAVBAR PARANDUS) --- */
@media (max-width: 768px) {
    header { padding: 10px 0; }
    
    header .container {
        flex-direction: column; /* Logo ja menüü üksteise alla */
        gap: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap; /* Lubab linkidel minna mitmele reale */
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .nav-links li {
        font-size: 0.85rem;
    }

    .nav-phone {
        display: none; /* Peidame pika nupu mobiilis ruumi säästmiseks */
    }

    .lang-switcher {
        order: -1; /* Toob keelevaliku mobiilis ettepoole */
        margin-bottom: 5px;
    }

    /* Vormi ja Hero kohandus */
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-image { order: -1; }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .cta-box { padding: 30px 20px; }
    .captcha-wrapper { width: 100%; }
    .captcha-container { min-width: 100%; }
}