/* Swefastigheter Sweden AB */

/* Typsnitt */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Display:wght@300;400;500;600;700&family=Public+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400;1,700&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: 140rem;

    /* 	Colors */
    --primary-color: 17, 51, 11;
    --primary-light-color: 207, 214, 206;

    --black-color: 10, 10, 10;
    --gray-dark-color: 75, 75, 75;
    --gray-light-color: 240, 240, 240;
    --white-color: 255, 255, 255;

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

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

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

.section-block-wrapper {
    max-width: var(--section-width);
}

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

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

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

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

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

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

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

.ml-0 .section-block-wrapper {
    margin-left: 0;
}

/* Hojder */
.mh-500 {
    max-height: 50rem;
}

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

.justify-spacebetween {
    justify-content: space-between;
}

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

    .py-0 .section-block,
    .py-0:not(.section-wrapper) {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

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

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

/* Rubriker */
.text-label {
    font-size: 1.2rem;
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 1em;
    letter-spacing: 0.2rem;
}

.section-title {
    font-family: 'Noto Serif Display', serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.2;
    padding-bottom: 0.5em;
}

.small-title {
    font-family: 'Noto Serif Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    padding-bottom: 0.7em;
}

.text-title {
    font-weight: 700;
}

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

/* Brodtext och lankar */
p,
li {
    line-height: 2;
    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-bold {
    font-weight: 700;
}

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

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

@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.center {
    justify-content: center;
}

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

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

.btn-primary-filled:hover,
.ContactSubmit:hover {
    background-color: rgb(var(--primary-color), 0.7);
}

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

.btn-white-filled,
.btn-white-border:hover {
    background-color: rgb(var(--white-color));
    color: rgb(var(--black-color));
}

.btn-white-filled:hover {
    background-color: rgb(var(--gray-light-color));
}

/* Arrow link */
.arrow-link {
    font-size: 1.5rem;
    padding-right: 1rem;
}

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

/* Cirkelikon */
.circle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    margin: 0.5rem;
    font-size: 0;
    color: rgb(var(--primary-color));
    text-decoration: none;
    border-radius: 50%;
    background-color: rgb(var(--white-color));
    transition: 0.3s ease;
}

.circle-icon:hover {
    color: rgb(var(--white-color));
    background-color: rgb(var(--primary-color));
}

.circle-icon i:before,
.circle-icon em:before {
    font-size: 1.4rem;
}

@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-primary-dark {
    background-color: rgb(var(--primary-dark-color));
}

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

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

.bg-black-05-gradient {
    background: linear-gradient(90deg, rgba(var(--black-color), 0.2) 0%, rgba(var(--black-color), 0.5) 0%, rgba(var(--black-color), 0) 100%), rgba(var(--black-color), 0.5);
}

.gradient-white-primary-light {
    background-image: linear-gradient( to top, rgb(var(--primary-light-color)) 50%, rgb(var(--white-color)) 50%);
}

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

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

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

/* Bakgrundsvideo
========================================================================== */
.bg-video {
    overflow: hidden;
    position: relative;
    margin-top: calc(-1 * var(--menu-height));
}

.bg-video-wrapper video {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}

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

/* Box shadow */
.box-shadow {
    box-shadow: 0 1rem 3rem rgba(var(--black-color), 0.1);
}

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

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

/* Generellt */
a.card-item {
    transition: 0.3s ease;
}

/* Specifika bredder */
.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);
        margin: 1rem;
    }
}

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

    .cards-wrapper.w-33 .card-item,
    .cards-wrapper.w-50 .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 */
.cards-wrapper.card-3-1 .card-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

