/*
Theme Name: nordnes
Theme URI: http://www.osberget.no/
Author: Magne Grimstad at Osberget AS, Maxim Kukulinsky at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: nordnes Wordpress theme
Version: 1.1.4
Tags: nordnes osberget rasamax
Text Domain: nordnes
*/
/**
 * Reset CSS instead of Normalize inside of Bootstrap
 */

/* Page commons */
html {
	/* Smooth scrolling */
	scroll-behavior: smooth;
}

body {
	font-family: 'Roboto', sans-serif;
	font-size: 20px;
	font-weight: 300;
}

* > p:first-child {
	margin-top: 0;
}

* > p:last-child {
	margin-bottom: 0;
}

/* Page stretch to 100% screen height */
main {
	min-height: calc(100vh - 340px - 209px);
}

body.admin-bar main {
	min-height: calc(100vh - 340px - 209px - 32px);
}

/* General text styles */
.regular-text {
	color: #636466;
	font-family: 'Roboto', sans-serif;
	font-size: 20px;
	font-style: normal;
	font-weight: 300;
}

.small-text {
	font-size: 18px;
}

.big-heading {
	font-family: 'Montserrat', sans-serif;
	font-size: 40px;
	text-transform: uppercase;
	margin: 0;
}

.medium-heading {
	font-size: 40px;
	font-style: italic;
	font-weight: 400;
	margin: 0;
}

.small-heading,
.menu-item {
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
}

@media (max-width: 1199px) {
	.big-heading {
		font-size: 30px;
	}

	.big-heading.heading-underline {
		padding-bottom: 30px;
	}

	.big-heading.heading-underline span:after {
		bottom: -30px;
	}

	.medium-heading {
		font-size: 25px;
	}
}

.big-heading a,
.medium-heading a,
.small-heading a {
	color: inherit;
}

.font-weight-medium {
	font-weight: 500 !important;
}

.alignleft {
	float: left;
	margin: 0 20px 10px 0;
}

.alignright {
	float: right;
	margin: 0 0 10px 20px;
}

.aligncenter {
	margin: 0 auto 10px auto;
	display: block;
}

.bg-cover {
	background: center no-repeat;
	background-size: cover;
}

.bg-contain {
	background: center no-repeat;
	background-size: contain;
}

/* Fixed aspect ratio images */
.fixed-aspect-ratio-image {
	display: block !important;
	padding-top: 100%;
	background: center no-repeat;
	background-size: cover;
}

.fixed-aspect-ratio-image.r-50 {
	padding-top: 50%;
}

.fixed-aspect-ratio-image.r-60 {
	padding-top: 60%;
}

.fixed-aspect-ratio-image.r-67 {
	padding-top: 67%;
}

.fixed-aspect-ratio-image.r-75 {
	padding-top: 75%;
}

.fixed-aspect-ratio-image.r-83 {
	padding-top: 83%;
}

#go-to-top {
	position: fixed;
	width: 64px;
	right: 20px;
	bottom: 20px;
	opacity: 0;
	max-width: 0;
	transition: opacity .5s, max-width .0s .5s;
	z-index: 3;
}

#go-to-top.visible {
	opacity: 1;
	max-width: 64px;
	transition: opacity .5s, max-width .0s;
}

.accessibility-hidden {
	display: block;
	width: 0;
	height: 0;
	overflow: hidden;
	padding: 0;
	margin: 0;
}

