/*
Theme Name: Magnetsokk
Author: Sveinung Karlsen
Description: Theme for Magnetsokk, a website by Det norske Naturhuset.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: magnetsokk
*/

:root {
	--gpg-bg: #f6f9fb;
	--gpg-surface: #ffffff;
	--gpg-text: #12222b;
	--gpg-muted: #4c5d66;
	--gpg-primary: #0f6f8f;
	--gpg-primary-hover: #0c5b75;
	--gpg-cta: #d97706;
	--gpg-cta-hover: #b45309;
	--gpg-cta-shadow: 0 10px 22px rgba(217, 119, 6, 0.32), 0 2px 4px rgba(18, 34, 43, 0.10);
	--gpg-cta-shadow-hover: 0 14px 28px rgba(217, 119, 6, 0.40), 0 3px 6px rgba(18, 34, 43, 0.12);
	--gpg-border: #d6e1e6;
	--gpg-radius: 16px;
	--gpg-shadow: 0 8px 24px rgba(18, 34, 43, 0.08);
	--gpg-font-body: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gpg-font-heading: "Lora", Georgia, "Times New Roman", serif;
}

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--gpg-font-body);
	color: var(--gpg-text);
	background: var(--gpg-bg);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.gpg-benefit-title,
.gpg-faq-item summary {
	font-family: var(--gpg-font-heading);
	letter-spacing: -0.005em;
	color: #0a1f28;
}

h1,
h2,
h3 {
	line-height: 1.25;
}

a {
	color: var(--gpg-primary);
}

.gpg-btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid #0f2f3b;
	outline-offset: 3px;
}

.gpg-container {
	width: min(100% - 2.4rem, 1100px);
	margin-inline: auto;
}

.gpg-section {
	padding: 4.25rem 0;
}

.gpg-section--alt {
	background: #dbe7ee;
	border-top: 1px solid #b8cad4;
	border-bottom: 1px solid #b8cad4;
}

.gpg-section h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.55rem, 5vw, 2rem);
	line-height: 1.2;
}

.gpg-section-intro {
	margin-top: 0;
	margin-bottom: 1.75rem;
	color: var(--gpg-muted);
	max-width: 62ch;
}

.gpg-section-intro--wide {
	max-width: none;
}

