/*
Theme Name: Harris
Author: AlfGundersen
Author URI: https://alfgundersen.no/
Theme URI:
Tags: full-site-editing, block-patterns
Text Domain: harris
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 100.9

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

html {
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/* Remove default block gap between top-level sections (header/main/footer) */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/*
 * Zero out the constrained-layout padding on <main>.
 * All templates use section-padding-x for side padding — the constrained
 * layout's default ~24px padding doubles up and narrows the content area.
 */
.site-main.wp-block-group {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

a {
	transition: color 0.2s ease;
}

/* --------------------------------------------------------------------------
   Header — fixed, white bg, logo left, search + hamburger right
   Ref: old site .header { height: 60/90/145px, fixed, white bg }
   -------------------------------------------------------------------------- */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: 60px;
	transition: height 0.2s ease;
	padding-left: max(var(--wp--preset--spacing--50), calc(50% - 720px)) !important;
	padding-right: max(0px, calc(50% - 720px)) !important;
}

/* Push body down to compensate for fixed header */
body {
	margin-top: var(--wp--preset--spacing--lg);
}

@media (min-width: 782px) {
	.site-header {
		height: 90px;
	}
	body {
		margin-top: var(--wp--preset--spacing--xl);
	}
}

.site-header__logo img {
	width: 129px;
	height: auto;
	transition: width 0.2s ease;
}

@media (min-width: 1180px) {
	.site-header__logo img {
		width: 146px;
	}
}

.site-header__right {
	gap: 0;
	align-items: center;
}

/* Search — bottom-border only, matching old site */
.site-header__search {
	max-width: 200px;
}

.site-header__search .wp-block-search__inside-wrapper {
	border: none !important;
	border-bottom: 1px solid var(--wp--preset--color--primary) !important;
	border-radius: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	transition: border-bottom-color 0.15s ease-in-out, border-bottom-width 0.15s ease-in-out;
}

.site-header__search .wp-block-search__inside-wrapper:focus-within {
	border-bottom-color: var(--wp--preset--color--secondary) !important;
	border-bottom-width: 2px !important;
}

.site-header__search .wp-block-search__input {
	border: none;
	border-radius: 0;
	padding: 4px 0;
	font-size: 0.9375rem;
	background: transparent;
	color: var(--wp--preset--color--primary);
}

.site-header__search .wp-block-search__input::placeholder {
	color: transparent;
}

.site-header__search .wp-block-search__input:focus {
	outline: none;
	box-shadow: none;
}

.site-header__search .wp-block-search__button {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 0 0 8px !important;
	color: var(--wp--preset--color--primary);
	margin: 0;
	min-width: auto;
	outline: none;
	transition: color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.site-header__search .wp-block-search__button:focus {
	outline: 0 !important;
	box-shadow: 0 0 0 2px var(--wp--preset--color--secondary) !important;
}

.site-header__search .wp-block-search__button svg {
	fill: var(--wp--preset--color--primary);
	width: 18px;
	height: 18px;
}

/* Search: collapse to icon-only at mobile, expand on focus */
@media (max-width: 781px) {
	.site-header__search {
		max-width: none;
		width: auto;
	}

	.site-header__search .wp-block-search__inside-wrapper {
		border-bottom: none !important;
		width: auto;
	}

	.site-header__search .wp-block-search__input {
		width: 0;
		padding: 0;
		opacity: 0;
		transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
	}

	.site-header__search:focus-within .wp-block-search__inside-wrapper {
		border-bottom: 1px solid var(--wp--preset--color--primary) !important;
	}

	.site-header__search:focus-within .wp-block-search__input {
		width: 140px;
		padding: 4px 0;
		opacity: 1;
	}
}

/* --------------------------------------------------------------------------
   Main Menu — Fullscreen overlay navigation
   Ref: old site .fullscreen-menu { fixed, 100vh, z-index 1, dark bg }
   -------------------------------------------------------------------------- */

/* ── Hamburger toggle ──────────────────────────────────────────────── */

.main-menu__toggle {
	background: none;
	border: none;
	padding: 0;
	margin: 0 var(--wp--preset--spacing--xs);
	cursor: pointer;
	width: 29px;
	height: 29px;
	display: flex;
	align-items: center;
	z-index: 201;
	position: relative;
}

/* Suppress focus ring on tap/programmatic focus (overlay open/close) and the
   iOS tap-highlight flash. Keep a visible ring for keyboard users only. */
.main-menu__toggle,
.main-menu__logo a {
	-webkit-tap-highlight-color: transparent;
}

.main-menu__toggle:focus,
.main-menu__logo a:focus {
	outline: none;
}

.main-menu__toggle:focus-visible,
.main-menu__logo a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.main-menu__toggle-inner {
	display: flex;
	align-items: flex-start;
	width: 100%;
	height: 19px;
}

.main-menu__toggle-line,
.main-menu__toggle-line::before,
.main-menu__toggle-line::after {
	display: block;
	width: 100%;
	height: 1px;
	background-color: var(--wp--preset--color--primary);
	transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, width 0.3s ease, top 0.3s ease;
}

.main-menu__toggle-line {
	position: relative;
}

.main-menu__toggle-line::before,
.main-menu__toggle-line::after {
	content: "";
	position: absolute;
	left: 0;
	transform-origin: left center;
}

.main-menu__toggle-line::before {
	top: 9px;
}

.main-menu__toggle-line::after {
	top: 18px;
}

/* Hamburger → X when open */
.main-menu--open .main-menu__toggle-line {
	background-color: var(--wp--preset--color--base);
	transform: translateY(9px) rotate(45deg);
}

.main-menu--open .main-menu__toggle-line::before {
	background-color: var(--wp--preset--color--base);
	top: 0;
	transform: rotate(-90deg);
	transform-origin: center;
}

.main-menu--open .main-menu__toggle-line::after {
	background-color: var(--wp--preset--color--base);
	opacity: 0;
}

/* Hover: stagger lines left-aligned when closed */
.main-menu:not(.main-menu--open) .main-menu__toggle:hover .main-menu__toggle-line {
	background-color: var(--wp--preset--color--secondary);
}

.main-menu:not(.main-menu--open) .main-menu__toggle:hover .main-menu__toggle-line::before {
	background-color: var(--wp--preset--color--secondary);
	transform: scaleX(0.5);
}

.main-menu:not(.main-menu--open) .main-menu__toggle:hover .main-menu__toggle-line::after {
	background-color: var(--wp--preset--color--secondary);
	transform: scaleX(0.7);
}

/* ── Header changes when menu is open ─────────────────────────────── */

.site-header:has(.main-menu--open) {
	background-color: var(--wp--preset--color--primary) !important;
	border-bottom-color: transparent !important;
}

.site-header:has(.main-menu--open) .site-header__logo,
.site-header:has(.main-menu--open) .site-header__search {
	visibility: hidden;
}

body:has(.main-menu--open) {
	background-color: var(--wp--preset--color--primary);
}

/* ── Overlay logo — match header dimensions so there is no shift ──── */

.main-menu__logo {
	position: fixed;
	top: 5px;
	left: 0;
	right: 0;
	height: 60px;
	padding-left: max(var(--wp--preset--spacing--50), calc(50% - 720px));
	display: flex;
	align-items: center;
	background-color: var(--wp--preset--color--primary);
	box-shadow: 0 -5px 0 var(--wp--preset--color--primary);
	z-index: 10;
	transition: height 0.2s ease;
}

.main-menu__logo img {
	width: 129px;
	height: auto;
	filter: brightness(0) invert(1);
}

@media (min-width: 782px) {
	.main-menu__logo {
		height: 90px;
	}
}

@media (min-width: 1180px) {
	.main-menu__logo img {
		width: 146px;
	}
}

/* ── Fullscreen overlay ────────────────────────────────────────────── */

.main-menu__overlay {
	display: none;
	position: fixed;
	inset: 0;
	max-width: 1440px;
	margin-inline: auto;
	z-index: 200;
	background: var(--wp--preset--color--primary);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.main-menu__overlay::-webkit-scrollbar {
	width: 6px;
}

.main-menu__overlay::-webkit-scrollbar-track {
	background: transparent;
}

.main-menu__overlay::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

.main-menu--open .main-menu__overlay {
	display: block;
}

/* ── Two-column layout ─────────────────────────────────────────────── */

.main-menu__columns {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

@media (min-width: 782px) {
	.main-menu__columns {
		flex-direction: row;
	}
}

/* Left column — primary background */
.main-menu__left {
	background-color: var(--wp--preset--color--primary);
	padding: 110px var(--wp--preset--spacing--md) var(--wp--preset--spacing--md);
	transition: padding-top 0.2s ease;
}

.main-menu__left .main-menu__section:last-child {
	margin-bottom: 0;
}

@media (min-width: 782px) {
	.main-menu__left {
		flex: 0 0 45%;
		padding-bottom: var(--wp--preset--spacing--sm);
	}
}

@media (min-width: 1170px) {
	.main-menu__left {
		padding-top: 165px;
	}
}

@media (min-width: 1180px) {
	.main-menu__left {
		flex: 0 0 40%;
		padding-left: 70px;
		padding-right: 70px;
	}
}

/* Right column — dark bg with watermark image */
.main-menu__right {
	position: relative;
	padding: var(--wp--preset--spacing--md) 0;
	display: flex;
	flex-direction: column;
	transition: padding-top 0.2s ease;
}

.main-menu__right::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0.2;
	z-index: 0;
	background-image: url("assets/images/harris.jpg");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	pointer-events: none;
	transition: top 0.2s ease;
}


.main-menu__right > * {
	position: relative;
	z-index: 1;
}

@media (min-width: 782px) {
	.main-menu__right {
		flex: 1;
		padding: 110px 0 0;
	}
}

@media (min-width: 1170px) {
	.main-menu__right {
		padding-top: 165px;
	}
}

/* ── Section labels ────────────────────────────────────────────────── */

.main-menu__section {
	margin-bottom: var(--wp--preset--spacing--sm);
}

/* Right-column sections need horizontal padding (CTA cards are flush) */
.main-menu__right .main-menu__section {
	padding-left: var(--wp--preset--spacing--md);
	padding-right: var(--wp--preset--spacing--md);
}

@media (min-width: 782px) {
	.main-menu__section {
		margin-bottom: var(--wp--preset--spacing--md);
	}
}

@media (min-width: 1180px) {
	.main-menu__right .main-menu__section {
		padding-left: 70px;
		padding-right: 70px;
	}
}

.main-menu__label {
	font-weight: 400;
	font-size: 18px;
	color: var(--wp--preset--color--base);
	margin: 0 0 15px;
}

.main-menu__label span,
.main-menu__label a {
	opacity: 0.5;
}

.main-menu__label a {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

.main-menu__label a:hover {
	opacity: 1;
	color: var(--wp--preset--color--accent);
}

/* ── Menu lists ────────────────────────────────────────────────────── */

.main-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-menu__list li {
	margin-bottom: 13px;
}

.main-menu__list a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
	font-size: clamp(1.5rem, 0.75rem + 2vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	display: inline-block;
	transition: transform 0.2s ease, color 0.2s ease;
}

.main-menu__list a:hover {
	color: var(--wp--preset--color--accent);
	transform: translateX(5px);
}

/* "Annet" nav rendered via wp:navigation — override block defaults */
.main-menu__list--nav {
	gap: 0 !important;
}

.main-menu__list--nav .wp-block-navigation-item {
	margin-bottom: 13px;
}

.main-menu__list--nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--base) !important;
	font-size: clamp(1.5rem, 0.75rem + 2vw, 2rem);
	font-weight: 600;
	line-height: 1.2;
	transition: transform 0.2s ease, color 0.2s ease;
	display: inline-block;
}

.main-menu__list--nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent) !important;
	transform: translateX(5px);
}

/* ── CTA cards (bottom of right column) ────────────────────────────── */

.main-menu__ctas {
	display: flex;
	flex-direction: column;
	margin-top: auto;
}

