/* Petterssonplatt */

/* Modal */
@import url('https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css'); 
/* Fonts */
@import url("https://use.typekit.net/ayj6kvh.css");
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600&display=swap');

/* Aos animation */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* ==========================================================================
Generellt 
========================================================================== */
:root {
    /* 	Layout  */
    --col-padding: 3rem;
    --menu-height: 8rem;
    --menu-height-scrolled: 8rem;

    /* 	Colors */
    --primary-color: 210, 18, 25;
    /* --secondary-color: 68, 63, 59;*/

	--gray-light-color: 240, 240, 240;
	--white-color: 255, 255, 255;
	
    /* 	Typography */
    --base-size: 2rem;

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

/* Layout
========================================================================== */
.section-block {
	padding: 12rem 4rem;
}

.section-block-wrapper {
	max-width: 130rem;
}

/* Specifika paddings */

.p-1 .section-block {
	padding: 1rem;
}

.p-2 {
	padding: 2rem !important;
}

.pt-0 .section-block-wrapper  {
	padding-top: 0;
}

.pt-2:not(.section-wrapper) {
	padding-top: 2rem;
}
.pb-0{
    padding-bottom: 0 !important;
}

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

.mw-1500 .section-block-wrapper {
	max-width: 150rem;
}

.mw-100 {
	max-width: 100rem;
}

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

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

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

/* Rubriker */
.text-label {
    padding-bottom: 1.5rem;
    color: #000;
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: sofia-pro, sans-serif;
}

.section-title {
	padding-bottom: 1.5rem;
	font-size: 5rem;
    font-weight: 500;
	color: rgb(var(--primary-color));
}

.small-title {
	padding-bottom: 1.5rem;
	font-size: 3.5rem;
    font-weight: 500;
	color: rgb(var(--primary-color));
}
.ingress {
	padding-bottom: 0rem;
	font-size: 2.2rem;
    font-weight: 500;
	color: rgb(var(--primary-color));
}

/* Brödtext och länkar */
a:not(.btn) {
	color: rgb(var(--primary-color));
	text-decoration: none;
}

/* Övriga klasser */
.text-block {
	max-width: 80rem;
}

.text-block-center {
	max-width: 80rem;
	margin: 0 auto;
}

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

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

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

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

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

/* Knappar och speciella lankar
========================================================================== */
.btn-wrapper {
	margin-top: 1.5rem;
}
.btn-wrapper.center {
	margin-top: 1.5rem;
    margin: auto;
    text-align: center;
}

.btn,
.ContactSubmit {
	padding: 1.2rem 2rem;
	font-size: 1.4rem;
    font-weight: 500;
	font-family: 'Rajdhani', sans-serif;
	letter-spacing: .3rem;
	text-align: center;
    text-transform: uppercase;
	text-decoration: none;
	border-radius: 5rem;
	border: 2px solid;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 1rem;
	-webkit-transition: 0.2s ease-in-out;
    transition: 0.2s ease-in-out;
    min-width: 15rem;
}

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

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

.btn-white-filled {
	color: #000;
	border-color: #FFF;
	background: #FFF;
}

.btn-white-filled:hover {
	background: transparent;
}

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

.circle-icon em:before,
.circle-icon i:before {
    color: #444;
    font-size: var(--base-size);
}
/* Arrow link */
.arrow-link {
    padding-right: 1rem;
    font-size: var(--base-size);
    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;
}

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

/* Färger
========================================================================== */
/* Bakgrundsfärger */
.bg-primary-light .section-block {
	background-color: #f5ebe7;
}

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

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

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

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

@media only screen and (max-width: 1200px) {
	.cards-wrapper.w-20 .card-item {
		width: calc((100% / 4) - 2rem);
		margin: 1rem;
	}
}
@media only screen and (max-width: 1050px) {
    /* Bredder */
    .cards-wrapper.w-33 .card-item {
        width: calc((100% / 2) - 2rem);
        margin: 1rem;
    }
}
@media only screen and (max-width: 980px) {
	.cards-wrapper.w-25 .card-item,
	.cards-wrapper.w-20 .card-item {
		width: calc((100% / 3) - 2rem);
		margin: 1rem;
	}
}

@media only screen and (max-width: 750px) {
    /* Bredder */
    .cards-wrapper.w-33 .card-item {
        width: 100%;
        margin: 1rem 0;
    }
}

@media only screen and (max-width: 680px) {
	.cards-wrapper.w-25 .card-item,
	.cards-wrapper.w-20 .card-item {
		width: calc((100% / 2) - 2rem);
		margin: 1rem;
	}
}

/* Cards 14 */
.cards-14 .card-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 2rem;
	color: #000;
    transition: all .3s ease;
}

