/* Manor Laboratory Center — shared design system for every public page.
   Page-specific styles (homepage intro, hero, etc.) stay inline in their page. */

:root {
	--ink: #f8fafc;
	--muted: #aab4c8;
	--subtle: #8e9bb2;
	--page: #070b18;
	--page-soft: #0b1122;
	--panel: rgba(19, 28, 50, 0.76);
	--line: rgba(148, 163, 184, 0.16);
	--blue: #5b7cfa;
	--blue-bright: #75a7ff;
	--sky: #7dd3fc;
	--teal: #2dd4bf;
	--mint: #7ff0dc;
	--green: #20c997;
	--violet: #a78bfa;
	--header-height: 78px;
	--content-width: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background: var(--page);
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 10% 8%, rgba(91, 124, 250, 0.09), transparent 24rem),
		var(--page);
	color: var(--ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

/* height: auto keeps the aspect ratio when CSS changes an image's width (width/height attributes stay for layout stability). */
img {
	display: block;
	max-width: 100%;
	height: auto;
}

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

button,
.button {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid rgba(117, 167, 255, 0.9);
	outline-offset: 4px;
}

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

.table-wrap:focus-visible {
	outline-offset: 2px;
}

.skip-link {
	position: fixed;
	z-index: 20000;
	top: 0.75rem;
	left: 0.75rem;
	transform: translateY(-180%);
	padding: 0.7rem 1rem;
	border-radius: 10px;
	background: #fff;
	color: #08111f;
	font-weight: 800;
	transition: transform 160ms ease;
}

.skip-link:focus {
	transform: translateY(0);
}

.container {
	width: min(calc(100% - 3rem), var(--content-width));
	margin-inline: auto;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1rem;
	color: var(--sky);
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.eyebrow:before {
	width: 1.8rem;
	height: 2px;
	background: linear-gradient(90deg, var(--teal), var(--blue));
	content: '';
}

.section-heading {
	max-width: 760px;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.9rem, 4vw, 3.2rem);
	letter-spacing: -0.05em;
	line-height: 1.05;
}

.section-heading p {
	margin: 0;
	color: var(--muted);
	font-size: clamp(1rem, 1.5vw, 1.12rem);
}

/* Header and navigation */
.site-header {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	border-bottom: 1px solid rgba(148, 163, 184, 0.13);
	background: rgba(7, 11, 24, 0.78);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-height);
	gap: 2rem;
}

.site-brand img {
	width: 174px;
	height: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 0.2rem;
}

.site-nav a {
	padding: 0.68rem 0.78rem;
	border-radius: 10px;
	color: #c8d2e4;
	font-size: 0.88rem;
	font-weight: 700;
	transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	background: rgba(91, 124, 250, 0.12);
	color: #fff;
}

.site-nav .nav-cta {
	margin-left: 0.55rem;
	padding-inline: 1rem;
	background: rgba(45, 212, 191, 0.12);
	color: var(--mint);
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.055);
	color: #fff;
	cursor: pointer;
	transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.menu-toggle__icon,
