/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Description: Swiss Properties Invest child theme (GTM, custom CSS).
Version: 1.0.50
Text Domain: hello-elementor-child
*/

/* Headers float over the first block: transparent at the top of the page, a white bar once scrolled.
   Home/Contact use the light "overlay" variant; every other page the dark "float" one. */
.sp-header-overlay,
.sp-header-float {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
}

/* Keep the overlay header below the WordPress admin bar for logged-in users. */
.admin-bar .sp-header-overlay,
.admin-bar .sp-header-float {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .sp-header-overlay,
	.admin-bar .sp-header-float {
		top: 46px;
	}
}

/* Below 600px the admin bar scrolls away with the page, so a scrolled header sits flush with the top. */
@media (max-width: 600px) {
	.admin-bar.sp-scrolled .sp-header-overlay,
	.admin-bar.sp-scrolled .sp-header-float {
		top: 0;
	}
}

.e-con.sp-header-float {
	background-color: transparent;
	transition: padding 0.2s ease, transform 0.3s ease, background-color 0.2s ease;
}

.sp-scrolled .e-con.sp-header-float {
	background-color: #FFFFFF;
}

/* The header no longer takes room, so the first block of the page gets its height (88px, 74px on phones) as a
   transparent top border: its own padding stays as set in Elementor and its background shows under the header. */
body:has(.sp-header-float) .elementor:not(.elementor-location-header):not(.elementor-location-footer) > .e-con.e-parent:first-child {
	--sp-first-top: 88px;
	border-top: var(--sp-first-top) solid transparent;
	background-origin: border-box;
}

/* Elementor's background overlay (::before) covers only the area inside the border, so under the header the
   photo showed without its white veil (Portfolio). Stretch the overlay up under the header too. A block with
   "overflow: hidden" clips at the inside of the border, so there clip-path does the clipping instead. */
body:has(.sp-header-float) .elementor:not(.elementor-location-header):not(.elementor-location-footer) > .e-con.e-parent:first-child::before {
	top: calc(0px - var(--sp-first-top)) !important;
	height: calc(100% + var(--sp-first-top)) !important;
}

body:has(.sp-header-float) .elementor:not(.elementor-location-header):not(.elementor-location-footer) > .e-con.e-parent:first-child:has(.sp-pf-intro) {
	overflow: visible;
	clip-path: inset(0);
}

@media (max-width: 767px) {
	body:has(.sp-header-float) .elementor:not(.elementor-location-header):not(.elementor-location-footer) > .e-con.e-parent:first-child {
		--sp-first-top: 74px;
	}
}

.sp-underline a,
.sp-underline .elementor-heading-title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sp-video-placeholder {
	position: relative;
	cursor: pointer;
}

/* Poster = a frame of the client's intro video (Bogdan, 2026-10-28). Set here as well as in Elementor because
   the Home page is edited by hand and no longer overwritten by the import. */
.e-con.sp-video-placeholder {
	background-image: url("assets/img/video-poster.jpg") !important;
	background-position: center top !important;
	background-size: cover !important;
}

.sp-video-placeholder.sp-video--empty {
	cursor: default;
}

.sp-video-placeholder .elementor-widget-image {
	transition: transform 0.2s ease;
}

.sp-video-placeholder:not(.sp-video--empty):hover .elementor-widget-image {
	transform: scale(1.08);
}

.sp-video-placeholder iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Square corners everywhere, as in the design. */
.elementor-button {
	border-radius: 0;
}

/* Elementor makes linked images inline-block, which shrinks them below 100% width. */
.elementor-widget-image a {
	display: block;
}


/* Figma desktop button in the closing band: 240 x 64. */
@media (min-width: 768px) {
	.sp-cta-btn .elementor-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 240px;
		height: 64px;
		padding: 0 !important;
	}
}

/* "Who we are" photo: Figma shows a zoomed part of the picture (163.7% wide, shifted left 49.7%, up 6.1%). */
.sp-who-img {
	position: relative;
	height: 465px;
	overflow: hidden;
}

.sp-who-img img {
	position: absolute;
	top: -6.13%;
	left: -49.73%;
	width: 163.73% !important;
	max-width: none !important;
	height: 133.01% !important;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.sp-who-img {
		height: 420px;
	}
}