@media (min-width: 1369px) {
	.main-menu__ctas {
		flex-direction: row;
	}
}

.main-menu__cta {
	display: flex;
	align-items: center;
	text-decoration: none;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--md);
	min-height: 120px;
	border: 2px solid transparent;
	opacity: 0.95;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 1180px) {
	.main-menu__cta {
		padding: var(--wp--preset--spacing--xs) 70px;
	}
}

@media (min-width: 1369px) {
	.main-menu__cta {
		flex: 1;
		min-height: 155px;
	}
}

.main-menu__cta:hover {
	opacity: 1;
}

.main-menu__cta--feedback {
	background-color: var(--wp--preset--color--light-gray);
	color: var(--wp--preset--color--secondary);
}

.main-menu__cta--feedback:hover {
	border-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--secondary);
}

.main-menu__cta--contact {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
}

.main-menu__cta--contact:hover {
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--base);
}

/* --------------------------------------------------------------------------
   Hero — Split Layout (matches old site structure)
   - .hero__media is a flex row: .hero__media-inner + .hero__social
   - .hero__content is a flex row: .hero__content-main + .hero__sidebar
   - Both content-main and sidebar get margin-right = social width (escape-hero-social)
   - Title overlaps upward via height:0 nullify wrapper + translateY(-100%)
   - Social width = header height: 60px (xs) → 90px (md) → 145px (xl)
   - Media height: 250px (xs) → 435px (lg)
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	width: 100%;
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	background: var(--wp--preset--color--base);
}

/* Row 1: Media row — flex: media-inner expands, social is fixed width */
.hero__media {
	display: flex;
	flex-direction: row;
}

.hero__media-inner {
	position: relative;
	flex: 1 1 auto;
	height: 250px;
	overflow: hidden;
}

.hero__video-container {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
}

.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero__media-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(16, 22, 37, 0.5);
	pointer-events: none;
}

/* Social column — flex sibling in media row */
.hero__social {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 60px;
	flex: 0 0 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--wp--preset--color--base);
}

.hero__social li {
	list-style: none;
}

.hero__social a {
	color: var(--wp--preset--color--primary);
	transition: color 0.3s ease;
	display: flex;
}

.hero__social a:hover {
	color: var(--wp--preset--color--secondary);
}

/* Row 2: Content row — margin-right = social column width */
.hero__content {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-right: var(--wp--preset--spacing--lg);
}

.hero__content > * {
	min-height: 0;
}

/* Content main — dark blue */
.hero__content-main {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding: 80px var(--wp--preset--spacing--xs) var(--wp--preset--spacing--lg);
	flex: 1;
}

/* Title nullify wrapper — height:0, title floats upward */
.hero__title-nullify {
	height: 0;
}

.hero__title-wrap {
	position: relative;
	z-index: 2;
	transform: translateY(-100%);
	top: -30px;
	padding: 0;
	color: var(--wp--preset--color--base);
}

.hero__slogan {
	display: block;
	position: absolute;
	bottom: 100%;
	left: 0;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	font-size: calc(2.4rem * 0.44);
	line-height: 1.2;
	font-weight: 700;
	white-space: nowrap;
	transform: translateY(-15%);
}

.hero__title {
	font-size: clamp(2.3rem, calc(2.3rem + 3.325rem * (100vw - 320px) / 1120px), 5.625rem);
	line-height: 1.1;
	margin: 0;
	color: var(--wp--preset--color--base);
	font-weight: 600;
	max-width: 550px;
}

.hero__excerpt {
	max-width: 570px;
	font-size: 1.3rem;
	line-height: 1.6;
	margin: 0;
}

/* Sidebar nav — light gray */
.hero__sidebar {
	background: var(--wp--preset--color--light-gray);
	padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--xs);
	display: flex;
	align-items: flex-start;
}

/* WP Navigation block inside sidebar — force dark text */
.hero__sidebar .wp-block-navigation,
.hero__sidebar .wp-block-navigation .wp-block-navigation-item a,
.hero__sidebar-nav ul,
.hero__sidebar-nav li,
.hero__sidebar-nav a {
	color: var(--wp--preset--color--contrast) !important;
}

.hero__sidebar .wp-block-navigation__container {
	gap: 2px !important;
}

.hero__sidebar .wp-block-navigation .wp-block-navigation-item {
	margin-bottom: 0;
}

.hero__sidebar .wp-block-navigation .wp-block-navigation-item a {
	text-decoration: underline;
	transition: all 0.3s ease;
}

.hero__sidebar .wp-block-navigation .wp-block-navigation-item a:hover {
	text-decoration: none;
	color: var(--wp--preset--color--accent) !important;
	transform: translateX(5px);
}

.hero__sidebar-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero__sidebar-nav li {
	margin-bottom: 6px;
}

.hero__sidebar-nav a {
	text-decoration: underline;
	display: inline-block;
	transition: all 0.3s ease;
}

.hero__sidebar-nav a:hover {
	text-decoration: none;
	color: var(--wp--preset--color--accent) !important;
	transform: translateX(5px);
}

/* First sidebar link — bold heading style like old site */
.hero__sidebar .wp-block-navigation .wp-block-navigation-item:first-child a {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hero__sidebar-nav li:first-child a {
	font-size: 1.25rem;
	font-weight: 700;
	text-underline-offset: 4px;
}

/* Medium screens */
@media (min-width: 782px) {
	.hero__media-inner {
		height: 435px;
	}

	.hero__social {
		width: 90px;
		flex: 0 0 90px;
	}

	.hero__content {
		flex-direction: row;
		margin-right: var(--wp--preset--spacing--xl);
	}

	.hero__content-main {
		flex: 2 1;
		padding: 160px var(--wp--preset--spacing--lg) 80px;
	}

	.hero__title-wrap {
		top: -80px;
	}

	.hero__slogan {
		font-size: calc(3rem * 0.44);
		font-weight: 400;
	}

	.hero__sidebar {
		flex: 0 0 20%;
		padding: 80px var(--wp--preset--spacing--xs);
		position: relative;
	}

	/* Decorative lines at sidebar left edge — spans into navy section */
	.hero__sidebar::before,
	.hero__sidebar::after {
		content: "";
		position: absolute;
		top: 50%;
		transform: translate(0, -50%);
		height: 2px;
		width: 15px;
	}

	.hero__sidebar::before {
		left: -15px;
		background-color: rgba(241, 241, 241, 0.3);
	}

	.hero__sidebar::after {
		left: 0;
		background-color: rgba(31, 44, 73, 0.3);
	}
}

/* Large screens */
@media (min-width: 1180px) {
	/*.hero__social {
		width: 145px;
		flex: 0 0 145px;
	}*/

	.hero__title-wrap {
		top: -40px;
	}

	/*.hero__content {
		margin-right: 145px;
	}*/

	.hero__content-main {
		padding: 100px var(--wp--preset--spacing--xl) 80px;
	}

	.hero__slogan {
		font-size: calc(5.625rem * 0.44);
	}

	.hero__sidebar {
		padding: 80px var(--wp--preset--spacing--lg);
	}

	.hero__sidebar::before,
	.hero__sidebar::after {
		width: 30px;
	}

	.hero__sidebar::before {
		left: -30px;
	}
}

/* --------------------------------------------------------------------------
   Callout CTA
   -------------------------------------------------------------------------- */

.callout {
	gap: 35px;
	max-width: calc(100% - 60px);
	margin-left: 0 !important;
	margin-right: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 35px var(--wp--preset--spacing--xs) !important;
	justify-content: space-between !important;
}

/* Medium+: shrink CTA to avoid hero social sidebar (90px) */
@media (min-width: 782px) {
	.callout {
		max-width: min(calc(1440px - 90px), calc(100% - 90px));
		margin-left: max(0px, calc(50% - 720px)) !important;
		margin-right: auto !important;
		padding: 35px var(--wp--preset--spacing--lg) !important;
	}
}

@media (min-width: 1180px) {
	.callout {
		padding: 35px var(--wp--preset--spacing--xl) !important;
	}
}

/* Large: social sidebar grows to 145px */
/* @media (min-width: 1180px) {
	.callout {
		max-width: calc(1440px - 145px);
	}
} */

.callout .wp-block-button__link {
	background: rgb(241, 241, 241) !important;
	border: 1px solid rgb(241, 241, 241) !important;
	color: rgb(33, 37, 41) !important;
	padding: 11.2px 20px;
	border-radius: 4px;
	font-size: 1.125rem;
}

.callout p {
	font-size: 1.25rem;
	margin: 0;
}

@media (max-width: 781px) {
	.callout p {
		font-size: 1.125rem;
		margin-bottom: 1rem;
	}
}

/* --------------------------------------------------------------------------
   Shared: responsive horizontal padding for 1440px-capped sections
   -------------------------------------------------------------------------- */
.section-padding-x {
	box-sizing: border-box;
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--xs);
	padding-right: var(--wp--preset--spacing--xs);
}
@media (min-width: 782px) {
	.section-padding-x { padding-left: var(--wp--preset--spacing--lg); padding-right: var(--wp--preset--spacing--lg); }
}
@media (min-width: 1180px) {
	.section-padding-x { padding-left: var(--wp--preset--spacing--xxl); padding-right: var(--wp--preset--spacing--xxl); }
}

/* Shared: responsive header top padding (60px mobile → 90px desktop) */
.single-employee .single-employee__header,
.single-post .single-post__header,
.archive-employee .archive-employee__header,
.archive-press-media .archive-press-media__header,
.blog-index .blog-index__header,
.archive-service .archive-service__header,
.search-results .search-results__header {
	padding-top: var(--wp--preset--spacing--lg);
}
@media (min-width: 782px) {
	.single-employee .single-employee__header,
	.single-post .single-post__header,
	.archive-employee .archive-employee__header,
	.archive-press-media .archive-press-media__header,
	.blog-index .blog-index__header,
	.archive-service .archive-service__header,
	.search-results .search-results__header {
		padding-top: var(--wp--preset--spacing--xl);
	}
}

/* --------------------------------------------------------------------------
   Legacy .btn / .btn-primary classes from imported post/page content.
   Old site content used Bootstrap-style button links — these classes
   still exist on links in migrated content and need styling.
   -------------------------------------------------------------------------- */

a.btn {
	display: inline-block;
	padding: 11.2px 20px;
	min-width: 120px;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.67;
	text-decoration: none !important;
	border: 1px solid transparent;
	border-radius: 4px;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

a.btn-primary {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--primary);
}

a.btn-primary:hover {
	color: var(--wp--preset--color--secondary);
}

a.btn-primary:focus {
	outline: 0;
	box-shadow: 0 0 0 2px rgba(65, 76, 100, 0.5);
}

/* --------------------------------------------------------------------------
   News Slider (horizontal scroll)
   -------------------------------------------------------------------------- */

.news-slider {
	box-sizing: border-box;
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--lg);
	max-width: 1440px;
	margin: 0 auto;
}

.news-slider__header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 45px;
	position: relative;
}

/* Ref: old site .section-heading { 2.3rem → 3.75rem, font-weight: 700 } */
/* Major section titles (h2) — same fluid scale as h1. */
.news-slider__title,
.services-teaser-block__title,
.employee-slider__title,
.services-section__title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.news-slider__title {
	font-weight: 700;
	margin: 0;
}

.news-slider__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.news-slider__title a:hover {
	color: var(--wp--preset--color--secondary);
}


.news-slider__track {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.news-slider__track::-webkit-scrollbar {
	display: none;
}

.news-slider__item {
	flex: 0 0 280px;
	min-width: 0;
	scroll-snap-align: start;
	text-decoration: none;
	color: inherit;
	display: block;
}

/* Ref: old site .slide__image { mb: 25px, overflow: hidden } */
.news-slider__image {
	overflow: hidden;
	margin-bottom: 25px;
}

.news-slider__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 280 / 194;
	object-fit: cover;
	display: block;
	transition: transform 1.5s ease;
}

