/*
Theme Name: Helgeland Betong
Author: Mementor AS
Author URI: https://www.mementor.no/
*/

/* Tokens (se DESIGN.md) */
:root {
	--rana-steel-blue: #3b6e8f;
	--carbon-black: #111;
	--charcoal: #222;
	--graphite-ink: #444;
	--slate-body: #666;
	--ash-grey: #aaa;
	--field-grey: #ccc;
	--joint-grey: #ddd;
	--mist-grey: #eee;
	--chalk: #f9f9f9;
	--white: #fff;
	--signal-red: #f44336;
	--panel-band: rgba(255, 255, 255, 0.7);
	--panel-reading: rgba(255, 255, 255, 0.9);
	--scrim-rest: rgba(17, 17, 17, 0.3);
	--scrim-caption: rgba(17, 17, 17, 0.72);
	--scrim-mobile-hero: rgba(17, 17, 17, 0.5);
	--ease-standard: all 0.3s ease;
}


/* Generelt */
html, body, h1, h2, h3, h4, h5, h6, span, ol, ul, li, p {
	margin: 0;
	padding: 0;
}
body {
	background: var(--white);
	color: var(--slate-body);
	font-family: 'pragmatica-web', sans-serif;
	font-size: 14px;
	font-weight: 400;
	height: 100%;
	line-height: 26px;
}
iframe, img {
	border: 0;
}
::selection {
	background-color: var(--rana-steel-blue);
	color: var(--chalk);
}
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--rana-steel-blue);
	outline-offset: 2px;
}
#undermeny :focus-visible,
#page-banner :focus-visible,
#banner :focus-visible,
footer :focus-visible,
.mm-menu :focus-visible,
#referanser .media a:focus-visible {
	outline: 2px solid var(--chalk);
}
#referanser .media a:focus-visible {
	outline-offset: -4px;
}
main:focus {
	outline: none;
}
.skip-link {
	background: var(--carbon-black);
	color: var(--chalk);
	left: 23px;
	padding: 12px 20px;
	position: absolute;
	top: -100px;
	z-index: 1000;
}
.skip-link:focus {
	color: var(--chalk);
	top: 12px;
}
ul li, ol {
	list-style: none;
}
ol li {
	counter-increment: step-counter;
	padding: 4px 0;
}
ol li:before {
	background-color: var(--chalk);
	border-radius: 2px;
	content: counter(step-counter);
	display: inline-block;
	font-size: 12px;
	margin-right: 12px;
	padding: 2px 6px;
	text-align: center;
	width: 25px;
}
.row {
	margin: 0 -23px;
}
.col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9,
.col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9 {
	padding-left: 23px;
	padding-right: 23px;
}
.col-sm-2-5 {
	float: left;
	width: 20%;
}
.no-margin {
	margin: 0 !important;
}
.mt-16 {
	margin-top: 16px;
}
.background {
	background-image: url('/wp-content/themes/helgeland/img/concrete4.jpg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	height: 100%;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: -1;
}
.easy-table {
	margin: 0 !important;
}
@media only screen and (max-width: 1199px) {
	.container {
		width: calc(100% - 46px);
		margin: 0 23px;
		padding: 0;
	}
}
@media only screen and (max-width: 1100px) {
	.col-sm-2-5 {
		width: 25%;
	}
}
@media only screen and (max-width: 991px) {
	.col-sm-2-5 {
		width: 33.3%;
	}
}
@media only screen and (max-width: 769px) {
	.col-sm-2-5 {
		width: 50%;
	}
}
@media only screen and (max-width: 540px) {
	.col-sm-2-5 {
		width: 100%;
	}
}

/* Skrift */
a {
	color: var(--rana-steel-blue);
	text-decoration: none;
	transition: var(--ease-standard);
}
a:hover, a:active, a:focus {
	color: var(--graphite-ink);
	text-decoration: none;
}
h1, h2, h3, h4 {
	color: var(--graphite-ink);
	font-weight: 300;
}
h1, h2 {
	font-size: 40px;
	line-height: 40px;
}
h3 {
	font-size: 24px;
	line-height: 32px;
	margin-bottom: 30px;
}
h4 {
	font-size: 18px;
	line-height: 24px;
	margin-bottom: 20px;
}
h1 a, h2 a, h3 a, h4 a {
	color: var(--graphite-ink);
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover {
	color: var(--rana-steel-blue);
}
blockquote {
	border: 0px;
	background: var(--mist-grey);
	display: inline-block;
	font-size: 14px;
	line-height: 26px;
	margin: 0 0 35px;
	padding: 30px 30px 20px;
}
@media only screen and (max-width: 769px) {
	h1, h2 {
		font-size: 28px;
		line-height: 34px;
	}
	h3 {
		font-size: 24px;
		line-height: 32px;
		margin-bottom: 30px;
	}
}

/* Knapper */
.button, input[type="submit"] {
	background-color: var(--rana-steel-blue);
	border: 0;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	-khtml-border-radius: 2px;
	border-radius: 2px;
	color: var(--chalk);
	cursor: pointer;
	display: inline-block;
	font-size: 16px;
	line-height: 20px;
	padding: 15px 24px;
	transition: var(--ease-standard);
}
.button.light {
	background-color: var(--chalk);
	color: var(--graphite-ink);
}
.button:hover, input[type="submit"]:hover {
	color: var(--chalk);
	background-color: var(--carbon-black);
}
.button i {
	margin-right: 5px;
}
@media only screen and (max-width: 540px) {
	.button {
		font-size: 14px;
		padding: 14px 20px;
	}
	.button i {
		display: none;
	}
}

/* Skjemaer */
input[type="text"],
input[type="email"],
textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--field-grey);
	border-radius: 2px;
	color: var(--graphite-ink);
	float: left;
	line-height: 35px;
	margin-bottom: 15px;
	padding: 0 12px;
	width: 100%;
	-webkit-box-shadow: 0 0 0px 1000px white inset;
}
input[type="submit"] {
	margin-top: 15px;
}
textarea {
	height: 150px;
}
input[type="text"]:hover, input[type="text"]:focus,
textarea:hover, textarea:focus {
	border-color: var(--ash-grey);
}
.frm_forms {
	margin-top: 8px;
}
.frm_forms label {
	display: none;
}
.frm_forms .frm_error_style {
	color: var(--signal-red);
	margin: -8px 0 25px;
}
.frm_forms .frm_blank_field input,
.frm_forms .frm_blank_field input:hover,
.frm_forms .frm_blank_field input:focus,
.frm_forms .frm_blank_field textarea,
.frm_forms .frm_blank_field textarea:hover,
.frm_forms .frm_blank_field textarea:focus {
	border-color: var(--signal-red);
}
.frm_forms .frm_error,
.frm_forms .frm_hidden,
.frm_forms .frm_ajax_loading {
	display: none;
}
.frm_forms .frm_ajax_loading {
	margin-left: 12px;
}
.frm_forms .frm_ajax_loading.frm_loading_now {
	display: inline-block;
}

