/* Front-end manifest. Add a block/component by dropping a file and importing it here. */
/* Design tokens — the single source of truth. No hard-coded colors in components. */
:root {
	/* Surfaces & text */
	--bec-page: #F3F6F3;
	--bec-card: #FFFFFF;
	--bec-ink: #16221A;
	--bec-ink-soft: #3C463F; /* body copy inside cards */
	--bec-muted: #5C6B61;
	--bec-faint: #8B978D;
	--bec-line: #E5EAE5;
	--bec-line-hover: #CFE0CF;

	/* Brand greens */
	--bec-green: #008001;
	--bec-green-hover: #026A02;
	--bec-green-deep: #0C4322;
	--bec-green-soft: #E8F1E8;

	/* Dark panel (certificate) */
	--bec-panel-accent: #7FCB93;
	--bec-panel-label: #A7C4B1;
	--bec-panel-line: rgba(255, 255, 255, 0.14);

	/* Radii */
	--bec-r-pill: 100px;
	--bec-r-xl: 22px;
	--bec-r-lg: 18px;
	--bec-r-md: 16px;
	--bec-r-sm: 12px;
	--bec-r-btn: 11px;
	--bec-r-btn-sm: 10px;

	/* Layout */
	--bec-maxw: 1080px;
	--bec-gutter: 28px;
	--bec-gutter-sm: 20px;

	/* Shadows */
	--bec-shadow-hero: 0 26px 54px -32px rgba(12, 50, 26, 0.45);
	--bec-shadow-panel: 0 24px 50px -30px rgba(12, 50, 26, 0.5);
	--bec-shadow-card-hover: 0 16px 34px -24px rgba(12, 50, 26, 0.5);

	/* Motion */
	--bec-ease: 0.2s ease;

	/* Type */
	--bec-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Reset + document defaults (ported 1:1 from the static design). */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
}

body {
	background: var(--bec-page);
	color: var(--bec-ink);
	font-family: var(--bec-font);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.006em;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Shared page container. */
.wrap {
	max-width: var(--bec-maxw);
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--bec-gutter);
}

/* Arrow nudge, shared by every link that contains an .arrow icon. */
.arrow {
	transition: transform var(--bec-ease);
}
a:hover > .arrow {
	transform: translateX(4px);
}

/* Logo helper (custom-logo image or text fallback). */
.becig-logo-link {
	display: inline-block;
	text-decoration: none;
}
.becig-logo-fallback {
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--bec-green-deep);
}
/* Site header (brand logo + scheme kicker) — front page. */
.site-header .pagehead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 34px 0 26px;
}
.site-header .pagehead .kicker {
	font-size: 14px;
	font-weight: 500;
	color: var(--bec-muted);
}
.site-header .pagehead img {
	height: 66px;
	width: auto;
	display: block;
}
.site-header .pagehead .becig-logo-fallback {
	font-size: 24px;
}

@media (max-width: 820px) {
	.site-header .pagehead {
		padding: 26px 0 22px;
	}
	.site-header .pagehead img {
		height: 52px;
	}
}
/* Shared buttons. */
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--bec-green);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	padding: 14px 24px;
	border-radius: var(--bec-r-btn);
	transition: background-color var(--bec-ease);
}
.btn-primary:hover {
	background: var(--bec-green-hover);
}
.btn-primary:hover .arrow {
	transform: translateX(4px);
}
.btn-primary svg {
	width: 16px;
	height: 16px;
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--bec-green);
	color: var(--bec-green-deep);
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	padding: 11px 18px;
	border-radius: var(--bec-r-btn-sm);
	background: #fff;
	transition: background-color var(--bec-ease);
}
.btn-outline:hover {
	background: var(--bec-green-soft);
}
.btn-outline svg {
	width: 15px;
	height: 15px;
	transition: transform var(--bec-ease);
}
.btn-outline:hover svg {
	transform: translateX(4px);
}
/* Content card + eyebrow label (shared by front page and certificate). */
.card {
	background: var(--bec-card);
	border: 1px solid var(--bec-line);
	border-radius: var(--bec-r-lg);
	padding: 36px 42px;
	margin-top: 20px;
}
.card .lbl {
	font-size: 14px;
	font-weight: 600;
	color: var(--bec-green);
	margin-bottom: 14px;
}
.card p {
	color: var(--bec-ink-soft);
	font-size: 16px;
	line-height: 1.6;
}
.card p + p {
	margin-top: 14px;
}
.card b {
	color: var(--bec-ink);
	font-weight: 600;
}

