/* ==========================================================================
   EngeGOV - institutional site
   Design system: tokens, layout, components. Vanilla CSS, no build step.
   ========================================================================== */

@font-face {
	font-family: 'Inter';
	src: url('../fonts_inter/Inter-Variable.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Brand */
	--c-slate-900: #1b2530;
	--c-slate-800: #22303f;
	--c-slate-700: #2f3640;
	--c-slate-600: #34495e;
	--c-slate-500: #46617a;
	--c-orange: #e37419;
	--c-orange-dark: #c85f0d;
	--c-orange-light: #fff1e2;

	/* Neutrals */
	--c-white: #ffffff;
	--c-bg-alt: #f5f7fa;
	--c-bg-dark: #12181f;
	--c-text: #202b36;
	--c-text-muted: #5b6b7c;
	--c-text-on-dark: #eef2f6;
	--c-text-on-dark-muted: #a9b7c4;
	--c-border: #e4e9ee;

	/* Elevation */
	--shadow-sm: 0 2px 8px rgba(20, 30, 40, .06);
	--shadow-md: 0 8px 24px rgba(20, 30, 40, .10);
	--shadow-lg: 0 24px 60px rgba(20, 30, 40, .18);
	--shadow-orange: 0 10px 26px rgba(227, 116, 25, .35);

	/* Shape */
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 28px;

	/* Type */
	--font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

	/* Layout */
	--container: 1180px;
	--nav-h: 76px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--nav-h);
}

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: inherit;
}

h1, h2, h3, h4 {
	margin: 0;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.12;
	color: var(--c-slate-700);
}

p {
	margin: 0;
	line-height: 1.7;
	color: var(--c-text-muted);
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-orange);
	margin-bottom: 14px;
}

.eyebrow:before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-orange);
	display: inline-block;
}

section {
	position: relative;
}

.section-pad {
	padding: 7em 0;
}

@media screen and (max-width: 760px) {
	.section-pad {
		padding: 4.5em 0;
	}
}

.section-title {
	font-size: clamp(28px, 3.6vw, 42px);
	max-width: 640px;
}

.section-lede {
	font-size: 18px;
	max-width: 620px;
	margin-top: 18px;
}

.bg-alt {
	background: var(--c-bg-alt);
}

.bg-dark {
	background: var(--c-bg-dark);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
	color: var(--c-white);
}

.bg-dark p {
	color: var(--c-text-on-dark-muted);
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
	white-space: nowrap;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: var(--c-orange);
	color: #ffffff;
	box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
	background: var(--c-orange-dark);
}

.btn-ghost {
	background: rgba(255, 255, 255, .08);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, .35);
}

.btn-ghost:hover {
	background: rgba(255, 255, 255, .16);
}

.btn-outline {
	background: transparent;
	color: var(--c-slate-600);
	border: 1px solid var(--c-border);
}

.btn-outline:hover {
	border-color: var(--c-slate-600);
}

/* ---------------------------------- Nav ---------------------------------- */

#nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--nav-h);
	z-index: 100;
	display: flex;
	align-items: center;
	transition: background-color .25s ease, box-shadow .25s ease;
}

#nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

#nav.is-scrolled {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(14px);
	box-shadow: var(--shadow-sm);
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: .04em;
	color: var(--c-white);
	transition: color .25s ease;
}

#nav.is-scrolled .nav-logo {
	color: var(--c-slate-700);
}

.nav-logo img {
	height: 30px;
	width: 30px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: rgba(255, 255, 255, .88);
	transition: background-color .2s ease, color .2s ease;
}

#nav.is-scrolled .nav-links a {
	color: var(--c-slate-700);
}

.nav-links a:hover, .nav-links a.is-active {
	background: rgba(255, 255, 255, .14);
}

#nav.is-scrolled .nav-links a:hover, #nav.is-scrolled .nav-links a.is-active {
	background: var(--c-bg-alt);
}

.nav-cta {
	display: flex;
	align-items: center;
	gap: 14px;
}