/* Header */
header {
	background: var(--panel-band);
}
header .navbar {
	border: 0;
	height: 100px;
	margin: 0;
}
header .navbar-right {
	margin-right: 0;
}
header .navbar-nav > li > a {
	border-left: 1px solid var(--joint-grey);
	color: var(--charcoal);
	height: 60px;
	line-height: 25px;
	margin: 20px 0;
	padding: 5px 35px;
	text-align: center;
}
header .navbar-nav > li > a:hover,
header .navbar-nav > li > a:focus {
	background-color: transparent;
	color: var(--rana-steel-blue);
}
header .navbar-nav > li:last-child > a {
	border-right: 1px solid var(--joint-grey);
}
header .navbar-nav > li.current-menu-item > a,
#menu-hovedmeny > li:last-child > a {
	color: var(--rana-steel-blue);
}
header .logo {
	background-image: url('/wp-content/themes/helgeland/img/logo@2x.png');
	background-position: left center;
	background-repeat: no-repeat;
	background-size: 140px 60px;
	color: var(--charcoal);
	display: inline-block;
	font-size: 24px;
	height: 100px;
	margin: 0;
	padding: 0;
	width: 140px;
}
header .toggle {
	color: var(--carbon-black);
	display: none;
	font-size: 18px;
	height: 100px;
	left: 0;
	line-height: 100px;
	padding: 0 23px;
	position: absolute;
	top: 0;
	z-index: 2;
}
@media only screen and (max-width: 991px) {
	header .navbar {
		text-align: center;
	}
	header .navbar .navbar-brand {
		background-position: center center;
		float: none;
	}
	header .toggle {
		display: inline-block;
	}
	#menu-hovedmeny {
		display: none;
	}
}

