/* Riksten Entreprenad AB */

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

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* Colors */
    --primary-color: 210, 97, 56;

    --black-color: 17, 17, 17;
    --gray-dark-color: 24, 24, 24;
    --gray-color: 81, 76, 73;
    --gray-light-color: 240, 240, 240;
    --white-color: 255, 255, 255;

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

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

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

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

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

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

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

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

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

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

.section-title {
    padding-bottom: .3em;
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Spectral', serif;
}

.small-title {
    padding: .3em 0;
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.4;
    font-family: 'Spectral', serif;
}

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

p a {
    text-decoration: none;
    color: rgb(var(--primary-color));
}

p a:hover {
    text-decoration: underline;
}

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

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

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

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

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

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

@media only screen and (max-width: 580px) {
    .section-title {
        font-size: 3.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 4rem;
    margin: 5px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 10px 5px;
    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));
    background-color: transparent;
}

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

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

/* Arrow link */
.arrow-link {
    padding-right: 1rem;
    font-size: var(--base-size);
    color: rgb(var(--gray-dark-color));
    text-decoration: none;
}

.arrow-link::after {
    content: ' \f105';
    display: inline-block;
    margin-left: 1rem;
    font-weight: 400;
    font-family: 'Font Awesome 5 Pro';
    color: rgb(var(--primary-color));
    transition: transform .4s ease;
}

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

/* Sektion eller kort lankar */
.section-link-target {
    scroll-margin-top: 200px;
}

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

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
/* Linje genom element */
.line-through-primary {
    position: relative;
}

.line-through-primary::before {
    position: absolute;
    content: '';
    display: block;
    height: calc(100% - 4rem);
    width: 2px;
    top: 2rem;
    left: 3.5rem;
    background-color: rgb(var(--primary-color));
}

@media only screen and (max-width: 650px) {
    .line-through-primary::before {
        left: 2.5rem;
    }
}

/* Waves */
.wave-bottom-primary,
.wave-bottom-white,
.wave-bottom-gray-dark {
    position: relative;
    padding-bottom: 10rem;
}

.wave-bottom-primary::after,
.wave-bottom-white::after,
.wave-bottom-gray-dark::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 10rem;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
}

.wave-bottom-primary::after {
    background-image: url(/assets/images/graphics/wave-primary.svg);
}

.wave-bottom-white::after {
    background-image: url(/assets/images/graphics/wave-white.svg);
}

.wave-bottom-gray-dark::after {
    background-image: url(/assets/images/graphics/wave-gray-dark.svg);
}

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

    .wave-bottom-primary,
    .wave-bottom-white,
    .wave-bottom-gray-dark {
        padding-bottom: 5rem;
    }

    .wave-bottom-primary::after,
    .wave-bottom-white::after,
    .wave-bottom-gray-dark::after {
        height: 5rem;
    }
}

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

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

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

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

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

/* Card grow */
.cards-grow .card-item {
    display: flex;
    flex-direction: column;
}

.cards-grow .card-body {
    flex-grow: 1;
}

/* Bredder */
.cards-wrapper.w-100 .card-item {
    width: 100%;
}

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

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

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

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

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

    /* Bredder */
    .cards-wrapper:not(.w-100) {
        margin-left: 0;
        margin-right: 0;
    }

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

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

    .cards-wrapper .p-3 {
        padding: 2rem;
    }
}

/* Card 1-1 */
.card-1-1 .card-item {
    border-radius: .5rem;
}

.card-1-1 a.card-item:hover p {
    color: rgb(var(--primary-color));
}

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

.card-1-1 .btn {
    margin: 0;
    border-radius: 0 0 .5rem .5rem;
}

/* Card 2-5 */
.card-2-5 .card-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.card-2-5 .card-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background-color: rgb(var(--gray-light-color));
    border: 2px solid rgb(var(--primary-color));
}

.card-2-5 .card-header i {
    font-size: 3rem;
}

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

