/* Lyckås Måleri AB */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 193, 22, 23;

    --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;
    --accent-green-color: 135, 191, 68;

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

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

    /* 	Mobile nav */
    --activate-mobile-menu: 1000;
    --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: 10rem 5rem;
}

.mw-900 .section-block-wrapper {
    max-width: 90rem;
}

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

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

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

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

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

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

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

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

/* Margins */
.mt-3 {
    margin-top: 3rem;
}

/* Ovriga klasser */
.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: .3em;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.4;
}

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

/* 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-center {
    text-align: center;
}

/* Check */
.list-check-circle {
    list-style: none;
    padding: 0;
}

.list-check-circle li {
    padding: 0rem 0.7rem;
    border-radius: 2rem;
    margin-bottom: 0.8rem;
}

.list-check-circle li::before {
    content: '\f00c';
    color: rgb(var(--white-color));
    font-weight: 400;
    font-size: 1rem;
    font-family: 'Font Awesome 5 Pro';
    background-color: rgb(var(--primary-color));
    border-radius: 50%;
    padding: 0.5rem;
    margin-right: 1rem;
}

/* Piller */
.list-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100rem;
    padding: 0;
    margin: 0 auto;
    list-style: none;
}

.list-pills li {
    display: flex;
    align-items: center;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    margin: .5rem;
    font-size: 1.5rem;
    border-radius: 4rem;
    color: rgb(var(--black-color));
    background: rgb(var(--primary-color), .4);
}

.list-pills li::before {
    content: '\f00c';
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    margin-right: 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    font-family: 'Font Awesome 5 Pro';
    border-radius: 50%;
    color: rgb(var(--white-color));
    background: rgb(var(--primary-color));
}

@media only screen and (max-width: 580px) {
    .list-pills li {
        width: 100%;
        padding: 1rem;
        font-size: 1.4rem;
    }
}

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

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

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

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

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

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

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

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

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

.ContactSubmit:hover,
.btn-primary-filled:hover {
    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));
}

.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-gray-light {
    background-color: rgb(var(--gray-light-color));
}

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

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

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

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

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

/* Grafiska element
========================================================================== */
/* Borders */
.br-3 {
    border-radius: 3rem;
}

/* 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;
}

/* Bakgrundsbilder */
.bg-stroke-1,
.bg-stroke-2 {
    position: relative;
}

.bg-stroke-2 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-stroke-1::before,
.bg-stroke-2::after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    background-size: cover;
    background-position: center top;
}

.bg-stroke-1::before {
    bottom: 0; 
    height: 10vw;
    background-image: url(/assets/images/graphics/paintstroke-1.svg);
}

.bg-stroke-2::after {
    top: 0;
    height: 10rem;
    background-image: url(/assets/images/graphics/paintstroke-2.svg);
}

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

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

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

.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;
}

@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.w-25 .card-item {
        width: calc((100% / 2) - 2rem);
    }

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

@media only screen and (max-width: 580px) {
    .cards-wrapper.w-25 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

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

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

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

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

/* Card 3-4 */
.cards-wrapper.card-3-4 .card-item {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 3rem;
}

.card-3-4 .image-wrapper {
    width: 10rem;
    height: 10rem;
    margin: -2rem 1rem;
    border-radius: 2rem;
    position: absolute;
}

.card-3-4 .card-body {
    flex: 1 1 0px;
}

.card-3-5 .contact-item a {
    word-break: break-all;
}

.card-3-4 .contact-item i {
    margin-right: 1rem;
}

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

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

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

.split-image {
    width: 50%;
    border-radius: 1rem;
}

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

/* Bredder */
.split-wrapper .w-40 {
    width: 40%;
}

.split-wrapper .w-60 {
    width: 60%;
}

@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;
    }

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

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

    /* Bredder */
    .split-wrapper .w-40,
    .split-wrapper .w-60 {
        width: 100%;
    }
} 

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

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

.SubPage header, 
header.scrolled {
    overflow: hidden;
}

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

