/* ==========================================================================
   Centurion Services — Layout (header, footer, page shell)
   ========================================================================== */

/* ---------- Utility bar (dark slim) ---------- */
.csl-utility {
	background: #0F0D0A;
	color: rgba(245,239,226,.85);
	font-size: 12.5px;
	padding: 8px 0;
	letter-spacing: .01em;
}
.csl-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.csl-utility__contact,
.csl-utility__hours { display: flex; align-items: center; gap: 6px; }
.csl-utility a { color: inherit; }
.csl-utility a:hover { color: var(--accent); }
.csl-utility__sep { opacity: .5; }
@media (max-width: 640px) {
	.csl-utility { padding: 6px 0; font-size: 11.5px; }
	.csl-utility__hours { display: none; }
}

/* ---------- Header ---------- */
.csl-header {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: saturate(140%) blur(8px);
}
.csl-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 72px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.csl-header__logo {
	display: flex;
	flex-direction: column;
	line-height: 1;
	font-family: var(--font-sans);
	color: var(--ink);
	text-decoration: none;
	margin-right: auto;
}
.csl-header__mark {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.csl-header__submark {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 600;
	color: var(--ink-2);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-top: 3px;
}

.csl-header__nav { display: flex; }
.csl-nav {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.csl-nav > li { position: relative; }
.csl-nav a {
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	padding: 8px 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color var(--dur-fast) var(--ease-standard);
}
.csl-nav a:hover,
.csl-nav .current-menu-item > a { color: var(--accent); }

/* Submenu */
.csl-nav__submenu,
.csl-nav ul.sub-menu {
	position: absolute;
	top: 100%;
	left: -12px;
	min-width: 240px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	padding: 8px;
	margin: 0;
	list-style: none;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity var(--dur-fast) var(--ease-standard),
	            transform var(--dur-fast) var(--ease-standard),
	            visibility 0s linear var(--dur-fast);
	z-index: 10;
}
.csl-nav__has-children:hover .csl-nav__submenu,
.csl-nav__has-children:focus-within .csl-nav__submenu,
.csl-nav .menu-item-has-children:hover .sub-menu,
.csl-nav .menu-item-has-children:focus-within .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}
.csl-nav__submenu a,
.csl-nav .sub-menu a {
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	width: 100%;
	font-size: 14px;
}
.csl-nav__submenu a:hover,
.csl-nav .sub-menu a:hover { background: var(--surface-2); color: var(--ink); }

.csl-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.csl-header__phone { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.03em; }

.csl-header__toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	width: 40px; height: 40px;
	padding: 0;
	cursor: pointer;
	position: relative;
}
.csl-header__toggle span {
	display: block;
	width: 20px; height: 2px;
	background: var(--ink);
	margin: 4px auto;
	transition: transform var(--dur-fast), opacity var(--dur-fast);
}

@media (max-width: 1024px) {
	.csl-header__phone { display: none; }
}
@media (max-width: 900px) {
	.csl-header__toggle { display: block; }
	.csl-header__nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		padding: 16px 24px 24px;
		display: none;
	}
	.csl-header__nav.is-open { display: block; }
	.csl-nav { flex-direction: column; gap: 8px; }
	.csl-nav > li { border-bottom: 1px solid var(--line); }
	.csl-nav > li:last-child { border-bottom: 0; }
	.csl-nav a { padding: 12px 0; }
	.csl-nav__submenu,
	.csl-nav .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; padding-left: 12px;
		background: transparent;
	}
	.csl-header__inner { flex-wrap: wrap; }
}

/* ---------- Main + page shell ---------- */
.csl-main { min-height: 40vh; }

/* ---------- Footer ---------- */
.csl-footer {
	background: #0F0D0A;
	color: rgba(245,239,226,.85);
	padding: 80px 0 32px;
	margin-top: 96px;
}
.csl-footer__grid {
	display: grid;
	/* Brand | Services | Company (merged) | Contact */
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 48px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(245,239,226,.08);
}
.csl-footer__logo {
	display: flex;
	flex-direction: column;
	/* Footer is theme-dark, where --bg flips to near-black. Use an explicit
	   light colour so the 'Centurion' wordmark stays visible. */
	color: #F5EFE2;
	text-decoration: none;
	margin-bottom: 20px;
}
.csl-footer__logo .csl-header__mark { color: #F5EFE2; }
.csl-footer__logo .csl-header__submark { color: var(--accent); }
.csl-footer__address {
	font-style: normal;
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(245,239,226,.7);
	margin-bottom: 16px;
}
.csl-footer__meta {
	font-family: var(--font-mono);
	font-size: 11px;
	color: rgba(245,239,226,.5);
	line-height: 1.6;
}
.csl-footer__heading {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bg);
	margin: 0 0 16px;
}
.csl-footer__list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; flex-direction: column;
	gap: 10px;
}
.csl-footer__list a {
	color: rgba(245,239,226,.75);
	font-size: 14px;
	text-decoration: none;
	display: inline-flex; align-items: center; gap: 8px;
}
.csl-footer__list a:hover { color: var(--accent); }

.csl-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: rgba(245,239,226,.5);
}
.csl-footer__legal { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.csl-footer__legal a { color: inherit; }
.csl-footer__legal a:hover { color: var(--accent); }
.csl-footer__tag { font-family: var(--font-mono); }

@media (max-width: 1024px) {
	.csl-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.csl-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.csl-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.csl-footer__col--brand { grid-column: 1 / -1; }
	.csl-footer__bottom { flex-direction: column; align-items: flex-start; }
}
