/* ============ Avintelix — theme styles (port of design prototype styles.css) ============ */
:root {
	--navy-900: #0B1D44;
	--navy-700: #0E2A5C;
	--navy-600: #16306B;
	--blue-600: #1F6BE0;
	--blue-500: #2E7BF0;
	--blue-300: #5C9BF5;
	--blue-100: #E8F0FC;
	--ink: #16233D;
	--slate: #51617D;
	--line: #DCE3EF;
	--bg: #FFFFFF;
	--bg-soft: #F5F8FC;
	--font-display: "Jost", "Century Gothic", sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy-900); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.eyebrow {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--blue-600);
	margin: 0 0 14px;
}

/* ---------- header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 72px;
}
.wordmark {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 23px;
	letter-spacing: 0.14em;
	color: var(--navy-900);
	white-space: nowrap;
}
.wordmark .lix { color: var(--blue-600); }
.wordmark:hover { color: var(--navy-900); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--ink);
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}
.site-nav a:not(.btn):hover { color: var(--blue-600); }
.site-nav a.active { color: var(--blue-600); border-bottom-color: var(--blue-600); }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	color: var(--navy-900);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 12px 26px;
	border-radius: 6px;
	border: 1px solid transparent;
	white-space: nowrap;
	flex-shrink: 0;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-on-dark { background: #fff; color: var(--navy-900); }
.btn-on-dark:hover { background: var(--blue-300); color: var(--navy-900); }

/* ---------- hero ---------- */
.hero {
	background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
	border-bottom: 1px solid var(--line);
}
.hero .container {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 64px;
	align-items: center;
	padding-top: 88px;
	padding-bottom: 88px;
}
.hero h1 {
	font-size: 52px;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: 0.01em;
}
.hero h1 .accent { color: var(--blue-600); }
.hero .lede { font-size: 20px; color: var(--slate); margin: 22px 0 34px; max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba(11, 29, 68, 0.18);
}
.pixel-scatter { position: absolute; pointer-events: none; }
.pixel-scatter span { position: absolute; display: block; }

/* page hero (inner pages) */
.page-hero {
	background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
	border-bottom: 1px solid var(--line);
}
.page-hero .container { padding-top: 72px; padding-bottom: 64px; max-width: 880px; }
.page-hero h1 { font-size: 44px; font-weight: 600; line-height: 1.15; }
.page-hero .lede { font-size: 20px; color: var(--slate); margin: 18px 0 0; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: 34px; font-weight: 600; line-height: 1.2; }
.section-head p { color: var(--slate); font-size: 18px; margin: 14px 0 0; }

/* pillars (cards block, 3-up default) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillars.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pillars.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pillar {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 32px 28px;
}
.pillar .glyph {
	width: 46px;
	height: 46px;
	border-radius: 8px;
	background: var(--blue-100);
	display: grid;
	place-items: center;
	margin-bottom: 20px;
}
.pillar h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.pillar p { color: var(--slate); margin: 0; font-size: 16px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { border-top: 3px solid var(--blue-600); padding-top: 20px; }
.step .num {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--blue-600);
}
.step h3 { font-size: 19px; font-weight: 600; margin: 8px 0 8px; }
.step p { color: var(--slate); font-size: 15.5px; margin: 0; }

/* industry cards */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.industry-card {
	display: block;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	color: var(--ink);
	transition: box-shadow 0.2s, transform 0.2s;
}
.industry-card:hover { box-shadow: 0 16px 40px rgba(11, 29, 68, 0.14); transform: translateY(-3px); }
.industry-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.industry-card .body { padding: 20px 22px 24px; }
.industry-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.industry-card p { color: var(--slate); font-size: 15px; margin: 0 0 14px; }
.industry-card .more {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--blue-600);
}

/* alternating feature rows (industries page, about, text+image block) */
.feature-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
	padding: 72px 0;
	border-bottom: 1px solid var(--line);
	scroll-margin-top: 90px;
}
.feature-row:last-of-type { border-bottom: none; }
.feature-row img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 18px 44px rgba(11, 29, 68, 0.14);
}
.feature-row.flip .media { order: 2; }
.feature-row h2 { font-size: 30px; font-weight: 600; margin-bottom: 14px; }
.feature-row p { color: var(--slate); margin: 0 0 14px; }
.feature-row ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-row ul li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-size: 16px; }
.feature-row ul li::before {
	content: "";
	width: 8px;
	height: 8px;
	background: var(--blue-600);
	flex-shrink: 0;
	transform: translateY(-1px);
}
.feature-row .stats { display: flex; gap: 36px; margin-top: 24px; }
.feature-row .stats .stat-value {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 600;
	color: var(--navy-900);
}
.feature-row .stats .stat-label { color: var(--slate); font-size: 14.5px; }
.feature-row .row-link {
	display: inline-block;
	margin-top: 10px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--blue-600);
}
.feature-row .row-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--blue-600);
}

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value { border-top: 3px solid var(--navy-700); padding-top: 20px; }
.value h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.value p { color: var(--slate); font-size: 15.5px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-600) 100%); }
.cta-band .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-top: 64px;
	padding-bottom: 64px;
	flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 30px; font-weight: 600; }
