/* Perustyylit */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

/* Header ja navigaatio */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.logo-link {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #0056b3;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none; /* Varmistaa, että pisteet eivät näy */
}

.nav-menu li a.button {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-menu li a.button:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.nav-menu li a.call-button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-menu li a.call-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
}

/* Hero-osio */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #e9ecef;
    border-bottom: 3px solid #007bff;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    display: inline-block;
    max-width: 90%;
}

/* Palvelut-osio */
.services {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.service-box {
    text-align: center;
    padding: 25px;
    width: 250px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.service-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-box i {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #007bff;
}

.service-box h3 {
    font-size: 1.2em;
    margin: 10px 0;
    word-wrap: break-word;
    line-height: 1.4;
    padding: 0 10px;
    font-weight: 700;
    color: #0056b3;
}

.service-box a.service-button {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.service-box p {
    font-size: 0.9em;
    color: #666;
}

/* Yhteystietolista */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Tasaa tekstin vasempaan */
}

.contact-list li {
    margin: 10px 0;
    display: flex; /* Käytetään flexiä ikonien ja tekstin tasaamiseen */
    align-items: center; /* Pystysuora keskitys */
}

.contact-list li i {
    margin-right: 10px; /* Väli ikonin ja tekstin välillä */
}

/* Lomakkeen tyylit */
.form-group {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    flex-direction: column; /* Varmistaa, että label ja input ovat aina allekkain */
}

.form-group label {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.9em;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.form-group .call-button {
    width: 100%;
    cursor: pointer;
}

/* WhatsApp-painike */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 1.5em;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

/* Responsiivisuus */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f8f8f8;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-menu li a.button, 
    .nav-menu li a.call-button {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
    }

    .hero {
        padding: 30px 10px;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 1em;
        padding: 8px 15px;
    }

    .services {
        padding: 10px;
        gap: 15px;
    }

    .service-box {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 15px;
    }

    .service-box h3 {
        font-size: 1.1em;
    }

    /* Lomakkeen mobiilioptimointi */
    .form-group label {
        font-size: 0.85em; /* Pienempi fontti mobiilissa */
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.85em;
        padding: 8px;
    }

    .form-group textarea {
        height: 80px; /* Pienempi korkeus mobiilissa */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.2em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .service-box {
        padding: 15px;
    }

    .form-group label {
        font-size: 0.8em;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.8em;
        padding: 7px;
    }
}

.intro, .cta {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.intro h2, .cta h2 {
    font-size: 1.5em;
    color: #0056b3;
    margin-bottom: 15px;
}

.intro p, .cta p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

.cta a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.cta a:hover {
    color: #0056b3;
}

/* CTA-alueen tyyli */
.cta {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.cta h2 {
    font-size: 1.5em;
    color: #0056b3;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1em;
    color: #666;
}

/* Varmistetaan, että .call-button toimii myös täällä */
.call-button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Varmistaa napin muodon */
}

.call-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    color: #25D366; /* WhatsAppin vihreä sävy */
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.footer-whatsapp i {
    font-size: 1.2em;
    margin-right: 5px; /* Väli ikonin ja tekstin välillä */
}

.footer-whatsapp:hover {
    color: #1ebe52; /* Tummempi vihreä hover-tilassa */
}