/* Per Lindberg Consulting AB */

/* Animationer */
@import url('/resources/scripts/aos/2.3.1/aos.css');

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 67, 74, 127;
    --primary-light-color: 188, 192, 220;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 130, 130, 130;
    --gray-light-color: 243, 241, 237;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 8rem;
    --menu-height-scrolled: 8rem;
    --section-width: 130rem;

    /* 	Typography */
    --base-size: 1.6rem;

    /* 	Mobile nav */
    --activate-mobile-menu: 1150;
    --mobile-menu-height: 6rem;
    --mobile-menu-bg: var(--white-color);
    --menu-color: var(--black-color);
}

@media only screen and (max-width: 580px) {
    :root {
        --base-size: 1.5rem;
    }
}

/* Layout
========================================================================== */
.section-block {
    padding: 12rem 5rem;
}

/* Paddings */
.p-2 .section-block,
.p-2:not(.section-wrapper) {
    padding: 2rem;
}

.p-3 .section-block,
.p-3:not(.section-wrapper) {
    padding: 3rem;
}

.p-5 .section-block,
.p-5:not(.section-wrapper) {
    padding: 5rem;
}

.pl-0 .section-block,
.pl-0:not(.section-wrapper) {
    padding-left: 0;
}

.pl-3 .section-block,
.pl-3:not(.section-wrapper) {
    padding-left: 3rem;
}

.pr-0 .section-block,
.pr-0:not(.section-wrapper) {
    padding-right: 0;
}

.pr-3 .section-block,
.pr-3:not(.section-wrapper) {
    padding-right: 3rem;
}

.pt-0 .section-block,
.pt-0:not(.section-wrapper) {
    padding-top: 0;
}

.pb-0 .section-block,
.pb-0:not(.section-wrapper) {
    padding-bottom: 0;
}
.pb-0-5 .section-block,
.pb-0-5:not(.section-wrapper) {
    padding-bottom: 0.5rem;
}

.pb-2 .section-block,
.pb-2:not(.section-wrapper) {
    padding-bottom: 2rem;
}

.py-0 .section-block,
.py-0:not(.section-wrapper) {
    padding-top: 0;
    padding-bottom: 0;
}

