/* doceo.dk — single static page, no framework, no JavaScript.
   All colours live in the custom properties below; edit them here to retheme
   the whole page.

   WHY this file exists at all, rather than a <style> block in index.html:
   public/.htaccess enforces a Content-Security-Policy with style-src 'self'
   and script-src 'none'. An inline <style> would need 'unsafe-inline' and
   would weaken the policy for the whole site. Keep CSS here. */

:root {
	--bg: #101418;
	--surface: #1a1f25;
	--surface-deep: #151a20;
	--border: #2a313a;
	--accent: #374669;
	--accent-hover: #2d5ce6;
	--text: #e6eaee;
	--text-muted: #b8c0c9;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
}

.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

a {
	color: var(--text);
}

/* ── Header ─────────────────────────────────────────────────────── */

.site-header {
	border-bottom: 1px solid var(--border);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
	padding: 14px 24px;
}

.brand {
	display: block;
	width: 140px;
	text-decoration: none;
}

.brand-logo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.nav-links a {
	color: var(--text-muted);
	text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
	color: var(--text);
}

@media (max-width: 600px) {
	.nav {
		flex-direction: column;
		justify-content: center;
		padding-bottom: 18px;
	}

	.nav-links {
		justify-content: center;
		gap: 8px 18px;
		width: 100%;
	}

}

/* ── Buttons ────────────────────────────────────────────────────── */

.cta,
.cta-secondary {
	display: inline-block;
	padding: 9px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.cta {
	background: var(--accent);
	color: #fff;
}

.cta:hover,
.cta:focus-visible {
	background: var(--accent-hover);
}

.cta-secondary {
	border: 1px solid var(--border);
	color: var(--text);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
	border-color: var(--text-muted);
}

/* ── Sections ───────────────────────────────────────────────────── */

.hero {
	padding: 88px 24px 64px;
	text-align: center;
}

.eyebrow {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.hero h1 {
	margin: 0 auto 20px;
	max-width: 760px;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.15;
	font-weight: 650;
}

.lead {
	margin: 0 auto 32px;
	max-width: 640px;
	font-size: 17px;
	color: var(--text-muted);
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.section {
	padding: 64px 24px;
	border-top: 1px solid var(--border);
}

.section h2 {
	margin: 0 0 8px;
	font-size: 26px;
	line-height: 1.3;
	font-weight: 650;
}

.section-intro {
	margin: 0 0 24px;
	max-width: 640px;
	color: var(--text-muted);
}

.centered {
	margin-left: auto;
	margin-right: auto;
}

.section-action {
	margin: 24px 0 0;
}

/* ── Cards ──────────────────────────────────────────────────────── */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin-top: 32px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 20px 22px;
}

.card h3 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
}

.card p {
	margin: 0;
	font-size: 14px;
	color: var(--text-muted);
}

/* ── Technology groups ──────────────────────────────────────────── */

.technology-groups {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.technology-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.technology-list li {
	padding: 5px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-deep);
	color: var(--text-muted);
	font-size: 13px;
	line-height: 1.4;
}

.technology-card .technology-list {
	margin-top: 18px;
}

/* ── Products ───────────────────────────────────────────────────── */

.product-list {
	margin-top: 32px;
}

.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	padding: 40px 0;
	border-top: 1px solid var(--border);
}

.product:first-child {
	padding-top: 0;
	border-top: 0;
}

.product-reverse .product-copy {
	order: 2;
}

.product-copy h3,
.product-compact h3 {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
}

.product-copy > p:not(.product-kicker):not(.product-actions),
.product-compact p {
	color: var(--text-muted);
}

.product-kicker {
	margin: 0 0 6px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.product-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin: 24px 0 0;
}

.text-link {
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 500;
	text-underline-offset: 3px;
}

.text-link:hover,
.text-link:focus-visible {
	color: var(--text);
}

.product-compact {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px 40px;
	margin-top: 8px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface-deep);
}

.product-compact p {
	max-width: 680px;
	margin-top: 0;
	margin-bottom: 0;
}

.product-compact .product-actions {
	flex: 0 0 auto;
	justify-content: flex-end;
}

.panorama-frame {
	display: block;
	width: 100%;
	height: 440px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface-deep);
}

.back-row {
	margin: 0 0 24px;
}

@media (max-width: 800px) {
	.technology-groups {
		grid-template-columns: minmax(0, 1fr);
	}

	.product {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.product-reverse .product-copy {
		order: initial;
	}

	.product-compact {
		align-items: flex-start;
		flex-direction: column;
	}

	.product-compact .product-actions {
		justify-content: flex-start;
	}

	.panorama-frame {
		height: 360px;
	}
}

.media {
	display: block;
	width: 100%;
	/* WHY: width/height attributes on the img reserve layout space (no layout
	   shift); height must then be auto so CSS width:100% keeps the ratio. */
	height: auto;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface-deep);
}

/* ── Bullet list ────────────────────────────────────────────────── */

.list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
	max-width: 760px;
}

.list li {
	position: relative;
	padding-left: 22px;
	color: var(--text-muted);
}

.list li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: var(--accent);
}

.list strong {
	color: var(--text);
	font-weight: 600;
}

/* ── Closing band ───────────────────────────────────────────────── */

.closing {
	text-align: center;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 24px 0;
	font-size: 13px;
	color: var(--text-muted);
}

.footer-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.company-details {
	display: grid;
	gap: 3px;
}

.site-footer a {
	color: var(--text-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--text);
}

.red-cross-link {
	display: block;
	flex: 0 0 auto;
}

.red-cross-link img {
	display: block;
	width: 118px;
	height: auto;
	border-radius: 4px;
}

@media (max-width: 520px) {
	.footer-content {
		align-items: flex-start;
		flex-direction: column;
	}
}
