/*
Theme Name: C. Eidenskogs
Theme URI: https://ceidenskogs.se
Author: C. Eidenskogs Bygg AB
Description: Webbtema för C. Eidenskogs Bygg AB, baserat på Squarespace-sajten.
Version: 1.4.37
Text Domain: ceidenskogs
*/

:root {
	--navy: #083b72;
	--navy-deep: #062c56;
	--white: #ffffff;
	--paper: #f6f4f0;
	--sky: #c1d5ea;
	--vacancy: #1f6aad;
	--accent: #c1d5ea;
	--ink: #111111;
	--muted: #3a3a3a;
	--line: #e6e6e6;
	--placeholder: #c1d5ea;
	--placeholder-ink: #5a7388;
	--max: 1120px;
	--header-h: 92px;
	--radius-pill: 999px;
	--radius-image: 14px;
	--shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	--font: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.55;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--navy);
	color: var(--white);
	padding: 0.6rem 1rem;
	z-index: 1000;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

.wrap {
	width: min(100% - 2rem, var(--max));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--navy);
	color: var(--white);
	box-shadow: var(--shadow);
	padding-top: env(safe-area-inset-top);
}

.site-header__inner {
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-brand img {
	display: block;
	height: 58px;
	width: auto;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: var(--white);
	width: 44px;
	height: 44px;
	cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle span::before {
	top: -7px;
}

.nav-toggle span::after {
	top: 7px;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 1.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a,
.site-nav .nav-parent {
	color: var(--white);
	font-size: 1.02rem;
	font-weight: 500;
}

.site-nav .nav-parent {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: transparent;
	border: 0;
	padding: 0;
	font: inherit;
	font-weight: 500;
	color: var(--white);
	cursor: pointer;
}

.site-nav .nav-parent::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transform: translateY(1px);
}

.site-nav a:hover,
.site-nav .nav-parent:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-item > .nav-parent,
.site-nav a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.site-nav .menu-item-has-children {
	position: relative;
}

.site-nav .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.45rem);
	left: 50%;
	transform: translateX(-50%);
	min-width: 220px;
	padding: 0.45rem 0;
	background: var(--navy-deep);
	border-radius: 10px;
	box-shadow: var(--shadow);
	z-index: 60;
}

.site-nav .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 0.55rem;
}

.site-nav .sub-menu li {
	width: 100%;
}

.site-nav .sub-menu a {
	display: block;
	padding: 0.65rem 1rem;
	white-space: nowrap;
}

.site-nav .menu-item-has-children.is-open > .sub-menu {
	display: block;
}

@media (hover: hover) and (min-width: 861px) {
	.site-nav .menu-item-has-children:hover > .sub-menu,
	.site-nav .menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}
}

@media (max-width: 1100px) and (min-width: 861px) {
	.site-nav ul {
		gap: 0.95rem;
	}

	.site-nav a,
	.site-nav .nav-parent {
		font-size: 0.95rem;
	}
}

.hero {
	position: relative;
	min-height: 0;
	height: min(75vh, calc(100vw * 2 / 3));
	display: grid;
	align-items: start;
	color: var(--white);
	overflow: hidden;
	background: var(--navy);
}

.hero .placeholder {
	position: absolute;
	inset: 0;
	min-height: 100%;
	border-radius: 0;
}

.hero__slides {
	position: absolute;
	inset: 0;
}

img.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transform: scale(1);
	transition: opacity 1.15s ease;
	z-index: 0;
}

img.hero__image.is-active {
	opacity: 1;
	z-index: 1;
	animation: hero-ken 7.5s ease-out forwards;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(to bottom, rgba(8, 30, 50, 0.62) 0%, rgba(8, 30, 50, 0.22) 42%, rgba(8, 30, 50, 0.18) 100%);
	pointer-events: none;
}

@keyframes hero-ken {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.06);
	}
}

.hero__content {
	position: relative;
	z-index: 3;
	padding: 5.5rem 0 3.5rem;
}

