/*
 Theme Name:   Lapin kiropraktiikka
 Template:     aate
 Text Domain:  lapinkiropraktiikka
*/

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
  
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
font-family: "Montserrat", sans-serif;
font-weight: 400;
font-style: normal;
color: #211E1C;
}

main {
    background-color: #FFFEFD;
}


/***********************
*       TYPOGRAFIA     *
***********************/

h1, h2, h3, h4, h5 {
font-family: "Fira Sans", sans-serif;
  font-weight: 800;
color: #211E1C;
    margin-bottom: .5em;
}

h2.h1, .h2-h1 h2, .yhteydenotto h1, .cta-1 h2, .cta-2 h2, .alku h2  {
    font-size: 2.4em;
    color: #0B7B65;
}

h2.h1 {
    margin-bottom: 0.4em;
}

h2 {
    font-size: 1.9em;
    color: #0B7B65;
}


h3, h4 {
      font-weight: 600;
}

.tekstialue h2 {
    margin-top: 1.2em;
    margin-bottom: .3em;
}

.text h2, .text h3 {
    color: #211E1C;
}


.cta-1 h2, .cta-2 h2 {
    color: #C8E3D3;
}

.valkoinen {
    color: #fff;
}
.punainen {
    color: #B22C0D;
}

.header-image h1 {
    color: #EAF2EB;
            text-align: center;
                margin-bottom: .2em;
    font-size: 2.8em;
}

header p.nosto {
    text-align: center;
    color: #EAF2EB;
    margin-bottom: 0;
    font-size: 1.5em;
    margin-left: 0;
    font-weight: 300;
    max-width: 100%;
}

main a, main a:visited, main a:hover, main a:focus {
    color: #0B7B65;
}

main a:hover, main a:focus, footer a:hover, footer a:focus {
    text-decoration: underline;
}

main a:focus, footer a:focus {
    color: #0B7B65 !important;
}

/***********************
*       HEADER         *
***********************/


header .container {
    height: 100%;
    width: 100%;
    clear: both;
    position: relative;
}

header .row {
    position: absolute;
    top: calc(50% + 30px);
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
        width: 100%;
    max-width: 800px;
}

.otsikko {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 50px);
    height: auto;
}


.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;
}

/***********************
*       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;
}

#menu-menu-1 {
    padding-top: 30px;
}

.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);
}


.logo {
    padding-top: 5px;
    padding-bottom: 5px;
}
/***********************
*        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: 1400px;
    margin: 0 auto;
}

.yhteydenotto .row {
    max-width: 1100px;
}

.yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
    margin-top: 40px;
}
.container-fluid.wide .row {
    max-width: 100%;
}
.text {
    padding-top: 70px;
    padding-bottom: 70px;
    order: 2;
}

.background {
    padding-left: 0;
    padding-right: 0;
    height: 300px;
    order: 1;
}

.kapea .row {
    max-width: 700px;
}

.kapea-teksti .row {
    max-width: 900px;
}

.kuva {
    order: 1;
}

.teksti {
    margin-top: 30px;
    order: 2;
}

.background-image {
    background-size: cover;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.laatikko {
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.laatikkokuva {
    height: 200px;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.laatikkoteksti {
    padding: 20px;
}

.alamargin {
    margin-bottom: 20px;
}

.logot img {
    margin: 0 auto;
    width: 100%;
    max-width: 250px;

}

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%;
}

/**********
* ETUSIVU *
***********/

