/*
Theme Name: iEmpire Engine
Theme URI: https://iempireengine.com
Author: Arturo Hernandez
Author URI: https://iempireengine.com
Description: Instrument-cluster theme for the iEmpire Engine SEO/AEO/GEO scanner. Built to host the iEmpire Engine scanner plugin with a control-room aesthetic — empire gold, signal teal, control-room black. Pairs with the [iempire_scanner] shortcode.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iempire-engine
*/

/* =========================================================
   Design tokens — shared with the scanner plugin/demo
   ========================================================= */
:root {
	--ink: #0a0d13;
	--panel: #121823;
	--panel-2: #0d121b;
	--line: #1f2a3d;
	--gold: #e8b84b;
	--signal: #19e0b6;
	--alert: #ff5f6b;
	--mist: #8a96ac;
	--paper: #eaf0f9;

	--mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--display: 'Chakra Petch', system-ui, sans-serif;
	--body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.iee-container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; }

/* =========================================================
   Site header / nav
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(10,13,19,.82);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--paper); }
.brand:hover { text-decoration: none; }
.brand .mark {
	width: 30px; height: 30px; border-radius: 8px; flex: none;
	background: linear-gradient(135deg, var(--gold), #c98f22);
	display: grid; place-items: center; color: #1a1200; font-size: 15px; font-weight: 700;
	box-shadow: 0 0 22px -6px var(--gold);
}
.brand .mark::after { content: "iE"; }
.brand b { color: var(--gold); }
.nav-menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-menu a { color: var(--mist); font-size: 14px; font-family: var(--mono); letter-spacing: .03em; }
.nav-menu a:hover { color: var(--paper); text-decoration: none; }
.nav-cta {
	font-family: var(--display); font-weight: 600; font-size: 14px;
	background: var(--signal); color: #042019 !important; padding: 9px 16px; border-radius: 9px;
}
.nav-cta:hover { filter: brightness(1.08); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--paper); border-radius: 8px; padding: 8px 11px; font-size: 16px; cursor: pointer; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: 86px 0 50px; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: -40% 0 auto 0; height: 560px;
	background: radial-gradient(60% 60% at 50% 0%, rgba(25,224,182,.10), transparent 70%);
	pointer-events: none;
}
.hero .eyebrow {
	font-family: var(--mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
	color: var(--gold); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(36px, 6.5vw, 62px); margin: 0 0 18px; letter-spacing: -0.015em; }
.hero h1 .lit { color: var(--signal); }
.hero p.lede { font-size: 19px; color: var(--mist); max-width: 560px; margin: 0 0 14px; }
.hero .signal-note { font-family: var(--mono); font-size: 13px; color: var(--mist); letter-spacing: .03em; }
.hero .signal-note b { color: var(--signal); }

/* Scanner mount — wraps the [iempire_scanner] plugin widget */
.scanner-mount { margin-top: 40px; scroll-margin-top: 90px; }

/* Contact form mount — constrains the booking form on the closing band */
.contact-mount { margin: 40px auto 0; max-width: 680px; text-align: left; scroll-margin-top: 90px; }

/* =========================================================
   Section scaffolding
   ========================================================= */
.section { padding: 74px 0; border-top: 1px solid var(--line); }
.section .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 16px; }
.section .intro { color: var(--mist); max-width: 620px; margin: 0 0 44px; font-size: 18px; }

/* Pillar explainer cards */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar-card {
	background: linear-gradient(180deg, var(--panel), var(--panel-2));
	border: 1px solid var(--line); border-radius: 16px; padding: 26px;
}
.pillar-card .code { font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: .12em; }
.pillar-card h3 { font-size: 21px; margin: 10px 0 10px; }
.pillar-card p { color: var(--mist); font-size: 15px; margin: 0; }
.pillar-card .glyph { font-size: 22px; margin-bottom: 6px; }

/* How it works — a real sequence, so numbering is earned */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--panel-2); position: relative; }
.step-card .num { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.step-card h4 { font-size: 16px; margin: 10px 0 8px; }
.step-card p { color: var(--mist); font-size: 14px; margin: 0; }

/* Services / pricing */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
	border: 1px solid var(--line); border-radius: 16px; padding: 28px;
	background: linear-gradient(180deg, var(--panel), var(--panel-2)); display: flex; flex-direction: column;
}
.svc.featured { border-color: var(--gold); box-shadow: 0 0 40px -18px var(--gold); }
.svc .tier { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.svc.featured .tier { color: var(--gold); }
.svc .price { font-family: var(--display); font-weight: 700; font-size: 34px; margin: 12px 0 4px; }
.svc .price span { font-size: 14px; color: var(--mist); font-family: var(--mono); }
.svc ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.svc li { font-size: 15px; color: var(--paper); padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--line); }
.svc li::before { content: "›"; position: absolute; left: 4px; color: var(--signal); font-weight: 700; }
.svc .svc-btn {
	font-family: var(--display); font-weight: 600; text-align: center; border-radius: 10px; padding: 13px;
	background: var(--panel); border: 1px solid var(--line); color: var(--paper);
}
.svc.featured .svc-btn { background: var(--gold); color: #1a1200; border: none; }
.svc .svc-btn:hover { text-decoration: none; filter: brightness(1.06); }

/* Big closing CTA */
.cta-band { padding: 70px 0; border-top: 1px solid var(--line); text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4.5vw, 42px); margin: 0 0 16px; }
.cta-band p { color: var(--mist); max-width: 520px; margin: 0 auto 28px; }
.cta-band .big-btn {
	display: inline-block; font-family: var(--display); font-weight: 700; font-size: 17px;
	background: var(--signal); color: #042019; padding: 16px 34px; border-radius: 12px;
}
.cta-band .big-btn:hover { text-decoration: none; filter: brightness(1.07); }

/* =========================================================
   Generic content (pages / posts)
   ========================================================= */
.page-content { padding: 64px 0; }
.page-content .entry { max-width: 760px; margin: 0 auto; }
.entry h1.entry-title { font-size: clamp(30px, 5vw, 46px); margin: 0 0 24px; }
.entry p, .entry li { color: #cdd6e6; }
.entry a { text-decoration: underline; }
.post-meta { font-family: var(--mono); font-size: 13px; color: var(--mist); margin-bottom: 18px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; color: var(--mist); font-size: 14px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.site-footer .brand { font-size: 17px; }
.site-footer small { font-family: var(--mono); letter-spacing: .03em; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
	.pillars, .services { grid-template-columns: 1fr; }
	.steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.nav-menu { display: none; }
	.nav-toggle { display: inline-block; }
	.nav-menu.open {
		display: flex; position: absolute; top: 68px; right: 22px; flex-direction: column;
		background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; gap: 14px;
	}
	.steps { grid-template-columns: 1fr; }
	.hero { padding-top: 60px; }
}

/* Accessibility: visible focus + reduced motion */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; } }
