/* Svensk Formteknik AB */

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

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 57, 51, 151;
    --primary-dark-color: 36, 32, 96;

    --black-color: 19, 18, 17;
    --gray-dark-color: 107, 105, 97;
    --gray-color: 185, 183, 176;
    --gray-light-color: 235, 237, 240;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --section-width: 145rem;
    --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(--gray-light-color);
    --menu-color: var(--black-color);
}

/* Layout
========================================================================== */
.section-block {
    padding: 12rem 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;
}

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

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

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

.pr-0 .section-block,
.pr-0:not(.section-wrapper) {
    padding-right: 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: 'DM Sans', sans-serif;
}

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

.section-title {
    padding-bottom: .3em;
    font-size: 4.3rem;
    font-weight: 900;
    line-height: 1.2;
    color: rgb(var(--primary-dark-color));
    text-transform: uppercase;
}

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

.text-title {
    padding-bottom: .3em;
    font-weight: 700;
    color: rgb(var(--black-color));
    text-transform: uppercase;
}

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

/* List-check */
.list-arrow {
    padding: 0;
    list-style: none;
}

.list-arrow li::before {
    content: '\f061';
    position: relative;
    top: -2px;
    padding: 0 1rem 0 0;
    color: rgb(var(--primary-color));
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Font Awesome 5 Pro';
}

.list-arrow li {
    font-size: 1.6rem;
}

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