.position-cover {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.button {
	display: inline-block;
	padding: 10px 30px;
	font-size: 18px;
	font-weight: 400;
	text-transform: uppercase;
	border: none;
}


.button-arrow {
	position: relative;
	padding-right: 45px;
}

.button-arrow:before {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 9px solid white;
	top: 16px;
	right: 20px;
}

.cursor-pointer {
	cursor: pointer;
}


/* Header */
.sticky-header-menu {
	border-bottom: 5px solid var(--dark-blue);
}

header.sticky {
	padding-bottom: 127px;
}

.sticky-header-menu {
	position: relative;
}

header.sticky .sticky-header-menu {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 200;
}

@media(max-width: 1199px) {
	header.sticky {
		padding-bottom: 60px;
	}
}

.social-icons img {
	width: 26px;
}

.social-icons {
	margin-right: 5px;
}

/* Admin menu */
@media (min-width: 601px) {
	body.admin-bar header.sticky .sticky-header-menu {
		top: 46px;
	}
}

@media (min-width: 783px) {
	body.admin-bar header.sticky .sticky-header-menu {
		top: 32px;
	}
}


/* Header */
@media (min-width: 1200px) {
	.menu-container {
		display: flex;
	}

	.header-menu {
		padding-bottom: 17px;
		border-bottom: 3px solid #e7e7e8;
	}

	.header-menu-side {
		min-width: 200px;
		width: 16%;
	}

	.secondary-menu-container {
		display: flex;
	}

	.header-anchor-link {
		padding: 8px 10px;
		color: var(--dark-blue);
		text-transform: uppercase;
		-webkit-transition: color .5s;
		-moz-transition: color .5s;
		transition: color .5s;
	}

	.header-anchor-link:hover {
		color: var(--light);
	}
}

@media (max-width: 1399px) {
	.md-hide {
		display: none;
	}
}

@media (max-width: 1199px) {
	.header-logo img {
		width: 150px;
	}

	.header-menu {
		border-top: 3px solid #e7e7e8;
	}

	.secondary-menu-container {
		display: none;
	}
}



/* Menu */
.menu-item {
	display: block;
	padding-right: 3px;
}

.menu-item a {
	position: relative;
	text-transform: uppercase;
}

@media (min-width: 1200px) {    /* Desktop */
	.menu-button-container {
		display: none;
	}

	.menu-item a {
		display: block;
		padding: 16px 20px;
		color: var(--light);
		-webkit-transition: background-color .5s,color .5s;
		-moz-transition: background-color .5s,color .5s;
		transition: background-color .5s,color .5s;
	}

	.menu-item a:after {
		content: "";
		position: absolute;
		bottom: -20px;
		width: 100%;
		left: 0;
		height: 3px;
		background-color: transparent;
		-webkit-transition: background-color .5s;
		-moz-transition: background-color .5s;
		transition: background-color .5s;
	}

	.current-menu-item a,
	.menu-item a:hover {
		color: white;
		background-color: var(--dark-blue);
	}

	.current-menu-item a:after,
	.menu-item a:hover:after {
		background-color: var(--dark-blue);
	}

	.submenu-expand-button,
	.sub-menu {
		display: none;
	}
}

@media (max-width: 1199px) {    /* Mobile */
	#menu-button {
		position: relative;
		display: inline-block;
		vertical-align: top;
		width: 27px;
		height: 26px;
		margin-bottom: 0;
	}

	#menu-button > div {
		height: 4px;
		margin-top: 6px;
		background: var(--dark-blue);
		-webkit-transition: -webkit-transform .5s .2s;
		-moz-transition: -moz-transform .5s .2s;
		-ms-transition: -ms-transform .5s .2s;
		-o-transition: -o-transform .5s .2s;
		transition: transform .5s .2s;
	}

	#menu-button > div:nth-child(1) {
		margin-top: 1px;
	}

	#menu-checkbox {
		width: 0;
		height: 0;
		margin: 0;
		overflow: hidden;
		border-color: transparent;
		background: 0 0;
		color: transparent;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
	}

	#menu-checkbox:checked ~ .menu-button-container #menu-button > div:nth-child(1) {
		-moz-transform: translateX(0px) translateY(10px) rotate(45deg);
		-webkit-transform: translateX(0px) translateY(10px) rotate(45deg);
		-o-transform: translateX(0px) translateY(10px) rotate(45deg);
		-ms-transform: translateX(0px) translateY(10px) rotate(45deg);
		transform: translate(0,10px) rotate(45deg);
	}

	#menu-checkbox:checked ~ .menu-button-container #menu-button > div:nth-child(2) {
		-moz-transform: scale(0,0);
		-webkit-transform: scale(0,0);
		-o-transform: scale(0,0);
		-ms-transform: scale(0,0);
		transform: scale(0,0);
	}

	#menu-checkbox:checked ~ .menu-button-container #menu-button > div:nth-child(3) {
		-moz-transform: translateX(0px) translateY(-10px) rotate(-45deg);
		-webkit-transform: translateX(0px) translateY(-10px) rotate(-45deg);
		-o-transform: translateX(0px) translateY(-10px) rotate(-45deg);
		-ms-transform: translateX(0px) translateY(-10px) rotate(-45deg);
		transform: translate(0,-10px) rotate(-45deg);
	}

	#main-navigation-container {
		position: absolute;
		background: var(--dark-blue);
		width: 100%;
		max-height: 0;
		top: 100%;
		left: 0;
		overflow: hidden;
		-webkit-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		-moz-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		-ms-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		z-index: 100;
	}

	.primary-menu-wrapper {
		height: max-content;
		max-height: calc(100vh - 63px);
		overflow: auto;
	}

	.primary-menu {
		display: block;
	}

	#menu-checkbox:checked ~ #main-navigation-container {
		max-height: 2000px;
		-webkit-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
		-moz-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
		-ms-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
		transition: max-height .5s cubic-bezier(1, 0, 1, 0);
	}

	.menu-item a {
		display: inline-block;
		color: white;
		padding: 12px 15px;
		font-size: 16px;
		line-height: 20px;
	}

	.menu-item.current-menu-item > a {
		text-decoration: underline;
	}

	.sub-menu > a {
		display: block;
		color: var(--light-blue);
		padding-left: 60px;
	}

	/* Submenu */
	.submenu-expand-button {
		display: block;
		position: absolute;
		top: 8px;
		right: 15px;
		height: 24px;
		width: 24px;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		border: none;
		border-color: transparent;
		background: 0 0;
		color: transparent;
		-webkit-transition: background-color .5s;
		-moz-transition: background-color .5s;
		transition: background-color .5s;
		outline: 0;
		cursor: pointer;
	}

	.submenu-expand-button:before,
	.submenu-expand-button:after {
		content: "";
		display: block;
		position: absolute;
		top: 50%;
		right: 50%;
		height: 4px;
		width: 22px;
		background: var(--light-blue);
		-webkit-transition: -webkit-transform .5s;
		-moz-transition: -moz-transform .5s;
		-ms-transition: -ms-transform .5s;
		-o-transition: -o-transform .5s;
		transition: transform .5s;
	}

	.submenu-expand-button:before {
		-moz-transform: rotate(90deg);
		-webkit-transform: rotate(90deg);
		-o-transform: rotate(90deg);
		-ms-transform: rotate(90deg);
		transform: rotate(90deg);
	}

	.submenu-expand-button:checked:before {
		-moz-transform: rotate(0deg);
		-webkit-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		transform: rotate(0deg);
	}


	.sub-menu {
		width: 100%;
		max-height: 0;
		height: 100%;
		overflow: hidden;
		-webkit-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		-moz-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		-ms-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		transition: max-height .5s cubic-bezier(0, 1, 0, 1);
	}

	.submenu-expand-button:checked ~ .sub-menu {
		max-height: 1000px;
		-webkit-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
		-moz-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
		-ms-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
		transition: max-height .5s cubic-bezier(1, 0, 1, 0);
	}
}