.card-3-1 .image-wrapper {
    position: relative;
    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 .card-body {
    position: relative;
    z-index: 1;
    padding: 1rem 3rem 3rem;
    transition: all 0.3s ease;
}

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

@media only screen and (hover: hover) {
    .cards-wrapper.card-3-1 .card-item {
        padding-top: 5rem;
    }

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

    .card-3-1 .card-item .card-body {
        transform: translateY(calc(100% - 6rem));
        border-radius: 0;
    }

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

@media only screen and (max-width: 1050px) {
    .cards-wrapper.card-3-1 .card-item:first-child {
        width: 100%;
    }
}

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

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

/* Card 3-3 - variant pa slutforda uppdrag */
.card-3-3 a.card-item {
    transition: .3s ease;
}

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

.card-3-3 .logo-wrapper {
    width: 18rem;
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 3px;
    background: rgb(var(--white-color));
} 

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

.split-image.contain {
    padding: 3rem;
}

.split-image.contain img {
    object-fit: contain;
}

.clip img {
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

/* 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: 1200px) {
    .split-content {
        padding: 5rem;
    }
}

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

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

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

    .split-image.contain {
        padding: 0;
    }
}

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

/* Header / Navigation
========================================================================== */
header .container {
    padding: 0 5rem;
}

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

/* Nav */
.TemplateMenu a {
    font-weight: 400;
    font-size: 1.5rem;
    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 0.5rem;
}

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

/* Mobilmeny */
.mobile-menu .container {
    height: var(--mobile-menu-height);
}

.mobile-menu .hamburger {
    margin: 0 -1rem 0 1rem;
}

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

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

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

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

/* Full-page background video */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: flex-end;
    min-height: 95vh;
}

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

.top-section .text-label {
    display: block;
}

.top-section p {
    max-width: 55rem;
    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;
    }
}

/* case
========================================================================== */
.section-cases {
    overflow: hidden;
}

.split-slider {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    padding-bottom: 5rem;
}

.split-slider .slick-track {
    display: flex;
}

/* Bild-slider */
.split-slider .split-image-wrapper .slick-list {
    overflow: visible;
}

.split-slider .split-image-wrapper {
    width: 100%;
}

.split-slider .slide-image {
    height: auto;
    margin: 0 3rem 0 0;
}

.split-slider .image-wrapper {
    width: 100%;
    height: 100%;
    padding: 0 0 0 35%;
    transition: padding 0.8s ease;
}

.split-slider .slick-slide.slick-active .image-wrapper,
.split-slider .slick-slide.slick-active + .slick-slide .image-wrapper {
    padding: 0 35% 0 0;
    transition: padding 0.8s ease;
}

/* Text-slider */
.split-slider .split-text-wrapper {
    position: relative;
    width: 45%;
    margin-left: calc(-45% - 3rem);
    bottom: -5rem;
    padding: 10rem 7rem 7rem;
    background: rgb(var(--primary-light-color));
}

.split-slider .split-text-wrapper p {
    max-width: 45rem;
}

/* slick knappar */
.split-slider .slick-arrow {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 4rem;
    height: 4rem;
    font-size: 0;
    cursor: pointer;
    transition: 0.4s;
}

.split-slider .slick-arrow.slick-prev {
    right: 4rem;
}

.split-slider .slick-prev:after,
.split-slider .slick-next:after {
    font-size: 2rem;
    color: rgba(var(--black-color));
}

/* Dots */
.split-slider .slick-dots {
    position: absolute;
    top: 5rem;
    padding: 0;
    margin: 0;
}

.split-slider .slick-dots li {
    margin: 0 5px;
}

.split-slider .slick-dots li:before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background-color: rgba(var(--black-color));
    transition: all 0.2s ease;
}

.split-slider .slick-dots li.slick-active:before {
    opacity: 1;
    width: 2rem;
    background-color: rgb(var(--black-color));
    transition: all 0.2s ease;
}

@media only screen and (max-width: 1300px) {
    /* Bild-slider */
    .split-slider .slide-image {
        margin: 0 1rem 0 0;
    }

    /* Text-slider */
    .split-slider .split-text-wrapper {
        padding: 7rem 5rem 5rem;
        width: 50%;
        margin-left: calc(-50% - 1rem);
    }

    /* Dots */
    .split-slider .slick-dots {
        top: 3rem;
    }
}

@media only screen and (max-width: 1000px) {
    .split-slider {
        padding-bottom: 0;
    }

    /* Bild-slider */
    .split-slider .split-image-wrapper {
        width: 100%;
    }

    .split-slider .image-wrapper,
    .split-slider .slick-slide.slick-active .image-wrapper,
    .split-slider .slick-slide.slick-active + .slick-slide .image-wrapper {
        padding: 0;
    }

    /* Text-slider */
    .split-slider .split-text-wrapper {
        position: relative;
        bottom: unset;
        width: 100%;
        margin: 2rem 0 0;
    }
}

@media only screen and (max-width: 580px) {
    /* Text-slider */
    .split-slider .split-text-wrapper {
        padding: 3rem 0 5rem 0;
    }

    .split-slider .slick-dots {
        display: none;
    }
}

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

/* Hero
========================================================================== */
.hero .section-title {
    font-size: 6rem;
    text-align: center;
    font-weight: 400;
    padding: 0;
}

@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: Aktuella case
========================================================================== */
video.display-none {
    display: none;
}

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.section-contact .col-0 .col-wrapper,
.section-contact .col-0 .code-part,
.section-contact .col-0 .block-object,
.section-contact .col-0 iframe {
    height: 100%;
}

.section-contact .col-1 {
    padding: 3rem;
    border-radius: 2px 2px 0 0;
    background-color: rgb(var(--white-color));
    border: 1px solid rgb(var(--gray-light-color));
}

.Contact input:not(.ContactSubmit),
.Contact textarea {
    border-radius: 2px;
    background-color: rgb(var(--gray-light-color));
}

@media only screen and (max-width: 980px) {
    .section-contact .section-block-wrapper {
        flex-direction: column-reverse;
    }

    .section-contact .col-0 iframe {
        height: 35rem;
        margin-top: 3rem; 
    }

    .section-contact .col-1 {
        max-width: 60rem;
        margin: 3rem auto 0;
        padding: 2rem;
    }
}

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

.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 5rem;
    border-bottom: 1px solid rgb(var(--white-color), 0.5);
}

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

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

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

.footer ul {
    padding: 0 0 2rem 0;
    margin: 0;
    list-style: none;
}

.footer-top li,
.footer-top p,
.footer-top a:not(.circle-icon) {
    font-size: 1.4rem;
    color: rgb(var(--white-color));
}

.socials {
    margin-top: 3rem;
}

.footer .circle-icon {
    border: 1px solid rgb(var(--white-color));
}

.footer .circle-icon:hover {
    background-color: transparent;
    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;
    }
}
