/* Google Fonts - Montserrat ja Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@300;400;700&display=swap');

/* Brändivärit suunnitelman mukaan */
:root {
    --metsanvihrea: #2D5A27;
    --pellavanbeige: #F5F5DC;
    --lehdenvihrea: #8DB600;
    --tekstimusta: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    background-color: var(--pellavanbeige);
    color: var(--tekstimusta);
    line-height: 1.6;
}

/* Typografia - Suunnitelman mukaan */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--metsanvihrea);
}

h1 {
    font-size: 32px;
    margin-bottom: 1rem;
}

h2 {
    font-size: 28px;
    margin-bottom: 1rem;
}

h3 {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

p {
    font-size: 16px;
    margin-bottom: 1rem;
}

/* Kuvien responsiivisuus */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* HEADER - OHUEMPI */
header {
    background-color: var(--metsanvihrea);
    padding: 0.75rem 1rem; /* MUUTETTU: 1rem → 0.75rem */
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px; /* MUUTETTU: 24px → 22px */
    color: white;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Hamburger-valikko (mobiili) */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 24px; /* MUUTETTU: 28px → 24px */
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle:focus {
    outline: 2px solid var(--lehdenvihrea);
}

/* Navigaatio - mobiilissa piilotettu oletuksena */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 0;
}

/* Kun valikko avataan mobiilissa */
nav ul.show {
    display: flex;
}

nav li {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

nav li:last-child {
    border-bottom: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 0.75rem 1rem; /* MUUTETTU: 1rem → 0.75rem 1rem */
    display: block;
    transition: background-color 0.3s;
}

nav a:hover,
nav a:focus {
    background-color: rgba(255,255,255,0.1);
    outline: none;
}

/* Hero-osio - KOKO KUVA NÄKYY */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    background-image: url('hero-image.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--pellavanbeige);
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* UUSI: Haalea tausta tekstille */
.hero h1,
.hero p,
.hero .btn-tarjous {
    position: relative;
    z-index: 2;
}

.hero h1 {
    background-color: rgba(45, 90, 39, 0.85); /* Tummanvihreä haalea tausta */
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 32px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero p {
    background-color: rgba(45, 90, 39, 0.75); /* Hieman läpinäkyvämpi */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 18px;
    margin-bottom: 2rem;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Sisältö-osiot */
.content-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h1,
.content-section h2 {
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
}

/* Miten toimii -osio - KORJATTU */
.how-it-works {
    background-color: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem; /* MUUTETTU: 2rem → 2.5rem */
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--pellavanbeige); /* LISÄTTY: Tausta */
    border-radius: 8px; /* LISÄTTY */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* LISÄTTY */
}

.step-number {
    width: 70px; /* MUUTETTU: 60px → 70px */
    height: 70px; /* MUUTETTU: 60px → 70px */
    background-color: var(--lehdenvihrea);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; /* MUUTETTU: 28px → 32px */
    font-weight: bold;
    margin: 0 auto 1.5rem auto; /* MUUTETTU: 1rem → 1.5rem */
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* LISÄTTY */
}

.step h3 {
    color: var(--metsanvihrea);
    font-size: 22px; /* LISÄTTY */
    margin-bottom: 0.75rem; /* LISÄTTY */
}

.step p {
    color: var(--tekstimusta);
    font-size: 16px; /* LISÄTTY */
    line-height: 1.6; /* LISÄTTY */
    margin-bottom: 0; /* LISÄTTY */
}

/* CTA-osio */
.cta-section {
    background-color: var(--metsanvihrea);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 3rem;
}

.cta-section h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Palvelugrid - Mobile First (allekkain) */
.palvelu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.palvelu-grid article {
    background-color: white;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid var(--lehdenvihrea);
}

.palvelu-grid h3 {
    color: var(--metsanvihrea);
    margin-bottom: 1rem;
}

.palvelu-grid p {
    margin-bottom: 0;
}

/* Lomake */
.contact-form {
    max-width: 600px;
    margin-top: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--metsanvihrea);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--metsanvihrea);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--lehdenvihrea);
    box-shadow: 0 0 0 3px rgba(141, 182, 0, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* CTA-nappi - Modernimpi */
.btn-tarjous {
    background: linear-gradient(135deg, var(--lehdenvihrea) 0%, #7a9e00 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-tarjous:hover {
    background: linear-gradient(135deg, #7a9e00 0%, var(--lehdenvihrea) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.btn-tarjous:focus {
    outline: 3px solid white;
    outline-offset: 3px;
}

/* Footer */
footer {
    background-color: var(--metsanvihrea);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 0;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* RESPONSIIVISUUS - Työpöytä */
@media (min-width: 768px) {
    /* Piilota hamburger-nappi */
    .menu-toggle {
        display: none;
    }
    
    /* Header flex-layout */
    .header-content {
        padding: 0 1rem;
    }
    
    nav {
        flex: 1;
    }
    
    /* Näytä navigaatio aina työpöydällä */
    nav ul {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-end;
        gap: 0;
    }
    
    nav li {
        border-bottom: none;
    }
    
    nav a {
        padding: 0.5rem 1.5rem; /* MUUTETTU: 0.75rem → 0.5rem */
    }
    
    /* Hero suuremmaksi */
    .hero {
        min-height: 400px;
        padding: 4rem 2rem;
    }
    
    .hero h1 {
        font-size: 48px;
        padding: 1.5rem 3rem;
    }
    
    .hero p {
        font-size: 22px;
        padding: 1rem 2rem;
    }
    
    /* Steps - 4 saraketta */
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Palvelugrid - 3 saraketta */
    .palvelu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Sisältö leveämmäksi */
    .content-section {
        padding: 3rem 2rem;
    }
}