@media only screen and (max-width: 650px) {
    .card-2-5 .card-header {
        width: 5rem;
        height: 5rem;
        border-width: 2px;
    }

    .card-2-5 .card-header i {
        font-size: 2.5rem;
    }

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

/* Card 3-4 */
.cards-wrapper.card-3-4 .card-item {
    display: flex;
    flex-direction: row-reverse;
    border-radius: .5rem;
}

.card-3-4 .image-wrapper {
    width: 14rem;
    height: 14rem;
    margin: -3rem 1rem;
    border-radius: .5rem;
}

.card-3-4 .image-wrapper img {
    filter: grayscale(100%);
}

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

.card-3-4 .contact-item i {
    margin-right: 1rem;
}

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

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

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

/* Split wrapper
========================================================================== */
.split-wrapper {
    display: flex;
    flex-wrap: wrap;
    border-radius: .5rem;
    padding: 2rem;
}

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

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

.split-image {
    width: 50%;
}

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

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

    .split-wrapper,
    .split-wrapper.reverse {
        flex-direction: column;
    }

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

    .split-image {
        width: 100%;
    }

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

@media screen and (max-width: 750px) {
    .split-wrapper {
        padding: 1rem;
    }

    .split-content {
        padding: 1rem .5rem 3rem;
    }
}

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

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

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

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

/* CTA */
.header-cta-wrapper {
    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;
}

header:not(.scrolled, .active-menu) .header-cta-wrapper .btn:hover {
    color: rgb(var(--white-color))
}

/* Mobilmeny */
.mobile-menu .hamburger.is-clicked {
    --menu-color: var(--gray-dark-color);
}

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

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

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

    /* Header logo */
    .header-logo a {
        font-size: 1.6rem;
    }

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

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

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

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

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

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

.top-section .btn:hover {
    color: rgb(var(--white-color));
}

/* Bouncing arrow */
.bouncing-arrow-wrapper {
    position: absolute;
    right: 0;
    bottom: 3rem;
    z-index: 1;
    transform: translateX(-10rem);
}

.bouncing-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 10rem;
    border-radius: 3rem;
    border: 1px solid rgb(var(--primary-color));
    background-color: rgb(var(--primary-color));
    text-decoration: none;
    transition: all .4s ease;
}

.bouncing-arrow:hover {
    background-color: transparent;
}

.bouncing-arrow i {
    color: rgb(var(--white-color));
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.bouncing-arrow:hover i {
    color: rgb(var(--primary-color));
}

.arrow-animate {
    position: absolute;
    left: 50%;
    bottom: -4rem;
    width: 9rem;
    transform: translateX(-50%);
}

@keyframes bounce {

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

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

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

@media only screen and (max-width: 1024px) {
    .top-section {
        background-size: 100% 5rem;
    }

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

@media only screen and (max-width: 980px) {
    .bouncing-arrow-wrapper {
        bottom: 0rem;
        transform: translateX(-4rem);
    }

    .bouncing-arrow {
        height: 8rem;
    }
}

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

    .bouncing-arrow-wrapper {
        bottom: -1rem;
        transform: translateX(-2rem);
    }
}

/* Vardeord
========================================================================== */
.section-value-words .section-block {
    align-content: center;
    min-height: 40rem;
}

.section-value-words .text-block-center {
    max-width: none;
}

.section-value-words .section-title {
    font-size: 5rem;
}

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

@media only screen and (max-width: 980px) {
    .section-value-words .section-title {
        font-size: 3.5rem;
    }
}

@media only screen and (max-width: 700px) {
    .section-value-words .text-block-center {
        max-width: 30rem;
    }
}

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

.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: flex-end;
    min-height: 45rem;
    padding-top: var(--menu-height);
    margin-top: calc(var(--menu-height) * -1);
    background-color: rgb(var(--black-color), .6);
}

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

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

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

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

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

/* ==========================================================================
Undersida: Kontakta oss
========================================================================== */

/* Kontaktformular
========================================================================== */
.ContactForm {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 6rem 5rem;
    background-color: rgb(var(--white-color));
    border-radius: .5rem;
}

.ContactForm div {
    width: 49%;
}

.ContactForm .file-field,
.ContactForm .file-upload-container,
.ContactForm .file-dropzone,
.ContactForm .textarea-field,
.ContactForm .submit-button-container {
    width: 100%;
}

.ContactForm p {
    display: none;
}

.asterisk p:after {
    color: rgb(var(--primary-color));
    line-height: 1;
}

.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm .file-dropzone,
.ContactForm textarea {
    border: none;
    border-radius: .5rem;
}

.ContactForm input[type="text"]:not(.illegal),
.ContactForm input[type="email"]:not(.illegal),
.ContactForm input[type="tel"]:not(.illegal),
.ContactForm .file-dropzone:not(.illegal),
.ContactForm textarea:not(.illegal) {
    background-color: rgb(var(--gray-light-color));
}

.ContactForm textarea {
    height: 15rem;
}

.ContactForm .submit-button-container,
.ContactSubmit {
    margin: 0;
}

@media only screen and (max-width: 980px) {
    .ContactForm {
        padding: 4rem 3rem;
    }
}

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

    .ContactForm div {
        width: 100%;
    }
}

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

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

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

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

.footer .text-label {
    padding: 0 0 1rem;
    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 {
    text-decoration: none;
    transition: .3s ease;
    color: rgb(var(--white-color));
}

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

/* Social Menu */
.social-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-menu li {
    margin: 1rem 1rem 1rem 0;
}

.social-menu a {
    font-size: 1.4rem;
    color: rgb(var(--white-color));
    padding: 5px 10px;
    border-radius: 2rem;
    line-height: 1;
    text-decoration: none;
    transition: all .3s ease;
}

.social-menu a:hover {
    color: rgb(var(--white-color));
    background-color: rgb(var(--primary-color));
    transition: all .3s ease;
}

/* 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;
    color: rgb(var(--white-color));
}

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

.webbess-stamp img {
    opacity: .6;
    margin-left: 1rem;
    width: 2.5rem;
    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;
    }

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

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

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