@import url("beluga-sppb.css");

/**
 * Eignarekstur – styles replicating the old "Beluga" (blue) template on Helix Ultimate.
 */
:root {
	--ek-blue: #4388ee;
	--ek-blue-dark: #1b58b3;
	--ek-text: #5c789e;
	--ek-footer: #2964bd;
	--ek-footer-dark: #022d6b;
	--ek-copy: #0d254e;
	--ek-footer-link: #84afef;
}

body {
	color: var(--ek-text);
	line-height: 32px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	margin: 0 0 20px;
	font-family: "Cairo", sans-serif;
	font-weight: 600;
	color: var(--ek-blue-dark);
	letter-spacing: .5px;
	text-transform: none;
}

h1, .h1 { font-size: 44px; line-height: 60px; }
h2, .h2 { font-size: 34px; line-height: 43px; }
h3, .h3 { font-size: 28px; line-height: 32px; }
h4, .h4 { font-size: 20px; line-height: 32px; }
h5, .h5 { font-size: 16px; line-height: 22px; }
h6, .h6 { font-size: 14px; line-height: 18px; }

/* UIkit 2 base spacing used by the old template */
p, ul, ol, dl, blockquote, pre, address, fieldset, figure {
	margin: 0 0 20px 0;
}

* + p, * + ul, * + ol, * + dl, * + blockquote, * + pre, * + address, * + fieldset, * + figure {
	margin-top: 20px;
}

* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
	margin-top: 30px;
}

ul, ol {
	padding-left: 30px;
}


/* Testimonials (old Beluga look) */
.sppb-testimonial-pro .sppb-addon-testimonial-pro-client-name {
	font-weight: 700;
	line-height: 32px;
}

.sppb-testimonial-pro .sppb-addon-testimonial-pro-client-designation {
	line-height: 32px;
}

.tm-rating {
	margin-bottom: 10px;
}

.tm-rating .uk-icon-star {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-style: normal;
	font-size: 20px;
	letter-spacing: 5px;
	color: var(--ek-blue);
	display: inline-block;
}

.tm-rating .tm-5-star::before { content: "\f005\f005\f005\f005\f005"; }
.tm-rating .tm-4-star::before { content: "\f005\f005\f005\f005"; }
.tm-rating .tm-3-star::before { content: "\f005\f005\f005"; }
.tm-rating .tm-2-star::before { content: "\f005\f005"; }
.tm-rating .tm-1-star::before { content: "\f005"; }

/* From the old template's custom.css */
b {
	font-weight: normal;
}

a {
	transition: color .2s;
}

/* ---------------------------------------------------------------------------
 * Top bar + header: transparent, overlaying the page hero (as on the old site)
 * ------------------------------------------------------------------------- */
#sp-top-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .35) 100%);
	border-bottom: 1px solid rgba(255, 255, 255, .5);
	color: var(--ek-blue);
	font-size: 18px;
}

#sp-top-bar .container,
#sp-header .container {
	max-width: 100%;
	padding-left: 50px;
	padding-right: 50px;
}

#sp-top-bar .row {
	min-height: 52px;
	align-items: center;
}

#sp-top-bar .sp-module {
	margin: 0;
}

#sp-header {
	position: absolute;
	top: 53px;
	left: 0;
	right: 0;
	z-index: 99;
	background: transparent;
	box-shadow: none;
	height: 90px;
}

#sp-header.header-sticky {
	position: fixed;
	top: 0;
	background: #fff;
	box-shadow: 0 2px 15px rgba(2, 45, 107, .12);
	height: 80px;
}

#sp-header .logo img {
	max-height: 60px;
}

#sp-header.header-sticky .logo img {
	max-height: 50px;
}

.sticky-header-placeholder {
	display: none;
}

/* Main menu */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
	position: relative;
	padding: 0 20px;
	color: var(--ek-blue);
	font-size: 17px;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 90px;
}

#sp-header.header-sticky .sp-megamenu-parent > li > a,
#sp-header.header-sticky .sp-megamenu-parent > li > span {
	line-height: 80px;
}

.sp-megamenu-parent > li:last-child > a {
	padding-right: 0;
}

.sp-megamenu-parent > li.active > a::before,
.sp-megamenu-parent > li:hover > a::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	border-top: 3px solid var(--ek-blue);
}

