/* --- MUUTTUJAT --- */
:root {
    --bg-color: #F9F9F7;
    --primary-color: #2C3E30;
    --accent-color: #C5A065;
    --text-color: #333333;
    --white: #FFFFFF;
}

/* --- PERUSASETUKSET --- */
* { box-sizing: border-box; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
img { max-width: 100%; height: auto; display: block; }

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- HEADER --- */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo { font-size: 1.5rem; font-weight: bold; text-transform: uppercase; }

nav ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 20px;
}

nav a {
    color: var(--white); text-decoration: none; font-weight: bold;
}
/* Korostaa aktiivisen sivun */
nav a:hover, nav a.active { color: var(--accent-color); }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-image: url('hero.jpg'); 
    background-size: cover;
    background-position: center bottom;
}

/* Pienempi hero contact-sivulle */
.hero-small { height: 250px; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 15px;
}

/* --- GALLERIA --- */
.section-header { text-align: center; margin: 40px 0 30px; }

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobiilissa 1 sarake */
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.img-container { height: 250px; overflow: hidden; }
.img-container img { width: 100%; height: 100%; object-fit: cover; }

.card-text { padding: 20px; }
.card-text h3 { margin: 0 0 10px; color: var(--primary-color); }

/* --- CONTACT SIVU --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input, textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
button { border: none; cursor: pointer; }

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* =========================================
   MEDIA QUERIES (TIETOKONEELLE)
   ========================================= */
@media (min-width: 768px) {
    .nav-container { flex-direction: row; justify-content: space-between; }
    .hero { height: 600px; }
    .hero h1 { font-size: 4rem; }
    
    /* Galleria 2 sarakkeeseen tietokoneella */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Contact sivu vierekkäin */
    .contact-wrapper { grid-template-columns: 1fr 1fr; }
}