.news-slider__item:hover .news-slider__image img {
	transform: scale(1.02);
}

/* Ref: old site .post-item__title { font-size: 1.33rem, line-height: 1.3 } */
.news-slider__item-title {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	font-weight: 400;
	margin: 0;
}

@media (min-width: 782px) {
	.news-slider__item {
		flex: 0 0 calc(33.333% - 1rem);
	}
}

@media (min-width: 1024px) {
	.news-slider__item {
		flex: 0 0 calc(25% - 1.125rem);
	}
}

/* Nav arrows */
.news-slider {
	position: relative;
}

.news-slider__nav,
.news-slider__nav[hidden] {
	display: none;
	position: absolute;
	background: none;
	border: none;
	padding: var(--wp--preset--spacing--xs);
	cursor: pointer;
	z-index: 2;
	line-height: 0;
}

.news-slider__nav svg {
	display: block;
	width: 25px;
	height: auto;
	fill: var(--wp--preset--color--secondary);
	transition: fill 0.2s ease;
}

.news-slider__nav:hover svg {
	fill: var(--wp--preset--color--primary);
}

.news-slider__nav:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

@media (min-width: 782px) {
	.news-slider {
		padding-top: var(--wp--preset--spacing--lg);
		padding-bottom: var(--wp--preset--spacing--lg);
	}

	.news-slider__nav {
		display: block;
		top: var(--wp--preset--spacing--60);
		transform: none;
	}

	.news-slider__nav svg {
		width: 30px;
	}

	.news-slider__nav--prev {
		right: 100px;
		left: auto;
		transform: scaleX(-1);
	}

	.news-slider__nav--next {
		right: 60px;
	}
}

@media (min-width: 1180px) {
	.news-slider {
		padding-top: var(--wp--preset--spacing--xl);
		padding-bottom: var(--wp--preset--spacing--xl);
	}

	.news-slider__nav {
		top: 50%;
		transform: translateY(-50%);
	}

	.news-slider__nav svg {
		width: 38px;
	}

	.news-slider__nav--prev {
		left: 0;
		right: auto;
		transform: translateY(-50%) scaleX(-1);
	}

	.news-slider__nav--next {
		right: 0;
	}
}

/* --------------------------------------------------------------------------
   Services Teaser (front page) + Services Grid (block)
   -------------------------------------------------------------------------- */

.services-teaser-block {
	max-width: 1440px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* Ref: old site .section-heading { font-size: 2.3rem → 3.75rem, font-weight: 700, mb: 45px } */
.services-teaser-block__title {
	font-weight: 700;
	margin-bottom: 45px;
	text-align: left;
}

.services-teaser-block__title a {
	color: inherit;
	text-decoration: none;
}

.services-teaser-block__title a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Front Page Menus (Om Harris + Karriere)
   -------------------------------------------------------------------------- */

.frontpage-menus {
	max-width: 1440px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-top: var(--wp--preset--spacing--xl);
	padding-bottom: var(--wp--preset--spacing--xl);
}

.frontpage-menus__row {
	margin-bottom: var(--wp--preset--spacing--60);
	gap: 0 !important;
}

.frontpage-menus__row:last-child {
	margin-bottom: 0;
}

.frontpage-menus__image-col .wp-block-image {
	margin: 0;
}

.frontpage-menus__image-col .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 300px;
}

.frontpage-menus__text-col {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.frontpage-menus__heading {
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.frontpage-menus__nav {
	margin-top: 0;
	margin-bottom: 2rem !important;
}

.frontpage-menus__nav .wp-block-navigation__container {
	gap: 4px !important;
}

.frontpage-menus__nav .wp-block-navigation-item {
	font-size: 1rem;
}

.frontpage-menus__nav .wp-block-navigation-item a {
	text-decoration: underline;
	transition: all 0.3s ease;
	padding: 2px 0 !important;
}

.frontpage-menus__nav .wp-block-navigation-item a:hover {
	text-decoration: none;
	transform: translateX(5px);
}

/*
 * 576px–1179px: Both rows sit side by side as two blocks, each image-on-top, text-below.
 * The parent (.frontpage-menus) becomes a flex-wrap row, each __row becomes a 50%-wide
 * column with image above text. No mirroring — both left-aligned.
 *
 * Below 576px: Fully stacked, each row full width, image-on-top, text-below.
 * Above 1179px: Full-width rows with image and text side by side. Karriere row mirrored.
 */

/* Desktop only (above 1179px): Karriere row right-aligned + mirrored */
@media (min-width: 1180px) {
	.frontpage-menus__row--image-right .frontpage-menus__text-col {
		align-items: flex-end;
		text-align: right;
	}

	.frontpage-menus__row--image-right .frontpage-menus__nav .wp-block-navigation__container {
		align-items: flex-end !important;
	}

	.frontpage-menus__row--image-right .frontpage-menus__nav .wp-block-navigation-item {
		text-align: right;
		width: 100%;
		display: flex;
		justify-content: flex-end;
	}
}

/* Mid-range (576px–1179px): two sections side by side, each stacked image/text */
@media (min-width: 576px) and (max-width: 1179px) {
	.frontpage-menus {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: flex-start !important;
		gap: 0 var(--wp--preset--spacing--xs);
	}

	.frontpage-menus__row {
		width: calc(50% - 15px);
		flex-wrap: wrap !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.frontpage-menus__row > .wp-block-column {
		flex-basis: 100% !important;
	}

	/* Karriere: reorder so image comes first */
	.frontpage-menus__row--image-right .frontpage-menus__image-col {
		order: -1;
	}

	.frontpage-menus__text-col {
		padding: 0 !important;
	}

	.frontpage-menus__image-col .wp-block-image {
		margin-bottom: 45px;
	}

	.frontpage-menus .frontpage-menus__image-col .wp-block-image img {
		height: 210px;
		min-height: 0;
	}
}

/* Stacked (below 576px): full width, image-on-top */
@media (max-width: 575px) {
	.frontpage-menus__row--image-right .frontpage-menus__image-col {
		order: -1;
	}

	.frontpage-menus__image-col .wp-block-image {
		margin-bottom: 1.5rem;
	}
}

@media (min-width: 782px) {
	.frontpage-menus__text-col {
		padding: 0px var(--wp--preset--spacing--xl);
	}
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */

.contact-section {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--lg);
	position: relative;
	overflow: hidden;
}

.contact-section::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("assets/images/harris.jpg");
	background-size: cover;
	background-position: center;
	opacity: 0.18;
	pointer-events: none;
	z-index: 0;
}

.contact-section > * {
	position: relative;
	z-index: 1;
}

/* Ref: old site .section-heading in contact = $third (#b7beb3), weight 400, 2.3rem → 3.75rem */
.contact-section__title {
	color: var(--wp--preset--color--accent);
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: 45px;
}

@media (min-width: 992px) {
	.contact-section {
		padding-top: var(--wp--preset--spacing--xxl);
		padding-bottom: var(--wp--preset--spacing--xxl);
	}
}

.contact-section__text p {
	margin-top: 0;
	margin-bottom: 32px;
}

.contact-section__text a {
	color: var(--wp--preset--color--base);
}

.no-break {
	white-space: nowrap;
}

.contact-section__form .gform_wrapper {
	max-width: 100%;
}

.contact-section__form .gform_wrapper .gform_body {
	color: var(--wp--preset--color--base);
}

.contact-section__form .gform_wrapper input[type="text"],
.contact-section__form .gform_wrapper input[type="email"],
.contact-section__form .gform_wrapper input[type="tel"],
.contact-section__form .gform_wrapper textarea,
.contact-section__form .gform_wrapper select {
	width: 100%;
	height: auto !important;
	box-sizing: border-box !important;
	border: 1px solid rgb(222, 226, 230) !important;
	border-radius: 4px !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--primary) !important;
	font-family: var(--wp--preset--font-family--sora, Sora, sans-serif) !important;
	font-size: 1.125rem !important;
	line-height: 1.67 !important;
	padding: 11.2px 20px !important;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-section__form .gform_wrapper input:focus,
.contact-section__form .gform_wrapper textarea:focus {
	outline: 0 !important;
	border-color: #a7adA4 !important;
	box-shadow: 0 0 0 2px var(--wp--preset--color--secondary) !important;
}

.contact-section__form .gform_wrapper input::placeholder,
.contact-section__form .gform_wrapper textarea::placeholder {
	color: rgba(31, 44, 73, 0.5);
}

/* Hide honeypot field text */
.contact-section__form .gform_wrapper .gform_validation_container,
.contact-section__form .gform_wrapper .gfield_visibility_hidden {
	display: none !important;
}

.contact-section__form .gform_wrapper label,
.contact-section__form .gform_wrapper .gfield_label {
	color: var(--wp--preset--color--base);
	display: none;
}

.contact-section__form .gform_wrapper .gfield_description,
.contact-section__form .gform_wrapper .gfield_consent_description,
.contact-section__form .gform_wrapper .gfield_checkbox label,
.contact-section__form .gform_wrapper .ginput_container_consent label {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	display: inline;
}

.contact-section__form .gform_wrapper .gform_button,
.contact-section__form .gform_wrapper button[type="submit"],
.contact-section__form .gform_wrapper input[type="submit"] {
	background: rgb(103, 110, 99) !important;
	color: var(--wp--preset--color--base) !important;
	border: 1px solid rgb(103, 110, 99) !important;
	padding: 11.2px 20px !important;
	font-family: var(--wp--preset--font-family--sora, Sora, sans-serif) !important;
	font-weight: 400 !important;
	font-size: 1.125rem !important;
	line-height: 1.67 !important;
	border-radius: 4px !important;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	min-width: 120px !important;
}

.contact-section__form .gform_wrapper .gform_button:hover,
.contact-section__form .gform_wrapper button[type="submit"]:hover,
.contact-section__form .gform_wrapper input[type="submit"]:hover {
	background: rgb(88, 94, 84) !important;
	border-color: rgb(88, 94, 84) !important;
}

.contact-section__form .gform_wrapper .gform_button:focus,
.contact-section__form .gform_wrapper button[type="submit"]:focus,
.contact-section__form .gform_wrapper input[type="submit"]:focus {
	outline: 0 !important;
	box-shadow: 0 0 0 2px rgba(126, 133, 122, 0.5) !important;
}

/* Modern Gravity Forms (Orbital) overrides */
.contact-section__form .gform_wrapper .gform_fields {
	row-gap: 12px;
	column-gap: 12px;
}

.contact-section__form .gform_wrapper .gfield {
	margin-bottom: 0;
}

.contact-section__form .gform_wrapper fieldset.gfield {
	border: none;
	padding: 0;
	margin-left: 0;
	margin-right: 0;
}

/* --------------------------------------------------------------------------
   Newsletter Section
   -------------------------------------------------------------------------- */

.newsletter-section {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	background-color: var(--wp--preset--color--light-gray);
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--lg);
}

/* Ref: old site .section-heading--secondary { color: $secondary, weight: 400, 2.5rem md+ } */
.newsletter-section__title {
	color: var(--wp--preset--color--secondary);
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: 45px;
}

.newsletter-section__text p {
	margin-top: 0;
	margin-bottom: 32px;
}

@media (min-width: 782px) {
}

@media (min-width: 992px) {
	.newsletter-section {
		padding-top: var(--wp--preset--spacing--xxl);
		padding-bottom: var(--wp--preset--spacing--xxl);
	}
}

.newsletter-form__fields {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.newsletter-form__input {
	width: 100%;
	box-sizing: border-box;
	padding: 11.2px 20px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--sora, Sora, sans-serif);
	font-size: 1.125rem;
	line-height: 1.67;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.newsletter-form__input:focus {
	outline: 0;
	border-color: #a7adA4;
	box-shadow: 0 0 0 2px var(--wp--preset--color--secondary);
}

.newsletter-form__input::placeholder {
	color: rgba(31, 44, 73, 0.5);
}

.newsletter-form__checkboxes {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.newsletter-form__checkboxes label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1rem;
	cursor: pointer;
}

.newsletter-form__checkboxes input[type="checkbox"] {
	transition: box-shadow 0.15s ease-in-out;
}

.newsletter-form__checkboxes input[type="checkbox"]:focus {
	outline: 0;
	box-shadow: 0 0 0 2px var(--wp--preset--color--secondary);
}

.newsletter-form__submit {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border: none;
	padding: 11.2px 20px;
	font-weight: 400;
	font-size: 1.125rem;
	font-family: var(--wp--preset--font-family--sora, Sora, sans-serif);
	cursor: pointer;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.newsletter-form__submit:hover {
	background: var(--wp--preset--color--primary-dark);
}

.newsletter-form__submit:focus {
	outline: 0;
	box-shadow: 0 0 0 2px rgba(65, 76, 100, 0.5) !important;
}

.newsletter-form__responses .response {
	padding: 1rem;
	margin-bottom: 0.75rem;
	font-weight: 700;
}

#mce-error-response {
	background: #dc3545;
	color: var(--wp--preset--color--base);
}

#mce-success-response {
	background: #28a745;
	color: var(--wp--preset--color--base);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
}

.site-footer__main {
	box-sizing: border-box;
	background-color: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base);
	padding-top: var(--wp--preset--spacing--xl);
	padding-bottom: var(--wp--preset--spacing--xl);
}

