/* Yleiset tyylit */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Ylävalikko */
header {
    background: #6e6e6e;
    color: #fff;
    padding: 10px 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    margin-bottom: 15px;
}

.logo img {
    height: 200px;
}

nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
}

nav.nav-left {
    margin-bottom: 5px; /* Väli logon ja vasemman navin välillä */
}

nav.nav-right {
    margin-top: 5px; /* Väli logon ja oikean navin välillä */
}

/* Responsiiviset tyylit */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    nav {
        flex-direction: column;
        width: auto;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* Hero-osa */
.hero {
    background: url('kiipeily-1.jpg') no-repeat center center/cover;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        background-position: right center; /* Asettaa kuvan oikean reunan keskelle */
        padding-right: 20px; /* Lisätään vähän tilaa oikealle reunalle */
    }
}

.hero h1 {
    font-size: 3rem;
    margin: 0.5rem;
}

.hero h2 {
    font-size: 2rem;
    margin: 0.5rem;
}

/* Mobiilinäytöille (maksimileveys 768px) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
}

.hero h1, .hero h2 {
    text-shadow: 
        2px 2px 0px #000,  /* Oikealle alas */
        -2px 2px 0px #000, /* Vasemmalle alas */
        2px -2px 0px #000, /* Oikealle ylös */
        -2px -2px 0px #000; /* Vasemmalle ylös */
}

.hero p {
    font-size: 20px;
}

.cta-button {
    background: #1e7e34;;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:focus {
    outline: 2px solid #28a745; /* Green outline for keyboard navigation */
}

/* Palvelut */
.services {
    background: #f4f4f4;
    padding: 20px 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
}

.service-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-cards .card {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    flex: 1;
    margin-right: 10px;
}

.service-cards .card img {
    width: 100%;
    height: auto; /* Pitää kuvat oikeassa mittasuhteessa */
}

.service-cards .card h3 {
    margin: 10px 0;
}

/* Hinnasto */

.pricing {
    padding: 20px 0;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Yhteystiedot */
.contact {
    background: #e2e2e2;
    padding: 20px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
}

.contact form {
    display: flex;
    flex-direction: column;
    width: 60%;
    margin: auto;
}

.contact label {
    margin: 10px 0 5px 0;
}

.contact input, .contact textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background: #fff;
}

.contact button {
    padding: 10px;
    background: #1e7e34;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact button:hover {
    background: #155724;
}

.contact button:focus {
    outline: 2px solid #28a745; /* Outline on focus for accessibility */
}

/* Hinnasto */

.pricing {
    background: #f4f4f4;
    padding: 40px 0;
}

.pricing h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.pricing-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pricing-item {
    background: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    text-align: center;
}

.pricing-item h3 {
    font-size: 24px;
    color: #28a745;
    margin: 0;
}

.pricing-item p {
    font-size: 18px;
    margin: 10px 0 0;
    color: #555;
}

.pricing-item:last-of-type {
    text-align: left;
    max-width: none;
}

.pricing-item:last-of-type p {
    font-size: 16px;
    margin: 10px 0;
}

@media (max-width: 768px) {

    .pricing-tieto {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-width: 100%; /* Vie koko näytön leveyden */
        width: 90%; /* Teksti ei mene liian reunaan */
        padding: 15px;
        margin: 10px auto; /* Keskittää elementin */
        text-align: left;
        word-wrap: break-word; /* Rivittää pitkät sanat */
        overflow-wrap: break-word; /* Varmistaa rivittymisen */
    }
}

.contact-details-map {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* Space between contact details and map */
}

.contact-details {
    flex: 1; /* Adjusts to take available space */
    max-width: 300px;
}

.map-container {
    flex: 1; /* Ensures map and contact info are side by side */
}

@media (max-width: 768px) {
    .contact-details-map {
        flex-direction: column; /* Muuttaa rivin pystysuunnaksi */
        align-items: center; /* Keskittää elementit */
    }

    .contact-details, .map-container {
        max-width: 100%; /* Tekee elementeistä koko leveyden */
        text-align: center; /* Tekstit keskelle */
    }

    .map-container iframe {
        width: 100%; /* Kartta venyy koko leveydelle */
        height: 300px; /* Antaa sopivan korkeuden mobiilissa */
    }
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer .social-media {
    margin-top: 10px;
}

footer .social-media a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}