.sp-megamenu-parent > li:last-child.active > a::before,
.sp-megamenu-parent > li:last-child:hover > a::before {
	right: -20px;
}

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li:hover > a {
	color: var(--ek-blue-dark);
}

/* Submenu dropdown (old Beluga look): light-blue text sliding 3px on hover / active item */
#sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
	background: rgba(67, 136, 238, .95);
	padding: 20px;
	box-shadow: 0 20px 30px rgba(0, 0, 0, .15), 0 0 0 1px rgba(0, 0, 0, .075), inset 0 0 0 1px rgba(255, 255, 255, .075);
	border-radius: 0;
}

#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item {
	margin: 0;
	padding: 0;
}

#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > span {
	display: block;
	padding: 3px 10px;
	background: transparent;
	color: #fff;
	font-size: 18px;
	line-height: 32px;
	letter-spacing: 0;
	text-transform: none;
	transition: color .2s ease-in-out, transform .3s ease-in-out;
}

#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
	background: transparent;
	color: #a9d8ff;
	transform: translateX(3px);
}

/* Off-canvas (mobile) menu */
.offcanvas-menu {
	background: var(--ek-blue);
}

.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span,
.offcanvas-menu .offcanvas-inner ul.menu ul li a {
	color: #fff;
}

.burger-icon > span {
	background-color: var(--ek-blue);
}

/* ---------------------------------------------------------------------------
 * Top bar modules
 * ------------------------------------------------------------------------- */
.ek-text-scroller {
	color: var(--ek-blue);
	white-space: nowrap;
}

.ek-text-scroller-cursor {
	display: inline-block;
	width: 1px;
	height: 1.1em;
	margin-left: 1px;
	vertical-align: -.2em;
	background: var(--ek-blue);
	animation: ek-blink 1s step-end infinite;
}

@keyframes ek-blink {
	50% { opacity: 0; }
}

.ek-top-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.ek-top-links .ek-top-link {
	color: var(--ek-blue);
	font-weight: 700;
}

.ek-top-links .ek-top-link:hover,
.ek-top-links .ek-social:hover {
	color: var(--ek-blue-dark);
}

.ek-top-links .ek-social {
	color: var(--ek-blue-dark);
	font-size: 20px;
	margin-left: -8px;
}

.gtranslate_wrapper {
	display: flex;
	align-items: center;
	line-height: 1;
}

.gtranslate_wrapper a.glink img {
	margin-right: 2px;
}

/* ---------------------------------------------------------------------------
 * Page-builder pages start with their own hero under the overlaid header
 * ------------------------------------------------------------------------- */
body.com-sppagebuilder #sp-main-body {
	padding: 0;
}

/* ---------------------------------------------------------------------------
 * Home slideshow (replaces the Widgetkit slideshow)
 * ------------------------------------------------------------------------- */
#sp-title .sp-column,
#sp-title .sp-module {
	margin: 0;
	padding: 0;
}

.ek-slideshow {
	position: relative;
	height: 57.3vw;
	max-height: 1100px;
	min-height: 600px;
	overflow: hidden;
	background: #eaf1fb;
}

.ek-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .75s ease, visibility .75s;
}

.ek-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.ek-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform-origin: bottom center;
}

.ek-slide.is-active .ek-slide-bg {
	animation: ek-kenburns 20s ease-out both;
}

@keyframes ek-kenburns {
	from { transform: scale(1.2); }
	to { transform: scale(1); }
}

.ek-slide-content {
	position: absolute;
	top: 50%;
	left: 50px;
	right: 50px;
	max-width: 620px;
	transform: translateY(-40%);
	opacity: 0;
	transition: opacity .75s ease .3s;
}

.ek-slide.is-active .ek-slide-content {
	opacity: 1;
}

.ek-slide-content h1 {
	color: var(--ek-blue-dark);
	font-size: 48px;
	font-weight: 600;
	line-height: 1.25;
	margin-bottom: 20px;
}

.ek-slide-caption {
	color: var(--ek-text);
	font-size: 22px;
	line-height: 34px;
	margin-bottom: 40px;
}

