/*
 Theme Name:   MSH
 Template:     aate
 Text Domain:  mhs
*/

@import url("https://use.typekit.net/vik7crb.css");

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
font-family: "open-sans", sans-serif;
font-weight: 500;
}


/***********************
*       TYPOGRAFIA     *
***********************/

h1, h2, h3, h4, h5 {
font-family: "interstate", sans-serif;
font-weight: 700;
font-style: normal;
}

h2 {
    font-size: 1.9em;
    font-weight: 800;
    margin-bottom: .6em;
}

.keltainen {
    color: #EAFF4B;
}

.sininen {
    color: #3061E5;
}

a, a:visited, summary {
    color: #3061E5;
}

a:hover, a:focus {
    text-decoration: underline;
}

/***********************
*       HEADER         *
***********************/


header .container {
    height: 100%;
    width: 100%;
    clear: both;
    position: relative;
}

header .row {
    position: absolute;
    top: auto;
    bottom: 30px;
    width: 100%;
}


header p.nosto {
    text-align: left;
}

.ylapalkki button.menu-plus, .ylapalkki button.menu-plus:focus, .ylapalkki button.menu-plus:hover {
    background-color: #63bb35;
    border: 2px solid #333;
    color: #fff !important;
    height: 35px;
    width: 35px;
}

header .col {
  width: 100%;
}

header .col:after {
    content: "";
    display: block;
    border-bottom: 5px solid #EAFF4B;
    height: 0px;
    width: 100%;
    position: relative;
}

.otsikko h1 {
    font-size: 2.5em;
    color: #fff;
    max-width: 550px;
    font-weight: 800;
    margin-bottom: 30px;
}

.home .otsikko h1 {
    font-size: 2.1em;
}

/***********************
*       NAV         *
***********************/
    
.navbar {
    padding-left: 25px;
    padding-right: 25px;
}
.menu-plus:before {
    content: '\002B';
    margin-left: 0;
    margin-top: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.menu-minus:before {
    content: "\2212"; /* Unicode character for "minus" sign (-) */
    margin-left: 1px;
    margin-top: 0;
}

button.navbar-toggler {
    border: 0 solid transparent;
}

button.navbar-toggler:hover,
button.navbar-toggler:focus {
    border: 0 solid transparent;
    outline: none;
    box-shadow: none;
}

.custom-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 40px;
}

.custom-toggler .toggler-icon {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}


.custom-toggler:not(.collapsed) .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/***********************
*        RAKENNE       *
***********************/

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 25px;
    padding-left: 25px;
}

.container, .container-fluid {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
}

.row, .container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-fluid.wide .row {
    max-width: 100%;
}
.text {
    padding-top: 50px;
    padding-bottom: 50px;
    order: 2;
}

.background {
    padding-left: 0;
    padding-right: 0;
    height: 300px;
    order: 1;
}

.textblock .row {
    max-width: 900px;
}

.textblock h2 {
    font-size: 1.9em;
    margin-top: 1.5em;
}

.kuva {
    order: 1;
}

.teksti {
    margin-top: 30px;
    order: 2;
}

