/* styles.css */

/* ========================================
   FULL-BLEED HEADER, NAV JA FOOTER
   ======================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Futura', 'Ubuntu', 'Open Sans', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

header,
nav,
footer {
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* ========================================
   1. FONTIT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Futura:wght@400;700&family=Ubuntu:wght@400;700&family=Open+Sans:wght@400;700&display=swap');

/* ========================================
   2. PERUSASETUKSET
   ======================================== */
/* (html, body määritelty yllä full-bleed -osiossa) */

/* Taustakuva (fixed) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('etusivutk.jpg') center center / cover no-repeat;
    z-index: -1;
}

/* ========================================
   3. HEADER
   ======================================== */
header {
    background: rgba(0, 51, 0, 0.8);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* SEO-otsikko */
header h1 {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ========================================
   4. NAVIGAATIO
   ======================================== */
nav {
    display: flex;
    justify-content: center;
    background: #002600;
    padding: 0.5rem 0;
    position: relative;
    z-index: 2;
}

/* Hamburger-painike (piilotettu desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    position: absolute;
    top: 12px;
    left: 12px;
    cursor: pointer;
    z-index: 3;
}

/* Linkit desktop */
nav a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: none;
    white-space: nowrap;
}

/* CTA-linkki viimeisenä */
nav a:last-child {
    background: #66cc66;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    color: #fff;
}

/* Hover-efekti */
nav a:hover {
    text-decoration: underline;
}

/* Aktiivinen linkki */
nav a.active {
    font-weight: bold;
    text-decoration: underline;
    color: #1E90FF;
}

/* ========================================
   5. SISÄLTÖALUEET
   ======================================== */
.content {
    max-width: 800px;
    margin: 2rem auto;
    background: #66cc66;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: #333;
    display: flex;
    flex-wrap: wrap;
}

/* Palvelut-sivu */
.services {
    max-width: 600px;
    margin: 2rem auto;
    background: #66cc66;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Palvelukohtainen nappi */
.service-item button {
    display: block;
    width: 100%;
    background: #004d00;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

/* Ota yhteyttä -sivu */
.contact-info {
    flex: 1;
    padding-right: 1rem;
}
.contact-image {
    flex: 1;
    text-align: center;
}

/* ========================================
   6. FOOTER
   ======================================== */
footer {
    background: rgba(0, 51, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* ========================================
   7. KIELIVALINTAPAINIKE
   ======================================== */
.language-toggle {
    position: fixed;
    top: 10px; right: 10px;
    background-color: #66cc66;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    z-index: 3;
}

/* ========================================
   8. KUVIEN REAGOINTI
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   9. RESPONSIVE (MOBIILI)
   ======================================== */
@media (max-width: 768px) {
    /* Näytetään hamburger, piilotetaan linkit */
    .menu-toggle {
        display: block;
    }
    nav a {
        display: none;
    }
    /* Kun nav on avattu */
    nav.open {
        flex-direction: column;
        position: absolute;
        top: 56px;   /* headerin alaosa */
        left: 0;
        width: 100vw;
        background: #002600;
    }
    nav.open a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        margin: 0;
        border-top: 1px solid #004d00;
        text-align: center;
    }

    /* Sisältöalueiden skaalautuvuus */
    .content, .services {
        flex-direction: column !important;
        padding: 1rem !important;
        width: 100% !important;
    }
    .service-item button {
        font-size: 1rem !important;
    }
    .contact-info, .contact-image {
        flex: none !important;
        width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
    }
    .contact-image {
        margin-top: 1rem;
    }
}