/* Undermeny */
#undermeny {
	background: var(--carbon-black);
	height: 45px;
}
#undermeny .navbar {
	border: 0;
	margin: 0 0 0 -25px;
}
#undermeny .navbar-nav > li > a {
	color: var(--mist-grey);
	font-weight: 300;
	line-height: 45px;
	padding: 0 25px;
}
#undermeny .navbar-nav > li > a:hover,
#undermeny .navbar-nav > li > a:focus {
	color: var(--rana-steel-blue);
	background-color: transparent;
}
@media only screen and (max-width: 991px) {
	#undermeny {
		display: none;
	}
}

/* Mobilmeny */
.mm-menu {
	background: var(--carbon-black);
	border-color: var(--charcoal);
	color: var(--mist-grey);
}
.mm-menu .mm-navbar a, .mm-menu .mm-navbar > * {
	color: var(--mist-grey);
}
.mm-navbar {
	height: 101px;
	margin: 0 20px;
}
.mm-panels > .mm-panel > .mm-listview:first-child,
.mm-panels > .mm-panel > .mm-navbar + .mm-listview {
	margin-top: 41px;
}
.mm-menu .mm-listview {
	border-color: var(--charcoal);
}
.mm-title {
	line-height: 80px;
}
.mm-listview .mm-next::before {
	display: none;
}
.mm-menu .mm-listview > li .mm-arrow::after,
.mm-menu .mm-listview > li .mm-next::after,
.mm-menu .mm-btn::after,
.mm-menu .mm-btn::before {
	border-color: var(--mist-grey);
}
.mm-listview > li > a, .mm-listview > li > span {
	padding: 12px 10px 12px 20px;
}
.mm-listview > li:not(.mm-divider)::after {
	right: 20px;
}
.mm-navbar .mm-btn:first-child {
	height: 100px;
	margin-left: -20px;
}

/* Banner */
#banner {
	background-image: url('/wp-content/themes/helgeland/img/bg.jpg');
	background-color: var(--mist-grey);
	background-size: cover;
	background-position: center center;
	border-bottom: 1px solid var(--joint-grey);
	height: 650px;
	position: relative;
}
#banner::before {
	background: linear-gradient(90deg, rgba(17, 17, 17, 0.66) 0%, rgba(17, 17, 17, 0.52) 55%, rgba(17, 17, 17, 0.1) 85%, rgba(17, 17, 17, 0) 100%);
	content: "";
	inset: 0;
	position: absolute;
}
#banner .container {
	position: relative;
}
#banner h1 {
	color: var(--chalk);
	font-size: 50px;
	line-height: 50px;
	margin-bottom: 40px;
	margin-top: 110px;
}
#banner p {
	color: var(--chalk);
	font-size: 20px;
	line-height: 30px;
	margin-bottom: 50px;
	max-width: 540px;
}
#banner .button {
	margin-right: 16px;
}
@media only screen and (max-width: 991px) {
	#banner p {
		max-width: 420px;
	}
}
@media only screen and (max-width: 769px) {
	#banner::before {
		display: none;
	}
	#banner .container {
		background-color: var(--scrim-mobile-hero);
		height: 100%;
		margin: 0;
		padding: 0 50px;
		text-align: center;
		width: 100%;
	}
	#banner p {
		max-width: none;
	}
}
@media only screen and (max-width: 540px) {
	#banner {
		height: auto;
	}
	#banner .container {
		padding: 35px 23px 50px;
	}
	#banner h1 {
		font-size: 32px;
		margin: 0 0 25px;
	}
	#banner p {
		font-size: 16px;
		line-height: 26px;
	}
}

