/* KS & Daldens AB */

/* Typsnitt */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;900&display=swap");

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

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

    /* 	Colors */
    --primary-color: 61, 52, 139;
    --primary-dark-color: 39, 33, 89;
    --primary-light-color: 131, 120, 237;

    --black-color: 16, 16, 20;
    --gray-dark-color: 54, 54, 58;
    --gray-color: 143, 143, 146;
    --gray-light-color: 231, 231, 233;
    --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 4rem;
}

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

.pt-0 .section-block {
    padding-top: 0;
}

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

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

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

/* Bredder */
.mw-1000 .section-block-wrapper {
    max-width: 100rem;
}

.mw-60 {
    max-width: 6rem;
}

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

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

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

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

/* Rubriker */
.text-label {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 2rem;
    color: rgb(var(--black-color));
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    padding-bottom: 0.5em;
    color: rgb(var(--black-color));
}

.small-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
    padding-bottom: 0.7em;
    color: rgb(var(--black-color));
}

.ingress {
    font-size: calc(var(--base-size) * 1.2);
    font-weight: 600;
    color: rgb(var(--black-color));
}

.text-title {
    font-family: inherit;
    font-size: var(--base-size);
    font-weight: 700;
}

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

a {
    font-size: inherit;
    font-weight: 400;
    text-decoration: underline;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

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

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

.text-block.mw-60,
.text-block-center.mw-60 {
    max-width: 60rem;
}

.text-bold,
strong {
    font-weight: 900;
}

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

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

.text-small {
    font-size: 1.5rem;
}

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

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

.btn-wrapper.multiple .btn:not(:last-child) {
    margin-right: 2rem;
}

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

/* Knappar */
.btn {
    min-width: 20rem;
    padding: 1.4rem 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 4rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s ease;
}

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

.btn-primary-filled:hover {
    background-color: rgb(var(--primary-light-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: 580px) {
    .btn:not(.btn-nav) {
        display: block;
        width: 100%;
    }

    .btn-wrapper.multiple .btn:not(:last-child) {
        margin-right: 0rem;
        margin-bottom: 2rem;
    }
}

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

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

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

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

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
.figure {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 50%;
    border-radius: 5px;
    border: 1px solid rgb(var(--gray-light-color));
    overflow: hidden;
}

.figure img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

hr.vertical-hr {
    width: 2px;
    height: 15rem;
    border-color: rgb(var(--black-color));
    border-width: 1px;
    margin: 0 auto 3rem;
}

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

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

@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-50 .card-item {
        width: 100%;
    }
}

@media only screen and (max-width: 750px) {

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

/* Card 1-1 */
.card-1-1 .card-item {
    padding: 3rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.card-1-1 a.card-item.bg-gray-light:hover {
    background: rgb(var(--primary-color));
}

.card-1-1 .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-1-1 .card-header i {
    margin-right: 1rem;
    font-size: 2.5rem;
}

.card-1-1 a.card-item.bg-gray-light:hover i,
.card-1-1 a.card-item.bg-gray-light:hover .small-title,
.card-1-1 a.card-item.bg-gray-light:hover p,
.card-1-1 a.card-item.bg-gray-light:hover a {
    color: rgb(var(--white-color));
}

/* Cards 3-1 */
.card-3-1 .card-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
}

.card-3-1 a.card-item:hover {
    background-color: rgb(var(--white-color));
}

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

.card-3-1 .card-body {
    flex-grow: 1;
    width: 100%;
    padding: 3rem 3rem 0;
}

.card-3-1 .btn-wrapper {
    position: relative;
    transform: translateY(50%);
}

@media only screen and (max-width: 1050px) {
    .card-3-1 .card-item:not(:last-child) {
        margin-bottom: 6rem;
    }

    .card-3-1 .card-body {
        flex-grow: 1;
        width: 100%;
        padding: 2rem 2rem 0;
    }
}

@media only screen and (max-width: 580px) {
    .card-3-1 .card-item:not(:last-child) {
        margin-bottom: 3rem;
    }

    .card-3-1 .btn-wrapper {
        transform: none;
    }
}

/* Card 3-4 */
.card-3-4 .card-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cards-wrapper.card-3-4 .card-item.mb-2 {
    margin-bottom: 2rem;
}

.card-3-4 .image-wrapper {
    width: 16rem;
    height: 100%;
    border-radius: 1rem;
}

.card-3-4 .text-wrapper {
    flex: 1 1 0px;
    padding: 2rem;
}

.card-3-4 .small-title {
    padding-bottom: 0;
    font-size: 1.9rem;
    font-weight: 700;
}

.card-3-4 p,
.card-3-4 a {
    display: block;
    padding-bottom: 0.3rem;
    font-size: 1.5rem;
    text-decoration: none;
}

.card-3-4 a:hover {
    color: rgb(var(--primary-color));
}

.card-3-4 i,
.card-3-4 em {
    margin-right: 1rem;
    color: rgb(var(--primary-color));
}

@media only screen and (max-width: 1020px) {
    .card-3-4 .card-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-3-4 .image-wrapper {
        width: 100%;
    }
}

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

    .card-3-4 .text-wrapper {
        padding: 2rem 0;
    }
}

/* Logos 1 */
.logos-1 a {
    border: 1px solid rgb(var(--white-color));
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    transform: scale(0.94);
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.logos-1 a:hover {
    transform: scale(1);
}

@media only screen and (max-width: 580px) {
    .logos-1 a {
        margin-bottom: 1rem;
    }
}

/* logos-2 */
.logos-2 {
    justify-content: center;
    align-items: center;
}

.logos-2 .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 3px;
    background: rgb(var(--white-color));
    overflow: hidden;
    width: calc((100% / 4) - 2rem);
    margin: 1rem;
}

.logos-1 img {
    width: 100%;
    max-height: 12rem;
}

.logos-2 p {
    padding: 0 2rem;
    font-size: 4rem;
    font-weight: 600;
}

@media only screen and (max-width: 850px) {
    .logos-2 p {
        padding: 0 1rem;
        font-size: 3rem;
        font-weight: 600;
    }

    .logos-2 .logo {
        padding: 0rem;
    }
}

@media only screen and (max-width: 400px) {
    .logos-2 p {
        font-size: 2rem;
    }

    .logos-1 img {
        width: 100%;
        max-height: 13rem;
    }
}

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

/* Speciella paddings */
.split-wrapper .pl-0 {
    padding-left: 0;
}

.split-wrapper .pr-0 {
    padding-right: 0;
}

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

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

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

@media screen and (max-width: 580px) {
    .split-content {
        padding: 4rem 2rem;
    }
}

/* Popup-notis
========================================================================== */
.EditMode .popup-wrapper {
    display: none;
}

.popup-wrapper {
    z-index: 8;
    position: fixed;
    bottom: 3rem;
    right: 3rem;
}

/* Knappar */
.popup-button {
    position: relative;
    width: 5rem;
    height: 5rem;
    background: rgb(var(--primary-light-color));
    border-radius: 50%;
    box-shadow: 0 0 3rem rgba(var(--black-color), 0.3);
    cursor: pointer;
}

.popup-button i {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2.8rem;
    color: rgb(var(--white-color));
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
}

.popup-wrapper .popup-button .icon-open,
.popup-wrapper.opened .popup-button .icon-close {
    transform: translate(-50%, -50%) scale(1);
}

.popup-wrapper.opened .popup-button .icon-open,
.popup-wrapper .popup-button .icon-close {
    transform: translate(-50%, -50%) scale(0);
}

/* Innehåll */
.popup-window {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    right: 0;
    bottom: 6rem;
    max-width: 45rem;
    max-height: calc(100vh - 12rem);
    padding: 3rem;
    margin: 0 2rem;
    background: rgb(var(--white-color));
    border-radius: 1rem;
    box-shadow: 0 0 3rem rgba(var(--black-color), 0.3);
    overflow: auto;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

.popup-wrapper.opened .popup-window {
    opacity: 1;
    visibility: visible;
    display: block;
    bottom: 10rem;
}

.icon-close-popup {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
}

@media only screen and (max-width: 450px) {
    .popup-window {
        padding: 2rem 3rem 2rem 2rem;
    }

    .icon-close-popup {
        top: 1rem;
    }
}

/* Header / Navigation
========================================================================== */
header .container {
    max-width: none;
}

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

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

.header-logo span {
    font-weight: 400;
    color: rgb(var(--primary-light-color));
}

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

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

/* Dropdown */
header:not(.mobile-menu) .TemplateMenu ul {
    width: 32rem;
}

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

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

/* Mobilmeny */
.mobile-menu .header-logo a {
    font-size: 1.6rem;
}

@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;
    min-height: 70vh;
    background-color: rgb(var(--primary-color));
    background-image: linear-gradient(to right, rgb(var(--primary-dark-color), 0.8) 20%, rgb(var(--primary-dark-color), 0.2));
}

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

.top-section p {
    max-width: 75rem;
    color: rgb(var(--white-color));
}

@media only screen and (max-width: 1200px) {
    .top-section {
        min-height: 80vh;
    }

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

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

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

/* Hero - Grundkod
========================================================================== */
.hero .section-block {
    display: flex;
    align-items: center;
    min-height: 30rem;
    background-image: linear-gradient(to right, rgb(var(--primary-dark-color), 0.8) 20%, rgb(var(--primary-dark-color), 0.2));
}

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

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

.hero .section-title {
    font-size: 5rem;
    padding: 0;
    text-align: center;
}

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

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

/* Sektion Galleri (.section-slider)
========================================================================== */
.section-slider {
    overflow: hidden;
}

.gallery-slider .image-wrapper {
    height: 50rem;
}

.gallery-slider .slick-slide {
    margin: 0 1rem;
    border-radius: 3px;
}

.gallery-slider .slick-list {
    overflow: visible;
}

/* Slick Settings */
.gallery-slider .slick-list,
.gallery-slider .slick-track {
    height: 100%;
}

.gallery-slider .slick-list {
    width: 100%;
}

.gallery-slider .slick-dots {
    position: absolute;
    bottom: 1rem;
    left: 20rem;
    width: auto;
    padding: 0;
    margin: 0;
    background-color: rgb(var(--white-color));
    border-radius: 2rem;
}

.gallery-slider .slick-dots li.slick-active::before {
    opacity: 1;
    color: rgb(var(--primary-color));
    transition: all 0.2s ease;
}

@media only screen and (max-width: 980px) {
    .gallery-slider .slick-dots {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media only screen and (max-width: 580px) {
    .gallery-slider .image-wrapper {
        height: 25rem;
    }
}

/* ==========================================================================
Undersida: Certifikat & Licenser
========================================================================== */
.cert-img {
    height: 25rem;
    margin: 1rem 2rem;
}

/* ==========================================================================
Undersida: Hallbarhet
========================================================================== */
.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 5rem 1fr;
    gap: 2rem;
}

.grid-split>* {
    width: 100%;
    border-radius: 3px;
}

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

.grid-split .split-content:nth-of-type(1) {
    grid-row: 1 / 3;
}

.grid-split .split-content:nth-of-type(4) {
    grid-row: 2 / 4;
    grid-column-start: 2;
}

.grid-split img {
    position: absolute;
    transform: translate(-50%, -50%);
}

.affarspolicy .split-content:last-child {
    grid-column: 1 / 3;
}

/* Steps */
.steps .text-label {
    display: flex;
    align-items: center;
}

.steps .text-label::before {
    content: "\f111";
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    margin: 0 1rem 0 0;
}

.steps .text-label::after {
    position: relative;
    content: "";
    display: inline-block;
    flex: 1 1 0%;
    border-bottom: 2px solid;
    margin: 0 0 0 2rem;
}

.steps>*:first-child .text-label::before {
    content: "\f11e";
}

.steps>*:last-child .text-label::before {
    content: "\f456";
}

.steps>*:last-child .text-label::after {
    display: none;
}

@media only screen and (max-width: 1000px) {
    .grid-split {
        display: flex;
        flex-wrap: wrap;
    }

    .crossfade {
        height: 30rem;
    }

    .grid-split .split-content {
        padding: 2rem;
    }
}

/* Hallbarhet Steg
========================================================================== */
.image-container {
    display: flex;
    align-items: flex-start;
    padding: 3rem 0;
    margin: 2rem 3rem 0;
    border-top: 2px solid rgb(var(--gray-light-color));
}

.image-container img {
    width: 10rem;
    margin: 0 1rem 0 0;
}

@media only screen and (max-width: 1000px) {
    .image-container img {
        width: 5rem;
        margin: 0 5px 0 0;
    }
}

/* ==========================================================================
Undersida: Nyheter
========================================================================== */

/* Vi soker svetsare
========================================================================== */
.section-work .text-block-center {
    background-color: rgb(var(--white-color));
    padding: 4rem;
    max-width: 80rem;
}

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

/* ==========================================================================
Undersida: Kontakt
========================================================================== */

/* Karta */
.section-contact iframe {
    width: 100%;
    height: 50rem;
    border: none;
    border-radius: 1rem;
}

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

.footer img {
    width: 10rem;
    margin: 0 1rem;
}

.logo-kb {
    filter: invert();
    padding-bottom: 1rem;
}

.footer-menu {
    width: 50%;
    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;
    }
}