/* Avloppsrensning i Norr AB */

/* Animationer */
@import url('/resources/scripts/aos/2.3.1/aos.css');

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 56, 44, 132;
    --primary-light-color: 156, 180, 202;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 130, 130, 130;
    --gray-light-color: 240, 240, 240;
    --white-color: 255, 255, 255;

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

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

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

@media only screen and (max-width: 680px) {
    :root {
        /* 	Typography */
        --base-size: 1.6rem;
    }
}

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

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

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

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

.pr-0 .section-block,
.pr-0:not(.section-wrapper) {
    padding-right: 0;
}

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

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

@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: 'Lexend Deca', sans-serif;
}

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

.section-title {
    padding-bottom: .3em;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Josefin Sans', sans-serif;
}

.small-title {
    padding-bottom: .3em;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Josefin Sans', sans-serif;
}

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

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

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

    /* Rubriker */
    .section-title {
        font-size: 3.8rem;
    }

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

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

    /* Rubriker */
    .section-title {
        font-size: 2.5rem;
    }

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

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

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

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

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
/* Border radius */
.br-2 {
    border-radius: 2rem;
    overflow: hidden;
}

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

.bg-image-wrapper,
.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;
}

/* Parallax */
.parallax {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.parallax .section-block {
    min-height: 40rem;
    background-color: rgb(var(--black-color), .6)
}

.parallax-bilen {
    background-image: url('/assets/images/bilen-2000px.jpg');
}

@media only screen and (hover:none) {
    .parallax {
        background-attachment: scroll;
        background-position: center center;
    }
}

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

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

.card-item {
    text-decoration: none;
}

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

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

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

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

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

.card-3-4 .image-wrapper {
    flex-shrink: 0;
    width: 16rem;
    height: 100%;
}

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

.card-3-4 .card-item p:not(.small-title) {
    font-size: 1.6rem;
}

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

.card-3-4 .contact-item a:hover {
    text-decoration: underline;
}

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

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

/* Split wrapper
========================================================================== */
.split-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

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

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

.split-image {
    z-index: 1;
    position: relative;
    width: 50%;
    max-width: 50rem;
    aspect-ratio: 1 / 1;
    margin: 1rem 0;
    overflow: visible;
}

.split-image img {
    border-radius: 50%;
}

/* Decor */
.split-wrapper .blob::after,
.split-wrapper .blob::before {
    position: absolute;
    z-index: -1;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.split-wrapper .blob::before {
    top: -1rem;
    left: -2rem;
    background-color: rgb(var(--primary-color));
}

.split-wrapper .blob::after {
    bottom: -1rem;
    right: -2rem;
    background-color: rgb(var(--primary-light-color));
}

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

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

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

    .split-content {
        width: 100%;
        padding: 0 0 3rem;
        background: transparent;
    }

    .split-image {
        width: 65%;
        max-width: none;
        margin: 0 auto;
    }
}

@media screen and (max-width: 580px) {
    .split-image {
        width: 90%;
        max-width: none;
        margin: 0 auto;
    }

    /* Decor */
    .split-wrapper .blob::before {
        top: -.5rem;
        left: -1rem;
    }

    .split-wrapper .blob::after {
        bottom: -.5rem;
        right: -1rem;
    }
}

/* Header / Navigation
========================================================================== */
header {
    background-color: rgb(var(--primary-light-color));
}

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

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

/* CTA */
.header-cta-wrapper {
    z-index: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0 0 0 4rem;
    list-style: none;
}

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

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

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

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

    /* CTA */
    .header-cta-wrapper .btn {
        padding: 0.7rem 1.5rem;
        letter-spacing: 0;
    }
}

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--menu-height));
    background-color: rgb(var(--black-color), .5);
    background-image: url(/assets/images/graphics/wave.svg);
    background-size: 100% 10rem;
    background-repeat: no-repeat;
    background-position: center bottom;
}

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

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

.top-section p:not(.text-label) {
    max-width: 65rem;
    font-size: 2rem;
}