.site-footer__logo {
	margin-bottom: 1.5rem;
}

/* Ref: old site .footer-logo { fill: $third (#b7beb3), width: 146px } */
.site-footer__logo img {
	width: 146px;
	height: auto;
	filter: brightness(0) invert(1) opacity(0.85);
}

/* Ref: old site .footer-seperator { mt: 25px, mb: 45px } */
.site-footer__separator {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin: 25px 0 45px;
}

.site-footer__locations {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
	.site-footer__locations {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.site-footer__locations {
		grid-template-columns: repeat(4, 1fr);
	}
}

.site-footer__location-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--base);
}

/* Ref: old site .footer-locations__meta-list { font-size: 18px, line-height: 28px, mb: 14px } */
.site-footer__location-address,
.site-footer__location-city,
.site-footer__location-phone {
	margin: 0 0 0.25rem;
	font-size: 1.125rem;
	line-height: 1.55;
}

.site-footer__location-phone a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.site-footer__location-phone a:hover {
	text-decoration: underline;
}

.site-footer__phone-icon {
	vertical-align: middle;
	margin-right: 0.35rem;
	opacity: 0.8;
}

.site-footer__location-link {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 11.2px 20px;
	background: rgb(65, 81, 99);
	border: 1px solid rgb(65, 81, 99);
	border-radius: 4px;
	color: var(--wp--preset--color--base);
	font-size: 1.125rem;
	font-weight: 400;
	text-decoration: none;
	transition: all 0.2s ease;
}

.site-footer__location-link:hover {
	background: rgb(50, 66, 84);
	border-color: rgb(50, 66, 84);
	color: var(--wp--preset--color--base);
}

/* Footer bottom bar — light gray background with navy content */
.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0;
	padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xs);
	background: var(--wp--preset--color--light-gray);
	color: var(--wp--preset--color--primary);
}

@media (min-width: 782px) {
	.site-footer__bottom {
		padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--lg);
	}
}

@media (min-width: 1180px) {
	.site-footer__bottom {
		padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xxl);
	}
}

.site-footer__social {
	display: flex;
	gap: 1rem;
}

.site-footer__social a {
	color: var(--wp--preset--color--primary) !important;
	transition: opacity 0.2s ease;
}

.site-footer__social a svg {
	fill: var(--wp--preset--color--primary);
}

.site-footer__social a:hover {
	opacity: 0.7;
}

.site-footer__privacy {
	color: var(--wp--preset--color--primary);
	font-size: 0.875rem;
	text-decoration: underline;
}

.site-footer__privacy:hover {
	opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Global: No button shadows
   -------------------------------------------------------------------------- */

.wp-element-button:not(:focus),
.wp-block-button__link:not(:focus) {
	box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Gravity Forms Fixes
   -------------------------------------------------------------------------- */

.gform_description {
	margin-bottom: 1.5em !important;
}

.gform_ajax_spinner {
	max-width: 40px;
	max-height: 40px;
}

.gfield .ginput_container .gfield_checkbox li input[type="checkbox"] {
	display: block;
	margin-right: 0.5em;
}

.gfield .ginput_container .gfield_checkbox li input[type="checkbox"] + label::before {
	display: none;
}

.contact-section__form .gform_wrapper input[type="checkbox"] {
	--gf-local-height: 13px;
	--gf-local-width: 13px;
	--gf-local-display: inline-block;
	--gf-local-line-height: normal;
	--gf-local-padding-y: 0;
	--gf-local-padding-x: 0;
	--gf-local-bg-color: transparent;
	--gf-local-shadow: none;
	--gf-local-radius: 0;
	--gf-local-border-color: transparent;
	--gf-local-border-width: 0;
	--gf-local-appearance: auto;
	accent-color: revert;
	align-self: center;
	margin: 0 0.5em 0 0 !important;
}

.contact-section__form .gform_wrapper input[type="checkbox"]::before {
	content: none !important;
}

/* --------------------------------------------------------------------------
   Centered Video (editorial content)
   -------------------------------------------------------------------------- */

.custom-centered-video {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 781px) {
	.custom-centered-video {
		width: 100%;
		height: auto;
	}
}

/* --------------------------------------------------------------------------
   Kalender Grid (editorial content)
   -------------------------------------------------------------------------- */

.kalender-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	padding: 1.25rem;
}

.kalender-luke {
	text-align: center;
	background: var(--wp--preset--color--light-gray);
	border: 2px solid #dee2e6;
	border-radius: 8px;
	padding: 0.625rem;
	transition: transform 0.3s ease;
}

.kalender-luke:hover {
	transform: scale(1.05);
}

.kalender-luke img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.kalender-luke p {
	margin-top: 0.625rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--contrast);
}

/* --------------------------------------------------------------------------
   Tema Block (editorial content)
   -------------------------------------------------------------------------- */

.tema-blokk {
	background-color: var(--wp--preset--color--light-gray);
	padding: 3.125rem 0;
	padding-right: var(--wp--preset--spacing--sm);
	margin-bottom: 2.5rem;
}

.tema-blokk > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   Yoast Breadcrumbs
   ========================================================================== */

.yoast-breadcrumbs,
.wp-block-yoast-seo-breadcrumbs {
	font-size: 1rem;
	color: var(--wp--preset--color--primary);
	margin-bottom: 2rem;
}

.yoast-breadcrumbs a,
.wp-block-yoast-seo-breadcrumbs a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

.yoast-breadcrumbs a:hover,
.wp-block-yoast-seo-breadcrumbs a:hover {
	color: var(--wp--preset--color--secondary);
}

@media (min-width: 782px) {
	.yoast-breadcrumbs,
	.wp-block-yoast-seo-breadcrumbs {
		margin-bottom: 5rem;
	}
}

/* ==========================================================================
   Single Employee — data LEFT, photo RIGHT (matching old site)
   ========================================================================== */

.single-employee__header .single-employee__name {
	font-size: 2.3rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin-bottom: 45px;
}

.single-employee__body {
	gap: var(--wp--preset--spacing--60);
}

.single-employee .single-employee__body {
	margin-block-end: var(--wp--preset--spacing--xl);
}

/* Photo column — sticky + decorative background block */

.single-employee__right {
	position: sticky;
	top: 110px;
	align-self: start;
}

.single-employee__right .employee-photo {
	position: relative;
}

.single-employee__right .employee-photo::before {
	content: '';
	position: absolute;
	top: -50px;
	right: -80px;
	left: 70px;
	bottom: 0;
	background: var(--wp--preset--color--secondary);
	z-index: 0;
}

.single-employee__right .employee-photo img {
	display: block;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 600px;
	height: auto;
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* Photo links (LinkedIn + download) below featured image */

.employee-photo-links {
	display: flex;
	align-items: center;
	margin-top: 0;
}

.employee-photo-links__linkedin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	text-decoration: none;
	flex-shrink: 0;
}

.employee-photo-links__linkedin:hover {
	color: var(--wp--preset--color--light-gray);
}

.employee-photo-links__linkedin svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.employee-photo-links__download {
	margin-left: auto;
	margin-top: 0.75rem;
	font-size: 1.125rem;
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Employee Card — single mode (expanded with SVG icons)
   -------------------------------------------------------------------------- */

.employee-card--single {
	margin-bottom: 2rem;
}

.employee-card--single .employee-card__title {
	font-size: 1.496rem;
	font-weight: 400;
	color: var(--wp--preset--color--warm-brown);
	margin-bottom: var(--wp--preset--spacing--xs);
}

.employee-card__contact--icons {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	font-size: 1.125rem;
}

.employee-card__contact--icons .employee-card__contact-item {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.35rem 0;
	font-size: 1.125rem;
}

.employee-card__contact--icons svg {
	flex-shrink: 0;
	fill: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--secondary);
}

.employee-card__contact-item--email a {
	text-decoration: underline;
}

.employee-card__competence {
	margin-top: 2.5rem;
}

.employee-card__competence-heading {
	color: var(--wp--preset--color--primary);
	margin-bottom: 1.3rem;
}

.employee-card__competence-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 1.125rem;
}

.employee-card__competence-list li {
	margin-bottom: 10px;
	line-height: 1.3;
}

.employee-card__competence-list a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

.employee-card__competence-list a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Employee Details block
   -------------------------------------------------------------------------- */

.employee-details {
	margin-top: 2.5rem;
	font-size: 1.125rem;
}

.employee-details__section {
	margin-top: var(--wp--preset--spacing--lg);
	margin-bottom: var(--wp--preset--spacing--lg);
}

.employee-details__section:first-child {
	margin-top: 0;
}

.employee-details__heading {
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.75rem;
}

.employee-details__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.employee-details__item {
	display: grid;
	grid-template-columns: minmax(auto, 25%) 1fr;
	gap: 1rem;
	margin-bottom: 10px;
}

.employee-details__item-time {
	color: var(--wp--preset--color--warm-brown);
}

.employee-details__item-name {
	/* inherits default text color */
}

/* Related posts (Aktuelt) list */

.employee-details__related-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.employee-details__related-posts li {
	margin-bottom: 20px;
}

.employee-details__related-posts a {
	text-decoration: underline;
}

/* CV download — plain text link (matching old site) */

.employee-details__download {
	text-decoration: underline;
}

@media (min-width: 782px) {
	.single-employee__header .single-employee__name {
		font-size: 3.75rem;
	}
}

@media (max-width: 781px) {
	.single-employee__body {
		flex-direction: column-reverse;
	}
	.single-employee__right {
		position: static;
	}
	.single-employee__right .employee-photo::before {
		display: none;
	}
}

/* ==========================================================================
   Archive Employee
   ========================================================================== */

/* --------------------------------------------------------------------------
   Employee Grid — sidebar filters + grid layout
   Matches old Bootstrap col-lg-3 / col-lg-9 layout with Isotope fitRows.
   -------------------------------------------------------------------------- */

.employee-grid {
	display: flex;
	gap: 2rem;
	margin-bottom: var(--wp--preset--spacing--60);
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	overflow: hidden;
}

/* --- Sidebar filters --- */

.employee-grid__filters {
	flex: 0 0 25%;
	max-width: 250px;
}

.employee-grid__filter-group {
	margin-bottom: 1.5rem;
}

.employee-grid__filter-group h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.employee-grid__filter-group select,
.employee-grid__filter-group .service-filter-select {
	display: block;
	width: 100%;
	padding: 0.375rem 1.75rem 0.375rem 0.75rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--secondary);
	background-color: var(--wp--preset--color--base);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 8px 10px;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.employee-grid__filter-group select:focus {
	border-color: #a7adA4;
	outline: 0;
	box-shadow: 0 0 0 2px var(--wp--preset--color--secondary);
}

