* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Etusivu */

.site {
    width: 100%;
    height: 90vh;
}

.site-esittely {
    width: 100%;
    height: 60vh;
}

.site-ahp {
    width: 100%;
    height: 60vh;
}

.site-kotisiivous {
    width: 100%;
    height: 60vh;
}

.content {
    background: url(kuvat/siivous3.png) no-repeat center center;
    background-size: cover;
    background-attachment: scroll; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    color: black;
    text-align: center;
}

.content-esittely {
    background: url(kuvat/esittely.png) no-repeat center center;
    background-size: cover;
    background-attachment: scroll; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: black;
    text-align: center;
    min-height: 60vh;
    color: white;
}

.content-lomitus {
    background: url(kuvat/lomitus.png) no-repeat center center;
    background-size: cover;
    background-attachment: scroll; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: black;
    text-align: center;
    min-height: 60vh;
    color: white;
}

.content-ahp {
    background: url(kuvat/ahp.png) no-repeat center center;
    background-size: cover;
    background-attachment: scroll; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: black;
    text-align: center;
    min-height: 60vh;
    color: white;
}

.content-sp {
    background: url(kuvat/siivousm.png) no-repeat center center;
    background-size: cover;
    background-attachment: scroll; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: black;
    text-align: center;
    min-height: 60vh;
    color: white;
}

.nav {
    width: 100%;
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 999; 
    padding: 30px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.nav ul li {
    list-style: none;
    display: inline-block;
    margin: 0 40px;
}

.nav ul li a {
    text-decoration: none;
    color: #000000;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    font-weight: 550;
    text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}

.nav ul li a:hover {
    color: #9bbeac;
    transition: 0.2s;
}

.content h1 {
    font-size: 60px;
    font-family: "Times New Roman", Times, serif;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 255, 255, 0.5); 
    margin: 0;
    z-index: 1;
    letter-spacing: 2px;
    background-color: rgba(0, 0, 0, 0.4); 
    padding: 20px;
    border-radius: 8px; 
}

.content p {
    font-size: 20px;
    margin: 10px 0;
} 

.content p.slogan {
    font-size: 20px;
    font-weight: 400;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
    z-index: 1;
    font-family: 'Verdana', Geneva, Tahoma, sans-serif;
    background-color: rgba(0, 0, 0, 0.3); 
    padding: 10px 20px;
    border-radius: 8px;
}

.logo {
    width: 85%;
    max-width: 550px;
    height: auto;  
    margin-top: 20px;  
    margin-bottom: 20px;  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);  
    border-radius: 100px; 
}

.service-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
}

.service-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    font-family: roboto; 
}

.service-box {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin: 20px auto;
    max-width: 800px;
    text-align: left;
}

.service-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #9bbeac;
}

.service-box ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.service-box ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
}

.service-box p {
    font-size: 16px;
    margin: 10px 0;
    color: #444;
}

.service-box strong {
    color: #000;
}

.intro-text {
    padding: 50px 20px 30px;
    text-align: center;
    background-color: #f9f9f9;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #333;
}

.intro-text h2 {
    font-size: 30px;
    color: #9bbeac;
    margin-bottom: 15px;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #444;
}

/* Footer */

.footer {
    background-color: #9bbeac;
    padding: 25px 0px;
    color: white;
    text-align: center;
    font-size: 19px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #333;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #9bbeac;
}

/* Valikko */

.hamburger {
    display: none;
    font-size: 38px;
    background: none;
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    z-index: 1000;
    position: absolute;
    top: 25px;
    right: 30px;
}

/* Responsiivisuus */

@media screen and (max-width: 1200px) {
    .nav ul li {
        margin: 0 20px;
    }

    .nav ul li a {
        font-size: 18px;
    }
}

@media screen and (max-width: 1024px) {
    .about-wrapper {
        flex-direction: column;
        gap: 50px;
        padding: 0 20px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-content p {
        font-size: 17px;
    }
    
    .nav ul li {
        margin: 0 15px;
    }

    .nav ul li a {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .service-section {
        padding: 30px 10px;
    }

    .service-section h2 {
        font-size: 26px;
    }

    .service-box {
        padding: 20px;
        margin: 15px auto;
        width: 95%;
    }

    .service-box h3 {
        font-size: 20px;
    }

    .service-box ul {
        padding-left: 15px;
    }

    .service-box ul li {
        font-size: 15px;
    }

    .service-box p {
        font-size: 15px;
    }

    .content-esittely h5 {
        font-size: 50px;
    }

    .content-sp h5 {
        font-size: 50px;
    }

    .content-ahp h5 {
        font-size: 50px;
    }

    .content-esittely h7 {
        font-size: 25px;
    }

    .nav, .content {
        background-attachment: scroll;
        background-position: center top;
      }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translateX(-50%); 
        width: 80%;  
        background-color: white;
        flex-direction: column;
        align-items: center;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 10px 0;
        text-align: center;
        padding: 10px;
        font-size: 18px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        color: black;
        text-decoration: none;
        font-weight: bold;
        text-transform: uppercase;
        transition: color 0.2s ease;
        display: block; 
    }

    .nav-links li a:hover {
        color: #3e92e0;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .about-content p {
        font-size: 16px;
    }

    .about-images {
        flex-direction: column;
    }

    .about-img {
        height: auto;
    }

    .nav.scrolled .hamburger {
        color: black; 
        transition: color 0.3s ease;
    }

    .nav.scrolled {
        padding: 45px 60px; 
    }

    .logo {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .about-full {
        padding: 50px 15px;
    }

    .about-content p {
        font-size: 15px;
    }
}

.about-full {
    padding: 80px 20px;
    background-color: #ffffff;
    font-family: 'Verdana', sans-serif;
    color: #333;
}

.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    align-items: flex-start;
}

.about-content {
    flex: 1 1 600px;
}

.about-content h2 {
    font-size: 40px;
    color: #9bbeac;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-images {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

h6 {
    font-size: 28px;
    margin-top: 20px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);  
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    width: 42%;
    padding: 6px;
    font-family: "Times New Roman", Times, serif;
}

.image-gallery img {
    width: 100px;  
    margin: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.1); 
}

/* Modal-ikkuna */

.modal {
    display: none; 
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
    text-decoration: none;
    cursor: pointer;
}

h5 {
    font-size: 70px;
    font-family: roboto;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    font-family: roboto; 
}
