/* ByggPro Tyreso AB */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 52, 142, 74;

    --blue-color: 32, 136, 197;
    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 103, 103, 103;
    --gray-light-color: 164, 164, 164;
    --white-color: 255, 255, 255;

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

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

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

@media only screen and (max-width: 580px) {
    :root {
        --base-size: 1.5rem;
    }
}

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

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

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

/* Margins */
.mr-1 {
    margin-right: 1rem;
}

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

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

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

/* Rubriker */
.section-title {
    padding-bottom: 3rem;
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    font-family: "Libre Franklin", sans-serif;
}

.small-title {
    padding-bottom: .5em;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    font-family: 'Libre Franklin', sans-serif;
}

/* Brodtext och lankar */
p,
li,
a {
    color: rgb(var(--gray-dark-color));
    font-weight: 300;
    font-size: 1.8rem;
}

/* Ovriga klasser */
.text-block-center {
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 25rem;
    padding: 1.2rem 2rem;
    margin: 1rem;
    font-size: 1.6rem;
    font-weight: 400;
    border-radius: 3rem;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
}

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

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

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

.btn-blue-border:hover {
    color: rgb(var(--white-color));
    border: 2px solid rgb(var(--blue-color));
    background-color: rgb(var(--blue-color));
}

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

.btn-white-border:hover,
.ContactSubmit:hover,
.ContactSubmit:focus {
    color: rgb(var(--black-color));
    border: 2px solid rgb(var(--white-color));
    background-color: rgb(var(--white-color));
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Header / Navigation
========================================================================== */
header {
    border-bottom: 1px solid rgb(var(--gray-light-color));
}

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

/* Logo */
.header-logo {
    flex: 1 1 0px;
}

.header-logo img {
    padding: 1.5rem 0;
}

/* Nav */
.TemplateMenu a {
    font-weight: 400;
    font-size: 1.6rem;
    color: rgb(var(--gray-color));
    text-transform: uppercase;
    font-family: 'Libre Franklin', sans-serif;
}

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

/* Mobilmeny */
.mobile-menu:not(.scrolled, .active-menu) {
    --menu-color: var(--white-color);
}

.mobile-menu .header-logo img {
    padding: 0.5rem 0;
}

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

.mobile-menu .TemplateMenu>li>a,
.mobile-menu.scrolled .TemplateMenu>li>a {
    line-height: 7rem;
    font-size: 2rem;
}

@media only screen and (max-width: 580px) {
    .header-logo a {
        font-size: 1.6rem;
    }
}

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(110vh - var(--menu-height));
    padding-top: var(--menu-height);
    margin-top: calc(var(--menu-height) * -1);
    background-color: rgb(var(--black-color), .75);
}

.top-section .section-title {
    font-size: 4rem;
    font-weight: 400;
    padding-bottom: 0;
}

.top-section .btn-primary-border,
.top-section .btn-blue-border {
    text-transform: uppercase;
    padding: 1.5rem 0;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 1.6rem;
}

@media only screen and (max-width: 480px) {
    .top-section .section-title {
        font-size: 3.8rem;
        padding-bottom: 0;
    }
}

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

/* Sociala medier
========================================================================== */
.section-social-media .layout-2 .col-0 {
    align-self: center;
}

@media only screen and (max-width: 980px) {
    .section-social-media .text-center {
        text-align: left;
    }
}

/* Instagram-widget 
========================================================================== */
.section-instagram {
    overflow: hidden;
}

/* Kontakt
========================================================================== */
.section-contact {
    background: rgba(var(--primary-color), 0.8);
}

.ContactForm {
    display: block;
    max-width: 650px;
    margin: 0 auto;
}

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

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

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

.ContactForm .submit-button-container {
    display: flex;
    justify-content: center;
}

.ContactSubmit {
    width: 300px;
    margin: 0 auto;
}

.ContactSentMessage {
    filter: invert(1);
    background-color: transparent;
}

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

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

.footer p,
.footer a {
    text-decoration: none;
    color: rgb(var(--white-color));
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 200;
    font-size: 1.6rem;
    padding-bottom: 0;
}

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

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

.footer-top .card-header {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.footer-top .fas {
    font-size: 3.5rem;
}

/* Social Menu */
.social-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgb(var(--gray-color));
}

.social-menu li {
    display: flex;
    align-items: center;
    margin: 1rem;
    color: rgb(var(--gray-light-color));
    line-height: unset;
}

.social-menu>li>p {
    line-height: unset;
}

.social-menu .text-logo {
    font-size: 4rem;
}

.social-menu .fab {
    font-size: 3rem;
    color: rgb(var(--gray-light-color));
}

.social-menu .fab:hover {
    color: rgb(var(--primary-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(--gray-light-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(1);
}

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

@media only screen and (max-width: 980px) {
    .social-menu {
        display: block;
    }

    .social-menu li {
        justify-content: center;
        margin: auto;
        padding-bottom: 2rem;
    }
}

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

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

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

    .webbess-stamp {
        margin: 0 auto 2rem;
    }
}