/* CBAC Services - Modern refresh theme (static) */

:root {
	--bg: #0b1220;
	--card: rgba(255, 255, 255, .06);
	--text: #e9eefb;
	--muted: rgba(233, 238, 251, .78);
	--line: rgba(233, 238, 251, .14);
	--accent: #47d7c8;
	--accent2: #7aa7ff;
	--shadow: 0 18px 55px rgba(0, 0, 0, .40);
	--radius: 18px;
	--max: 1120px;
	--sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

html {
	overflow-y: scroll;
}

body {
	margin: 0;
	font-family: var(--sans);
	color: var(--text);
	background:
		radial-gradient(1000px 700px at 10% -10%, rgba(122, 167, 255, .28), transparent 60%),
		radial-gradient(900px 650px at 90% 0%, rgba(71, 215, 200, .22), transparent 62%),
		var(--bg);
	background-repeat: no-repeat;
	background-attachment: fixed;
}

a {
	color: inherit
}

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

.container {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 18px;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 18, 32, .70);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	min-width: 220px;
}

.brand img {
	width: 170px;
	height: auto;
	display: block;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35));
}

.brand-stack {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.brand-subtitle {
	font-size: 12px;
	color: var(--muted);
	letter-spacing: .3px;
	text-align: center;
	line-height: 1.3;
}

.footer-accred {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.footer-accred strong {
	display: block;
	margin-bottom: 10px;
}

.accred-strip {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-start;
	max-width: 100%;
}

.accred-strip a {
	display: flex;
	align-items: center;
	line-height: 0;
	opacity: .92;
}

.accred-strip a:hover {
	opacity: 1;
}

.accred-strip img {
	height: 26px;
	width: auto;
	display: block;
}

.nav {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nav a {
	text-decoration: none;
	color: var(--muted);
	font-size: 14px;
	padding: 10px 12px;
	border-radius: 12px;
	white-space: nowrap;
}

.nav a:hover {
	background: rgba(233, 238, 251, .06);
	color: var(--text);
}

.nav a[aria-current="page"] {
	background: rgba(233, 238, 251, .09);
	color: var(--text);
	border: 1px solid rgba(233, 238, 251, .10);
}

.burger {
	display: none;
	border: 1px solid var(--line);
	background: rgba(233, 238, 251, .04);
	color: var(--text);
	border-radius: 12px;
	padding: 10px 12px;
	cursor: pointer;
}

.mobile {
	display: none;
	border-top: 1px solid var(--line);
	padding: 10px 0 4px;
}

.mobile a {
	display: block;
	padding: 12px 0;
	color: var(--muted);
	text-decoration: none;
	border-bottom: 1px solid rgba(233, 238, 251, .08);
}

.mobile a:last-child {
	border-bottom: none
}

.hero {
	padding: 34px 0 14px;
}

.hero-card {
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px;
}

.hero h1 {
	margin: 0 0 10px;
	font-size: clamp(24px, 3vw, 40px);
	letter-spacing: -.3px;
	line-height: 1.08;
}

.hero p {
	margin: 0;
	color: var(--muted);
	line-height: 1.65;
	max-width: 75ch;
}

.main {
	padding: 10px 0 26px;
}

.shell {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.card {
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px;
}

.prose {
	color: var(--text);
	line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3 {
	letter-spacing: -.2px;
	line-height: 1.15;
}

.prose h1 {
	font-size: clamp(22px, 2.4vw, 30px);
	margin: 0 0 12px
}

.prose h2 {
	font-size: 20px;
	margin: 18px 0 10px
}

.prose h3 {
	font-size: 16px;
	margin: 14px 0 8px
}

.prose p {
	margin: 0 0 12px;
	color: var(--muted)
}

.prose p.intro {
	color: var(--text)
}

.prose ul,
.prose ol {
	margin: 0 0 12px 22px;
	color: var(--muted)
}

.prose li {
	margin: 6px 0
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 14px;
	font-size: 14px;
}

.prose th,
.prose td {
	border: 1px solid rgba(233, 238, 251, .12);
	padding: 10px 10px;
	vertical-align: top;
}

.prose th {
	color: var(--text);
	background: rgba(5, 8, 19, .32)
}

.prose td {
	color: var(--muted)
}

.prose a {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: rgba(71, 215, 200, .55);
	text-underline-offset: 3px;
}

.prose a:hover {
	text-decoration-color: rgba(122, 167, 255, .75);
}

.prose .button,
.prose a.button {
	display: inline-block;
	text-decoration: none;
	font-weight: 800;
	background: linear-gradient(135deg, rgba(71, 215, 200, .95), rgba(122, 167, 255, .95));
	color: #07101f;
	padding: 10px 12px;
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

.prose .button:hover {
	filter: brightness(1.03)
}

.footer {
	border-top: 1px solid var(--line);
	padding: 22px 0 34px;
	color: var(--muted);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 14px;
	align-items: start;
}

.footer small {
	line-height: 1.6
}

.footer a {
	text-decoration: none
}

.footer a:hover {
	text-decoration: underline
}

.kv {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.kv .row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.badge {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 999px;
	border: 1px solid rgba(233, 238, 251, .16);
	background: rgba(233, 238, 251, .05);
	color: var(--text);
	font-size: 13px;
	text-decoration: none;
}

.badge code {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

/* Case Studies + Documents grid layout */
.item-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

.item-card {
	background: rgba(5, 8, 19, .28);
	border: 1px solid rgba(233, 238, 251, .10);
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 18px 55px rgba(0, 0, 0, .20);
}

.item-card>br {
	display: none;
}

.item-card h2 {
	margin: 10px 0 8px;
	font-size: 18px;
}

.item-card .casestudy-txt {
	display: block;
	color: var(--muted);
	line-height: 1.6;
}

.item-card a {
	word-break: break-word;
	font-weight: 600;
	text-decoration: none;
}

/* .item-card a[href$=".pdf"]::after {
	content: "PDF";
	font-size: 11px;
	margin-left: 8px;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .1);
} */

.item-card a:hover {
	text-decoration: underline;
}

.item-card img.casestudy_image {
	width: auto;
	max-width: 180px;
	height: auto;
	border-radius: 10px;
	display: block;
	margin-bottom: 10px;
}

/* Contact page: coverage map alongside the contact details */

.contact-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 26px;
	align-items: start;
}

.contact-map img {
	width: 100%;
	height: auto;
	display: block;
}

.contact-layout #sidebarmiddle h1 {
	margin-top: 0;
}

/* Clients logo grid */

.clients-logos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.clients-logos .item-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.clients-logos a {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(5, 8, 19, .28);
	/* border: 1px solid rgba(233,238,251,.10);
	border-radius:16px;
	padding:14px;
	box-shadow: 0 18px 55px rgba(0,0,0,.20); */
}

.clients-logos h2 {
	font-size: 14px;
	margin-top: 8px;
	text-align: center;
	color: var(--muted);
}

.clients-logos img {
	max-height: 70px;
	width: auto;
	object-fit: contain;
}

/* responsive */

@media (max-width: 1000px) {
	.clients-logos {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 650px) {
	.clients-logos {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Responsive: 2 columns on medium screens, 1 on small */
@media (max-width: 1050px) {
	.item-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr))
	}
}

@media (max-width: 650px) {
	.item-grid {
		grid-template-columns: 1fr
	}
}

@media (max-width: 900px) {
	.nav {
		display: none
	}

	.burger {
		display: inline-flex;
		align-items: center;
		gap: 10px
	}

	.mobile {
		display: block
	}

	.footer-grid {
		grid-template-columns: 1fr
	}

	.contact-layout {
		grid-template-columns: 1fr
	}

	.brand img {
		width: 150px
	}
}