/*
Theme Name:  CAIOS
Description: Dark command-center theme for the CAIOS marketing site, styled after the CAIOS product interface. Child theme of Twenty Twenty-Five.
Template:    twentytwentyfive
Version:     0.1.5
Author:      ARC Labs
*/

/* ── Base ────────────────────────────────────────────────────────────── */

body {
	-webkit-font-smoothing: antialiased;
	background:
		radial-gradient(1200px 500px at 70% -10%, rgba(51, 214, 247, 0.06), transparent 60%),
		var(--wp--preset--color--base);
}

::selection {
	background: rgba(51, 214, 247, 0.3);
}

/* Hide the theme-rendered page title; every page carries its own H1. */
.page .wp-block-post-title {
	display: none;
}

/* ── Eyebrow kickers ─────────────────────────────────────────────────── */

.caios-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cyan);
	margin-bottom: 0.4em;
}

.caios-eyebrow::before {
	content: "// ";
	opacity: 0.6;
}

/* ── Cards (dashboard-tile look with corner brackets) ────────────────── */

.caios-card {
	position: relative;
	height: 100%;
	background: linear-gradient(180deg, rgba(51, 214, 247, 0.04), transparent 40%),
		var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	padding: 26px 24px;
	box-sizing: border-box;
}

.caios-card::before,
.caios-card::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	pointer-events: none;
	opacity: 0.9;
}

.caios-card::before {
	top: -1px;
	left: -1px;
	border-top: 1px solid var(--wp--preset--color--cyan);
	border-left: 1px solid var(--wp--preset--color--cyan);
	border-top-left-radius: 10px;
}

.caios-card::after {
	bottom: -1px;
	right: -1px;
	border-bottom: 1px solid var(--wp--preset--color--cyan);
	border-right: 1px solid var(--wp--preset--color--cyan);
	border-bottom-right-radius: 10px;
}

.caios-card h3 {
	margin-top: 0;
	margin-bottom: 0.5em;
	font-size: 1.02rem;
	color: #f2fbff;
}

.caios-card p {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.caios-card p + p {
	margin-top: 0.6em;
}

.caios-card a {
	font-size: 0.88rem;
	text-decoration: none;
}

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

.caios-step-num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--cyan);
	margin: 0 0 0.9em;
}

/* Grid spacing */
.caios-grid {
	gap: 18px;
}

.caios-grid + .caios-grid {
	margin-top: 18px;
}

/* ── Panels (hero console / big callouts) ────────────────────────────── */

.caios-panel {
	position: relative;
	background:
		linear-gradient(180deg, rgba(51, 214, 247, 0.05), transparent 50%),
		var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 44px 40px;
}

.caios-panel::before,
.caios-panel::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	pointer-events: none;
}

.caios-panel::before {
	top: -1px;
	left: -1px;
	border-top: 1px solid var(--wp--preset--color--cyan);
	border-left: 1px solid var(--wp--preset--color--cyan);
	border-top-left-radius: 12px;
}

.caios-panel::after {
	bottom: -1px;
	right: -1px;
	border-bottom: 1px solid var(--wp--preset--color--cyan);
	border-right: 1px solid var(--wp--preset--color--cyan);
	border-bottom-right-radius: 12px;
}

/* ── Big statements ──────────────────────────────────────────────────── */

.caios-statement {
	font-size: 1.25rem;
	line-height: 1.5;
	color: #f2fbff;
	border-left: 2px solid var(--wp--preset--color--cyan);
	padding-left: 22px;
}

/* ── Sections ────────────────────────────────────────────────────────── */

.caios-section {
	margin-top: 96px;
}

.caios-hero {
	padding-top: 72px;
	text-align: center;
}

.caios-hero .caios-eyebrow {
	margin-bottom: 1em;
}

.caios-hero h1 {
	margin: 0 auto 0.5em;
	max-width: 21ch;
}

.caios-hero p {
	max-width: 62ch;
	margin-left: auto;
	margin-right: auto;
	color: var(--wp--preset--color--muted);
}

.caios-trust-line {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.caios-trust-line .caios-dot {
	color: var(--wp--preset--color--green);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.wp-block-button__link {
	background: var(--wp--preset--color--cyan);
	color: #04121a;
	border-radius: 8px;
	padding: 0.72em 1.5em;
	font-weight: 600;
	box-shadow: 0 0 24px rgba(51, 214, 247, 0.25);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
	color: #04121a;
	box-shadow: 0 0 34px rgba(51, 214, 247, 0.45);
	transform: translateY(-1px);
}

.is-style-outline .wp-block-button__link,
.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--cyan);
	border: 1px solid rgba(51, 214, 247, 0.55);
	box-shadow: none;
}

.is-style-outline .wp-block-button__link:hover {
	color: #7fe6ff;
	border-color: #7fe6ff;
	box-shadow: 0 0 18px rgba(51, 214, 247, 0.2);
}

/* ── Header ──────────────────────────────────────────────────────────── */

.caios-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(6, 9, 15, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.caios-header .wp-block-site-title {
	margin: 0;
}

.caios-header .wp-block-site-title a {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #ffffff;
	text-decoration: none;
}

.caios-header .wp-block-site-title a::after {
	content: "_";
	color: var(--wp--preset--color--cyan);
	font-weight: 700;
}

.caios-header .wp-block-navigation a {
	font-size: 0.9rem;
	color: #cfe3ec;
}

.caios-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--cyan);
}

.caios-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: 6px;
}

.caios-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	color: #cfe3ec;
	border-radius: 6px;
}

