/*
Theme Name: Byggeportal – GeneratePress Child
Theme URI: https://byggeportal.dk
Template: generatepress
Author: Byggeportal
Description: Child theme til GeneratePress til byggeportal.dk – affiliate-site for 3 gratis byggetilbud (3byggetilbud.dk). Navy + orange design med danske blokke: hero med prisberegner-badge, 3-trins-guide, opgave-grid, pristabel, FAQ m.m.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: byggeportal
*/

/* ---------------------------------------------------------------
   Skrift (Archivo, variabel – lokalt hostet)
--------------------------------------------------------------- */
@font-face {
	font-family: 'Archivo';
	src: url('assets/fonts/archivo.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--bp-navy: #16324f;
	--bp-navy-dark: #0f2438;
	--bp-orange: #f26a21;
	--bp-orange-dark: #d5570f;
	--bp-orange-soft: #fdeadd;
	--bp-groen: #1a9a5c;
	--bp-groen-soft: #e6f5ed;
	--bp-roed: #c63b3b;
	--bp-roed-soft: #fbebeb;
	--bp-lys: #f4f8fb;
	--bp-kant: #e1e8ef;
	--bp-muted: #4a5a6a;
	--bp-warning-bg: #fff7e0;
	--bp-warning-border: #e8b800;
}

body {
	font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--bp-navy);
}

/* ---------------------------------------------------------------
   Knapper (core-blok-knapper i mønstrene)
--------------------------------------------------------------- */
.wp-block-button__link {
	background: var(--bp-orange);
	color: #ffffff;
	border-radius: 10px;
	font-weight: 700;
	padding: 0.9rem 2.1rem;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(242, 106, 33, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-button__link:hover {
	background: var(--bp-orange);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(242, 106, 33, 0.45);
}

.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--bp-navy);
	color: var(--bp-navy);
	box-shadow: none;
}

.is-style-outline .wp-block-button__link:hover {
	background: var(--bp-navy);
	color: #ffffff;
	transform: none;
}

/* Store CTA-knapper */
.bp-cta-stor .wp-block-button__link {
	font-size: 1.15rem;
	padding: 1rem 2.6rem;
}

/* Lille "Annonce"-mærkning under knapper (markedsføringsloven) */
.bp-annonce {
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a97a5;
	margin: 0.4rem 0 0;
}

/* ---------------------------------------------------------------
   Kicker + badge
--------------------------------------------------------------- */
.bp-kicker {
	color: var(--bp-orange);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 800;
	font-size: 0.85rem;
	margin-bottom: 0;
}

.bp-badge {
	display: inline-block;
	background: var(--bp-orange-soft);
	color: var(--bp-orange);
	font-weight: 700;
	font-size: 0.875rem;
	border-radius: 999px;
	padding: 0.4rem 1rem;
}

