/* --- ÜLDISED SEADED --- */
:root {
    --primary: #1a1a1a;
    --accent: #c5a059;
    --light: #f9f9f9;
    --white: #ffffff;
    --form-bg: #f4f4f4;
    --text: #333;
    --text-muted: #666;
    --shadow: 0 15px 40px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; color: var(--text); line-height: 1.6; background: var(--white); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- NAVIGATSIOON --- */
.navbar {
    height: 80px;
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo a { text-decoration: none; color: var(--primary); font-size: 1.5rem; font-weight: 800; }
.logo span { color: var(--accent); }

.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px; background: var(--primary); transition: 0.3s; }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li a { text-decoration: none; color: var(--primary); margin-left: 30px; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }
.btn-small { background: var(--primary); color: white !important; padding: 10px 20px; border-radius: 2px; transition: 0.3s; }

/* --- HERO SEKTSIOON --- */
.hero {
    height: 65vh;
    min-height: 500px;
    background:
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url('img/terass.jpg');
    background-size: cover;
    background-position: center -15%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; font-weight: 800; }
.btn { display: inline-block; padding: 15px 35px; background: var(--accent); color: white; text-decoration: none; font-weight: bold; text-transform: uppercase; transition: 0.3s; cursor: pointer; border: none; }

/* --- VÄÄRTUSTE GRID --- */
.values-highlight { margin-top: -60px; position: relative; z-index: 10; }
.values-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    background: white; 
    padding: 40px; 
    box-shadow: var(--shadow); 
    gap: 20px; 
    text-align: center; 
}
.value-item i { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }
.value-item h4 { margin-bottom: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; }
.value-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; }

/* --- TEENUSTE SEKTSIIOON (KOOS PILTIDEGA) --- */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; font-weight: 800; text-transform: uppercase; }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px; 
}

.service-card { 
    background: white; 
    box-shadow: var(--shadow); 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    transition: 0.3s; 
}

.service-img { 
    height: 250px; 
    background-size: cover; 
    background-position: center; 
    transition: 0.5s; 
}

.service-card:hover .service-img { 
    transform: scale(1.05); 
}

.service-info { padding: 30px; flex-grow: 1; }
.service-info .sub-title { 
    font-size: 0.75rem; 
    color: var(--accent); 
    font-weight: 700; 
    text-transform: lowercase; 
    margin-bottom: 8px; 
    display: block; 
}
.service-info h3 { 
    font-size: 1.4rem; 
    color: var(--primary); 
    margin-bottom: 15px; 
    font-weight: 800; 
    text-transform: uppercase; 
}
.service-info p { color: var(--text-muted); font-size: 0.95rem; }

/* --- MEIST SEKTSIIOON --- */
.bg-light { background: var(--light); }
.about-flex { display: flex; align-items: center; gap: 80px; }
.about-img-box { flex: 1; position: relative; }
.about-img-box img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.experience-badge .number { display: block; font-size: 2rem; font-weight: 800; }
.experience-badge .text { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; }
.about-text { flex: 1.2; }
.about-text h2 { font-size: 2.8rem; margin-bottom: 20px; font-weight: 800; }
.about-list { list-style: none; margin-top: 25px; }
.about-list li { display: flex; align-items: center; margin-bottom: 12px; font-weight: 600; }
.about-list i { color: var(--accent); margin-right: 15px; }

/* --- PAKKUMISTE LEHT JA VORM --- */
.contact-header { background: var(--primary); padding: 160px 0 120px 0; color: white; position: relative; }
.contact-section { margin-top: -80px; padding-bottom: 100px; position: relative; z-index: 5; }
.contact-grid-wrap { display: grid; grid-template-columns: 1fr 1.5fr; background: white; box-shadow: 0 30px 60px rgba(0,0,0,0.15); border-radius: 12px; overflow: hidden; }
.contact-visual { background: var(--accent); color: white; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.info-row { display: flex; align-items: center; margin-bottom: 30px; }
.icon-box { width: 50px; height: 50px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 20px; }

.form-container { padding: 60px; background: var(--form-bg); }
.form-group { position: relative; margin-bottom: 30px; }

/* KULDNE KURSOR JA SISENDVÄLJAD */
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px 0; border: none; border-bottom: 2px solid #ddd; background: transparent; 
    font-size: 1rem; font-family: inherit; caret-color: #c5a059 !important; cursor: pointer;
    color: #000 !important; -webkit-text-fill-color: #000 !important;
}
.form-group input:focus, .form-group textarea:focus { cursor: text; outline: none; border-bottom-color: var(--accent); }
.form-group label { position: absolute; top: 15px; left: 0; color: #999; pointer-events: none; transition: 0.3s; }
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label, .form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label {
    top: -12px; font-size: 0.75rem; color: var(--accent); font-weight: 700;
}

.btn-full { width: 100%; padding: 20px; border-radius: 4px; border: none; background: var(--accent); color: white; font-weight: bold; text-transform: uppercase; cursor: pointer; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .about-flex { flex-direction: column; gap: 40px; }
    .contact-grid-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .values-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .menu-toggle { display: block; }
    .nav-links { position: fixed; top: 80px; right: -100%; flex-direction: column; background: white; width: 100%; height: 100vh; transition: 0.4s; }
    .nav-links.active { right: 0; }
}

/* --- MOBIILI KOHANDUSED (rakenduvad ainult ekraanile alla 768px) --- */
@media (max-width: 768px) {
    /* Hero sektsioon */
    .hero h1 {
        font-size: 2.2rem; /* Väiksem pealkiri mobiilis */
        padding: 0 10px;
    }

    /* Väärtuste sektsioon (4 kasti üksteise alla) */
    .values-grid {
        grid-template-columns: 1fr;
        margin-top: -30px;
        padding: 20px;
    }

    /* Teenuste kaardid (kitsamates oludes) */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-img {
        height: 200px; /* Veidi madalam pilt mobiilis */
    }

    /* Meist sektsioon (pilt ja tekst kohakuti) */
    .about-flex {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .about-list li {
        justify-content: center;
    }

    /* Navigatsioon ja Hamburger menüü */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .nav-links {
        display: none; /* Peidame tavamenüü */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex; /* Näitame kui on aktiivne */
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        margin-left: 0;
        font-size: 1.1rem;
    }

    /* Kontaktilehe kaardid (pakkumised.html) */
    .modern-contact-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .contact-page-hero h1 {
        font-size: 2.5rem;
    }
}