/*
Theme Name: Custos
Theme URI: https://custos-os.com
Description: Dark and gold child theme for the Custos OS project site.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Text Domain: custos
*/

:root {
	--cx-bg: #000;
	--cx-surface: #100f0d;
	--cx-raised: #191714;
	--cx-line: #2a2721;
	--cx-line-gold: rgba(232, 179, 58, 0.22);
	--cx-gold: #e8b33a;
	--cx-gold-2: #f5d27a;
	--cx-text: #ece8df;
	--cx-muted: #a39d90;
	--cx-ok: #4cd964;
	--cx-radius: 16px;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--cx-gold); color: #000; }
:focus-visible { outline: 2px solid var(--cx-gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.cx-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--cx-line);
}
.admin-bar .cx-header { top: var(--wp-admin--admin-bar--height, 32px); }
.cx-header-inner { min-height: 68px; }
.cx-brand { gap: 12px !important; }
.cx-brand .wp-block-site-logo img { width: 38px; height: auto; display: block; }
.cx-wordmark {
	margin: 0;
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 400;
	font-size: 1.05rem;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	white-space: nowrap;
}
.cx-wordmark a { color: var(--cx-text); text-decoration: none !important; }
.cx-wordmark span { color: var(--cx-gold); }
.cx-header .wp-block-navigation a { color: var(--cx-text); }
.cx-header .wp-block-navigation a:hover { color: var(--cx-gold); text-decoration: none; }
.cx-header .wp-block-navigation .cx-nav-cta a {
	color: var(--cx-gold);
	border: 1px solid var(--cx-line-gold);
	border-radius: 999px;
	padding: 0.45rem 1rem;
}
.cx-header .wp-block-navigation .cx-nav-cta a:hover { background: var(--cx-gold); color: #000; }
.wp-block-navigation__responsive-container.is-menu-open { background: #000 !important; color: var(--cx-text) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.25rem; }

/* ---------- Sections ---------- */
/* Full-bleed bands butt against each other; the block gap would show as black strips. */
.wp-block-post-content > .alignfull,
.wp-site-blocks > footer,
.wp-site-blocks > main { margin-block-start: 0 !important; }
.cx-section {
	padding-top: clamp(4rem, 9vw, 7.5rem);
	padding-bottom: clamp(4rem, 9vw, 7.5rem);
}
.cx-section + .cx-section { border-top: 1px solid var(--cx-line); }
.cx-section.cx-alt { background: var(--cx-surface); }
.cx-eyebrow {
	font-family: var(--wp--preset--font-family--montserrat) !important;
	font-size: 0.78rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.3em !important;
	text-transform: uppercase;
	color: var(--cx-gold) !important;
	margin-bottom: 0.75rem !important;
}
.cx-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--cx-muted); line-height: 1.6; }
.cx-muted { color: var(--cx-muted); }
.cx-small { font-size: 0.875rem; }
.cx-gold { color: var(--cx-gold); }
.cx-section h2 { max-width: 24ch; }
.cx-section .has-text-align-center.wp-block-heading { margin-left: auto; margin-right: auto; }
.cx-section > .cx-lead.has-text-align-center { margin-left: auto; margin-right: auto; max-width: 62ch; }

/* ---------- Hero ---------- */
.cx-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: clamp(3.5rem, 7vw, 6rem);
	background:
		radial-gradient(60% 55% at 50% 22%, rgba(232, 179, 58, 0.13), transparent 70%),
		radial-gradient(40% 40% at 85% 90%, rgba(232, 179, 58, 0.05), transparent 70%),
		#000;
}
.cx-hero-logo img { width: min(260px, 56vw); height: auto; margin: 0 auto; display: block; }
.cx-hero h1 {
	max-width: 18ch;
	margin-left: auto !important;
	margin-right: auto !important;
	font-weight: 500;
	letter-spacing: -0.02em;
}
.cx-hero h1 em { font-style: normal; color: var(--cx-gold); }
.cx-hero .cx-lead { max-width: 60ch; margin-left: auto; margin-right: auto; }
.cx-hero .wp-block-buttons { margin-top: 2rem; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--cx-text);
	border: 1px solid var(--cx-line-gold);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--cx-gold); color: var(--cx-gold); background: transparent; }

/* ---------- Device screens ---------- */
.cx-screens { margin-top: clamp(3rem, 6vw, 4.5rem) !important; }
.cx-screen { margin: 0; }
.cx-screen img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	border: 9px solid #1b1a17;
	box-shadow: 0 0 0 1px #2f2c25, 0 24px 60px -24px rgba(0, 0, 0, 0.9), 0 0 50px -30px rgba(232, 179, 58, 0.5);
	background: #000;
}
.cx-screen figcaption {
	text-align: center;
	margin-top: 0.9rem;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cx-muted);
}

/* ---------- Facts strip ---------- */
.cx-facts {
	border-top: 1px solid var(--cx-line);
	border-bottom: 1px solid var(--cx-line);
	background: var(--cx-surface);
	padding-top: 1.6rem;
	padding-bottom: 1.6rem;
}
.cx-facts .wp-block-group { gap: 0.4rem 2.4rem; }
.cx-facts p {
	margin: 0;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cx-gold);
	white-space: nowrap;
}

