/* Rambyggarna i Kalmar Handelsbolag */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
    /* Colors */
    --primary-color: 203, 170, 102;
    --secondary-color: 16, 22, 29;

    --accent-beige-color: 228, 223, 211;
    --accent-beige-light-color: 247, 245, 240;

    --black-color: 17, 17, 17;
    --gray-dark-color: 74, 74, 74;
    --gray-color: 130, 130, 130;
    --gray-light-color: 240, 240, 240;
    --white-color: 255, 255, 255;

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

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

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

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

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

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

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

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

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

/* Margins */
.mt-3 {
    margin-top: 3rem;
}

.mt-5 {
    margin-top: 5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

/* Ovriga klasser */
.align-center .section-block-wrapper {
    align-items: center;
}

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

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

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

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

.section-title {
    padding-bottom: .5em;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    color: rgb(var(--secondary-color));
}

.small-title {
    padding-bottom: .3em;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    color: rgb(var(--secondary-color));
}

.ingress {
    font-size: calc(var(--base-size) * 1.2);
}

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

.text-small {
    font-size: 1.4rem;
}

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

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

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

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

.text-italic {
    font-style: italic;
}

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

    /* Rubriker */
    .section-title {
        font-size: 3.5rem;
    }

    .small-title {
        font-size: 2.2rem;
    }
}

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

    /* Rubriker */
    .text-label {
        font-size: 1.4rem;
    }
}

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

    /* Rubriker */
    .text-label {
        font-size: 1.2rem;
    }

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

    .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.3rem 2.5rem;
    margin: 7px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: .5rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid;
    transition: all .4s ease;
}

.btn.arrow::after {
    content: '\f178';
    margin-left: .9rem;
    font-family: 'Font Awesome 5 Pro';
    position: relative;
    left: 0;
    transition: .3s ease;
}

.btn.arrow:hover::after {
    left: .7rem;
}

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

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

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

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

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

.btn-white-border:hover {
    color: rgb(var(--secondary-color));
    background-color: rgb(var(--white-color));
}

/* Kvadratikon */
.square-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 0;
    margin: .5rem;
    font-size: 0;
    color: rgb(var(--secondary-color));
    text-decoration: none;
    border-radius: 1rem;
    background-color: rgb(var(--primary-color));
    border: 1px solid rgb(var(--primary-color));
    transition: .3s ease;
}

.square-icon:hover {
    color: rgb(var(--primary-color));
    background-color: transparent;
}

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

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

.bg-beige-light {
    background-color: rgb(var(--accent-beige-light-color));
}

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

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

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

/* Grafiska element
========================================================================== */
/* Borders */
.border-top-beige {
    border-top: 1px solid rgb(var(--accent-beige-color));
}

.border-bottom-beige {
    border-bottom: 1px solid rgb(var(--accent-beige-color));
}

.border-bottom-gray-dark {
    border-bottom: 1px solid rgb(var(--gray-dark-color));
}

.border-top-gray {
    border-top: 1px solid rgb(var(--gray-color));
}

/* Border radius */
.br-1 {
    border-radius: 1rem;
    overflow: hidden;
}

/* Box shadow */
.box-shadow {
    box-shadow: rgba(var(--black-color), 0.06) 0px 0px 0px 1px, rgba(var(--black-color), 0.03) 0px 1px 1px -0.5px, rgba(var(--black-color), 0.04) 0px 2px 2px -1px, rgba(var(--black-color), 0.04) 0px 3px 3px -1.5px, rgba(var(--black-color), 0.03) 0px 5px 5px -2.5px, rgba(var(--black-color), 0.03) 0px 10px 10px -5px, rgba(var(--black-color), 0.03) 0px 24px 24px -8px;
}

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

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

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

/* Card grow */
.cards-grow .card-item {
    display: flex;
    flex-direction: column;
}

.cards-grow .card-body {
    flex-grow: 1;
}

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

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

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

@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,
    .cards-wrapper.w-50 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

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

.card-2-1 .card-footer.btn-wrapper {
    margin-top: 4rem;
}

.card-2-1 .card-footer .btn {
    display: block;
    width: 100%;
    margin: 0;
}

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

/* Card 2-4 */
.card-2-4 .card-item {
    display: flex;
    align-items: flex-end;
    padding: 1rem 0;
}

.card-2-4 .card-item:first-child {
    padding-top: 0;
}

