/*
Theme Name: Vernix
Theme URI:
Description: A dark, terminal-inspired child theme of Twenty Twenty-Five for infrastructure governance.
Author: Vernix
Author URI:
Template: twentytwentyfive
Version: 2.0.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vernix
*/

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--wp--preset--color--base); }
::-webkit-scrollbar-thumb { background: var(--wp--preset--color--surface); border-radius: 3px; }

/* ── GRID OVERLAY (subtle background texture) ── */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
	background-size: 48px 48px;
	pointer-events: none;
	z-index: 0;
}

/* ── NAV DOT (blinking green indicator) ── */
.vernix-nav-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
	animation: vernix-blink 2.5s ease-in-out infinite;
}

@keyframes vernix-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

/* ── NAV CTA BUTTON ── */
.vernix-nav-cta a,
a.vernix-nav-cta {
	font-family: var(--wp--preset--font-family--geist-mono) !important;
	font-size: 12px !important;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1) !important;
	background: rgba(61,220,132,0.12) !important;
	border: 1px solid rgba(61,220,132,0.25) !important;
	padding: 7px 16px !important;
	border-radius: 4px;
	text-decoration: none !important;
	letter-spacing: 0.02em;
	transition: background 0.15s, border-color 0.15s;
}
.vernix-nav-cta a:hover,
a.vernix-nav-cta:hover {
	background: rgba(61,220,132,0.18) !important;
	border-color: rgba(61,220,132,0.4) !important;
}

/* ── SECTION TAG (monospace label like "// the problem") ── */
.vernix-section-tag {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 10px;
	color: var(--wp--preset--color--text-3);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ── HIGHLIGHT TEXT (green accent spans) ── */
.vernix-hl {
	color: var(--wp--preset--color--accent-1);
	font-weight: 300;
}

/* ── HERO GLOW ── */
.vernix-hero-glow::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	width: 60%;
	height: 60%;
	background: radial-gradient(ellipse, rgba(61,220,132,0.04) 0%, transparent 70%);
	pointer-events: none;
}

/* ── STAT ROW ── */
.vernix-stat-row {
	display: flex;
	gap: 36px;
	padding-top: 36px;
	border-top: 1px solid rgba(255,255,255,0.07);
}
.vernix-stat-num {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 22px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	letter-spacing: -0.02em;
	line-height: 1;
}
.vernix-stat-num span {
	color: var(--wp--preset--color--accent-1);
}
.vernix-stat-label {
	font-size: 12px;
	color: var(--wp--preset--color--text-3);
	margin-top: 4px;
	letter-spacing: 0.02em;
}

/* ── TERMINAL WIDGET ── */
.vernix-terminal {
	background: var(--wp--preset--color--base-1);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 8px;
	overflow: hidden;
	font-family: var(--wp--preset--font-family--geist-mono);
}
.vernix-terminal-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--wp--preset--color--base-2);
	border-bottom: 1px solid rgba(255,255,255,0.07);
}
.vernix-t-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}
.vernix-t-dot-red { background: #ff5f57; }
.vernix-t-dot-amber { background: #febc2e; }
.vernix-t-dot-green { background: #28c840; }
.vernix-terminal-title {
	font-size: 11px;
	color: var(--wp--preset--color--text-3);
	margin-left: 8px;
	letter-spacing: 0.04em;
}
.vernix-terminal-body {
	padding: 20px;
	font-size: 12.5px;
	line-height: 1.9;
}
.vernix-terminal-body .t-comment { color: var(--wp--preset--color--text-3); }
.vernix-terminal-body .t-cmd { color: var(--wp--preset--color--text-2); }
.vernix-terminal-body .t-cmd::before { content: '$ '; color: var(--wp--preset--color--accent-1); }
.vernix-terminal-body .t-out { color: var(--wp--preset--color--contrast); }
.vernix-terminal-body .t-ok { color: var(--wp--preset--color--accent-1); }
.vernix-terminal-body .t-warn { color: var(--wp--preset--color--amber); }
.vernix-terminal-body .t-path { color: #7ec8e3; }
.vernix-terminal-body .t-blank { height: 8px; }
.vernix-cursor {
	display: inline-block;
	width: 8px;
	height: 14px;
	background: var(--wp--preset--color--accent-1);
	vertical-align: middle;
	animation: vernix-cur 1s step-end infinite;
	margin-left: 2px;
}
@keyframes vernix-cur {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* ── CARD GRIDS (problems, how-it-works) ── */
.vernix-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(255,255,255,0.07);
	border: 1px solid rgba(255,255,255,0.07);
	border-radius: 8px;
	overflow: hidden;
}
.vernix-card {
	background: var(--wp--preset--color--base-1);
	padding: 32px 28px 28px;
	transition: background 0.2s;
}
.vernix-card:hover {
	background: var(--wp--preset--color--base-2);
}
.vernix-card-how {
	background: var(--wp--preset--color--base-2);
	padding: 32px 28px;
	position: relative;
	overflow: hidden;
}
.vernix-card-how::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent-1) 0%, transparent 100%);
	opacity: 0;
	transition: opacity 0.2s;
}
.vernix-card-how:hover::after { opacity: 1; }
.vernix-card-how:hover { background: var(--wp--preset--color--base-3); }

.vernix-card-idx {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 10px;
	color: var(--wp--preset--color--text-3);
	letter-spacing: 0.1em;
	margin-bottom: 20px;
}
.vernix-card-num {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 10px;
	color: var(--wp--preset--color--accent-1);
	letter-spacing: 0.1em;
	margin-bottom: 20px;
}
.vernix-card-title {
	font-size: 15px;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 12px;
	line-height: 1.35;
}
.vernix-card-body {
	font-size: 13.5px;
	color: var(--wp--preset--color--text-2);
	line-height: 1.7;
	margin-bottom: 24px;
}
.vernix-card-fix {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 11px;
	color: var(--wp--preset--color--accent-1);
	letter-spacing: 0.02em;
}
.vernix-card-fix::before { content: '\2192\00a0'; }

/* ── TAGS ── */
.vernix-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 20px;
}
.vernix-tag {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 10px;
	color: var(--wp--preset--color--text-3);
	background: var(--wp--preset--color--base-3);
	border: 1px solid rgba(255,255,255,0.07);
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 0.03em;
	display: inline-block;
}

