/*
 * Kerfóðrun – site styles on top of Helix Ultimate.
 * Recreates the look of the original (Floox "Classic") design: transparent header over a full-screen
 * slideshow / page-title banner, dark navy sticky header, Poppins headings.
 */

:root {
	--kf-blue: #2e348d;
	--kf-navy: #1c314a;
	--kf-text: #5b6670;
	--kf-heading: #43484d;
	--kf-light: #f9f9f9;
	--kf-line: #e1e8ee;
	--kf-header-top: 52px;
}

body {
	color: var(--kf-text);
	font-size: 15px;
	line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--kf-heading);
}

a {
	color: var(--kf-blue);
}

/* ---------- Top bar + header over the hero ---------- */
#sp-top-bar,
#sp-header {
	position: absolute;
	left: 0;
	width: 100%;
	background: transparent;
	box-shadow: none;
}

#sp-top-bar {
	top: 0;
	z-index: 100;
	padding: 12px 0 0;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 13px;
	line-height: 1.6;
}

#sp-top-bar .container-inner {
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 10px;
}

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

#sp-top-bar a {
	color: #fff;
}

#sp-top-bar a:hover {
	color: rgba(255, 255, 255, 0.75);
}

.kf-topbar {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kf-topbar li {
	display: inline-block;
	margin-right: 32px;
}

.kf-topbar li:last-child {
	margin-right: 0;
}

.kf-topbar-address {
	font-weight: 500;
}

#sp-header {
	top: var(--kf-header-top);
	z-index: 99;
	height: 80px;
}

#sp-header .logo {
	height: 80px;
}

#sp-header .logo img {
	max-width: 210px;
}

#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > span {
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 1.35px;
	text-transform: uppercase;
	line-height: 80px;
	padding: 0 20px;
}

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

#sp-header .sp-megamenu-parent > li > a:hover,
#sp-header .sp-megamenu-parent > li.active > a {
	color: #fff;
	opacity: 0.8;
}

#sp-header .sp-megamenu-parent > li.active > a {
	opacity: 1;
}

#sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
	border-radius: 0 0 3px 3px;
	box-shadow: 0 8px 24px rgba(28, 49, 74, 0.15);
}

#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
	font-family: Poppins, sans-serif;
	font-size: 14px;
}

#sp-header .burger-icon > span {
	background-color: #fff;
}

/* Off-canvas (mobile) menu on navy background. */
.offcanvas-menu .offcanvas-inner .menu > li > a,
.offcanvas-menu .offcanvas-inner .menu > li > span,
.offcanvas-menu .offcanvas-inner .menu-child li > a {
	color: rgba(255, 255, 255, 0.85);
	font-family: Poppins, sans-serif;
}

.offcanvas-menu .offcanvas-inner .menu li.active > a,
.offcanvas-menu .offcanvas-inner .menu li.current > a,
.offcanvas-menu .offcanvas-inner .menu > li > a:hover {
	color: #fff;
	font-weight: 600;
}

.offcanvas-menu .offcanvas-inner .menu li.active > a::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 3px;
	margin: 0 10px 4px 0;
	border-radius: 2px;
	background: #fff;
}

/* Sticky header: solid navy bar once the page scrolls. */
#sp-header.header-sticky {
	position: fixed;
	top: 0;
	height: 70px;
	background: rgba(28, 49, 74, 0.96);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
	animation: kf-slide-down 0.35s ease;
}

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

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

@keyframes kf-slide-down {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

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

/* Pages without a hero (e.g. error pages) get a solid header so the white menu stays readable. */
body:not(:has(.kf-hero-slider)):not(:has(.sp-page-title)) #sp-top-bar,
body:not(:has(.kf-hero-slider)):not(:has(.sp-page-title)) #sp-header:not(.header-sticky) {
	position: relative;
	top: 0;
	background: var(--kf-navy);
}

/* ---------- Page-title banner (inner pages) ---------- */
.sp-page-title {
	position: relative;
	padding: 215px 0 115px;
	background-color: var(--kf-navy);
	background-position: 50% 50%;
	background-size: cover;
	text-align: center;
}

.sp-page-title::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--kf-navy);
	opacity: 0.7;
}

.sp-page-title .container {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
}