@media (max-width: 767px) {
	.sp-who-img {
		height: 294px;
	}
}

/* ---------- Hover effects ---------- */
.elementor-button {
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(18, 35, 59, 0.16);
}

.e-con.sp-card {
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.e-con.sp-card:hover {
	transform: translateY(-4px);
	border-color: rgba(18, 35, 59, 0.35);
	box-shadow: 0 14px 30px rgba(18, 35, 59, 0.1);
}

.e-con.sp-why-card::before {
	transition: opacity 0.3s;
}

.e-con.sp-why-card:hover::before {
	opacity: 0.86 !important;
}

/* News cards: the photo zooms slightly, the title turns red. */
.sp-news-card .sp-news-card__img {
	overflow: hidden;
}

.sp-news-card .sp-news-card__img img {
	transition: transform 0.5s ease;
}

.sp-news-card:hover .sp-news-card__img img {
	transform: scale(1.04);
}

.sp-news-card .elementor-heading-title a {
	transition: color 0.2s;
}

.sp-news-card:hover h3 .elementor-heading-title,
.sp-news-card:hover h3 .elementor-heading-title a,
.sp-news-card h3.elementor-heading-title a:hover {
	color: #c8102e !important;
}

.sp-tag .elementor-heading-title {
	white-space: nowrap;
}

.sp-underline a,
.sp-underline .elementor-heading-title {
	transition: opacity 0.2s;
}

.sp-underline:hover .elementor-heading-title {
	opacity: 0.7;
}

/* ---------- Gentle motion (sp-site.js) ---------- */
.sp-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.sp-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.sp-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.elementor-button:hover,
	.e-con.sp-card:hover {
		transform: none;
	}
}

/* ---------- Header on scroll (Figma 2318:2962) ----------
   88px at the top of the page, 79px once scrolled; slides away while scrolling down and returns on scroll up. */
.e-con.sp-header-bar {
	transition: padding 0.2s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
	.sp-scrolled .e-con.sp-header-bar {
		--padding-top: 13px !important;
	}
}

/* Bottom rule runs from the logo edge to the button edge (Figma 100..1340 / 16..374), not across the screen. */
.e-con.sp-header-bar > .e-con-inner {
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(18, 35, 59, 0.15);
}

.e-con.sp-header-overlay > .e-con-inner {
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 767px) {
	.e-con.sp-header-bar > .e-con-inner {
		padding-bottom: 10px;
	}
}

/* Home header: transparent over the hero, then the same white bar as the other pages once scrolled. */
.e-con.sp-header-overlay {
	transition: padding 0.2s ease, transform 0.3s ease, background-color 0.2s ease;
}

.sp-header-overlay .sp-logo-dark,
.sp-scrolled .sp-header-overlay .sp-logo-light {
	display: none;
}

.sp-scrolled .sp-header-overlay .sp-logo-dark {
	display: block;
}

.sp-scrolled .e-con.sp-header-overlay {
	background-color: #FFFFFF;
}

.e-con.sp-header-bar > .e-con-inner {
	transition: border-color 0.2s ease;
}

/* Once the header is fixed (page scrolled) the bottom rule goes away (Figma 2318:2962). */
.sp-scrolled .e-con.sp-header-bar > .e-con-inner {
	border-bottom-color: transparent;
}

.sp-scrolled .sp-header-overlay .elementor-nav-menu--main .elementor-item {
	color: rgba(18, 35, 59, 0.8) !important;
}

.sp-scrolled .sp-header-overlay .elementor-nav-menu--main .elementor-item:hover,
.sp-scrolled .sp-header-overlay .elementor-nav-menu--main .elementor-item.elementor-item-active {
	color: #12233B !important;
}

.sp-scrolled .sp-header-overlay .elementor-menu-toggle {
	color: #12233B !important;
}

.sp-scrolled .sp-header-overlay .elementor-menu-toggle svg {
	fill: #12233B !important;
}

.sp-header-hidden .e-con.sp-header-bar {
	transform: translateY(-100%);
}

/* An open burger menu always keeps its header in view. */
.sp-header-hidden .e-con.sp-header-bar:has(.elementor-menu-toggle.elementor-active) {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.e-con.sp-header-bar {
		transition: none;
	}
}