.employee-grid__filter-group .mb-3 {
	margin-bottom: 0.75rem;
}

/* Radio buttons */
.employee-grid__filter-group .form-group {
	margin-bottom: 0.35rem;
}

.employee-grid__filter-group .form-group input[type="radio"] {
	display: none;
}

.employee-grid__filter-group .form-group input[type="radio"] + label {
	display: block;
	position: relative;
	min-height: 26px;
	padding: 0 0 0 40px;
	font-size: 1rem;
	font-weight: 400;
	color: #91969a;
	cursor: pointer;
}

.employee-grid__filter-group .form-group input[type="radio"] + label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 26px;
	height: 26px;
	background: url("assets/images/icons/radio-unchecked.svg") no-repeat center / contain;
}

.employee-grid__filter-group .form-group input[type="radio"]:checked + label,
.employee-grid__filter-group .form-group input[type="radio"] + label:hover {
	color: var(--wp--preset--color--primary);
}

.employee-grid__filter-group .form-group input[type="radio"]:checked + label::before {
	background-image: url("assets/images/icons/radio-checked.svg");
}

/* Reset button (muted style matching old site) */
.employee-grid__reset {
	display: inline-block;
	background-color: rgba(31, 44, 73, 0.08);
	border: none;
	border-radius: 0.25rem;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.employee-grid__reset:hover {
	background-color: rgba(31, 44, 73, 0.15);
}

.employee-grid__reset:focus {
	outline: 0;
	box-shadow: 0 0 0 2px rgba(65, 76, 100, 0.5);
}

/* --- Main grid --- */

.employee-grid__list {
	position: relative;
	flex: 1;
	min-width: 0;
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--xs);
	align-content: start;
}

.employee-grid__item {
	min-width: 0;
}

.employee-grid__item.is-hidden {
	position: absolute;
	visibility: hidden;
	pointer-events: none;
}

.employee-grid__no-results {
	font-size: 1rem;
	color: var(--wp--preset--color--secondary);
	grid-column: 1 / -1;
}

/* --- Employee card styles (grid mode) --- */

.employee-card__photo-link {
	position: relative;
	display: block;
}

.employee-card__photo {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	transition: opacity 0.4s;
}

.employee-card__body {
	background-color: var(--wp--preset--color--base);
	padding: 1rem 1rem 0 0;
	transition: transform 0.6s;
}

.employee-card__name {
	display: inline-block;
	font-size: 1.25rem;
	line-height: 24px;
	font-weight: 700;
	margin: 0 0 9px 0;
}

.employee-card__name a {
	color: inherit;
	text-decoration: none;
}

.employee-card__name a:hover {
	text-decoration: underline;
}

.employee-card__title {
	margin: 0 0 20px 0;
	line-height: 1.3;
	font-size: 1rem;
}

/* Contact info — hidden on desktop, revealed on hover (grid mode only) */
.employee-grid__item .employee-card__contact {
	opacity: 0;
	transition: opacity 0.3s;
}

.employee-card__contact-item {
	margin-bottom: 0.15rem;
	font-size: 1rem;
}

