<?php
/**
 * Main stylesheet — TechTrac brand design system.
 *
 * Colors from brand guide:
 *   Deep Tech Blue  #050912
 *   Electric Cyan   #00BFFF
 *   Tech White      #FFFFFF
 *   Cool Slate Grey #3E4F63
 *   Subtle Cyan     #6DE2F1
 */

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #ffffff;
	background-color: #050912;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: #00bfff;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover { color: #6de2f1; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

p { margin: 0 0 1em; }

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

/* ---------------------------------------------------------------- Variables */
:root {
	--color-bg: #050912;
	--color-bg-elevated: #0a1220;
	--color-cyan: #00bfff;
	--color-cyan-light: #6de2f1;
	--color-white: #ffffff;
	--color-slate: #3e4f63;
	--color-border: rgba(0, 191, 255, 0.25);
	--font-main: 'Montserrat', sans-serif;
	--container-max: 1200px;
	--header-height: 80px;
	--glow: 0 0 20px rgba(0, 191, 255, 0.4), 0 0 40px rgba(0, 191, 255, 0.15);
	--glow-strong: 0 0 25px rgba(0, 191, 255, 0.6), 0 0 50px rgba(0, 191, 255, 0.25);
}

/* --------------------------------------------------------------- Layout */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.site-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
}

/* --------------------------------------------------------------- Header */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--header-height);
	background: rgba(5, 9, 18, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
	transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	gap: 2rem;
}

.site-logo img,
.site-logo .custom-logo {
	height: 56px;
	width: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.nav-menu a {
	color: var(--color-white);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.nav-menu a:hover { color: var(--color-cyan); }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: var(--color-cyan);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------- Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.75rem;
	font-family: var(--font-main);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 1px solid var(--color-cyan);
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.btn::before { content: '[ '; color: var(--color-cyan); }
.btn::after  { content: ' ]'; color: var(--color-cyan); }

.btn--primary {
	color: var(--color-cyan);
	background: transparent;
}

.btn--primary:hover {
	color: var(--color-bg);
	background: var(--color-cyan);
	box-shadow: var(--glow);
}

.btn--primary:hover::before,
.btn--primary:hover::after { color: var(--color-bg); }

.btn--glow { box-shadow: var(--glow); }
.btn--glow:hover { box-shadow: var(--glow-strong); }

.btn--ghost {
	color: var(--color-white);
	border-color: var(--color-slate);
	background: transparent;
}

.btn--ghost::before,
.btn--ghost::after { color: var(--color-slate); }

.btn--ghost:hover {
	border-color: var(--color-cyan);
	color: var(--color-cyan);
}

.btn--ghost:hover::before,
.btn--ghost:hover::after { color: var(--color-cyan); }

.btn--sm {
	padding: 0.625rem 1.25rem;
	font-size: 0.75rem;
}

/* ---------------------------------------------------------------- Hero */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: calc(var(--header-height) + 3rem) 0 4rem;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 191, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 191, 255, 0.04) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
}

.hero__glow {
	position: absolute;
	top: 20%;
	right: 10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(0, 191, 255, 0.12) 0%, transparent 70%);
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.hero__eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-cyan);
	margin-bottom: 1rem;
}

.hero__title {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	margin-bottom: 1.25rem;
}

.hero__title span { display: block; }
.hero__title-accent { color: var(--color-cyan); }

.hero__subtitle {
	font-size: 1.0625rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.85);
	max-width: 520px;
	margin-bottom: 2rem;
	line-height: 1.7;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.hero__devices {
	display: flex;
	gap: 1.5rem;
	color: var(--color-cyan);
	opacity: 0.7;
}

.hero__visual img {
	border-radius: 4px;
	filter: drop-shadow(0 20px 60px rgba(0, 191, 255, 0.15));
}

/* ---------------------------------------------------- Services Overview */
.services-overview {
	padding: 6rem 0;
	background: var(--color-bg-elevated);
}

.section-header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.section-header__title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-header__title span { display: inline; }
.section-header__accent { color: var(--color-cyan); }

.section-header__subtitle {
	font-size: 1rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.7);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.service-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.75rem 1rem;
	background: rgba(5, 9, 18, 0.6);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
	border-color: var(--color-cyan);
	box-shadow: var(--glow);
	transform: translateY(-4px);
	color: inherit;
}

.service-card__icon {
	margin-bottom: 1rem;
	opacity: 0.9;
}

.service-card__icon img {
	width: 72px;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

.service-card__title {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-white);
}

.service-card__title span {
	display: block;
	color: var(--color-cyan);
}

/* ------------------------------------------------------ Section Divider */
.section-divider {
	padding: 4rem 0 2rem;
	text-align: center;
}

.section-divider__title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.section-divider__accent { color: var(--color-cyan); }

/* ------------------------------------------------------ Service Section */
.service-section {
	position: relative;
	padding: 4rem 0;
	overflow: hidden;
}

.service-section:nth-child(even) {
	background: var(--color-bg-elevated);
}

