/* =========================================
   Perusasetukset
========================================= */
body {
    margin: 0;
    font-family: "Georgia", serif;
    color: #333;
    background-color: #ffffff;
}

/* =========================================
   Hero / Pääkuva
========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
}

.hero-text {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: #000000;
    font-size: 52px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 3px;
}

/* =========================================
   Content / Tietosisältö
========================================= */
.content {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 50px 40px;
    flex-wrap: wrap; /* varmistaa, että sisältö ei ylitä ruudun leveyttä */
}

.info-text {
    max-width: 400px;
}

.info-text h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* =========================================
   Perhekodin aikuiset / Staff-cards
========================================= */
.staff-section {
    text-align: center;
    width: 100%;
}

.staff-section h2 {
    margin-bottom: 20px;
}

.staff-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* rivittää kortit pienemmillä näytöillä */
    justify-content: center;
}

.card {
    background-color: #d7e3d2;
    padding: 20px;
    width: 150px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.card h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Hover-efekti korteille */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =========================================
   Footer / Alatunniste
========================================= */
.footer {
    background-color: #c7d6c1;
    padding: 40px;
    text-align: center;
}

/* =========================================
   Responsiivisuus / Mobiili
========================================= */
@media (max-width: 800px) {
    .content {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .card {
        width: 120px;
        padding: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .hero-text {
        font-size: 28px;
        bottom: 60px;
    }
}