.gpg-hero {
	padding: 4.5rem 0 3.5rem;
	background: linear-gradient(180deg, #edf4f7 0%, var(--gpg-bg) 100%);
}

.gpg-hero-grid {
	display: grid;
	gap: 1.5rem;
}

.gpg-kicker {
	display: inline-block;
	margin: 0 0 0.8rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: #d8ecf4;
	color: #0b4d61;
	font-size: 0.85rem;
	font-weight: 600;
}

.gpg-hero h1 {
	margin: 0;
	font-size: clamp(2rem, 7vw, 3.1rem);
	line-height: 1.15;
}

.gpg-hero-lead {
	margin: 1.15rem 0 1.65rem;
	color: var(--gpg-muted);
	font-size: 1.08rem;
	max-width: 52ch;
}

.gpg-hero-points {
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.gpg-hero-points li {
	margin-top: 0.45rem;
	font-weight: 500;
}

.gpg-hero-points li::before {
	content: "\2713 ";
	color: var(--gpg-primary);
	font-weight: 700;
}

.gpg-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 1.1rem 1.9rem;
	border-radius: 999px;
	background: var(--gpg-cta);
	color: #ffffff;
	text-decoration: none;
	font-family: var(--gpg-font-body);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.2;
	letter-spacing: 0.01em;
	box-shadow: var(--gpg-cta-shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.gpg-btn::after {
	content: "\2192";
	font-weight: 700;
	transition: transform 0.18s ease;
}

.gpg-btn:hover {
	background: var(--gpg-cta-hover);
	transform: translateY(-1px);
	box-shadow: var(--gpg-cta-shadow-hover);
}

.gpg-btn:hover::after {
	transform: translateX(4px);
}

.gpg-btn:active {
	transform: translateY(0);
}

.gpg-media {
	background: #ffffff;
	border: 1px solid var(--gpg-border);
	border-radius: var(--gpg-radius);
	overflow: hidden;
	min-height: 260px;
	display: grid;
	place-items: center;
}

.gpg-media--tall {
	min-height: 320px;
}

.gpg-media--spaced {
	margin-bottom: 1.2rem;
}

.gpg-media-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gpg-trust-strip {
	padding: 1.2rem 0 0.8rem;
}

.gpg-trust-grid {
	display: grid;
	gap: 0.9rem;
}

.gpg-trust-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 600;
	color: #204453;
}

.gpg-trust-icon,
.gpg-card-icon {
	display: inline-grid;
	place-items: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 999px;
	background: #d8ecf4;
	color: #0b4d61;
	font-size: 0.92rem;
	line-height: 1;
}

.gpg-split {
	display: grid;
	gap: 1.2rem;
	align-items: center;
}

.gpg-benefit-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.95rem;
}

.gpg-benefit-list li {
	padding: 0.35rem 0;
	border-bottom: 1px solid #dbe6eb;
}

.gpg-benefit-list li:last-child {
	border-bottom: 0;
}

.gpg-benefit-title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.gpg-benefit-text {
	margin: 0.3rem 0 0;
	color: var(--gpg-muted);
}

.gpg-grid {
	display: grid;
	gap: 1.2rem;
}

.gpg-card {
	background: var(--gpg-surface);
	border: 1px solid var(--gpg-border);
	border-radius: var(--gpg-radius);
	padding: 1.35rem;
	box-shadow: var(--gpg-shadow);
}

.gpg-step h3 {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	line-height: 1.25;
}

.gpg-landing:not(.magnetsokk-index) .gpg-card p {
	margin: 0;
	color: var(--gpg-muted);
}

.gpg-steps {
	counter-reset: gpg-step;
}

.gpg-step::before {
	counter-increment: gpg-step;
	content: counter(gpg-step);
	display: inline-grid;
	place-content: center;
	width: 2rem;
	height: 2rem;
	margin-bottom: 0.8rem;
	border-radius: 999px;
	background: #d8ecf4;
	color: #0b4d61;
	font-weight: 700;
}

.gpg-section-cta {
	margin-top: 2rem;
	text-align: center;
}

.gpg-proof-stack {
	display: grid;
	gap: 2rem;
	margin: 0 0 1.6rem;
}

.gpg-proof-item {
	display: grid;
	gap: 1.1rem;
	align-items: stretch;
}

.gpg-proof-stack .gpg-media {
	min-height: 300px;
	border-radius: var(--gpg-radius);
}

.gpg-proof-stack .gpg-card {
	position: relative;
	padding: 1.85rem 1.7rem 1.6rem;
	border-left: 4px solid var(--gpg-primary);
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.gpg-proof-stack .gpg-card::before {
	content: "\201C";
	position: absolute;
	top: -1.1rem;
	left: 0.9rem;
	font-family: var(--gpg-font-heading);
	font-size: 5.5rem;
	line-height: 1;
	color: var(--gpg-primary);
	opacity: 0.14;
	pointer-events: none;
}

.gpg-proof-quote {
	position: relative;
	font-family: var(--gpg-font-heading);
	font-style: italic;
	font-weight: 500;
	color: #1d3540;
	font-size: 1.2rem;
	line-height: 1.55;
	margin: 0;
}

.gpg-proof-author {
	margin: 1.05rem 0 0;
	font-weight: 700;
	font-size: 1rem;
	color: #204453;
	letter-spacing: 0.01em;
}

.gpg-disclaimer {
	font-size: 0.95rem;
	color: #445962;
	max-width: 70ch;
}

.gpg-faq-list {
	display: grid;
	gap: 0.9rem;
}

.gpg-faq-item {
	border: 1px solid var(--gpg-border);
	background: var(--gpg-surface);
	border-radius: 12px;
	padding: 0.9rem 1.1rem;
}

.gpg-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-right: 0.25rem;
}

.gpg-faq-item summary::-webkit-details-marker {
	display: none;
}

.gpg-faq-item summary::after {
	content: "";
	flex: none;
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2.5px solid var(--gpg-primary);
	border-bottom: 2.5px solid var(--gpg-primary);
	transform: rotate(45deg) translate(-2px, -2px);
	transform-origin: center;
	transition: transform 0.3s ease;
}

.gpg-faq-item[open] summary::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.gpg-faq-panel {
	overflow: hidden;
}

.gpg-faq-panel > :first-child {
	margin-top: 0.65rem;
}

.gpg-faq-panel p,
.gpg-faq-panel ul,
.gpg-faq-panel ol {
	margin: 0.65rem 0 0;
	color: var(--gpg-muted);
}

.gpg-faq-panel strong,
.gpg-faq-panel b {
	font-weight: 700;
}

.gpg-form-anchor {
	scroll-margin-top: 1.5rem;
}

.gpg-form-wrap {
	background: #0f2f3b;
	color: #ffffff;
	border-radius: calc(var(--gpg-radius) + 2px);
	padding: 1.6rem;
	box-shadow: var(--gpg-shadow);
}

.gpg-form-wrap h2 {
	margin: 0 0 0.7rem;
	text-align: center;
	color: #ffffff;
}

.gpg-form-wrap > p {
	margin: 0 auto 1.15rem;
	max-width: 60ch;
	text-align: center;
}

.gpg-form-wrap p {
	color: #d8edf5;
}

.gpg-form-placeholder {
	border: 0;
	border-radius: 0;
	padding: 0;
	background: transparent;
}

.gpg-form-wrap .gpg-form-placeholder,
.gpg-form-wrap .gpg-form-placeholder * {
	color: #e7f4fa;
}

.gpg-form-wrap :is(label, legend, .description, .wpcf7-list-item-label, .wpforms-field-label, .frm_primary_label) {
	color: #e7f4fa;
}

.gpg-form-wrap :is(input, textarea, select) {
	color: #12222b;
	background-color: #ffffff;
}

.gpg-form-note {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
}

.magnetsokk-index .gpg-hero h1 {
	max-width: 880px;
}

.magnetsokk-breadcrumb-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.9rem;
	color: #0b4d61;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.magnetsokk-breadcrumb-link::before {
	content: "\2190";
	font-weight: 700;
}

