/*
 * Design system for flereanmeldelser.dk — ported from the Simply/Extendify
 * design Martin approved (2026-07-20): petrol palette, Archivo headings,
 * Karla body, pill buttons, letterspaced uppercase nav, alternating
 * white / soft-blue full-width bands. Runs on the Extendable theme (which
 * bundles the fonts on prod); font stacks degrade gracefully elsewhere.
 */

/* Self-hosted fonts (SIL OFL, copied from the Extendable theme) — the design
   must not depend on whichever theme style variation happens to be active. */
@font-face {
	font-family: "Archivo";
	src: url("fonts/archivo_wght.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: "Karla";
	src: url("fonts/karla.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--rephub-ink: #083141;
	--rephub-petrol: #114C5F;
	--rephub-petrol-dark: #0C3949;
	--rephub-slate: #59747C;
	--rephub-soft: #EBF2F4;
	--rephub-line: #D8E4E8;
	--rephub-amber: #F59E0B;
	--rephub-font-heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--rephub-font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

/* ---------------- Global typography & nav ---------------- */

/* !important throughout the base typography: the theme's global-styles CSS
   (whatever variation the site builder left active) must never win over the
   design layer. */

body {
	font-family: var(--rephub-font-body) !important;
	color: var(--rephub-ink) !important;
	background: #fff !important;
}

h1, h2, h3, .wp-block-post-title, .wp-block-heading {
	font-family: var(--rephub-font-heading) !important;
	font-weight: 500 !important;
	letter-spacing: -0.02em;
	color: var(--rephub-ink) !important;
}

.wp-block-navigation a {
	font-family: var(--rephub-font-body) !important;
	font-size: 12px !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.24em;
	color: var(--rephub-ink) !important;
}

.wp-block-site-title a {
	font-family: var(--rephub-font-body) !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	text-decoration: none;
	color: var(--rephub-ink) !important;
}

/* The generator assigns the theme's no-title template, but cached pages or
   template overrides may still print the theme's own post title — our pages
   all carry their own H1, so the theme's is always redundant. */
.wp-block-post-title {
	display: none !important;
}

/* ---------------- Front page hero ---------------- */

.rephub-hero__title {
	font-size: clamp(2.1rem, 4.3vw, 3.6rem);
	line-height: 1.1;
	max-width: 20ch;
	margin: 0 0 0.35em;
}

.rephub-hero {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 40px;
	align-items: center;
	margin: 0 0 1em;
}

@media (max-width: 781px) {
	.rephub-hero {
		grid-template-columns: 1fr;
	}
}

.rephub-hero-lede {
	font-size: 1.15rem;
	line-height: 1.6;
	color: var(--rephub-slate);
	max-width: 46ch;
	margin: 0 0 1.4em;
}

.rephub-btn-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.rephub-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1.02rem;
	line-height: 1.2;
	text-decoration: none;
}

.rephub-btn--primary {
	background: var(--rephub-petrol);
	color: #fff;
}

.rephub-btn--primary:hover {
	background: var(--rephub-petrol-dark);
	color: #fff;
}

.rephub-btn--ghost {
	border: 1.5px solid var(--rephub-line);
	color: var(--rephub-ink);
	background: #fff;
}

.rephub-btn--ghost:hover {
	border-color: var(--rephub-petrol);
	color: var(--rephub-petrol);
}

/* Hero visual: circle-masked photo with the sample report card overlapping. */

.rephub-hero__visual {
	position: relative;
	justify-self: end;
	padding: 0 0 36px 48px;
}

.rephub-hero__photo {
	display: block;
	width: min(420px, 88vw);
	height: min(420px, 88vw) !important; /* theme img{height:auto} would turn the circle into an oval */
	object-fit: cover;
	object-position: 72% 35%; /* keep the person, not the whiteboard, in the crop */
	border-radius: 50%;
}

/* Illustrative sample report card (clearly labelled as an example). */

.rephub-mockcard {
	position: absolute;
	left: 0;
	bottom: 0;
	max-width: 270px;
	background: #fff;
	border: 1px solid var(--rephub-line);
	border-radius: 22px;
	padding: 22px 24px;
	box-shadow: 0 18px 44px rgba(8, 49, 65, 0.16);
}

.rephub-hero__visual .rephub-mockcard__score {
	font-size: 2.6rem;
}

@media (max-width: 781px) {
	.rephub-hero__visual {
		justify-self: start;
		padding-left: 0;
	}
}

.rephub-mockcard__score {
	font-family: var(--rephub-font-heading);
	font-size: 2.8rem;
	font-weight: 500;
	line-height: 1;
	color: var(--rephub-ink);
}

.rephub-mockcard__score span {
	font-size: 1.4rem;
	color: var(--rephub-slate);
}

.rephub-mockcard__stars {
	color: var(--rephub-amber);
	font-size: 1.3rem;
	letter-spacing: 0.2em;
	margin: 6px 0 18px;
}

.rephub-mockcard__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-top: 1px solid var(--rephub-line);
	font-size: 0.95rem;
}

.rephub-mockcard__row span:first-child {
	font-weight: 700;
}

.rephub-mockcard__hint {
	margin-top: 14px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--rephub-slate);
}

