/* Yleiset tyylit tästä osiosta alkoi bootstrap muutokset tästä alkaa*/
body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    background-color: #fff;
    color: #1A1A1A;
    display: grid;
    grid-template-areas:
        "header"
        "filosofia"
        "tuote-osiot"
        "varm"
        "ohjeet"
        "videos"
        "footer";
    grid-template-rows: auto auto 1fr auto; 
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    
}

a, .nav-links .dropbtn {
    color: #24597e;
    text-decoration: none;
    
}

a:hover, .nav-links .dropbtn:hover {
    color: #333333; 
  
   
}

/* Header ja navigaatio */
header {
    grid-area: header;
}

header .banner {
    position: relative;
    grid-area: banner;
    height: 300px;
    
    
}

header .banner img {
    width: 100%;
    height: 100%;
    display: block;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(2px);
    background-color: rgba(240, 235, 240, .7);
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 10px 20px;
    z-index: 1000; 
    
}



.navbar .logo {
    flex: 1; 
    max-width: 200px;
    margin-left: 20px;
}

.navbar .logo img {
    max-width: 40%; 
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center; 
    flex: 1; 
    margin-top: 1rem;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a, .nav-links .dropbtn {
    font-weight: 500;
    font-size: 22px;
    text-decoration: none;
    color: #1a3d6d;
    text-shadow: 2px 2px 4px rgba(2, 2, 4, 0.2);
    letter-spacing: 1px;
}

/* Animoitu alaviiva */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: #1a3d6d;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: #0d2a5b; /* Tummempi sininen hoverilla */
}

/* Kasvava alaviiva */
.nav-links a:hover::after {
    width: 100%;
}

.navbar .ed-scandinavia {
    flex: 1; 
    text-align: right; 
    font-weight: 600;
    font-size: 22px;
    margin-right: 50px;
    color: #1a3d6d;
    letter-spacing: 2px;
    max-width: 200px; 
    text-shadow: 2px 2px 4px rgba(2, 2, 4, 0.2);  
}


.navbar .ed-scandinavia:hover a{
    text-decoration: none !important; 
}

/* Hamburger ikoni pienillä näytöillä */
.hamburger {
    display: none; 
    cursor: pointer;
    font-weight: 800;
    font-size: 30px;
    color: #1a3d6d;
    margin-right: 20px;
}

/* Alasvetovalikon tyylit */

.dropdown {
    position: relative;
}

.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    list-style-type: none;
    border-radius: 8px;
}

.dropdown .dropdown-content li {
    padding: 0;
}

.dropdown .dropdown-content li a {
    position: relative;
    color: #1a3d6d;
    text-decoration: none;
    display: block;
    padding: 5px 18px;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
    background-color: transparent !important; /* Poistaa mahdolliset taustavärit */
    
}

/* Näyttää alasvetovalikon hoverilla */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Alaviiva hover-tilassa */


/* Hover-efekti alasvetovalikon linkeille */
.dropdown .dropdown-content li a:hover {
    color: #0d2a5b; /* Tummempi sininen hoverilla */
    background-color: transparent !important;
}


.dropdown .dropdown-content li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0px;
    width: 0;
    height: 2px;
    background-color: #1a3d6d;
    transition: width 0.3s ease-in-out;
    transform: translateX(-50%);
}

/* Kasvava alaviiva alasvetovalikossa */
.dropdown .dropdown-content li a:hover::after {
    width: 100%;
}
h1 {
    font-size: 1.6em; 
    font-weight: normal; 
    color: #1A1A1A; 

}


/* Filosofia-osio */
.filosofia {
    grid-area: filosofia;
    text-align: center;
    padding: 50px 0;
    background-color: #fff;
    color: #1A1A1A;
    font-weight: 400;
    
    

}

.filosofia h2 {
    margin-bottom: 20px;
}

.filosofia p {
    font-size: 18px;
    margin-bottom: 40px;
    font-weight: 300;
}



/* Tuoteosiot - CSS Grid Template Areas */
.tuote-osiot {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    grid-template-areas: 
        "tuote1 tuote1" 
        "tuote2 tuote2" 
        "tuote3 tuote3"
        "tuote4 tuote4"
        "tuote5 tuote5"; 
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    width: 80%;
    
}

.tuote:first-child {
    grid-area: tuote1; 
}

.tuote:nth-child(2) {
    grid-area: tuote2; 
    background-color: #fff;
    border: 2px solid f2f2f2;
    
}
.tuote:nth-child(2) .tuote-info {
    background-color: #fff; 
}
.tuote:nth-child(2) .tuote-kuva {
    background-color: #FFF;
}

