/* Larsson & Söner AB  */

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 24, 24, 24;
    --secondary-color: 255, 200, 0;
    --accent-color: 192, 192, 192;

    --white-color: 255, 255, 255;
    --black-color: 0, 0, 0;

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

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

    /* 	Mobile nav */
    --activate-mobile-menu: 1000;
    --mobile-menu-height: 6rem;
}

/* Layout
========================================================================== */
.section-wrapper {
    background: rgb(var(--white-color));
}

.section-block {
    padding: 13rem 5rem;
}

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

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

/* Speciella bredder */
.mw-none .section-block-wrapper {
    max-width: none;
}

.mw-100 .section-block-wrapper,
.mw-100:not(.section-wrapper) {
    max-width: 100rem;
}

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

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

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

/* Rubriker */
.text-label {
    padding-bottom: 1.5rem;
    color: rgb(var(--secondary-color));
    letter-spacing: .4rem;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.section-title {
    padding-bottom: 2.5rem;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: normal;
}

.small-title {
    padding-bottom: 1rem;
    font-size: 2.3rem;
    font-weight: 300;
    letter-spacing: normal;
}

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

/* Brodtext och lankar */
p {
    color: #444;
    font-weight: 300;
}

a {
    color: rgb(var(--primary-color));
    text-decoration: none;
    font-weight: 300;
}

/* Ovriga klasser */
.text-block {
    max-width: 95rem;
    margin: 0 auto;
}

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

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

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

/* Listor */
.list-properties {
    padding: 0;
    margin-top: 0;
    list-style: none;
}

.list-properties li {
    display: flex;
    justify-content: space-between;
    padding-bottom: .3rem;
    margin-bottom: .3rem;
    font-size: 1.4rem;
    border-bottom: 1px solid rgb(var(--accent-color));
}

.list-properties li span {
    padding: 0 .5rem;
}

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

.btn,
.ContactSubmit {
    padding: 1.6rem 3.5rem;
    margin: 1rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: rgb(var(--white-color));
    letter-spacing: .1em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-transition: all .5s ease;
    transition: all .5s ease;
    border: none;
    box-shadow: 0 1rem 3rem rgb(0, 0, 0, .1);
}

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

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

.ContactSubmit:hover,
.ContactSubmit:focus {
    background: rgb(var(--white-color));
    color: rgb(var(--black-color));
}

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

.circle-icon:hover {
    color: rgb(var(--secondary-color));
}

.circle-icon em:before,
.circle-icon i:before {
    font-size: var(--base-size);
}

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

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

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

/* Farger
========================================================================== */
/* Bakgrunder */
.bg-accent {
    background-color: rgba(var(--accent-color), 0.1);
}

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

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

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

/* Video ratio */
.video-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-ratio video,
.video-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Modal som öppnas automatiskt
========================================================================== */
body:not(.EditMode) .section-auto-modal {
    display: none;
    z-index: 9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .3);
}

body:not(.EditMode) .section-auto-modal .section-block {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 4rem);
    max-width: 75rem;
    max-height: 75vh;
    padding: 4rem;
    border-radius: 0;
    overflow: auto;
    background: rgb(var(--white-color));
    transform: translate(-50%, -50%);
}

.section-auto-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    cursor: pointer;
}

.section-auto-modal p {
    font-size: 1.5rem;
}

.section-auto-modal .fal {
    color: rgb(var(--secondary-color));
}

@media only screen and (max-width: 450px) {
    body:not(.EditMode) .section-auto-modal .section-block {
        padding: 3rem 2rem;
    }
}

/* Bakgrundsbild
========================================================================== */
.bg-image {
    position: relative;
    background: linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .6) 0%, rgb(0 0 0 / 50%) 100%);
}

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

/* Header / Navigation
========================================================================== */
header {
    background-color: rgb(var(--white-color));
    box-shadow: 0 1rem 3rem rgba(17, 17, 17, .1);
}


header .container {
    display: grid;
    grid-template-columns: 1fr 0 auto 1fr;
}

/* Mobilmeny */
header.mobile-menu .container {
    display: flex;
}

/* Logo */
.header-logo {
    flex-basis: 0;
    flex: 1 1 0px;
    max-width: 22rem;
}

/* Nav */

.TemplateMenu ul a {
    color: rgb(var(--primary-color));
}

.TemplateMenu a:hover,
.TemplateMenu ul a:hover,
header.scrolled .TemplateMenu>li>a:hover {
    color: rgb(var(--secondary-color));
}

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

.mobile-menu .TemplateMenu>li>a,
.mobile-menu.scrolled .TemplateMenu>li>a {
    color: #000;
}

/* CTA  */
.header-cta-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-basis: 0;
    flex: 1 1 0px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1rem 3rem;
    margin: 0 .5rem;
    white-space: nowrap;
}