.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #ffffff;
	font-size: 18px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

#nav.is-scrolled .nav-toggle {
	color: var(--c-slate-700);
	background: var(--c-bg-alt);
}

@media screen and (max-width: 900px) {
	.nav-links {
		position: fixed;
		top: var(--nav-h);
		left: 0;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #ffffff;
		box-shadow: var(--shadow-lg);
		padding: 10px;
		transform: translateY(-12px);
		opacity: 0;
		pointer-events: none;
		transition: transform .2s ease, opacity .2s ease;
	}

	.nav-links.is-open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.nav-links a {
		color: var(--c-slate-700);
		padding: 14px 16px;
	}

	.nav-links a:hover, .nav-links a.is-active {
		background: var(--c-bg-alt);
	}

	.nav-cta .btn-primary {
		display: none;
	}

	.nav-toggle {
		display: flex;
	}
}

/* ---------------------------------- Hero ---------------------------------- */

#hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: var(--nav-h);
	background-image: linear-gradient(160deg, rgba(18, 24, 31, .92) 10%, rgba(47, 54, 64, .82) 55%, rgba(227, 116, 25, .55) 130%), url('../../images/hero_construction.jpg');
	background-size: cover;
	background-position: center;
	color: #ffffff;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
	padding: 4em 0;
}

.hero-title {
	font-size: clamp(36px, 5.2vw, 64px);
	color: #ffffff;
}

.hero-title span {
	color: var(--c-orange);
}

.hero-lede {
	margin-top: 22px;
	font-size: 19px;
	max-width: 560px;
	color: var(--c-text-on-dark-muted);
}

.hero-actions {
	display: flex;
	gap: 16px;
	margin-top: 36px;
	flex-wrap: wrap;
}

.hero-card {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: var(--radius-lg);
	padding: 32px;
	backdrop-filter: blur(6px);
}

.hero-card-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.hero-card-row:last-child {
	border-bottom: 0;
}

.hero-card-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--c-orange);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 17px;
	flex-shrink: 0;
}

.hero-card-row strong {
	display: block;
	font-size: 15px;
	color: #ffffff;
}

.hero-card-row span {
	font-size: 13px;
	color: var(--c-text-on-dark-muted);
}

.hero-scroll-cue {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .7);
	font-size: 22px;
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 100% { transform: translate(-50%, 0); }
	50% { transform: translate(-50%, 8px); }
}

@media screen and (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------- Stats band ---------------------------------- */

.stats-band {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	padding: 3.2em 0;
}

.stat {
	text-align: center;
}

.stat strong {
	display: block;
	font-size: clamp(30px, 3vw, 40px);
	font-weight: 800;
	color: var(--c-slate-700);
	letter-spacing: -0.02em;
}

.stat span {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: var(--c-text-muted);
}

@media screen and (max-width: 760px) {
	.stats-band {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 20px;
	}
}

/* ---------------------------------- Product cards ---------------------------------- */

.product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 56px;
}

.product-card {
	background: #ffffff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-md);
	padding: 36px 30px;
	box-shadow: var(--shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
	text-decoration: none;
	display: block;
}

.product-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
}

.product-card-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #ffffff;
	margin-bottom: 22px;
}

.product-card:nth-child(1) .product-card-icon { background: linear-gradient(135deg, var(--c-slate-600), var(--c-slate-800)); }
.product-card:nth-child(2) .product-card-icon { background: linear-gradient(135deg, var(--c-orange), var(--c-orange-dark)); }
.product-card:nth-child(3) .product-card-icon { background: linear-gradient(135deg, #2e86c1, #1b5578); }

.product-card h3 {
	font-size: 21px;
	margin-bottom: 10px;
}

.product-card p {
	font-size: 15px;
}

.product-card .card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-orange);
}

@media screen and (max-width: 900px) {
	.product-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------- Feature zig-zag ---------------------------------- */

.feature-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
	padding: 5em 0;
	border-top: 1px solid var(--c-border);
}

.feature-row:first-of-type {
	border-top: 0;
}

