/* CM Byggkonsult i Helsingborg AB */

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

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 82, 105, 126;
    --primary-light-color: 184, 197, 209;
    --secondary-color: 245, 244, 240;

    --black-color: 16, 21, 25;
    --gray-dark-color: 75, 75, 75;
    --gray-light-color: 240, 240, 240;
    --white-color: 255, 255, 255;

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

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

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

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

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

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

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

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

/* Ovriga klasser */
.justify-center {
    justify-content: center;
}

.align-center {
    align-items: 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: "Frank Ruhl Libre", serif;
}

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

.section-title {
    padding-bottom: 0.5em;
    font-size: 3.3rem;
    font-weight: 400;
    line-height: 1.2;
}

.small-title {
    padding-bottom: 0.7em;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.4;
}

.text-title {
    padding-bottom: 0.5em;
    font-size: var(--base-size);
}

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

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

/* List-check */
.list-check {
    position: relative;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
}

.list-check li {
    position: relative;
    padding: 0 0 0 1.5rem;
}

.list-check li::before {
    content: "\f00c";
    position: absolute;
    top: 7px;
    left: 0;
    padding: 0 1rem 0 0;
    color: rgb(var(--primary-color));
    font-weight: 700;
    font-size: 0.8rem;
    font-family: "Font Awesome 5 Pro";
}

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

.cols-3 {
    column-count: 3;
    column-gap: 2rem;
}

@media only screen and (max-width: 980px) {
    /* Ovriga klasser */
    .cols-3 {
        column-count: 2;
    }
}

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

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

    /* Ovriga klasser */
    .cols-3 {
        column-count: 1;
        column-gap: 0;
    }
}

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

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

/* Knappar */
.btn {
    min-width: 20rem;
    padding: 1.4rem 2rem;
    font-family: "Gantari", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.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));
}

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

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

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
/* Sektionsborder */
.section-border .section-block-wrapper {
    position: relative;
}

.section-border .section-block-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10rem;
    width: 100%;
    max-width: 70rem;
    border-bottom: 1px solid rgb(var(--primary-color));
}

@media only screen and (max-width: 1024px) {
    .section-border .section-block-wrapper::after {
        bottom: -8rem;
    }
}

@media only screen and (max-width: 580px) {
    .section-border .section-block-wrapper::after {
        bottom: -5rem;
    }
}

/* HR border */
hr {
    width: 15rem;
    border: none;
    border-bottom: 1px solid rgb(var(--primary-color));
    margin: 2rem 0;
}

hr.w-100 {
    width: 100%;
}

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

.text-center hr {
    margin: 2rem auto;
}

/* Bakgrundsbild
========================================================================== */
.bg-image {
    position: relative;
    overflow: hidden;
}

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

/* Crossfade */
.bg-crossfade {
    position: relative;
}

