/* Bergschold & Holm AB */

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 63, 136, 197;

    --black-color: 0, 0, 0;
    --gray-light-color: 243, 241, 237;
    --gray-color: 119, 119, 119;
    --white-color: 255, 255, 255;

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

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

    /* 	Mobile nav */
    --activate-mobile-menu: 980;
    --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;
}

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

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

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

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

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

/* Margins */
.mb-3 {
    margin-bottom: 3rem;
}

/* Bredder */
.max-width .section-block {
    padding-left: 0;
    padding-right: 0;
}

.max-width .section-block-wrapper {
    max-width: none;
}

/* Ovriga klasser */

@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: "Roboto Condensed", sans-serif;
}

/* Rubriker */
.text-label {
    padding-bottom: 2rem;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

.section-title {
    padding-bottom: 2rem;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Roboto', sans-serif;
}

/* Brodtext och lankar */
p,
li {
    color: rgb(var(--black-color));
    font-weight: 350;
}

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

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

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

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

/* Knappar och speciella lankar
========================================================================== */

/* Bouncing arrow */
.bouncing-arrow {
    position: absolute;
    left: 50%;
    bottom: 4rem;
    transform: translatex(-50%);
    animation: bounce 2s infinite;
}

.bouncing-arrow i {
    color: rgb(var(--white-color));
    font-size: 4rem;
    font-weight: 500;
}

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

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

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

/* Farger
========================================================================== */

/* Bakgrunder */
.gradient-white-black {
    background: linear-gradient(to bottom, rgb(var(--white-color)) 50%, rgb(var(--black-color)) 50%);
}

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

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

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

/* Grafiska element
========================================================================== */
.border-bottom-primary {
    border-bottom: 2px solid rgb(var(--primary-color));
}

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

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

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

.cards-wrapper:not(.w-100) {
    margin-left: -1rem;
    margin-right: -1rem;
}

/* Bredder */

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

.card-3-6 .card-item {
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
}

.card-3-6 .card-body {
    width: 50%;
}

@media only screen and (max-width: 850px) {
    .card-3-6 .card-item {
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem;
    }

    .card-3-6 .card-body {
        order: -1;        
        width: 100%;
    }
}

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

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

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

.split-image {
    width: 50%;
}

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

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

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

    .split-content {
        width: 100%;
        max-width: 70rem;
    }

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

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

/* Header / Navigation
========================================================================== */
header {
    padding: 0 3rem;  
}

header .container {
    max-width: 100%;
}

header:not(.mobile-menu) .container {
    height: var(--menu-height);
}

header:not(.scrolled) {
    border-color: transparent;
    background-color: transparent;
}

header.scrolled {
    border-bottom: 1px solid rgb(var(--gray-light-color));
}

/* Logo */
.header-logo {
    flex: 1 1 0px;
}

header:not(.scrolled, .mobile-menu) .header-logo img {
    max-height: 12rem; 
}

/* Header logo */
header:not(.mobile-menu) .header-logo {
    align-self: flex-start;
}

header:not(.mobile-menu) .header-logo img {
    padding: .8rem 0;
    transition: .8s ease;
}

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

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

/* Mobilmeny */
.mobile-menu:not(.scrolled, .active-menu) {
    background-color: rgb(var(--white-color));
}

.mobile-menu .TemplateMenu li {
    padding: 0 2rem;
    text-align: center;
}

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

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

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

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

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

.top-section .section-title {
    font-size: 6rem;
    text-transform: uppercase;
    line-height: 1.4;
    padding-bottom: 0;
}

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

@media only screen and (max-width: 1000px) {
    .top-section .bouncing-arrow {
        display: none;
    }
}

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

/* referensprojekt
========================================================================== */
.section-scroll {
    overflow: hidden;
}

/* Slider */
.scroll-wrapper.cards-wrapper .slick-list {
    width: 100%;
    overflow: hidden;
}

.scroll-wrapper.cards-wrapper .slick-track {
    display: flex;
}

.scroll-wrapper.cards-wrapper .card-item {
    display: flex;
    height: auto;
}

/* Card item */
.scroll-wrapper .card-item {
    margin: 2rem 3rem;
}

/* Slick Arrow */
.scroll-wrapper .slick-arrow {
    position: absolute;
    top: auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgb(var(--primary-color));
    z-index: 1;
}

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

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

.scroll-wrapper .slick-prev {
    left: 0;
}

/* Referenskort */ 
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    width: 50%;
    margin-right: 2rem;
    align-content: start; 
    align-items: start;
}

.image-gallery .gallery-item {
    position: relative;
    width: 100%;
    max-width: 18rem;
}

.image-gallery .gallery-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.image-gallery .gallery-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    top: 0;
    left: 0;
}

/* Ikon pa kort */
.image-gallery .gallery-thumb {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: all .3s ease;
}

.gallery-item:hover .gallery-thumb {
    opacity: 1;
}

.gallery-thumb p {
    color: rgb(var(--white-color));
    font-size: 2rem;
}

/* Play-ikon pa kort */
.gallery-thumb .fa-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding-left: .3rem;
    font-size: 1.5rem;
    color: rgb(var(--black-color));
    background-color: rgb(var(--white-color));
    border-radius: 50%;
}

@media only screen and (max-width: 850px) {
    .image-gallery {
        width: 100%;
        margin-right: 0;
        margin-top: 2rem;
    }

    .image-gallery .gallery-item {
        max-width: none;
    }
}

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

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

.footer .text-label {
    padding: 0 0 1rem;
    line-height: 1;
    font-size: 2rem;
}

.footer i {
    margin-right: 1rem;
}

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

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

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

/* Certification */
.footer .cert-img {
	max-width: 30rem;
}

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

.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: 1200px) {
    .footer {
        padding: 0 3rem;
    }
}

@media only screen and (max-width: 900px) {
    /* Footer top */
    .footer-menu {
        width: 50%;
    }

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

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

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

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

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

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