/* =============================================================
   Webto tema — Klinik for fodterapi (Jeanette Kyhn)
   Design tokens, layout, components & sections.
   ============================================================= */

/* ---------- Base fallbacks for color/font vars ---------------
   These are overridden at runtime by inc/dynamic-styles.php
   which prints CSS variables from Theme Settings (ACF). */
:root {
	--webto-color-1: #5C7A66;   /* primary  — sage */
	--webto-color-2: #3D5446;   /* secondary — sage-deep */
	--webto-color-3: #E7EDE5;   /* accent   — sage-soft */
	--webto-color-4: #F4F1EA;   /* background — bg */
	--webto-color-5: #FBF9F4;   /* surface  — paper */
	--webto-color-6: #2A302B;   /* text     — ink */
	--webto-color-7: #6E746C;   /* muted    — muted */
	--webto-color-8: #E2DCCF;   /* border   — line */
	--webto-color-9: #EFF2EB;   /* success  — repurposed: sage-tint */
	--webto-color-10: #2A302B;  /* danger   — repurposed: footer ink */

	--webto-color-primary: var(--webto-color-1);
	--webto-color-secondary: var(--webto-color-2);
	--webto-color-accent: var(--webto-color-3);
	--webto-color-background: var(--webto-color-4);
	--webto-color-surface: var(--webto-color-5);
	--webto-color-text: var(--webto-color-6);
	--webto-color-muted: var(--webto-color-7);
	--webto-color-border: var(--webto-color-8);
	--webto-color-success: var(--webto-color-9);
	--webto-color-danger: var(--webto-color-10);

	--webto-font-family: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--webto-font-heading: "Newsreader", Georgia, "Times New Roman", serif;

	/* Design tokens (not in Theme Settings — static design language) */
	--webto-container-width: 1180px;
	--webto-content-width: 760px;
	--webto-gutter: clamp(22px, 5vw, 64px);
	--webto-radius: 18px;
	--webto-radius-sm: 14px;
	--webto-radius-pill: 999px;
	--webto-shadow: 0 1px 2px rgba(42, 48, 43, 0.04), 0 14px 40px -22px rgba(42, 48, 43, 0.30);

	--webto-space-xs: 0.5rem;
	--webto-space-sm: 1rem;
	--webto-space-md: 1.5rem;
	--webto-space-lg: 2rem;
	--webto-space-xl: 4rem;

	--webto-band-pad: clamp(56px, 9vw, 116px);
	--webto-header-h: 78px;
}

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

html { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--webto-color-background);
	color: var(--webto-color-text);
	font-family: var(--webto-font-family);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

button, input, textarea, select { font: inherit; }

a { color: inherit; }

p { text-wrap: pretty; }

h1, h2, h3, h4 {
	font-family: var(--webto-font-heading);
	font-weight: 400;
	letter-spacing: -0.01em;
}

:focus-visible { outline: 3px solid var(--webto-color-primary); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--webto-color-secondary);
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
}

/* ---------- Layout ---------- */
.wrap, .container {
	width: 100%;
	max-width: var(--webto-container-width);
	margin-inline: auto;
	padding-inline: var(--webto-gutter);
}

section { scroll-margin-top: calc(var(--webto-header-h) + 12px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--webto-color-background) 82%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--webto-color-border); }

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

.site-branding { display: flex; align-items: center; flex: 0 0 auto; min-width: 0; }

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	text-decoration: none;
	color: var(--webto-color-text);
}

.site-brand__seal { width: 38px; height: 38px; flex: none; }

.site-brand__text { display: inline-flex; flex-direction: column; }

.site-brand__title {
	font-family: var(--webto-font-heading);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.05;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.site-brand__sub {
	display: block;
	font-family: var(--webto-font-family);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--webto-color-muted);
	font-weight: 600;
	margin-top: 2px;
}

.site-logo__image { max-width: min(220px, 52vw); max-height: 56px; }
.site-logo__text { font-size: 1.25rem; font-weight: 700; }

/* Primary nav (desktop) */
.primary-navigation { display: flex; align-items: center; gap: 24px; flex: 1 1 auto; justify-content: flex-end; }