.employee-card__contact-item a {
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.employee-card__contact-item svg {
	fill: var(--wp--preset--color--secondary);
	width: 20px;
	height: 20px;
	margin-right: 10px;
	flex-shrink: 0;
}

.employee-card__contact-item--email a {
	text-decoration: underline;
}

/* Alt-image download overlay */
.employee-card__download {
	position: absolute;
	top: 6px;
	right: 6px;
	background-color: rgba(255, 255, 255, 0.5);
	opacity: 0;
	transition: opacity 0.3s;
	border-radius: 50%;
	padding: 5px;
	display: flex;
	text-decoration: none;
}

.employee-card__download:hover {
	background-color: var(--wp--preset--color--base);
}

.employee-card__download svg {
	display: block;
}

/* --- Hover effects on grid items --- */

.employee-grid__item:hover .employee-card__photo {
	opacity: 0.8;
}

.employee-grid__item:hover .employee-card__contact {
	opacity: 1;
}

.employee-grid__item:hover .employee-card__download {
	opacity: 1;
}

/* --- Responsive breakpoints --- */
/* Old site: col-lg (992px) for sidebar/grid split, col-sm-6 (576px) for 2-col cards */

@media (min-width: 1180px) {
	.employee-grid__list {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 991px) {
	.employee-grid {
		flex-direction: column;
	}
	.employee-grid__filters {
		flex: none;
		max-width: 100%;
	}
	.employee-grid__list {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 767px) {
	.employee-grid__list {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Always show contact info on mobile */
	.employee-grid__item .employee-card__contact {
		opacity: 1;
	}
}

@media (max-width: 575px) {
	.employee-grid__list {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Single Service — conditional layout
   ========================================================================== */

.single-service {
	overflow-x: hidden;
}

.single-service__header {
	box-sizing: border-box;
	padding-top: var(--wp--preset--spacing--lg);
}

.single-service__header .yoast-breadcrumbs {
	margin-bottom: 80px;
}

.single-service__title-wrap {
	position: relative;
}

.single-service__legend {
	color: rgb(137, 144, 173);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	position: absolute;
	top: -27px;
	left: 0;
	margin: 0;
}

.single-service__title {
	margin-top: 0;
	margin-bottom: 45px;
}

.single-service__body {
	gap: 8.33%;
	margin-bottom: var(--wp--preset--spacing--lg);
}

@media (max-width: 1179px) {
	.single-service__body {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--xl);
	}
	.single-service__body > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.single-service__content {
	flex: 0 0 58.33%;
}

.single-service__sidebar {
	flex: 0 0 33.33%;
	position: sticky;
	top: 110px;
	align-self: start;
}

.single-service__content .wp-block-post-content > * {
	max-width: 800px;
}

.single-service__content .wp-block-post-content a:not(.wp-block-button__link) {
	text-decoration: underline;
}

.single-service__content .wp-block-post-content h2:not(:first-child),
.single-service__content .wp-block-post-content h3:not(:first-child),
.single-service__content .wp-block-post-content h4:not(:first-child) {
	margin-top: 2.5em;
}

@media (min-width: 1180px) {
	.single-service__header {
		padding-top: var(--wp--preset--spacing--xl);
	}

	.single-service__title-wrap {
		max-width: 58.33%;
	}

	.single-service__body {
		margin-bottom: var(--wp--preset--spacing--xl);
	}
}

.single-service__content-wrap {
	margin-top: 0;
}

.single-service__content-wrap .entry-content {
	margin: 0;
}

.single-service__content-inner {
	margin: var(--wp--preset--spacing--lg) 0 0;
}

.single-service__content-inner > .entry-content > * {
	max-width: 800px;
}

@media (min-width: 782px) {
	.single-service__content-inner {
		margin: var(--wp--preset--spacing--lg) 0 0;
	}
}

@media (min-width: 1180px) {
	.single-service__content-inner {
		margin: var(--wp--preset--spacing--xl) 0 0;
	}
}

/* --------------------------------------------------------------------------
   Service Hero — blueish background section
   -------------------------------------------------------------------------- */

.service-hero {
	background: rgba(31, 44, 73, 0.08);
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--lg);
	margin-bottom: 0;
	box-sizing: border-box;
}

.service-hero__inner {
	padding: 0;
}

.service-hero__inner--columns {
	display: grid;
	grid-template-columns: 58% 33%;
	grid-template-rows: auto auto;
	justify-content: space-between;
	column-gap: 0;
	row-gap: 0;
}

.service-hero__header {
	grid-column: 1;
	grid-row: 1;
}

.service-hero__left {
	grid-column: 1;
	grid-row: 2;
}

.service-hero__right {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
}

.service-hero__title {
	margin-top: 0;
	margin-bottom: 45px;
}

.service-hero__excerpt,
.service-hero__description p.lead {
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--primary);
	margin-top: 0;
	margin-bottom: 32px;
}

.service-hero__description {
	color: var(--wp--preset--color--primary);
}

.service-hero__description p {
	margin-top: 0;
	margin-bottom: 32px;
}

.service-hero__description img {
	display: block;
	height: auto;
	max-width: 100%;
	margin-bottom: 32px;
}

/* Breadcrumbs inside hero */
.service-hero .breadcrumbs,
.service-hero .yoast-breadcrumbs,
.service-hero [class*="yoast-seo-breadcrumbs"] {
	margin-bottom: 55px;
	font-size: 1rem;
}


@media (min-width: 1180px) {
	.service-hero {
		padding-top: var(--wp--preset--spacing--xxl);
		padding-bottom: var(--wp--preset--spacing--xxl);
	}
	.service-hero .breadcrumbs,
	.service-hero .yoast-breadcrumbs,
	.service-hero [class*="yoast-seo-breadcrumbs"] {
		margin-bottom: 80px;
	}
}

@media (max-width: 1179.98px) {
	.service-hero__inner--columns {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
	}
	.service-hero__header {
		grid-column: 1;
		grid-row: 1;
	}
	.service-hero__left {
		grid-column: 1;
		grid-row: 2;
	}
	.service-hero__right {
		grid-column: 1;
		grid-row: 3;
	}
}

/* --------------------------------------------------------------------------
   Service Buttons — tile-style links
   -------------------------------------------------------------------------- */

.service-buttons {
	display: block;
	box-sizing: border-box;
	padding: 0 var(--wp--preset--spacing--xs);
	margin: var(--wp--preset--spacing--lg) auto;
	max-width: 1440px;
}

.service-buttons__heading {
	font-weight: 400;
	color: var(--wp--preset--color--secondary);
	margin-bottom: 0;
}

.service-buttons__wrapper {
	display: flex;
	flex-wrap: wrap;
	margin: var(--wp--preset--spacing--md) -10px 0;
}

.service-buttons__btn {
	display: flex;
	align-items: center;
	width: 100%;
	font-size: 1.33rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	background-color: rgba(31, 44, 73, 0.08);
	padding: 15px var(--wp--preset--spacing--xs);
	min-height: 50px;
	border-radius: 4px;
	margin: 0 10px 20px;
	position: relative;
	transition: box-shadow 0.2s linear;
	overflow-wrap: break-word;
	word-break: break-word;
}

.service-buttons__btn::after {
	content: "";
	border-right: 4px solid var(--wp--preset--color--primary);
	border-top: 4px solid var(--wp--preset--color--primary);
	width: 15px;
	height: 15px;
	position: absolute;
	top: 50%;
	right: 0;
	transform: translate(-45px, -50%) rotate(45deg);
	opacity: 0;
	transition: all 0.2s ease;
}

.service-buttons__btn:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	box-shadow: 0 0 0 2px var(--wp--preset--color--primary);
}

.service-buttons__btn:hover::after {
	opacity: 1;
	transform: translate(-30px, -50%) rotate(45deg);
}

@media (min-width: 782px) {
	.service-buttons {
		padding: 0 var(--wp--preset--spacing--lg);
	}
}

@media (min-width: 1180px) {
	.service-buttons {
		padding: 0 var(--wp--preset--spacing--xxl);
		margin: var(--wp--preset--spacing--xxl) auto;
	}
	.service-buttons__wrapper {
		margin: var(--wp--preset--spacing--md) -25px 0;
	}
	.service-buttons__btn {
		width: calc(33.33% - 110px);
		margin: 0 25px 20px;
	}
}

/* --------------------------------------------------------------------------
   Employee Slider — dark bg, horizontal scroll
   -------------------------------------------------------------------------- */

.employee-slider {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--lg);
	position: relative;
	overflow: hidden;
	max-width: 1440px;
	margin-top: var(--wp--preset--spacing--xl);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.employee-slider__header {
	max-width: none;
	margin: 0 0 45px;
	padding: 0;
}

.employee-slider__title {
	color: var(--wp--preset--color--base);
	font-weight: 700;
	margin-top: 0;
}

.employee-slider__track {
	display: flex;
	gap: 45px;
	overflow-x: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 0;
	max-width: none;
	margin: 0;
}

.employee-slider__track::-webkit-scrollbar {
	display: none;
}

.employee-slider__item {
	flex: 0 0 200px;
}

.employee-slider__item .employee-card {
	color: var(--wp--preset--color--base);
}

.employee-slider__item .employee-card__body {
	background-color: transparent;
	padding: 0;
}

.employee-slider__item .employee-card__download {
	display: none;
}

.employee-slider__item .employee-card__name {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 9px;
}

.employee-slider__item .employee-card__name a,
.employee-slider__item .employee-card__contact a {
	color: var(--wp--preset--color--base);
	transition: color 0.3s ease;
}

.employee-slider__item .employee-card__name a:hover,
.employee-slider__item .employee-card__contact a:hover {
	color: var(--wp--preset--color--secondary);
}

.employee-slider__item .employee-card__title {
	color: var(--wp--preset--color--base);
	margin-bottom: 20px;
	line-height: 1.3;
}

.employee-slider__item .employee-card__photo {
	border-radius: 0;
	width: 100%;
	margin-bottom: var(--wp--preset--spacing--xs);
}

.employee-slider__item .employee-card__contact {
	margin-top: 15px;
	font-size: 0.9rem;
	line-height: 1.6;
}

.employee-slider__nav,
.employee-slider__nav[hidden] {
	display: none;
	position: absolute;
	border: none;
	background: none;
	color: var(--wp--preset--color--base);
	cursor: pointer;
	border-radius: 0;
	padding: var(--wp--preset--spacing--xs);
	transition: opacity 0.2s ease;
	z-index: 2;
	line-height: 0;
}

.employee-slider__nav:hover {
	background: none;
	opacity: 0.7;
}

.employee-slider__nav svg {
	display: block;
	width: 25px;
	height: auto;
	fill: var(--wp--preset--color--secondary);
}

.employee-slider__nav:hover svg {
	fill: var(--wp--preset--color--base);
}

.employee-slider__nav--next {
	right: 0;
}

@media (min-width: 782px) {
	.employee-slider {
		padding-top: var(--wp--preset--spacing--lg);
		padding-bottom: var(--wp--preset--spacing--lg);
	}
	.employee-slider__nav {
		display: block;
		top: var(--wp--preset--spacing--60);
		transform: none;
	}
	.employee-slider__nav svg {
		width: 30px;
	}
	.employee-slider__nav--prev {
		right: 100px;
		left: auto;
		transform: scaleX(-1);
	}
	.employee-slider__nav--next {
		right: 60px;
	}
}

@media (min-width: 1180px) {
	.employee-slider {
		padding-top: var(--wp--preset--spacing--xl);
		padding-bottom: var(--wp--preset--spacing--xl);
	}
	.employee-slider__nav {
		top: 50%;
		transform: translateY(-50%);
	}
	.employee-slider__nav svg {
		width: 38px;
	}
	.employee-slider__nav--prev {
		left: 0;
		right: auto;
		transform: translateY(-50%) scaleX(-1);
	}
	.employee-slider__nav--next {
		right: 0;
	}
}

/* --------------------------------------------------------------------------
   Services Section — bottom-of-page Kompetanse grid
   -------------------------------------------------------------------------- */

.services-section {
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--lg);
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.services-section__header {
	max-width: none;
	margin: 0;
	padding: 0;
}

.services-section__title {
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 45px;
}

.services-section__title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.services-section__grid {
	max-width: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.services-section__category-title {
	margin-bottom: 0.75rem;
}

.services-section__category-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.services-section__category-title a:hover {
	text-decoration: underline;
}

.services-section__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.services-section__list li {
	padding: 0.2rem 0;
}

.services-section__list a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	font-size: 0.9375rem;
}

.services-section__list a:hover {
	color: var(--wp--preset--color--secondary);
}

@media (min-width: 768px) {
	.services-section {
		padding-top: var(--wp--preset--spacing--xl);
		padding-bottom: var(--wp--preset--spacing--xl);
	}
}

@media (min-width: 1180px) {
	.services-section {
		padding-top: var(--wp--preset--spacing--xxl);
		padding-bottom: var(--wp--preset--spacing--xxl);
	}
}

@media (max-width: 1024px) {
	.services-section__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.services-section__grid {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   Archive Service
   ========================================================================== */

.archive-service__title {
	margin-bottom: 45px;
}

/* ==========================================================================
   Single Location — Hero
   Based on page-hero pattern: same alignment, title overlap, sidebar structure.
   ========================================================================== */

/* Hero media — mirrors page-hero__media */
.location-hero__media {
	position: relative;
	max-width: 1440px;
	margin: 0 auto;
	overflow: hidden;
	max-height: 435px;
}

.location-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(16, 22, 37, 0.5);
	pointer-events: none;
	z-index: 1;
}

.location-hero__image,
.location-hero__video {
	width: 100%;
	height: 435px;
	object-fit: cover;
	display: block;
}

/* Hero content — mirrors page-hero structure */
.location-hero {
	max-width: 1440px;
	margin: 0 auto;
	box-sizing: border-box;
	display: flex;
}

/* --- Main column (dark blue) --- */
.location-hero__main {
	flex: 2;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding: 80px var(--wp--preset--spacing--xs) var(--wp--preset--spacing--lg);
}

/* Title overlaps the image above via height:0 wrapper + negative top */
.location-hero__title-wrap {
	height: 0;
	overflow: visible;
	position: relative;
	z-index: 2;
	top: -55px;
}

.location-hero__title {
	font-size: clamp(2.3rem, calc(2.3rem + 1.7rem * (100vw - 320px) / 1120px), 4rem);
	font-weight: 600;
	color: var(--wp--preset--color--base);
	margin: 0;
	line-height: 1.1;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
}

.location-hero__excerpt {
	font-size: 1.125rem;
	line-height: 1.67;
	max-width: 570px;
	margin-top: 20.8px;
}

.location-hero__excerpt p {
	margin: 0;
}

/* --- Contact sidebar (gray) --- */
.location-hero__sidebar {
	flex: 0 0 20%;
	background-color: var(--wp--preset--color--light-gray);
	color: var(--wp--preset--color--primary);
	padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--xs);
}

.location-hero__sidebar-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.location-hero__sidebar-icon {
	flex-shrink: 0;
	opacity: 0.7;
}

.location-hero__sidebar a {
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
	font-size: 1.125rem;
}


.location-hero__sidebar a:hover {
	text-decoration: none;
}

.location-hero__sidebar-address {
	margin-top: 1.25rem;
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--wp--preset--color--contrast);
}

.location-hero__sidebar-address a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.location-hero__sidebar-address a:hover {
	text-decoration: underline;
}

/* Large screens — match front-page hero alignment (90px horizontal) */
@media (min-width: 1180px) {
	.location-hero__main {
		padding: 100px var(--wp--preset--spacing--xl) 80px;
	}
	.location-hero__title-wrap {
		top: -70px;
	}
	.location-hero__sidebar {
		padding: 80px var(--wp--preset--spacing--lg);
		position: relative;
	}
	/* Decorative lines at sidebar left edge */
	.location-hero__sidebar::before,
	.location-hero__sidebar::after {
		content: "";
		position: absolute;
		top: 50%;
		transform: translate(0, -50%);
		height: 2px;
		width: 40px;
	}
	.location-hero__sidebar::before {
		left: -40px;
		background-color: rgba(241, 241, 241, 0.3);
	}
	.location-hero__sidebar::after {
		left: 0;
		background-color: rgba(31, 44, 73, 0.3);
	}
}

/* Below 1180px — stack sidebar below main */
@media (max-width: 1179px) {
	.location-hero {
		flex-wrap: wrap;
	}
	.location-hero__main {
		flex-basis: 100%;
		box-sizing: border-box;
	}
	.location-hero__sidebar {
		flex: none;
		width: auto;
		flex-basis: 100%;
		box-sizing: border-box;
	}
}

/* ==========================================================================
   Single Location — Body & Services
   ========================================================================== */

.single-location__body {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--lg);
	justify-content: space-between;
}

@media (min-width: 992px) {
	.single-location__body {
		padding-top: var(--wp--preset--spacing--xxl);
		padding-bottom: var(--wp--preset--spacing--xxl);
	}
}

@media (max-width: 1179px) {
	.single-location__body {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--xl);
	}
	.single-location__body > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.single-location__sidebar {
	position: sticky;
	top: 110px;
	align-self: start;
}

.single-location__services {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-top: var(--wp--preset--spacing--lg);
	padding-bottom: var(--wp--preset--spacing--lg);
}

@media (min-width: 992px) {
	.single-location__services {
		padding-top: var(--wp--preset--spacing--xxl);
		padding-bottom: var(--wp--preset--spacing--xxl);
	}
}

.single-location__services-title {
	font-size: 2.3rem;
	font-weight: 700;
	margin-bottom: var(--wp--preset--spacing--50);
}


@media (min-width: 782px) {
	.single-location__services-title {
		font-size: 3.75rem;
	}
}

/* News-slider directly follows a services section on several templates
   (single-location, page, single-service, taxonomy-service_category). Both are
   white-bg with their own padding, which compounds into 120–175px of empty
   space. Zero the news-slider's top padding in those adjacencies; the services
   section's bottom padding alone provides enough separation. */
.single-location__services + .news-slider,
.services-section + .news-slider {
	padding-top: 0;
}

/* ==========================================================================
   Archive Press Media — two-column layout (content + contacts)
   ========================================================================== */


.press-media {
	display: flex;
	gap: 8%;
	padding-bottom: var(--wp--preset--spacing--xl);
}

.press-media__content {
	flex: 0 0 58%;
}

.press-media__contacts {
	flex: 0 0 33%;
}

.archive-press-media__title {
	margin-bottom: 45px;
}

.press-media__section {
	margin-bottom: 6rem;
}

.press-media__section-title {
	margin-bottom: 1rem;
}

.press-media__grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 1.5rem;
}

.press-media__grid--logos {
	grid-template-columns: repeat(3, 1fr);
}

.press-media__grid--photos {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 575px) {
	.press-media__grid--logos,
	.press-media__grid--photos {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 499px) {
	.press-media__grid--logos,
	.press-media__grid--photos {
		grid-template-columns: 1fr;
	}
}

.press-media__item {
	box-shadow: 0 8px 35px -5px rgba(31, 44, 73, 0.25);
	background: var(--wp--preset--color--base);
	overflow: hidden;
}

.press-media__thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.press-media__item-title {
	margin: 0;
	padding: 15px 1.25rem;
	background-color: rgba(31, 44, 73, 0.85);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	line-height: 1;
}

.press-media__downloads {
	list-style: none;
	padding: 0;
	margin: 0;
}

.press-media__downloads li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.press-media__downloads li:last-child {
	border-bottom: none;
}

.press-media__download-link {
	display: block;
	padding: 15px 1.25rem;
	color: var(--wp--preset--color--primary);
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
}

.press-media__download-link:hover {
	background-color: rgba(0, 0, 0, 0.03);
}

.press-media__contacts-title {
	margin-bottom: 1rem;
}

.press-media__contacts-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 1169px) {
	.press-media {
		flex-direction: column;
	}
	.press-media__content,
	.press-media__contacts {
		flex: none;
	}
}

/* ==========================================================================
   Page Hero — title + excerpt + child-page navigation
   Matches old site: title overlaps image, dark bg left, gray nav right.
   ========================================================================== */

.single-page .page-hero,
.single-post .page-hero {
	max-width: 1440px;
	margin: 0 auto;
	box-sizing: border-box;
	display: flex;
}

/* --- Main column (dark blue, ~70%) --- */
.page-hero__main {
	flex: 2;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	padding: 80px var(--wp--preset--spacing--xs) var(--wp--preset--spacing--lg);
}

