:root {
    --primary-green: #005a2b; /* Logon vihreä */
    --accent-red: #ff0000; /* Logon punainen */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigointi */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-green);
}

.btn-primary {
    background-color: var(--accent-red);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

/* Hamburger Menu (Mobiili) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 90, 43, 0.8), rgba(0, 0, 0, 0.7)), url('banner.jpg') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* Sisältöalueet */
.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 10px auto 0;
}

/* Palvelukortit */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary-green);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Kaksisarakkeinen asettelu (Kuva + Teksti) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.split-section img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Taulukot (Hinnasto) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: var(--primary-green);
    color: white;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: auto;
}

footer p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Animaatiot JavaScriptiä varten */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiivisuus */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 2rem;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .split-section {
        grid-template-columns: 1fr;
    }
}
/* WhatsApp Kelluva Painike */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
    /* Animaation alkuasetukset */
    opacity: 0;
    transform: translateY(20px);
    /* 1s viive (latauksen jälkeen), 0.8s kesto, jää näkyviin (forwards) */
    animation: floatIn 0.8s forwards 1s; 
    transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: translateY(-5px); /* Pomppaa hieman ylöspäin vietäessä hiiri päälle */
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Animaation avainkehykset */
@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobiilikoon säädöt (pienempi nappi) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}