.ek-slide-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.ek-btn {
	display: inline-block;
	padding: 0 25px;
	line-height: 54px;
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.ek-btn-primary {
	background: var(--ek-blue);
	color: #fff;
}

.ek-btn-primary:hover {
	background: var(--ek-blue-dark);
	color: #fff;
}

.ek-btn-light {
	background: rgba(255, 255, 255, .75);
	border: 1px solid #fff;
	color: var(--ek-blue);
}

.ek-btn-light:hover {
	background: #fff;
	color: var(--ek-blue-dark);
}

.ek-slide-prev,
.ek-slide-next {
	position: absolute;
	bottom: 40px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 2;
}

.ek-slide-prev { left: 40px; }
.ek-slide-next { left: 100px; }

.ek-slide-prev::before,
.ek-slide-next::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translate(-30%, -50%) rotate(45deg);
}

.ek-slide-next::before {
	transform: translate(-70%, -50%) rotate(-135deg);
}

.ek-slide-nav {
	position: absolute;
	top: 50%;
	right: 45px;
	transform: translateY(-50%);
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 2;
}

.ek-slide-nav li {
	margin: 8px 0;
}

.ek-slide-nav button {
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: transparent;
	font-size: 14px;
	line-height: 26px;
	padding: 0;
	cursor: pointer;
	position: relative;
}

.ek-slide-nav button::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .8);
}

.ek-slide-nav li.is-active button {
	background: var(--ek-blue);
	color: #fff;
}

.ek-slide-nav li.is-active button::after {
	display: none;
}

/* ---------------------------------------------------------------------------
 * Cookie consent (replaces SP Cookie Consent plugin)
 * ------------------------------------------------------------------------- */
.ek-cookie-consent {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9999;
	max-width: 400px;
	padding: 20px;
	background: #4187f0;
	color: #fff;
	font-size: 15px;
	line-height: 32px;
}

.ek-cookie-consent[hidden] {
	display: none;
}

.ek-cookie-consent a {
	color: #f5f5f5;
	text-decoration: underline;
}

.ek-cookie-consent-btn {
	margin-top: 10px;
	padding: 4px 15px;
	border: 0;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font-size: 15px;
	cursor: pointer;
}

/* SP Page Builder articles addon (from the old template's custom CSS) */
.sppb-addon-article .sppb-article-info-wrap {
	margin-top: 20px;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
	#sp-top-bar .container,
	#sp-header .container {
		padding-left: 20px;
		padding-right: 20px;
	}

	#sp-top-bar {
		font-size: 15px;
	}

	#sp-top1 {
		display: none;
	}

	.ek-top-links {
		justify-content: center;
		gap: 4px 14px;
	}

	#sp-header {
		top: 52px;
		height: 80px;
	}

	#sp-header.header-sticky {
		height: 70px;
	}

	.ek-slideshow {
		min-height: 560px;
	}

	.ek-slide-content {
		left: 20px;
		right: 20px;
		transform: translateY(-30%);
	}

	.ek-slide-content h1 {
		font-size: 32px;
	}

	.ek-slide-caption {
		font-size: 18px;
		line-height: 28px;
		margin-bottom: 25px;
	}

	.ek-slide-nav {
		right: 15px;
	}

	body:not(.com-sppagebuilder) #sp-main-body {
		padding-top: 160px;
	}
}

/* No dropdown carets in the main menu (as on the old site) */
.sp-megamenu-parent > li.sp-has-child > a::after,
.sp-megamenu-parent > li.sp-has-child > span::after {
	display: none;
}

/* Pages without a page-builder hero: light blue band behind the header (as on the old site) */
body:not(.com-sppagebuilder) .body-innerwrapper {
	background: linear-gradient(#e3ecf8 0, #e3ecf8 200px, #fff 200px) no-repeat;
}

body:not(.com-sppagebuilder) #sp-main-body {
	padding-top: 260px;
	padding-bottom: 60px;
}

.article-details .article-header h1,
.article-details .article-header h2,
.blog .article-header h2 {
	font-size: 34px;
	line-height: 42px;
	font-weight: 600;
}

.article-details .article-full-image,
.blog .article-intro-image {
	margin-bottom: 20px;
}

@media (max-width: 991.98px) {
	body:not(.com-sppagebuilder) .body-innerwrapper {
		background: linear-gradient(#e3ecf8 0, #e3ecf8 150px, #fff 150px) no-repeat;
	}

	body:not(.com-sppagebuilder) #sp-main-body {
		padding-top: 190px;
	}
}