/* Tjenester */
#tjenester {
	background: var(--panel-band);
	padding: 100px 0 50px;
	text-align: center;
}
#tjenester span {
	color: var(--rana-steel-blue);
	display: block;
	margin-bottom: 10px;
	text-transform: uppercase;
}
#tjenester h2 {
	margin-bottom: 60px;
}
#tjenester .col-sm-6 {
	margin-bottom: 50px;
}
#tjenester article .logo-link {
	display: inline-block;
	margin-bottom: 23px;
	padding: 6px 12px;
}
#tjenester article img {
	height: auto;
	width: 150px;
}
#tjenester article i {
	border: 2px solid var(--rana-steel-blue);
	-moz-border-radius: 1000px;
	-webkit-border-radius: 1000px;
	-khtml-border-radius: 1000px;
	border-radius: 1000px;
	color: var(--rana-steel-blue);
	font-size: 24px;
	height: 60px;
	line-height: 55px;
	margin-bottom: 25px;
	width: 60px;
	transition: var(--ease-standard);
}
#tjenester article:hover i {
	background-color: var(--rana-steel-blue);
	color: var(--chalk);
}
@media only screen and (max-width: 769px) {
	#tjenester {
		padding: 50px 0 0;
	}
	#tjenester h2 {
		margin-bottom: 35px;
	}
}

/* Referanser */
#referanser {
	background: var(--mist-grey);
	border-top: 1px solid var(--joint-grey);
	padding: 100px 0;
	text-align: center;
}
#referanser span {
	color: var(--rana-steel-blue);
	display: block;
	margin-bottom: 10px;
	text-transform: uppercase;
}
#referanser h2 {
	margin-bottom: 60px;
}
#referanser .slick-list {
	margin-bottom: 35px;
}
#referanser .media {
	position: relative;
	height: 280px;
}
#referanser .media .image {
	background-color: var(--mist-grey);
	display: block;
	height: 280px;
	object-fit: cover;
	width: 100%;
}
#referanser .media .overlay {
	height: 100%;
	position: absolute;
	z-index: 1;
	text-align: center;
	width: 100%;
	transition: var(--ease-standard);
}
#referanser .media .overlay p {
	bottom: 0;
	background: var(--scrim-caption);
	color: var(--chalk);
	line-height: 25px;
	padding: 10px 25px;
	position: absolute;
	text-align: left;
	width: 100%;
	transition: var(--ease-standard);
}
#referanser .media .overlay p span {
	color: var(--chalk);
	display: none;
	margin-bottom: 0;
}
#referanser .media .overlay i {
	color: var(--white);
	font-size: 40px;
	height: 50px;
	left: 50%;
	margin-left: -25px;
	margin-top: -25px;
	opacity: 0;
	position: absolute;
	top: 40%;
	width: 50px;
	transition: var(--ease-standard);
}
#referanser .media img {
	height: auto;
	width: 100%;
}
#referanser .slick-focus .media .overlay {
	background: var(--scrim-rest);
}
#referanser .slick-focus .media .overlay p {
	background: var(--rana-steel-blue);
	padding: 20px 25px 20px;
}
#referanser .slick-focus .media .overlay p span {
	display: block;
	font-style: oblique;
	text-transform: none;
}
#referanser .slick-focus .media .overlay i {
	opacity: 1;
}
#referanser .slider-controls {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 15px;
}
#referanser .slick-prev,
#referanser .slick-next,
#referanser .slider-pause {
	background: none;
	border: 0;
	border-radius: 2px;
	color: var(--rana-steel-blue);
	cursor: pointer;
	height: 48px;
	line-height: 1;
	min-width: 48px;
	padding: 0;
	transition: var(--ease-standard);
}
#referanser .slick-prev,
#referanser .slick-next {
	font-size: 40px;
}
#referanser .slider-pause {
	font-size: 20px;
}
#referanser .slick-prev:hover,
#referanser .slick-next:hover,
#referanser .slider-pause:hover {
	color: var(--graphite-ink);
}
@media only screen and (max-width: 769px) {
	#referanser {
		padding: 50px 0;
	}
	#referanser h2 {
		margin-bottom: 35px;
	}
	#referanser .slick-list {
		margin-bottom: 23px;
	}
	#referanser .media,
	#referanser .media .image {
		height: 350px;
	}
}
@media only screen and (max-width: 540px) {
	#referanser .media,
	#referanser .media .image {
		height: 250px;
	}
}