/* ---------------- Full-width alternating bands ---------------- */

.rephub-band {
	padding: 56px 24px;
}

.rephub-band--soft {
	background: var(--rephub-soft);
	border-radius: 0;
}

.rephub-band__inner {
	max-width: 1120px;
	margin: 0 auto;
}

.rephub-band__inner > h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin: 0 0 0.9em;
}

/* ---------------- Card grids ---------------- */

.rephub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

a.rephub-card {
	display: block;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--rephub-line);
	border-radius: 16px;
	color: var(--rephub-ink);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.35;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.rephub-card:hover {
	border-color: var(--rephub-petrol);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(8, 49, 65, 0.1);
	color: var(--rephub-petrol);
}

a.rephub-card .rephub-card__kicker {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--rephub-slate);
	margin-bottom: 5px;
}

/* ---------------- Article pages ---------------- */

.wp-block-post-content h1.wp-block-heading {
	font-size: clamp(2rem, 4vw, 2.9rem);
	line-height: 1.12;
	max-width: 24ch;
	margin: 0.2em 0 0.6em;
}

.wp-block-post-content h2.wp-block-heading {
	margin-top: 1.9em;
	font-size: 1.55rem;
}

.wp-block-post-content ul.wp-block-list li,
.wp-block-post-content ol.wp-block-list li {
	margin-bottom: 0.55em;
}

.wp-block-post-content ul.wp-block-list li::marker {
	color: var(--rephub-amber);
}

.wp-block-post-content ol.wp-block-list li::marker {
	color: var(--rephub-petrol);
	font-weight: 700;
}

/* ---------------- Conversion blocks ---------------- */

.rephub-cta {
	background: var(--rephub-soft);
	border-radius: 24px;
	padding: 34px 36px;
	margin: 2.5em 0;
}

.rephub-cta h2 {
	margin: 0 0 0.4em;
	font-size: 1.45rem;
}

.rephub-cta__button {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 999px;
	background: var(--rephub-petrol);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}

.rephub-cta__button:hover {
	background: var(--rephub-petrol-dark);
}

.rephub-cta__geoa {
	font-size: 0.9rem;
	color: var(--rephub-slate);
	margin-bottom: 0;
}

/* ---------------- Check widget ---------------- */

.rephub-check {
	background: var(--rephub-soft);
	border: 0;
	border-radius: 28px;
	padding: 36px;
}

.rephub-check__heading {
	margin-top: 0;
}

.rephub-check__sub {
	color: var(--rephub-slate);
}

.rephub-check__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1.2em 0;
}

.rephub-check__form input[type="text"] {
	flex: 1 1 240px;
	padding: 13px 20px;
	border: 1px solid var(--rephub-line);
	border-radius: 999px;
	font-size: 1rem;
	font-family: var(--rephub-font-body);
	background: #fff;
}

.rephub-check__form button,
.rephub-lead__form button,
.rephub-geoa__button {
	display: inline-block;
	padding: 13px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--rephub-petrol);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	font-family: var(--rephub-font-body);
	cursor: pointer;
	text-decoration: none;
}

.rephub-check__form button:hover,
.rephub-lead__form button:hover,
.rephub-geoa__button:hover {
	background: var(--rephub-petrol-dark);
}

.rephub-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rephub-check__status.is-error {
	color: #b91c1c;
}

.rephub-check__status.is-busy {
	color: var(--rephub-slate);
}

.rephub-report__score {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 1em 0;
}

.rephub-report__score-number {
	font-family: var(--rephub-font-heading);
	font-size: 3.4rem;
	font-weight: 500;
	line-height: 1;
	color: var(--rephub-ink);
}

.rephub-report__platform,
.rephub-report__recs,
.rephub-lead,
.rephub-geoa {
	border-top: 1px solid var(--rephub-line);
	padding-top: 1em;
	margin-top: 1em;
}

.rephub-report__platform h3,
.rephub-report__recs h3,
.rephub-lead h3,
.rephub-geoa h3 {
	margin: 0 0 0.5em;
	font-size: 1.05rem;
}

.rephub-lead__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 420px;
}

.rephub-lead__form input[type="email"] {
	padding: 12px 18px;
	border: 1px solid var(--rephub-line);
	border-radius: 999px;
	font-size: 1rem;
	font-family: var(--rephub-font-body);
	background: #fff;
}

.rephub-lead__consent {
	font-size: 0.85rem;
	color: var(--rephub-slate);
}

/* ---------------- Photo bands ---------------- */

.rephub-photo-band {
	display: block;
	width: 100%;
	max-height: 340px;
	object-fit: cover;
	border-radius: 24px;
	margin: 1.5em 0;
}

/* ---------------- Footer note ---------------- */

.rephub-source-note {
	font-size: 0.85rem;
	color: var(--rephub-slate);
	border-top: 1px solid var(--rephub-line);
	padding-top: 1.2em;
	margin-top: 2.5em;
}