.alku {
    background-image: url('https://lapinkiropraktiikka.com/wp-content/uploads/alku_tausta.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.alku .row {
    max-width: 700px;
}


.yhteystiedot .text h2,
.yhteystiedot h2 {
    font-size: 1.25em;
    font-weight: 600;
    color: #0B7B65;
    margin-bottom: .3em;
}

.yhteystiedot .text h3,
.yhteystiedot h3{
    font-size: 1.7em;
    margin-bottom: 0;
}

/****************
*   HINNASTO    *
****************/

.tekstialue .row {
    max-width: 900px;
}



/*********************
*   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;
}

/*********************
*  yleiset luokat  *
*********************/

.nosto p, p.nosto {
    font-size: 1.2em;
    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-puolikas {
    padding-top: 40px;
}

.padding-top-0 {
    padding-top: 0;
}

.center img {
    margin-left: auto;
    margin-right: auto;
}

.kapea {
    max-width: 900px;
}

/*****************
*  ELEMENTIT   *
***************/

main li::marker {
    color: #0B7B65;
}

main ul {
    padding-left: 1em;
}

/*********************
*    ARTIKKELIT      *
*********************/

.artikkeli-container h1, .artikkeli-container h2 {
 margin-bottom: 0;
}

.artikkelit {
    margin-top: 60px;
}

.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;
    background-color: #FFFEFD;
}

.artikkeliteksti h3 {
    margin-bottom: .6em;
    font-size: 1.5em;
}
.artikkeliteksti h3 a, .artikkeliteksti h3 a:hover, .artikkeliteksti h3 a:focus, .artikkeliteksti h3 a:visited {
    color: #211E1C;
}

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: .5em;
    font-size: 2.2em;
}

.button-2, .button-2:visited, .button-2:hover, .button-2:focus {
        font-family: "Fira Sans", sans-serif;
    font-weight: 600;
    color: #0B7B65;
    width: 100%;
    text-align: center;
    font-style: italic;
    margin-top: .8em;
    font-size: 1.2em;
}

.button-2:hover {
    text-decoration: underline;
}

.single .row {
    max-width: 900px;
}

.single main {
    padding-top: 60px;
}

.single main h2 {
   color: #0B7B65; 
   font-size: 1.7em;
           margin-top: 1em;
        margin-bottom: .3em;
}
    
.single main h3 {
    color: #0B7B65;
       font-size: 1.3em;
           margin-top: 1em;
        margin-bottom: .3em;
}

/*********************
*    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;
}


/*********************
*  VAIN MALLIULKASSA *
*********************/

.text h2, .text p {
    max-width: 700px;
}

.page-header {
    max-height: 320px;
        position: relative;
}

.page-heading {
    position: absolute;
    top: calc(50% + 30px);
    left: 50%;
    transform: translate(-50%, -50%);
        width: 90%;
}


#navbar-collapse-1 {
    padding-top: 25px;
}


.home .header-image {
    max-height: 850px;
    min-height: 450px;
}

.ylapalkki {
    background-color: #1E252B;
    padding-top: 0;
    padding-bottom: 0;
}

a.nav-link {
    color: #fff;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 1.2em;
    font-family: "Fira Sans", sans-serif;
    font-weight: 300;
}

a.nav-link:hover, a.nav-link:focus, .current-menu-item a.nav-link {
    color: #C8E3D3 !important;
}



