/**
 * Protega Kalkylatorer — shortcode hub.
 * Scoped to .pcl so it does not restyle the WordPress theme.
 */

.pcl {
	--pcl-red: #c21f2f;
	--pcl-red-dark: #a21926;
	--pcl-heading: #4b4b4b;
	--pcl-gray-900: #1f2328;
	--pcl-gray-700: #4b5563;
	--pcl-gray-500: #6b7280;
	--pcl-gray-200: #e5e7eb;
	--pcl-gray-100: #f3f4f6;
	--pcl-white: #ffffff;
	--pcl-radius: 12px;
	--pcl-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);

	box-sizing: border-box;
	color: var(--pcl-gray-900);
	font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
	line-height: 1.5;
	margin: 0 auto;
	max-width: 1120px;
}

.pcl *,
.pcl *::before,
.pcl *::after {
	box-sizing: border-box;
}

.pcl svg {
	display: block;
	max-width: 100%;
}

.pcl-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 8px;
	color: var(--pcl-gray-500);
	font-size: 14px;
}

.pcl-lang-label {
	margin: 0;
}

.pcl-lang {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid var(--pcl-gray-200);
	border-radius: 999px;
	background: var(--pcl-gray-100);
}

.pcl-lang__btn {
	border: 0;
	background: transparent;
	padding: 6px 14px;
	font: inherit;
	font-weight: 600;
	color: var(--pcl-gray-500);
	cursor: pointer;
}

.pcl-lang__btn.is-active {
	background: var(--pcl-red);
	color: var(--pcl-white);
}

.pcl-hero {
	padding: 12px 0 8px;
}

.pcl-title {
	margin: 0 0 12px;
	color: var(--pcl-heading);
	font-size: clamp(32px, 5vw, 44px);
	font-weight: 700;
	letter-spacing: 0.4px;
	line-height: 1.15;
}

.pcl-lead {
	margin: 0;
	max-width: 640px;
	color: var(--pcl-gray-500);
	font-size: 1.05rem;
}

.pcl-calculators {
	padding: 16px 0 8px;
}

.pcl-steps {
	padding: 8px 0 20px;
}

.pcl-steps .pcl-section-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
}

.pcl-showcase {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 210px 28px 72px;
	min-height: 680px;
}

.pcl-showcase__bg {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	overflow: hidden;
	border-radius: 16px;
	z-index: 0;
	background: var(--pcl-white);
}

.pcl-showcase__slice {
	position: relative;
	align-self: stretch;
	min-height: 100%;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.pcl-showcase__slice::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(31, 35, 40, 0.28);
}

.pcl-showcase__slice--steel {
	clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
	z-index: 3;
}

.pcl-showcase__slice--wood {
	margin-left: -9%;
	clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
	z-index: 2;
}

.pcl-showcase__slice--joint {
	margin-left: -9%;
	clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
	z-index: 1;
	background-position: 48% 32%;
}

.pcl-showcase__dash {
	position: absolute;
	top: -12%;
	width: 6px;
	height: 124%;
	background: var(--pcl-white);
	z-index: 4;
	transform: rotate(-11deg);
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.pcl-showcase__dash--a {
	left: 32%;
}

.pcl-showcase__dash--b {
	left: 65%;
}

.pcl-showcase .pcl-grid {
	position: relative;
	z-index: 1;
	align-items: start;
}

.pcl-showcase .pcl-card {
	box-shadow: 0 14px 36px rgba(17, 24, 39, 0.2);
}

.pcl-section-title {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
	color: var(--pcl-gray-900);
}

.pcl-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pcl-grid--calcs {
	grid-template-areas:
		"steel surface joint"
		". wood firestop";
	align-items: start;
}

.pcl-grid__steel {
	grid-area: steel;
}

.pcl-grid__surface {
	grid-area: surface;
}

.pcl-grid__joint {
	grid-area: joint;
}

.pcl-grid__firestop {
	grid-area: firestop;
}

.pcl-grid__wood {
	grid-area: wood;
}

.pcl-card {
	display: flex;
	gap: 10px;
	height: auto;
	padding: 10px 12px;
	border: 1px solid var(--pcl-gray-200);
	border-radius: 10px;
	background: var(--pcl-white);
	color: inherit;
	text-decoration: none;
	box-shadow: var(--pcl-shadow);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.pcl-card:hover,
.pcl-card:focus {
	transform: translateY(-2px);
	border-color: var(--pcl-red);
	color: inherit;
	text-decoration: none;
}

.pcl-card__icon {
	flex: 0 0 36px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--pcl-gray-100);
	color: var(--pcl-red);
}

.pcl-card__icon svg {
	width: 22px;
	height: 22px;
	overflow: visible;
}

.pcl-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pcl-card__kicker {
	color: var(--pcl-gray-500);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pcl-card__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--pcl-gray-900);
	line-height: 1.25;
}