/* Action */
#action {
	background-color: var(--rana-steel-blue);
	color: var(--chalk);
	padding: 50px 0;
}
#action p {
	display: inline-block;
	font-size: 24px;
	line-height: 45px;
}
@media only screen and (max-width: 991px) {
	#action .col-sm-6 {
		text-align: center;
	}
	#action .button {
		margin-top: 25px;
	}
}

/* Side banner */
#page-banner {
	background-color: var(--rana-steel-blue);
	background-image: url("/wp-content/themes/helgeland/img/page-banner.jpg");
	background-size: cover;
	color: var(--chalk);
}
#page-banner h1 {
	color: var(--chalk);
	margin: 35px 0 15px;
}
#page-banner p {
	margin-bottom: 35px;
}
#page-banner a {
	color: var(--chalk);
}
#page-banner i {
	margin: 0 10px;
}

/* Sider */
#page {
	padding: 50px 0 35px;
}
#page .col-md-1, #page .col-md-10, #page .col-md-11, #page .col-md-12, #page .col-md-2, #page .col-md-3, #page .col-md-4, #page .col-md-5, #page .col-md-6, #page .col-md-7, #page .col-md-8, #page .col-md-9, #page .col-sm-1, #page .col-sm-10, #page .col-sm-11, #page .col-sm-12, #page .col-sm-2, #page .col-sm-3, #page .col-sm-4, #page .col-sm-5, #page .col-sm-6, #page .col-sm-7, #page .col-sm-8, #page .col-sm-9 {
	margin-bottom: 35px;
}
#page h2 {
	font-size: 32px;
	line-height: 40px;
	margin: 0 0 30px;
	text-transform: none;
}
#page h3,
#page p,
#page ul,
#page ol {
	margin-bottom: 20px;
}
#page h4 span,
#page .ansatt-navn span {
	color: var(--slate-body);
	display: block;
	font-size: 14px;
	font-style: italic;
}
#page .ansatt-navn {
	color: var(--graphite-ink);
	font-size: 18px;
	font-weight: 300;
	line-height: 24px;
	margin: 0 0 10px;
}
#page img {
	height: auto;
	width: 100%;
}
#page .container {
	background: var(--panel-reading);
	padding: 25px;
	width: 1140px;
}
#page ul li {
	padding: 4px 0 0 20px;
	position: relative;
}
#page ul li:before {
	background-color: var(--rana-steel-blue);
	content: "";
	display: inline-block;
	height: 8px;
	left: 0;
	margin-top: 10px;
	position: absolute;
	width: 8px;
}
#page .ansatt {
	margin-bottom: 25px;
}
#page .ansatt .media {
	margin-bottom: 25px;
}
#page .ansatt h4 {
	margin-bottom: 10px;
}
#page .media {
	position: relative;
}
#page .media img {
	margin-bottom: 0;
}
#page .media .overlay {
	height: 100%;
	position: absolute;
	text-align: center;
	width: 100%;
	transition: var(--ease-standard);
}
#page .media .overlay p {
	bottom: 0;
	background: var(--scrim-rest);
	color: var(--chalk);
	line-height: 25px;
	margin-bottom: 0;
	padding: 10px 25px;
	position: absolute;
	text-align: left;
	width: 100%;
	transition: var(--ease-standard);
}
#page .media .overlay p a {
	color: var(--chalk);
	display: block;
	margin-bottom: 15px;
}
#page .media .overlay p span {
	color: var(--chalk);
	display: none;
	margin-bottom: 0;
}
#page .media:hover {
	background: var(--scrim-rest);
}
#page .media:hover .overlay p {
	background: var(--rana-steel-blue);
	padding: 20px 25px 20px;
}
#page .media:hover .overlay p span {
	display: block;
	font-style: oblique;
	text-transform: none;
}
#page .featured-images {
	display: inline-block;
	margin: 0 -1% 25px;
}
#page .featured-images img {
	float: left;
	margin: 0 0.5% 8px;
	width: 49%;
}
#page .sidebar h3 {
	margin-bottom: 25px;
}
#page .sidebar h3 a {
	color: var(--graphite-ink);
}
#page .sidebar h3 a:hover {
	color: var(--rana-steel-blue);
}
#page .sidebar p {
	font-size: 14px;
	line-height: 24px;
}
#page .sidebar ul li {
	margin-bottom: 3px;
	padding: 0;
}
#page .sidebar ul li:before {
	display: none;
}
#page .sidebar ul li a {
	background: var(--mist-grey);
	color: var(--graphite-ink);
	cursor: pointer;
	display: block;
	padding: 8px 12px;
}
#page .sidebar ul li:hover a,
#page .sidebar ul li.active a {
	background-color: var(--rana-steel-blue);
	color: var(--chalk);
}
#page table img {
	margin: 15px 0;
	width: auto;
}
#page table th,
#page table td {
	vertical-align: middle;
}
#page .img-text {
	background: var(--panel-reading);
	display: inline-block;
	font-size: 24px;
	padding: 15px 15px;
	position: absolute;
	left: 55px;
	top: 35px;
}
#map {
	background-color: var(--mist-grey);
	border-top: 1px solid var(--joint-grey);
	height: 450px;
	width: 100%;
}
#map iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}
.map-contents {
	margin-top: -390px;
	pointer-events: none;
	position: absolute;
	width: 100%;
}
.map-contents .content {
	background: var(--white);
	display: inline-block;
	padding: 35px 45px;
	pointer-events: auto;
}
.map-contents h2 {
	font-size: 24px;
	line-height: 32px;
	margin-bottom: 30px;
}
#page-banner p a,
#page .ansatt a,
.map-contents a {
	display: inline-block;
	margin: -12px 0;
	padding: 12px 0;
}
@media only screen and (max-width: 1199px) {
	#page .container {
		width: calc(100% - 46px);
		margin: 0 23px;
	}
}
@media only screen and (max-width: 769px) {
	#page {
		padding: 0;
	}
	#page .container {
		margin: 0;
		padding: 35px 23px;
		width: 100%;
	}
}

/* Footer */
footer {
	background: var(--carbon-black);
	color: var(--ash-grey);
	font-size: 12px;
	line-height: 24px;
	padding: 25px 0;
}
footer span {
	margin: 0 8px;
}
footer a {
	color: var(--chalk);
	display: inline-block;
	margin: -10px 0;
	padding: 10px 0;
}
footer a:hover {
	color: var(--ash-grey);
}
@media only screen and (max-width: 1199px) {
	footer .col-md-12 {
		text-align: center;
	}
}
@media only screen and (max-width: 769px) {
	footer span[aria-hidden="true"] {
		display: block;
		height: 0;
		margin: 0;
		overflow: hidden;
	}
}