/* Title overlaps the image above via height:0 wrapper + negative top */
.page-hero__title-wrap {
	height: 0;
	overflow: visible;
	position: relative;
	z-index: 2;
	top: -55px;
}

.page-hero__title {
	font-size: clamp(2.3rem, calc(2.3rem + 1.7rem * (100vw - 320px) / 1120px), 4rem);
	font-weight: 600;
	color: var(--wp--preset--color--base);
	margin: 0;
	line-height: 1.1;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
}

.page-hero__title--small {
	font-size: clamp(2rem, calc(2rem + 1.5rem * (100vw - 320px) / 1120px), 3.5rem);
}

.page-hero__title--smallest {
	font-size: clamp(1.5rem, calc(1.5rem + 0.5rem * (100vw - 320px) / 1120px), 2rem);
}

.page-hero__excerpt {
	font-size: 1.125rem;
	line-height: 1.67;
	max-width: 570px;
	margin-top: 20.8px;
}

.page-hero__excerpt p {
	margin-top: 0;
	margin-bottom: 32px;
}

.page-hero__excerpt p:last-child {
	margin-bottom: 0;
}

.page-hero__excerpt a {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

.page-hero__excerpt a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* --- Nav sidebar (gray, ~20%) --- */
.page-hero__nav {
	flex: 0 0 20%;
	background-color: var(--wp--preset--color--light-gray);
	color: var(--wp--preset--color--primary);
	padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--xs);
}

.page-hero__nav-heading {
	display: block;
	font-size: 1.125rem;
	margin-bottom: 2px;
}

.page-hero__nav-list + .page-hero__nav-heading {
	margin-top: 20px;
}

.page-hero__nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.page-hero__nav-list li {
	margin-bottom: 2px;
}

.page-hero__nav-list a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	font-size: 1.125rem;
	line-height: 1.5;
	display: inline-block;
	transition: all 0.3s ease;
}

.page-hero__nav-list a:hover {
	text-decoration: none;
	color: var(--wp--preset--color--accent);
	transform: translateX(5px);
}

@media (min-width: 1180px) {
	.page-hero__main {
		padding: 100px var(--wp--preset--spacing--xl) 80px;
	}
	.page-hero__title-wrap {
		top: -70px;
	}
	.page-hero__nav {
		padding: 80px var(--wp--preset--spacing--lg);
		position: relative;
	}
	.page-hero__nav::before,
	.page-hero__nav::after {
		content: "";
		position: absolute;
		top: 50%;
		transform: translate(0, -50%);
		height: 2px;
		width: 40px;
	}
	.page-hero__nav::before {
		left: -40px;
		background-color: rgba(241, 241, 241, 0.3);
	}
	.page-hero__nav::after {
		left: 0;
		background-color: rgba(31, 44, 73, 0.3);
	}
}

@media (max-width: 1179px) {
	.single-page .page-hero,
	.single-post .page-hero {
		flex-wrap: wrap;
	}
	.page-hero__main {
		flex-basis: 100%;
		box-sizing: border-box;
	}
	.page-hero__nav {
		flex: none;
		width: auto;
		flex-basis: 100%;
		box-sizing: border-box;
	}
}

@media (min-width: 782px) and (max-width: 1179px) {
	.page-hero__main {
		padding: var(--wp--preset--spacing--lg);
	}
	.page-hero__title-wrap {
		top: -40px;
	}
	.page-hero__nav {
		padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg);
	}
}

@media (max-width: 781px) {
	.page-hero__main {
		padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--xs);
	}
	.page-hero__title-wrap {
		top: -25px;
	}
	.page-hero__nav {
		padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--xs);
	}
}

/* ==========================================================================
   Page (generic) — 58/33 columns
   ========================================================================== */


/* Hero media — constrained height, dark overlay, flush with page-hero below */
.page-hero__media {
	position: relative;
	max-width: 1440px;
	margin: 0 auto;
	overflow: hidden;
	max-height: 435px;
}

/* Dim overlay only on images, not videos */
.page-hero__media:has(.page-hero__image)::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(16, 22, 37, 0.5);
	pointer-events: none;
	z-index: 1;
}

.page-hero__image,
.page-hero__video {
	width: 100%;
	height: 435px;
	object-fit: cover;
	display: block;
}

.single-page__sidebar {
	position: sticky;
	top: 110px;
	align-self: start;
}

.single-page__body {
	justify-content: space-between;
}

@media (max-width: 1179px) {
	.single-page__body {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--xl);
	}
	.single-page__body > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.single-page .single-page__body {
	margin-block-start: var(--wp--preset--spacing--xl);
	margin-block-end: var(--wp--preset--spacing--xl);
}

.single-page__content ul,
.single-page__content ol {
	margin-top: 0;
	margin-bottom: 32px;
}

/* Shared: post-content H2 style. font-size inherits from elements.h2 (fluid). */
.single-page__content h2,
.single-location__content h2 {
	font-weight: 600;
	line-height: 1.2;
	margin-top: 80px;
	margin-bottom: 20.8px;
}

.single-page__content h2:first-child,
.single-location__content h2:first-child {
	margin-top: 0;
}

.single-page__content p {
	margin-top: 0;
	margin-bottom: 32px;
}

.single-page__content p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Single Post (blog) — 58/33 columns, no tags/nav
   ========================================================================== */

/* Extra breathing room before subsequent h2 sections in post content */
.single-post__content h2:not(:first-child),
.single-post__content h3:not(:first-child),
.single-post__content h4:not(:first-child) {
	margin-top: 2.5em;
}

.single-post__hero img {
	width: 100%;
	height: auto;
	margin-bottom: var(--wp--preset--spacing--50);
}

.single-post__sidebar {
	position: sticky;
	top: 110px;
	align-self: start;
}

.single-post__body {
	/* 110px gap from hero; 24px comes from the WP block margin above, rest from padding. */
	padding-top: 86px;
	margin-bottom: var(--wp--preset--spacing--60);
	justify-content: space-between;
}

@media (max-width: 1179px) {
	.single-post__body {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--xl);
	}
	.single-post__body > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.single-post__categories {
	margin-bottom: var(--wp--preset--spacing--xl);
}

/* Sidebar category links — underlined text list matching old site */
.single-post__category-list-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.single-post__category-list-links a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	font-size: 1.125rem;
	line-height: 1.5;
}

.single-post__category-list-links a:hover,
.single-post__category-list-links a.single-post__category-list-links-link--active {
	color: var(--wp--preset--color--secondary);
}

/* Hero date (inside page-hero__main on posts) */
.page-hero__date {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 10px;
	margin-bottom: 0;
}

/* Single post hero nav — vertically center the back link */
.single-post .page-hero__nav {
	display: flex;
	align-items: center;
}

.single-post .page-hero__nav-list a {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	display: block;
}

/* ==========================================================================
   Blog Index — category filter + post list
   ========================================================================== */


/* Blog index title */
.blog-index__title {
	margin-top: 0 !important;
	margin-bottom: 45px !important;
}

/* Eyebrow above the h1 on category archives */
.blog-index__eyebrow {
	font-size: 1rem;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	letter-spacing: 0.05em;
	margin: 0 0 10px !important;
}

/* Category filter bar — underlined text links (matching old site) */
.post-category-filter {
	margin-bottom: var(--wp--preset--spacing--xxl);
}

.post-category-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-category-filter__link {
	font-size: 1.125rem;
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.post-category-filter__link:hover {
	color: var(--wp--preset--color--secondary);
}

.post-category-filter__link--active {
	color: var(--wp--preset--color--secondary);
	text-decoration: underline;
}

@media (max-width: 600px) {
	.post-category-filter__list {
		display: block;
	}
}

/* ==========================================================================
   Post list — card grid (matching old site)
   ==========================================================================
   Layout:
   - Featured (1st post, page 1 only): 2-col grid, image left 60%, content right
   - Posts 2–3: 2-column cards (image top, content below)
   - Posts 4+: 3-column cards
   ========================================================================== */

.post-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--sm);
	margin-bottom: var(--wp--preset--spacing--60);
}

.post-list__item {
	width: calc(100% / 3 - 26.7px);
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 70px;
	margin-bottom: 70px;
}

.post-list__image {
	display: block;
	margin-bottom: 37px;
}

.post-list__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-list__content {
	/* No special styles needed — flows naturally */
}

.post-list__title {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 0;
}

.post-list__title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.post-list__title a:hover {
	text-decoration: underline;
}

.post-list__date {
	font-size: 1.125rem;
	color: #8990ad;
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.post-list__excerpt {
	margin-top: 0.75rem;
	margin-bottom: 0;
	line-height: 1.67;
}

.post-list__more {
	display: inline-block;
	margin-top: 25px;
	padding: 0.7rem 1.25rem;
	background: rgba(31, 44, 73, 0.08);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-size: 1.125rem;
	transition: background-color 0.2s ease;
}

.post-list__more:hover {
	background: rgba(31, 44, 73, 0.15);
}

/* Featured first post: 2-col grid (image left 60%, content right) */
.post-list__item--featured {
	display: grid;
	grid-template-columns: 60% 1fr;
	align-items: center;
	gap: var(--wp--preset--spacing--md);
	width: 100%;
}

.post-list__item--featured .post-list__image {
	margin-bottom: 0;
}

/* Posts 2–3: 2-column — only on page 1 where post 1 is the featured hero.
   Page 2+ has no featured post, so items fall back to the default 3-column width. */
.post-list--page-1 .post-list__item:nth-child(2),
.post-list--page-1 .post-list__item:nth-child(3) {
	width: calc(50% - 20px);
}

/* Pagination */
.post-list__pagination {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: var(--wp--preset--spacing--xxl) !important;
}

.post-list__pagination a,
.post-list__pagination span {
	margin: 0 15px 10px;
	text-decoration: underline;
}

.post-list__pagination .current {
	color: var(--wp--preset--color--secondary);
	font-weight: 700;
	text-decoration: none;
}

/* Responsive: stack everything at mobile */
@media (max-width: 600px) {
	.post-list__item,
	.post-list--page-1 .post-list__item:nth-child(2),
	.post-list--page-1 .post-list__item:nth-child(3) {
		width: 100%;
	}

	.post-list__item--featured {
		display: block;
	}

	.post-list__item--featured .post-list__image {
		margin-bottom: 37px;
	}

	.post-category-filter {
		margin-bottom: var(--wp--preset--spacing--sm);
	}
}

/* ==========================================================================
   Search Results — single column, post-type labels
   ========================================================================== */


/* Search results — card layout matching old site */

.search-results__inner {
	max-width: 58%;
}

.search-results .search-results__header {
	margin-bottom: 45px;
}

.search-results__legend {
	color: rgb(137, 144, 173);
	font-size: 1rem;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 0;
}

.search-results__title {
	margin-top: 0;
}

.search-results__list {
}

.search-results__item {
	padding-bottom: 70px;
	margin-bottom: 70px;
	border-bottom: 1px solid rgb(222, 226, 230);
}

.search-results__item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.search-results__type-label {
	display: block;
	font-size: 1rem;
	color: rgb(137, 144, 173);
	margin-bottom: 24px;
}

.search-results__image-link {
	display: block;
	margin-bottom: 20px;
}

.search-results__image {
	width: 100%;
	height: auto;
	display: block;
}

.search-results__item-title {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 20px;
}

.search-results__item-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.search-results__item-title a:hover {
	text-decoration: underline;
}

.search-results__item-excerpt {
	font-size: 1rem;
	line-height: 1.67;
	margin-bottom: 0;
}

.search-results__read-more {
	display: inline-block;
	margin-top: 25px;
	padding: 11px 20px;
	font-size: 1.125rem;
	color: var(--wp--preset--color--primary);
	background: rgba(31, 44, 73, 0.08);
	border-radius: 4px;
	text-decoration: none;
}

.search-results__read-more:hover {
	background: rgba(31, 44, 73, 0.15);
}

/* Employee card in search: horizontal layout with small photo */
.search-results__employee-card .employee-card {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.search-results__employee-card .employee-card__photo-link {
	flex-shrink: 0;
	width: 135px;
}

.search-results__employee-card .employee-card__photo {
	width: 135px;
	height: auto;
}

.search-results__employee-card .employee-card__body {
	flex: 1;
	padding: 0;
}

.search-results__employee-card .employee-card__download {
	display: none;
}

.search-results__no-results {
	font-size: 1.125rem;
	color: var(--wp--preset--color--secondary);
	padding: var(--wp--preset--spacing--50) 0;
}

.search-results__pagination {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--60);
	display: flex;
	gap: 0.25rem;
}

.search-results__pagination a,
.search-results__pagination span {
	padding: 0.5rem 0.75rem;
}

@media (max-width: 1179px) {
	.search-results__inner {
		max-width: 100%;
	}

}

@media (max-width: 781px) {
	.search-results__item {
		padding-bottom: var(--wp--preset--spacing--sm);
		margin-bottom: var(--wp--preset--spacing--sm);
	}

	.search-results__title {
		font-size: 2rem;
	}
}

/* --------------------------------------------------------------------------
   Contact Persons
   Horizontal card layout: photo left, name/title/contact right.
   Used by the harris/contact-persons block in sidebars and by custom
   markup in service/taxonomy heroes. The .contact-persons--inline variant
   overrides this with a grid of larger cards.
   -------------------------------------------------------------------------- */

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

.contact-persons__item {
	padding-bottom: 45px;
}

.contact-persons__item:last-child {
	padding-bottom: 0;
}

.contact-persons .employee-card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--xs);
}