.pcl-card__text {
	color: var(--pcl-gray-500);
	font-size: 10.5px;
	line-height: 1.35;
}

.pcl-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	padding-top: 0;
	color: var(--pcl-red);
	font-weight: 600;
	font-size: 12px;
}

.pcl-card--soon {
	cursor: default;
	background: var(--pcl-gray-100);
	box-shadow: none;
}

.pcl-card--soon:hover,
.pcl-card--soon:focus {
	transform: none;
	border-color: var(--pcl-gray-200);
}

.pcl-card__cta--soon {
	color: var(--pcl-gray-500);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pcl-step-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pcl-step {
	padding: 12px 14px;
	border: 1px solid var(--pcl-gray-200);
	border-radius: 10px;
	background: var(--pcl-gray-100);
}

.pcl-step__num {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-bottom: 6px;
	border-radius: 999px;
	background: var(--pcl-red);
	color: var(--pcl-white);
	font-size: 11px;
	font-weight: 700;
}

.pcl-step h4 {
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--pcl-gray-900);
}

.pcl-step p {
	margin: 0;
	color: var(--pcl-gray-500);
	font-size: 12px;
	line-height: 1.4;
}

.pcl-support {
	padding: 24px 0 16px;
}

.pcl-support__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px;
	border: 1px solid var(--pcl-gray-200);
	border-radius: var(--pcl-radius);
	background: var(--pcl-white);
	box-shadow: var(--pcl-shadow);
}

.pcl-support .pcl-section-title {
	margin-bottom: 8px;
}

.pcl-support p {
	margin: 0;
	max-width: 720px;
	color: var(--pcl-gray-500);
}

.pcl-support p + p {
	margin-top: 12px;
}

.pcl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--pcl-red);
	color: var(--pcl-white);
	font-weight: 600;
	text-decoration: none;
}

.pcl-btn:hover,
.pcl-btn:focus {
	background: var(--pcl-red-dark);
	color: var(--pcl-white);
	text-decoration: none;
}

.pcl-note {
	margin: 0 0 8px;
	color: var(--pcl-gray-500);
	font-size: 14px;
}

@media (max-width: 960px) {
	.pcl-grid,
	.pcl-step-grid {
		grid-template-columns: 1fr;
	}

	.pcl-grid--calcs {
		grid-template-areas: none;
	}

	.pcl-grid--calcs > li {
		grid-area: auto;
	}

	.pcl-card {
		flex-direction: column;
	}

	.pcl-showcase {
		padding: 28px 12px;
		min-height: 0;
		justify-content: flex-start;
	}

	.pcl-showcase__bg {
		grid-template-columns: 1fr;
	}

	.pcl-showcase__slice--steel,
	.pcl-showcase__slice--wood,
	.pcl-showcase__slice--joint {
		margin-left: 0;
		clip-path: none;
	}

	.pcl-showcase__slice:not(.pcl-showcase__slice--steel) {
		display: none;
	}

	.pcl-showcase__dash {
		display: none;
	}
}

@media (max-width: 520px) {
	.pcl-lang-label {
		display: none;
	}
}