.sp-page-title .sp-page-title-heading {
	margin: 0;
	color: #fff;
	font-size: 60px;
	font-weight: 500;
	letter-spacing: -2px;
	line-height: 1.15;
}

.sp-page-title .sp-page-title-sub-heading {
	margin: 0 0 15px;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 2.55px;
	text-transform: uppercase;
}

/* ---------- Home: full-screen slideshow ---------- */
.kf-hero-slider .sp-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(28, 49, 74, 0.35) 0%, rgba(28, 49, 74, 0) 65%);
	pointer-events: none;
}

.kf-hero-slider .sp-item .sppb-container {
	position: relative;
	z-index: 1;
}

.kf-hero-slider .sp-slider-content-align-left {
	padding-top: 90px;
}

.kf-hero-slider .kf-slide-sub {
	margin-bottom: 18px;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: 4px;
	line-height: 1.3;
	text-transform: uppercase;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.kf-hero-slider .kf-slide-title {
	margin: 0;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 96px;
	font-weight: 600;
	letter-spacing: -2.3px;
	line-height: 1.08;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

/* Dots: short black lines, the active one long and white – as on the old site. */
.kf-hero-slider .sp-dots {
	left: 0;
	right: 0;
	bottom: 140px;
	width: 100%;
	max-width: var(--kf-container, 1320px);
	margin: 0 auto;
	padding: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5 + 18px);
	text-align: left;
	transform: none;
}

.kf-hero-slider .sp-dots ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.kf-hero-slider .sp-dots ul li {
	width: 18px;
	height: 4px;
	margin: 0;
	border: 0;
	border-radius: 4px;
	background: #000;
	opacity: 1;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.kf-hero-slider .sp-dots ul li.active {
	width: 40px;
	background: #fff;
}

.kf-hero-slider .sp-dots ul li::before,
.kf-hero-slider .sp-dots ul li::after {
	display: none;
}

/* ---------- Home: feature boxes ---------- */
.service-feature-section .sppb-column,
.service-feature-section .sppb-column-addons,
.service-feature-section .sppb-addon-wrapper,
.service-feature-section .sppb-addon-wrapper > .clearfix,
.service-feature-section .sppb-addon-feature {
	height: 100%;
}

.service-feature-section .sppb-addon-feature {
	padding: 60px 35px 55px;
	border-bottom: 1px solid var(--kf-line);
	transition: background-color 0.3s ease;
}

.service-feature-section .sppb-col-md-4:not(:last-child) .sppb-addon-feature,
.service-feature-section .sppb-row-column:not(:last-child) .sppb-addon-feature {
	border-right: 1px solid var(--kf-line);
}

.service-feature-section .sppb-addon-feature .sppb-icon {
	margin-bottom: 25px;
}

.service-feature-section .sppb-addon-feature .sppb-icon i,
.service-feature-section .sppb-addon-feature .sppb-icon span {
	color: var(--kf-blue);
}

.service-feature-section .sppb-addon-feature .sppb-icon-container {
	display: inline-block;
	transition: transform 0.3s ease;
}

.service-feature-section .sppb-addon-feature .sppb-addon-text::after {
	content: "";
	display: block;
	width: 30px;
	height: 4px;
	margin: 30px auto 0;
	border-radius: 2px;
	background: var(--kf-line);
	transition: width 0.3s ease, background-color 0.3s ease;
}

/* Hover (as on the old site): the icon grows and the dash under the text lights up. */
.service-feature-section .sppb-addon-feature:hover {
	background-color: var(--kf-light);
}

.service-feature-section .sppb-addon-feature:hover .sppb-icon-container {
	transform: scale(1.2);
}

.service-feature-section .sppb-addon-feature:hover .sppb-addon-text::after {
	width: 60px;
	background-color: var(--kf-blue);
}

/* ---------- Section titles ---------- */
.sppb-section-title .sppb-title-heading {
	position: relative;
	padding-top: 30px;
	font-size: 40px;
	font-weight: 500;
}

.sppb-section-title .sppb-title-heading::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 40px;
	height: 4px;
	margin-left: -20px;
	border-radius: 2px;
	background: var(--kf-blue);
}

.title-line-after .sppb-addon-title::after {
	content: "";
	display: block;
	width: 50px;
	height: 4px;
	margin-top: 25px;
	border-radius: 2px;
	background: var(--kf-blue);
}

.floox-title {
	font-weight: 600;
}

/* ---------- Home: latest news ---------- */
.sppb-addon-articles .sppb-addon-article {
	position: relative;
	height: 100%;
	padding: 35px 30px;
	border-bottom: 1px solid var(--kf-line);
	background: #fff;
	isolation: isolate;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover (as on the old site): a brand-coloured panel fades/zooms in behind the text, which turns white. */
.sppb-addon-articles .sppb-addon-article::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(135deg, var(--kf-blue) 0%, var(--kf-navy) 100%);
	opacity: 0;
	transform: scale(0.94);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

/* The title link covers the whole card, so the card is clickable. */
.sppb-addon-articles .sppb-addon-article h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.sppb-addon-articles .sppb-addon-article:hover,
.sppb-addon-articles .sppb-addon-article:focus-within {
	border-color: transparent;
	box-shadow: 0 14px 34px rgba(28, 49, 74, 0.25);
}

.sppb-addon-articles .sppb-addon-article:hover::before,
.sppb-addon-articles .sppb-addon-article:focus-within::before {
	opacity: 1;
	transform: scale(1);
}

.sppb-addon-articles .sppb-addon-article h3 {
	margin: 0 0 12px;
	font-size: 21px;
	line-height: 1.35;
}

.sppb-addon-articles .sppb-addon-article h3 a,
.sppb-addon-articles .sppb-addon-article .sppb-article-introtext,
.sppb-addon-articles .sppb-addon-article .sppb-article-meta,
.sppb-addon-articles .sppb-addon-article .sppb-readmore {
	transition: color 0.3s ease;
}

.sppb-addon-articles .sppb-addon-article h3 a {
	color: var(--kf-heading);
}

.sppb-addon-articles .sppb-addon-article:hover h3 a,
.sppb-addon-articles .sppb-addon-article:focus-within h3 a,
.sppb-addon-articles .sppb-addon-article:hover .sppb-article-introtext,
.sppb-addon-articles .sppb-addon-article:focus-within .sppb-article-introtext,
.sppb-addon-articles .sppb-addon-article:hover .sppb-readmore,
.sppb-addon-articles .sppb-addon-article:focus-within .sppb-readmore {
	color: #fff;
}

.sppb-addon-articles .sppb-addon-article:hover .sppb-article-meta,
.sppb-addon-articles .sppb-addon-article:focus-within .sppb-article-meta,
.sppb-addon-articles .sppb-addon-article:hover .sppb-article-meta *,
.sppb-addon-articles .sppb-addon-article:focus-within .sppb-article-meta * {
	color: rgba(255, 255, 255, 0.75);
}

.sppb-addon-articles .sppb-article-meta {
	font-size: 13px;
	color: #8a949c;
}

.sppb-addon-articles .sppb-readmore {
	font-family: Poppins, sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.sppb-addon-articles .sppb-row > div {
	margin-bottom: 30px;
}

.sppb-addon-articles .sppb-btn.sppb-btn-block {
	margin-top: 10px;
	padding: 15px;
	border: 1px solid #d6dde3;
	border-radius: 0;
	background: #fff;
	color: var(--kf-heading);
	font-family: Poppins, sans-serif;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.sppb-addon-articles .sppb-btn.sppb-btn-block:hover {
	border-color: var(--kf-blue);
	background: var(--kf-blue);
	color: #fff;
}

/* ---------- Buttons ---------- */
.sppb-btn-primary,
.btn-primary {
	border-color: var(--kf-blue);
	background-color: var(--kf-blue);
}

.sppb-btn-primary:hover,
.sppb-btn-primary:focus,
.btn-primary:hover,
.btn-primary:focus {
	border-color: var(--kf-navy);
	background-color: var(--kf-navy);
}

/* ---------- Um okkur ---------- */
.font-family2 .sppb-addon-title {
	color: #8a949c;
	text-transform: uppercase;
}

/* Staff flip boxes: photo + name on the front, contact details on the back. */
.sppb-addon-sppb-flibox .sppb-flipbox-panel {
	height: 440px !important;
}

.sppb-addon-sppb-flibox .sppb-flipbox-front,
.sppb-addon-sppb-flibox .sppb-flipbox-back {
	height: 100% !important;
}

.sppb-addon-sppb-flibox .flip-box-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 14px 14px 18px;
}

.sppb-addon-sppb-flibox .sppb-flipbox-front img {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
	object-position: 50% 25%;
	margin: 0 0 16px;
}

.sppb-addon-sppb-flibox .sppb-flipbox-front h2 {
	margin: auto 0;
	color: #fff;
	font-size: 22px;
	line-height: 1.3;
}

.sppb-addon-sppb-flibox .sppb-flipbox-back .flip-box-inner {
	justify-content: center;
}

.sppb-addon-sppb-flibox .sppb-flipbox-back h3 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 22px;
}

.sppb-addon-sppb-flibox .sppb-flipbox-back p {
	margin: 0 0 4px;
}

.sppb-addon-sppb-flibox .sppb-flipbox-back a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
	word-break: break-word;
}

/* ---------- Málefni: tabs ---------- */
.sppb-addon-tab .sppb-nav-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-bottom: 50px;
	border: 0;
}

