/* Svarvén & Co AB */

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

/* ==========================================================================
Generellt
========================================================================== */
:root {
	/* 	Colors */
	--primary-color: 30, 155, 217;
	--primary-dark-color: 0, 61, 91;
	--secondary-color: 254, 238, 0;

	--black-color: 17, 17, 17;
	--gray-dark-color: 58, 58, 58;
	--gray-color: 233, 233, 233;
	--gray-light-color: 248, 248, 248;
	--white-color: 255, 255, 255;

	/* 	Layout  */
	--col-padding: 5rem;
	--menu-height: 7.2rem;
	--menu-height-scrolled: 7.2rem;
	--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-2 .section-block,
.p-2:not(.section-wrapper) {
	padding: 2rem;
}

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

.pb-0 .section-block,
.pb-0:not(.section-wrapper) {
	padding-bottom: 0;
}

.pl-0 .section-block,
.pl-0:not(.section-wrapper) {
	padding-left: 0;
}

.pr-0 .section-block,
.pr-0:not(.section-wrapper) {
	padding-right: 0;
}

/* Margins */
.mb-3 {
	margin-bottom: 3rem;
}

/* Ovriga klasser */
.justify-center {
	justify-content: center;
}

@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 {
	display: flex;
	align-items: center;
	padding-bottom: 1.3em;
	font-size: 1.7rem;
	font-weight: 700;
	color: rgb(var(--primary-color));
	font-family: "Schibsted Grotesk", sans-serif;
}

.text-label::before {
	content: "";
	display: inline-block;
	width: 2rem;
	height: 3px;
	margin-right: 1.5rem;
	background-color: rgb(var(--primary-color));
}

.section-title {
	padding-bottom: .5em;
	font-size: 4rem;
	font-weight: 700;
	line-height: 1.2;
	color: rgb(var(--primary-dark-color));
	font-family: "Schibsted Grotesk", sans-serif;
}

.section-title .text-bold {
	font-weight: 800;
}

.small-title {
	padding-bottom: .3em;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.4;
	font-family: "Schibsted Grotesk", sans-serif;
}

.text-title {
	padding-bottom: .3em;
	font-size: calc(var(--base-size) + 1px);
	font-weight: 700;
}

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

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

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

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

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

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

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

@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 */
	.text-label {
		font-size: 1.5rem;
	}

	.text-label::before {
		margin-right: 1rem;
	}

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

	.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.2rem 2rem;
	margin: 5px;
	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;
}

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

/* Lank med ikon */
.icon-links {
	padding: 5px 10px;
	margin: 3px;
	font-size: 1.4rem;
	color: rgb(var(--black-color));
	line-height: 1;
	border-radius: 2rem;
	text-decoration: none;
	transition: all .3s ease;
}

.icon-links:hover {
	color: rgb(var(--white-color));
	background-color: rgb(var(--black-color));
}

.icon-links i {
	margin-right: 3px;
}

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

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

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

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

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

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

/* Grafiska element
========================================================================== */
/* Object position */
.of-wrapper img.op-50-90 {
	object-position: 50% 90%;
}

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

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

/* 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 {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Crossfade */
.bg-crossfade {
	position: relative;
}

.fade-slider {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.fade-slider div {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.fade-slider.slick-slider {
	position: absolute;
}

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

/* 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 1-1 */
.card-1-1 .card-item {
	padding: 4rem 2rem;
}

.card-1-1 .card-item.bg-primary:hover {
	background-color: rgb(var(--primary-dark-color));
}

.card-1-1 .card-item.bg-primary-dark:hover {
	background-color: rgb(var(--primary-color));
}

.card-1-1 .card-header {
	margin-bottom: 2rem;
	font-size: 3.5rem;
}

/* Card 3-6 */
.card-3-6 .card-item {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 35rem;
}

.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%;
	transition: .3s ease-in-out;
}

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

.card-3-6 .card-body {
	z-index: 1;
	position: relative;
	display: inline-block;
	min-width: 50%;
	padding: 1rem 2rem;
	pointer-events: none;
	transition: .3s ease;
}

.card-3-6 a.card-item:hover .card-body {
	background-color: rgb(var(--primary-color));
}

.card-3-6 a.card-item:hover .card-body .small-title {
	color: rgb(var(--white-color));
}

/* Split wrapper
========================================================================== */
.split-wrapper {
	display: flex;
	flex-wrap: wrap;
}

.split-wrapper.reverse {
	flex-direction: row-reverse;
}

.split-content {
	width: 50%;
	padding: 7rem;
}

.split-image,
.split-video {
	width: 50%;
}

.split-video video {
	width: 100%;
}

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

@media screen and (max-width: 1400px) {
	.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,
	.split-video {
		width: 100%;
		min-height: 20rem;
	}

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

/* Modal som oppnas 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: 75rem;
	max-height: 75vh;
	padding: 0;
	/* padding: 4rem; */
	border-radius: 0;
	overflow: auto;
	background: rgb(var(--white-color));
	transform: translate(-50%, -50%);
}

.section-auto-modal .close-modal {
	position: absolute;
	top: 1rem;
	right: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	font-size: 2rem;
	background-color: rgb(var(--white-color));
	/* background-color: rgb(var(--gray-light-color)); */
	border-radius: 50%;
	cursor: pointer;
}

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

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

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

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

.header-logo img {
	padding: 1.5rem 0;
}

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

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

/* Mobilmeny */
.mobile-menu .TemplateMenu > li > ul,
.mobile-menu .expandable:after {
	display: none;
}

/* EditMode */
.EditMode.WebbEssDIY header {
	position: relative;
	top: 15px !important;
}

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

	/* 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: calc(100vh - var(--menu-height));
	background-color: rgb(var(--black-color), .7);
}

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

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

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

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

/* Arbetsomraden
========================================================================== */
.split-mh-60 video {
	max-height: 60rem;
}

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

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

.hero.bg-image {
	background-color: rgb(var(--black-color), .5);
}

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

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

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

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

/* Hero-split
========================================================================== */
.hero-split .section-block {
	padding: 0;
}

.hero-split .section-block-wrapper {
	max-width: none;
}

.hero-split .split-content {
	padding: 8rem;
}

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

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

/* ==========================================================================
Undersida: Produkter > Produktsida
========================================================================== */

/* Produktinformation
========================================================================== */
.section-product-info .section-block-wrapper {
	max-width: 100rem;
}

.table {
	width: 100%;
	border: 1px solid rgb(var(--gray-light-color));
}

/* Heading */
.table-heading {
	background-color: rgb(var(--primary-color));
}

.table-heading p {
	color: rgb(var(--white-color));
}

/* Rad */
.row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	transition: .3s ease;
}