.top-section .btn:hover {
    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 {
        padding-bottom: 10rem;
        background-size: 100% 5rem;
    }

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

    .top-section p:not(.text-label) {
        font-size: 1.5rem;
    }
}

/* Hur vi arbetar
========================================================================== */
.timeline-wrapper {
    position: relative;
    margin-top: 10rem;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: rgb(var(--primary-light-color));
}

.timeline-item {
    position: relative;
    width: 40%;
}

.timeline-item.item-right {
    margin-top: -5rem;
}

.timeline-item.item-left {
    margin: -5rem 0 0 auto;
}

.timeline-item:before {
    content: '';
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 122.5%;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50% 0 50%;
    background: rgb(var(--primary-color));
    border: 3px solid rgb(var(--primary-light-color));
    transform: translateY(-50%);
}

.item-left.timeline-item:before {
    left: -27.3%;
    border-radius: 0 50% 0;
}

.timeline-text {
    padding: 3rem;
    border-radius: 2rem;
    background-color: rgb(var(--white-color));
}

@media only screen and (max-width: 980px) {
    .timeline-wrapper::before {
        left: 1rem;
    }

    .timeline-item {
        width: 100%;
        padding: 5rem 7rem;
    }

    .timeline-item:before,
    .item-left.timeline-item:before {
        left: -.5rem;
    }
}

@media only screen and (max-width: 680px) {
    .timeline-item {
        padding: 2rem 0 2rem 4rem;
    }

    .timeline-item.item-right {
        margin-top: 0;
    }

    .timeline-item.item-left {
        margin-top: 0;
    }
}

/* CTA
========================================================================== */
.cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cta-wrapper .text-block {
    max-width: 65rem;
}

.cta-wrapper .btn-wrapper {
    margin-top: 0;
}

@media only screen and (max-width: 1000px) {
    .cta-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-wrapper .btn-wrapper {
        margin-top: 2rem;
    }
}

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

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 50rem;
    background-color: rgb(var(--black-color), .5);
    background-image: url(/assets/images/graphics/wave.svg);
    background-size: 100% 10rem;
    background-repeat: no-repeat;
    background-position: center bottom;
}

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

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

@media only screen and (max-width: 580px) {
    .hero {
        min-height: 30rem;
        background-size: 100% 5rem;
    }

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

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.section-contact .col-1 {
    padding: 4rem;
    border-radius: 2rem;
    background-color: rgb(var(--primary-light-color));
    box-shadow: 0 1rem 3rem rgba(var(--black-color), .1);
    overflow: hidden;
}

.section-contact .ContactForm {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.section-contact .ContactForm div {
    width: 49%;
}

.section-contact .ContactForm .submit-button-container {
    width: 100%;
    margin-bottom: 0;
}

.section-contact .ContactForm input[type="text"],
.section-contact .ContactForm textarea,
.section-contact .ContactForm input[type="tel"],
.section-contact .ContactForm input[type="email"],
.section-contact .ContactForm input[type="number"] {
    border: none;
    border-radius: 2rem;
}

@media only screen and (max-width: 1180px) {
    .section-contact .col-1 {
        padding: 2rem;
        margin-top: 2rem;
    }

    .section-contact .ContactForm div {
        width: 100%;
    }
}

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

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8rem 0 6rem;
}

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

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

.footer .text-label {
    padding: 0 0 1rem;
    font-weight: 600;
    line-height: 1;
    color: rgb(var(--primary-color));
}

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

.footer-top li,
.footer-top p,
.footer-top a {
    font-weight: 300;
    text-decoration: none;
    transition: .3s ease;
}

.footer a:hover {
    color: rgb(var(--primary-color));
    text-decoration: none;
}

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

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* WebbEss Stamp  */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.webbess-stamp img {
    opacity: .6;
    margin-left: 1rem;
    width: 2.5rem;
}

@media only screen and (max-width: 1200px) {
    .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;
    }

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

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

    /* WebbEss Stamp */
    .webbess-stamp {
        margin: 0 auto 2rem;
    }
}