.feature-row.is-reverse .feature-media {
	order: 2;
}

.feature-media img {
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(0, 0, 0, .06);
}

.feature-media {
	position: relative;
}

.feature-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--c-orange-light);
	color: var(--c-orange-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.feature-copy h3 {
	font-size: clamp(24px, 3vw, 32px);
	margin-bottom: 18px;
}

.feature-copy p + p {
	margin-top: 14px;
}

.feature-copy p {
	font-size: 16px;
}

.feature-list {
	list-style: none;
	margin: 26px 0 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	color: var(--c-text);
}

.feature-list li i {
	color: var(--c-orange);
	margin-top: 4px;
	flex-shrink: 0;
}

.feature-video {
	margin-top: 32px;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	aspect-ratio: 16 / 9;
	background: var(--c-slate-900);
}

.feature-video iframe,
.feature-video video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	object-fit: cover;
}

.feature-callout {
	margin-top: 28px;
	padding: 22px 24px;
	background: var(--c-slate-600);
	color: #ffffff;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 600;
}

@media screen and (max-width: 900px) {
	.feature-row, .feature-row.is-reverse {
		grid-template-columns: 1fr;
	}
	.feature-row.is-reverse .feature-media {
		order: 0;
	}
}

/* ---------------------------------- About / company ---------------------------------- */

.about-grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 56px;
	align-items: start;
	margin-top: 50px;
}

.about-card {
	background: var(--c-white);
	border-radius: var(--radius-md);
	padding: 34px;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--c-border);
}

.about-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.about-card li {
	display: flex;
	gap: 12px;
	font-size: 15px;
	align-items: flex-start;
}

.about-card li i {
	color: var(--c-orange);
	margin-top: 3px;
}

@media screen and (max-width: 900px) {
	.about-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------- Contact ---------------------------------- */

.contact-grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 56px;
	margin-top: 50px;
}

.contact-info-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.contact-info-item:last-child {
	border-bottom: 0;
}

.contact-info-item i {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(227, 116, 25, .16);
	color: var(--c-orange);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact-info-item strong {
	display: block;
	color: #ffffff;
	font-size: 15px;
	margin-bottom: 2px;
}

.contact-info-item span, .contact-info-item a {
	font-size: 14px;
	color: var(--c-text-on-dark-muted);
	text-decoration: none;
}

.social-row {
	display: flex;
	gap: 12px;
	margin-top: 28px;
}

.social-row a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	text-decoration: none;
	transition: background-color .2s ease;
}

.social-row a:hover {
	background: var(--c-orange);
	border-color: var(--c-orange);
}

.contact-form {
	background: #ffffff;
	border-radius: var(--radius-md);
	padding: 36px;
	box-shadow: var(--shadow-lg);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.form-field {
	margin-bottom: 18px;
}

.form-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-slate-700);
	margin-bottom: 8px;
}

.form-field input, .form-field textarea {
	width: 100%;
	padding: 13px 16px;
	border-radius: 10px;
	border: 1px solid var(--c-border);
	background: var(--c-bg-alt);
	font-family: var(--font-base);
	font-size: 15px;
	color: var(--c-text);
	resize: vertical;
}

.form-field input:focus, .form-field textarea:focus {
	outline: none;
	border-color: var(--c-orange);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(227, 116, 25, .14);
}

.form-note {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--c-text-muted);
	margin-top: 4px;
}

.form-note a {
	color: var(--c-slate-600);
	font-weight: 700;
	text-decoration: none;
}

@media screen and (max-width: 900px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
	.form-row {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------- Footer ---------------------------------- */

#footer {
	background: var(--c-bg-dark);
	color: var(--c-text-on-dark-muted);
	padding: 40px 0;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
}

.footer-links {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links a {
	text-decoration: none;
	color: var(--c-text-on-dark-muted);
}

.footer-links a:hover {
	color: #ffffff;
}

/* ---------------------------------- Reveal animation ---------------------------------- */

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	html {
		scroll-behavior: auto;
	}
}