.cards-14 a.card-item:hover {
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all .3s ease;
}

.cards-14 i {
    width: 5.5rem;
    font-size: 3.5rem;
}

.cards-14 p {
    padding-bottom: 0;
    font-size: 1.6rem;
}

.cards-14 .contact-info {
    font-size: 1.7rem;
    font-weight: 400;
}

/* Grafiska element
========================================================================== */
/* Badge */
.badge-wrapper {
    position: relative;
}

.badge {
    position: absolute;
    top: 1rem;
    left: 0;
    padding: .5rem 1.5rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    border-radius: 0 .5rem .5rem 0;
	color: rgb(var(--white-color));
	background: rgb(var(--primary-color));
}

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

.content-padding{
    padding: 8rem !important;
}
/* Speciella bredder */
.split-wrapper .w-60 {
    width: 60%;
}

.split-wrapper .w-40 {
    width: 40%;
}

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

/* Split image med grid */
.split-images-grid {
    justify-content: space-between;
    background-color: #FFF;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .05);
    border-radius: 5px;
    padding-right: 1rem;
}

.split-images-grid .split-content {
    padding: 7rem 4rem;
    border-radius: 2px;
    width: calc(50% - 1rem);
}

.split-image-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 1fr;
    -ms-grid-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    -ms-grid-rows: 1fr 1fr;
    gap: 1rem;
    width: 50%;
    margin: -1rem 0;
}

.split-image-grid .grid-image {
    position: relative;
    width: 100%;
}

.split-image-grid>.grid-image:nth-child(1) {
    grid-column: 1 / 1;
    -ms-grid-column: 1;
    grid-row: 1 / 3;
    -ms-grid-row: 1;
}

.split-image-grid>.grid-image:nth-child(2) {
    grid-column: 2 / 2;
    -ms-grid-column: 2;
    grid-row: 1 / 1;
    -ms-grid-row: 1;
}

.split-image-grid>.grid-image:nth-child(3) {
    grid-column: 2 / 2;
    -ms-grid-column: 2;
    grid-row: 2 / 2;
    -ms-grid-row: 2;
}

.split-image-grid .split-image {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

@media screen and (max-width: 1100px) {
	.split-content,
    .split-wrapper .w-60,
    .split-wrapper .w-40  {
		width: 100%;
	}
    .content-padding{
        padding: 4rem !important;
    }

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

	/* Split image med grid */
	.split-images-grid {
		padding: 1rem;
	}

	.split-images-grid .split-content {
		width: 100%;
	}

	.split-image-grid {
		width: 100%;
		margin: 0;
	}

	.split-image-grid .split-image {
		position: relative;
	}
}

@media screen and (max-width: 580px) {
	.split-wrapper:not(.split-images-grid) {
		background: transparent;
	}

	.split-content {
		padding: 3rem;
	}

	/* Split image med grid */
	.split-images-grid .split-content {
		padding: 2rem 1rem;
	}
}
/* Modal
========================================================================== */
.modal {
    max-width: 125rem;
    width: 100%;
    max-height: 75vh;
    padding: 0rem;
    border-radius: 0;
    box-shadow: none;
    overflow: auto;
    background-color: #f5ebe7;
  }

  .blocker {
    z-index: 100;
  }

  .modal a.close-modal {
    display: none;
  }

  .modal .custom-close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
  }

  @media only screen and (max-width: 450px) {
    .modal {
      padding: 3rem 2rem;
    }

    .blocker {
      padding: 1rem;
    }
  }