/* Language swither */
.lang-item {
	color: var(--light);
	text-transform: uppercase;
}

.lang-item.current-lang {
	color: var(--dark-blue);
}


/* Search */
#searchform {
	position: relative;
	font-size: 18px;
	padding: 7px 0;
}

#search {
	border: 0;
	background-color: #eee;
	padding-left: 10px;
	width: 200px;
}

#searchsubmit {
	position: absolute;
	top: 7px;
	right: 0px;
	width: 30px;
	height: 30px;
	border: none;
	padding: 0;
	color: transparent;
	background: url(images/search_icon.png) center no-repeat;
	cursor: pointer;
	-webkit-appearance: none;
}

#search:focus,
#searchsubmit:focus {
	outline: 0;
}

.search-results-text {
	font-size: 14px;
}

.search-results-text strong {
	color: black;
}


/* Front page */
.front-page-top-image {
	height: 400px;
}

.heading-underline {
	padding-bottom: 40px;
}

.heading-underline span {
	position: relative;
}

.heading-underline span:after {
	content: '';
	position: absolute;
	display: block;
	bottom: -40px;
	left: 0;
	width: 100%;
	height: 3px;
	border-bottom: 3px solid var(--dark-blue);
}

.heading-underline.text-white span:after {
	border-color: white;
}