.sppb-addon-tab .sppb-nav-tabs > li > a {
	padding: 10px 28px;
	border: 2px solid #e3e8ec;
	border-radius: 2px;
	background: #fff;
	color: var(--kf-heading);
	font-family: Poppins, sans-serif;
	font-size: 15px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.sppb-addon-tab .sppb-nav-tabs > li.active > a,
.sppb-addon-tab .sppb-nav-tabs > li > a:hover {
	border-color: var(--kf-blue);
	background: #fff;
	color: var(--kf-blue);
}

.sppb-addon-tab .sppb-tab-content h3.title {
	margin-bottom: 8px;
	font-size: 22px;
}

/* ---------- Hafa samband ---------- */
.sppb-addon-openstreetmap {
	position: relative;
	z-index: 0;
}

.kf-contact-info {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kf-contact-info li {
	margin-bottom: 10px;
}

.kf-contact-info .single-text {
	display: inline-block;
	min-width: 95px;
	color: var(--kf-blue);
	font-family: Poppins, sans-serif;
	font-weight: 500;
}

.kf-contact-form .sppb-form-control {
	padding: 14px 18px;
	border: 1px solid #d6dde3;
	border-radius: 2px;
	box-shadow: none;
}

.kf-contact-form .sppb-form-control:focus {
	border-color: var(--kf-blue);
	box-shadow: 0 0 0 3px rgba(46, 52, 141, 0.12);
}

.kf-contact-form textarea.sppb-form-control {
	min-height: 170px;
}

@media (min-width: 768px) {
	.kf-contact-form .sppb-form-builder-field-0 {
		padding-right: 10px;
	}

	.kf-contact-form .sppb-form-builder-field-1 {
		padding-left: 10px;
	}
}

/* ---------- Fréttir (blog) and articles ---------- */
.com-content #sp-main-body {
	padding: 90px 0;
}

.blog .article-list .row > [class*="col-"] {
	display: flex;
	margin-bottom: 30px;
}

.blog .article-list .article,
.blog-items .blog-item {
	width: 100%;
	padding: 35px 30px;
	border: 1px solid var(--kf-line);
	border-radius: 2px;
	transition: box-shadow 0.25s ease;
}

.blog .article-list .article:hover {
	box-shadow: 0 10px 30px rgba(28, 49, 74, 0.08);
}

.blog .article-info {
	margin-bottom: 12px;
	font-size: 13px;
	color: #8a949c;
}

.blog .pagination-wrapper {
	justify-content: center;
}

.page-link {
	color: var(--kf-blue);
}

.page-item.active .page-link {
	border-color: var(--kf-blue);
	background-color: var(--kf-blue);
}

.blog .article-header h2 a,
.blog-item .article-header h2 a {
	color: var(--kf-heading);
}

.blog .article-header h2,
.blog-item .article-header h2 {
	font-size: 24px;
}

.article-details .pagenavigation,
.article-details .pager,
.article-details nav.pagenavigation {
	clear: both;
	padding-top: 30px;
}

.article-details .article-body::after {
	content: "";
	display: table;
	clear: both;
}

.sppb-addon-text-block .sppb-addon-content {
	font-size: 15px;
	line-height: 1.75;
}

.article-details .article-header h1 {
	font-size: 36px;
	line-height: 1.25;
}

.article-body img,
.article-introtext img,
.article-details img {
	max-width: 100%;
	height: auto;
}

/* ---------- Footer ---------- */
#sp-footer {
	padding: 22px 0;
	font-size: 14px;
}

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