/* ── HERO TAG (pill badge) ── */
.vernix-hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 11px;
	color: var(--wp--preset--color--accent-1);
	letter-spacing: 0.08em;
	background: rgba(61,220,132,0.12);
	border: 1px solid rgba(61,220,132,0.25);
	padding: 4px 12px 4px 8px;
	border-radius: 4px;
	margin-bottom: 28px;
}
.vernix-hero-tag-icon {
	width: 16px;
	height: 16px;
	background: var(--wp--preset--color--accent-1);
	border-radius: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

/* ── LOGO STRIP ── */
.vernix-logo-strip {
	border-top: 1px solid rgba(255,255,255,0.07);
	border-bottom: 1px solid rgba(255,255,255,0.07);
	background: var(--wp--preset--color--base-1);
}
.vernix-strip-label {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 10px;
	color: var(--wp--preset--color--text-3);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	flex-shrink: 0;
}
.vernix-strip-divider {
	width: 1px;
	height: 24px;
	background: rgba(255,255,255,0.14);
	flex-shrink: 0;
}
.vernix-logo-name {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 11px;
	font-weight: 500;
	color: var(--wp--preset--color--text-3);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: color 0.2s;
}
.vernix-logo-name:hover { color: var(--wp--preset--color--text-2); }

/* ── COMPLIANCE PANEL ── */
.vernix-audit-panel {
	background: var(--wp--preset--color--base-1);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 8px;
	overflow: hidden;
}
.vernix-panel-header {
	padding: 14px 20px;
	background: var(--wp--preset--color--base-2);
	border-bottom: 1px solid rgba(255,255,255,0.07);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.vernix-panel-title {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 11px;
	color: var(--wp--preset--color--text-2);
	letter-spacing: 0.04em;
}
.vernix-panel-live {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 10px;
	color: var(--wp--preset--color--accent-1);
	display: flex;
	align-items: center;
	gap: 5px;
}
.vernix-panel-live::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
	animation: vernix-blink 2s ease-in-out infinite;
}
.vernix-audit-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 20px;
	border-bottom: 1px solid rgba(255,255,255,0.07);
	transition: background 0.15s;
}
.vernix-audit-item:last-child { border-bottom: none; }
.vernix-audit-item:hover { background: var(--wp--preset--color--base-2); }
.vernix-audit-name {
	font-size: 13px;
	color: var(--wp--preset--color--text-2);
	font-family: var(--wp--preset--font-family--geist-mono);
}
.vernix-badge {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 10px;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	display: inline-block;
}
.vernix-badge-ok {
	background: rgba(61,220,132,0.1);
	color: var(--wp--preset--color--accent-1);
	border: 1px solid rgba(61,220,132,0.2);
}
.vernix-badge-warn {
	background: rgba(245,166,35,0.1);
	color: var(--wp--preset--color--amber);
	border: 1px solid rgba(245,166,35,0.2);
}

/* ── FRAMEWORK TAGS ── */
.vernix-fw-tag {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 11px;
	font-weight: 500;
	color: var(--wp--preset--color--accent-1);
	background: rgba(61,220,132,0.12);
	border: 1px solid rgba(61,220,132,0.25);
	padding: 5px 12px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	display: inline-block;
}
.vernix-fw-tag-neutral {
	font-family: var(--wp--preset--font-family--geist-mono);
	font-size: 11px;
	color: var(--wp--preset--color--text-3);
	background: var(--wp--preset--color--base-2);
	border: 1px solid rgba(255,255,255,0.14);
	padding: 5px 12px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	display: inline-block;
}

/* ── CTA GLOW ── */
.vernix-cta-glow::before {
	content: '';
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 300px;
	background: radial-gradient(ellipse, rgba(61,220,132,0.05) 0%, transparent 70%);
	pointer-events: none;
}

/* ── GHOST BUTTON (outline variant) ── */
.wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--text-2) !important;
	border: 1px solid rgba(255,255,255,0.14) !important;
	background: transparent !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: rgba(255,255,255,0.3) !important;
	color: var(--wp--preset--color--contrast) !important;
}

/* ── SECTION BORDERS ── */
.vernix-border-top {
	border-top: 1px solid rgba(255,255,255,0.07);
}
.vernix-border-bottom {
	border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── RESPONSIVE ── */
@media (max-width: 782px) {
	.vernix-card-grid {
		grid-template-columns: 1fr;
	}
	.vernix-stat-row {
		flex-direction: column;
		gap: 24px;
	}
}

/* ── CF7 FORM STYLES ── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium, 1rem);
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base-1);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 4px;
	padding: 0.8em 1em;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--accent-1);
}
.wpcf7 label {
	display: block;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 0.4em;
}
.wpcf7 label + br {
	display: none;
}

/* Hide featured image column when no image is set */
.vernix-page-layout .vernix-featured-col:has(.wp-block-post-featured-image:empty) {
	display: none;
}
.vernix-page-layout:has(.vernix-featured-col .wp-block-post-featured-image:empty) {
	display: block;
}