.service-section__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 50% 60% at 80% 50%, rgba(0, 191, 255, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.service-section__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.service-section--reversed .service-section__inner {
	direction: rtl;
}

.service-section--reversed .service-section__inner > * {
	direction: ltr;
}

.service-section__title {
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	margin-bottom: 0.75rem;
}

.service-section__title-main { display: block; color: var(--color-white); }
.service-section__title-accent { display: block; color: var(--color-cyan); }

.service-section__tagline {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 1.75rem;
}

.feature-list {
	margin-bottom: 2rem;
}

.feature-list__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.4rem 0;
	font-size: 0.9375rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.9);
}

.feature-list__check {
	flex-shrink: 0;
	color: var(--color-cyan);
}

.service-section__price {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--color-cyan);
	margin-bottom: 1.5rem;
	text-transform: uppercase;
}

.service-section__visual img {
	border-radius: 4px;
	filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
}

.trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
}

.trust-badge {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-cyan);
}

.trust-badge__icon {
	flex-shrink: 0;
}

/* ----------------------------------------------------------- CTA Banner */
.cta-banner {
	padding: 5rem 0;
	background: linear-gradient(135deg, rgba(0, 191, 255, 0.08) 0%, transparent 60%);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.cta-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.cta-banner__content h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 0.5rem;
}

.cta-banner__content p {
	font-size: 1rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.75);
	margin: 0;
}

.cta-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* --------------------------------------------------------------- Footer */
.site-footer {
	background: #000000;
}

.site-footer__banner img {
	width: 100%;
	height: auto;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
	gap: 2.5rem;
	padding: 4rem 1.5rem;
	max-width: var(--container-max);
	margin: 0 auto;
}

.site-footer__logo {
	height: 64px;
	width: auto;
	margin-bottom: 1rem;
}

.site-footer__tagline {
	font-size: 0.9375rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 1rem;
}

.site-footer__url {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
}

.site-footer__url a { color: var(--color-cyan); }

.icon--globe { color: var(--color-cyan); }

.site-footer__col h4 {
	font-size: 0.8125rem;
	color: var(--color-cyan);
	margin-bottom: 1.25rem;
}

.site-footer__col ul li {
	margin-bottom: 0.5rem;
}

.site-footer__col a {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.875rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.site-footer__col a:hover { color: var(--color-cyan); }

.site-footer__contact p {
	font-size: 0.875rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 1.25rem;
}

.site-footer__bottom {
	border-top: 1px solid var(--color-border);
	padding: 1.25rem 0;
}

.site-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.site-footer__bottom p {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 400;
	text-transform: none;
	color: var(--color-slate);
}

.footer-menu {
	display: flex;
	gap: 1.5rem;
}

.footer-menu a {
	font-size: 0.8125rem;
	color: var(--color-slate);
	text-transform: none;
}

/* ---------------------------------------------------------- Inner Pages */
.page-header {
	padding: calc(var(--header-height) + 3rem) 0 2rem;
	text-align: center;
	background: var(--color-bg-elevated);
	border-bottom: 1px solid var(--color-border);
}

.page-header__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.page-content {
	padding: 3rem 0 5rem;
	max-width: 760px;
	margin: 0 auto;
}

.page-content h2,
.page-content h3 {
	margin-top: 2rem;
	color: var(--color-cyan);
}

.page-content p,
.page-content li {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.85);
}

.page-content a { text-decoration: underline; }

.posts-list {
	padding: calc(var(--header-height) + 2rem) 0 4rem;
}

.post-card {
	padding: 2rem 0;
	border-bottom: 1px solid var(--color-border);
}

.post-card__title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.post-card__title a { color: var(--color-white); }
.post-card__title a:hover { color: var(--color-cyan); }

.post-card__meta {
	font-size: 0.8125rem;
	color: var(--color-slate);
	text-transform: none;
	margin-bottom: 0.75rem;
}

.post-card__excerpt {
	font-weight: 400;
	text-transform: none;
	color: rgba(255, 255, 255, 0.75);
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.nav-toggle { display: flex; }

	.site-nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1rem 1.5rem 1.5rem;
		background: rgba(5, 9, 18, 0.98);
		border-bottom: 1px solid var(--color-border);
		transform: translateY(-110%);
		opacity: 0;
		visibility: hidden;
		transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
	}

	.site-nav.is-open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-menu li { border-bottom: 1px solid var(--color-border); }
	.nav-menu a { display: block; padding: 0.875rem 0; }

	.site-nav__cta { margin-top: 1rem; width: 100%; }

	.hero__inner,
	.service-section__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.service-section--reversed .service-section__inner { direction: ltr; }

	.hero__visual { order: -1; }

	.services-grid { grid-template-columns: 1fr 1fr; }

	.cta-banner__inner { flex-direction: column; text-align: center; }
	.cta-banner__actions { justify-content: center; }

	.site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.services-grid { grid-template-columns: 1fr; }

	.hero__actions { flex-direction: column; }
	.hero__actions .btn { width: 100%; }
}

/* ------------------------------------------------------ WordPress Core */
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }

.wp-block-image img { border-radius: 4px; }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