#sp-footer2 {
	text-align: right;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
	.kf-hero-slider .kf-slide-title {
		font-size: 76px;
	}

	#sp-header .sp-megamenu-parent > li > a {
		padding: 0 12px;
		letter-spacing: 1px;
	}
}

@media (max-width: 991.98px) {
	:root {
		--kf-header-top: 34px;
	}

	#sp-top-bar {
		padding-top: 8px;
		font-size: 12px;
	}

	#sp-top2 {
		display: none;
	}

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

	.kf-hero-slider .kf-slide-sub {
		font-size: 16px;
		letter-spacing: 3px;
	}

	.kf-hero-slider .kf-slide-title {
		font-size: 56px;
		letter-spacing: -1px;
	}

	.kf-hero-slider .sp-dots {
		bottom: 90px;
	}

	.sp-page-title {
		padding: 170px 0 80px;
	}

	.sp-page-title .sp-page-title-heading {
		font-size: 44px;
		letter-spacing: -1px;
	}

	.service-feature-section .sppb-addon-feature {
		border-right: 0 !important;
	}

	/* Feature boxes and the 3 latest news stack on tablets – 3 columns are too narrow there. */
	.service-feature-section .sppb-row > .sppb-row-column,
	.service-feature-section .sppb-row > [class*="sppb-col-"],
	.sppb-addon-articles .sppb-row > .sppb-addon-article-layout {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.service-feature-section .sppb-addon-feature {
		padding: 45px 25px;
	}

	.kf-contact-form {
		margin-bottom: 50px;
	}

	#sp-footer1,
	#sp-footer2,
	#sp-footer .sp-column {
		text-align: center !important;
	}

	.sppb-addon-sppb-flibox .sppb-flipbox-panel {
		margin-bottom: 30px;
	}
}