.IndexPage header:not(.mobile-menu) .header-logo img {
    position: absolute;
    top: 0rem;
    max-height: 20rem;
}
 
.SubPage header:not(.mobile-menu) .header-logo img,
header.scrolled:not(.mobile-menu) .header-logo img {
    position: absolute; 
    top: -3rem;
    max-height: 15rem;
} 

/* 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) {
    color: rgb(var(--white-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;
}
 
/* Mobilmeny */
.mobile-menu .header-logo {
    flex: 1 1 0px;
}

.mobile-menu .header-logo img,
.mobile-menu.scrolled .header-logo img { 
    position: absolute;
    top: -3rem;
    max-height: 13rem; 
}

@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), .5);
}

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

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

.top-section .btn-primary-filled:hover {
    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;
    }
}

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

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

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

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

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

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

/* ==========================================================================
Undersida: Klimat & Miljo (.section-climate)
========================================================================== */
.section-climate .small-title i {
    font-size: 4rem;
    padding-left: 1.5rem;
}

.section-climate .split-image {
    border-radius: 1rem 0 0 1rem;
}

.section-climate .split-wrapper {
    border-radius: 1rem;
}

.section-climate .card-logo {
    max-width: 12rem;
    padding-bottom: 3rem;
    height: 15rem;
    align-content: end;
}

@media only screen and (max-width: 1000px) {
    .section-climate .split-image {
        border-radius: 1rem;
    }
}

@media only screen and (max-width: 750px) {
    .section-climate .card-item {
        padding: 0;
        text-align: center;
    }

    .section-climate .card-logo {
        margin: 0 auto;
    }
}

/* ==========================================================================
Undersida: Fastigheter
========================================================================== */
.section-map-areas iframe {
    border-radius: 2rem;
}

@media only screen and (max-width: 980px) {
    .section-map-areas iframe {
        height: 50rem;
    }
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
    padding-top: 5vw;
}

.footer .container {
    position: relative;
    padding: 0 5rem;
    background-color: rgb(var(--primary-color));
}

.footer .container::before {
    content: '';
    position: absolute;
    display: block;
    top: -10vw;
    left: 0;
    width: 100%;
    height: 10vw;
    background-image: url(/assets/images/graphics/paintstroke-1-primary.svg);
    background-size: cover;
    background-position: center top; 
}

.EditMode .footer .container::before {
    display: none;
}

.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 10rem;
}

.footer-menu {
    width: 20%;
}

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

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

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

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

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

.footer a:hover {
    text-decoration: underline;
} 

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

/* Social Menu */
.social-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-menu li {
    margin: 1rem 1rem 1rem 0;
}

.social-menu a {
    font-size: 1.4rem;
    color: rgb(var(--white-color));
    padding: 5px 10px;
    border-radius: 2rem;
    line-height: 1;
    text-decoration: none;
    transition: all .3s ease;
}

.social-menu a:hover {
    color: rgb(var(--black-color));
    background-color: rgb(var(--white-color));
    transition: all .3s ease;
}

/* 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(--white-color), .5);
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgb(var(--white-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;
    filter: invert();
}

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

    /* Footer top */
    .footer-menu {
        width: 48%;
        margin: 0 0 5rem;
    }

    .footer-menu-large {
        width: 100%;
    }

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

@media only screen and (max-width: 750px) {
    /* Footer top */
    .footer-top {
        padding: 5rem 0 0;
    }

    .footer-menu,
    .footer-menu-large {
        width: 100%;
    }
}

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

    /* Footer top */
    .footer-menu {
        margin: 0 0 3rem;
    }

    /* Social Menu */
    .social-menu {
        justify-content: center;
    }

    .social-menu li {
        margin: 1rem 5px;
    }

    .social-menu a {
        font-size: 1.2rem;
    }

    /* Footer bottom */
    .footer-bottom {
        flex-direction: column-reverse;
    }

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

    .webbess-stamp {
        margin: 0 auto 2rem;
    }
}