.tuote:nth-child(3) {
    grid-area: tuote3; 
    background: #fff;
    
}

.tuote:nth-child(4) {
    grid-area: tuote4; 
    background-color: #FFF;
    border: 2px solid f2f2f2;
    
}

.tuote:nth-child(4) .tuote-info {
    background-color: #FFF; 
}
.tuote:nth-child(4) .tuote-kuva {
    background-color: #FFF;
    
}

.tuote:nth-child(5) {
    grid-area: tuote5; 
    background-color: #FFF;
    border: 2px solid f2f2f2;
    
}

.tuote:nth-child(5) .tuote-info {
    background-color: #FFF; 
}
.tuote:nth-child(5) .tuote-kuva {
    background-color: #FFF;
    
}

.tuote {
    background-color: #fff;
    display: grid;
    grid-template-areas: "kuva info"; 
    grid-template-columns: 1fr 1fr; 
    align-items: center;  
    

}

.tuote h3 {
    color: #1A1A1A;
}

.tuote:nth-child(2) {
    grid-template-areas: "info kuva"; 
    grid-template-columns: 1fr 1fr;   
    outline: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 3px;
    
}
.tuote:nth-child(1){
    outline: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 3px;
}
.tuote:nth-child(3){
    outline: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 3px;
}
.tuote:nth-child(4) {
    grid-template-areas: "info kuva"; 
    grid-template-columns: 1fr 1fr;   
    outline: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 3px;
}
.tuote:nth-child(5) {
    grid-template-areas: "info kuva"; 
    grid-template-columns: 1fr 1fr;   
    outline: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 3px;
}

.tuote-kuva {
    grid-area: kuva;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    font-weight: 300;
}