.hero h1 {
	margin: 0;
	max-width: none;
	font-size: clamp(2.1rem, 4.4vw, 3.5rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.hero h1::after,
.page-intro h1::after,
.section h1::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 2px;
	background: var(--accent);
	margin-top: 0.9rem;
}

.section {
	padding: 4.5rem 0;
}

.section--navy {
	background: var(--navy);
	color: var(--white);
}

.section--sky {
	background: var(--sky);
	color: var(--navy);
}

.section--sky h1::after,
.section--sky h2::after {
	background: var(--navy);
}

.section--sky .notice {
	background: rgba(8, 59, 114, 0.08);
	color: var(--navy);
}

.section--paper {
	background: var(--paper);
	color: var(--ink);
}

.section--white {
	background: var(--white);
	color: var(--ink);
}

.section--center {
	text-align: center;
}

.section--center p,
.section--center h2 {
	margin-inline: auto;
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3.5rem;
	align-items: center;
}

.split--text-first .split__media {
	order: 2;
}

.intro-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3.5rem 4.5rem;
	align-items: start;
}

.intro-pair > div + div {
	border-left: 1px solid rgba(8, 59, 114, 0.14);
	padding-left: 4.5rem;
}

.intro-single {
	max-width: 40rem;
	padding-bottom: 2.5rem;
}

.intro-single h2 {
	margin-bottom: 0.85rem;
}

.intro-single p {
	max-width: 42ch;
}

.section h1,
.section h2 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 3.4vw, 2.85rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.section p {
	margin: 0 0 1rem;
	font-size: 1.08rem;
	max-width: 52ch;
}

.section.section--center p,
.section.section--center h2 {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.section--center .form label,
.section--center .form .field-label {
	text-align: center;
}

.lede {
	font-size: 1.15rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.7rem 1.7rem;
	border-radius: var(--radius-pill);
	border: 0;
	font: inherit;
	font-family: var(--font);
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn--light {
	background: var(--white);
	color: var(--navy);
}

.btn--navy {
	background: var(--navy);
	color: var(--white);
}

.btn:hover {
	opacity: 1;
}

@media (hover: hover) {
	.btn:hover {
		transform: translateY(-1px);
		box-shadow: 0 8px 18px rgba(8, 59, 114, 0.22);
	}

	.property-card:hover .property-card__media .property-photo,
	.property-card:hover .property-card__media .placeholder {
		transform: scale(1.03);
	}
}

.placeholder {
	background:
		linear-gradient(180deg, rgba(8, 59, 114, 0.18), rgba(8, 59, 114, 0.38)),
		repeating-linear-gradient(
			-32deg,
			transparent,
			transparent 12px,
			rgba(8, 59, 114, 0.06) 12px,
			rgba(8, 59, 114, 0.06) 13px
		),
		var(--placeholder);
	color: var(--placeholder-ink);
	display: grid;
	place-items: center;
	text-align: center;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.78rem;
	border-radius: var(--radius-image);
	min-height: 280px;
}

.placeholder--hero {
	background:
		linear-gradient(90deg, rgba(8, 30, 50, 0.55), rgba(8, 30, 50, 0.2) 55%, rgba(8, 30, 50, 0.35)),
		repeating-linear-gradient(
			-32deg,
			transparent,
			transparent 16px,
			rgba(255, 255, 255, 0.05) 16px,
			rgba(255, 255, 255, 0.05) 17px
		),
		#4a5d6e;
	color: rgba(255, 255, 255, 0.7);
}

.placeholder--square {
	aspect-ratio: 1;
	min-height: 0;
	width: 100%;
}

.placeholder--portrait {
	aspect-ratio: 4 / 5;
	min-height: 0;
	width: 100%;
}

.page-intro {
	padding: 4.5rem 0 2rem;
}

.page-intro h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	line-height: 1.15;
}

.page-intro h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	font-weight: 600;
}