.fade-slider {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fade-slider div {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.fade-slider.slick-slider {
    position: absolute;
}

/* Cards
========================================================================== */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

/* Generellt */
.card-item {
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-item .image-wrapper {
    overflow: hidden;
}

a.card-item img {
    transition: all 0.3s ease;
}

a.card-item:hover img {
    transform: translate(-50%, -50%) scale(1.05);
    transition: all 0.8s ease;
}

/* Bredder */
.cards-wrapper.w-25 .card-item {
    width: calc((100% / 4) - 3rem);
    margin: 1.5rem;
}

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

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

@media only screen and (max-width: 1300px) {
    /* Bredder */
    .cards-wrapper.w-25 .card-item {
        width: calc((100% / 3) - 3rem);
    }
}

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

@media only screen and (max-width: 750px) {
    .cards-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

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

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

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

/* Card 3-1 */
.card-3-1 .card-item {
    position: relative;
}

.card-3-1 .image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.card-3-1 .image-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-3-1.start .card-item:nth-child(2) .small-title,
.card-3-1.start .card-item:nth-child(3) .small-title {
    color: rgb(var(--white-color));
}

@media only screen and (max-width: 1000px) {
    .card-3-1.start .card-item:nth-child(3) .small-title {
        color: rgb(var(--black-color));
    }
}

@media only screen and (max-width: 750px) {
    .card-3-1.start .card-item:nth-child(2) .small-title,
    .card-3-1.start .card-item:nth-child(3) .small-title {
        color: rgb(var(--black-color));
    }
}

/* Card 3-2 - medarbetarkort */
.card-3-2 .card-item {
    padding-bottom: 5rem;
}

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

/* Card 3-6 */
.card-3-6 .card-item {
    position: relative;
    overflow: hidden;
}

.card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.card-3-6 .image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
}

.card-3-6 .image-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-3-6 .image-wrapper::after {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    background-color: rgb(var(--black-color), 0.2);
}

.card-3-6 a.card-link:hover .image-wrapper::after {
    background-color: rgb(var(--black-color), 0.8);
}

.card-3-6 .card-body {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 0 1rem 1rem;
}

.card-3-6 .card-body .small-title {
    padding: 0;
    color: rgb(var(--white-color));
}

.card-3-6 .card-body p {
    max-width: 40rem;
    color: rgb(var(--white-color));
}

/* Card 3-6 hover state */
.card-3-6.hover-card .card-body {
    transform: translateY(calc(100% - 4rem));
    transition: all 0.3s ease;
}

.card-3-6.hover-card a {
    text-decoration: none; 
}

.card-3-6.hover-card .small-title {
    line-height: 3rem;
    padding-bottom: 1rem;
}

.card-3-6.hover-card p {
    opacity: 0;
    transition: all 0.3s ease;
}

.card-3-6.hover-card .card-item:hover .card-body {
    transform: translateY(0);
}

.card-3-6.hover-card .card-item:hover p {
    opacity: 1;
}

@media only screen and (max-width: 1000px) {
    .card-3-6 .card-body {
        padding: 0 2rem 2rem;
    }

    /* Card 3-6 hover state */
    .card-3-6.hover-card .card-body {
        transform: translateY(calc(100% - 4rem));
    }
}

@media only screen and (max-width: 750px) {
    .card-3-6.hover-card .card-item {
        overflow: visible;
    }

    .card-3-6.hover-card .image-wrapper {
        width: auto;
        margin: 0 -3rem;
    }

    .card-3-6.hover-card .card-body {
        position: relative;
        transform: translateY(-3rem);
        padding: 2rem;
        text-align: center;
        background-color: rgb(var(--secondary-color));
        text-decoration: none;
    }

    .card-3-6.hover-card .card-item:hover .card-body {
        transform: translateY(-3rem);
    }

    .card-3-6.hover-card .small-title {
        color: rgb(var(--black-color));
    }

    .card-3-6.hover-card p {
        opacity: 1;
        color: rgb(var(--gray-dark-color));
        margin: 0 auto;
    }
}

@media only screen and (max-width: 580px) {
    .card-3-6.hover-card .image-wrapper {
        margin: 0 -2rem;
    }
}

/* Logos 1 */
.logos-1 .card-item {
    text-align: center;
}

.logos-1 img {
    width: 100%;
    max-height: 10rem;
    object-fit: contain;
}

@media only screen and (max-width: 868px) {
    .logos-1 img {
        max-height: 8rem;
    }
}

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

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

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

.split-image {
    width: 50%;
}

/* Overlapping Split */
.overlap .split-content {
    position: relative;
    z-index: 1;
    width: 60%;
    margin-left: -10%;
}

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

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

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

    /* Overlapping Split */
    .overlap .split-content {
        width: 100%;
        margin: -5rem auto 0;
    }

    .overlap .split-image {
        width: calc(100% + 6rem);
        margin: 0 -3rem;
    }
}

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

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

    /* Overlapping Split */
    .overlap .split-content {
        padding: 3rem 2rem;
    }

    .overlap .split-image {
        width: calc(100% + 4rem);
        margin: 0 -2rem;
    }
}

/* Header / Navigation
========================================================================== */
header {
    border-bottom: 1px solid transparent;
    background-color: transparent;
}

header.scrolled {
    background-color: rgb(var(--white-color));
    border-color: rgb(var(--gray-light-color));
}

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

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

.transparent-nav header:not(.scrolled) a {
    color: rgb(var(--white-color));
}

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

body:not(.EditMode) .TemplateMenu > li:first-child {
    display: none;
}

.EditMode .TemplateMenu a {
    color: rgb(var(--black-color)) !important;
}

/* Dropdown */
.TemplateMenu ul a {
    font-family: "Gantari", sans-serif;
    text-transform: none;
    line-height: 1.4;
    padding: 1rem 2rem;
    letter-spacing: 0;
}

@media only screen and (max-width: 1024px) {
    header {
        background-color: rgb(var(--white-color));
        border-color: rgb(var(--gray-light-color));
    }

    .transparent-nav header:not(.scrolled) a {
        color: rgb(var(--black-color));
    }
}

@media only screen and (max-width: 580px) {
    /* Header CTA */
    .header-cta-wrapper .btn {
        min-width: unset;
        padding: 0.7rem 1.5rem;
    }
}

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

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

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

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

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

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

/* Sektion Tjanster
========================================================================== */
.EditMode .section-services .cards-wrapper {
    margin-top: 0;
}

.section-services .cards-wrapper {
    position: relative;
    margin-top: -10rem;
}

/* Sektion Varderingar
========================================================================== */
.value-wrapper .split-content {
    display: flex;
    align-items: center;
    width: 70%;
    min-height: 30rem;
    border-left: 1px solid rgb(var(--white-color));
    padding: 3rem 0 3rem 10rem;
}

.value-wrapper .split-tags {
    width: 30%;
    padding: 3rem 3rem 3rem 0;
}

button.small-title {
    display: block;
    appearance: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    color: rgb(var(--white-color), 0.5);
}

button.small-title.tag-picked {
    color: rgb(var(--white-color));
}

button.small-title:hover {
    color: rgb(var(--white-color), 0.8);
}

@media only screen and (max-width: 1000px) {
    .value-wrapper .split-content {
        display: block;
        width: 100%;
        border-left: none;
        border-top: 1px solid rgb(var(--white-color));
        padding: 5rem 0 0;
    }

    .value-wrapper .split-tags {
        width: 100%;
        padding: 0 0 3rem;
    }

    button.small-title {
        display: inline-block;
    }
}

@media only screen and (max-width: 450px) {
    .value-wrapper .split-tags {
        padding-bottom: 1rem;
    }

    button.small-title {
        font-size: 1.6rem;
    }

    .value-wrapper .split-content {
        padding-top: 3rem;
    }
}

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

/* Hero
========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    background-color: rgb(var(--black-color), 0.2);
    margin-top: calc(-1 * var(--menu-height) - 1px);
}

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

.hero img {
    object-position: center top;
}

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

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

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

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

/* ==========================================================================
Undersida: Tjanster
========================================================================== */
.list-box {
    padding: 4rem 2rem;
}

/* ==========================================================================
Undersida Projekt > Enskild projektsida
========================================================================== */
.main-gallery {
    margin-bottom: 3rem;
}

.gallery-container .image-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* Gallery Slider */
.main-gallery .slick-list {
    width: 100%;
}

.main-gallery-slider .image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background-color: rgb(var(--gray-light-color));
}