/* "Læs mere" inline link. */
.readmore {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	color: var(--bec-green-deep);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.readmore:hover {
	color: var(--bec-green);
}
.readmore svg {
	width: 15px;
	height: 15px;
	transition: transform var(--bec-ease);
}
.readmore:hover svg {
	transform: translateX(4px);
}
/* Credentials row (Dansk Standard / CEN / Stiftet …). */
.creds {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 26px;
	border-top: 1px solid var(--bec-line);
}
.cred {
	padding: 20px 24px 4px;
}
.cred + .cred {
	border-left: 1px solid var(--bec-line);
}
.cred:first-child {
	padding-left: 0;
}
.cred .ct {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--bec-ink);
}
.cred .cs {
	font-size: 14px;
	color: var(--bec-muted);
	margin-top: 4px;
}
/* Hero box (the pagehead lives in components/site-header.css). */
.herobox {
	position: relative;
	overflow: hidden;
	border-radius: var(--bec-r-xl);
	min-height: 400px;
	display: flex;
	background: var(--bec-green-deep);
	box-shadow: var(--bec-shadow-hero);
}
.hb-bg {
	position: absolute;
	inset: 0;
	background-position: center 42%;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(3px) brightness(0.94) saturate(1.05);
	transform: scale(1.08);
	z-index: 0;
}
.hb-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(8, 42, 21, 0.62) 0%, rgba(7, 34, 17, 0.82) 100%);
}
.hb-content {
	position: relative;
	z-index: 2;
	color: #fff;
	padding: 56px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
	max-width: 680px;
}
.hb-content h1 {
	font-size: 48px;
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.03em;
}
.hb-cta {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}
.hb-stat {
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.82);
}
.hb-stat b {
	color: #fff;
	font-weight: 700;
}

@media (max-width: 820px) {
	.herobox {
		min-height: 0;
		border-radius: var(--bec-r-lg);
	}
	.hb-content {
		padding: 34px 26px;
	}
	.hb-content h1 {
		font-size: 34px;
		line-height: 1.18;
	}
}
@media (max-width: 560px) {
	.hb-cta {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}
/* Certificate hero: kicker + business name + validity badge + BECIG logo. */
.cert-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding: 56px 0 40px;
}
.cert-hero .kicker {
	font-size: 14px;
	color: var(--bec-muted);
	font-weight: 500;
	margin-bottom: 12px;
}
.cert-hero h1 {
	font-size: 66px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--bec-ink);
}
.hero-logo {
	height: 86px;
	width: auto;
	display: block;
	flex: 0 0 auto;
}
.hero-logo.becig-logo-fallback {
	font-size: 34px;
}

/* Validity badge — two states. */
.badge-valid,
.badge-expired {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	font-weight: 600;
	font-size: 14px;
	padding: 8px 16px 8px 12px;
	border-radius: var(--bec-r-pill);
}
.badge-valid .dot,
.badge-expired .dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
}
.badge-valid {
	background: var(--bec-green-soft);
	color: var(--bec-green-deep);
}
.badge-valid .dot {
	background: var(--bec-green);
	box-shadow: 0 0 0 4px rgba(0, 128, 1, 0.15);
}
.badge-expired {
	background: #F2E7E7;
	color: #7A2E2E;
}
.badge-expired .dot {
	background: #B23B3B;
	box-shadow: 0 0 0 4px rgba(178, 59, 59, 0.15);
}

@media (max-width: 820px) {
	.cert-hero {
		flex-direction: column-reverse;
		align-items: center;
		text-align: center;
		gap: 22px;
		padding: 36px 0 30px;
	}
	.cert-hero .hero-text {
		text-align: center;
	}
	.cert-hero h1 {
		font-size: 48px;
	}
	.hero-logo {
		height: 64px;
	}
}
@media (max-width: 480px) {
	.cert-hero h1 {
		font-size: 40px;
	}
}
/* Certificate dark info panel + white business card. */
.cert-main {
	padding-bottom: 44px;
}
.panel {
	background: var(--bec-green-deep);
	color: #fff;
	border-radius: var(--bec-r-xl);
	padding: 42px 44px;
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 44px;
	align-items: center;
	box-shadow: var(--bec-shadow-panel);
}

