/* PP Hus & Bygg AB */

@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');
@import url('https://fonts.googleapis.com/css?family=Barlow:300,400,500|Oswald:300,400,500,600,700&display=swap');

/* ==========================================================================
Generellt
========================================================================== */
:root {
	/* 	Colors */
	--primary-color: 217, 56, 50;

	--black-color: 17, 17, 17;
	--gray-dark-color: 58, 58, 58;
	--gray-color: 130, 130, 130;
	--gray-light-color: 243, 241, 237;
	--white-color: 255, 255, 255;

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

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

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

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

/* Layout
========================================================================== */
.section-block {
	padding: 10rem 5rem;
}
/* Referensjobb
========================================================================== */
.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;
}

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

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

.pb-0 .section-block,
.pb-0:not(.section-wrapper) {
	padding-bottom: 0;
}
/* Paddings */
.p-3{
	padding-top: 3rem;
}
/* Margins */
.mb-3 {
	margin-bottom: 3rem;
}

/* Bredder */


/* Ovriga klasser */


@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: 'Public Sans', sans-serif;
}

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

.section-title {
	padding-bottom: .5em;
	font-size: 4rem;
	font-weight: 400;
	line-height: 1.2;
}

.small-title {
	padding-bottom: .3em;
	font-size: 2.5rem;
	font-weight: 400;
	line-height: 1.4;
}

/* Brodtext och lankar */
p,
li {
	color: rgb(var(--gray-dark-color));
}
a{
	text-decoration: none;
}
a:hover{
	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: 700;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

@media only screen and (max-width: 580px) {
	.btn {
		display: block;
		width: 100%;
		margin: 5px 0;
	}
}

/* Farger
========================================================================== */
/* Bakgrunder */
.bg-primary {
	background-color: rgb(var(--primary-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
========================================================================== */
.box-shadow {
    box-shadow: 0 1rem 3rem rgba(var(--primary-color), .1);
}


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

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

/* Video */
.bg-video-wrapper video {
	z-index: -1;
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	transform: translate(-50%, -50%);
}


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

.cards-wrapper:not(.w-100) {
	margin-left: -1rem;
	margin-right: -1rem;
}
/* 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-100 .card-item {
	width: 100%;
	margin: 1rem 0;
}

@media only screen and (max-width: 1050px) {
	.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;
	}

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

/* Card 3-6 */
.card-3-6 .card-item {
	position: relative;
	padding: 20rem 2rem 2rem;
}

.card-3-6 .image-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.card-3-6 .image-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(var(--black-color), .3);
	transition: .3s ease-in-out;
}

.card-3-6 .card-item:hover .image-wrapper::after {
	background: rgba(var(--black-color), .6);
}

.card-3-6 .card-body {
	z-index: 1;
	position: relative;
}


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


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

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

/* Knappar */
.popup-button {
    position: relative;
    width: 5rem;
    height: 5rem;
    background: rgb(var(--primary-color));
    border-radius: 50%;
    box-shadow: 0 0 3rem rgba(15, 36, 47, .3);
    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;
    max-width: 45rem;
    max-height: calc(100vh - 12rem); 
    padding: 4rem;
    margin: 0 2rem;
    background: rgb(var(--white-color));
    border-radius: 2rem;
    box-shadow: 0 0 3rem rgba(15, 36, 47, .3);
    overflow: auto;
    transition: opacity .3s ease, bottom .3s ease;
}

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

.icon-close-popup {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
}

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

    .icon-close-popup {
        top: 1rem;
    }
}

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

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

/* Nav */
.TemplateMenu a {
	font-weight: 600;
	font-size: 1.4rem;
	color: rgb(var(--white-color));
}
.TemplateMenu a:hover {
	text-decoration: underline;
		color: rgb(var(--white-color));
}
.TemplateMenu li.active>a{
	color: rgb(var(--white-color));
	text-decoration: underline;
}

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

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

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

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

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

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

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

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

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

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

.top-section p {
	max-width: 60rem;
	margin: 0 auto;
}

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

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

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

/* Vara tjanster
========================================================================== */
.logo-wrapper img {
	max-height: 6rem;
}
/* Slider */
.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;
}

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


/* Kontakt
========================================================================== */
.section-contact .col-0 {
	max-width: 70rem;
	margin: auto;
	box-shadow: 0 1rem 3rem rgba(var(--black-color), .1);
	padding: 4rem;
}
/* Section-instagram
========================================================================== */
.section-instagram{
	overflow: hidden;
}

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

/* Hero - Grundkod
========================================================================== */
.hero {
	display: flex;
	align-items: center;
	min-height: 20rem;
	text-align: center;
	background-color: rgb(var(--primary-color));
}

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

.hero .section-title {
	font-size: 6rem;
	color: rgb(var(--white-color));
}

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

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

/* ==========================================================================
Footer
========================================================================== */
.footer {
    padding: 5rem;
	background-color: rgb(var(--primary-color));
	text-align: center;
	border-top: 1rem solid rgb(var(--white-color));
}
.footer p,
.footer a{
color:  rgb(var(--white-color));
}

.footer-container {
    max-width: var(--section-width);
    margin: 0 auto;
}
.sigill-wrapper{
	display: flex;
	flex-direction: row;
	justify-content: center;
	margin-bottom: 3rem;
}
.sigill-wrapper img{
	max-width: 15rem;
	padding: 1rem;
}
/* WebbEss Stamp  */
.footer .webbess-stamp {
    display: flex;
    align-items: center;
    text-decoration: none;
	justify-content: center;
	font-size: 1.6rem;
}

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