/*
 * Shared presentation for the Concept 33 preview site.
 * Loaded after each page's own styles so the canonical navigation and
 * brand tokens win consistently across every page.
 *
 * Copied into designs/concept33/assets/site.css by website/build.ts.
 */

:root {
	--brand-blue: #263d89;
	--brand-green: #79bf55;
	--brand-aqua: #2cbfd1;
	--brand-ink: #172544;
	--brand-muted: #56637a;
	--brand-line: #dce6ee;
}

nav {
	height: 74px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 5%;
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.95);
	border-bottom: 1px solid var(--brand-line);
	z-index: 80;
	backdrop-filter: blur(12px);
}

nav .brand,
.site-footer .brand {
	position: relative;
	display: inline-block;
	padding-top: 12px;
	color: var(--brand-blue);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1;
	text-decoration: none;
}

/* Celerum brandmark: three angled bars and a dot above the word. */
.brandmark {
	position: absolute;
	left: 2px;
	top: 0;
	width: 58px;
	height: 16px;
}

.brandmark i {
	position: absolute;
	left: 0;
	height: 3px;
	border-radius: 2px;
	transform-origin: left center;
}

.brandmark i:nth-child(1) {
	width: 38px;
	transform: rotate(-8deg);
	background: var(--brand-aqua);
}

.brandmark i:nth-child(2) {
	width: 43px;
	top: 5px;
	transform: rotate(4deg);
	background: var(--brand-green);
}

.brandmark i:nth-child(3) {
	width: 34px;
	top: 10px;
	transform: rotate(-4deg);
	background: var(--brand-blue);
}

.brandmark b {
	position: absolute;
	left: 37px;
	top: -2px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--brand-aqua);
}

nav .navlinks {
	display: flex;
	align-items: center;
	gap: 25px;
	font-size: 13px;
	font-weight: 700;
	color: #46526a;
}

nav .navlinks a {
	text-decoration: none;
	color: inherit;
}

nav .navlinks a:not(.button):hover {
	color: var(--brand-green);
}

nav .navlinks a.button:hover {
	background: #67a944;
	color: #152b23;
}

nav .has-menu {
	position: relative;
}

nav .has-menu > a:after {
	content: " ▾";
	opacity: 0.6;
}

nav .menu {
	position: absolute;
	top: 100%;
	left: -10px;
	display: none;
	min-width: 240px;
	margin-top: 8px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--brand-line);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(38, 61, 137, 0.14);
}

/* Invisible bridge across the gap so the menu survives the pointer moving
   from the link down onto it. */
nav .menu:before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -8px;
	height: 8px;
}

nav .has-menu:hover .menu,
nav .has-menu:focus-within .menu {
	display: block;
}

nav .menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	white-space: nowrap;
}

nav .menu a:hover {
	background: rgba(121, 191, 85, 0.12);
	color: var(--brand-blue);
}

nav .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--brand-green);
	color: #152b23;
	padding: 11px 18px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 900px) {
	nav .navlinks {
		gap: 14px;
		font-size: 12px;
	}

	nav .navlinks a:not(.button) {
		display: none;
	}
}

/* Shared footer across every page of the site (new.celerum.co.uk format). */
.site-footer {
	background: #1b2b64;
	color: #e2e8f0;
	padding: 70px 4vw 30px;
	font-size: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-grid {
	max-width: 1280px;
	margin: 0 auto 50px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 48px;
}

.site-footer .brand {
	color: #fff;
	margin-bottom: 16px;
}

.site-footer .brandmark i:nth-child(3) {
	background: #cdd8ef;
}

.site-footer-tag {
	max-width: 320px;
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #cbd5e1;
}

.site-footer h4 {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer ul li {
	margin-bottom: 12px;
}

.site-footer ul li a {
	color: #cbd5e1;
	font-size: 14px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-footer ul li a:hover {
	color: var(--brand-green);
}

.site-footer-live p {
	margin: 0 0 16px;
	font-size: 13px;
	color: #cbd5e1;
}

.site-footer-live-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer .btn-green {
	display: block;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--brand-green);
	color: #152b23;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.site-footer .btn-green:hover {
	background: #67a944;
}

.site-footer .cta-btn {
	display: block;
	padding: 11px 18px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 10px;
	color: #fff;
	text-align: center;
	text-decoration: none;
}

.site-footer .cta-btn:hover {
	border-color: #fff;
}

.site-footer-bottom {
	max-width: 1280px;
	margin: 0 auto;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: 13px;
	color: #94a3b8;
}

.site-footer-bottom a {
	color: #cbd5e1;
	text-decoration: none;
}

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

.site-footer-legal {
	display: flex;
	gap: 20px;
}

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

@media (max-width: 500px) {
	.site-footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.site-footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}