.info {
	display: flex;
	flex-direction: column;
}
.info .r {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
	padding: 16px 0;
	border-top: 1px solid var(--bec-panel-line);
}
.info .r:last-child {
	border-bottom: 1px solid var(--bec-panel-line);
}
.info .k {
	color: var(--bec-panel-label);
	font-size: 15px;
}
.info .v {
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	text-align: right;
}
.info .v.pos {
	color: var(--bec-panel-accent);
}
.info .v.neg {
	color: #EBA9A9;
}

.biz {
	background: #fff;
	color: var(--bec-ink);
	border-radius: var(--bec-r-md);
	padding: 26px 26px 24px;
}
.biz-logo {
	display: block;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--bec-line);
	transition: opacity var(--bec-ease);
}
a.biz-logo:hover {
	opacity: 0.75;
}
.biz-logo img {
	height: 34px;
	width: auto;
	max-width: 100%;
	display: block;
}
.biz-name {
	display: inline-block;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--bec-ink);
	text-decoration: none;
	margin-bottom: 12px;
	transition: color var(--bec-ease);
}
a.biz-name:hover {
	color: var(--bec-green-deep);
}
.biz-loc {
	display: flex;
	gap: 10px;
	padding: 12px 0;
	border-top: 1px solid var(--bec-line);
}
.biz-loc svg {
	width: 16px;
	height: 16px;
	color: var(--bec-green);
	flex: 0 0 auto;
	margin-top: 2px;
}
.biz-loc .st {
	font-size: 14.5px;
	color: var(--bec-ink);
	font-weight: 500;
	line-height: 1.4;
}
.biz-loc .ci {
	font-size: 14px;
	color: var(--bec-muted);
}
.biz-contact {
	font-size: 14.5px;
	line-height: 1.7;
	padding-top: 12px;
	border-top: 1px solid var(--bec-line);
}
.biz-contact a {
	color: var(--bec-muted);
	text-decoration: none;
	transition: color var(--bec-ease);
}
.biz-contact a:hover {
	color: var(--bec-green-deep);
}
.biz-cvr {
	font-size: 13.5px;
	color: var(--bec-faint);
	margin-top: 10px;
}

@media (max-width: 820px) {
	.cert-main {
		padding-bottom: 32px;
	}
	.panel {
		grid-template-columns: 1fr;
		gap: 26px;
		padding: 28px 24px;
	}
	.biz {
		padding: 24px;
	}
}
/* Members overview: eyebrow + heading + search + card grid. */
.members {
	padding: 64px 0 24px;
}
.eyebrow2 {
	font-size: 14px;
	font-weight: 600;
	color: var(--bec-green);
	margin-bottom: 12px;
}
.h2 {
	font-size: 38px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.08;
	color: var(--bec-ink);
}

.search {
	position: relative;
	margin: 24px 0 26px;
	max-width: 440px;
}
.search svg {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--bec-faint);
}
.search input {
	width: 100%;
	border: 1px solid var(--bec-line);
	border-radius: var(--bec-r-sm);
	background: #fff;
	padding: 15px 16px 15px 46px;
	font-family: inherit;
	font-size: 15px;
	color: var(--bec-ink);
	outline: none;
	transition: border-color var(--bec-ease);
}
.search input:focus {
	border-color: var(--bec-green);
}
.search input::-moz-placeholder {
	color: var(--bec-faint);
}
.search input::placeholder {
	color: var(--bec-faint);
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.mcard {
	border: 1px solid var(--bec-line);
	border-radius: var(--bec-r-md);
	padding: 24px;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: border-color var(--bec-ease), box-shadow var(--bec-ease);
}
.mcard:hover {
	border-color: var(--bec-line-hover);
	box-shadow: var(--bec-shadow-card-hover);
}
.mcard.is-hidden {
	display: none !important;
}
.mcard .mhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 28px;
	margin-bottom: 12px;
}
.mcard .mname {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--bec-ink);
	text-decoration: none;
	transition: color var(--bec-ease);
}
.mcard a.mname:hover {
	color: var(--bec-green-deep);
}
.mcard .mhead .mlogo {
	display: inline-flex;
	text-decoration: none;
	transition: opacity var(--bec-ease);
}
.mcard .mhead .mlogo:hover {
	opacity: 0.75;
}
.mcard .mhead .mlogo img,
.mcard .mhead svg {
	height: 22px;
	width: auto;
	max-width: 104px;
	flex: 0 0 auto;
}
.mcard .mloc {
	display: flex;
	gap: 9px;
	padding: 12px 0;
	border-top: 1px solid var(--bec-line);
}
.mcard .mloc svg {
	width: 15px;
	height: 15px;
	color: var(--bec-green);
	flex: 0 0 auto;
	margin-top: 2px;
}
.mcard .mloc .st {
	font-size: 14px;
	color: var(--bec-ink);
	font-weight: 500;
	line-height: 1.4;
}
.mcard .mloc .ci {
	font-size: 13.5px;
	color: var(--bec-muted);
}
.mcard .mbtns {
	display: flex;
	gap: 10px;
	margin-top: auto;
	padding-top: 4px;
}
.mcard .mbtns a {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	padding: 11px 14px;
	border-radius: var(--bec-r-btn-sm);
	transition: background-color var(--bec-ease), border-color var(--bec-ease), color var(--bec-ease);
}
.mbtn-primary {
	background: var(--bec-green);
	color: #fff;
}
.mbtn-primary:hover {
	background: var(--bec-green-hover);
}