/* ---------- Footer on mobile (Figma mobile frames) ----------
   Source Sans 3 instead of Poppins, Legal links in one row across the width. */
@media (max-width: 767px) {
	.sp-footer .elementor-heading-title,
	.sp-footer .elementor-widget-text-editor,
	.sp-footer .elementor-icon-list-text {
		font-family: "Source Sans 3", sans-serif !important;
	}

	.sp-footer .elementor-widget-text-editor {
		font-size: 14px !important;
		line-height: 20px !important;
		letter-spacing: 0 !important;
	}

	.sp-footer .elementor-icon-list-text {
		font-size: 16px !important;
		line-height: 24px !important;
		letter-spacing: 0 !important;
	}

	.sp-footer-legal .elementor-icon-list-items {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.sp-footer-legal .elementor-icon-list-item {
		margin: 0 !important;
		padding: 0 !important;
	}
}

/* Mobile closing band (Figma 2292:*): the photo keeps its desktop 648px height, so only sky and peaks show,
   and the button is a 240x60 block in Source Sans 3. */
@media (max-width: 767px) {
	.sp-cta-btn .elementor-button {
		width: 240px;
		height: 60px;
		padding: 0 !important;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-family: "Source Sans 3", sans-serif !important;
		font-size: 15px !important;
		line-height: 21px !important;
		letter-spacing: 0 !important;
	}
}

/* Bare burger icon, as in the mobile frames. */
.sp-header-bar .elementor-menu-toggle,
.sp-header-overlay .elementor-menu-toggle {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

/* Mobile frames draw every button as a 60px block with 15px Source Sans 3 text (measured on every phone frame). */
@media (max-width: 767px) {
	.elementor-widget-button .elementor-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 60px;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		font-family: "Source Sans 3", sans-serif !important;
		font-size: 15px !important;
		line-height: 21px !important;
		font-weight: 400 !important;
		letter-spacing: 0 !important;
	}

	.sp-btn-62 .elementor-button {
		min-height: 62px;
	}

	.sp-btn-14 .elementor-button {
		font-size: 14px !important;
	}

	.sp-btn-poppins .elementor-button {
		font-family: "Poppins", sans-serif !important;
		font-weight: 500 !important;
	}

	.elementor-widget-button .elementor-button-text {
		white-space: nowrap;
	}

	/* Case cards: icons are 32px tall in the phone frame, whatever their width. */
	.sp-sq-icon {
		width: auto !important;
	}

	.sp-sq-icon img {
		width: auto !important;
		height: 32px !important;
	}

	/* News tag sits flush in the photo's corner as a 94x33 block. */
	.sp-tag .elementor-heading-title {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 94px;
		height: 33px;
	}

	.e-con .sp-tag {
		padding: 0 !important;
	}
}

/* Section label dot: Figma indents it 8px and leaves 11px before the words. */
.sp-dot {
	display: inline-block;
	margin: 0 11px 0 7px;
}

/* Section label: on mobile the rule fills whatever room the label leaves. */
@media (max-width: 767px) {
	.sp-eyebrow > .elementor-widget-divider {
		flex: 1 1 0;
		width: auto !important;
		max-width: none !important;
	}
}

/* Mobile body copy set at 15/21 in Figma: paragraphs are a full line apart. */
@media (max-width: 767px) {
	.sp-m16 p {
		margin: 0 0 21px;
	}

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

/* ---------- Why Switzerland (Figma "Why Switzerland") ---------- */
/* Paragraphs a full 26px line apart on desktop. */
.sp-p26 p {
	margin: 0 0 26px;
}

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

.sp-italic {
	font-style: italic;
}

.sp-source a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sp-source a:hover {
	color: #c8102e;
}

/* Four figures spread across the row with 92px rules between them. */
.e-con.sp-why-figs > .sp-why-fig {
	--width: auto;
	width: auto;
}

.e-con.sp-why-sep {
	--width: 1px;
	width: 1px;
	height: 92px;
	min-height: 0;
	background: rgba(0, 0, 0, 0.23);
}

@media (max-width: 767px) {
	.sp-p26 p {
		margin-bottom: 21px;
	}

	/* Phone: two by two (AAA and 3.0% on top), one rule down the middle of each row. */
	.e-con.sp-why-figs {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
		gap: 22px 0;
		align-items: start;
	}

	.e-con.sp-why-figs > .e-con:nth-child(1) { order: 1; }
	.e-con.sp-why-figs > .e-con:nth-child(2) { order: 2; }
	.e-con.sp-why-figs > .e-con:nth-child(7) { order: 3; }
	.e-con.sp-why-figs > .e-con:nth-child(3) { order: 4; }
	.e-con.sp-why-figs > .e-con:nth-child(4) { order: 5; }
	.e-con.sp-why-figs > .e-con:nth-child(5) { order: 6; }
	.e-con.sp-why-figs > .e-con:nth-child(6) { display: none; }

	.e-con.sp-why-sep {
		height: 100%;
	}
}

@media (max-width: 767px) {
	/* Phone frame: the rules around the return figures run to the right edge, the short ticks are dark. */
	.e-con.sp-why-returns {
		width: calc(100% + 16px) !important;
		max-width: none !important;
		margin-right: -16px !important;
	}

	.sp-why-returns .elementor-widget-text-editor.sp-italic {
		padding-right: 16px;
	}

	.sp-why-returns .e-con .elementor-divider-separator {
		border-block-start-color: rgba(0, 0, 0, 0.8) !important;
		border-block-start-width: 1px !important;
	}

	.e-con.sp-why-figs > .sp-why-fig {
		padding: 0 8px;
	}
}

/* ---------- Contact (Figma "Contact v1" desktop / "Contact" phone) ---------- */
.elementor-widget.sp-badge {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin-top: -4px;
	border-radius: 50%;
	background: #efefef;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sp-ci-mail-badge {
	display: block;
	width: 18px;
	height: 13px;
	background: url(assets/img/icon-mail.svg) center / contain no-repeat;
}

.sp-ci-list p {
	position: relative;
	margin: 0 0 12px;
	padding-left: 27px;
}

.sp-ci-list p:last-child {
	margin-bottom: 0;
}

.sp-ci-list p::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	background: center / contain no-repeat;
}

.sp-ci-list p.sp-ci--pin::before { background-image: url(assets/img/icon-pin.svg); }
.sp-ci-list p.sp-ci--phone::before { background-image: url(assets/img/icon-phone.svg); }
.sp-ci-list p.sp-ci--mail::before { top: 4px; height: 13px; background-image: url(assets/img/icon-mail.svg); }

.sp-ci-list a {
	color: #d2343a;
	text-decoration: none;
	transition: color 0.2s;
}

.sp-ci-list a:hover {
	color: #a50d26;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sp-btn-44 .elementor-button {
	min-height: 44px;
}

/* Contact form: white 52px fields on the grey panel, labels above, a full-width red button. */
.sp-contact-form .elementor-field-group > .elementor-field-label {
	padding-bottom: 12px;
	color: rgba(0, 0, 0, 0.7);
	font: 400 16px/20px "Source Sans 3", sans-serif;
	letter-spacing: -0.16px;
}

.sp-contact-form .elementor-field-group .elementor-field-textual {
	height: 52px;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid #e5e7e9; /* Figma field outline */
	border-radius: 0;
	background: #fff;
	color: #000;
	font: 400 16px/20px "Source Sans 3", sans-serif;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-contact-form .elementor-field-group textarea.elementor-field-textual {
	display: block;
	height: 155px;
	padding: 14px 16px;
	resize: vertical;
}

.sp-contact-form .elementor-field-group .elementor-field-textual:focus {
	border-color: #12233b;
	box-shadow: none;
	outline: none;
}

.sp-contact-form .elementor-select-wrapper::before,
.sp-contact-form .select-caret-down-wrapper {
	display: none;
}

.sp-contact-form .elementor-select-wrapper {
	margin-top: -1px;
}

.sp-contact-form .elementor-field-group select.elementor-field-textual {
	height: 54px;
	padding: 0 52px 0 20px;
	border: 1px solid rgba(18, 35, 59, 0.15);
	background: #efefef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9' viewBox='0 0 16 9' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l7 7 7-7'/%3E%3C/svg%3E") right 25px center / 16px 9px no-repeat !important;
	color: rgba(0, 0, 0, 0.6);
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.sp-contact-form .elementor-field-type-submit {
	margin-top: 3px;
}

.sp-contact-form .elementor-field-type-submit .elementor-button {
	min-height: 63px;
	border-radius: 0;
	background: #c8102e;
	color: #fff;
	font: 500 16px/20px "Poppins", sans-serif;
}

.sp-contact-form .elementor-field-type-submit .elementor-button:hover,
.sp-contact-form .elementor-field-type-submit .elementor-button:focus {
	background: #a50d26;
	color: #fff;
}

.sp-contact-form .elementor-message {
	margin-top: 12px;
	font: 400 16px/22px "Source Sans 3", sans-serif;
}

@media (max-width: 767px) {
	.sp-contact-form .elementor-field-group-first_name {
		margin-bottom: 20px !important;
	}

	/* Figma phone form: label 20px above a 54px field, rows 1px tighter than desktop. */
	.sp-contact-form .elementor-field-group > .elementor-field-label {
		padding-bottom: 8px !important;
	}

	.sp-contact-form .elementor-field-group .elementor-field-textual {
		height: 54px;
		min-height: 54px;
	}

	.sp-contact-form .elementor-field-group select.elementor-field-textual {
		height: 53px;
	}

	.sp-contact-form .elementor-field-type-submit .elementor-button {
		min-height: 61px;
		font: 500 15px/20px "Source Sans 3", sans-serif;
	}

	.sp-ci-list p::before {
		top: 0;
		width: 20px;
		height: 20px;
	}

	.sp-ci-list p {
		padding-left: 26px;
	}
}

/* ---------- Legal pages: Imprint, Privacy policy, Sitemap, Certified Adviser, 404 ---------- */
.sp-legal-title .elementor-heading-title {
	font-weight: 400;
}

/* Icon lines on the Imprint cards: 20px icons, 23px rows, 12px apart. */
.sp-imp-list p {
	position: relative;
	margin: 0 0 12px;
	padding-left: 28px;
}

.sp-imp-list p:last-child {
	margin-bottom: 0;
}

.sp-imp-list p::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	background: center / contain no-repeat;
}

.sp-imp-list p.sp-ci--pin::before { background-image: url(assets/img/icon-pin.svg); }
.sp-imp-list p.sp-ci--phone::before { background-image: url(assets/img/icon-phone.svg); }
.sp-imp-list p.sp-ci--clock::before { background-image: url(assets/img/icon-clock.svg); }
.sp-imp-list p.sp-ci--web::before { background-image: url(assets/img/icon-web.svg); }
.sp-imp-list p.sp-ci--mail::before { top: 3px; height: 14px; background-image: url(assets/img/icon-mail.svg); }

.sp-imp-list small {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0;
}

.sp-imp-list p.sp-ci--clock,
.sp-imp-list a {
	color: #d2343a;
	text-decoration: none;
}

.sp-imp-list a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sp-imp-names p {
	display: flex;
	flex-wrap: wrap;
	gap: 0 43px;
	margin: 0;
}

/* Sitemap: link rows between thin rules, a red arrow at the end. */
.sp-sitemap-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-sitemap-list li {
	border-top: 1px solid #e3e3e3;
}

.sp-sitemap-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 0 10px;
	color: #000;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}

.sp-sitemap-list li:last-child a {
	padding-bottom: 0;
}

.sp-sitemap-list a::after {
	content: "";
	flex: none;
	width: 22px;
	height: 16px;
	background: url(assets/img/icon-arrow-red.svg) center / contain no-repeat;
	transition: transform 0.2s;
}

.sp-sitemap-list a:hover {
	color: #d2343a;
}

.sp-sitemap-list a:hover::after {
	transform: translateX(4px);
}

/* Privacy policy: contents on the left stay in view, text on the right. */
.sp-legal-cols > .sp-toc-wrap {
	position: sticky;
	top: 110px;
	align-self: flex-start;
}

.sp-toc a {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-bottom: 15px;
	color: rgba(0, 0, 0, 0.46);
	font-size: 14px;
	line-height: 16px;
	letter-spacing: -0.14px;
	text-decoration: none;
	transition: color 0.2s;
}

.sp-toc a:hover {
	color: #000;
}

.sp-toc a.is-active {
	width: auto;
	padding-bottom: 9px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.32);
	color: #000;
}

.sp-legal-text h2 {
	margin: 40px 0 20px;
	color: #000;
	font-family: "Source Sans 3", sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 27px;
	letter-spacing: -0.24px;
}

.sp-legal-text h2:first-child {
	margin-top: 0;
}

.sp-legal-text p {
	margin: 0 0 21px;
}

.sp-legal-text p.sp-tight {
	margin-bottom: 14px;
}

.sp-legal-text p:last-child {
	margin-bottom: 0;
}

.sp-legal-text strong {
	font-weight: 600;
}

.sp-legal-text a {
	color: inherit;
}

/* Home figures row (Figma "Frame 32"): columns sized to their text, 80px either side of each 92px divider.
   The figures stay centred over their label even when wider than it (e.g. "DKK 147.50"). */
@media (min-width: 1025px) {
	/* Below 1440 the gaps and figures shrink with the window, so the row never wraps (client, 2026-10-29). */
	.elementor .sp-stats.e-con > .e-con {
		/* Capped at 72px, not Figma's 80: at 80 the row is exactly 1240px wide, and Windows font rendering
		   (seen on Live Link) is a few px wider, which pushed "Share price" onto a second line. */
		--sp-stat-pad: clamp(24px, calc(9.4vw - 55px), 72px);
		--width: auto;
		--padding-left: var(--sp-stat-pad);
		--padding-right: var(--sp-stat-pad);
		position: relative;
		flex: 0 0 auto;
		border-width: 0;
	}

	.elementor .sp-stats.e-con {
		--flex-wrap: nowrap;
		flex-wrap: nowrap !important;
	}

	.elementor .sp-stats.e-con > .e-con:first-child {
		--padding-left: 0px;
	}

	.elementor .sp-stats.e-con > .e-con:last-child {
		--padding-right: 0px;
	}

	.elementor .sp-stats.e-con > .e-con:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 4px;
		right: 0;
		width: 1px;
		height: 92px;
		background: rgba(0, 0, 0, 0.15);
	}

	.elementor .sp-stats.e-con > .e-con > .elementor-widget-heading {
		width: max-content;
		max-width: none;
		white-space: nowrap;
	}

	.elementor .sp-stats.e-con > .e-con > .elementor-widget-heading .elementor-heading-title {
		font-size: min(48px, 3.25vw) !important;
	}
}