.menu-toggle__icon:before,
.menu-toggle__icon:after {
	display: block;
	width: 21px;
	height: 2px;
	border-radius: 99px;
	background: currentColor;
	content: '';
	transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle__icon:before { transform: translateY(-7px); }
.menu-toggle__icon:after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon:before { transform: translateY(0) rotate(45deg); background: #fff; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon:after { transform: translateY(-2px) rotate(-45deg); background: #fff; }

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 54px;
	padding: 0.78rem 1.3rem;
	border: 1px solid transparent;
	border-radius: 14px;
	font-size: 0.94rem;
	font-weight: 850;
	letter-spacing: 0.025em;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button--primary {
	background: linear-gradient(135deg, #20c997, #14b887);
	box-shadow: 0 14px 34px rgba(32, 201, 151, 0.22);
	color: #031b16;
}

.button--primary:hover {
	box-shadow: 0 18px 42px rgba(32, 201, 151, 0.32);
}

.button--secondary {
	border-color: rgba(148, 163, 184, 0.26);
	background: rgba(255, 255, 255, 0.045);
	color: #eef2ff;
}

.button--secondary:hover {
	border-color: rgba(117, 167, 255, 0.5);
	background: rgba(91, 124, 250, 0.1);
}

.button--blue {
	border-color: rgba(125, 211, 252, 0.62);
	background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 34%, #0ea5e9 70%, #22d3ee 100%);
	box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
	color: #fff;
}

.button--small {
	min-height: 44px;
	padding: 0.6rem 1rem;
	border-radius: 12px;
	font-size: 0.84rem;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 2rem;
}

/* Inner page hero: optional photo via --hero-image / --hero-image-sm on the element.
   Use root-absolute URLs (/images/...): url() inside a custom property resolves against this stylesheet. */
.page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: calc(var(--header-height) + clamp(3rem, 7vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
	border-bottom: 1px solid var(--line);
	background: var(--page);
}

.page-hero:before {
	position: absolute;
	z-index: -2;
	inset: 0;
	background-image: var(--hero-image-sm, none);
	background-position: center;
	background-size: cover;
	opacity: 0.34;
	content: '';
}

.page-hero:after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(7, 11, 24, 0.97) 0%, rgba(7, 11, 24, 0.86) 48%, rgba(7, 11, 24, 0.55) 100%),
		linear-gradient(0deg, var(--page) 0%, transparent 45%),
		radial-gradient(circle at 12% 30%, rgba(91, 124, 250, 0.2), transparent 30rem);
	content: '';
}

@media (min-width: 760px) {
	.page-hero:before { background-image: var(--hero-image, none); }
}

.page-hero h1 {
	max-width: 860px;
	margin: 0;
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 850;
	letter-spacing: -0.06em;
	line-height: 0.98;
}

.page-hero h1 span {
	background: linear-gradient(105deg, #fff 8%, #8ddff7 45%, #8ea8ff 82%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.page-hero__lead {
	max-width: 700px;
	margin: 1.5rem 0 0;
	color: #b7c1d5;
	font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.4rem;
	color: #71809b;
	font-size: 0.8rem;
	font-weight: 700;
}

.breadcrumb a {
	color: #a9b7cc;
}

.breadcrumb a:hover {
	color: #fff;
}

/* Sections, panels and grids */
.section {
	padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--soft {
	background:
		radial-gradient(circle at 88% 20%, rgba(91, 124, 250, 0.1), transparent 26rem),
		var(--page-soft);
}

.section + .section:not(.section--soft) {
	padding-top: 0;
}

.panel {
	position: relative;
	padding: clamp(1.4rem, 3vw, 2.2rem);
	border: 1px solid var(--line);
	border-radius: 24px;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
}

.panel h2,
.panel h3 {
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.panel h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; }
.panel h3 { font-size: 1.15rem; }

.panel p {
	margin: 0 0 1rem;
	color: var(--muted);
}

.panel p:last-child {
	margin-bottom: 0;
}

.panel .badge + h2,
.panel .chip-list + h3 {
	margin-top: 1.25rem;
}

.heading-lg {
	margin: 0 0 1rem;
	font-size: clamp(1.9rem, 4vw, 3.2rem);
	letter-spacing: -0.05em;
	line-height: 1.05;
}

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

.align-center { align-items: center; }
.align-start { align-items: start; }

.grid-2,
.grid-3,
.grid-4 {
	display: grid;
	gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card-link {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	transition: transform 200ms ease, border-color 200ms ease;
}

.card-link:hover {
	transform: translateY(-4px);
	border-color: rgba(117, 167, 255, 0.38);
}

.card-link__more {
	margin-top: auto;
	padding-top: 0.75rem;
	color: var(--sky);
	font-size: 0.85rem;
	font-weight: 800;
}

.card-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 1rem;
	border: 1px solid rgba(125, 211, 252, 0.18);
	border-radius: 12px;
	background: rgba(91, 124, 250, 0.12);
	color: #9bb1ff;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.08em;
}

/* Numbered process steps (a real sequence). */
.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.steps .card-number {
	margin: 0;
}

.steps h3 {
	margin: 0.4rem 0 0.35rem;
	font-size: 1.05rem;
}

.steps p,
.role-type {
	margin: 0;
	color: var(--muted);
}

.role-type {
	font-size: 0.85rem;
	font-weight: 700;
}

.role-tasks {
	margin: 0 0 1rem;
	padding-left: 1.1rem;
	color: var(--muted);
}

@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr; }
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip-list li {
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.035);
	color: #dbe4f3;
	font-size: 0.86rem;
	font-weight: 650;
}

/* Status badges for accreditation / authorisation scope. */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.32rem 0.7rem;
	border: 1px solid rgba(45, 212, 191, 0.28);
	border-radius: 999px;
	background: rgba(45, 212, 191, 0.1);
	color: var(--mint);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}

.badge:before {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	content: '';
}

.badge--blue {
	border-color: rgba(125, 211, 252, 0.28);
	background: rgba(56, 189, 248, 0.1);
	color: var(--sky);
}

.badge--muted {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.04);
	color: #a9b7cc;
}

.badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.4rem;
}

/* Data tables (analysis lists). Wrapped so they scroll sideways on small screens. */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: rgba(9, 15, 31, 0.64);
}

.data-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.data-table th,
.data-table td {
	padding: 0.95rem 1.1rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.data-table thead th {
	position: sticky;
	top: 0;
	background: #0e1629;
	color: #71809b;
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.data-table tbody tr:last-child td {
	border-bottom: 0;
}

.data-table tbody tr:hover td {
	background: rgba(91, 124, 250, 0.05);
}

.data-table td:first-child {
	width: 3.2rem;
	color: #71809b;
	font-weight: 800;
}

.data-table strong {
	color: #eef2ff;
	font-weight: 750;
}

.data-table .matrix {
	color: var(--muted);
	font-size: 0.86rem;
}

.data-table .standard {
	color: #b9c6da;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.data-table .group-row td {
	padding-block: 0.7rem;
	background: rgba(91, 124, 250, 0.08);
	color: var(--sky);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.note {
	margin: 1.25rem 0 0;
	padding: 1rem 1.2rem;
	border-left: 3px solid var(--teal);
	border-radius: 0 14px 14px 0;
	background: rgba(45, 212, 191, 0.06);
	color: #b8c4d6;
	font-size: 0.9rem;
}

.panel h3 a:hover {
	color: var(--sky);
}

.mt-1 {
	margin-top: 1rem;
}

.note a,
.prose a,
.panel p a,
.text-link {
	color: var(--sky);
	text-decoration: underline;
	text-decoration-color: rgba(125, 211, 252, 0.38);
	text-underline-offset: 3px;
}

/* Key/value facts inside panels. */
.facts {
	display: grid;
	gap: 0;
	margin: 1.25rem 0 0;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
}

.facts div {
	display: grid;
	grid-template-columns: minmax(130px, 0.4fr) 1fr;
	gap: 1rem;
	padding: 0.8rem 1rem;
	border-bottom: 1px solid var(--line);
	background: rgba(4, 9, 20, 0.35);
}

.facts div:last-child {
	border-bottom: 0;
}

.facts dt {
	color: #71809b;
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.facts dd {
	margin: 0;
	color: #eef2ff;
	font-size: 0.92rem;
	font-weight: 650;
	overflow-wrap: anywhere;
}

/* Credential cards (RENAR / ANSVSA). RENAR forbids its accreditation symbol on websites,
   so these use a neutral icon plus the textual reference to the certificate. */
.credentials {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.credential {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	min-width: 0;
	padding: 1rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(9, 15, 31, 0.64);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

a.credential:hover {
	transform: translateY(-2px);
	border-color: rgba(45, 212, 191, 0.42);
	background: rgba(45, 212, 191, 0.06);
}

.credential__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(45, 212, 191, 0.3);
	border-radius: 13px;
	background: linear-gradient(145deg, rgba(45, 212, 191, 0.2), rgba(91, 124, 250, 0.14));
	color: var(--mint);
}

.credential__icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.credential__copy {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
	line-height: 1.35;
}

.credential__status {
	color: var(--mint);
	font-size: 0.66rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.credential__title {
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
}

.credential__meta {
	color: var(--subtle);
	font-size: 0.8rem;
	font-weight: 600;
}

.credential__action {
	margin-top: 0.3rem;
	color: var(--sky);
	font-size: 0.8rem;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: rgba(125, 211, 252, 0.38);
	text-underline-offset: 3px;
}

/* Long-form text (GDPR, legal). */
.prose {
	max-width: 780px;
	color: #c3cddd;
	font-size: 1.02rem;
}

.prose h2 {
	margin: 2.4rem 0 0.8rem;
	color: #fff;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.prose p,
.prose ul {
	margin: 0 0 1.1rem;
}

.prose li {
	margin-bottom: 0.4rem;
}

/* Download / external link lists. */
.link-list {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.link-list a {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
	transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.link-list a:hover {
	transform: translateX(3px);
	border-color: rgba(117, 167, 255, 0.38);
	background: rgba(91, 124, 250, 0.07);
}

.link-list__type {
	flex: 0 0 auto;
	min-width: 3.1rem;
	padding: 0.3rem 0.5rem;
	border-radius: 8px;
	background: rgba(91, 124, 250, 0.14);
	color: #9bb1ff;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-align: center;
}

.link-list__text {
	flex: 1 1 auto;
	min-width: 0;
	color: #e3e9f4;
	font-weight: 650;
}

.link-list__arrow {
	flex: 0 0 auto;
	color: var(--sky);
	font-weight: 800;
}

/* Media blocks: photo cards and embeds. */
.media-frame {
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-radius: 24px;
	background: #0b1122;
	box-shadow: 0 30px 75px rgba(0, 0, 0, 0.3);
}

.media-frame img,
.media-frame iframe {
	display: block;
	width: 100%;
	border: 0;
}

.embed-white {
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
}

.embed-white iframe {
	display: block;
	width: 100%;
	border: 0;
}

/* Footer */
.site-footer {
	position: relative;
	padding: 6rem 0 2rem;
	border-top: 1px solid var(--line);
	background:
		radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.1), transparent 26rem),
		#050916;
}

.footer-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 4.5rem;
	padding: clamp(1.8rem, 4vw, 3.2rem);
	border: 1px solid rgba(45, 212, 191, 0.2);
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(45, 212, 191, 0.11), rgba(91, 124, 250, 0.1));
}

.footer-cta h2 {
	max-width: 650px;
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 3.4rem);
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 3rem;
}

.footer-brand img {
	width: 245px;
	margin-bottom: 1.1rem;
}

.footer-brand p,
.footer-block p {
	margin: 0;
	color: var(--subtle);
}

.footer-block h3 {
	margin: 0 0 1rem;
	color: #fff;
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.footer-block a,
.footer-legal dd a {
	color: #cbd5e1;
	text-decoration: underline;
	text-decoration-color: rgba(203, 213, 225, 0.32);
	text-underline-offset: 3px;
}

.footer-block a:hover,
.footer-legal dd a:hover {
	color: var(--sky);
}

.footer-block .footer-block__map {
	margin-top: 1rem;
}

.footer-block h3.footer-block__spaced {
	margin-top: 2rem;
}

.footer-legal {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1.2rem 0 0;
}

.footer-legal div {
	padding: 0.8rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.025);
}

.footer-legal dt {
	color: #687792;
	font-size: 0.62rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.footer-legal dd {
	margin: 0.2rem 0 0;
	color: #cbd5e1;
	font-size: 0.78rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 4rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	color: #61708b;
	font-size: 0.78rem;
}

.footer-bottom a:hover {
	color: #a9b7cc;
}

/* Cookie consent */
.gdpr-banner {
	position: fixed;
	z-index: 5000;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	max-width: 980px;
	margin-inline: auto;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 16px;
	background: rgba(11, 17, 34, 0.94);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.gdpr-banner.is-hiding {
	transform: translateY(12px);
	opacity: 0;
	pointer-events: none;
}

.gdpr-banner p {
	margin: 0;
	color: #aeb9cc;
	font-size: 0.85rem;
}

.gdpr-banner p a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gdpr-banner__accept {
	flex: 0 0 auto;
	padding: 0.65rem 1rem;
	border: 0;
	border-radius: 10px;
	background: var(--teal);
	color: #04251f;
	cursor: pointer;
	font-size: 0.82rem;
	font-weight: 850;
}

/* Mobile action bar: hidden on desktop; on phones it slides in once the visitor scrolls. */
.mobile-actions {
	display: none;
}

@media (max-width: 900px) {
	.mobile-actions {
		position: fixed;
		z-index: 4000;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		gap: 0.5rem;
		padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid rgba(148, 163, 184, 0.18);
		background: rgba(7, 11, 24, 0.94);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		transform: translateY(110%);
		transition: transform 220ms ease;
	}

	.mobile-actions.is-visible {
		transform: translateY(0);
	}

	.mobile-actions a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.2rem;
		min-height: 52px;
		border: 1px solid rgba(148, 163, 184, 0.2);
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.05);
		color: #e6ecf6;
		font-size: 0.78rem;
		font-weight: 800;
		line-height: 1.1;
		text-align: center;
	}

	.mobile-actions a.is-primary {
		border-color: transparent;
		background: linear-gradient(135deg, #20c997, #14b887);
		color: #031b16;
	}

	.mobile-actions svg {
		width: 20px;
		height: 20px;
		fill: none;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 1.8;
	}

	/* Keep the footer and cookie banner clear of the bar. */
	.site-footer {
		padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
	}

	.mobile-actions.is-visible ~ .gdpr-banner {
		bottom: calc(84px + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 1050px) {
	.site-nav a { padding-inline: 0.55rem; font-size: 0.82rem; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	:root { --header-height: 70px; }
	.container { width: min(calc(100% - 2rem), var(--content-width)); }
	.site-brand img { width: 148px; }
	.menu-toggle { display: inline-flex; }
	.site-nav {
		position: fixed;
		top: calc(var(--header-height) + 0.65rem);
		right: 1rem;
		left: 1rem;
		display: grid;
		gap: 0.25rem;
		max-height: calc(100svh - var(--header-height) - 2rem);
		padding: 0.8rem;
		border: 1px solid rgba(148, 163, 184, 0.2);
		border-radius: 18px;
		background: rgba(8, 13, 28, 0.97);
		box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px) scale(0.98);
		transform-origin: top;
		transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
	}
	.site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
	.site-nav a { padding: 0.85rem 0.9rem; font-size: 0.92rem; }
	.site-nav .nav-cta { margin: 0.35rem 0 0; text-align: center; }
	.grid-2,
	.grid-3 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	body { font-size: 15px; }
	.actions { display: grid; }
	.button { width: 100%; }
	.grid-4,
	.credentials { grid-template-columns: 1fr; }
	.facts div { grid-template-columns: 1fr; gap: 0.2rem; }
	.footer-cta { align-items: stretch; flex-direction: column; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-brand { grid-column: auto; }
	.footer-legal { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; }
	.gdpr-banner { align-items: stretch; flex-direction: column; }
	.gdpr-banner__accept { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *:before, *:after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