.noresult {
	color: var(--bec-muted);
	font-size: 15px;
	padding: 20px 0;
	display: none;
}
.noresult.is-visible {
	display: block;
}

@media (max-width: 900px) {
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 820px) {
	.members {
		padding: 34px 0 12px;
	}
	.h2 {
		font-size: 30px;
	}
	.eyebrow2 {
		margin-bottom: 8px;
	}
	.search {
		margin: 16px 0 16px;
	}
	.search input {
		padding: 13px 16px 13px 44px;
	}
	.grid {
		gap: 12px;
	}
	.mcard {
		padding: 20px;
	}
}
@media (max-width: 560px) {
	.grid {
		grid-template-columns: 1fr;
	}
}
/* Front-page "Om ordningen" card needs more air below the hero than the
   shared card default (the certificate page keeps the 20px default). */
.becig-intro {
	margin-top: 40px;
}
/* Site footer. */
footer {
	margin-top: 20px;
}
.foot {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 48px;
	padding: 44px 0 36px;
	border-top: 1px solid var(--bec-line);
}
.foot .logo {
	height: 46px;
	width: auto;
	margin-bottom: 18px;
	display: block;
}
.foot .becig-logo-fallback {
	font-size: 22px;
	margin-bottom: 18px;
	display: inline-block;
}
.foot .data {
	font-size: 14px;
	color: var(--bec-muted);
	line-height: 1.7;
}
.foot .data .cvr {
	margin-top: 12px;
	color: var(--bec-faint);
}
.foot-right {
	min-width: 230px;
}
.contact-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
	color: var(--bec-ink);
	margin-bottom: 10px;
}
.contact-row svg {
	width: 16px;
	height: 16px;
	color: var(--bec-green);
	flex: 0 0 auto;
}
.contact-row a {
	text-decoration: none;
	transition: color var(--bec-ease);
}
.contact-row a:hover {
	color: var(--bec-green-deep);
}
.foot-right .btn-outline {
	margin-top: 14px;
}
.copy-row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	font-size: 13px;
	color: var(--bec-faint);
	border-top: 1px solid var(--bec-line);
}
.copy-row a {
	color: var(--bec-muted);
	text-decoration: none;
}
.copy-row a:hover {
	color: var(--bec-ink);
}
/* Shared responsive overrides for chrome/components. Feature-specific
   breakpoints live with their own block CSS. */
@media (max-width: 820px) {
	.wrap {
		padding: 0 var(--bec-gutter-sm);
	}

	.card {
		padding: 28px 24px;
	}

	.creds {
		grid-template-columns: 1fr;
	}
	.cred {
		padding: 12px 0;
	}
	.cred + .cred {
		border-left: 0;
		border-top: 1px solid var(--bec-line);
	}
	.cred:first-child {
		padding-top: 12px;
	}

	footer {
		margin-top: 0;
	}
	.foot {
		flex-direction: column;
		align-items: flex-start;
		gap: 30px;
		padding: 32px 0 24px;
	}
	.foot-right {
		min-width: 0;
	}
	.copy-row {
		padding: 24px 0 20px;
	}
}