/* "The Case for Switzerland" icons are 42px tall in Figma (2275:2767), whatever their width. */
@media (min-width: 768px) {
	.elementor .sp-sq-icon.elementor-widget {
		width: auto !important;
	}

	.elementor .sp-sq-icon img {
		width: auto !important;
		height: 42px !important;
	}
}

/* 404 */
.sp-404 .elementor-widget-divider .elementor-divider {
	padding: 0;
}

/* Figma lets the line run 365px wide, wider than the 307px column, so it wraps "...or has / been moved." */
.sp-404.e-con > .e-con-inner > .sp-404-text {
	max-width: none;
}

@media (max-width: 767px) {
	.sp-imp-list p {
		letter-spacing: -0.16px;
	}

	.sp-legal-cols > .sp-toc-wrap {
		position: static;
	}

	.sp-toc a:last-child {
		margin-bottom: 0;
	}

	.sp-legal-text h2 {
		margin: 30px 0 15px;
		font-size: 18px;
		line-height: 20px;
		letter-spacing: -0.18px;
	}

	.sp-legal-text h2:first-child {
		margin-top: 0;
	}

	.sp-sitemap-list a::after {
		width: 22px;
	}
}

/* Footer "Cookie settings" link next to the copyright (opens the cookie settings, assets/sp-cookies.js). */
.sp-footer .sp-cookie-settings {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}