.page-intro p {
	max-width: 62ch;
}

.prose {
	padding: 0 0 4.5rem;
}

.prose h2 {
	margin: 2.5rem 0 1rem;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.prose p {
	max-width: 62ch;
	font-size: 1.08rem;
}

.prose a {
	color: var(--navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	padding-bottom: 4.5rem;
}

.bygg-gallery .card-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem;
	padding-bottom: 1.75rem;
}

.bygg-gallery .card h3 {
	font-size: 1rem;
	font-weight: 600;
}

.bygg-gallery .prose {
	padding-bottom: 0;
}

.bygg-gallery .prose h2 {
	margin-top: 0;
}

.bygg-gallery > h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.bygg-reportage {
	padding-bottom: 3.25rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid rgba(8, 59, 114, 0.14);
}

.bygg-reportage__intro {
	max-width: 62ch;
	margin-bottom: 1.85rem;
}

.bygg-reportage__intro h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.bygg-reportage__intro p {
	max-width: none;
}

.bygg-reportage__intro .btn {
	margin-top: 0.35rem;
}

.bygg-reportage__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem 1.5rem;
}

.bygg-reportage__shot {
	margin: 0;
}

.bygg-reportage__shot--wide {
	grid-column: 1 / -1;
}

.bygg-reportage__shot figcaption {
	margin-top: 0.55rem;
	font-size: 0.95rem;
	color: var(--muted);
}

.bygg-open,
.photo-open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	border-radius: var(--radius-image);
	overflow: hidden;
}

.bygg-open img,
.photo-open img {
	width: 100%;
}

.card-grid--properties {
	padding-bottom: 0.35rem;
}

.properties-more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
	padding: 1.5rem 0 0;
	border-top: 1px solid rgba(8, 59, 114, 0.16);
}

.properties-more p {
	margin: 0;
	max-width: 36ch;
	font-weight: 600;
	color: var(--navy);
}

.card-grid--properties:has(.property-card:only-child) {
	grid-template-columns: minmax(0, 360px);
}

.card-grid--services {
	padding-bottom: 0;
	gap: 0 3rem;
}

.service-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.75rem 0;
	border-top: 1px solid rgba(8, 59, 114, 0.14);
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.service-card h2 {
	margin: 0;
	font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.service-card p {
	margin: 0;
	max-width: none;
	color: var(--muted);
	font-size: 1.02rem;
}

.service-card:hover {
	opacity: 0.72;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.property-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-image);
	overflow: hidden;
}

.property-card__media {
	position: relative;
	display: block;
	overflow: hidden;
}

.property-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	background: var(--accent);
	color: var(--navy-deep);
	font-family: var(--font);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.35rem 0.7rem;
	border-radius: var(--radius-pill);
}

.property-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-image);
}

.property-photo--square {
	aspect-ratio: 1;
}

.property-photo--landscape {
	aspect-ratio: 3 / 2;
}

.property-card__media .property-photo,
.property-card__media .placeholder {
	border-radius: 0;
	aspect-ratio: 1;
	min-height: 0;
	transition: transform 0.45s ease;
}

.photo-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.65rem;
	margin: 0 0 1.25rem;
}

.photo-grid__item {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
	border-radius: var(--radius-image);
	aspect-ratio: 4 / 3;
	cursor: zoom-in;
}

.photo-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vacancy-dialog .photo-grid {
	grid-template-columns: 1fr 1fr;
	max-height: none;
	overflow: visible;
}

.property-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.1rem 1.15rem 1.25rem;
}

.property-card__ort {
	margin: 0;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--navy);
	font-weight: 600;
}

.property-card h3 {
	margin: 0;
	font-size: 1.25rem;
}

.property-card h3 a:hover {
	text-decoration: underline;
}

.property-card__body p {
	margin: 0;
	max-width: none;
	font-size: 0.98rem;
	color: var(--muted);
}