.fixed-aspect-ratio-image > .button {
	position: absolute;
	bottom: 0;
	right: 0;
}



/* Slider */
.slider-wrapper .bx-pager {
	position: absolute;
	bottom: -30px;
	width: 100%
}

.slider-wrapper .bx-pager {
	text-align: center;
	font-size: .85em;
	font-family: Arial;
	font-weight: 700;
	color: #666;
}


.slider-wrapper .bx-pager.bx-default-pager a {
	background: #c7c8ca;
	text-indent: -9999px;
	display: block;
	width: 16px;
	height: 16px;
	margin: 0 5px;
	outline: 0;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px
}

.slider-wrapper .bx-pager.bx-default-pager a.active,
.slider-wrapper .bx-pager.bx-default-pager a:focus,
.slider-wrapper .bx-pager.bx-default-pager a:hover {
	background: #636466;
}

.slider-wrapper .bx-controls-auto .bx-controls-auto-item,
.slider-wrapper .bx-pager-item {
	display: inline-block;
	vertical-align: bottom
}

.slider-wrapper .bx-pager-item {
	font-size: 0;
	line-height: 0
}



/* Text slider */
.inset-shadow {
	-webkit-box-shadow: inset -2px -13px 29px -25px rgba(61,61,61,1);
	-moz-box-shadow: inset -2px -13px 29px -25px rgba(61,61,61,1);
	box-shadow: inset -2px -13px 29px -25px rgba(61,61,61,1);
}

.text-slide {
	min-height: 300px;
}

@media (max-width: 1199px) {
	.text-slide {
		min-height: 100px;
	}
}

/* Gallery slider */
.gallery-slide {
	height: 600px;
}

.gallery-slider-wrapper .bx-pager {
	bottom: -65px;
}

.gallery-slider-wrapper .bx-controls-direction a {
	position: absolute;
	top: 0;
	width: 240px;
	height: 100%;
	background: rgba(255,255,255,0.4);
	opacity: 0;
	outline: 0;
	text-indent: -9999px;
	z-index: 99;
	-webkit-transition: opacity 0.5s;
	-moz-transition: opacity 0.5s;
	transition: opacity 0.5s;
}

.gallery-slider-wrapper:hover .bx-controls-direction a {
	opacity: 1;
}

.gallery-slider-wrapper .bx-controls-direction a.disabled {
	display: none
}

.gallery-slider-wrapper .bx-prev {
	left: 0;
}

.gallery-slider-wrapper .bx-next {
	right: 0;
}

.gallery-slider-wrapper .bx-prev:before,
.gallery-slider-wrapper .bx-next:before {
	content: '';
	display: inline-block;
	position: absolute;
	width: 28px;
	height: 28px;
	top: 50%;
	-webkit-transform: rotate(45deg) translateY(-50%);
	-moz-transform: rotate(45deg) translateY(-50%);
	-o-transform: rotate(45deg) translateY(-50%);
	transform: rotate(45deg);
	background: none;
}

.gallery-slider-wrapper .bx-prev:before {
	left: 100px;
	border-bottom: 4px solid #636466;
	border-left: 4px solid #636466;
}