.card-2-4 .card-item:last-child {
    padding-bottom: 0;
}

.card-2-4 .card-header {
    display: inline-flex;
    align-items: flex-end;
    width: 5rem;
    height: 5rem;
}

.card-2-4 .card-header i {
    font-size: 3.3rem;
}

.card-2-4 .card-body {
    flex: 1 1 0px;
    padding: 0 0 0 2rem;
}

.card-2-4 .card-body .small-title {
    line-height: 1;
    transition: .3s ease;
}

.card-2-4 .card-body a.small-title {
    text-decoration: none;
}

.card-2-4 a.small-title:hover {
    color: rgb(var(--primary-color));
}

@media only screen and (max-width: 420px) {
    .card-2-4 .card-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .card-2-4 .card-header {
        justify-content: left;
        width: 5rem;
        height: 5rem;
    }

    .card-2-4 .card-header i {
        font-size: 3rem;
    }

    .card-2-4 .card-body {
        padding: 2rem 0 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%;
}

/* Placera content */
.split-wrapper .align-end {
    align-self: flex-end;
}

@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: 75rem;
        padding: 0 0 3rem;
        background: transparent;
    }

    .split-image {
        width: 100%;
    }

    /* Placera content */
    .split-wrapper .align-end {
        align-self: flex-start;
    }
}

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

/* Logo */
.header-logo {
    margin: 0 auto 0 0;
}

.header-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo .text-logo {
    font-size: 2rem;
    padding: 0;
    font-weight: 700;
    line-height: 1;
    margin-left: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

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

/* Dropdown */
header:not(.mobile-menu) .TemplateMenu ul {
    background-color: rgb(var(--secondary-color));
    border-radius: 0 0 1rem 1rem;
    padding: .8rem 0;
    box-shadow: rgba(var(--black-color), 0.06) 0px 0px 0px 1px, rgba(var(--black-color), 0.03) 0px 1px 1px -0.5px, rgba(var(--black-color), 0.04) 0px 2px 2px -1px, rgba(var(--black-color), 0.04) 0px 3px 3px -1.5px, rgba(var(--black-color), 0.03) 0px 5px 5px -2.5px, rgba(var(--black-color), 0.03) 0px 10px 10px -5px, rgba(var(--black-color), 0.03) 0px 24px 24px -8px;
}

header:not(.mobile-menu) .TemplateMenu>li>ul a {
    padding: 1.2rem 2rem;
    line-height: 1.4;
}

/* Dolj hem */
body:not(.EditMode) .TemplateMenu>li:nth-child(1) {
    display: none;
}

/* CTA */
.header-cta-wrapper {
    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;
}

/* Mobilmeny */
.mobile-menu .hamburger {
    flex-shrink: 0;
}

.mobile-menu .TemplateMenu ul {
    background-color: transparent;
}

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

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

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

    /* Header logo */
    .header-logo .text-logo {
        font-size: 1.4rem;
        margin-left: .5rem;
    }

    /* CTA */
    .header-cta-wrapper .btn {
        padding: 0.7rem 1.5rem;
        font-size: 1.2rem;
        margin: 0 0 0 2rem;
    }
}

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

    /* CTA */
    .header-cta-wrapper {
        display: none;
    }
}

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

/* Top-section
========================================================================== */
.top-section {
    display: flex;
    align-items: flex-end;
    min-height: 85vh;
    background-color: rgb(var(--black-color), .7);
}

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

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

.top-section .section-title {
    font-size: 5.5rem;
    font-weight: 800;
}

.top-section p {
    max-width: 58rem;
}

.top-section .btn-primary-filled:hover {
    color: rgb(var(--white-color));
}

/* Usps */
.top-section .cards-wrapper {
    max-width: 100rem;
}

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

.top-section .cards-wrapper .text-white {
    color: rgb(var(--white-color), .8);
}

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

@media only screen and (max-width: 1200px) {
    .top-section .text-block {
        max-width: 75rem;
    }

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

    /* Usps */
    .top-section .small-title {
        font-size: 2rem;
    }
}

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

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

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