@media only screen and (max-width: 480px) {
    .header-cta-wrapper .btn {
        padding: .5rem 2rem;
    }

    .header-cta-wrapper .circle-icon {
        display: none;
    }

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

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

/* Top-section
========================================================================== */
.top-section {
    position: relative;
    display: flex;
    min-height: 100vh;
    margin-top: calc(-1 * var(--menu-height));
    overflow: hidden;
    align-items: flex-end;
}

.top-section .btn {
    margin: 1%;
}

.top-section .btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.top-section .section-title {
    font-size: 7rem;
    font-weight: 300;
    color: rgb(var(--white-color));
    padding: 0 0 .1em;
    line-height: 1.2;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    max-width: 70rem;
    padding-left: 2rem;
}

.top-section .usp-1 {
    font-weight: 900;
    letter-spacing: 1px;
    color: rgb(var(--white-color));
    font-style: italic;
}

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

/* Startsida: Vara sackar och containrar 
========================================================================== */
.section-tabell table tr:first-child {
    background-color: rgb(var(--primary-color));
    color: rgb(var(--white-color));
}

.section-tabell table {
    border-collapse: collapse;
    width: 100%;
    box-shadow: 0 1rem 3rem rgb(0, 0, 0, .1);
}

.section-tabell th {
    font-size: 1.6rem;
}

.section-tabell td {
    font-size: 1.3rem;
}

.section-tabell td,
.section-tabell th {
    text-align: left;
    padding: 15px 10px;
}

.section-tabell tr:nth-child(even) {
    background-color: rgb(var(--secondary-color));
}

@media screen and (max-width: 500px) {
    .section-tabell table {
        border: 0;
    }

    .section-tabell table caption {
        font-size: 1.3em;
    }

    .section-tabell table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .section-tabell table th {
        font-size: 1.4rem;
    }

    .section-tabell table tr {
        display: block;
    }

    .section-tabell table td {
        display: block;
    }

    .section-tabell table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    .section-tabell table td:last-child {
        border-bottom: 0;
    }
}

/* Startsida: Galleri 
========================================================================== */
.section-galleri {
    background: rgb(var(--primary-color));
}

.section-galleri .cards-wrapper .card-item {
    transition: 0.2s ease-in-out;
    width: 33.333333%;
}

.section-galleri .cards-wrapper .card-item:hover {
    -moz-transform: scale(0.98);
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
}

/* Startsida: Formular 
========================================================================== */
.section-contact {
    background-image: url('/assets/images/gula-lastbilar-2000px.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.section-contact .section-block {
    background: rgba(0, 0, 0, .85);
}

.section-contact .text-label,
.section-contact .section-title,
.section-contact p {
    color: rgb(var(--white-color));
}

.ContactForm {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 95rem;
    margin: 5rem auto 0;
}

.ContactForm div {
    width: 49%;
}

.ContactForm .ContactFormMessage {
    width: 100%;
}

.ContactForm textarea {
    height: 15rem;
}

.ContactSubmit {
    margin: 0;
    cursor: pointer;
    width: 100%;
}
div.submit-button-container{
    width: 100%;
}

@media only screen and (max-width: 580px) {
    .ContactForm div {
        width: 100%;
    }
}

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

/* Hero - Grundkod
========================================================================== */
.hero .section-block {
    display: flex;
    align-items: center;
    min-height: 50rem;
    margin-top: calc(-1 * var(--menu-height));
}

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

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

@media only screen and (max-width: 480px) {
    .hero .section-block {
        margin-top: 0;
    }
}

/* ==========================================================================
Undersida: Vara produkter
========================================================================== */

/* Filtrering
========================================================================== */
/* Taggar */
.tags-wrapper {
    margin-bottom: 2rem;
}

.tags-heading {
    display: none;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    padding: .3rem 1.5rem;
    margin: .6rem .5rem;
    font-size: 1.5rem;
    border: 1px solid rgb(var(--primary-color));
    border-radius: 2rem;
    cursor: pointer;
    transition: .5s ease;
}

.tag:hover,
.tag.tag-picked {
    color: rgb(var(--white-color));
    background: rgb(var(--primary-color));
}

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

    /* Sok */
    .search-wrapper input {
        width: 100%;
    }

    /* Taggar */
    .tags-wrapper {
        position: relative;
        max-width: 100%;
        background: rgb(var(--primary-color));
        cursor: pointer;
    }

    .tags-heading {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
    }

    .tags-heading p {
        display: flex;
        justify-content: space-between;
        padding-bottom: 0;
        color: rgb(var(--white-color));
    }

    .tags-heading i {
        margin-left: 2rem;
    }

    .tags-list {
        display: none;
        z-index: 1;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: left;
        background: rgb(var(--white-color));
        box-shadow: 1px 1px 10px rgba(var(--black-color), .1);
    }

    .tags-wrapper.opened .tags-list {
        display: block;
    }

    .tags-wrapper .tag {
        display: block;
        padding: 1rem 2rem;
        margin: 0;
        letter-spacing: normal;
        text-transform: initial;
        box-shadow: none;
        border-radius: 0;
    }
}

/* ==========================================================================
Footer
========================================================================== */
.footer-container {
    padding: 0 2rem;
}

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8rem 2rem 4rem 2rem;
    border-bottom: 1px solid rgb(var(--secondary-color));
}

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

.footer img {
    max-width: 100%;
    width: 20rem;
}

.footer .small-title {
    font-size: 2rem;
    letter-spacing: 1px;
    font-weight: 500;
    color: rgb(var(--primary-color));
}

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

.footer a:hover {
    text-decoration: underline;
}

.footer li {
    font-weight: 300;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 2rem;
}

.footer-bottom p {
    font-size: 1.4rem;
}

.footer-bottom .circle-icon {
    width: 3rem;
    height: 3rem;
}

.footer-bottom .circle-icon:hover {
    text-decoration: none;
}

.footer-bottom em::before {
    font-size: 1.4rem;
}

/* WebbEss Stamp */
.webbess-stamp {
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 1.3rem;
    font-weight: normal;
}

.webbess-stamp img {
    width: 3rem;
    margin-left: 1rem;
}

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

    /* Footer top */
    .footer-menu {
        width: 48%;
    }
}

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

    /* Footer top */
    .footer-menu {
        width: 100%;
    }

    /* Footer bottom */
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 2rem 0;
    }

    .footer-bottom .socials {
        margin-bottom: 1.5rem;
    }
}

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

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

    /* Footer bottom */
    .footer-bottom {
        padding: 2rem 0;
    }
}