@import url("https://fonts.googleapis.com/css2?family=Allura&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Afacad+Flux&display=swap");

body {
    margin: 0;
    padding: 0;
    font-family: "Afacad flux", sans-serif;
    color: #6d4d35;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
    "header"
    "main"
    "nav"
    "footer";
    gap: 0;
}

.hero {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px;
    height: 150px;
    background-color: #D8B89F;
    font-family: Allura, sans-serif;
    color: #FFFFFF;
}

.hero-logo img {
    margin: 0;
    transition: transform 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.03);
}


.hero-nav {
    flex: 0;
}

nav ul, .hero-nav-left ul, .hero-nav-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.hero-nav-left li, .hero-nav-right li {
    margin: 0 30px;
    font-size: 40px;
}

nav a:link,
nav a:visited {
    text-decoration: none;
    color: #FFFFFF;
}

nav a:hover,
nav a:focus {
    cursor: pointer;
    opacity: 0.7;
}

.etusivu-kuvat {
    display: flex;
    gap: 30px;
    justify-content: center;   
}

.etusivu-kuvat img {
    height: 450px;
    border-radius: 20px;
    margin-top: 40px;
    margin-right: 0;
}

.etusivu-kuvat img:last-child {
    margin-right: 0;
}

.allekirjoitus {
    display: flex;          
    align-items: center;    
    justify-content: center; 
    gap: 0px;              
    margin-top: 20px;       
}

.sydämellä p {
    margin: 0;
    font-size: 25px; 
}

.heart-icon img {
    width: 80px;  
    height: auto;
}

.etusivu-page .feedback-container {
    display: flex;
    flex-direction: row;     
    justify-content: center; 
    align-items: center;     
                  
    width: 100%;             
    max-width: 800px;        
    margin: 0 auto;  
    padding-bottom: 25px;       
}

.etusivu-page .feedback-img img {     
    height: auto;
    margin-right: 30px;
    margin-left: 30px;
    margin-top: 20px;
    border-radius: 20px;
}

main {
    grid-area: main;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f0e0d3;
    font-size: 20px;
    min-height: 900px;
}

main p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.minusta-page .about-title {
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: left;
}

.minusta-page .mimmi {
    font-family: "Allura", cursive;
    font-size: 70px; 
    color: #6d4d35;
}

.minusta-page .about-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1100px; 
    margin: 40px auto;
    padding: 0 20px;
}

.minusta-page .text-content {
    margin-top: 10px;
}

.minusta-page .minusta-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 0px;
    width: 100%;
    }

.minusta-page .minusta-image img {
    width: 100%;
    max-width: 420px; 
    height: auto;
    border-radius: 10px;
    margin-top: 100px;
}

.hinnasto-page .image-row img {
    height: 630px;
    width: auto;
    border-radius: 20px;
    margin-top: 25px;
    margin-right: 25px;
    display: block;
}

.hinnasto-page .image-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

h3 {
    margin-top: 40px;  
}

.hinnasto-page .lisakuvat-image-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.hinnasto-page .lisakuvat-image-row img {
    width: 250px;
    border-radius: 20px;
    margin: 20px 7px;
}

.palvelut-page .palvelu-images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}
    
.palvelut-page .palvelu-images img {
    border-radius: 20px;
    margin-top: 25px;
    margin-right: 25px;
    display: block;
}


footer {
    grid-area: footer;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    box-sizing: border-box;
    padding: 20px 40px;
    background-color: #D8B89F;
    color: #FFFFFF;
    height: auto;
}

.footer-info {
    justify-self: start;
}

.footer-phone {
    color: #6d4d35;
}

.footer-tietosuojaseloste {
    color: #6d4d35;
}

footer img {
    position: static;
    transform: none;
    margin: 0;
}

.footer-logo-wrap {
    justify-self: center;
    display: flex;
    justify-content: center;
}

.footer-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin: 0;
}

.button a {
    display: inline-block;
    margin: 0;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #D8B89F;
    font-size: 20px;
    border-radius: 8px;
    text-decoration: none;
    font-family: "Afacad Flux", sans-serif;
    transition: 0.2s;
}

.button a:hover {
    background-color: #f5e8df;
    cursor: pointer;
}


@media (max-width: 768px) {
    .etusivu-page .etusivu-kuvat {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 20px;
        gap: 10px;
    }

    .etusivu-page .etusivu-kuvat img {
        width: 30%;
        height: 200px;
        object-fit: cover;
    }

    .feedback-container {
        flex-direction: column;
        align-items: center;
    }
    .feedback-img {
        width: 90%;
    }

    .hinnasto-page .image-row,
    .lisakuvat-image-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hinnasto-page .image-row img,
    .lisakuvat-image-row img {
        width: 90%;
        max-width: 350px;
        margin-right: 0;
    }
    
    .palvelut-page .palvelu-images {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .palvelut-page .palvelu-images img {
        width: 90%;
        max-width: 350px;
        margin-right: 0;
    }

    .minusta-page .minusta-image {
        align-items: center;
        gap: 20px;
    }

    .minusta-page .minusta-image img {
        display: block;
        width: 90%;
        max-width: 350px;
        margin-right: 0;
    }

    .minusta-page .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    main p {
        max-width: 90%;
        margin-bottom: 0;
        padding-bottom: 0;
        margin-left: auto;
        margin-right: auto;
        font-size: 18px;
    }

    h3 {
        font-size: 22px;
    }

    .hero-nav-left ul,
    .hero-nav-right ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero-nav-left li,
    .hero-nav-right li {
        font-size: 36px;
    }

    .hero-logo img {
        width: 180px;
        height: auto;
    }

    .hero {
        flex-direction: column;
        gap: 20px;
        height: auto;
        padding: 30px 0;
    }
    
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: auto;
    overflow: hidden;
    padding: 25px 20px;
    text-align: center;
}

.footer-info {
    width: 100%;
    text-align: center;
}

.footer-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-logo-wrap img {
    height: 80px !important;
    width: auto;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.button {
    margin: 0 0 20px 0;
}

.button a {
    margin: 0;
}
}