.cta-band p { color: #B9C7E2; margin: 10px 0 0; max-width: 52ch; }
.cta-band.has-bg { position: relative; background-size: cover; background-position: center; }
.cta-band.has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(11, 29, 68, 0.92) 0%, rgba(22, 48, 107, 0.88) 100%);
}
.cta-band.has-bg .container { position: relative; }

/* ---------- contact ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 64px;
	align-items: start;
	padding: 72px 0 96px;
}
.contact-form {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 36px;
	box-shadow: 0 14px 40px rgba(11, 29, 68, 0.07);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label {
	font-family: var(--font-display);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--navy-700);
}
.field input, .field select, .field textarea {
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 11px 13px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none;
	border-color: var(--blue-600);
	box-shadow: 0 0 0 3px rgba(31, 107, 224, 0.15);
}
.field.invalid input, .field.invalid textarea { border-color: #C5392F; }
.field .error { display: none; font-size: 13.5px; color: #C5392F; }
.field.invalid .error { display: block; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-success { display: none; text-align: center; padding: 48px 24px; }
.form-success.show { display: block; }
.contact-form.sent form { display: none; }
.form-success .tick {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--blue-100);
	display: grid;
	place-items: center;
}
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--slate); margin: 0; }
.avx-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-aside h3 {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--blue-600);
	margin: 0 0 12px;
}
.contact-aside .block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-aside .block:first-child { padding-top: 0; }
.contact-aside .big { font-size: 19px; font-weight: 600; color: var(--navy-900); }
.contact-aside p { color: var(--slate); margin: 6px 0 0; font-size: 15.5px; }

/* ---------- carousel block ---------- */
.avx-carousel { position: relative; }
.avx-carousel .carousel-track { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 24px 60px rgba(11, 29, 68, 0.18); }
.avx-carousel .carousel-slide {
	display: none;
	width: 100%;
}
.avx-carousel .carousel-slide.active { display: block; }
.avx-carousel .carousel-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.avx-carousel .carousel-caption { padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-top: 0; }
.avx-carousel .carousel-caption h3 { font-size: 18px; margin-bottom: 4px; }
.avx-carousel .carousel-caption p { color: var(--slate); font-size: 15px; margin: 0; }
.avx-carousel .carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.avx-carousel .carousel-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: var(--line);
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
}
.avx-carousel .carousel-dot.active { background: var(--blue-600); transform: scale(1.2); }

/* ---------- video block ---------- */
.avx-video .video-frame {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(11, 29, 68, 0.18);
	aspect-ratio: 16 / 9;
	background: var(--navy-900);
}
.avx-video .video-frame iframe,
.avx-video .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.avx-video .video-caption { text-align: center; color: var(--slate); font-size: 15px; margin-top: 16px; }

/* ---------- blog fallback (index.php / single.php / page.php) ---------- */
.entry-content { max-width: 760px; padding: 64px 0 88px; }
.entry-content h1 { font-size: 38px; margin-bottom: 20px; }
.entry-content p { color: var(--ink); }
.entry-content img { border-radius: 10px; }
.post-list { display: grid; gap: 32px; padding: 64px 0 88px; max-width: 760px; }
.post-list article { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.post-list h2 { font-size: 24px; margin-bottom: 8px; }
.post-list .meta { color: var(--slate); font-size: 14px; margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #B9C7E2; }
.site-footer .container {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 48px;
	padding-top: 64px;
	padding-bottom: 48px;
}
.footer-brand .mark-tile {
	width: 52px;
	height: 52px;
	background: #fff;
	border-radius: 12px;
	display: grid;
	place-items: center;
	margin-bottom: 18px;
}
.footer-brand .wordmark { color: #fff; font-size: 19px; }
.footer-brand .wordmark:hover { color: #fff; }
.footer-brand .wordmark .lix { color: var(--blue-300); }
.footer-brand p { font-size: 14.5px; margin: 12px 0 0; max-width: 34ch; }
.site-footer h4 {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
	margin: 4px 0 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #B9C7E2; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom .container {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 13.5px;
	color: #7E90B5;
	flex-wrap: wrap;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
	.hero .container { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 56px; }
	.hero h1 { font-size: 40px; }
	.pillars, .steps, .values, .pillars.cols-2, .pillars.cols-4 { grid-template-columns: 1fr; }
	.industry-grid { grid-template-columns: 1fr 1fr; }
	.feature-row { grid-template-columns: 1fr; gap: 32px; }
	.feature-row.flip .media { order: 0; }
	.site-footer .container { grid-template-columns: 1fr 1fr; }
	.site-nav { gap: 18px; }
	.site-nav .btn { display: none; }
	.contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.form-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		padding: 12px 28px 20px;
		box-shadow: 0 16px 30px rgba(11, 29, 68, 0.10);
	}
	.site-nav.open { display: flex; }
	.site-nav a:not(.btn) { padding: 10px 0; font-size: 16px; }
}
@media (max-width: 560px) {
	.industry-grid { grid-template-columns: 1fr; }
	.page-hero h1 { font-size: 34px; }
}
