/*
Theme Name: berglipidtech
Theme URI: http://www.osberget.no/
Author: Magne Grimstad at Osberget AS, Maxim Kukulinsky at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: berglipidtech Wordpress theme
Version: 1.1.6
Tags: berglipidtech osberget rasamax
Text Domain: berglipidtech
*/

@import 'css/cookiebot.scss';

/* Page commons */
body {
	font-family: 'Titillium Web', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.admin-bar {
	min-height: calc(100vh - 32px);
}

.font-heading {
	/*font-family: 'Montserrat', sans-serif;*/
}

* > p:first-child {
	margin-top: 0;
}

* > p:last-child {
	margin-bottom: 0;
}

.big-heading {
	font-size: 45px;
}
.medium-heading {
	font-size: 35px;
}
.small-heading {
	font-size: 21px;
}

.big-text {
	font-size: 18px;
}
.regular-text {
	font-size: 16px;
}
.small-text {
	font-size: 12px;
}

.font-noto-serif {
	font-family: 'Noto Serif', serif;
}

.font-titillium-web {
	font-family: 'Titillium Web', sans-serif;
}

@media (max-width: 1023px) {
	.big-heading {
		font-size: 35px;
	}
}

.font-weight-medium {
	font-weight: 600;
}

.position-cover {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

.z-index-1 {
	z-index: 1;
}

.object-fit-cover {
	object-fit: cover;
}

.fixed-aspect-ratio-image {
	padding-bottom: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.fixed-aspect-ratio-image.r-56 {
	padding-bottom: 56%;
}

.accessible-hidden {
	-ms-appearance: none;
	-moz-appearance: none;
	-o-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	display: inline;
	width: 0;
	height: 0;
	font-size: 0;
	padding: 0;
	margin: 0;
	overflow: hidden;
	color: transparent;
	background: transparent;
	border-color: transparent;
	border: none;
	box-shadow: none;
}

.cursor-pointer {
	cursor: pointer;
}


/* Front page - Top */
.front-page-top {
	display: grid;
	grid-template-rows: 1fr;
	grid-template-columns: 1fr 5px 1fr;
	min-height: calc(100vh - 130px); /* -header */
}
body.admin-bar .front-page-top {
	min-height: calc(100vh - 130px - 32px); /* -header -admin bar */
}

.front-page-top-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

@media (max-width: 767px) {
	.front-page-top {
		grid-template-rows: 1fr 5px 1fr;
		grid-template-columns: 1fr;
	}
}

.front-page-products {
	background: #48AAB2 linear-gradient(0deg, #045D5D, #48AAB2) repeat-x;
}

.bold-line {
	max-width: 240px;
	width: 100%;
	height: 8px;
	border-top-left-radius: 2px;
}

.quote {
	position: relative;
}

.quote:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url(images/quote.svg);
	opacity: 0.13;
}
.quote.quote-right:before {
	transform: rotate(180deg);
}

.overlay-white-gradient {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: transparent linear-gradient(90deg, white, rgba(255, 255, 255, 0.63) 55%, transparent) repeat-y;
}

.front-page-info-2-bg-image {
	position: absolute;
	top: 50%;
	right: 50%;
	transform: translate(25%, -35%);
}

@media(max-width: 575px) {
	.front-page-info-2-bg-image {
	    max-width: 400px;
	    transform: translate(50%, -15%);
	}
}

.front-page-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}


/* Header */
#header {
	height: 130px;
}
#menu-button {
	width: 48px;
	height: 35px;
}
#menu-button > div {
	width: 100%;
	height: 7px;
	border-radius: 100px;
	background-color: #48aab2;
	margin-top: 7px;
}
#menu-button > div:nth-child(1) {
	margin-top: 0;
}



#menu-primary-menu .sub-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    min-height: 0;
    padding: 0;
    color: #FFFFFF;
	background: #48AAB2 linear-gradient(0, rgba(255, 255, 255, 0.5), #48AAB2);
    list-style: none;
    overflow: auto;
    opacity: 0;
    z-index: 100;
    transition: height 0s 0.5s, min-height 0s 0.5s, opacity 0.5s;
}

#menu-primary-menu .menu-item.expand > .sub-menu-wrapper {
    height: calc(100vh - 130px - 32px);
    min-height: 100%;
    opacity: 1;
    transition: height 0s, min-height 0s, opacity 0.5s;
}


#menu-primary-menu .sub-menu-wrapper li {
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

#menu-primary-menu .sub-menu-wrapper li a span {
	display: block;
}

.close-button {
    position: absolute;
    top: 30px;
    right: 0;
    padding-right: 25px;
    margin: 0;
    cursor: pointer;
}