/* Gallery Slick arrow */
.main-gallery .slick-arrow {
    position: absolute;
    z-index: 1;
    top: 0;
    width: 5rem;
    height: 100%;
    background-color: transparent;
}

.main-gallery .slick-arrow:hover {
    background-color: rgb(var(--white-color), 0.5);
}

.main-gallery .slick-arrow::after {
    font-weight: 300;
    color: rgb(var(--black-color));
}

.main-gallery .slick-prev {
    left: 0;
}

.main-gallery .slick-next {
    right: 0;
}

/* Gallery thumbnails */
.thumbnails {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
}

.thumbnails .gallery-item {
    position: relative;
    width: calc(100% / 4 - 1rem);
    margin: 0 1rem 1rem 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.thumbnails .gallery-item.active-thumbnail,
.thumbnails .gallery-item:hover {
    opacity: 1;
    transition: all 0.3s ease;
}

.thumbnails .gallery-item .image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.thumbnails .gallery-item .image-wrapper img {
    object-fit: cover;
}

/* Ul lista */
.section-project ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 4rem 0 0;
    padding: 0;
}

.section-project ul li {
    width: 50%;
    margin: 0 0 2rem;
}

/* ==========================================================================
Undersida Kontakt
========================================================================== */
.contact-options {
    font-family: "Gantari", sans-serif;
    font-style: normal;
    color: rgb(var(--gray-dark-color));
}

.contact-options a {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    padding: 0 0 5px;
}

.download-contact {
    font-family: "Gantari", sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: rgb(var(--gray-dark-color));
}

.download-contact::before {
    content: "\f2bb";
    display: inline-block;
    font-family: "Font Awesome 5 Pro";
    margin: 0 1rem 0 0;
}

.text-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding: 3rem;
}

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

/* ==========================================================================
Footer
========================================================================== */
.footer {
    padding: 0 5rem;
    background-color: rgb(var(--primary-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), 0.3);
}

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

.footer-menu-large {
    width: 30%;
    margin-right: 5rem;
    padding: 0 5rem 0 0;
    border-right: 1px solid rgb(var(--white-color));
}

.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%;
        margin-right: 0;
        padding: 0 0 5rem;
        border-right: none;
        border-bottom: 1px solid rgb(var(--white-color));
    }

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