/* Yleinen tyyli */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* Default size, adjusts with screen */
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
}

html {
    scroll-behavior: smooth;
}

/* Yläpalkki, jossa puhelinnumero, sähköposti ja slogan */
.top-bar {
    background-color: #00719c;
    color: white;
    padding: 10px;
    font-size: 1rem;
    display: flex;
    justify-content: center;  /* Keskittää kaikki sisältö vaakasuunnassa */
    align-items: center;
}

.top-bar span {
    padding: 25px;
}

.no-style {
    text-decoration: none;  /* Poistaa alleviivauksen */
    color: inherit;         /* Käyttää tekstin väriä, ei linkin oletusväriä */
}

.no-style:hover {
    color: #00415a;              /* Vaihtaa värin tummemmaksi, kun linkkiä viedään hiirellä */
    text-decoration: underline;  /* Säilyttää alleviivauksen hover-tilassa */
}

.styled-link {
    text-decoration: none;  /* Poistaa alleviivauksen */
    color: inherit;             /* Muuttaa linkin väriksi sinisen */
  }
  
  .styled-link:hover {
    color: #00719c; /* Vaihtaa värin tummemmaksi, kun linkkiä viedään hiirellä */
    text-decoration: underline;   /* Säilyttää alleviivauksen hover-tilassa */
}

.sticky {
    position: sticky;
    top: 0;
    justify-content: space-between;
    z-index: 100;  /* Varmistetaan, että sticky header on muiden päälle */
}

/* Palvelu-osio */
.services {
    padding: 25px 150px 25px 150px;
    background-color: #00719c;
}

/* Palvelun otsikko */
.services h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fefefe;
}

.subtitleservice {
    text-align: center;
    color: #9ca3af;
    font-size: 1.1rem;
}


.subtitleprice {
    text-align: center;
    color: #fefefe;
    font-size: 1.1rem;
}

/* Palveluitemin tyyli */
.service-item {
    font-size: 1.4rem;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 6px solid #009bd6; /* Määritetään reunan paksuus ja väri */
}

/* Palveluitemin sisällön asettelu: flexbox */
.service-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Palvelutekstin tyyli */
.service-text {
    flex: 1;
    padding-right: 20px;
}

.service-text p {
    font-size: 1.4rem;
    color: #555;
}

.service-text ul {
    margin-top: 10px;
}

.service-text ul li {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 5px;
}

.service-pricing-link {
    padding: 10px; /* Lisää paddingia ylhäältä/alhaalta ja vasemmalta/oikealta */
    background-color: #00719c; /* Voit myös lisätä taustavärin */
    color: #fff; /* Tekstin väri */
    text-decoration: none; /* Poistaa linkin alaviivan */
    border-radius: 5px; /* Kulmien pyöristys */
    display: inline-block; /* Varmistaa, että linkki käyttäytyy kuin laatikko */
    font-weight: bold; /* Tekstin lihavointi */
    text-align: center; /* Tekstin tasaaminen keskelle */
}

/* Kun linkkiä viedään hiirellä päälle */
.service-pricing-link:hover {
    background-color: #005f7c; /* Tummempi taustaväri hover-tilassa */
}

.service-img {
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Hinnasto-osio */
.pricing {
    background-color:#009bd6;
    padding: 10px 0;
}

/* Hinnasto-otsikko */
.pricing h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fefefe;
}

/* Hinnasto-laatikot */
.pricing-boxes {
    max-width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Keskittää laatikot vaakasuunnassa */
    gap: 20px;
    padding: 0 20px;
    margin: 0 auto; /* Keskittää laatikot, jos niiden leveys on pienempi kuin säilytyselementin leveys */
}

/* Yksittäinen hinnastokohde */
.pricing-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: calc(50% - 20px); /* Laatikot vievät 50% leveyttä ja väliin jää 20px (gap) */
    text-align: center;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 6px solid #00719c; /* Määritetään reunan paksuus ja väri */
}

/* Hinnastokohteen otsikko */
.pricing-item h3 {
    font-size: 1.8rem;
    color: #00719c;
    margin-bottom: 10px;
}

/* Hinnastokohteen hinnat ja teksti */
.pricing-item p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.toiminta-modern {
    background: #00415a;
    color: #fefefe;
    padding: 20px 20px;
    font-family: 'Inter', sans-serif;
}

.toiminta-title {
    text-align: center;
    margin-bottom: 50px;
}

.toiminta-title h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fefefe;
}

