/* ============================================================
   Multi-Werx Electric — Stylesheet
   ------------------------------------------------------------
   To re-theme the site, edit the CSS custom properties in
   :root below. Colors, fonts, and spacing scale flow from there.
   ============================================================ */

:root {
	/* Brand palette */
	--color-navy: #0b1f3a;
	--color-navy-deep: #061327;
	--color-yellow: #f5b301; /* electric accent */
	--color-yellow-dark: #d99a00;
	--color-gold-text: #946600; /* accent for small text on white (WCAG AA) */
	--color-text: #1a2332;
	--color-muted: #5a6374;
	--color-bg: #ffffff;
	--color-bg-alt: #f5f7fa;
	--color-border: #e3e7ed;

	/* Typography */
	--font-body:
		"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Oswald", "Inter", system-ui, sans-serif;

	/* Layout */
	--container-max: 1180px;
	--header-h: 94px; /* sticky header height, used to offset anchor jumps */
	--radius: 10px;
	--shadow-sm: 0 2px 6px rgba(11, 31, 58, 0.08);
	--shadow-md: 0 8px 24px rgba(11, 31, 58, 0.12);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	/* Keep anchored sections from hiding under the sticky header */
	scroll-padding-top: calc(var(--header-h) + 0.5rem);
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: var(--color-navy);
	text-decoration: none;
}
a:hover {
	color: var(--color-gold-text);
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	letter-spacing: 0.02em;
	line-height: 1.15;
	margin: 0 0 0.5em;
	color: var(--color-navy);
	text-transform: uppercase;
	text-wrap: balance;
}
h1 {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}
h3 {
	font-size: 1.2rem;
}

p {
	margin: 0 0 1em;
}
.lead {
	font-size: 1.1rem;
	color: var(--color-muted);
}

.eyebrow {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.85rem;
	color: var(--color-gold-text);
	margin: 0 0 0.6em;
	font-weight: 600;
}
.eyebrow.light {
	color: var(--color-yellow);
}
.centered {
	text-align: center;
}
.section-intro {
	max-width: 640px;
	margin: 0 auto 2.5rem;
	color: var(--color-muted);
}

/* Inline SVG icons inside buttons/links */
.icon {
	width: 1.1em;
	height: 1.1em;
	flex: 0 0 auto;
}

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.25rem;
}
.section {
	padding: 5rem 0;
}
.section-alt {
	background: var(--color-bg-alt);
}
.section-dark {
	background: var(--color-navy);
	color: #e8edf5;
}
.section-dark h2,
.section-dark h3 {
	color: #fff;
}
.section-dark .lead {
	color: #b9c4d6;
}
.section-dark a {
	color: var(--color-yellow);
}
.section-dark a:hover {
	color: #fff;
}

.two-col {
	display: grid;
	gap: 3rem;
	grid-template-columns: 1fr 1fr;
	align-items: center;
}
@media (max-width: 820px) {
	.two-col {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px; /* comfortable tap target */
	padding: 0.85rem 1.5rem;
	border-radius: var(--radius);
	font-weight: 600;
	font-family: var(--font-body);
	border: 2px solid transparent;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		background 0.2s ease,
		color 0.2s ease;
	text-align: center;
}
.btn:hover {
	transform: translateY(-1px);
}
.btn-primary,
.section-dark .btn-primary {
	background: var(--color-yellow);
	color: var(--color-navy);
}
.btn-primary:hover,
.section-dark .btn-primary:hover {
	background: var(--color-yellow-dark);
	color: var(--color-navy);
}
.btn-ghost,
.section-dark .btn-ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover,
.section-dark .btn-ghost:hover {
	background: #fff;
	color: var(--color-navy);
}
.btn.block {
	display: flex;
	width: 100%;
	margin-bottom: 0.6rem;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.95);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
	transition:
		box-shadow 220ms ease,
		background-color 220ms ease;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	gap: 1rem;
}
.brand img {
	height: 56px;
	width: auto;
}

/* Ensure logo sits on a consistent white background so it matches nav states */
.brand {
	display: inline-block;
	background: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(11, 31, 58, 0.06);
	transition:
		transform 220ms ease,
		box-shadow 220ms ease;
}

/* Header visual change when scrolled */
.site-header.scrolled {
	box-shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
	background: rgba(255, 255, 255, 1);
}
.site-header.scrolled .brand {
	transform: scale(0.98);
	box-shadow: 0 6px 16px rgba(11, 31, 58, 0.12);
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.primary-nav ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}
.primary-nav a {
	font-weight: 600;
	color: var(--color-navy);
	font-size: 0.95rem;
}
.primary-nav a:hover {
	color: var(--color-gold-text);
}
.nav-cta {
	padding: 0.55rem 1rem;
	font-size: 0.9rem;
	min-height: 0;
}

/* Mobile nav toggle */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: none;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	background: var(--color-navy);
	border-radius: 2px;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}