.row:not(:last-of-type) {
	border-bottom: 1px solid rgb(var(--gray-light-color));
}

.row:not(.table-heading):hover {
	background-color: rgb(var(--gray-light-color));
}

.row p {
	padding: 0;
	font-size: 1.5rem;
}

/* Cell */
.table .cell {
	width: 100%;
	padding: 1rem;
}

.table.w-25 .cell {
	width: calc(100% / 4);
}

.table.w-33 .cell {
	width: calc(100% / 3);
}

.table.w-50 .cell {
	width: calc(100% / 2);
}

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

	/* Cell */
	.table .row .cell {
		width: 100%;
	}

	.table .row:nth-child(even) {
		background-color: rgb(var(--gray-light-color));
	}

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

	.row .cell p {
		color: rgb(var(--black-color));
		font-weight: 400;
	}
}

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

	/* Row */
	.row:nth-child(odd) {
		background-color: rgb(var(--gray-light-color));
	}

	/* Cell */
	.row .cell,
	.row .cell:not(:first-of-type) {
		width: 100%;
		padding: 1rem 2rem;
	}
}

/* Galleri
========================================================================== */
.section-product-gallery .section-block-wrapper {
	max-width: 100rem;
}

.section-product-gallery .card-item {
	padding: 1rem;
}

.section-product-gallery .card-item img {
	width: 100%;
}

/* ==========================================================================
Undersida: Nyheter
========================================================================== */
.news-wrapper .image-wrapper,
.news-wrapper .video-wrapper {
	aspect-ratio: 5 / 2;
	overflow: hidden;
}

.news-wrapper .video-wrapper video,
.news-wrapper .video-wrapper iframe {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.news-wrapper .text-label {
	padding-bottom: .3em;
}

/* Paginering */
.pagination-controls {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
}

.pagination-controls button {
	padding: 0.7rem 1.2rem;
	margin: 5px;
	border: none;
	color: rgb(var(--white-color));
	border: 1px solid rgb(var(--primary-color));
	background-color: rgb(var(--primary-color));
	cursor: pointer;
	transition: .3s ease;
}

.pagination-controls button:not(.active):hover {
	color: rgb(var(--primary-color));
	background-color: transparent;
}

.pagination-controls button.active {
	font-weight: 600;
	border: 1px solid rgb(var(--primary-dark-color));
	background-color: rgb(var(--primary-dark-color));
}

.pagination-controls button.disabled {
	opacity: 0.4;
	pointer-events: none;
}


/* ==========================================================================
Undersida: Kontakt
========================================================================== */
.ContactForm p {
	font-size: 1.4rem;
	font-weight: 600;
	color: rgb(var(--primary-dark-color));
}

.gdpr p {
	display: none;
}

/* ==========================================================================
Undersida: Offertforfragan
========================================================================== */
.section-form .section-block-wrapper {
	max-width: 80rem;
}

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

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

.footer-menu {
	max-width: 20%;
	padding-right: 3rem;
}

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

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

.footer .text-label::before {
	display: none;
}

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

.footer-top li,
.footer-top p,
.footer-top a {
	color: rgb(var(--white-color));
}

.footer a {
	text-decoration: none;
	transition: .3s ease;
}

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

/* Footer middle */
.footer-middle {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.footer-middle p,
.footer-middle a {
	color: rgb(var(--white-color));
}

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

.footer-bottom p,
.footer-bottom a {
	padding: 0;
	font-size: calc(var(--base-size) - 3px);
	line-height: 1.6;
	color: rgb(var(--white-color));
}

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

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

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

	/* Footer top */
	.footer-menu {
		width: 33.333%;
		max-width: none;
	}

	.footer-menu.footer-menu-large {
		width: 100%;
		max-width: none;
		padding-right: 0;
	}

	.footer-menu-large p {
		max-width: 55rem;
	}
}

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

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

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

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