/* Poscaro – startsida (one pager). */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
	--pc-bg: #031935;
	--pc-text: #fff;
	--pc-muted: #ccc;
	--pc-font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

/* Som originalet: bilden täcker innehållets höjd och rullar med, bakgrundsfärgen syns under. */
body.pc {
	margin: 0;
	background: var(--pc-bg) url("img/background.jpg") 50% 50% / cover no-repeat;
	background-image: image-set(url("img/background.webp") type("image/webp"), url("img/background.jpg") type("image/jpeg"));
	color: var(--pc-text);
	font-family: var(--pc-font);
	font-size: 18px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

.pc a {
	color: var(--pc-text);
	text-decoration: none;
	transition: color .2s;
}

.pc a:hover,
.pc a:focus-visible {
	color: var(--pc-muted);
}

/* Sloganen (H1). */
.pc-h1 {
	max-width: 660px;
	margin: 0 0 20px;
	font-size: 56px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1px;
}

.pc-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.pc-wrap {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	/* Som Osmosis: luft upp/ned = 20 % av innehållsbredden (10 % vid 1201–1450 px). */
	--pc-air: calc(min(100vw, 1170px) * .2);
	padding: calc(var(--pc-air) - 40px) 30px calc(var(--pc-air) + 32px);
}

.pc-logo {
	display: block;
	width: 105px;
	height: auto;
	margin-bottom: 104px;
}

/* H1 + innehåll från editorn: .pc-intro (text) och .pc-contact (kontaktuppgifter). */
.pc-content {
	display: grid;
	grid-template-columns: minmax(0, 825px) 260px;
	justify-content: space-between;
	column-gap: 25px;
}

.pc-content > .pc-h1 {
	grid-column: 1;
	grid-row: 1;
}

.pc-content > .pc-intro {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
}

.pc-intro p {
	margin: 0 0 15px;
}

.pc-content > .pc-contact {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: start;
	margin: 16px -15px 0 0;
	padding: 0 15px;
}

.pc-contact p {
	position: relative;
	min-height: 42px;
	margin: 0 0 5px;
	padding-left: 55px;
	font-size: 20px;
	line-height: 26px;
}

.pc-contact p::before {
	content: "";
	position: absolute;
	top: 0;
	left: 8px;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: var(--pc-icon) center / contain no-repeat;
	mask: var(--pc-icon) center / contain no-repeat;
}

.pc-icon-user {
	--pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='5'/%3E%3Cpath d='M2 22c0-5.5 4.5-9 10-9s10 3.5 10 9z'/%3E%3C/svg%3E");
}

.pc-icon-mail {
	--pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='2' y='4.5' width='20' height='15' rx='1.5'/%3E%3Cpath d='M2.5 6l9.5 7.5L21.5 6'/%3E%3C/svg%3E");
}

.pc-icon-phone {
	--pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 2.5l3 4.2c.4.6.3 1.3-.2 1.8L7.8 10c1.2 2.6 3.6 5 6.2 6.2l1.5-1.6c.5-.5 1.2-.6 1.8-.2l4.2 3c.6.4.8 1.2.4 1.8l-1.3 2.1c-.6 1-1.8 1.4-2.9 1.1C10.4 20.6 3.4 13.6 1.6 6.3c-.3-1.1.1-2.3 1.1-2.9L4.8 2.1c.6-.4 1.4-.2 1.8.4z'/%3E%3C/svg%3E");
}

.pc-icon-pin {
	--pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1C7.6 1 4 4.5 4 8.9 4 14.8 12 23 12 23s8-8.2 8-14.1C20 4.5 16.4 1 12 1zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E");
}

/* Till toppen-pil (som originalet). */
.pc-top-btn {
	position: fixed;
	right: 10px;
	bottom: 10px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	background: none;
	color: #6e7177;
	cursor: pointer;
	transform: translate3d(150%, 0, 0);
	transition: transform .15s;
}

.pc-top-btn.is-visible {
	transform: none;
}

@media (max-width: 1450px) and (min-width: 1201px) {
	.pc-wrap {
		--pc-air: 117px;
	}
}

@media (max-width: 1200px) and (min-width: 961px) {
	/* Osmosis container är 900 px här. */
	.pc-wrap {
		--pc-air: 180px;
		max-width: 900px;
	}

	.pc-content {
		grid-template-columns: minmax(0, 580px) 245px;
	}

	.pc-h1 {
		max-width: 530px;
		font-size: 42px;
	}
}

@media (max-width: 960px) {
	.pc-wrap {
		padding: 90px 40px 120px;
		text-align: center;
	}

	.pc-logo {
		width: 85px;
		margin: 0 auto 90px;
	}

	.pc-content {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.pc-h1 {
		margin-bottom: 15px;
		font-size: 32px;
		line-height: 1.25;
	}

	.pc-content > .pc-intro,
	.pc-content > .pc-contact {
		width: 100%;
		max-width: 610px;
	}

	.pc-content > .pc-contact {
		margin: 35px 0 0;
		padding: 0;
	}

	.pc-intro p {
		font-size: 20px;
		line-height: 28px;
	}

	.pc-contact p {
		min-height: 0;
		margin-bottom: 25px;
		padding: 34px 0 0;
		font-size: 17px;
		line-height: 1.35;
	}

	.pc-contact p::before {
		left: 50%;
		margin-left: -12px;
	}
}