.subtitle {
    color: #9ca3af;
    font-size: 1.1rem;
}

.toiminta-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #00719c;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin-bottom: 15px;
    color: #60a5fa;
    font-size: 1.3rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 8px 0;
}

.highlight {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: white;
}

.highlight h3 {
    color: #ffffff;
}

.contacttuki {
    color: white;
    background-color: #0077cc; /* vaaleansininen tausta */
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}
  
.contacttuki:hover {
    background-color: #005fa3; /* tummempi hover */
    transform: scale(1.05);
}

.faq {
    padding: 50px;
    background-color: #00719c; /* taustaväri */
    border-top: 3px solid #009bd6;
}

.faq h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #fefefe; /* kirkas sininen otsikko */
}

details {
    margin: auto;
    max-width: 80%;
    min-width: 50%;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: #00415a; /* tumma laatikko */
    border: 2px solid #009bd6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

details:hover {
    background-color: #016891;
    border-color: #009bd6;
}

summary {
    font-weight: 600;
    font-size: 1.1rem;
    color: #009bd6;
    cursor: pointer;
}

details[open] summary {
    color: #ffffff; /* vaihtoehto: #e0f7ff jos valkoinen on liian kirkas */
}

details p {
    margin-top: 0.5rem;
    color: #e0f7ff; /* tekstin väri sisällä */
}

@media (max-width: 1400px) {
    .service-img {
        max-width: 400px;
    }
}

@media (max-width: 1150px) {
    .service-content {
        flex-direction: column; /* Teksti ja kuva menevät päällekkäin */
        align-items: flex-start; /* Keskittää sisällön */
    }

    .service-text {
        max-width: 100%;
        padding: 0px;
    }

    .service-img {
        max-width: 100%;
    }
}

@media (max-width: 1000px) {
    .sticky-header {
        padding-left: 15px;
    }
}

/* Mobile responsiveness */
@media (max-width: 850px) {
    .pricing-item {
        width: 100%; /* Alle 850px leveillä näytöillä laatikot menevät päällekkäin */
    }

    /* Palvelu-osio */
    .services {
        padding: 10px 25px 10px 25px;
    }

    .service-content {
        padding-right: 10px;
    }

    /* Palveluitemin tyyli */
    .service-item {
        font-size: 1rem;
    }

    .service-text p {
        font-size: 1.1rem;
        color: #555;
    }

    .service-text ul {
        margin-top: 10px;
        padding-left: 20px;
    }
    
    .service-text ul li {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .service-pricing-link {
        padding: 10px; /* Lisää paddingia ylhäältä/alhaalta ja vasemmalta/oikealta */
        font-size: 15px;
        text-align: center; /* Tekstin tasaaminen keskelle */
    }

    .faq {
        padding: 10px 35px 20px 15px;
    }

    details {
        max-width: 100%;
    }
}

/* Näytetään normaalit valikkokohteet yli 750px */
@media (min-width: 751px) {
    .hamburger {
        display: none; /* Piilotetaan hampurilaisvalikko */
    }

    .nav-menu {
        display: flex;
        position: static;
        background-color: transparent;
        box-shadow: none;
    }

    .nav-menu ul {
        display: flex;
    }

    .nav-menu ul li {
        padding: 0px;
    }

    .nav-menu ul li a {
        padding: 2px;
        color: #00719c;
    }
}

@media (max-width: 750px) {
    .sticky-header nav ul li a {
        color: #ffffff;
    }

    .top-bar {
        display: flex;
    }

    .top-bar .disable{
        display: none;
    }

    .hamburger {
        display: flex; /* Näytetään hampurilaisvalikko */
    }

    .nav-menu.active {
        display: block; /* Näytetään valikko, kun active-luokka on lisätty */
    }

    .nav-menu {
        background-color: #009bd6;
        position: absolute;
        left: 0;
        border-radius: 5px;
    }
}

@media (max-width: 450px) {
    .top-bar span {
        padding: 5px;
    }

    .sticky-header {
        padding-left: 10px;
        padding-right: 20px;
    }

    .sticky-header .logo img {
        max-height: 50px;
    }

    .footlogo {
        max-height: 40px;
    }

        /* Palvelu-osio */
    .services {
        padding: 10px 0px 10px 0px;
    }

    /* Palveluitemin tyyli */
    .service-item {
        font-size: 1.4rem;
        margin-bottom: 20px;
        padding: 5px;
        padding-left: 10px;
    }
}