.primary-menu {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu li { position: relative; }

.primary-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
	font-size: 15.5px;
	font-weight: 500;
	color: var(--webto-color-text);
	padding: 4px 0;
	position: relative;
	transition: color 0.2s;
}

.primary-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 10px;
	height: 1.5px;
	background: var(--webto-color-primary);
	transition: right 0.25s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a { color: var(--webto-color-secondary); }

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after { right: 0; }

.primary-menu .sub-menu { display: none; }

/* Call button (sage pill with phone icon) */
.site-callbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--webto-color-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	padding: 11px 20px;
	border-radius: var(--webto-radius-pill);
	transition: background 0.2s, transform 0.2s;
	white-space: nowrap;
}

.site-callbtn:hover { background: var(--webto-color-secondary); transform: translateY(-1px); color: #fff; }
.site-callbtn svg { width: 16px; height: 16px; flex: none; }

/* Mobile menu toggle — ALWAYS on the right */
.menu-toggle {
	display: none;
	order: 99;
	margin-left: auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--webto-color-text);
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
}
.menu-toggle:hover { background: color-mix(in srgb, var(--webto-color-primary) 10%, transparent); }
.menu-toggle__svg { width: 26px; height: 26px; display: block; }
.menu-toggle__svg .bar { transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center; }
.menu-toggle[aria-expanded="true"] .bar.bar-1 { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar.bar-2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar.bar-3 { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
	display: none;
	position: fixed;
	inset: var(--webto-header-h) 0 0 0;
	z-index: 49;
	background: var(--webto-color-surface);
	flex-direction: column;
	gap: 4px;
	padding: 24px var(--webto-gutter) 32px;
	overflow-y: auto;
	border-top: 1px solid var(--webto-color-border);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu ul { list-style: none; margin: 0; padding: 0; }

.mobile-menu a {
	display: block;
	font-family: var(--webto-font-heading);
	font-size: 22px;
	font-weight: 500;
	padding: 14px 0;
	border-bottom: 1px solid var(--webto-color-border);
	text-decoration: none;
	color: var(--webto-color-text);
}

.mobile-menu a:hover { color: var(--webto-color-primary); }

.mobile-menu .site-callbtn {
	display: inline-flex;
	justify-content: center;
	margin-top: 18px;
	padding: 14px 24px;
	font-size: 17px;
	font-family: var(--webto-font-family);
	width: max-content;
}

/* ---------- Section scaffolding ---------- */
.band { padding-block: var(--webto-band-pad); }
.band.tint { background: var(--webto-color-success); /* sage-tint alias */ }
.band.paper { background: var(--webto-color-surface); }
.band.ink { background: var(--webto-color-text); color: #fff; }

.sec-head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.tight { margin-bottom: 0; }

.kicker {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--webto-color-primary);
	display: block;
	margin-bottom: 16px;
}

.sec-head h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; margin: 0 0 16px; }
.sec-head p { font-size: clamp(17px, 1.7vw, 19px); color: var(--webto-color-muted); margin: 0; max-width: 60ch; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--webto-color-secondary);
	margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--webto-color-primary); }