.property-card__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.1rem;
	margin-top: 0.55rem;
}

.property-card__links .btn {
	text-decoration: none;
	color: var(--white);
	min-height: 44px;
	padding: 0.55rem 1.35rem;
}

.property-card__links a:not(.btn) {
	color: var(--navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.property-copy {
	margin-bottom: 0.85rem;
}

.property-copy p {
	max-width: 42rem;
}

.form-narrow {
	max-width: 640px;
}

.btn__icon {
	width: 1.05rem;
	height: 1.05rem;
	flex-shrink: 0;
}

.contact-christer {
	display: grid;
	grid-template-columns: 248px minmax(22rem, 40rem);
	gap: 1.6rem 2.1rem;
	align-items: center;
	justify-content: center;
	margin-inline: auto;
	max-width: 58rem;
}

.contact-christer__photo {
	width: 248px;
	height: 248px;
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
	background: var(--navy);
}

.contact-christer__copy h1,
.contact-christer__copy h2 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.7rem, 2.6vw, 2.15rem);
	max-width: none;
}

.contact-christer__copy h1::after,
.contact-christer__copy h2::after {
	margin-top: 0.55rem;
}

.contact-christer__copy p {
	margin: 0;
	max-width: 42ch;
	font-size: 1.02rem;
	line-height: 1.45;
}

.contact-christer .felanmalan-calls {
	margin-top: 1.05rem;
	gap: 0.5rem;
	flex-wrap: nowrap;
}

.contact-christer .felanmalan-calls .btn {
	padding: 0.5rem 0.95rem;
	min-height: 42px;
	font-size: 0.9rem;
	white-space: nowrap;
	gap: 0.45rem;
}

.section:has(.contact-christer) {
	padding-block: 3.25rem;
}

.form-narrow p,
.form-narrow h1,
.form-narrow h2 {
	max-width: none;
}

.felanmalan-calls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
	max-width: none;
}

.felanmalan-calls .btn {
	gap: 0.45rem;
}

.section--center .felanmalan-calls {
	justify-content: center;
}

.form select {
	width: 100%;
	border: 0;
	border-radius: var(--radius-pill);
	padding: 0.85rem 1.1rem;
	font: inherit;
	background: var(--white);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px rgba(8, 59, 114, 0.12);
}

.reveal {
	opacity: 0;
	transform: translateY(12px);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.card h3 {
	margin: 0;
	font-size: 1.15rem;
}

.card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.98rem;
}

.form {
	display: grid;
	gap: 1.1rem;
	max-width: 640px;
	margin-inline: auto;
}

.form--split-page {
	margin: 0;
	max-width: none;
}

.form label,
.form .field-label {
	display: block;
	font-size: 0.95rem;
	margin-bottom: 0.35rem;
}

.form .hint {
	font-size: 0.82rem;
	opacity: 0.85;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
	width: 100%;
	border: 0;
	border-radius: var(--radius-pill);
	padding: 0.85rem 1.1rem;
	font: inherit;
	background: var(--white);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px rgba(8, 59, 114, 0.12);
}

.form textarea {
	border-radius: 22px;
	min-height: 140px;
	resize: vertical;
}

.form .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form .check {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.95rem;
}

.form .actions {
	display: flex;
	justify-content: center;
}

.form--split-page .actions {
	justify-content: flex-start;
}

.form-privacy {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--muted);
	max-width: none;
	text-align: left;
}

.form-privacy a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.section--center .form-privacy {
	text-align: center;
}

.notice {
	max-width: 640px;
	margin: 0 auto 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
}

.notice--ok {
	background: #e8f6ee;
	color: #14532d;
}

.hp {
	position: absolute;
	left: -9999px;
}

.contact-hero .wrap {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 3rem;
	align-items: start;
}

.site-footer {
	padding: 3.5rem 0 2.5rem;
	border-top: 1px solid var(--line);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr;
	gap: 2rem;
}