/* Animate hamburger into an X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 820px) {
	.nav-toggle {
		display: flex;
	}
	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1rem 1.25rem 1.25rem;
		border-bottom: 1px solid var(--color-border);
		box-shadow: var(--shadow-md);
		transform: translateY(-10px);
		opacity: 0;
		visibility: hidden; /* keeps closed menu out of the tab order */
		pointer-events: none;
		transition:
			opacity 0.2s ease,
			transform 0.2s ease,
			visibility 0s linear 0.2s;
	}
	.primary-nav.open {
		opacity: 1;
		transform: translateY(0);
		visibility: visible;
		pointer-events: auto;
		transition-delay: 0s;
	}
	.primary-nav ul {
		flex-direction: column;
		gap: 0.25rem;
	}
	.primary-nav ul a {
		display: block;
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--color-border);
	}
	.nav-cta {
		margin-top: 0.75rem;
		min-height: 44px;
	}
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: #fff;
	min-height: 78vh;
	min-height: 78svh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--color-navy-deep); /* shown until the image loads */
}
.hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.hero-media picture,
.hero-media img {
	width: 100%;
	height: 100%;
}
.hero-media img {
	object-fit: cover;
	/* Keep the van (right side of the photo) visible on wide screens */
	object-position: center right;
}
.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		120deg,
		rgba(6, 19, 39, 0.85) 0%,
		rgba(11, 31, 58, 0.65) 60%,
		rgba(11, 31, 58, 0.4) 100%
	);
}
.hero-content {
	position: relative;
	z-index: 1;
	padding: 5rem 1.25rem;
	max-width: 760px;
}
.hero-content h1 {
	color: #fff;
}
.h1-sub {
	display: block;
	margin-top: 0.45em;
	font-size: 0.42em;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--color-yellow);
}
.hero-content .lead {
	color: #d8e0ee;
}
.hero-content .eyebrow {
	color: var(--color-yellow);
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* ---------- About ---------- */
.about-media img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}
.check-list {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
}
.check-list li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.5rem;
}
.check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 1.25rem;
	height: 1.25rem;
	color: var(--color-gold-text);
	font-weight: 700;
}

/* ---------- Services ---------- */
.service-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.service-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.75rem;
	box-shadow: var(--shadow-sm);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}
.service-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--color-yellow);
}
.service-icon {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 0.75rem;
}
.service-card h3 {
	margin-bottom: 0.4rem;
}
.service-card p {
	color: var(--color-muted);
	margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	margin-top: 2rem;
}
.testimonial {
	background: var(--color-bg-alt);
	border-left: 4px solid var(--color-yellow);
	border-radius: var(--radius);
	padding: 1.75rem;
	margin: 0;
}
.testimonial blockquote {
	margin: 0 0 0.75rem;
	font-style: italic;
	color: var(--color-text);
}
.testimonial blockquote p {
	margin: 0;
}
.testimonial figcaption {
	font-weight: 600;
	color: var(--color-navy);
}

/* ---------- Contact ---------- */
.contact-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr 1fr;
	margin-top: 1.5rem;
}
@media (max-width: 600px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}
.contact-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	padding: 1.25rem;
}
.contact-card h3 {
	margin-bottom: 0.5rem;
	color: var(--color-yellow);
}
.contact-card p {
	margin: 0.25rem 0;
	color: #d8e0ee;
}
.contact-card a {
	display: inline-block;
	padding: 0.15rem 0; /* larger tap area for phone/email links */
}

.contact-side {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	padding: 1.75rem;
}
.contact-side address {
	font-style: normal;
	margin-bottom: 1rem;
	color: #d8e0ee;
}
.contact-side .areas {
	font-size: 0.95rem;
	color: #b9c4d6;
	margin-bottom: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--color-navy-deep);
	color: #b9c4d6;
	padding: 2.5rem 0 1.5rem;
}
.footer-inner {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr 1fr 1fr;
	align-items: start;
}
@media (max-width: 720px) {
	.footer-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-logo {
		margin: 0 auto;
	}
}
.footer-logo {
	border-radius: 6px;
}
.footer-tagline {
	color: #8c97ad;
	margin-top: 0.5rem;
}
.site-footer nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}
@media (max-width: 720px) {
	.site-footer nav ul {
		justify-content: center;
	}
}
.site-footer a {
	color: #d8e0ee;
	display: inline-block;
	padding: 0.35rem 0;
}
.site-footer a:hover {
	color: var(--color-yellow);
}
.footer-meta p {
	margin: 0.25rem 0;
	font-size: 0.9rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
	position: absolute;
	top: -60px;
	left: 0;
	background: var(--color-yellow);
	color: var(--color-navy);
	padding: 0.5rem 1rem;
	z-index: 999;
	border-bottom-right-radius: 6px;
	border-bottom-left-radius: 6px;
}
.skip-link:focus {
	top: 8px;
}

/* Visible focus for keyboard users only (not on mouse clicks) */
:focus {
	outline: none;
}
:focus-visible {
	outline: 3px solid var(--color-yellow);
	outline-offset: 3px;
}

/* ---------- Mobile optimizations ---------- */
@media (max-width: 480px) {
	:root {
		--header-h: 74px;
	}

	/* Slightly tighter tracking so the eyebrow label wraps cleanly */
	.eyebrow {
		letter-spacing: 0.12em;
	}

	/* Shorter hero for small screens */
	.hero {
		min-height: 60vh;
		min-height: 60svh;
	}
	.hero-content {
		padding: 3rem 1.25rem;
	}

	/* Stronger overlay on mobile for readable text */
	.hero-overlay {
		background: linear-gradient(
			160deg,
			rgba(6, 19, 39, 0.95) 0%,
			rgba(11, 31, 58, 0.85) 60%,
			rgba(11, 31, 58, 0.65) 100%
		);
	}

	/* Adjust image focal point on very small screens so van remains visible */
	.hero-media img {
		object-position: 70% center;
	}

	/* Header compact */
	.header-inner {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}
	.brand img {
		height: 44px;
	}

	/* Tighter section spacing */
	.section {
		padding: 3.5rem 0;
	}

	/* Make CTAs easier to tap */
	.btn {
		padding: 0.95rem 1rem;
		font-size: 1rem;
	}
	.hero-actions .btn,
	.nav-cta {
		width: 100%;
	}

	/* Bigger nav links */
	.primary-nav a {
		font-size: 1.1rem;
	}

	/* Service cards stack comfortably */
	.service-grid {
		grid-template-columns: 1fr;
	}
}