.sp-footer .sp-cookie-settings:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Anchor links stop a little below the top edge instead of flush against it. */
html { scroll-padding-top: 110px; }
@media (max-width: 767px) { html { scroll-padding-top: 90px; } }

/* ---------- Burger menu (Figma "Burger") ----------
   Below 1025px the open menu is a white panel under the header that fills the screen: rows between thin
   rules, the current page in navy, and the Contact button under the list (copied in by sp-site.js). */
@media (max-width: 1024px) {
	html:has(.sp-header-bar .elementor-menu-toggle.elementor-active) {
		overflow: hidden;
	}

	.e-con.sp-header-bar:has(.elementor-menu-toggle.elementor-active) {
		background-color: #FFFFFF;
	}

	.e-con.sp-header-bar:has(.elementor-menu-toggle.elementor-active) > .e-con-inner {
		border-bottom-color: rgba(18, 35, 59, 0.15);
	}

	.sp-header-overlay:has(.elementor-menu-toggle.elementor-active) .sp-logo-light {
		display: none;
	}

	.sp-header-overlay:has(.elementor-menu-toggle.elementor-active) .sp-logo-dark {
		display: block;
	}

	.sp-header-overlay .elementor-menu-toggle.elementor-active,
	.sp-header-overlay .elementor-menu-toggle.elementor-active svg {
		color: #12233B !important;
		fill: #12233B !important;
	}

	.sp-header-bar .elementor-nav-menu--dropdown.elementor-nav-menu__container {
		position: fixed;
		top: var(--sp-header-h, 88px) !important;
		left: 0 !important;
		width: 100% !important;
		margin-top: 0 !important;
		background: #FFFFFF;
		box-shadow: none;
	}

	.sp-header-bar .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container {
		height: calc(100vh - var(--sp-header-h, 88px));
		height: calc(100dvh - var(--sp-header-h, 88px));
		max-height: none;
		overflow-y: auto;
		padding: 15px 16px 40px;
	}

	.sp-header-bar .elementor-nav-menu--dropdown li:not(:last-child) {
		border-bottom: 1px solid rgba(18, 35, 59, 0.18);
	}

	.sp-header-bar .elementor-nav-menu--dropdown a.elementor-item {
		padding: 15px 0 14px !important;
		font-size: 18px !important;
		line-height: 26px !important;
		color: rgba(18, 35, 59, 0.8) !important;
		background: transparent !important;
	}

	.sp-header-bar .elementor-nav-menu--dropdown a.elementor-item:hover,
	.sp-header-bar .elementor-nav-menu--dropdown a.elementor-item.elementor-item-active {
		color: #12233B !important;
	}

	.sp-header-bar .elementor-nav-menu--dropdown a.elementor-item.elementor-item-active {
		font-weight: 600 !important;
	}

	.sp-header-bar .sp-menu-cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 132px;
		height: 47px;
		margin-top: 26px;
		padding: 0 !important;
		background: #C8102E !important;
		color: #FFFFFF !important;
		-webkit-tap-highlight-color: transparent;
		font-family: "Source Sans 3", sans-serif;
		font-size: 16px;
		text-decoration: none;
		transition: background-color 0.2s;
	}

	/* Elementor's dropdown link hover/press colours (white) are more specific, so these need !important. */
	.sp-header-bar .sp-menu-cta:hover,
	.sp-header-bar .sp-menu-cta:focus,
	.sp-header-bar .sp-menu-cta:active {
		background: #A50D26 !important;
		color: #FFFFFF !important;
		outline: none;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.sp-header-bar .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container {
		padding-left: 40px;
		padding-right: 40px;
	}
}