.contact-persons .employee-card__photo-link {
	flex-shrink: 0;
}

.contact-persons .employee-card__photo {
	width: 135px;
	height: 135px;
	border-radius: 0;
}

.contact-persons .employee-card__body {
	background: none;
	padding: 0;
}

.contact-persons .employee-card__name {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 5px;
}

.contact-persons .employee-card__title {
	margin-bottom: 15px;
}

.contact-persons .employee-card__contact {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.contact-persons .employee-card__contact-item {
	line-height: 1.3;
}

.contact-persons .employee-card__download {
	display: none;
}

.contact-persons .employee-card a {
	text-decoration: none;
	transition: color 0.2s;
}

.contact-persons .employee-card__contact-item a {
	text-decoration: underline;
}

.contact-persons .employee-card__name a:hover,
.contact-persons .employee-card__contact-item a:hover {
	color: var(--wp--preset--color--secondary);
}

@media (min-width: 1180px) {
	.contact-persons__item {
		padding-bottom: 70px;
	}
}

@media (max-width: 767px) {
	.contact-persons .employee-card {
		flex-direction: column;
		gap: 15px;
	}
	.contact-persons .employee-card__photo-link {
		flex-shrink: 1;
		width: 100%;
	}
	.contact-persons .employee-card__photo {
		width: 100%;
		max-width: 100%;
		height: auto;
	}
}

.contact-persons--inline .contact-persons__list--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: var(--wp--preset--spacing--xxl);
}

.contact-persons--inline .contact-persons__item {
	flex: 0 0 auto;
	display: flex;
	padding-bottom: 45px;
	margin-right: 45px;
}

/* Restyle employee-card to horizontal layout inside inline contact persons */
.contact-persons--inline .employee-card {
	display: flex;
	flex-direction: row;
	gap: 0;
}

.contact-persons--inline .employee-card__body {
	background-color: transparent;
	padding: 0;
}

.contact-persons--inline .employee-card__photo-link {
	flex-shrink: 0;
	margin-right: 15px;
}

.contact-persons--inline .employee-card__photo {
	width: auto;
	height: 135px;
	border-radius: 0;
}

.contact-persons--inline .employee-card__name {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 5px;
}

.contact-persons--inline .employee-card__title {
	margin-bottom: 15px;
}

.contact-persons--inline .employee-card__contact {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.contact-persons--inline .employee-card__download {
	display: none;
}

.contact-persons--inline .employee-card__name a:hover,
.contact-persons--inline .employee-card__contact-item a:hover {
	color: var(--wp--preset--color--secondary);
}

@media (min-width: 782px) {
	.contact-persons--inline .employee-card__photo-link {
		margin-right: var(--wp--preset--spacing--xs);
	}
}

@media (min-width: 1180px) {
	.contact-persons--inline .contact-persons__item {
		padding-bottom: 70px;
		margin-right: 70px;
	}
	.contact-persons--inline .employee-card__photo {
		height: 200px;
	}
}

@media (max-width: 767px) {
	.contact-persons--inline .contact-persons__list--inline {
		gap: var(--wp--preset--spacing--xs);
	}
	.contact-persons--inline .contact-persons__item {
		margin-right: 0;
		padding-bottom: 0;
	}
	.contact-persons--inline .employee-card {
		flex-direction: column;
		gap: 10px;
	}
	.contact-persons--inline .employee-card__photo-link {
		width: 135px;
		margin-right: 0;
	}
	.contact-persons--inline .employee-card__photo {
		width: 135px;
		height: 135px;
	}
}



/* ==========================================================================
   404 Page — "Surfe-loven"
   ========================================================================== */

.page-404 {
	border: 6px solid rgba(183, 190, 179, 0.15);
	padding: 4.375rem;
	margin-top: 3.5rem;
	margin-bottom: var(--wp--preset--spacing--60);
	border-radius: 6px;
	position: relative;
	background: var(--wp--preset--color--base);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.page-404__heading {
	color: var(--wp--preset--color--secondary);
}

.page-404__subheading {
	margin-top: 3rem;
}

.page-404 a {
	text-decoration: underline;
}

.page-404__surfeloven {
	max-width: 400px;
}

.page-404__list {
	counter-reset: list;
	padding-left: 0;
}

.page-404__list li {
	margin-bottom: 0.3125rem;
	list-style: none;
}

.page-404__list li::before {
	content: counter(list, lower-alpha) ") ";
	counter-increment: list;
}

.page-404__footer-text {
	padding-right: 1.5rem;
}

/* Decorative images — hidden on small screens */
.page-404__clouds,
.page-404__drink,
.page-404__sun,
.page-404__surfboards,
.page-404__waves {
	display: none;
}

@media (min-width: 1200px) {
	.page-404__clouds,
	.page-404__drink,
	.page-404__sun,
	.page-404__surfboards,
	.page-404__waves {
		display: block;
		position: absolute;
	}

	.page-404__clouds {
		top: 4%;
		left: -285px;
	}

	.page-404__drink {
		top: 34%;
		left: -145px;
		z-index: -1;
	}

	.page-404__sun {
		top: -60px;
		right: -60px;
		z-index: -1;
	}

	.page-404__surfboards {
		bottom: -70px;
		right: -190px;
	}

	.page-404__waves--1 {
		top: 69%;
		left: -165px;
		z-index: -1;
	}

	.page-404__waves--2 {
		top: 49%;
		right: -110px;
		z-index: -1;
	}

	.page-404__waves--3 {
		bottom: -120px;
		right: 16%;
		z-index: -1;
	}
}

@media (max-width: 782px) {
	.page-404 {
		padding: 1.25rem;
		margin-top: 2rem;
	}
}

/* --------------------------------------------------------------------------
   XL screens — taller header that shrinks on scroll (matches old site)
   -------------------------------------------------------------------------- */

@media (min-width: 1980px) {
	.site-header {
		height: 145px;
	}

	body {
		margin-top: 145px;
	}

	.site-header__logo img {
		width: 190px;
	}

	body.header-minimized .site-header {
		height: 90px;
	}

	body.header-minimized {
		margin-top: var(--wp--preset--spacing--xl);
	}

	body.header-minimized .site-header__logo img {
		width: 146px;
	}

	/* Overlay logo matches taller header */
	.main-menu__logo {
		height: 145px;
	}

	.main-menu__logo img {
		width: 190px;
	}

	body.header-minimized .main-menu__logo {
		height: 90px;
	}

	body.header-minimized .main-menu__logo img {
		width: 146px;
	}

	/* Overlay content pushed down for taller header */
	.main-menu__left {
		padding-top: 165px;
	}

	.main-menu__right {
		padding-top: 165px;
	}

	body.header-minimized .main-menu__left {
		padding-top: 110px;
	}

	body.header-minimized .main-menu__right {
		padding-top: 110px;
	}

}

/* ==========================================================================
   Contact Locations block — /om-harris/kontaktinformasjon/
   Typography-forward office blocks separated by hairlines.
   ========================================================================== */

.contact-locations {
	display: flex;
	flex-direction: column;
	margin: 0;
	color: var(--wp--preset--color--primary);
}

.contact-locations__card {
	padding: 36px 0;
	border-top: 1px solid rgba(31, 44, 73, 0.15);
}

.contact-locations__card:first-child {
	padding-top: 0;
	border-top: none;
}

.contact-locations__card:last-child {
	padding-bottom: 0;
}

.contact-locations__header {
	margin: 0 0 1.25rem;
}

.contact-locations__title {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--heading-2, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.contact-locations__title a {
	color: inherit;
	text-decoration: none;
}

.contact-locations__title a:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.contact-locations__details {
	display: grid;
	grid-template-columns: 160px 1fr;
	column-gap: 1.5rem;
	row-gap: 0.55rem;
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.contact-locations__details dt {
	grid-column: 1;
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.contact-locations__details dd {
	grid-column: 2;
	margin: 0;
	color: var(--wp--preset--color--primary);
}

.contact-locations__details a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.contact-locations__details a:hover {
	text-decoration: none;
}

@media (max-width: 767px) {
	.contact-locations__details {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 0;
	}
	.contact-locations__details dt {
		grid-column: 1;
		margin-top: 0.65rem;
		font-size: 0.875rem;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--wp--preset--color--secondary);
	}
	.contact-locations__details dt:first-child {
		margin-top: 0;
	}
	.contact-locations__details dd {
		grid-column: 1;
	}
}

/* Single-location variant — narrower containers (sidebar) stack labels above values. */
.contact-locations--single .contact-locations__card {
	padding: 0;
	border-top: none;
}

.contact-locations--single .contact-locations__details {
	grid-template-columns: 1fr;
	column-gap: 0;
	row-gap: 0;
	font-size: 1rem;
}

.contact-locations--single .contact-locations__details dt {
	grid-column: 1;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

.contact-locations--single .contact-locations__details dt:first-child {
	margin-top: 0;
}

.contact-locations--single .contact-locations__details dd {
	grid-column: 1;
}

/* === CPT single content: inline image/figure overflow guards === */
/* Constrains imgs and captioned figures to their column width; classic
   [caption] shortcode emits <figure style="width:Npx"> which would otherwise
   break out of narrow flex columns. */

.single-employee__left img,
.single-service__content img,
.single-location__content img,
.single-page__content img,
.single-post__content img {
	max-width: 100%;
	height: auto;
}

.single-employee__left figure,
.single-employee__left .wp-caption,
.single-service__content figure,
.single-service__content .wp-caption,
.single-location__content figure,
.single-location__content .wp-caption,
.single-page__content figure,
.single-page__content .wp-caption,
.single-post__content figure,
.single-post__content .wp-caption {
	max-width: 100%;
}

/* Prose templates (post + page) get caption styling and alignnone overrides. */
.single-page__content figure,
.single-page__content .wp-caption,
.single-post__content figure,
.single-post__content .wp-caption {
	margin-bottom: var(--wp--custom--figure--margin-bottom);
}

.single-page__content .wp-caption-text,
.single-page__content figcaption,
.single-post__content .wp-caption-text,
.single-post__content figcaption {
	font-size: var(--wp--custom--caption--font-size);
	margin-top: var(--wp--custom--caption--gap);
	color: var(--wp--custom--caption--color);
}

.single-page__content .alignnone,
.single-page__content .wp-caption.alignnone,
.single-post__content .alignnone,
.single-post__content .wp-caption.alignnone {
	margin-left: 0 !important;
	margin-right: auto !important;
}