/* Popup-notis
========================================================================== */
.EditMode .popup-wrapper {
    display: none;
}

.popup-wrapper {
    z-index: 8;
    position: fixed;
    bottom: 3rem;
    right: 3rem;
}

/* Knappar */
.popup-button {
    position: relative;
    appearance: none;
    width: 5rem;
    height: 5rem;
    background: rgb(var(--primary-color));
    border-radius: 50%;
    box-shadow: 0 0 3rem rgba(var(--black-color), .3);
    border: none;
    cursor: pointer;
}

.popup-button i {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2.8rem;
    transform: translate(-50%, -50%);
    transition: .3s ease;
    color: rgb(var(--white-color));
}

.popup-wrapper .popup-button .icon-open,
.popup-wrapper.opened .popup-button .icon-close {
    transform: translate(-50%, -50%) scale(1);
}

.popup-wrapper.opened .popup-button .icon-open,
.popup-wrapper .popup-button .icon-close {
    transform: translate(-50%, -50%) scale(0);
}

/* InnehÃ¥ll */
.popup-window {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    right: 0;
    bottom: 6rem;
    width: 380px;
    max-width: calc(100% - 2rem);
    max-height: calc(100vh - 12rem);
    margin: 0 2rem;
    background: rgb(var(--white-color));
    border-radius: 3px;
    box-shadow: 0 0 3rem rgba(var(--black-color), .3);
    transition: opacity .3s ease, bottom .3s ease;
}

.popup-wrapper.opened .popup-window {
    opacity: 1;
    visibility: visible;
    display: block;
    bottom: 10rem;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 2rem;
    border-bottom: 1px solid rgb(var(--gray-light-color));
}

.popup-header .text-title {
    padding: 0;
    line-height: 1;
}

.icon-close-popup {
    appearance: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
}

.icon-close-popup:hover {
    background-color: rgb(var(--gray-light-color));
}

.popup-content {
    padding: 1rem 2rem 3rem;
    max-height: 30rem;
    overflow: auto;
}

.popup-content p.small-title {
	font-size: 2.5rem;
}

.popup-content p {
	padding-bottom: 0;
	font-size: 1.7rem;
}

/* 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(var(--black-color),.7);
  }

  body:not(.EditMode) .section-auto-modal .section-block {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 4rem);
    max-width: 85rem;
    max-height: 75vh;
    padding: 4rem;
    border-radius:2rem;
    overflow: auto;
    background: rgb(var(--white-color));
    transform: translate(-50%,-50%);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .05);
  }
  .modal-images-wrapper{
    max-width: 13rem;
    margin: auto;
  }

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

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

/* Header / Navigation
========================================================================== */
header .container {
    display: grid;
    grid-template-columns: 1fr 0 auto 1fr;
}

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

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

/* Topsection
========================================================================== */
.topsection .section-block {
	z-index: 1;
	position: relative;
}

.topsection .section-block::after {
	z-index: -1;
	content: '';
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%);
	background-image: linear-gradient(90deg, #ffffff 0%, #f5ebe7 0%);
	pointer-events: none;
}

.topsection .split-wrapper {
	justify-content: space-between;
	min-height: calc(100vh - var(--menu-height));
}

.topsection .split-content {
	max-width: 70rem;
}

.topsection .section-title {
	font-size: 6rem;
	font-weight: 600;
}

.topsection .btn {
	min-width: 22rem;
	margin: 1rem 1rem 1rem 0;
}

@media only screen and (max-width: 580px) {
	.topsection .split-content {
		padding: 5rem 2rem;
		text-align: center;
	}

	.topsection .section-title {
		font-size: 4rem;
	}
}

/* Om oss
========================================================================== */
.services-wrapper p {
	display: flex;
	justify-content: center;
	align-items: center;
}

.services-wrapper span {
	min-width: 6rem;
	font-weight: 500;
}

.services-wrapper i {
	min-width: 6rem;
	margin: 0 1rem;
    color: rgba(var(--primary-color));
	font-size: 1rem;
}

@media only screen and (max-width: 600px) {
	.services-wrapper p {
		flex-direction: column;
	}

	.services-wrapper i {
		margin: 1rem 0;
	}
}