@media (max-width: 767px) {
	body {
		--sp-header-h: 74px;
	}
}

body.admin-bar {
	--sp-header-h: 120px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--sp-header-h: 134px;
	}
}

@media (max-width: 767px) {
	body.admin-bar {
		--sp-header-h: 120px;
	}
}

/* The admin bar has scrolled away there (see the header rule for 600px), so the menu panel starts under the header alone. */
@media (max-width: 600px) {
	body.admin-bar.sp-scrolled {
		--sp-header-h: 74px;
	}
}

/* Tablet header shrinks to 79px once scrolled (see "Header on scroll"). */
@media (min-width: 768px) and (max-width: 1024px) {
	body.sp-scrolled {
		--sp-header-h: 79px;
	}

	body.admin-bar.sp-scrolled {
		--sp-header-h: 111px;
	}
}

@media (min-width: 768px) and (max-width: 782px) {
	body.admin-bar.sp-scrolled {
		--sp-header-h: 125px;
	}
}

/* "Cookie settings": next to the copyright on tablet and desktop, in the Legal row on the phone
   (one row there would wrap the copyright line). */
.sp-footer-legal .elementor-icon-list-item:last-child {
	display: none !important;
}

@media (max-width: 767px) {
	.sp-footer-legal .elementor-icon-list-item:last-child {
		display: flex !important;
	}

	.sp-footer .sp-cookie-inline {
		display: none;
	}
}