/* Sticky header: inset white bar with a scroll progress line (as on the old site) */
#sp-header.header-sticky {
	top: 20px;
	left: 30px;
	width: auto;
	right: 30px;
	height: 90px;
	animation: none;
}

#sp-header.header-sticky .sp-megamenu-parent > li > a,
#sp-header.header-sticky .sp-megamenu-parent > li > span {
	line-height: 90px;
}

#sp-header.header-sticky::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: var(--ek-scroll-progress, 0%);
	background: var(--ek-blue);
}

@media (max-width: 991.98px) {
	#sp-header.header-sticky {
		top: 0;
		left: 0;
		right: 0;
		height: 70px;
	}
}

@media (max-width: 575.98px) {
	#sp-top-bar .container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.ek-top-links {
		flex-wrap: nowrap;
		gap: 10px;
		font-size: 14px;
		white-space: nowrap;
	}

	.ek-top-links .ek-social {
		font-size: 17px;
		margin-left: -4px;
	}

	.gtranslate_wrapper a.glink img {
		width: 22px;
		height: auto;
	}
}

.offcanvas-menu .logo img {
	filter: brightness(0) invert(1);
}

/* SP Page Builder 3 addon boxes contained their children's margins and titles were blocks */
.sppb-addon-wrapper > .clearfix {
	display: flow-root;
}

.sppb-addon-header .sppb-addon-title {
	display: block;
}

/* Default-size buttons: the old template rendered them at 0.9em and ignored the stored 16px */
.sppb-btn:not(.sppb-btn-lg):not(.sppb-btn-xlg):not(.sppb-btn-sm):not(.sppb-btn-xs) {
	font-size: .9em !important;
}

/* ---------------------------------------------------------------------------
 * Footer – boxed like the old Beluga footer:
 * blue block inset 30px (60px inner padding, 50px gutters) with a dark globe
 * panel behind the third column, and a copyright bar inset 70px.
 * ------------------------------------------------------------------------- */
#sp-bottom {
	position: relative;
	overflow: hidden;
	margin: 0 30px;
	padding: 60px 0 80px;
	background: var(--ek-footer);
	color: #fff;
	font-size: 18px;
	line-height: 32px;
}

#sp-bottom > .container {
	max-width: none;
	padding: 0 60px;
}

#sp-bottom .container-inner > .row,
#sp-bottom .ek-footer-links .row {
	--bs-gutter-x: 50px;
}

#sp-bottom .sp-module {
	margin: 0;
}

#sp-bottom .sp-module .sp-module-title {
	margin: 0 0 20px;
	color: #fff;
	font-family: "Cairo", sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

#sp-bottom h5 {
	margin: 0 0 20px;
	color: #fff;
	font-family: "Cairo", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

#sp-bottom p {
	margin: 0 0 20px;
}

#sp-bottom * + p {
	margin-top: 20px;
}

#sp-bottom p:last-child {
	margin-bottom: 0;
}

#sp-bottom a {
	color: var(--ek-footer-link);
}

#sp-bottom a:hover {
	color: #fff;
}

#sp-bottom ul {
	margin: 0;
	padding: 0;
}

#sp-bottom ul li {
	padding: 0;
	line-height: 33px;
}

#sp-bottom3 > .ek-footer-links {
	position: relative;
	height: 100%;
}

#sp-bottom .ek-footer-links::before {
	content: "";
	position: absolute;
	top: -100%;
	left: 0;
	width: 1000px;
	height: 2000px;
	background: var(--ek-footer-dark) url("../images/eignarekstur/globe.svg") no-repeat 100% 0;
	z-index: 0;
}

#sp-bottom .ek-footer-links > .sp-module {
	position: relative;
	z-index: 1;
	padding-left: 60px;
}

#sp-footer {
	margin: 0 70px 50px;
	padding: 15px 50px;
	background: var(--ek-copy);
	color: #fff;
	font-size: 17px;
	line-height: 32px;
}

#sp-footer > .container {
	max-width: none;
	padding: 0;
}

#sp-footer .container-inner {
	border: 0;
	padding: 0;
}

#sp-footer .sp-module {
	margin: 0;
}