.button, .button:visited, a.button, a.button:visited  {
        font-family: "Fira Sans", sans-serif;
    background-color: #0B7B65;
    border: 2px solid #0B7B65;
    padding: 6px 25px;
    color: #fff;
    display: inline-block;
    font-size: 1.1em;
    letter-spacing: .04em;
    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: 0;
    margin-top: 1.1em;
        font-weight: 500;
    font-style: italic;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover,
.button:focus, .button:visited:focus, a.button:focus, a.button:visited:focus{
    text-decoration: none;
    background-color: #fff;
    color: #0B7B65;
    border-color: #0B7B65;
}

.cta-1 .button, .cta-1 .button:visited, .cta-1 a.button, .cta-1 a.button:visited,
.cta-2 .button, .cta-2 .button:visited, .cta-2 a.button, .cta-2 a.button:visited {
        background-color: #fff;
    border: 2px solid #fff;
        color: #0B7B65;
        font-size: 1.2em;
}
.cta-1 .button:hover, .cta-1 .button:visited:hover, .cta-1 a.button:hover, .cta-1 a.button:visited:hover,
.cta-2 .button:hover, .cta-2 .button:visited:hover, .cta-2 a.button:hover, .cta-2 a.button:visited:hover,
.cta-1 .button:focus, .cta-1 .button:visited:focus, .cta-1 a.button:focus, .cta-1 a.button:visited:focus,
.cta-2 .button:focus, .cta-2 .button:visited:focus, .cta-2 a.button:focus, .cta-2 a.button:visited:focus{
        background-color: #0B7B65;
    border: 2px solid #fff;
        color: #fff;
}


.button[type=submit]:hover, .button[type=submit]:focus {
        background-color: #fff;
    color: #0B7B65;
    border-color: #0B7B65 !important;
}
.kapea-cta .button:hover, .kapea-cta .button:visited:hover, .kapea-cta a.button:hover, .kapea-cta a.button:visited:hover  {
    text-decoration: none;
    background-color: #0B7B65;
    color: #fff;
    border-color: #fff;
}



.wpcf7-textarea {
    max-height: 200px;
}

footer {
    background-color: #1E252B;
}

.copyrow {
    padding: 0 0 20px 0;
}

footer a, footer a:visited, footer a:hover {
    color: #fff;
}

p.copyright {
    text-align: center;
    font-size: .8em;
    color: #a4a3a1;
}

p.copyright a {
    color: #a4a3a1 !important;
}

footer h2 {
    font-size: 1.4em;
    margin-top: 0;
    color: #FFFFFF;
}

footer .col-xs-12.col-md-4.col-lg-4:nth-child(2), footer .col-xs-12.col-md-4.col-lg-4:nth-child(3) {
    padding-top: 30px;
}

footer .container {
    max-width: 1100px;
    padding-top: 80px;
}


footer img {
     max-width: 200px !important;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

p.alahuomio {
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    font-size: .9em;
}


.yhteyshenkilo img {
    padding-right: 40px;
}

.yhteyshenkilo .row {
    max-width: 1100px;
}

.cta-1 h2, .cta-2 h2 {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cta-1 p, .cta-2 p {
    color: #fff;
}
.cta-1 {
        background-image: url('https://lapinkiropraktiikka.com/wp-content/uploads/cta_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta-2 {
        background-image: url('https://lapinkiropraktiikka.com/wp-content/uploads/cta_2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nappirivi a {
    margin-left: 6px;
    margin-right: 6px;
}




.wpcf7 form .wpcf7-response-output {
    margin-left: 0;
    margin-right: 0;
    border-width: 1px !important;
}

span.sitaatti {
    font-style: italic;
    font-size: 1.2em;
    margin-top: 1em;
    display: inline-block;
}


input, textarea {
    border-left: 0 solid transparent;
    background: #f2edea;
    border-radius: 0;
    border: 1px solid #e2ddda;
}

input:hover, textarea:hover,
input:focus, textarea:focus{
    border-color: #B22C0D;
}
@media only screen and (min-width: 481px) {

}

@media only screen and (min-width: 576px) {

}

@media only screen and (min-width: 768px) {
    /* Animaatio */

.home .header-image {
    min-height: 550px;
}
    header p.nosto {
    font-size: 1.8em;
    }
    
    main .row{
        opacity:0;
    }
    .page-template-page-artikkelit main .row, .single main .row, main .row.kuvagalleria, main .row.henkilot, .no-animation .row {
        opacity: 1;
    }
    
    .page-header {
    max-height: 400px;
}

h1 {
    font-size: 3.5em;
}

.header-image h1 {
            font-size: 3em;
}
    
    .single main h1 {
            font-size: 3em;
    }
    .single main h2 {
           font-size: 2em;
}

    .single main h3 {
           font-size: 1.7em;
}
    .text h2 {
    font-size: 2.2em;
}

    h2 {
    font-size: 3em;
}

.tekstialue h2 {
    font-size: 2em;
}

.nosto p, p.nosto {
    font-size: 1.3em;
}


    h2.h1, .h2-h1 h2, .yhteydenotto h1, .cta-1 h2, .cta-2 h2, .alku h2 {
    font-size: 3.5em;
}

.header-image h1 {
    font-size: 4.7em;
}

.single main {
    padding-top: 80px;
}
    .fade-in-up {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease-out;
    }
    /*.fade-in-up-header {
      opacity: 0;
      transform: translateY(0);
      transition: all 0.6s ease-out;
    }
    .fade-in-up-header.visible {
      opacity: 1;
      transform: translateY(0);
    }*/
    
    .fade-in-up.visible {
      opacity: 1;
      transform: translateY(0);
    }
        .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 250px;
        margin-bottom: 0;
    }
    .henkilotekstit {
        width: 50%;
    }
    .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
        text-align: left;
    }
    .henkilokuva {
        padding-right: 30px;
        width: calc(50% - 30px);
    }
    .henkilokuva img {
        float: right;
    }
    
footer h2 {
    font-size: 1.5em;
    margin-top: 0;
}

footer img {
    max-width: 230px !important;
    margin-left: 0;
    margin-right: auto;
    margin-top: 0;
}

footer h1, footer h2, footer h3, footer h4, footer p {
    text-align: left;
}

.kapea-cta h2 {
    font-size: 3em;
}

}

@media only screen and (min-width: 992px) {
    .ylapalkki {
        padding: .2rem 0;
    }
    #menu-menu-1 {
        padding-top: 0;
    }
    .page-header {
    max-height: 400px;
}



#navbar-collapse-1 {
    padding-top: 0;
}

.nav-button a.nav-link, .nav-button:focus a.nav-link {
        color: #1e252b !important;
}

.nav-button a {
    background: #fff;
    border: 1px solid #fff;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 10px;
        transition: all .2s ease-in-out;
}

.nav-button a:hover, .nav-button a:focus{
    background: #1e252b !important;
}

.nav-button:hover a.nav-link{
    color: #fff !important;
}


    .logo img {
        height: 40px;
    }
    
    ul.nav {
        padding-top: 0;
    }
    
    a.nav-link {
        position: relative;
            font-size: 1.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,
    .current-menu-item.nav-yhteystiedot a.nav-link:hover:after{
        content: "";
        width: 35px;
        height: 2px;
        background: #0B7B65;
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-button a.nav-link:after,
    .current-menu-item.nav-yhteystiedot a.nav-link:after {
        content: none;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-left: .7em;
        padding-right: .7em;
    }
    
    .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 {
    max-width: 550px;
        margin-left: auto;
}

.yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
    margin-top: 0;
}

.teksti-oikealla p, .teksti-oikealla h2, .teksti-oikealla .button {
    max-width: 550px;
}

.teksti-vasemmalla {
    padding-right: 90px;
     padding-left: 90px;
}

.teksti-oikealla {
    padding-left: 90px;
     padding-right: 90px;
}

.yhteydenotto .col-md-12.col-lg-6:first-child {
    padding-right: 40px;
}

.yhteydenotto .col-md-12.col-lg-6:nth-child(2) {
    padding-left: 40px;
}

.alku {
        padding-top: 100px;
    padding-bottom: 100px;
}

footer .col-xs-12.col-md-4.col-lg-4:nth-child(2) {
    border-left: 4px solid #0B7B65;
    padding-left: 60px;
}
footer .col-xs-12.col-md-4.col-lg-4:nth-child(2), footer .col-xs-12.col-md-4.col-lg-4:nth-child(3) {
    padding-top: 0;
}

}


@media only screen and (min-width: 1200px) {
    a.nav-link {
    font-size: 1.2em;
}
 .logo img {
        height: 50px;
    }
    
.artikkeliteksti {
    padding: 50px 50px 35px 50px;
}
}

@media only screen and (min-width: 1400px) {
	.teksti-vasemmalla {
    padding-right: 150px;
     padding-left: 150px;
}

.teksti-oikealla {
    padding-left: 150px;
     padding-right: 150px;
}

}


@media only screen and (min-width: 1800px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
}

@media only screen and (min-width: 992px) {
    
}