.site-footer h2 {
	margin: 0 0 0.9rem;
	font-size: 1.05rem;
}

.site-footer ul {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.site-footer li + li {
	margin-top: 0.35rem;
}

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

.footer-brand {
	display: inline-block;
	margin-top: 0.5rem;
}

.footer-brand img {
	display: block;
	height: 52px;
	width: auto;
}

.mail-link {
	color: var(--navy);
	text-decoration: underline;
}

.vacancy-bar {
	background: var(--vacancy);
	color: var(--white);
	padding: 0.75rem 0;
	box-shadow: 0 6px 14px rgba(8, 30, 50, 0.16);
}

.vacancy-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.vacancy-bar p {
	margin: 0;
	max-width: none;
	font-size: 1rem;
}

.vacancy-bar a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.call-fab-wrap {
	position: fixed;
	right: 1.25rem;
	bottom: max(1.25rem, env(safe-area-inset-bottom));
	z-index: 40;
	display: flex;
	align-items: center;
}

.call-fab__bubble {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	position: absolute;
	right: calc(100% + 0.75rem);
	bottom: 0;
	width: max-content;
	max-width: min(15.5rem, calc(100vw - 6.5rem));
	padding: 0.85rem 1rem;
	background: rgba(255, 255, 255, 0.92);
	color: var(--navy);
	border: 1px solid rgba(8, 59, 114, 0.08);
	border-radius: 20px 20px 6px 20px;
	box-shadow: 0 12px 32px rgba(8, 30, 50, 0.16);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	font-size: 0.9rem;
	line-height: 1.4;
	transform-origin: right center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(10px) scale(0.96);
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}

.call-fab-wrap.is-bubble-on .call-fab__bubble {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	cursor: pointer;
	animation: call-bubble-float 3.4s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
	.call-fab-wrap:hover .call-fab__bubble,
	.call-fab-wrap:focus-within .call-fab__bubble {
		opacity: 1;
		visibility: visible;
		pointer-events: none;
		transform: none;
		cursor: default;
		animation: call-bubble-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	}
}

.call-fab__text {
	font-weight: 600;
	letter-spacing: -0.01em;
}

.call-fab__sign {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--muted);
}

.call-fab__bubble::after {
	content: "";
	position: absolute;
	right: -6px;
	bottom: 14px;
	width: 12px;
	height: 12px;
	background: rgba(255, 255, 255, 0.92);
	border-right: 1px solid rgba(8, 59, 114, 0.08);
	border-bottom: 1px solid rgba(8, 59, 114, 0.08);
	transform: rotate(-45deg);
}

.call-fab {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	box-shadow: 0 8px 20px rgba(8, 30, 50, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	animation: call-fab-pulse 2.8s ease-out 1.2s infinite;
}

@keyframes call-bubble-in {
	from {
		opacity: 0;
		transform: translateX(14px) scale(0.92);
	}

	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@keyframes call-bubble-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-5px);
	}
}

@keyframes call-fab-pulse {
	0% {
		box-shadow: 0 8px 20px rgba(8, 30, 50, 0.28);
	}

	70% {
		box-shadow: 0 8px 20px rgba(8, 30, 50, 0.28), 0 0 0 12px rgba(8, 59, 114, 0);
	}

	100% {
		box-shadow: 0 8px 20px rgba(8, 30, 50, 0.28), 0 0 0 0 rgba(8, 59, 114, 0);
	}
}

.call-fab:hover {
	transform: scale(1.06);
	box-shadow: 0 10px 24px rgba(8, 30, 50, 0.34);
}

.call-fab svg {
	display: block;
}

body:has(.vacancy-dialog[open]) .call-fab-wrap,
body:has(.photo-dialog[open]) .call-fab-wrap {
	display: none;
}