.magnetsokk-breadcrumb-link:hover {
	text-decoration: underline;
}

.magnetsokk-index .gpg-hero {
	padding-bottom: 1.5rem;
}

.magnetsokk-index .gpg-hero-lead {
	max-width: 62ch;
	margin-bottom: 0;
}

.magnetsokk-index .gpg-section {
	padding-top: 1.5rem;
}

.magnetsokk-index .gpg-content-stack {
	display: grid;
	gap: 1.3rem;
}

.magnetsokk-index .gpg-card {
	padding: clamp(1.35rem, 4vw, 2.2rem);
}

.magnetsokk-index .gpg-card h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.55rem, 5vw, 2rem);
}

.gpg-entry-content {
	color: var(--gpg-muted);
}

.gpg-entry-content > *:first-child {
	margin-top: 0;
}

.gpg-entry-content > *:last-child {
	margin-bottom: 0;
}

.gpg-entry-content :is(h2, h3, h4, h5, h6) {
	color: #0a1f28;
	margin-top: 1.6em;
}

.gpg-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.gpg-empty {
	margin: 0;
	color: var(--gpg-muted);
}

@media (prefers-reduced-motion: reduce) {
	.gpg-btn,
	.gpg-btn::after {
		transition: none;
	}

	.gpg-btn:hover {
		transform: none;
	}

	.gpg-btn:hover::after {
		transform: none;
	}
}

@media (min-width: 700px) {
	.gpg-section {
		padding: 5.25rem 0;
	}

	.gpg-hero-grid {
		grid-template-columns: 1.2fr 1fr;
		align-items: center;
		gap: 2.2rem;
	}

	.gpg-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gpg-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.gpg-trust-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.gpg-proof-item {
		grid-template-columns: 0.9fr 1.1fr;
		gap: 2rem;
		align-items: center;
	}

	.gpg-proof-stack .gpg-card {
		padding: 2.2rem 2rem 2rem;
	}

	.gpg-proof-quote {
		font-size: 1.35rem;
		line-height: 1.5;
	}

	.gpg-proof-author {
		font-size: 1.05rem;
	}

	.gpg-split {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	.gpg-form-wrap {
		padding: 2.2rem;
	}

	.magnetsokk-index .gpg-section {
		padding-top: 1.75rem;
	}

	.magnetsokk-index .gpg-content-stack {
		gap: 1.6rem;
	}
}