/* ===============================================================
   HERO (byggeportal.dk – billede, USP-kort og navy stats-bund)
=============================================================== */
.bp-hero {
	background: linear-gradient(135deg, var(--bp-lys) 0%, #ffffff 70%);
	border: 1px solid var(--bp-kant);
	border-radius: 18px;
	overflow: hidden;
	margin: 0 0 40px;
	font-size: 16px;
}

.bp-hero__main {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 36px;
	padding: 36px 40px 28px;
	align-items: center;
}

/* Venstre: tekst */
.bp-hero__badge {
	display: inline-block;
	background: var(--bp-orange-soft);
	color: var(--bp-orange);
	font-weight: 700;
	font-size: 14px;
	padding: 7px 16px;
	border-radius: 99px;
	margin-bottom: 16px;
}

.bp-hero__tekst h1,
.bp-hero__tekst h2 {
	font-size: 34px;
	line-height: 1.15;
	color: var(--bp-navy);
	margin: 0 0 14px;
}

.bp-hero__tekst h1 em, .bp-hero__tekst h1 span,
.bp-hero__tekst h2 em, .bp-hero__tekst h2 span {
	color: var(--bp-groen);
	font-style: normal;
}

.bp-hero__resume {
	font-size: 17px;
	line-height: 1.55;
	color: var(--bp-muted);
	margin: 0 0 22px;
}

.bp-hero__cta {
	display: inline-block;
	background: var(--bp-orange);
	color: #fff !important;
	font-weight: 700;
	font-size: 17px;
	padding: 15px 30px;
	border-radius: 10px;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(242, 106, 33, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bp-hero__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(242, 106, 33, 0.45);
	color: #fff !important;
}

.bp-hero__annonce {
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a97a5;
	margin: 10px 0 4px;
}

.bp-hero__trust {
	display: flex;
	gap: 18px;
	font-size: 13px;
	color: var(--bp-groen);
	font-weight: 600;
}

/* Højre: billede + USP-kort der overlapper */
.bp-hero__visuel {
	position: relative;
}

.bp-hero__billede img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
	box-shadow: 0 8px 24px rgba(22, 50, 79, 0.18);
}

.bp-hero__usp {
	background: #fff;
	border: 1px solid var(--bp-kant);
	border-radius: 14px;
	padding: 16px 20px;
	margin: -46px 18px 0;
	position: relative;
	box-shadow: 0 10px 26px rgba(22, 50, 79, 0.12);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bp-hero__usp-punkt {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #33424f;
}

.bp-hero__usp-punkt strong {
	color: var(--bp-navy);
}

.bp-hero__flueben {
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--bp-groen);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

/* Bund: stats + stjerner */
.bp-hero__bund {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--bp-navy);
	padding: 18px 40px;
}

.bp-hero__stats {
	display: flex;
	gap: 40px;
}

.bp-hero__stat {
	display: flex;
	flex-direction: column;
}

.bp-hero__stat-tal {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
}

.bp-hero__stat-tekst {
	font-size: 12px;
	color: #9db3c8;
}

.bp-hero__stjerner {
	display: flex;
	gap: 5px;
}

.bp-hero__stjerne {
	width: 30px;
	height: 30px;
	background: var(--bp-groen);
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bp-hero__stjerne svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

/* Halv stjerne (Trustpilot-stil: venstre halvdel grøn, højre grå) */
.bp-hero__stjerne--halv {
	background: linear-gradient(90deg, var(--bp-groen) 0 50%, #3d5670 50% 100%);
}

.bp-hero__partner-note {
	font-size: 11px;
	color: #9db3c8;
	margin-top: 6px;
}

/* Hero-mobil */
@media (max-width: 820px) {
	.bp-hero__main {
		grid-template-columns: 1fr;
		padding: 26px 22px 20px;
		gap: 26px;
	}

	.bp-hero__tekst h1,
	.bp-hero__tekst h2 {
		font-size: 26px;
	}

	.bp-hero__billede img {
		height: 200px;
	}

	.bp-hero__usp {
		margin: -36px 12px 0;
	}

	.bp-hero__bund {
		padding: 16px 22px;
	}

	.bp-hero__stats {
		gap: 22px;
		flex-wrap: wrap;
	}

	.bp-hero__stat-tal {
		font-size: 18px;
	}
}

/* ---------------------------------------------------------------
   3 trin ("Sådan virker det")
--------------------------------------------------------------- */
.bp-trin {
	counter-reset: bp-trin;
}

.bp-trin-kort {
	background: #ffffff;
	border: 1px solid var(--bp-kant);
	border-radius: 14px;
	padding: 2rem 1.6rem 1.8rem;
	position: relative;
	counter-increment: bp-trin;
	box-shadow: 0 1px 3px rgba(22, 50, 79, 0.05);
}

.bp-trin-kort::before {
	content: counter(bp-trin);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	background: var(--bp-orange);
	color: #ffffff;
	font-weight: 800;
	font-size: 1.3rem;
	margin-bottom: 1.1rem;
	box-shadow: 0 4px 14px rgba(242, 106, 33, 0.35);
}

.bp-trin-kort h3 {
	font-size: 1.15rem;
	margin-bottom: 0.4rem;
}

.bp-trin-kort p {
	color: var(--bp-muted);
	margin-bottom: 0;
	font-size: 0.98rem;
}

/* ---------------------------------------------------------------
   Opgave-grid (populære håndværkeropgaver)
--------------------------------------------------------------- */
.bp-opgave {
	background: #ffffff;
	border: 1px solid var(--bp-kant);
	border-radius: 14px;
	padding: 1.4rem 1.2rem;
	text-align: center;
	box-shadow: 0 1px 3px rgba(22, 50, 79, 0.05);
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.bp-opgave:hover {
	border-color: var(--bp-orange);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(22, 50, 79, 0.1);
}

.bp-opgave .bp-opgave-ikon {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 0.6rem;
}

.bp-opgave h3 {
	font-size: 1.02rem;
	margin-bottom: 0.2rem;
}

.bp-opgave h3 a {
	color: var(--bp-navy);
	text-decoration: none;
}

.bp-opgave h3 a:hover {
	color: var(--bp-orange);
}

.bp-opgave p {
	color: var(--bp-muted);
	font-size: 0.88rem;
	margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Statistik ("Derfor 3 tilbud")
--------------------------------------------------------------- */
.bp-stat h3 {
	color: var(--bp-orange);
	font-size: 2.6rem;
	margin-bottom: 0.15rem;
}

.bp-stat p {
	color: var(--bp-muted);
	font-weight: 600;
	margin-bottom: 0;
}

/* ---------------------------------------------------------------
   CTA-banner (navy bånd)
--------------------------------------------------------------- */
.bp-banner {
	background: linear-gradient(120deg, var(--bp-navy), var(--bp-navy-dark));
	border-radius: 18px;
}

.bp-banner h2,
.bp-banner p {
	color: #ffffff;
}

.bp-banner .bp-annonce {
	color: #9db3c8;
	text-align: center;
}

/* ---------------------------------------------------------------
   Artikel-CTA (lys boks med orange kant)
--------------------------------------------------------------- */
.bp-artikel-cta {
	background: linear-gradient(135deg, var(--bp-lys) 0%, #ffffff 70%);
	border: 1px solid var(--bp-kant);
	border-left: 6px solid var(--bp-orange);
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(22, 50, 79, 0.05);
}

.bp-artikel-cta h3 {
	color: var(--bp-navy);
}

.bp-artikel-cta p {
	color: var(--bp-muted);
}

/* ---------------------------------------------------------------
   Pristabel ("Hvad koster ...")
--------------------------------------------------------------- */
.bp-pris table {
	border-collapse: collapse;
	width: 100%;
	background: #ffffff;
	border: 1px solid var(--bp-kant);
	border-radius: 14px;
	overflow: hidden;
}

.bp-pris thead th {
	background: var(--bp-navy);
	color: #ffffff;
	font-weight: 700;
	text-align: left;
	padding: 0.85rem 1.1rem;
	border: none;
}

.bp-pris tbody td {
	padding: 0.8rem 1.1rem;
	border: none;
	border-top: 1px solid var(--bp-kant);
}

.bp-pris tbody tr:nth-child(even) {
	background: var(--bp-lys);
}

/* ---------------------------------------------------------------
   FAQ (details/summary)
--------------------------------------------------------------- */
.bp-faq details {
	background: #ffffff;
	border: 1px solid var(--bp-kant);
	border-radius: 14px;
	padding: 1rem 1.3rem;
	margin-bottom: 0.8rem;
}

.bp-faq details[open] {
	border-color: var(--bp-orange);
}

.bp-faq summary {
	font-weight: 700;
	color: var(--bp-navy);
	cursor: pointer;
}

.bp-faq details p {
	margin: 0.8rem 0 0;
	color: var(--bp-muted);
}

/* ---------------------------------------------------------------
   Fordele / ulemper
--------------------------------------------------------------- */
.bp-fordele,
.bp-ulemper {
	border-radius: 14px;
	padding: 1.5rem 1.5rem 1.2rem;
}

.bp-fordele {
	background: var(--bp-groen-soft);
}

.bp-ulemper {
	background: var(--bp-roed-soft);
}

.bp-fordele ul,
.bp-ulemper ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bp-fordele li,
.bp-ulemper li {
	padding-left: 1.7em;
	position: relative;
	margin-bottom: 0.55rem;
}

.bp-fordele li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--bp-groen);
	font-weight: 800;
}

.bp-ulemper li::before {
	content: '✕';
	position: absolute;
	left: 0;
	color: var(--bp-roed);
	font-weight: 800;
}

/* ---------------------------------------------------------------
   Infoboks (tip)
--------------------------------------------------------------- */
.bp-infoboks {
	background: var(--bp-warning-bg);
	border-left: 5px solid var(--bp-warning-border);
	border-radius: 0 14px 14px 0;
	padding: 1.3rem 1.5rem;
}

.bp-infoboks p {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Udtalelse (kundeanmeldelse)
--------------------------------------------------------------- */
.bp-udtalelse {
	background: #ffffff;
	border: 1px solid var(--bp-kant);
	border-radius: 14px;
	padding: 2rem;
	box-shadow: 0 1px 3px rgba(22, 50, 79, 0.05);
}

.bp-stjerner {
	color: var(--bp-groen);
	font-size: 1.25rem;
	letter-spacing: 0.15em;
	margin-bottom: 0.5rem;
}

.bp-udtalelse cite {
	color: var(--bp-muted);
	font-style: normal;
	font-weight: 600;
	font-size: 0.9rem;
}

/* ---------------------------------------------------------------
   Grå/lys sektionsbaggrund + SEO-tekstsektion
--------------------------------------------------------------- */
.bp-sektion-graa {
	background: var(--bp-lys);
}

.bp-tekst {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.bp-tekst h2 {
	margin-top: 2.2rem;
}

.bp-tekst p {
	line-height: 1.7;
}

/* ---------------------------------------------------------------
   Sticky mobil-CTA (renderes af functions.php når affiliate-link
   er sat i Customizer → Byggeportal)
--------------------------------------------------------------- */
.bp-sticky-cta {
	display: none;
}

@media (max-width: 768px) {
	.bp-sticky-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		background: var(--bp-navy-dark);
		padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
		text-align: center;
		box-shadow: 0 -4px 16px rgba(15, 36, 56, 0.3);
	}

	.bp-sticky-cta a {
		display: block;
		background: var(--bp-orange);
		color: #ffffff;
		font-weight: 800;
		border-radius: 10px;
		padding: 0.8rem 1rem;
		text-decoration: none;
	}

	/* Undgå at indhold gemmer sig bag baren */
	body.bp-har-sticky {
		padding-bottom: 4.5rem;
	}
}

/* ---------------------------------------------------------------
   Responsivt (øvrige sektioner)
--------------------------------------------------------------- */
@media (max-width: 768px) {
	.bp-stat h3 {
		font-size: 2rem;
	}
}
