/* Byggfirma C Klerfors AB */

/* Typsnitt */
@import url('https://fonts.googleapis.com/css2?family=Anek+Latin:wght@300;400;500;700;800&display=swap');

/* Animationer */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 12rem;
    --menu-height-scrolled: 8rem;
    --section-width: 130rem;

    /* 	Colors */
    --primary-color: 83, 153, 53;
    --primary-dark-color: 0, 111, 59;
    --primary-light-color: 221, 241, 213;

    --black-color: 17, 18, 18;
    --gray-dark-color: 62, 63, 65;
    /* --gray-color: 189, 190, 192; */
    --gray-light-color: 237, 237, 238;
    --white-color: 255, 255, 255;

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

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

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

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

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

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

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

/* 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: 'Anek Latin', sans-serif;
}

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

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

.small-title {
    font-size: 2.8rem;
    line-height: 1.4;
    padding-bottom: .7em;
}

.ingress {
    font-size: calc(var(--base-size) * 1.2);
    font-weight: 700;
}

/* Brodtext och lankar */
p, li {
    font-weight: 400;
    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;
}

strong {
    font-weight: 800;
}

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

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

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

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

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

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

/* Knappar */
.btn {
    min-width: 15rem;
    padding: 1.4rem 2rem;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 1rem;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
}

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

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

.btn-white-filled {
    color: rgb(var(--black-color));
    border: 1px solid rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

.btn-white-filled:hover {
    border: 1px solid rgb(var(--white-color));
    background-color: transparent;
    color: rgb(var(--white-color));
}

/* Arrow link */
.arrow-link {
    font-size: var(--base-size);
    padding-right: 1rem;
    color: rgb(var(--gray-dark-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: 480px) {
    .btn {
        display: block;
        width: 100%;
    }
}

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

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

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

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

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

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

/* Bakgrundsbilder
========================================================================== */
.bg-image {
    position: relative;
}

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

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

.card-item {
    border-radius: 5px;
    box-shadow: 0 1rem 3rem rgb(var(--black-color), .2);
    text-decoration: none;
    overflow: hidden;
    transition: all .3s ease;
}

/* Specifika bredder */
.cards-wrapper.w-33 .card-item {
    width: calc((100% / 3) - 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-33 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

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

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

/* Card 3-4 */
.card-3-4.cards-wrapper .card-item {
    margin-top: 4rem;
}

.card-3-4 .card-item {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 3rem;
    box-shadow: none;
    overflow: unset;
}

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

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

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

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

@media only screen and (max-width: 420px) {
    .card-3-4 .image-wrapper {
        width: 7rem;
        height: 7rem;
    }
}

/* Card 3-6 */
.card-3-6 .card-item {
    position: relative;
    padding: 20rem 3rem 3rem;
}

.card-3-6 .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-3-6 .image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--black-color), .3);
    transition: .3s ease-in-out;
}

.card-3-6 .card-item:hover .image-wrapper::after {
    background: rgba(var(--primary-dark-color), .8);
}

.card-3-6 .card-body {
    z-index: 1;
    position: relative;
}

.card-3-6 .small-title {
    padding: 0;
}

@media only screen and (max-width: 580px) {
    .card-3-6 .card-item {
        position: relative;
        padding: 20rem 2rem 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%;
}

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

/* Speciella bredder */
.split-wrapper .w-60 {
    width: 60%;
}

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

@media screen and (max-width: 1300px) {
    .split-wrapper .w-60,
    .split-wrapper .w-40 {
        width: 50%;
    }

    .split-content {
        padding: 4rem;
    }
}

@media screen and (max-width: 1000px) {
    .split-content,
    .split-wrapper .w-60,
    .split-wrapper .w-40 {
        width: 100%;
    }

    .split-content {
        padding: 3rem;
    }

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

@media screen and (max-width: 580px) {
    .split-wrapper {
        background: transparent;
    }

    .split-content {
        padding: 0 0 3rem;
    }
}

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

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

.header-logo img {
    padding: 2rem 0;
}

/* Nav */
.TemplateMenu a {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgb(var(--black-color));
}

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

/* CTA  */
.header-cta-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0 0 0 2rem;
    list-style: none;
}

.header-cta-wrapper li {
    margin: 0 .5rem;
}

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1rem 2rem; 
    line-height: 1;
}

@media only screen and (max-width: 580px) {
    /* Header logo */
    .header-logo img {
        padding: 1rem 0;
    }

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

@media only screen and (max-width: 340px) {
    /* CTA */
    .header-cta-wrapper .btn {
        font-size: 1.2rem;
        padding: 0.7rem 1rem;
    }
}

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: flex-end;
    min-height: calc(100vh - 5rem);
    margin-top: calc(-1 * var(--menu-height));
    background: linear-gradient(46deg, rgb(var(--black-color), .8), rgb(var(--black-color), .2));
    padding-bottom: 5rem;
} 

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

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

.top-section .section-title {
    font-size: 6rem;
    padding-bottom: 2rem;
}

/* Bouncing arrow */
.bouncing-arrow-wrapper {
    position: absolute;
    left: 50%;
    bottom: -1px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 20rem;
    height: 6.8rem;
    background-image: url(/assets/images/waves/arrow-bg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    transform: translateX(-50%);
}

.bouncing-arrow {
    position: relative;
    bottom: -2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: rgb(var(--primary-color));
    text-decoration: none;
}

.bouncing-arrow i {
    color: rgb(var(--white-color));
    font-size: 2rem;
    font-weight: 300;

    transform: translatex(-50%);
    animation: bounce 2s infinite;
}

.arrow-animate {
    position: absolute;
    left: 50%;
    bottom: -4rem;
    width: 9rem;
    transform: translateX(-50%);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-3px);
    }
}


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

    .bouncing-arrow-wrapper {
        width: 11rem;
    }

    .arrow-animate {
        display: none;
    }
}

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