@media (max-width: 575.98px) {
	.kf-topbar li {
		display: block;
		margin: 0;
	}

	:root {
		--kf-header-top: 58px;
	}

	#sp-header .logo img {
		max-width: 165px;
	}

	.kf-hero-slider .kf-slide-sub {
		font-size: 13px;
		letter-spacing: 2px;
	}

	/* "rafgreiningakerum" must fit on one line. */
	.kf-hero-slider .kf-slide-title {
		font-size: clamp(26px, 8.4vw, 40px);
		letter-spacing: -0.5px;
	}

	.kf-hero-slider .sp-dots {
		bottom: 60px;
	}

	.sp-page-title {
		padding: 180px 0 60px;
	}

	.sp-page-title .sp-page-title-heading {
		font-size: 34px;
	}

	.sp-page-title .sp-page-title-sub-heading {
		font-size: 12px;
		letter-spacing: 2px;
	}

	.sppb-section-title .sppb-title-heading {
		font-size: 30px;
	}

	.sppb-addon-tab .sppb-nav-tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		margin-bottom: 35px;
	}

	.sppb-addon-tab .sppb-nav-tabs::before,
	.sppb-addon-tab .sppb-nav-tabs::after {
		display: none;
	}

	.sppb-addon-tab .sppb-nav-tabs > li > a {
		display: block;
		padding: 10px 6px;
		font-size: 13px;
		text-align: center;
	}

	.sppb-addon-tab .sppb-nav-tabs > li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	#sp-footer1,
	#sp-footer2,
	#sp-footer .sp-column {
		text-align: center !important;
	}

	#sp-footer {
		padding-bottom: 70px;
	}

	/* Floated article photos stack above the text on phones. */
	.article-introtext img[style*="float"],
	.article-details img[style*="float"] {
		float: none !important;
		display: block;
		margin: 0 0 15px !important;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.service-feature-section .sppb-addon-feature:hover .sppb-icon-container,
	.sppb-addon-articles .sppb-addon-article::before {
		transform: none;
	}
}
