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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 142, 18, 32;
    --black-color: 0, 0, 0;
    --gray-dark-color: 4, 4, 4;
    --gray-color: 51, 51, 51;
    --gray-light-color: 232, 232, 232;
    --white-color: 255, 255, 255;

    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 7.2rem;
    --menu-height-scrolled: 7.2rem;
    --section-width: 120rem;

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

    /* 	Mobile nav */
    --activate-mobile-menu: 900;
    --mobile-menu-height: 7.2rem;
    --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: 7rem 2rem 7rem 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: sans-serif;
}

/* Rubriker */
.section-title {
    font-family: 'Crimson Text', serif;
    font-size: 4rem;
    font-weight: 600;
    padding-bottom: 2.5rem;
    color: rgb(var(--gray-color));
}

.small-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 1.5rem;
    color: rgb(var(--gray-color));
}

/* Brodtext och lankar */
p,
li {
    font-weight: 300;
    text-decoration: none;
    line-height: 1.8em;
    color: rgb(var(--gray-color));
    letter-spacing: .03rem;
}

a {
    font-size: var(--base-size);
    font-weight: 300;
    color: rgb(var(--gray-color));
    text-decoration: underline;
}

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

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

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

.text-uppercase {
    text-transform: uppercase;
}

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

@media only screen and (max-width: 1150px) {
    .small-title {
        font-size: 2.3rem;
    }
}

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

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

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

/* Knappar */
.btn,
.ContactSubmit {
    padding: 1.28rem 3.55rem;
    margin: 7px;
    font-size: 1.7rem;
    font-weight: 300;
    border-radius: 0.8rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: all .4s ease;
    width: auto;
}

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

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

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

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

.bg-black-transparent {
    background-color: rgba(var(--black-color), 0.85);
}

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

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

/* Bakgrundsbilder och videos
========================================================================== */
/* Bakgrundsbild */
body {
    background-image: url('/assets/images/industriomrade-2000px.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

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

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

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

@media only screen and (max-width: 710px) {
    .cards-wrapper.w-33 .card-item {
        width: 100%;
        margin: 1.5rem .5rem;
        min-height: 33rem;
    }
}

/* Card services */
.card-services .card-item {
    padding: 5rem 3rem 2rem 3rem;
    text-align: center;
    min-height: 37rem;
    border-radius: 8px;
    transition: 0.2s ease-in-out;
}

.card-services i {
    font-size: 7rem;
    padding-bottom: 2.5rem;
    color: rgb(var(--primary-color));
}

.js-more-text {
    text-align: left;
    margin: 1.6rem 0;
}

.js-show-more-text {
    text-decoration: none;
}

.js-show-more-text:hover {
    text-decoration: underline;
}

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

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

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

.header-logo img {
    background-color: rgb(var(--white-color));
    padding: 0.5rem;
    width: 24rem;
}

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

.TemplateMenu a:hover,
header:not(.scrolled) .TemplateMenu a:hover {
    color: rgb(var(--primary-color));
}

header:not(.scrolled) .TemplateMenu a {
    color: rgb(var(--white-color));
}

/* Mobil nav */
header:not(.scrolled) .hamburger {
    filter: invert(1);
}

.mobile-menu .hamburger.hamburger--slide.is-clicked {
    filter: none;
}

.mobile-menu .TemplateMenu {
    gap: 2rem;
}

.mobile-menu .TemplateMenu a,
.mobile-menu:not(.scrolled) .TemplateMenu a {
    color: rgb(var(--gray-color));
}

.mobile-menu .TemplateMenu a:hover {
    color: rgb(var(--primary-color));
}

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

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

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: center;
    height: 100dvh;
    background-color: rgb(var(--black-color), .35);
    margin-top: calc(var(--menu-height) * -1)
}

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

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

.top-section .section-title {
    font-size: 7rem;
    line-height: 7.7rem;
    letter-spacing: 1px;
    padding: 0;
}

@media only screen and (max-width: 480px) {
    .top-section .section-title {
        font-size: 5.5rem;
        line-height: 6rem;
    }
}

/* Kontakt-section
========================================================================== */
/* Bakgrund */
.bg-kontakt {
    background-image: url('/assets/images/industri-ror-2000px.jpg');
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-kontakt .section-block {
    background-color: rgba(var(--black-color), 0.6);
}

/* Formular */
.ContactForm {
    display: grid;
    grid-template-columns: 49% 49%;
    grid-template-rows: auto auto auto;
    gap: 2%;
    align-items: stretch;
    padding-bottom: 1rem;
}

/* Grid positioner */
.ContactFormName {
    grid-column: 1;
    grid-row: 1;
}

.ContactFormEmail {
    grid-column: 1;
    grid-row: 2;
}

.ContactFormField {
    grid-column: 1;
    grid-row: 3;
}

.ContactFormMessage {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
}

.ContactFormMessage textarea {
    height: 100%;
}

/* Ovrigt */
.bg-kontakt .section-block-wrapper {
    max-width: 98rem;
}

.bg-kontakt .col-block {
    max-width: 80%;
    margin: 0 auto;
}

.bg-kontakt div {
    margin-bottom: 0;
}

.ContactForm p {
    margin-top: 1rem;
    color: rgb(var(--white-color));
    font-size: var(--base-size);
}

.ContactForm p::after {
    display: none;
}

.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"] {
    height: 3rem;
}

.ContactForm input[type="text"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm textarea {
    border: none;
    border-radius: 0.7rem;
    padding: 1.5rem;
}

.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 input:focus,
.ContactForm textarea:focus {
    outline: none;
}

/* Submit knapp */
.submit-button-container {
    margin: 4rem auto 0;
    justify-items: center;
}

/* Bekraftelseruta */
.ContactSentMessage {
    padding: 1rem 1rem 1rem 7rem;
    margin-bottom: 2rem;
    border-radius: .5rem;
    color: rgb(var(--white-color));
    background-color: rgb(var(--primary-color));
    background-image: url(/assets/images/icons/message-sent.svg);
    background-size: 4rem;
    background-position: 1.5rem center;
    background-repeat: no-repeat;
}

.ContactSentMessage p {
    padding: 0;
    color: rgba(var(--white-color), 0.9);
}

@media only screen and (max-width: 740px) {
    .ContactForm {
        display: block;
    }
}

/* ==========================================================================
Footer
========================================================================== */
/* Bakgrund */
.footer {
    text-align: center;
    padding: 4.8rem;
    min-height: 15rem;
    background-color: rgb(var(--gray-dark-color));
}

/* Text & Rubriker */
.footer p:not(.small-title),
.footer a {
    color: rgb(var(--white-color));
    text-decoration: none;
    padding-bottom: 0;
}

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

/* Bilder */
.footer .footer-logo {
    padding: 1.5rem;
}

.webbess-stamp img {
    width: 6.5rem;
    margin-left: 1.6rem;
    filter: invert();
}