/* Tjanster
========================================================================== */
.section-services {
    background-image: linear-gradient(rgb(var(--gray-light-color)), rgb(var(--gray-light-color)));
    background-size: 100% 10rem;
    background-repeat: no-repeat;
    background-position: center top;
}

/* Om
========================================================================== */
@media only screen and (max-width: 1000px) {
    .section-about {
        padding: 0 0 5rem;
    }

    .section-about .split-content {
        padding: 3rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-about .split-content {
        padding: 5rem 0 3rem;
    }
}

/* Nyheter
========================================================================== */
.section-news {
    overflow: hidden;
    background-image: linear-gradient(rgb(var(--white-color)), rgb(var(--white-color)));
    background-size: 100% 10rem;
    background-repeat: no-repeat;
    background-position: center top;
}

.scroll-wrapper {
    padding-bottom: 5rem;
}

.scroll-wrapper .slick-list {
    overflow: visible;
    width: 100%;
}

.scroll-wrapper .card-item {
    margin: 0 3rem 0 0;
}

/* slick knappar */
.scroll-wrapper .slick-arrow {
    position: absolute;
    top: auto;
    bottom: -2rem;
    width: 4rem;
    height: 4rem;
    font-size: 0;
    background-color: rgb(var(--primary-color));
    border: 1px solid rgb(var(--primary-color));
    border-radius: 50%;
    cursor: pointer;
    transition: .4s;
}

.scroll-wrapper .slick-arrow::after {
    color: rgb(var(--white-color));
    font-weight: 300;
}

.scroll-wrapper .slick-arrow:not(.slick-disabled):hover,
.scroll-wrapper .slick-arrow:not(.slick-disabled):focus {
    background-color: rgb(var(--primary-light-color));
    border-color: rgb(var(--primary-light-color));
}

.scroll-wrapper .slick-arrow.slick-disabled {
    opacity: .5;
    cursor: not-allowed;
}

.scroll-wrapper .slick-prev {
    left: auto;
    right: 5rem;
}

.scroll-wrapper .slick-next {
    left: auto;
    right: 0;
}

@media only screen and (max-width: 1024px) {
    .scroll-wrapper .card-item {
        margin: 0 2rem 0 0;
    }
}

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

/* Sektion Certifikat
========================================================================== */
.certificates {
    padding: 6rem 3rem 0;
    margin-bottom: 5rem;
    border-radius: 5px;
}

.certificates .text-block {
    margin: 0 auto;
}

.certificates-logos {
    position: relative;
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    transform: translateY(50%);
    max-width: 46rem;
}

.certificates-logos .logo-item {
    margin: 0 -2rem;
    padding: 3px;
    border-radius: 6px;
    background-color: rgb(var(--white-color));
    box-shadow: 0 5px 2rem rgb(var(--black-color), .2);
    transition: all .3s ease;
}

.certificates-logos .logo-item img {
    height: 10rem;
    width: auto;
}
.certificates-logos a:hover{
    transform: scale(1.1);
}

@media only screen and (max-width: 580px) {
    .certificates {
        padding: 3rem 2rem 0;
    }
    .certificates-logos {
        transform: translateY(10%);
        flex-direction: column;
        text-align: center;
    }
    .certificates-logos .logo-item{
        margin-bottom: 1rem;
    }
    
}

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

/* Hero
========================================================================== */
.hero {
    background-color: rgb(var(--black-color), .5);
    background-image: url(/assets/images/waves/hero-gradient.svg);
    background-size: auto 100%;
    background-position: center left;
    background-repeat: no-repeat;
}

.hero .section-block {
    padding-top: 15rem;
    padding-bottom: 15rem;
}

.hero .opct {
    object-position: center 30%;
}

.hero .section-title {
    font-size: 6rem;
    font-weight: 800;
    padding-bottom: 0;
}

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

    .hero {
        background-position: center left -15rem;
    }
}

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

    .hero .section-block {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

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

.cta-wrapper {
    position: relative;
    border-radius: 5px;
    padding: 3rem 4rem;
    box-shadow: 0 1rem 3rem rgb(var(--primary-dark-color), .4);
}

@media only screen and (max-width: 1000px) {
    .section-cta .section-block {
        padding-top: 0;
        background-image: linear-gradient(to bottom, rgb(var(--white-color)) 5rem, rgb(var(--gray-light-color)) 5rem);
    }

    .cta-wrapper {
        padding: 3rem 2rem;
    }
}

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

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

.footer-menu {
    width: 20%;
    margin: 0 0 3rem ;
}

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

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

.footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
 
.footer-top li,
.footer-top p,
.footer-top a:not(.circle-icon) {
    color: rgb(var(--white-color));
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.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;
    filter: invert();
}

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

    /* Footer top */
    .footer-menu {
        width: 48%;
    }

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

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

@media only screen and (max-width: 750px) {
    /* Footer top */
    .footer-menu,
    .footer-menu-large {
        width: 100%;
    }
}

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