/* Reveal on scroll (only when JS active) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--webto-color-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 17px;
	padding: 15px 28px;
	border-radius: var(--webto-radius-pill);
	transition: background 0.2s, transform 0.2s;
	box-shadow: var(--webto-shadow);
	border: 0;
	cursor: pointer;
	font-family: inherit;
}
.btn-primary:hover { background: var(--webto-color-secondary); transform: translateY(-2px); color: #fff; }
.btn-primary svg { width: 18px; height: 18px; flex: none; }

.btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	color: var(--webto-color-text);
}
.btn-ghost .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--webto-color-primary); }
.btn-ghost:hover { color: var(--webto-color-secondary); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero h1 {
	font-size: clamp(42px, 6.4vw, 78px);
	line-height: 1.02;
	margin: 0 0 24px;
	letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--webto-color-secondary); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--webto-color-muted); max-width: 32ch; margin: 0 0 34px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media img {
	width: 100%;
	height: min(62vh, 560px);
	object-fit: cover;
	border-radius: var(--webto-radius);
	box-shadow: var(--webto-shadow);
}
.hero-badge {
	position: absolute;
	bottom: -26px;
	left: -26px;
	background: var(--webto-color-surface);
	border: 1px solid var(--webto-color-border);
	border-radius: 16px;
	padding: 16px 20px;
	box-shadow: var(--webto-shadow);
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 280px;
}
.hero-badge .seal { width: 44px; height: 44px; flex: none; }
.hero-badge span { font-size: 13.5px; line-height: 1.4; color: var(--webto-color-text); }
.hero-badge span b { font-weight: 600; }

/* ---------- Velkommen/intro (portrait + text) ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.intro-copy h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; margin: 0 0 22px; }
.intro-copy p { color: var(--webto-color-text); margin: 0 0 18px; }
.intro-copy p.muted { color: var(--webto-color-muted); }
.intro-copy .cta-row { margin-top: 28px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

.portrait { position: relative; }
.portrait img {
	width: 100%;
	border-radius: var(--webto-radius);
	box-shadow: var(--webto-shadow);
	aspect-ratio: 4 / 4.4;
	object-fit: cover;
}
.portrait .cap {
	position: absolute;
	left: 22px;
	bottom: 22px;
	background: color-mix(in srgb, var(--webto-color-surface) 92%, transparent);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 12px;
	padding: 12px 16px;
	box-shadow: var(--webto-shadow);
}
.portrait .cap b { font-family: var(--webto-font-heading); font-weight: 500; font-size: 18px; display: block; }
.portrait .cap small { color: var(--webto-color-muted); font-size: 13px; }

/* ---------- Behandling steps ---------- */
.steps {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--webto-color-border);
	border: 1px solid var(--webto-color-border);
	border-radius: var(--webto-radius);
	overflow: hidden;
}
.step {
	background: var(--webto-color-surface);
	padding: clamp(26px, 3vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.step .n { font-family: var(--webto-font-heading); font-size: 15px; color: var(--webto-color-primary); font-weight: 500; letter-spacing: 0.04em; }
.step h3 { font-size: 22px; margin: 0; line-height: 1.2; }
.step p { margin: 0; color: var(--webto-color-muted); font-size: 16px; }

/* ---------- Garanti list ---------- */
.guarantee-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.glist li {
	display: flex;
	gap: 16px;
	padding: 17px 4px;
	border-bottom: 1px solid var(--webto-color-border);
	align-items: flex-start;
}
.glist li:last-child { border-bottom: 0; }
.glist .tick { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--webto-color-primary); }
.glist span { font-size: 16.5px; line-height: 1.45; }

/* ---------- Priser ---------- */
.price-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.price-card {
	background: var(--webto-color-surface);
	border: 1px solid var(--webto-color-border);
	border-radius: var(--webto-radius);
	padding: clamp(28px, 3.4vw, 44px);
	box-shadow: var(--webto-shadow);
}
.price-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--webto-color-border);
}
.price-row:first-of-type { padding-top: 4px; }
.price-row:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.price-row .pname { font-size: 19px; font-weight: 500; }
.price-row .pname small { display: block; font-weight: 400; font-size: 14px; color: var(--webto-color-muted); margin-top: 3px; }
.price-row .pval { font-family: var(--webto-font-heading); font-size: 26px; color: var(--webto-color-secondary); white-space: nowrap; }

.price-aside { display: grid; gap: 16px; align-content: start; }
.info-pill { background: var(--webto-color-accent); border-radius: var(--webto-radius-sm); padding: 22px 24px; }
.info-pill h3 { font-size: 20px; margin: 0 0 6px; }
.info-pill p { margin: 0; color: var(--webto-color-secondary); font-size: 15.5px; }

/* ---------- Tilskud cards ---------- */
.tilskud-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tcard {
	background: var(--webto-color-surface);
	border: 1px solid var(--webto-color-border);
	border-radius: var(--webto-radius);
	padding: clamp(28px, 3.4vw, 42px);
}
.tcard .ico { width: 40px; height: 40px; color: var(--webto-color-primary); margin-bottom: 18px; }
.tcard h3 { font-size: 23px; margin: 0 0 12px; }
.tcard p { margin: 0; color: var(--webto-color-muted); font-size: 16.5px; }