/* Produkter
========================================================================== */
@media only screen and (max-width: 1200px) {
    .section-products .section-block-wrapper {
        flex-direction: column-reverse;
    }

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

/* Vanliga fragor
========================================================================== */
/* Split-text */
.split-text {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

@media only screen and (max-width: 980px) {
    .split-text {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

/* Hero - Grundkod
========================================================================== */
.hero {
    display: flex;
    align-items: flex-end;
    min-height: 35rem;
}

.hero.bg-secondary {
    border-top: 1px solid rgba(var(--gray-dark-color));
}

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

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

.hero .section-title {
    font-size: 5rem;
    font-weight: 800;
}

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

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

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

/* ==========================================================================
Undersida: Bygglov och regler
========================================================================== */
/* Tabell */
.table {
    width: 100%;
    max-width: 110rem;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.cell {
    width: calc(100% / 3);
    padding: 1rem;
}

@media only screen and (max-width: 750px) {
    .table-heading {
        display: none;
    }

    .row:not(:last-child) {
        margin-bottom: 1.5rem;
    }

    .cell {
        width: 100%;
    }

    .cell.title {
        background-color: rgb(var(--gray-light-color));
        border-radius: 1rem;
        overflow: hidden;
        margin-bottom: 1rem;
        padding: 2rem;
    }

    .cell:not(.title):before {
        content: attr(data-title);
        display: block;
        font-size: 1.3rem;
        color: rgb(var(--gray-color));
        text-transform: uppercase;
        margin-bottom: 13px;
    }
}

/* ==========================================================================
Undersida: Vanliga fragor
========================================================================== */

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

.accordion-item {
    width: 100%;
    padding-bottom: 2rem;
}

.accordion-header {
    position: relative;
    width: 100%;
    padding: 0 5rem 1rem 0;
    text-decoration: none;
    border-bottom: 1px solid rgb(var(--secondary-color));
    transition: .3s ease;
}

.accordion-header p {
    transition: .3s ease;
}

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

.accordion-header:hover {
    border-color: rgb(var(--primary-color));
}

.accordion-header:hover p {
    color: rgb(var(--primary-color));
}

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

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

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

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

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

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

.section-contact .col-1 {
    max-width: 70rem;
}

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

.asterisk p:after {
    line-height: 1;
}

.ContactForm input[type="text"],
.ContactForm input[type="number"],
.ContactForm input[type="email"],
.ContactForm input[type="tel"],
.ContactForm input[type="date"],
.ContactForm input[type="datetime-local"],
.ContactForm select,
.ContactForm textarea,
.ContactForm .file-item,
.ContactForm .file-dropzone {
    border: none;
    border-bottom: 1px solid rgb(var(--white-color));
    color: rgb(var(--white-color));
}

.ContactForm input[type="text"]:not(.illegal),
.ContactForm input[type="number"]:not(.illegal),
.ContactForm input[type="email"]:not(.illegal),
.ContactForm input[type="tel"]:not(.illegal),
.ContactForm input[type="date"]:not(.illegal),
.ContactForm input[type="datetime-local"]:not(.illegal),
.ContactForm select:not(.illegal),
.ContactForm textarea:not(.illegal),
.ContactForm .file-dropzone:not(.illegal) {
    background-color: transparent;
}

.ContactForm .submit-button-container,
.ContactForm .ContactSubmit {
    margin-bottom: 0;
}

/* ==========================================================================
Footer
========================================================================== */
footer {
    padding: 0 5rem;
    background-color: rgb(var(--secondary-color));
    border-top: 1px solid rgba(var(--gray-dark-color));
}

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12rem 0 0;
}

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

.footer .text-label {
    padding: 0 0 2rem;
    font-size: 1.5rem;
    line-height: 1;
    color: rgb(var(--primary-color));
}

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

.footer-top li,
.footer-top p,
.footer-top a:not(.square-icon) {
    text-decoration: none;
    color: rgba(var(--white-color), .6);
}

.footer a:not(.square-icon):hover {
    text-decoration: none;
    color: rgb(var(--white-color));
}

.footer .socials li {
    text-align: right;
}

/* 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(--gray-dark-color));
}

.footer-bottom p,
.footer-bottom a {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgb(var(--white-color));
}

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

/* WebbEss Stamp  */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.webbess-stamp img {
    width: 2.5rem;
    margin-left: 1rem;
    opacity: .6;
    filter: invert();
}

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

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

    .footer .footer-menu.socials {
        width: 100%;
        margin-bottom: 0;
    }

    .footer .socials li {
        display: inline-block;
    }
}

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

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

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

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

    .footer .socials {
        margin-bottom: 0;
        text-align: center;
    }

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

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