/* Tablet header: logo on the left, then Contact, then the burger on the far right with room between them. */
@media (min-width: 768px) and (max-width: 1024px) {
	.sp-header-bar .elementor-widget-image {
		margin-right: auto;
	}

	.sp-header-bar .elementor-widget-button {
		order: 2;
	}

	.sp-header-bar .elementor-widget-nav-menu {
		order: 3;
		flex: 0 0 auto;
		width: auto !important;
		margin-left: 24px;
	}
}

/* Home "For Investors" tiles: white, navy only on hover (client, 2026-10-28). The Figma icons differ in colour,
   so each gets its own filter for the white and the navy state. */
.e-con.sp-card--hover-dark {
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
}

.e-con.sp-card--hover-dark .elementor-heading-title,
.e-con.sp-card--hover-dark .elementor-widget-text-editor,
.e-con.sp-card--hover-dark img {
	transition: color 0.3s, filter 0.3s;
}

.e-con.sp-card--hover-dark img[src*="sp-icon-reports"] {
	filter: invert(1) grayscale(1) contrast(4);
}

@media (hover: hover) {
	.e-con.sp-card--hover-dark:hover {
		background-color: #12233B !important;
		border-color: #12233B;
	}

	.e-con.sp-card--hover-dark:hover .elementor-heading-title {
		color: #FFFFFF !important;
	}

	.e-con.sp-card--hover-dark:hover .elementor-widget-text-editor {
		color: rgba(255, 255, 255, 0.8) !important;
	}

	.e-con.sp-card--hover-dark:hover img[src*="sp-icon-reports"] {
		filter: none;
	}

	.e-con.sp-card--hover-dark:hover img:not([src*="sp-icon-reports"]) {
		filter: invert(1);
	}

	/* One-colour icon: pure white on navy. */
	.e-con.sp-card--hover-dark:hover img[src*="sp-icon-share"] {
		filter: brightness(0) invert(1);
	}
}