.caios-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover {
	background: rgba(51, 214, 247, 0.08);
	color: var(--wp--preset--color--cyan);
}

.caios-header .wp-block-button__link {
	padding: 0.5em 1.1em;
	font-size: 0.85rem;
}

/* Mobile overlay menu */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.caios-footer {
	margin-top: 120px;
	border-top: 1px solid var(--wp--preset--color--border);
	background: #050a10;
}

.caios-footer h4 {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0 0 1em;
}

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

.caios-footer li {
	margin-bottom: 0.55em;
}

.caios-footer a {
	font-size: 0.88rem;
	color: #b8ccd6;
	text-decoration: none;
}

.caios-footer a:hover {
	color: var(--wp--preset--color--cyan);
}

.caios-footer p {
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}

.caios-footer .caios-footer-brand {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #ffffff;
}

.caios-footer .caios-footer-legal {
	border-top: 1px solid var(--wp--preset--color--border);
	margin-top: 40px;
	padding-top: 24px;
}

.caios-footer .caios-footer-legal p {
	font-size: 0.76rem;
	line-height: 1.6;
	color: #5f7683;
}

/* ── Content pages ───────────────────────────────────────────────────── */

.entry-content h2 {
	margin-top: 2.2em;
}

.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content ul li,
.entry-content ol li {
	color: var(--wp--preset--color--contrast);
}

.entry-content li::marker {
	color: var(--wp--preset--color--cyan);
}

.has-small-font-size {
	color: var(--wp--preset--color--muted);
}

/* Tighten wide card columns on mobile */
@media (max-width: 781px) {
	.caios-panel {
		padding: 28px 22px;
	}

	.caios-section {
		margin-top: 64px;
	}
}

/* Keep the header on one line */
.caios-header .wp-block-button__link {
	white-space: nowrap;
}

.caios-header .wp-block-navigation .wp-block-navigation-item__label {
	white-space: nowrap;
}

/* Spacing fixes: keep eyebrows attached to their headings, and card
   headings tight under step numbers (overrides .entry-content margins). */
.entry-content .caios-eyebrow + h2 {
	margin-top: 0.45em;
}

.entry-content .caios-card h3,
.entry-content .caios-panel h2 {
	margin-top: 0;
}

.entry-content .caios-card .caios-step-num + h3 {
	margin-top: 0;
}

/* ── Contact Form 7 styling ──────────────────────────────────────────── */

.wpcf7 form {
	max-width: 640px;
}

.wpcf7 h3 {
	margin-top: 2em;
}

.wpcf7 label {
	display: block;
	font-size: 0.88rem;
	color: var(--wp--preset--color--muted);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: 0.95rem;
	padding: 10px 12px;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--cyan);
	box-shadow: 0 0 0 3px rgba(51, 214, 247, 0.15);
}

.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--cyan);
	color: #04121a;
	border: none;
	border-radius: 8px;
	padding: 12px 26px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	box-shadow: 0 0 24px rgba(51, 214, 247, 0.25);
}

.wpcf7 input[type="submit"]:hover {
	box-shadow: 0 0 34px rgba(51, 214, 247, 0.45);
}

.wpcf7 .wpcf7-acceptance label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.82rem;
}

.wpcf7 .wpcf7-not-valid-tip {
	color: #ff5470;
	font-size: 0.8rem;
}

.wpcf7 .wpcf7-response-output {
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 8px;
	padding: 14px 16px !important;
	margin: 1.5em 0 0 !important;
	color: var(--wp--preset--color--contrast);
}

/* ── Custom nav + full-width mega menu ───────────────────────────────── */

.caios-nav {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: nowrap;
}

.caios-nav-link {
	appearance: none;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.92rem;
	color: #cfe3ec;
	text-decoration: none;
	white-space: nowrap;
}

.caios-nav-link:hover,
.caios-nav-link[aria-expanded="true"] {
	color: var(--wp--preset--color--cyan);
}

.caios-caret {
	font-size: 0.7em;
	opacity: 0.6;
}

.caios-burger {
	display: none;
	appearance: none;
	background: none;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: 8px 14px;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	color: #cfe3ec;
}

@media (max-width: 1080px) {
	.caios-nav {
		display: none;
	}

	.caios-burger {
		display: inline-block;
	}
}

@media (max-width: 560px) {
	.caios-header .caios-header-cta.caios-header-cta {
		display: none;
	}
}

/* The full-width panel hangs from the sticky header. */
.caios-megabar {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: rgba(9, 15, 22, 0.98);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid rgba(51, 214, 247, 0.25);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.caios-megabar-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 26px 32px 30px;
}

.caios-mega-section {
	display: none;
}

.caios-mega-section.is-current {
	display: block;
}

.caios-megabar.show-all .caios-mega-section {
	display: block;
}

.caios-megabar.show-all .caios-mega-section + .caios-mega-section {
	margin-top: 26px;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 22px;
}

.caios-mega-section h4 {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cyan);
	margin: 0 0 1em;
}

.caios-mega-links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px 24px;
}

.caios-mega-links a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	line-height: 1.35;
}

.caios-mega-links a strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #e8f3f8;
}

.caios-mega-links a span {
	display: block;
	font-size: 0.8rem;
	color: var(--wp--preset--color--muted);
	margin-top: 2px;
}

.caios-mega-links a:hover {
	background: rgba(51, 214, 247, 0.07);
}

.caios-mega-links a:hover strong {
	color: var(--wp--preset--color--cyan);
}

@media (max-width: 1080px) {
	.caios-megabar {
		max-height: calc(100vh - 70px);
		overflow-y: auto;
	}

	.caios-mega-links {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}