.vacancy-dialog {
	position: relative;
	width: min(100% - 2rem, 560px);
	max-height: min(90dvh, 860px);
	padding: 2rem 1.5rem 1.6rem;
	border: 0;
	border-radius: 12px;
	background: var(--navy);
	color: var(--white);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.vacancy-dialog::-webkit-scrollbar {
	width: 6px;
}

.vacancy-dialog::-webkit-scrollbar-track {
	background: transparent;
	margin: 10px 0;
}

.vacancy-dialog::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.32);
	border-radius: 999px;
}

.vacancy-dialog::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

.vacancy-dialog::backdrop {
	background: rgba(6, 20, 40, 0.55);
}

.vacancy-dialog h2 {
	margin: 0 1.5rem 0.75rem 0;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	text-align: center;
}

.vacancy-dialog p {
	margin: 0 auto 1.25rem;
	max-width: 42ch;
	text-align: center;
}

.vacancy-dialog [data-vacancy-gallery][hidden] {
	display: none;
}

.vacancy-dialog .form select {
	background: var(--white);
	color: var(--ink);
}

.vacancy-dialog .form > label:has([data-vacancy-objekt]) {
	margin-bottom: 0.35rem;
}

.vacancy-dialog .form-privacy {
	margin: 0.15rem 0 0;
	max-width: none;
	color: rgba(255, 255, 255, 0.78);
	text-align: center;
}

.vacancy-dialog .form-privacy a {
	color: inherit;
}

.vacancy-dialog__close {
	position: sticky;
	top: 0;
	float: right;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin: -0.45rem -0.35rem 0 0;
	border: 0;
	background: var(--navy);
	color: var(--white);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.photo-dialog {
	position: relative;
	padding: 0;
	border: 0;
	background: transparent;
	max-width: min(96vw, 1600px);
	max-height: 96vh;
	width: max-content;
}

.photo-dialog::backdrop {
	background: rgba(6, 20, 40, 0.78);
}

.photo-dialog img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(96vw, 1600px);
	max-height: 88vh;
	margin: 0 auto;
	object-fit: contain;
	border-radius: var(--radius-image);
	background: #071526;
}

.photo-dialog__caption {
	margin: 0.75rem 0 0;
	color: var(--white);
	font-weight: 600;
	text-align: center;
}

.photo-dialog__caption[hidden] {
	display: none;
}

