/* AJKO ArmeringJärnKonstruktioner AB */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* 	Colors */
    --primary-color: 232, 71, 71;

    --black-color: 17, 17, 17;
    --gray-dark-color: 58, 58, 58;
    --gray-color: 130, 130, 130;
    --gray-light-color: 202, 202, 202;
    --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: 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-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: 'Open Sans', sans-serif;
}

/* Rubriker */
.text-label {
    padding-bottom: 1em;
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgb(var(--primary-color));
    font-family: 'Heebo', sans-serif;
}

.section-title {
    padding-bottom: .5em;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.2;
    font-family: 'Heebo', sans-serif;
}

.small-title {
    padding-bottom: .3em;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.4;
    font-family: 'Heebo', sans-serif;
}

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

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

.text-block-center {
    max-width: 80rem;
    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;
    }

    .text-label {
        font-size: 1.3rem;
    }
}

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

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

/* Knappar */
.btn,
.ContactSubmit {
    min-width: 15rem;
    padding: 1.5rem 2rem;
    margin: 5px;
    font-size: 1.4rem;
    font-weight: 400;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
}

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

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

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

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

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

.circle-icon:hover {
    color: rgb(var(--white-color));
    background-color: rgb(var(--primary-color));
}

.circle-icon em:before,
.circle-icon i:before {
    font-size: 1.5rem;
}

/* Arrow link */
.arrow-link {
    padding-right: 1rem;
    font-size: var(--base-size);
    color: rgb(var(--primary-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-white {
    background-color: rgb(var(--white-color));
}

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

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

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

/* Bakgrundsbilder och videos
========================================================================== */
/* Parallax */
.parallax {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Bilder */
.parallax-svetsare {
    background-image: url('/assets/images/svetsare-2000px.jpg');
}

@media only screen and (hover:none) {
    .parallax {
        background-attachment: scroll;
        background-position: center center;
    }
}

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

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

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

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

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

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

    /* Paddings */
    .card-item.p-3,
    .card-item .p-3 {
        padding: 2rem;
    }
}

/* Card 2-1 */
.card-2-1 .card-header {
    margin-bottom: 2rem;
    font-size: 5rem;
}

@media only screen and (max-width: 580px) {
    .card-2-1 .card-header {
        margin-bottom: 1rem;
        font-size: 3.5rem;
    }
}

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

@media screen and (max-width: 1300px) {
    .split-content {
        padding: 3rem;
    }
}

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

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

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

    .split-image {
        width: 100%;
        min-height: 20rem;
    }

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

/* Header / Navigation
========================================================================== */
header:not(.scrolled) {
    border-color: transparent;
    background-color: transparent;
}

/* Logo */
.header-logo {
    flex: 1 1 0px;
    font-family: 'Heebo', sans-serif;
}

.header-logo a {
    font-size: 2.8rem;
    line-height: 1;
    text-decoration: none;
    font-weight: 700;
    color: rgb(var(--white-color));
    text-transform: uppercase;
}

header.scrolled .header-logo a {
    color: rgb(var(--black-color));
}

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

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

/* Hover effect */
header:not(.mobile-menu) .TemplateMenu li.active>a,
header:not(.mobile-menu) .TemplateMenu ul a:hover {
    color: rgb(var(--primary-color));
    text-decoration: none;
}

header:not(.mobile-menu) .TemplateMenu>li>a:hover:before,
header:not(.mobile-menu) .TemplateMenu>li.active a:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

header:not(.mobile-menu) .TemplateMenu>li>a:before {
    visibility: hidden;
    position: absolute;
    content: "";
    height: 2px;
    top: 57px;
    width: calc(100% - 4rem);
    left: 4rem;
    background-color: rgb(var(--primary-color));
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all 0.3s linear 0s;
    transition: all 0.3s linear 0s;
}

/* Dropdown + hover/active for dropdown */
.TemplateMenu ul {
    background: rgb(var(--white-color));
}

header:not(.mobile-menu) .TemplateMenu>li>ul>li a::before,
header:not(.mobile-menu) .TemplateMenu>li>ul>li.active a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 9px;
    height: 5px;
    border-radius: 0 3px 3px 0;
    background: rgba(var(--primary-color), 0);
    transform: translateY(-50%);
    transition: .3s ease;
}

header:not(.mobile-menu) .TemplateMenu>li>ul>li a:hover::before,
header:not(.mobile-menu) .TemplateMenu>li>ul>li.active a::before {
    background: rgb(var(--primary-color));
}

/* CTA  */
.header-cta-wrapper {
    z-index: 9;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 0px;
    padding: 0;
    margin: 0 0 0 2rem;
    list-style: none;
}

.header-cta-wrapper li {
    margin: 0 .5rem;
}

.header-cta-wrapper .btn {
    min-width: unset;
    padding: 1.5rem 2rem;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

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

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

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

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

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

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

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

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

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

.top-section .section-title {
    font-size: 5.2rem;
    font-weight: 500;
}

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

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

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

/* Kontakt
========================================================================== */
.section-contact .col-0 {
    width: 55%;
    background-color: rgb(var(--white-color));
    padding: 4rem;
}

.section-contact .col-1 {
    width: 45%;
    background-color: rgb(var(--primary-color));
    padding: 4rem;
}

.section-contact .ContactForm {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

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

.section-contact .ContactForm>div {
    width: 49%;
}

.section-contact .ContactForm>.ContactFormName,
.section-contact .ContactForm>div.file-field,
.section-contact .ContactForm>div.textarea-field,
.section-contact .ContactForm>div.submit-button-container {
    width: 100%;
}

.section-contact .ContactForm input[type="text"],
.section-contact .ContactForm input[type="email"],
.section-contact .ContactForm input[type="tel"],
.section-contact .ContactForm textarea,
.section-contact .ContactForm .file-dropzone {
    border-radius: 3px;
    border-color: transparent;
}

.section-contact .ContactForm .submit-button-container {
    margin-bottom: 0;
}

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

    .section-contact .col-0,
    .section-contact .col-1 {
        width: 100%;
    }

    .section-contact .ContactForm>div {
        width: 100%;
    }
}

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

    .section-contact .col-0,
    .section-contact .col-1 {
        padding: 2rem;
    }
}

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

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

.footer .small-title {
    font-size: 2.2rem;
    color: rgb(var(--primary-color));
}

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

.footer ul.socials {
    display: flex;
    justify-content: center;
}

.footer-top li,
.footer-top p,
.footer-top a:not(.circle-icon) {
    font-size: 1.4rem;
    color: rgb(var(--gray-light-color));
    text-decoration: none;
    transition: .2s ease;
}

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

.footer a:not(.circle-icon) em {
    color: rgb(var(--primary-color));
}

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

.footer-bottom p,
.footer-bottom a {
    font-size: 1.3rem;
    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();
}

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

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

    .footer-top {
        flex-direction: column;
    }

    .footer-menu {
        margin: 2rem 0;
    }
}

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

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

    /* Footer bottom */
    .footer-bottom {
        padding: 1.5rem 0;
        flex-direction: column;
        align-content: center;
    }
}