/* Narrow desktop (1025–1365px, e.g. a laptop or a window that is not full screen): the 1440 type sizes
   crowd the narrower columns, so headings and text scale down with the window (Богдан, 2026-10-29).
   The home figures row keeps its own sizing above. */
@media (min-width: 1025px) and (max-width: 1365px) {
	.elementor .elementor-widget-heading:not(.sp-stats *),
	.elementor .elementor-widget-text-editor {
		zoom: 0.86;
	}

	.elementor .elementor-widget-heading.sp-count:not(.sp-stats *) {
		zoom: 0.78;
		white-space: nowrap;
	}

	.sp-eyebrow .elementor-heading-title,
	.sp-figures .elementor-widget-text-editor,
	.sp-footer-legal .elementor-icon-list-text {
		white-space: nowrap;
	}

	.elementor .e-con:has(> .sp-footer-legal) {
		--width: auto;
		width: auto;
	}

	.elementor .sp-eyebrow > .elementor-widget-heading {
		width: auto;
		flex-shrink: 0;
	}

	/* About "How we create value" figures: two equal columns so "DKK 37.8m" fits. */
	.elementor .sp-value-grid.e-con {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.elementor .sp-card .elementor-widget-heading.elementor-widget__width-initial {
		width: auto;
		max-width: 80%;
	}
}

@media (min-width: 1200px) and (max-width: 1365px) {
	.elementor .elementor-widget-heading:not(.sp-stats *),
	.elementor .elementor-widget-text-editor {
		zoom: 0.92;
	}

	.elementor .elementor-widget-heading.sp-count:not(.sp-stats *) {
		zoom: 0.85;
	}
}

/* Footer Legal column: its last link (Cookie settings) is hidden here, but the link before it kept the
   list spacing below it, which lifted the whole column 7px above Company and Investors. */
@media (min-width: 768px) {
	.sp-footer-legal .elementor-icon-list-item:nth-last-child(2) {
		padding-bottom: 0 !important;
	}
}

/* Home: For Investors and Case for Switzerland cards without hover (client, 2026-11-06). */
.e-con.sp-card.sp-card--static:hover {
	transform: none;
	box-shadow: none;
	border-color: rgba(0, 0, 0, 0.14);
}