/* ---------- Cards ---------- */
.cx-grid { margin-top: 2.75rem !important; }
.cx-card {
	background: var(--cx-raised);
	border: 1px solid var(--cx-line);
	border-radius: var(--cx-radius);
	padding: 1.75rem 1.6rem 1.6rem;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.cx-alt .cx-card { background: #0a0908; }
.cx-card:hover { border-color: var(--cx-line-gold); }
.cx-card h3 { margin-top: 0; margin-bottom: 0.55rem; color: var(--cx-gold); }
.cx-card p { margin: 0; color: var(--cx-muted); font-size: 0.98rem; }
.cx-card .cx-num {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	color: var(--cx-gold);
	margin-bottom: 0.9rem;
}
.cx-card p + p { margin-top: 0.6rem; }

/* ---------- Steps ---------- */
.cx-steps { counter-reset: step; }
.cx-step { position: relative; padding-left: 4rem !important; }
.cx-step::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	border: 1px solid var(--cx-gold);
	color: var(--cx-gold);
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 500;
}
.cx-step h3 { margin: 0 0 0.35rem; }
.cx-step p { margin: 0; color: var(--cx-muted); }

/* ---------- Split rows ---------- */
.cx-split { gap: clamp(2rem, 5vw, 4.5rem) !important; align-items: center !important; }
.cx-split .cx-screen { max-width: 440px; margin: 0 auto; }
.cx-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.cx-points li {
	position: relative;
	padding: 0.85rem 0 0.85rem 2rem;
	border-top: 1px solid var(--cx-line);
	color: var(--cx-muted);
}
.cx-points li:last-child { border-bottom: 1px solid var(--cx-line); }
.cx-points li strong { color: var(--cx-text); font-weight: 600; }
.cx-points li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 1.35rem;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 2px;
	background: var(--cx-gold);
	transform: rotate(45deg);
}

/* ---------- Hardware table ---------- */
/* Five cards: centre the short last row instead of leaving it hanging left. */
.cx-hw .cx-grid { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.cx-hw .cx-grid > .cx-card { flex: 1 1 300px; max-width: 372px; margin: 0 !important; }
.cx-hw .cx-card h3 { color: var(--cx-text); }
.cx-hw .cx-tag {
	display: inline-block;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cx-gold);
	border: 1px solid var(--cx-line-gold);
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	margin-bottom: 0.9rem;
}
.cx-hw .cx-card a { font-weight: 600; }

/* ---------- FAQ ---------- */
.cx-faq .wp-block-details {
	border-bottom: 1px solid var(--cx-line);
	padding: 1.1rem 0;
	margin: 0 !important;
}
.cx-faq .wp-block-details:first-of-type { border-top: 1px solid var(--cx-line); }
.cx-faq summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 500;
	font-size: 1.08rem;
	padding-right: 2rem;
	position: relative;
}
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: -0.1rem;
	font-size: 1.4rem;
	font-weight: 300;
	color: var(--cx-gold);
	transition: transform 0.2s ease;
}
.cx-faq details[open] summary::after { transform: rotate(45deg); }
.cx-faq details p { color: var(--cx-muted); margin-top: 0.8rem; margin-bottom: 0; }

/* ---------- Credits / CTA ---------- */
.cx-cta {
	background:
		radial-gradient(50% 80% at 50% 100%, rgba(232, 179, 58, 0.12), transparent 70%),
		var(--cx-surface);
}
.cx-cta .cx-mark img { width: 84px; height: auto; margin: 0 auto; display: block; }

/* ---------- Footer ---------- */
.cx-footer {
	border-top: 1px solid var(--cx-line);
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
	font-size: 0.875rem;
	color: var(--cx-muted);
}
.cx-footer p { margin: 0; }
.cx-footer a { color: var(--cx-muted); }
.cx-footer a:hover { color: var(--cx-gold); }
.cx-footer .cx-wordmark { font-size: 0.85rem; }

/* ---------- Plain pages ---------- */
.cx-page-title { margin-top: clamp(2.5rem, 6vw, 4.5rem) !important; }
.cx-prose h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.cx-prose p, .cx-prose li { color: #cfcabe; }

@media (max-width: 781px) {
	.cx-split { flex-direction: column; }
	.cx-screens { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1.5rem 1rem !important; }
	.cx-screen img { border-width: 6px; border-radius: 9px; }
	.cx-screen figcaption { font-size: 0.65rem; letter-spacing: 0.16em; }
	.cx-hw .cx-grid > .cx-card { max-width: none; }
	.cx-step { padding-left: 3.4rem !important; }
	.cx-step::before { width: 2.3rem; height: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cx-card { transition: none; }
}

/* Tagline under the hero logo; the logo itself no longer carries it. */
.cx-hero .cx-tagline { margin-top: 1.4rem !important; margin-bottom: 1.6rem !important; }
.cx-hero .cx-tagline::before,
.cx-hero .cx-tagline::after { content: ""; display: inline-block; width: 2.2rem; height: 1px; background: currentColor; opacity: 0.7; vertical-align: middle; margin: 0 0.9rem 0.2em; }