.gallery-slider-wrapper .bx-next:before {
	right: 100px;
	border-top: 4px solid #636466;
	border-right: 4px solid #636466;
}

@media (max-width: 1199px) {
	.gallery-slide {
		height: 400px;
	}

	.gallery-slider-wrapper .bx-prev,
	.gallery-slider-wrapper .bx-next {
		display: none;
	}
}

@media (max-width: 414px) {
	.gallery-slide {
		height: 200px;
	}

	.gallery-slider-wrapper .bx-pager {
		bottom: -35px;
	}
}

/* Page */
.section-bg-color:nth-child(2n) {
	background-color: #f7f8f8;
}

.post-content p {
	line-height: initial;
}

.post-content strong {
	font-weight: 500;
}

.post-content h3 {
	font-size: inherit;
	margin-top: 45px;
	font-weight: 500;
	color: var(--dark-blue);
}

.post-content img {
	max-width: 100%;
	height: auto;
}

.post-content.ingress {
	font-size: 26px;
}

@media (max-width: 1199px) {
	.post-content.text {
		font-size: 16px;
	}

	.post-content.ingress {
		font-size: 22px;
	}

	.post-content h3 {
		margin: 15px 0;
	}

}

.item-description {
	opacity: 0;
	-webkit-transition: opacity 0.5s;
	-moz-transition: opacity 0.5s;
	transition: opacity 0.5s;
}

.item-element:hover .item-description {
	opacity: 1;
}

.item-title {
	position: relative;
	padding: 20px 10px 10px;
}

.item-title:before {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-bottom: 9px solid white;
	top: 9px;
	left: 50%;
	-webkit-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
	-o-transform: translateX(-50%);
	transform: translateX(-50%);
}

/* Contacts */
#contacts-map {
	height: 600px;
}


@media (max-width: 1199px) {
	#contacts-map {
		height: 300px;
	}
}

/* Form */
.application-form input:not([type="file"]), 
.application-form textarea, 
.application-form select, 
.application-form input:not([type="file"]):focus, 
.application-form textarea:focus, 
.application-form select:focus {
	color: var(--light-blue);
}

.wpcf7-submit {
	padding-top: 2px;
	padding-bottom: 2px;
}

.accept-policy-checkbox > * {
	display: flex !important;
	flex-wrap: nowrap;
	justify-content: space-between;
	margin: 0 !important;
}

.accept-policy-checkbox input[type="checkbox"],
.wpcf7-form-control.wpcf7-acceptance input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 36px;
	min-width: 36px;
	height: 36px;
	background-color: white;
	border: none;
	margin-left: 20px;
	cursor: pointer;
}

.accept-policy-checkbox input[type="checkbox"]:focus,
.wpcf7-form-control.wpcf7-acceptance input[type="checkbox"]:focus {
	outline: none;
}

.accept-policy-checkbox input[type="checkbox"]:checked,
.wpcf7-form-control.wpcf7-acceptance input[type="checkbox"]:checked {
	background-image: url(/wp-content/themes/nordnes/images/checkbox_checked_bg.jpg);
	background-position: center;
	background-repeat: no-repeat;
}

.wpcf7-form-control.wpcf7-acceptance input[type="checkbox"] {
	float: right;
}

.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item {
	margin-left: 0;
}

label.file-upload-button {
	padding: 0 30px;
	color: white;
	background: var(--dark-blue);
	text-transform: uppercase;
	cursor: pointer;
	margin-bottom: 0;
}

#cv-file-upload::-webkit-file-upload-button,
#cert-file-upload::-webkit-file-upload-button {
	-webkit-appearance: none;
	background: transparent;
	border: none;
	width: 0;
	height: 0;
	padding: 0;
	margin: 0;
}

/* Hide Google reCaptcha after 1s */
@keyframes hide_after_1s {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(100px);
	}
}

.grecaptcha-badge {
	animation-name: hide_after_1s;
	animation-delay: 3s;
	animation-duration: 1s;
	animation-fill-mode: forwards;
}