.tuote-kuva img{
   display: block;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.tuote-kuva img:nth-of-type(2) {
    width: 160px;
    height: 240px;
}




.tuote-info {
    grid-area: info;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    font-weight: 380;
    
}

.tuote-info h3 {
    margin-bottom: 10px;
    color: #1A1A1A;
    font-weight: 400;
}

    /* Tyylit linkille, jotta se näyttää painikkeelta */
    .custom-button {
        display: inline-block; 
        background-color: #fff !important; 
        border: 2px solid #F28322 !important; 
        color: #1A1A1A !important; 
        padding: 10px 20px; 
        font-size: 16px; 
        text-decoration: none; 
        cursor: pointer; 
        border-radius: 5px;
    }

    /* Lisää hover-efekti */
    .custom-button:hover {
        background-color: #F28322 !important; 
        color: white; 
        text-decoration: none; 
        transform: scale(1.1); 
    }

    /*Tuotekuvat sivulla tuotteet muotoilu*/
    .tuote-kuva_1 {
        display: grid;
        grid-template-columns: auto 1fr auto; 
        align-items: center;
        position: relative;
        width: 100%;
        max-width: 400px;
        
    }

    .tuotekuva_1 {
        display: none;
        grid-column: 2; 
        
        object-fit: cover;
        border-radius: 5px;
    }

    .tuotekuva_1.aktiivinen {
        display: block;
        max-height: 300px;
        max-width: 100%;
        
    }

    .nuoli {
        cursor: pointer;
        font-weight: bold;
        font-size: 18px;
        border: none;
        background-color:none;
        color: #F28322;
        padding: 10px;
    }

    .vasen {
        grid-column: 1; 
        background-color: #fff;
    }

    .oikea {
        grid-column: 3; 
        background-color: #fff;
    }

   

    /* Kohdistetaan vain tuote-osiot_pjnordic-osioon */
.tuote-osiot_pjnordic .tuote {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    grid-template-areas: "kuva info"; 
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* Määritetään info- ja kuva-alueet */
.tuote-osiot_pjnordic .tuote-info {
    grid-area: info;
}

.tuote-osiot_pjnordic .tuote-kuva_1, .tuote-osiot_pjnordic .tuote-kuva {
    grid-area: kuva;
}

 /* Modaalin tausta */
 .modaali {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    align-items: center;
    justify-content: center; 
    
}

.modaali.active {
    display: flex; 
}

/*Varm osio*/

.varm {
    text-align: center;
    padding:  0;
    background-color: #fff;
    color: #1A1A1A;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.02);
    max-height: 400px;
}

.varm h2 {
    margin-bottom: 20px;
}

.varm p {
    font-size: 18px;
    margin-bottom: 40px;
}

/* Varmin punainen osio */
.varm .varm-pun {
    background-color: rgb(187, 82, 82);
    margin: 20px;
    padding: 10px;
    clear: both;
}

/* Yhdistetty ohjeet-video -osio */
.ohjeet-video {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-top: 30px;
    padding: 20px;
    align-items: center;
}

.ohjeet {
    clear: both;
}

.varm-muu {
    display: grid;
    grid-template-areas: 
        "img1 img2"
        "img3 img4"
        "img5 img5"; 
    gap: 10px; 
    max-width: 600px;
    margin-left: auto;
}

.varm-muu img {
    width: 100%; 
    max-width: 200px; 
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Asetetaan grid-alueet suoraan kuville */
.varm-muu img:nth-child(1) { grid-area: img1; }
.varm-muu img:nth-child(2) { grid-area: img2; }
.varm-muu img:nth-child(3) { grid-area: img3; }
.varm-muu img:nth-child(4) { grid-area: img4; }
.varm-muu img:nth-child(5) {
    grid-area: img5;
    justify-self: center; 
}


/* Video-osio */
.varm-video {
    max-width: 100%;
    text-align: left;
}

.varm-video video {
    width: 100%; 
    max-width: 400px; 
    height: auto;
    border-radius: 8px;
}


/* Modaalin sisältö */
.modaali-sisalto {
    background-color: #fff;
    margin: 10% auto; 
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto; 
    max-height: 80vh; 
    margin-top: -50px;
    font-weight: 300;
}

#modaali-otsikko{
    font-size: 20px;
    margin-bottom: 20px;
    color: #1A1A1A;
    font-weight: 400;
}

/*Modaali button*/
button.centered-button {
    display: block;
    margin: 20px auto; 
    font-weight: 300;
}

/* Sulje-painike */
.sulje {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.sulje:hover, .sulje:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Us-sivun tyylit */
.meista {
    text-align: left;
    padding: 50px 20px;
    background-color: #f8f8f8;
    color: #1A1A1A;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.02);
    margin: 20px auto;
    width: 80%;
}

.meista h1 {
    color: #1A1A1A;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: center;
    
    letter-spacing: .5px;
    
}

.meista .intro {
    font-size: 18px;
    color: #1A1A1A;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: .5px;
    
}

.content-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: .5px;
    font-size: 18px;
    color: #1A1A1A;
        
    
}

.content h3 {
    color: #1A1A1A;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.2;
   
    letter-spacing: .5px;
}



/* Yhteystietolomakkeen tyylit */
.yhteystieto-lomake {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f8f8;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.02);
    margin: 20px auto;
    width: 80%;
}

.yhteystieto-lomake h2 {
    color: #24597e;
    font-weight: 700;
    margin-bottom: 20px;
    font-weight: 400;
}

.yhteystieto-lomake p {
    margin-bottom: 30px;
    color: #1A1A1A;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    font-weight: 400;
    color: #1A1A1A;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    color: #24597e;
}

.form-group textarea {
    resize: vertical;
}

.custom-button {
    display: inline-block;
    background-color: #24597e;
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.custom-button:hover {
    transform: scale(1.05);
}

/* Mukauta Bootstrapin .btn-secondary -tyyliä */
.btn-secondary.add-to-request {
    background-color: #FFF !important;   
    border: 2px solid #F28322 !important; 
    color: #1A1A1A !important;           
    border-radius: 5px;
   
}

/* Hover-efekti napille */
.btn-secondary.add-to-request:hover {
    background-color: #F28322 !important; 
    color: #FFF !important;               
    text-decoration: none;
    transform: scale(1.05);               
}
/* Mukauta Bootstrapin .btn-primary -tyyliä #sendRequestButton-painikkeelle */
#sendRequestButton.btn-primary, button.btn.btn-primary {
    background-color: #FFF !important;      
    border: 2px solid #F28322 !important;   
    color: #1A1A1A !important;              
    padding: 10px 20px;                    
    font-size: 16px;                     
    text-decoration: none;                  
    cursor: pointer;                       
    border-radius: 5px;                     
}

/* Hover-efekti #sendRequestButton-painikkeelle */
#sendRequestButton.btn-primary:hover, button.btn.btn-primary:hover {
    background-color: #F28322 !important;   
    color: #FFF !important;                 
    text-decoration: none;                  
    transform: scale(1.05);                 
}