/* Jobba hos oss
========================================================================== */
@media only screen and (max-width: 580px) {
	.section-jobs .split-content {
		padding: 8rem 2rem;
	}
}

/* Galleri
========================================================================== */
.section-gallery .placeholder {
	display: flex;
	justify-content: center;
	align-items: center;
	color: #FFF;
	background: rgb(var(--primary-color));
}

.section-gallery .placeholder .small-title {
	color: #FFF;
	font-size: 2rem;
	line-height: 3rem;
	text-align: center;
}

@media only screen and (max-width: 1200px) {
	.section-gallery .card-item:nth-child(1) {
		display: none;
	}
}

@media only screen and (max-width: 980px) {
	.section-gallery .card-item:nth-child(2) {
		display: none;
	}
}

@media only screen and (max-width: 680px) {
	.section-gallery .card-item:nth-child(3) {
		display: none;
	}
}

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

/* Hero
========================================================================== */
.hero {
	text-align: center;
	background-color: #f5ebe7;
}

/* CTA - kontakt
========================================================================== */
.section-contact-cta {
	background: #f5ebe7;
}

.section-contact-cta .section-block {
	padding: 10rem 2rem;
}

/* ==========================================================================
Undersida: Kontakt
========================================================================== */

/* Karta
========================================================================== */
.section-map {
	font-size: 0;
}

.section-map iframe {
	width: 100%;
	height: 50rem;
	border: none;
}

/* ==========================================================================
Footer
========================================================================== */
footer {
    background: rgb(var(--primary-color));
}

.footer-container {
    max-width: 160rem;
    padding: 0 2rem;
    margin: 0 auto;
}

/* Footer top */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8rem 2rem 4rem 2rem;
    border-bottom: 1px solid #FFF;
}

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

.footer-menu-large {
    width: 30%;
}

.footer .small-title {
	padding-bottom: 0;
	color: #FFF;
    font-size: 2.5rem;
	font-weight: 500;
    letter-spacing: normal;
}

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

.footer li,
.footer p,
.footer a:not(.circle-icon) {
	color: #FFF;
	font-size: 1.6rem;
    font-weight: 400;
}

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

.footer-bottom p {
    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;
	filter: brightness(0) invert(1);
 }
  
 

@media only screen and (max-width: 1024px) {
    /* Footer top */
    .footer-menu,
    .footer-menu-large {
        width: 48%;
		margin: 1rem 0;
    }
}

@media only screen and (max-width: 750px) {
    /* Footer top */
    .footer-menu,
    .footer-menu-large {
        width: 100%;
    }
}

@media only screen and (max-width: 450px) {
    /* Footer top */
    .footer-top {
        padding: 8rem 0 4rem 0;
    }

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


.section-scroll {
    overflow: hidden;
}
/* Slider */
.scroll-wrapper.cards-wrapper {
    margin-bottom: 5rem;
}

.scroll-wrapper.cards-wrapper .slick-list {
    width: 100%;
    overflow: visible;
}

.scroll-wrapper.cards-wrapper .slick-track {
    display: flex;
}

.scroll-wrapper.cards-wrapper .card-item {
    display: flex;
    height: auto;
    margin: 0 1rem;
    transition: all .3s ease;
}

.scroll-wrapper.cards-wrapper .card-item[aria-hidden="true"] {
    opacity: .5;
    transform: scale(.9);
}

/* Card item */
.scroll-wrapper .card-item {
    display: flex;
    flex-direction: column;
    margin: 0 2rem 0 0;
}

/* Slick Arrow */
.scroll-wrapper .slick-arrow {
    position: absolute;
    top: auto;
    bottom: -4rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgb(var(--primary-color));
}

.scroll-wrapper .slick-arrow::after {
    font-weight: 300;
    color: rgb(var(--white-color));
}

.scroll-wrapper .slick-next {
    right: 2rem;
}

.scroll-wrapper .slick-prev {
    left: auto;
    right: 6rem;
}

@media only screen and (max-width: 750px) {
    .scroll-wrapper.cards-wrapper .card-item {
        margin: 0;
    }
}