.photo-dialog__close {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.section--tight-top {
	padding-top: 0;
}

@media (max-width: 860px) {
	:root {
		--header-h: 68px;
	}

	body.nav-open {
		overflow: hidden;
	}

	.photo-grid {
		max-height: none;
	}

	.wrap {
		width: min(100% - 1.5rem, var(--max));
	}

	.site-header__inner {
		min-height: var(--header-h);
		gap: 0.75rem;
	}

	.site-brand {
		min-width: 0;
		flex: 1;
	}

	.site-brand img {
		height: 40px;
		max-width: min(220px, calc(100vw - 5.5rem));
		object-fit: contain;
		object-position: left center;
	}

	.nav-toggle {
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		flex-shrink: 0;
	}

	.site-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--navy-deep);
		padding: 0.5rem 0 calc(1rem + env(safe-area-inset-bottom));
		max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
		overflow: auto;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav a,
	.site-nav .nav-parent {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 0.85rem 1.25rem;
		font-size: 1.12rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		width: 100%;
		text-align: left;
	}

	.site-nav .nav-parent {
		justify-content: space-between;
	}

	.site-nav .sub-menu {
		position: static;
		transform: none;
		left: auto;
		top: auto;
		min-width: 0;
		padding: 0;
		border-radius: 0;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.18);
	}

	.site-nav .sub-menu::before {
		content: none;
	}

	.site-nav .sub-menu a {
		padding-left: 2rem;
		font-size: 1.05rem;
	}

	.vacancy-bar .btn {
		width: 100%;
	}

	.hero {
		min-height: 0;
		height: min(52svh, calc(100vw * 2 / 3));
	}

	.hero__content {
		padding: 3rem 0 2.25rem;
	}

	.hero h1 {
		font-size: clamp(1.7rem, 7vw, 2.4rem);
	}

	.section {
		padding: 2.75rem 0;
	}

	.page-intro {
		padding: 2.5rem 0 1.25rem;
	}

	.page-intro h1 {
		font-size: clamp(1.85rem, 7vw, 2.4rem);
		margin-bottom: 0.85rem;
	}

	.prose {
		padding-bottom: 2.75rem;
	}

	.section h1,
	.section h2 {
		font-size: clamp(1.7rem, 6.5vw, 2.2rem);
	}

	.section p,
	.prose p {
		font-size: 1.05rem;
	}

	.split,
	.intro-pair,
	.contact-hero .wrap,
	.contact-christer,
	.card-grid,
	.bygg-reportage__grid,
	.bygg-gallery .card-grid,
	.footer-grid,
	.form .row {
		grid-template-columns: 1fr;
		gap: 1.35rem;
	}

	.contact-christer {
		justify-items: center;
		text-align: center;
		gap: 1.15rem;
		max-width: 26rem;
	}

	.contact-christer__photo {
		width: 180px;
		height: 180px;
	}

	.contact-christer__copy p {
		margin-inline: auto;
	}

	.contact-christer .felanmalan-calls {
		justify-content: center;
		flex-wrap: wrap;
	}

	.section:has(.contact-christer) {
		padding-block: 2.5rem;
	}

	.card-grid--services {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.intro-pair > div + div {
		border-left: 0;
		padding-left: 0;
		padding-top: 2rem;
		border-top: 1px solid rgba(8, 59, 114, 0.14);
	}

	.split--text-first .split__media {
		order: 0;
	}

	.properties-more {
		flex-direction: column;
		align-items: stretch;
	}

	.placeholder {
		min-height: 200px;
	}

	.placeholder--portrait {
		aspect-ratio: 4 / 5;
		max-height: 420px;
	}

	.btn {
		min-height: 48px;
		width: 100%;
	}

	.felanmalan-calls .btn {
		width: auto;
	}

	.property-card__links {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.property-card__links .btn {
		width: 100%;
	}

	.property-card__links a:not(.btn) {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 0.35rem 0.2rem;
	}

	.form input[type="text"],
	.form input[type="email"],
	.form select,
	.form textarea {
		font-size: 16px;
		min-height: 48px;
	}

	.form textarea {
		min-height: 120px;
	}

	.form .actions .btn {
		width: 100%;
	}

	.vacancy-bar {
		padding: 1rem 0;
	}

	.vacancy-bar__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}

	.vacancy-dialog {
		width: calc(100% - 1.25rem);
		max-height: calc(100dvh - 1.5rem);
		padding: 2.4rem 1.15rem 1.35rem;
		overflow: auto;
		margin: auto;
	}

	.site-footer {
		padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom));
	}

	.site-footer a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.footer-brand img {
		height: 44px;
	}

	.contact-hero .wrap {
		gap: 1.75rem;
	}
}

@media (max-width: 480px) {
	.hero {
		min-height: 0;
		height: min(48svh, calc(100vw * 2 / 3));
	}

	.site-brand img {
		height: 36px;
	}
}

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

	.btn,
	.property-card,
	.property-card__media .property-photo,
	.property-card__media .placeholder,
	.reveal,
	.reveal.is-visible {
		transition: none;
		transform: none;
		opacity: 1;
	}

	.service-card,
	.service-card:hover {
		transition: none;
	}

	.call-fab,
	.call-fab:hover,
	.call-fab__bubble {
		transition: none;
		transform: none;
		animation: none;
	}

	img.hero__image,
	img.hero__image.is-active {
		opacity: 1;
		transform: none;
		transition: none;
		animation: none;
	}

	.btn:hover,
	.property-card:hover,
	.property-card:hover .property-card__media .property-photo,
	.property-card:hover .property-card__media .placeholder {
		transform: none;
	}
}