#sp-footer p {
	margin: 0;
}

#sp-footer a {
	color: var(--ek-footer-link);
}

#sp-footer a:hover {
	color: #fff;
}

@media (max-width: 991.98px) {
	#sp-bottom {
		margin: 0;
	}

	#sp-bottom > .container {
		padding: 0 20px;
	}

	#sp-bottom .sp-column {
		margin-bottom: 30px;
	}

	#sp-bottom .ek-footer-links::before {
		top: -30px;
		left: -50vw;
		width: 200vw;
	}

	#sp-bottom .ek-footer-links > .sp-module {
		padding: 30px 0 0;
	}

	#sp-footer {
		margin: 0;
		padding: 15px 20px;
	}
}

/* UIkit 2 default used by the old template */
img {
	vertical-align: middle;
}

#sp-bottom .sp-module ul > li {
	margin: 0;
}

#sp-bottom .sp-module img {
	display: inline;
}

/* Articles addon: always keep the same space between intro text/image and the "read more" button */
.sppb-addon-article .sppb-article-introtext {
	margin-bottom: 20px;
}

.sppb-addon-article .sppb-article-introtext > :last-child,
.sppb-addon-article .sppb-article-introtext img:last-child {
	margin-bottom: 0;
}

.sppb-addon-article .sppb-article-introtext img {
	max-width: 100%;
	height: auto;
}

/* BA Forms: dropdowns match the height and text of the other input fields */
.ba-form-field-item .ba-field-container select:not([multiple]) {
	height: 46px;
	min-height: 0;
	padding-top: 8px;
	padding-bottom: 8px;
	font-size: 18px;
	line-height: 28px;
}

/* Phones: slideshow numbers in a row at the bottom (level with the arrows) instead of over the caption */
@media (max-width: 767.98px) {
	.ek-slide-nav {
		top: auto;
		bottom: 47px;
		right: 20px;
		transform: none;
		display: flex;
		gap: 4px;
	}

	.ek-slide-nav li {
		margin: 0;
	}

	.ek-slide-prev { left: 10px; }
	.ek-slide-next { left: 60px; }
}

/* Footer on phones/tablets: space between the stacked link lists, copyright bar left-aligned */
@media (max-width: 767.98px) {
	#sp-bottom .ek-footer-links .row > [class*="col-"] + [class*="col-"] {
		margin-top: 30px;
	}
}

@media (max-width: 991.98px) {
	#sp-footer #sp-footer2,
	#sp-footer #sp-footer2 .sp-column {
		text-align: left !important;
	}

	#sp-footer #sp-footer1 {
		margin-bottom: 5px;
	}
}

/* Phones: full-width content blocks, long words wrap, images never wider than the screen */
@media (max-width: 767.98px) {
	.sppb-addon-wrapper {
		width: 100% !important;
		max-width: 100% !important;
	}

	.sppb-addon-title {
		overflow-wrap: break-word;
		hyphens: auto;
	}
}

.sppb-addon-content img,
.sppb-addon-text-block img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 767.98px) {
	/* Default heading sizes on phones (titles with their own size use their phone setting) */
	h1, .h1 { font-size: 32px; line-height: 40px; }
	h2, .h2 { font-size: 28px; line-height: 36px; }

	/* Image addons with a fixed pixel width */
	.sppb-addon-single-image-container img,
	.sppb-addon-single-image img {
		max-width: 100% !important;
		height: auto !important;
	}
}

@media (max-width: 767.98px) {
	/* Section titles (e.g. "Þjónustudeild" on Starfsmenn) */
	.sppb-section-title .sppb-title-heading {
		font-size: 32px !important;
		line-height: 40px !important;
	}
}

/* Tablets/phones: small gap between page-builder columns once they stack */
@media (max-width: 991.98px) {
	.sppb-row > [class*="sppb-col-md-"] + [class*="sppb-col-md-"] {
		margin-top: 15px;
	}
}

/* Dropdowns that would leave the screen open from the item's right edge (set by custom.js) */
.sp-megamenu-parent > li.ek-dropdown-flip > .sp-dropdown {
	left: auto !important;
	right: 0 !important;
}

/* Helix shows a "Featured" badge on featured articles; the old site never displayed it */
.featured-article-badge {
	display: none !important;
}
