/*
Theme Name: ZyronexaTech
Theme URI: https://zyronexatech.com
Author: ZyronexaTech
Author URI: https://zyronexatech.com
Description: A custom one-page business theme for ZyronexaTech — design, development, marketing and support services.
Version: 1.0.0
Requires at least: 6.0
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: zyronexatech
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #F5F7FB;
	--surface: #FFFFFF;
	--ink-900: #1B1F2A;
	--ink-600: #4B5266;
	--ink-100: #C7CCDA;
	--line: #E4E7F0;
	--accent: #3B4CCA;
	--accent-ink: #2B39A0;
	--accent-tint: #EBEEFC;
	--amber: #E8A33D;
	--navy: #10142B;

	--font-display: "Space Grotesk", "Segoe UI", sans-serif;
	--font-body: "Inter", "Segoe UI", sans-serif;

	--radius-s: 4px;
	--radius-m: 10px;
	--wrap: 1120px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-900);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--ink-900); line-height: 1.15; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border-radius: var(--radius-s);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink-900); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(245, 247, 251, 0.9);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(245, 247, 251, 0.98); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-900); }
.logo span { color: var(--accent); }
.logo-light { color: #fff; }
.logo-light span { color: var(--amber); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--ink-600); }
.site-nav a:hover { color: var(--ink-900); }
.site-nav .nav-cta {
	background: var(--accent);
	color: #fff;
	padding: 10px 20px;
	border-radius: var(--radius-s);
}
.site-nav .nav-cta:hover { background: var(--accent-ink); color: #fff; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink-900); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: 46px; font-weight: 700; letter-spacing: -0.01em; max-width: 620px; }
.hero-sub { margin-top: 20px; font-size: 17px; color: var(--ink-600); max-width: 480px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-graphic svg { width: 100%; height: auto; }

/* ---------- Stats ---------- */
.stats { padding: 40px 0 8px; }
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--navy);
	border-radius: var(--radius-m);
	padding: 40px 28px;
}
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,0.12); }
.stat:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #fff; }
.stat-label { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,0.65); }
.stats-note { text-align: center; font-size: 12.5px; color: var(--ink-100); margin-top: 14px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: 32px; font-weight: 700; margin-top: 8px; }
.section-sub { margin-top: 14px; font-size: 16px; color: var(--ink-600); }

/* ---------- Services ---------- */
.services { padding: 96px 0; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.service-row {
	background: var(--surface);
	padding: 28px 30px;
	border-left: 3px solid transparent;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.service-row:hover { border-left-color: var(--accent); background: var(--accent-tint); }
.service-row h3 { font-size: 18px; font-weight: 600; }
.service-row p { margin-top: 8px; font-size: 14.5px; color: var(--ink-600); }

/* ---------- Refund ---------- */
.refund { padding: 64px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.refund-inner { max-width: 720px; }
.refund h2 { font-size: 26px; margin-bottom: 16px; }
.refund p { color: var(--ink-600); font-size: 15.5px; }

/* ---------- Reviews ---------- */
.reviews { padding: 96px 0; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.review-card blockquote { margin: 0 0 24px; font-size: 15px; color: var(--ink-900); line-height: 1.65; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-600); }
.review-card figcaption strong { display: block; color: var(--ink-900); font-size: 14.5px; }
.avatar {
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--accent-tint); color: var(--accent-ink);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-display); font-weight: 600; font-size: 13px;
	flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact { padding: 96px 0 110px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-details dt { font-size: 13px; color: var(--ink-600); margin-bottom: 4px; }
.contact-details dd { margin: 0; font-size: 16px; font-weight: 600; }
.contact-details a:hover { color: var(--accent); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 13.5px; font-weight: 600; margin-top: 14px; }
.contact-form input, .contact-form textarea {
	font-family: var(--font-body);
	font-size: 15px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--bg);
	color: var(--ink-900);
	resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form .btn { margin-top: 20px; }
.form-success { margin-top: 14px; font-size: 14px; color: var(--accent-ink); }

/* ---------- Legal pages (Refund / Privacy) ---------- */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 38px; font-weight: 700; margin-top: 8px; }
.page-updated { margin-top: 12px; font-size: 13.5px; color: var(--ink-600); }
.page-content { padding: 56px 0 110px; }
.page-content-inner { max-width: 720px; }
.page-content-inner h2 { font-size: 20px; font-weight: 600; margin-top: 40px; margin-bottom: 12px; }
.page-content-inner h2:first-child { margin-top: 0; }
.page-content-inner p { font-size: 15.5px; color: var(--ink-600); line-height: 1.75; }
.page-content-inner p + h2 { margin-top: 40px; }
.page-content-inner a { color: var(--accent); font-weight: 600; }
.link-more { display: inline-block; margin-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.link-more:hover { color: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }
.footer-address { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.5); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; font-size: 13px; color: rgba(255,255,255,0.45); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-graphic { max-width: 320px; margin: 0 auto; }
	.hero h1 { font-size: 34px; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
	.stat:nth-child(2) { border-right: none; }
	.stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 20px; }
	.service-list { grid-template-columns: 1fr; }
	.review-grid { grid-template-columns: 1fr; }
	.contact-inner { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.site-nav {
		position: absolute;
		top: 76px; left: 0; right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		padding: 12px 28px 20px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}
	.site-nav.is-open { max-height: 320px; padding-top: 16px; }
	.site-nav a { padding: 10px 0; width: 100%; }
	.site-nav .nav-cta { margin-top: 8px; text-align: center; }
	.nav-toggle { display: flex; }
	.footer-inner { grid-template-columns: 1fr; }
}