#sendRequestButton {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 900;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}



.card-img-top {
    display: flex;
    justify-content: center;  
    align-items: center;      
    height: 280px;            
    object-fit: contain;
}

.custom-product-image {
    max-width: 100%;          
    max-height: 100%;         
}

footer {
    grid-area: footer;
    background-color: #f2f2f2;
    color: #1A1A1A;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1); 
    border-top: 2px solid #e0e0e0; 
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content h3 {
    font-size: 1.1em ;
    margin-bottom: 10px;
    color: #1A1A1A; 
    font-weight: 400 ;
    margin-bottom: 5px;
}

.footer-content p {
    font-size: .9em;
    line-height: 1.2;
    color: #1A1A1A;
    font-weight: 300;
    margin-top: 0;
}

/* Tietosuojaselosta*/
.tietosuoja {
    width: 80%; 
    max-width: 1000px; 
    margin: 20px auto; 
}

.tietosuoja h1, .tietosuoja h2, .tietosuoja h3 {
    color: #1A1A1A;
}
.tietosuoja h1 {
    font-size: 24px;
    margin-bottom: 10px;
}
.tietosuoja h2 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.tietosuoja h3 {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 5px;
}
.tietosuoja p {
    margin-bottom: 10px;
    color: #1A1A1A;
}
.tietosuoja ul {
    margin: 10px 0;
    padding-left: 20px;
}
.tietosuoja a {
    color: #1A1A1A;
    text-decoration: none;
}
.tietosuoja a:hover {
    text-decoration: underline;
}

/* Responsiivisuus */
@media screen and (max-width: 310px) {
    .navbar .ed-scandinavia {
        display: none;
    }
    .navbar .hamburger{
        margin-right: 50px;
    }
    
}


@media screen and (max-width: 400px) {
    .tuote-osiot {
        display: block; 
        padding: 10px;

    }
    .navbar .ed-scandinavia {
        font-size: 10px; 
        margin-right: 30px; 
        letter-spacing: 1px; 
        text-align: center;
    }

    .navbar .logo {
        min-width: 40%;
    }

  
}

@media screen and (max-width: 460px) {
    .navbar .ed-scandinavia {
        font-size: 16px; 
        margin-right: 30px; 
        letter-spacing: 1px; 
    }
        
      
}

@media screen and (max-width: 600px) {
    .tuote-osiot {
        grid-template-columns: 1fr; 
        grid-template-areas: 
            "tuote1"
            "tuote2"
            "tuote3"
            "tuote4"
            "tuote5"; 
    }
    .modaali-sisalto{
            width: 90%;
            margin-top: 5%;
            }

    
    

    .tuote {
        grid-template-columns: 1fr; 
        grid-template-areas:
            "kuva"
            "info"; 
    }

    .tuote:nth-child(2) {
        grid-template-columns: 1fr;
        grid-template-areas: "kuva" 
                            "info"; 
    }
    .tuote:nth-child(4) {
        grid-template-columns: 1fr;
        grid-template-areas: "kuva" 
                            "info"; 
    }

    .tuote:nth-child(1) {
        grid-template-columns: 1fr;
        grid-template-areas: "kuva" 
                            "info"; 
    }

    .tuote:nth-child(3) {
        grid-template-columns: 1fr;
        grid-template-areas: "kuva" 
                            "info"; 
    }

    .tuote:nth-child(5) {
        grid-template-columns: 1fr;
        grid-template-areas: "kuva" 
                            "info"; 
    }

   


    .tuote-info  h3 {
        font-size: 14px;
    }
    .tuote-info  p {
        font-size: 12px;
    }
}


@media screen and (max-width: 767px) {

    .hamburger {
        display: block; 
        
        
    }
    .nav-links {
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 25%; 
        background-color: rgba(240, 235, 240, 0.95);
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        text-align: center; 
    }

    .nav-links.active {
        display: flex; 
        flex-direction: column; 
    }
    .nav-links.active li {
        margin-left: 0;
        margin-top: 10px;
    }

    .navbar{
        justify-content: space-between;
    }
}


@media screen and (min-width: 768px ) and (max-width: 860px) {
    .content-sections {
        grid-template-columns: 1fr 1fr;
    }
    
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex; 
        flex-direction: row;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }
    .navbar .ed-scandinavia {
        margin-right: 20px;
    }
}
   
    

@media screen and (min-width: 1024px) {
    .content-sections {
        grid-template-columns: 1fr 1fr 1fr;
    }
}