.background-image {
    background-size: cover;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.alku .row {
    max-width: 700px;
}
.laatikko {
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.laatikkokuva {
    height: 200px;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.laatikkoteksti {
    padding: 20px;
}

.kolme-nostoa {
    background-image: url('https://projektit.aate.fi/mhs-asennus/wp-content/uploads/Group-113.jpg');
    background-size: cover;
}

.ylaotsikko {
    color: #FFFFFF;
}

.kolme-nostoa p {
    margin-bottom: 0;
    color: #FFFFFF;
    max-width: 270px;
    margin-left: auto;
    margin-right: auto;
}

.kolme-nostoa p, .kolme-nostoa h2 {
    text-align: center;
}

.nosto-laatikko {
    margin-bottom: 40px;
}

.nosto-laatikko:nth-child(3) {
    margin-bottom: 0;
}

.alaotsikko {
    display: block;
    color: #EAFF4B;
}

.alamargin {
    margin-bottom: 20px;
}

.logot img {
    margin: 0 auto;
    width: 100%;
    max-width: 180px;
}

.logot {
    max-width: 900px;
}

.logot-container {
    padding-top: 30px;
    padding-bottom: 30px;
}

ul.nav {
    padding-top: 20px;
}

a:focus {
    color: #0082ff !important;
    text-decoration: underline !important;
}

a.button:focus, nav a:focus {
    text-decoration: none !important;
}

img {
    width: 100%;
}

/***************
*  ELEMENTIT *
*************/

.wpcf7 {
    max-width: 100%;
}

input, textarea {
    border: none;
    border-left: 0 solid transparent;
    color: #333;
    display: inline-flex;
    padding: .5rem;
    width: 100%;
    resize: none;
    background-color: #fff;
    border-radius: 0;
}

textarea.wpcf7-textarea {
    height: 200px;
}

.tarjouspyynto input, .tarjouspyynto textarea,
.yhteystiedot input, .yhteystiedot textarea{
    background: #f2f2f2;
}
.tarjouspyynto h3 {
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: .4em;
    font-size: 1.5em;
    border-bottom: 3px solid #3061e5;
    color: #3061e4;
}

.codedropz-upload-wrapper h3 {
    border-bottom: 0 solid transparent;
    padding-bottom: 0;
    margin-bottom: 0;
    font-size: 1.2em;
    margin-top: 0;
}

.wpcf7-list-item {
    margin: .2em 1em 0 0;
}

.tarjouspyynto .lomakediv {
    margin-bottom: 10px;
}

.tarjouspyynto textarea {
    height: 150px;
}



/***************************
*   yleiset ja elementit   *
****************************/

.alku {
    background-image: url('https://projektit.aate.fi/mhs-asennus/wp-content/uploads/alku_tausta.png');
    background-size: contain;
    background-position: left;
    height: 100%;
    background-repeat: no-repeat;
}

.alku {
    padding-top: 60px;
    padding-bottom: 60px;
}

.text ul li::marker {
    content: none;
}

.text ul {
    padding-left: 36px;
}

.text ul li {
    position: relative;
    margin-bottom: 10px;
}

.text ul li::before {
    content: " ";
    position: absolute;
    height: 12px;
    width: 12px;
    background: #3061e5;
    border-radius: 50%;
    left: -25px;
    top: 7px;
}

.tuotelogo img {
    max-width: 250px;
    margin: 0 0 20px 0;
}

/*********************
*   KUVAGALLERIA     *
*********************/

.wrapper.galleria {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.kuvagalleriakuva {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: .3s all;
    cursor: pointer;
    margin-bottom: 15px;
}

.kuvagalleriakuva:last-child{
    margin-bottom: 0;
}

.kuvagalleriakuva:hover {
    opacity: .7;
}

.light-box {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 999;
    top: 0;
    left: 0;
    cursor: pointer;
}

.light-box img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    width: auto;
}
 
.light-box p {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}
 
 .light-box img:hover {
    cursor: pointer;
}

.custom-splide .slide-bg {
  width: 100%;
  padding-top: 86%; /* suhde, esim 3:2 */
  background-size: cover;
  background-position: center;
  border-radius: 0;
}

/* Nuolien tyyli (valinnainen tweak) */
.splide__arrow {
  background: rgba(0,0,0,0.5);
  opacity: 1;
}

.splide__arrow:hover {
  background: rgba(0,0,0,0.8);
}

.kuvakaruselli .splide {
    /* margin: 0 0; */
    padding: 0 0;
}

/*********************
*  yleiset luokat  *
*********************/

.nosto p, p.nosto {
    font-size: 1.1em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.no-paddings {
    padding-top: 0;
    padding-bottom: 0;
}

.padding-bottom-0 {
    padding-bottom: 0;
}

.padding-top-0 {
    padding-top: 0;
}

.padding-top-puolikas {
    padding-top: 40px;
}
.center img {
    margin-left: auto;
    margin-right: auto;
}

.kapea {
    max-width: 900px;
}

/*********************
*    ARTIKKELIT      *
*********************/

.artikkeli {
    margin-bottom: 30px;
}

.artikkelikirjoitus {
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.5s;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
}

.artikkelikuva {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all .5s;
}

.artikkeliteksti {
    padding: 30px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artikkeliteksti h3 {
    margin-bottom: .2em;
}

p.julkaistu {
    font-size: .8em;
    text-align: left;
    margin-top: 0;
}

p.teksti {
    margin-bottom: 1.2rem;
}

p.alin {
    display: flex;
    margin-top: auto;
    border: 0;
    outline: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0;
}

.single h1 {
    margin-bottom: 0;
}

/*********************
*    YHTEYSTIEDOT    *
*********************/

.henkilo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 50px;
    justify-content: center;
}

.henkilokuva, .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
    width: 100%;
    text-align: center;
}

.henkilokuva img {
    width: 100%;
    border-radius: 50%;
    max-width: 200px;
    margin: 0 auto;
}


/*********************
*  MHS-asennus *
*********************/

.text h2, .text p {
    max-width: 700px;
}

.text h3 {
    padding-top: 1em;
}

.page-header {
    max-height: 500px;
}

.home .header-image {
    max-height: 700px;
        min-height: 450px;
}

.ylapalkki {
    background-color: #3061E5;
}

a.nav-link {
    color: #fff;
    text-transform: normal;
}

a.nav-link:hover, a.nav-link:focus {
    text-decoration: none;
}

.button, .button:visited, a.button, a.button:visited, .tarjouspyynto input.button, .yhteystiedot input.button {
    background-color: #3061E5;
    border: 1px solid #3061E5;
    padding: 5px 27px;
    color: #fff;
    display: inline-block;
    font-size: 1.1em;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0;
    text-transform: none;
    width: auto;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    transition: all .2s ease-in-out;
    border-radius: 50px;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover, .tarjouspyynto input.button:hover, .yhteystiedot input.button:hover,
.button:focus, .button:visited:focus, a.button:focus, a.button:visited:focus, .tarjouspyynto input.button:focus, .yhteystiedot input.button:focus {
    text-decoration: none;
    background-color: #fff;
    color: #3061E5;
    border-color: #3061E5;
}

.text .button {
    margin-top: 1.2em;
}

footer {
    background-color: #303245;
}

footer h2 {
    font-size: 1.5em;
    margin-top: 25px;
}

footer a, footer a:visited, footer a:hover {
    color: #fff;
}

footer img {
    max-width: 160px !important;
    margin-left: auto;
    margin-right: auto;
}

.cta .wpcf7-response-output {
    color: #fff !important;
    text-align: center;
}

.cta .wpcf7-not-valid-tip {
    color: #fff !important;
}

.copyrow {
    padding-bottom: 10px;
    padding-top: 0;
}

.copyrow p {
    text-align: center;
    font-size: .8em;
}

.cta {
    background-image: url('https://projektit.aate.fi/mhs-asennus/wp-content/uploads/cta_tausta_mhs.jpg');
    background-size: cover;
}

.cta h2, .cta p {
    color: #fff;
}

.cta h2 {
    font-size: 3em;
    line-height: 100%;
}

.cta .row {
    max-width: 1000px;
}

.cta input.button, .cta .button {
    background: #EAFF4B;
    color: #000;
    border: 1px solid #EAFF4B;
}

.cta input.button:hover, .cta input.button:focus,
.cta .button:hover, .cta .button:focus{
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

@media only screen and (min-width: 481px) {
	.single h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (min-width: 576px) {

}

@media only screen and (min-width: 768px) {
    .container.no-padding,.container-fluid.no-padding {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
    }


    .home .header-image {
        min-height: 550px;
    }
    
    .home .otsikko h1 {
    font-size: 3em;
}

    /* Animaatio */
    main .row {
        opacity:0;
    }
    .page-template-page-artikkelit main .row, .single main .row, main .row.kuvagalleria, main .row.henkilot, .no-animation .row {
        opacity: 1;
    }
    
    header .row {
        bottom: 80px;
    }
    
    .home header .row {
        bottom: 0;
        transform: translateY(-50%);
    }
    
    .alku {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .fade-in-up {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease-out;
    }
    
    .fade-in-up.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .otsikko h1 {
        font-size: 3em;
    }
    .tuotelogo img {
        max-width: 350px;
    }
    h2 {
        font-size: 2.4em;
    }
    .cta h2 {
        font-size: 4em;
    }
    .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 250px;
        margin-bottom: 0;
    }
    .henkilotekstit {
        width: 100%;
    }
    .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
        text-align: center;
    }
    .henkilokuva {
        padding-right: 30px;
        width: calc(50% - 30px);
    }
    .henkilokuva img {
        float: right;
    }
}

@media only screen and (min-width: 992px) {

    ul.nav {
        padding-top: 0;
    }
     a.nav-link {
        position: relative;
            font-size: 1em;
    }
    a.nav-link:hover, a.nav-link:focus, .current-menu-item a.nav-link {
        color: #fff !important;
    }
    a.nav-link:hover:after, .current-menu-item a.nav-link:after {
        content: "";
        width: 35px;
        height: 2px;
        background: #EAFF4B;
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ylapalkki {
        background-color: transparent;
    }
    .ylapalkki.shrink {
        background-color: #3061E5;
    }
    .text {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .background {
        height: auto;
    }
    .background, .text, .kuva, .teksti {
        order: inherit;
    }
    .teksti {
        margin-top: 0;
    }
	.laatikko {
	    margin-bottom: 0;
	}
	.artikkelit .col-lg-4 {
        padding-right: 15px;
        padding-left: 15px;
    }
    .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 350px;
    }
    .teksti-vasemmalla p, .teksti-vasemmalla h2, .teksti-vasemmalla .button, .teksti-vasemmalla ul {
        max-width: 550px;
        margin-left: auto;
    }
    
    .teksti-oikealla p, .teksti-oikealla h2, .teksti-oikealla .button, .teksti-oikealla ul {
        max-width: 550px;
    }
    
    .teksti-vasemmalla {
        padding-right: 90px;
         padding-left: 90px;
    }
    
    .teksti-oikealla {
        padding-left: 90px;
         padding-right: 90px;
    }
    
    .lomakediv {
        display: flex;
        flex-wrap: wrap;
    }
    
    .kolme-nostoa p, .kolme-nostoa h2 {
        text-align: left;
    }
    
    .kolme-nostoa p {
       margin-left: 0;
    }

    .kolme-nostoa .col-md-12.col-lg-4:nth-child(3) .nosto-laatikko {
        margin-bottom: 0;
    }
    
    .puolikas.puolikas-vasen {
        width: 50%;
        padding-right: 10px;
    }
    
    .puolikas.puolikas-oikea {
        width: 50%;
        padding-left: 10px;
    }
    
    .lomakediv p {
        width: 100%;
    }
    .cta .col-md-12.col-lg-6:nth-child(1) {
        padding-right: 50px;
    }
    footer img {
        max-width: 190px !important;
        margin-top: -5%;
        margin-left: 0;
    }
    footer h2 {
        font-size: 1.7em;
        margin-top: 0;
    }
}

@media only screen and (min-width: 1200px) {
	    .teksti-vasemmalla, .teksti-oikealla {
        padding-right: 150px;
        padding-left: 150px;
    }
}


@media only screen and (min-width: 1800px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
}

/* Navigaatio */


@media only screen and (max-width: 992px) {
    ul#menu-main {
    padding-top: 25px;
}
a.nav-link {
    font-size: 1.2em;
}

a.nav-link, a.nav-link:hover, a.nav-link:focus {
    color: #fff;
}

}