/* Margins */
.m-auto {
    margin: auto;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-5 {
    margin-top: 5rem;
}

/* Bredder */
.mw-900 {
    max-width: 90rem;
}

/* Ovrigt */
.display-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

@media only screen and (max-width: 1024px) {
    .section-block {
        padding: 8rem 3rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-block {
        padding: 5rem 2rem;
    }
}

/* Text och typsnitt
========================================================================== */
body {
    font-family: 'Onest', sans-serif;
}

/* Rubriker */
.text-label {
    padding-bottom: 1em;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.section-title {
    padding-bottom: .5em;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.2;
}

.small-title {
    padding-bottom: .5em;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.ingress {
    font-size: 2rem;
    font-weight: 600;
}

/* Brodtext och lankar */
p,
li {
    color: rgb(var(--gray-dark-color));
}

/* Listor */
ul {
    padding-left: 2rem;
}

/* Ovriga klasser */
.text-block {
    max-width: 70rem;
}

.text-block-center {
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

.text-bold {
    font-weight: 700;
}

.text-italic {
    font-style: italic;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

@media only screen and (max-width: 1200px) {
    .section-title {
        font-size: 3.4rem;
    }

    .small-title {
        font-size: 2.2rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-title {
        font-size: 2.9rem;
    }

    .small-title {
        font-size: 2rem;
    }

    .text-label {
        font-size: 1.2rem;
    }

    .ingress {
        font-size: 1.6rem;
    }
}

/* Knappar och speciella lankar
========================================================================== */
.btn-wrapper {
    margin-top: 2rem;
}

.btn-wrapper.center {
    text-align: center;
}

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 15rem;
    padding: 1.2rem 2rem;
    margin: 7px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
}

.btn-primary-filled,
.ContactSubmit {
    color: rgb(var(--white-color));
    border: 2px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
}

.btn-primary-filled:hover,
.ContactSubmit:hover,
.ContactSubmit:focus {
    color: rgb(var(--primary-color));
    border: 2px solid rgb(var(--primary-color));
    background-color: transparent;
}

/* Arrow link */
.arrow-link {
    font-size: var(--base-size);
    padding-right: 1rem;
    color: rgb(var(--primary-color));
    text-decoration: none;
}

.arrow-link::after {
    content: ' \f105';
    display: inline-block;
    margin-left: 1rem;
    font-weight: 400;
    font-family: 'Font Awesome 5 Pro';
    transition: transform .4s ease;
}

.arrow-link:hover::after {
    transform: translateX(1rem);
    transition: transform .4s ease;
}

@media only screen and (max-width: 380px) {
    .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Farger
========================================================================== */
/* Bakgrunder */
.bg-primary {
    background-color: rgb(var(--primary-color));
}

.bg-gray-light {
    background-color: rgb(var(--gray-light-color));
}

.bg-white {
    background-color: rgb(var(--white-color));
}

/* Overlays */
.overlay-primary-after {
    position: relative;
}

.overlay-primary-after::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(var(--primary-color), .4);
}

/* Text */
.text-primary {
    color: rgb(var(--primary-color));
}

.text-primary-light {
    color: rgb(var(--primary-light-color));
}

.text-white {
    color: rgb(var(--white-color));
}

/* Grafiska element
========================================================================== */
/* Citat-tecken pa p-tagg */
.icon-citat::before {
    content: '\f10d';
    position: absolute;
    font-weight: 900;
    font-size: 6rem;
    color: rgb(var(--primary-color), .1);
    font-family: 'Font Awesome 5 Pro';
    margin: -4rem 0 0 -1rem;
    z-index: 0;
}

@media only screen and (max-width: 980px) {
    .icon-citat::before {
        margin: -2.5rem 0 0 -1rem;
    }

    .icon-citat::before,
    .icon-citat::after {
        font-size: 4rem;
    }
}

/* Box shadow */
.box-shadow {
    box-shadow: 0 1rem 3rem rgb(var(--black-color), .1);
}

/* Osymetrist border radius */
.blob {
    border-radius: 55% 45% 47% 53% / 52% 36% 64% 48%;
}

/* Osymetrisk linje och bakgrund runt bild */
.blob-decor {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.blob-decor::after,
.blob-decor::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}

.blob-decor::before {
    z-index: -1;
    right: -.5rem;
    bottom: -.5rem;
    background-color: rgb(var(--primary-color), .85);
    border-radius: 61% 39% 46% 54% / 55% 63% 37% 45%;
}

.blob-decor::after {
    z-index: 1;
    left: .5rem;
    top: -.5rem;
    border: 3px solid rgb(var(--primary-color));
    border-radius: 45% 55% 47% 53% / 51% 53% 47% 49%;
}

.blob-text {
    padding: 15rem 10rem 10rem 15rem;
}

@media only screen and (max-width: 750px) {
    .blob {
        border-radius: 0;
    }

    .blob-decor::before,
    .blob-decor::after {
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .blob-text {
        padding: 2rem;
    }
}

@media screen and (max-width: 580px) {
    .border-left-primary {
        border-left: .5rem solid rgb(var(--primary-color));
    }
}

/* Bakgrundsbilder och videos
========================================================================== */
.bg-image {
    position: relative;
    overflow: hidden;
}

.bg-image-wrapper,
.bg-video-wrapper {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video */
.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Parallax
========================================================================== */
.parallax {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parallax .section-block {
    background-color: rgb(var(--gray-light-color), .9)
}

/* Bilder */
.parallax-molekyl {
    background-image: url('/assets/images/losec-molekylh-1500px.jpg');
}

@media only screen and (hover:none) {
    .parallax {
        background-attachment: scroll;
        background-position: center center;
    }

    .parallax .text-center,
    .parallax .btn-wrapper.center {
        text-align: left;
    }
}

/* Cards
========================================================================== */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.card-item {
    text-decoration: none;
    transition: all .3s ease;
}

/* Specifika bredder */
.cards-wrapper.w-33 .card-item {
    width: calc((100% / 3) - 2rem);
    margin: 1rem;
}

.cards-wrapper.w-50 .card-item {
    width: calc((100% / 2) - 2rem);
    margin: 1rem;
}

/* Card grow */
.cards-grow .card-item {
    display: flex;
    flex-direction: column;
}

.cards-grow .card-body {
    flex-grow: 1;
}

@media only screen and (max-width: 1050px) {
    .cards-wrapper.w-33 .card-item {
        width: calc((100% / 2) - 2rem);
    }
}

@media only screen and (max-width: 750px) {
    .cards-wrapper {
        margin-bottom: -1rem;
    }

    .cards-wrapper.w-33 .card-item,
    .cards-wrapper.w-50 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

@media only screen and (max-width: 480px) {
    /* Paddings */
    .card-item.p-3,
    .card-item .p-3 {
        padding: 1.5rem;
    }
}

/* Card 2-2 */
.card-2-2 .card-item {
    background-color: rgb(var(--white-color), .9);
}

.card-2-2 a {
    font-size: 1.6rem;
}

.card-2-2 .card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 6rem;
    height: 6rem;
    margin: 1rem 2rem 1rem 0;
    border-radius: 50%;
}

.card-2-2 .card-header i {
    font-size: 2rem;
}

.card-2-2 .card-body {
    align-content: center;
}

@media only screen and (max-width: 480px) {
    .card-2-2 .card-header {
        width: 3rem;
        height: 3rem;
        margin: .5rem 1rem .5rem 0;
    }

    .card-2-2 .card-header i,
    .card-2-2 a {
        font-size: 1.4rem;
    }
}

/* Card 2-4 */
.card-2-4 .card-item {
    display: flex;
}

.card-2-4 .card-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
}

.card-2-4 .card-header i {
    font-size: 3rem;
}

.card-2-4 .card-body {
    align-content: center;
    flex: 1 1 0px;
    padding: 0 3rem;
}

@media only screen and (max-width: 480px) {
    .card-2-4 .card-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 0 5rem;
    }

    .card-2-4 .card-body {
        padding: 2.5rem 0 0 0;
    }
}

/* Card 3-1 */
.card-3-1 .card-item {
    border-radius: 2px;
    overflow: hidden;
}

.card-3-1 .image-wrapper {
    height: 30rem;
}

.card-3-1 .btn-wrapper {
    padding: 0 2rem 2rem;
}

/* Split wrapper
========================================================================== */
.split-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.split-wrapper.reverse {
    flex-direction: row-reverse;
}

.split-content {
    width: 50%;
    padding: 8rem 5rem;
}

.split-image {
    width: 50%;
    border-radius: 2px;
}

/* Centrera content */
.split-wrapper .align-center {
    align-self: center;
}

@media screen and (max-width: 1300px) {
    .split-content {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media screen and (max-width: 1000px) {
    .split-wrapper,
    .split-wrapper.reverse {
        flex-direction: column;
        background: transparent;
    }

    .split-content {
        width: 100%;
        max-width: 70rem;
        padding: 0 0 3rem;
        background: transparent;
    }

    .py-0 .split-content {
        padding: 5rem 0;
    }

    .split-image {
        width: 100%;
        min-height: 20rem;
    }

    /* Centrera content */
    .split-wrapper .align-center {
        align-self: flex-start;
    }
}

/* Header / Navigation
========================================================================== */
header {
    border-bottom: 1px solid rgb(var(--gray-light-color));
}

.IndexPage header:not(.scrolled) {
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

/* Logo */
.header-logo {
    margin: 0 auto 0 0;
}

.header-logo .svg img {
    width: 100%;
}

.header-logo a {
    font-size: 2.5rem;
    color: rgb(var(--primary-color));
    text-decoration: none;
}

/* Nav */
.TemplateMenu a {
    font-weight: 600;
    font-size: 1.4rem;
    color: rgb(var(--black-color));
}

.IndexPage header:not(.scrolled, .mobile-menu) .TemplateMenu a:not(:hover, .expandable-li>ul>li>a) {
    color: rgb(var(--white-color));
}

.IndexPage header .TemplateMenu .expandable-li > ul > li > a {
    color: rgb(var(--black-color));
}

.IndexPage header .TemplateMenu .expandable-li > ul > li > a:hover {
    color: rgb(var(--primary-color));
}

/* CTA  */
.header-cta-wrapper {
    position: relative;
    z-index: 9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0 0 0 4rem;
    list-style: none;
} 

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1rem 2rem;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.IndexPage header:not(.scrolled, .mobile-menu) .btn {
    color: rgb(var(--primary-color));
    border: 2px solid rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

/* Mobilmeny */
.mobile-menu .header-logo {
    flex: 1 1 0px;
}

@media only screen and (max-width: 580px) {
    /* Header logo */
    .header-logo a {
        font-size: 1.6rem;
    }

    /* CTA  */
    .header-cta-wrapper .btn {
        padding: 0.7rem 1.5rem;
    }
}

/* ==========================================================================
Startsida
========================================================================== */

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin-top: calc(-1 * var(--menu-height));
    background-color: rgb(var(--black-color), .6);
}

.top-section .section-block {
    width: 100%;
}

.top-section .text-block {
    max-width: 85rem;
}

.top-section .section-title {
    font-size: 5.5rem;
}

.top-section p {
    max-width: 58rem;
}

.top-section .btn-primary-filled:hover {
    border: 2px solid rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

@media only screen and (max-width: 1200px) {
    .top-section .section-title {
        font-size: 4rem;
    }
}

@media only screen and (max-width: 580px) {
    .top-section .section-title {
        font-size: 3rem;
    }
}

/* CTA-sektion
========================================================================== */
.section-cta {
    background-image: linear-gradient(to bottom, rgb(var(--white-color)) 65%, rgb(var(--gray-light-color)) 65%);
}

.cta-wrapper {
    padding: 10rem 4rem 4rem;
    border-radius: 2px;
    background-image: linear-gradient(to right, rgb(var(--primary-color), .5), rgb(var(--primary-color), .3)), url('/assets/images/laboratory-hall-2000px.jpg');
    background-size: cover;
    background-position: center;
}

.cta-wrapper .btn-primary-filled:hover {
    color: rgb(var(--white-color));
}

@media screen and (max-width: 580px) {
    .cta-wrapper {
        padding: 5rem 2rem 2rem;
    }
}

/* ==========================================================================
Undersidor
========================================================================== */

/* Hero - Grundkod
========================================================================== */
.hero .section-block {
    display: flex;
    align-items: center;
    min-height: 40rem;
    text-align: center;
    background-color: rgb(var(--black-color), .5);
}

.hero .section-block-wrapper {
    width: 100%;
}

.hero .section-title {
    font-size: 6rem;
    color: rgb(var(--white-color));
}

@media only screen and (max-width: 980px) {
    .hero .section-title {
        font-size: 4.5rem;
    }
}

@media only screen and (max-width: 580px) {
    .hero .section-block {
        min-height: 30rem;
    }

    .hero .section-title {
        font-size: 3rem;
    }
}

/* CTA-sektion (.section-sub-cta)
========================================================================== */
.section-sub-cta {
    background-image: linear-gradient(to bottom, rgb(var(--white-color)) 65%, rgb(var(--gray-light-color)) 65%);
}

.section-sub-cta .cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 5rem;
}

.section-sub-cta .cta-wrapper .text-block {
    max-width: 65rem;
}

.section-sub-cta .cta-wrapper .btn-wrapper {
    margin-top: 0;
}

@media only screen and (max-width: 1000px) {
    .section-sub-cta .cta-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 4rem 2rem 2rem;
    }
    
    .section-sub-cta .cta-wrapper .btn-wrapper {
        margin-top: 2rem;
    }
}

/* ==========================================================================
Undersida: About us
========================================================================== */
@media only screen and (max-width: 1000px) {
    .section-about .split-wrapper {
        margin-top: 2rem;
    }

    .section-about .split-content {
        margin-bottom: 2rem;
    }

    .section-about .section-title {
        text-align: left;
    }
}

/* ==========================================================================
Undersida: Per Lindberg 
========================================================================== */
@media screen and (max-width: 1000px) {
    .section-portrait .split-wrapper {
        align-items: center;
        flex-direction: column-reverse;
    }
    
    .section-portrait .split-content {        
        text-align: center;
        margin: auto;
        padding-top: 3rem;
    }
    
    .section-portrait .split-image {
        max-width: 40rem;
    }
}

/* Timeline */
.timeline-wrapper {
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: rgb(var(--gray-light-color));
}

.timeline-item {
    position: relative;
    width: 40%;
}

.timeline-item.item-left {
    margin: 0 0 0 auto;
}

.timeline-item:before {
    content: '';
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 122%;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgb(var(--primary-color));
    border: 4px solid rgb(var(--white-color));
    transform: translateY(-50%);
}

.item-left.timeline-item:before {
    left: -27.6%;
}

@media only screen and (max-width: 980px) {
    .timeline-wrapper::before {
        left: 1rem;
    }

    .timeline-item {
        width: 100%;
        padding: 5rem 7rem;
    }

    .timeline-item:before,
    .item-left.timeline-item:before {
        left: -.5rem;
    }
}

@media only screen and (max-width: 680px) {
    .timeline-item {
        padding: 2rem 0 2rem 4rem;
    }
}

/* ==========================================================================
Undersida: Functional Medicine
========================================================================== */
.section-read-more p {
    display: flex;
    align-items: center;
    text-align: left;
    line-height: 1.5;
    padding-bottom: 2rem;
}

.section-read-more i {
    font-size: 2.5rem;
    margin-right: 1rem;
}

@media only screen and (max-width: 1024px) {
    .section-medicine .split-wrapper.reverse {
        flex-direction: column-reverse;
    }
}

/* ==========================================================================
Undersida: Contact us
========================================================================== */
@media only screen and (max-width: 480px) {
    .section-contact .section-block {
        padding: 3rem 2rem 5rem;
    }

    .section-contact .col-0 .p-2 {
        padding: 0 0 2rem;
    }
}

/* Formular
========================================================================== */
.ContactForm {
    padding: 3rem;
    background: rgb(var(--white-color));
    box-shadow: 0 1rem 3rem rgb(var(--black-color), .1);
}

.ContactForm .ContactFormMessage {
    width: 100%;
}

.ContactForm p {
    color: rgb(var(--primary-color));
    line-height: 1.8;
    font-weight: 600;
    font-size: 1.4rem;
}

.ContactForm input[type="text"],
.ContactForm textarea {
    border: none;
}
  
.ContactForm input[type="text"]:not(.illegal),
.ContactForm textarea:not(.illegal) {
    background-color: #f3f5f5;
}

.ContactSubmit {
    margin: 0;
}

@media only screen and (max-width: 600px) {
    .ContactForm div {
        width: 100%;
    }
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
    padding: 0 5rem;
    background-color: rgb(var(--gray-light-color));
}

.footer-container {
    max-width: var(--section-width);
    margin: 0 auto;
}

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8rem 0 6rem;
}

.footer-menu {
    width: 20%;
}

.footer-menu-large {
    width: 40%;
    padding-right: 5rem;
}

.footer-menu-medium {
    width: 30%;
}

.footer .text-label {
    padding: 0 0 1rem;
    line-height: 1;
    color: rgb(var(--primary-color));
}

.footer-submenu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-top li,
.footer-top p,
.footer-top a {
    color: rgb(var(--gray-dark-color));
    text-decoration: none;
}

.footer-top a {
    transition: .2s ease;
}

.footer a:hover {
    color: rgb(var(--primary-color));
    text-decoration: none;
}

.footer-top em {
    width: 2rem;
    margin-right: 5px;
    font-size: 1.4rem;
    text-align: center;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgb(var(--black-color), .5);
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgb(var(--gray-dark-color));
}

/* WebbEss Stamp  */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.webbess-stamp img {
    width: 2.5rem;
    margin-left: 1rem;
    opacity: .6;
}

@media only screen and (max-width: 1200px) {
    .footer {
        padding: 0 3rem;
    }

    /* Footer top */
    .footer-menu,
    .footer-menu-medium,
    .footer-menu-large {
        width: 100%;
        margin: 0 0 4rem;
    }

    .footer-menu-large p {
        max-width: 55rem;
    }
}

@media only screen and (max-width: 580px) {
    .footer {
        padding: 0 2rem;
    }

    /* Footer top */
    .footer-top {
        padding: 6rem 0 0; 
    }

    /* Footer bottom */
    .footer-bottom p,
    .footer-bottom a {
        font-size: 1.3rem;
    }
}