/* ---------- Kontakt / find klinikken ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block h3 {
	font-size: 15px;
	font-family: var(--webto-font-family);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--webto-color-primary);
	margin: 0 0 10px;
}
.contact-block p,
.contact-block a {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	text-decoration: none;
	color: var(--webto-color-text);
}
.contact-block a:hover { color: var(--webto-color-secondary); text-decoration: underline; }
.contact-block .big { font-family: var(--webto-font-heading); font-size: clamp(28px, 3.4vw, 40px); color: var(--webto-color-secondary); display: inline-block; }
.contact-block .muted { color: var(--webto-color-muted); margin-top: 6px; font-size: 16px; }

.directions { background: var(--webto-color-accent); border-radius: var(--webto-radius-sm); padding: 22px 24px; }
.directions p { margin: 0; color: var(--webto-color-secondary); font-size: 16px; }

.map {
	position: relative;
	border-radius: var(--webto-radius);
	overflow: hidden;
	border: 1px solid var(--webto-color-border);
	box-shadow: var(--webto-shadow);
	min-height: 360px;
	background: var(--webto-color-success);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.map__consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-align: center;
	padding: 24px;
	background: var(--webto-color-success);
	color: var(--webto-color-secondary);
}
.map__consent p { margin: 0; max-width: 36ch; font-size: 16px; }
.map__consent .btn-primary { font-size: 15px; padding: 12px 22px; }

/* ---------- CTA band ---------- */
.cta-band {
	background: var(--webto-color-secondary);
	color: #fff;
	text-align: center;
	padding-block: clamp(60px, 8vw, 100px);
}
.cta-band h2 { font-size: clamp(30px, 4.6vw, 52px); margin: 0 0 18px; line-height: 1.06; color: #fff; }
.cta-band h2 em { font-style: italic; color: color-mix(in srgb, var(--webto-color-accent) 90%, #fff); }
.cta-band p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 19px;
	margin: 0 auto 34px;
	max-width: 46ch;
}
.cta-band .btn-primary {
	background: var(--webto-color-surface);
	color: var(--webto-color-secondary);
}
.cta-band .btn-primary:hover { background: #fff; color: var(--webto-color-secondary); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--webto-color-text);
	color: rgba(255, 255, 255, 0.72);
	padding-block: clamp(48px, 6vw, 72px);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}

.site-footer__brand b {
	font-family: var(--webto-font-heading);
	color: #fff;
	font-size: 22px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 12px;
}
.site-footer__brand b .seal { width: 34px; height: 34px; }
.site-footer__brand p { margin: 16px 0 0; font-size: 15px; max-width: 32ch; }

.site-footer__col h4 {
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 14px;
	font-family: var(--webto-font-family);
	font-weight: 600;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col a,
.site-footer__col p {
	display: block;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15.5px;
	margin: 0 0 9px;
	line-height: 1.5;
}
.site-footer__col a:hover { color: #fff; }

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 44px;
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 600; }
.site-footer__bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 100;
	display: none;
	max-width: 720px;
	margin-inline: auto;
	background: var(--webto-color-surface);
	border: 1px solid var(--webto-color-border);
	border-radius: var(--webto-radius);
	box-shadow: 0 12px 50px -16px rgba(42, 48, 43, 0.4);
	padding: 20px 24px;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 15px; flex: 1 1 280px; color: var(--webto-color-text); }
.cookie-banner p a { color: var(--webto-color-secondary); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.cookie-banner button {
	border: 0;
	cursor: pointer;
	border-radius: var(--webto-radius-pill);
	font-family: inherit;
	font-weight: 600;
	font-size: 14.5px;
	padding: 11px 18px;
	transition: background 0.2s, color 0.2s;
}
.cookie-banner .cookie-decline { background: transparent; color: var(--webto-color-text); padding: 11px 16px; }
.cookie-banner .cookie-decline:hover { background: var(--webto-color-border); }
.cookie-banner .cookie-accept { background: var(--webto-color-primary); color: #fff; }
.cookie-banner .cookie-accept:hover { background: var(--webto-color-secondary); }

/* ---------- Document/Datapolitik page ---------- */
.doc-hero {
	padding-top: clamp(40px, 6vw, 80px);
	padding-bottom: clamp(20px, 3vw, 36px);
}
.doc-hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; margin: 0 0 16px; letter-spacing: -0.02em; }
.doc-hero p { color: var(--webto-color-muted); font-size: 19px; max-width: 60ch; margin: 0; }

.doc { padding-bottom: clamp(60px, 8vw, 110px); }
.doc-card {
	background: var(--webto-color-surface);
	border: 1px solid var(--webto-color-border);
	border-radius: var(--webto-radius);
	box-shadow: var(--webto-shadow);
	padding: clamp(28px, 5vw, 64px);
	max-width: 820px;
}
.doc-card h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 42px 0 14px; line-height: 1.2; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card h2 .num { color: var(--webto-color-primary); font-size: 0.8em; margin-right: 10px; }
.doc-card p { margin: 0 0 16px; color: var(--webto-color-text); }
.doc-card p.lead { font-size: 19px; }
.doc-card strong { font-weight: 600; }
.doc-card ul { margin: 0 0 16px; padding-left: 22px; }
.doc-card li { margin-bottom: 8px; }
.doc-card a { color: var(--webto-color-secondary); }
.meta-box {
	background: var(--webto-color-accent);
	border-radius: var(--webto-radius-sm);
	padding: 20px 24px;
	margin: 0 0 8px;
}
.meta-box p { margin: 0; color: var(--webto-color-secondary); font-size: 16.5px; line-height: 1.6; }

/* ---------- Page hero (sub-page banner) ---------- */
.page-hero { padding-block: clamp(60px, 8vw, 110px) clamp(40px, 5vw, 70px); }
.page-hero .wrap { max-width: 880px; }
.page-hero .kicker { color: var(--webto-color-primary); }
.page-hero h1 {
	font-size: clamp(40px, 6vw, 72px);
	line-height: 1.04;
	margin: 0 0 18px;
	letter-spacing: -0.02em;
}
.page-hero h1 em { font-style: italic; color: var(--webto-color-secondary); }
.page-hero p.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--webto-color-muted); margin: 0; max-width: 60ch; }

/* ---------- Service preview cards (front page bridge) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(28px, 3.2vw, 38px);
	background: var(--webto-color-surface);
	border: 1px solid var(--webto-color-border);
	border-radius: var(--webto-radius);
	text-decoration: none;
	color: var(--webto-color-text);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.svc-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--webto-shadow);
	border-color: var(--webto-color-primary);
	color: var(--webto-color-text);
}
.svc-card .ico { width: 32px; height: 32px; color: var(--webto-color-primary); }
.svc-card h3 { font-size: 22px; margin: 0; line-height: 1.2; }
.svc-card p { margin: 0; color: var(--webto-color-muted); font-size: 16px; }
.svc-card .more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--webto-color-secondary);
	font-size: 15px;
}
.svc-card:hover .more { gap: 10px; }

/* ---------- WordPress editor escape-hatches (legacy compat) ---------- */
.entry-content > * { margin-block: 0 var(--webto-space-md); }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content .alignwide { width: min(100vw - 2rem, var(--webto-container-width)); max-width: var(--webto-container-width); margin-inline: auto; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-block-image img { border-radius: var(--webto-radius); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
	body { font-size: 17px; }
	.primary-menu,
	.primary-navigation > .site-callbtn { display: none; }
	.menu-toggle { display: inline-flex; }
	.hero-grid,
	.intro-grid,
	.guarantee-grid,
	.price-wrap,
	.tilskud-grid,
	.contact-grid,
	.site-footer__inner,
	.svc-grid { grid-template-columns: 1fr; }
	.hero-media { order: -1; }
	.hero-media img { height: 46vh; }
	.hero-badge { left: 50%; transform: translateX(-50%); bottom: -22px; right: auto; }
	.steps { grid-template-columns: 1fr; }
	.site-footer__inner { gap: 30px; }
	.cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
}

@media (max-width: 540px) {
	.hero-badge { position: static; transform: none; margin-top: 34px; max-width: none; }
	.price-row { flex-direction: column; gap: 4px; align-items: flex-start; }
	.price-row .pval { font-size: 22px; }
	.cta-band p { font-size: 17px; }
}