.text-block-center {
    max-width: 75rem;
    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;
    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,
.ContactSubmit:focus {
    border: 1px solid rgb(var(--primary-dark-color));
    background-color: rgb(var(--primary-dark-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 .4s ease;
}

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

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

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

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

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

.border-right-white {
    border-right: 3px solid rgb(var(--white-color));
}

.border-left-white {
    border-left: 3px solid rgb(var(--white-color));
}

/* Bakgrundsbilder och videos
========================================================================== */
.bg-image,
.bg-crossfade {
    position: relative;
    background-color: transparent;
}

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

/* Crossfade */
.fade-slider {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fade-slider div {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.fade-slider.slick-slider {
    position: absolute;
}

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

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

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

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

.cards-wrapper .card-item.w-100 {
    width: calc(100% - 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) {
    .cards-wrapper:not(.w-100) {
        margin-left: 0;
        margin-right: 0;
    }

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

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

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

/* Split och padding */
.section-wrapper.pt-0.pb-0 .split-content {
    padding: 7rem;
}

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

    .split-content,
    .section-wrapper.pt-0.pb-0 .split-content {
        padding: 3rem;
    }
}

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

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

    .split-image {
        width: 100%;
    }

    /* Split och padding */
    .section-wrapper.pt-0.pb-0 .split-content {
        padding: 8rem 0 5rem;
    }

    .section-wrapper.pt-0.pb-0 .split-image {
        padding-bottom: 8rem;
    }

    /* Split med border */
    .split-wrapper .border-right-white,
    .split-wrapper .border-left-white {
        border: none;
    }
}

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

    /* Split och padding */
    .section-wrapper.pt-0.pb-0 .split-content {
        padding-top: 5rem;
    }

    .section-wrapper.pt-0.pb-0 .split-image {
        padding-bottom: 5rem;
    }
}

/* Header / Navigation
========================================================================== */
header {
    border-bottom: 1px solid rgb(var(--white-color));
    background-color: rgb(var(--gray-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;
    white-space: nowrap;
}

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

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--menu-height) - 5rem);
    background-color: rgb(var(--black-color), .5);
}

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

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

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

/* Bouncing arrow */
.bouncing-arrow-wrapper {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 20rem;
    height: 6.8rem;
    background-image: url(/assets/images/graphics/arrow-bg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    transform: translateX(-50%);
}

.bouncing-arrow {
    position: relative;
    bottom: -2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: rgb(var(--primary-dark-color));
    text-decoration: none;
}

.bouncing-arrow i {
    color: rgb(var(--white-color));
    font-size: 2rem;
    font-weight: 300;
    transform: translatex(-50%);
    animation: bounce 2s infinite;
}

.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: 1200px) {
    .top-section .section-title {
        font-size: 4.5rem;
    }

    /* Bouncing arrow */
    .bouncing-arrow-wrapper {
        width: 12rem;
    }
    
    .arrow-animate {
        display: none;
    }
}

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

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

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

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

@media only screen and (max-width: 1000px) {
    .cta-wrapper {
        flex-wrap: wrap;
    }

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

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

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 40rem;
    background-color: rgb(var(--black-color), .5);
}

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

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

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

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

/* Accordion
========================================================================== */
.accordion-wrapper {
    display: flex;
    flex-wrap: wrap;
}

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

.accordion-item {
    width: 100%;
    margin-bottom: 1rem;
    background: rgb(var(--gray-light-color));
    border-bottom: 2px solid rgb(var(--primary-color));
    transition: .3s ease;
}

.accordion-header {
    position: relative;
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 1.5rem;
    text-decoration: none;
}

.accordion-header::after {
    content: "\f078";
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.7rem;
    font-weight: 700;
    font-family: "Font Awesome 5 Pro";
    color: rgb(var(--primary-color));
    transition: .5s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-header p {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(var(--black-color));
    text-transform: uppercase;
}

.accordion-body {
    padding: 0 2rem 2rem;
}

.accordion-body p {
    font-size: 1.5rem;
}

@media only screen and (max-width: 800px) {
    .accordion-wrapper.w-50 .accordion-item {
        width: 100%;
        margin: 1rem 0;
    }
}

@media only screen and (max-width: 580px) {
    .accordion-header {
        padding: 1.5rem 3rem 1.5rem 1.5rem;
    }

    .accordion-header::after {
        right: 1rem;
    }

    .accordion-body {
        padding: 0 1.5rem 1.5rem;
    }
}

/* ==========================================================================
Undersida: Vara produkter
========================================================================== */
.section-product .col-1 {
    position: sticky;
    top: calc(var(--menu-height) + 2rem);
    align-self: flex-start;
}

.section-product .col-2 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Bild */
.section-product .col-1 a {
    text-decoration: none;
}

.section-product .col-1 .btn {
    margin: 0;
}

/* Text */
.section-product .accordion-wrapper {
    margin-top: 2rem;
}

@media only screen and (max-width: 980px) {
    .section-product .col-1 {
        order: 2;
        position: static;
    }

    .section-product .col-2 {
        order: 1;
    }
}

/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.section-contact .section-block-wrapper {
    justify-content: space-between;
}

/* Kolumn 1 */
.section-contact .col-1 {
    width: calc(100% - 50rem);
    margin-top: 10rem;
}

/* Kolumn 2 */
.section-contact .col-2 {
    position: relative;
    width: 50rem;
    padding: 0rem;
    background: rgb(var(--gray-light-color));
    overflow: hidden;
}

/* Kontaktformular */
.ContactForm {
    padding: 2rem;
}

.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm textarea {
    border: none;
}

.section-map iframe {
    display: block;
}

@media only screen and (max-width: 1400px) {
    .section-contact .col-1 {
        width: calc(100% - 40rem);
    }

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

    .section-contact .col-2 {
        width: 40rem;
    }
}

@media only screen and (max-width: 1300px) {
    .section-contact .col-1 {
        width: 100%;
        padding: 0;
        margin-top: 0;
    }

    .section-contact .col-2 {
        width: 70%;
        margin: 5rem auto 0;
    }
}

@media only screen and (max-width: 1050px) {
    .section-contact .cards-wrapper.w-33 .card-item {
        width: calc((100% / 3) - 2rem);
        margin: 1rem;
    }

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

@media only screen and (max-width: 820px) {
    .section-contact .cards-wrapper.w-33 .card-item {
        width: 100%;
        margin: 1rem 0;
    }

    .section-contact .col-2 {
        width: 100%;
    }
}

/* ==========================================================================
Footer
========================================================================== */
.footer {
    padding: 0 5rem;
    background-color: rgb(var(--gray-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;
    line-height: 1;
    color: rgb(var(--primary-dark-color));
}

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

.footer-top li,
.footer-top p,
.footer-top a {
    font-size: 1.5rem;
    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;
    color: rgb(var(--black-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;
}

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