.close-button:before,
.close-button:after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 20px;
	height: 2px;
	background: white;
	transform: translate(0, -50%) rotate(45deg);
}

.close-button:after {
	transform: translate(0, -50%) rotate(-45deg);
}

@media (min-width: 1024px) {
	#menu-primary-menu > li {
	    margin-left: 40px;
	}

	#main-navigation-container #menu-primary-menu > .menu-item > a {
		display: inline-block;
		margin-top: 10px;
		margin-bottom: 10px;
		color: #045d5d;
	}
	#main-navigation-container #menu-primary-menu > .menu-item.button > a {
		padding: 10px 24px;
		margin-top: 0;
		margin-bottom: 0;
		border-radius: .625rem;
		background: #48aab2;
		color: white;
	}
}

@media (max-width: 1023px) {
	#main-navigation-container {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100vw;
		min-height: 0;
		height: 0;
		background: #48AAB2 linear-gradient(0, rgba(255, 255, 255, 0.5), #48AAB2);
		color: white;
		overflow: hidden;
		opacity: 0;
		z-index: 1000;
		transition: opacity 0.5s, height 0s 0.5s, min-height 0s 0.5s;
	}

	#menu-checkbox:checked ~ #main-navigation-container {
		height: initial;
		min-height: calc(100vh - 130px);
		opacity: 1;
		transition: opacity 0.5s, height 0s, min-height 0s;
	}
	#main-navigation-container #menu-primary-menu {
		padding: 50px 20px 30px;
		flex-direction: column;
		text-align: center;
	}
	#main-navigation-container #menu-primary-menu li a {
		position: relative;
		display: inline-block;
		margin: 25px 0;
	}
	#main-navigation-container #menu-primary-menu li + li > a:before {
		content: '';
		position: absolute;
		top: -25px;
		left: 50%;
		width: 92px;
		height: 1px;
		background-color: white;
		transform: translate(-50%, 0);
		pointer-events: none;
	}
	
	.close-button {
		right: 20px;
	}

	#menu-primary-menu .sub-menu-wrapper {
		top: 0;
	}

}

/* Product icons */
.product-icon img + img {
    opacity: 0;
    transition: opacity .5s;
}

a:hover .product-icon img + img {
    opacity: 1;
}

/* Header */
@media (max-width: 575px) {
	#header {
		height: 115px;
	}
}

/* Footer */
#footer {
	position: relative;
	overflow: hidden;
}

#footer:before,
#footer:after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 470px;
	height: 440px;
	background-image: url(images/oil.jpg);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
    z-index: -1;
}


#footer:before {
	right: 50%;
	transform: translate(-15%, 50%) rotate(-113deg);
}
#footer:after {
	left: 50%;
	transform: translate(0, 57%) rotate(-157deg);
}
@media (min-width: 1281px) {
	#footer:before {
		right: unset;
		left: 150px;
	}

	#footer:after {
		left: unset;
		right: 150px;
	}
}

@media (max-width: 575px) {
	#footer:before {
		left: 30%;
		right: unset;
		bottom: 100px;
	}

	#footer:after {
		opacity: 0;
	}
}

.footer-privacy-policy-button {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}


/* Page */
.page-top-container {
	position: relative;
	min-height: 180px;
}
.page-top-container:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: #045D5D;
	opacity: 0.73;
}

@media (min-width: 1200px) {
	.page-top-container {
		min-height: 280px;
	}
}

.top-line-rotated {
	position: relative;
}

.top-line-rotated:before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	height: 50px;
	border: 1px solid #F8D22E;
	transform: translate(0, -50%);
	z-index: 1;
}

.bottom-line {
	position: relative;
}

.bottom-line:after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 43px;
	border: 1px solid #F8D22E;
}

.text-content h1,
.text-content h2,
.text-content h3,
.text-content h4,
.text-content h5,
.text-content h6 {
	color: #045D5D;
	font-weight: 600;
}

.text-content h1 {
	font-size: 35px;
}
.text-content h2 {
	font-size: 21px;
}
.text-content h3 {
	font-size: 18px;
}
.text-content h4 {
	font-size: 16px;
}

.text-content a {
    color: #045D5D;
    text-decoration: underline;
}

.text-gray {
	color: #585858;
}

/* Contact */
#contact-map > iframe {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	border-radius: 10px;
}

/* 404 */
.page-not-found {
	background: url('images/404.jpg') center top;
	background-size: cover;
    position: relative;
}

.page-not-found:before {
    content: '';
    display: block;
    background: #48aab2b3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}