/* ==========================================================================
   Smart Network Solutions – site styles
   Measurements reproduced from the original Beaver Builder theme/layout CSS.
   ========================================================================== */

:root {
	--red: #d40032;         /* brand red: separators, icons, button, accent text */
	--red-dark: #9a000d;    /* dark red section bands */
	--red-hover: #c80026;   /* nav hover, button border */
	--grey: #eeeeee;        /* services band */
	--border: #dddddd;      /* services band top/bottom border */
	--hairline: #e6e6e6;    /* header/footer/nav dividers, input borders */
	--input-bg: #fcfcfc;
	--text: #000;
	--white: #fff;
	--error: #dd4420;
	--fail: #dd6420;
	--ok: #29bb41;
	--font: "Montserrat", sans-serif;
	--content-width: 1100px;
	--header-width: 1020px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	word-wrap: break-word;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--text); }
p { margin: 0 0 10px; }
h1, h3 { font-family: var(--font); font-weight: 400; line-height: 1.4; margin: 20px 0 10px; }
h1 { font-size: 36px; }
h3 { font-size: 24px; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 2000;
	padding: 8px 16px; background: var(--white); color: var(--text);
}
.skip-link:focus { left: 0; }

/* ---------- Layout containers ---------- */
.container {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Header ---------- */
/* Fixed header that shrinks on scroll; main.js sets body padding-top to the header height */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--white);
	border-bottom: 1px solid rgba(0, 0, 0, 0.13);
}
body { padding-top: 161px; }
.header-row {
	max-width: var(--header-width);
	padding: 30px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	transition: padding 0.4s ease-in-out;
}
.logo { line-height: 0; }
.logo a { display: inline-block; text-decoration: none; }
.logo img { display: block; width: 174px; height: auto; transition: width 0.4s ease-in-out; }
.site-header.is-shrunk .header-row { padding: 8px 0; }
.site-header.is-shrunk .logo img { width: 80px; }   /* 46px tall */
@media (prefers-reduced-motion: reduce) {
	.header-row, .logo img { transition: none; }
}
/* Anchor targets stop below the (shrunk) fixed header */
.section { scroll-margin-top: 69px; }

.site-nav { flex: 1 1 auto; }
.nav-toggle { display: none; }
.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: flex-end;
}
.menu a {
	display: block;
	padding: 15px;
	color: var(--text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
}
.menu a:hover,
.menu a:focus,
.menu a.is-current { color: var(--red-hover); }

/* ---------- Sections ---------- */
.section { padding: 40px 20px; }
/* Flex column so stacked modules keep their full margins (no margin collapsing),
   matching the clearfix wrappers of the original page builder. */
.section > .container { padding: 0; display: flex; flex-direction: column; }
.section--grey {
	background: var(--grey);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.section--red { background: var(--red-dark); }

.section-title {
	margin: 20px;
	font-size: 24px;
	font-weight: 100;              /* Montserrat 300 is the lightest weight loaded */
	letter-spacing: 5px;
	text-align: center;
	text-transform: uppercase;
	color: var(--text);
}
.section--red .section-title { color: var(--white); }
/* --sm / --xs shrink on mobile only (see media query below) */

.separator {
	width: 100%;
	max-width: 300px;
	margin: 0 auto 20px;
	border-top: 1px solid var(--red);
}

/* 20px module margin + 10px trailing paragraph margin = 30px below */
.text { margin: 20px 20px 30px; }
.text p:last-child { margin-bottom: 0; }
.justify { text-align: justify; }
.accent { color: var(--red); }
.text--thin { font-weight: 100; }
.text--light, .text--light * { color: var(--white); font-weight: 100; }

.figure { margin: 20px; text-align: center; line-height: 0; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding: 20px;
	overflow: hidden;
	background: #000;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide-1 { background-image: url("../img/slide01.jpg"); }
.hero-slide-2 { background-image: url("../img/slide02.jpg"); }
@media (max-width: 1024px) {
	.hero-slide-1 { background-image: url("../img/slide01-1024.jpg"); }
	.hero-slide-2 { background-image: url("../img/slide02-1024.jpg"); }
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
}
.hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
}
.hero-title {
	margin: 20px;
	color: var(--white);
	font-size: 36px;
	font-weight: 100;
	letter-spacing: 5px;
	text-align: center;
	text-transform: uppercase;
}

/* ---------- Services ---------- */
.services {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.service {
	flex: 1 1 25%;
	max-width: 400px;
	padding: 20px;
	text-align: center;
}
.service-icon {
	display: block;
	margin-bottom: 20px;
	color: var(--red);
	font-size: 100px;
}
.service-icon i { display: block; height: 100px; line-height: 100px; }
.service-title {
	margin: 0;
	padding-bottom: 10px;
	font-size: 16px;
	font-weight: 100;
	text-align: center;
}

/* ---------- Contact ---------- */
.contact {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}
.contact-map, .contact-info { flex: 1 1 50%; min-width: 0; }

.contact-map { padding: 20px; line-height: 0; }
.contact-map .map-frame {
	position: relative;
	height: 500px;              /* fixed on desktop, 4:3 on mobile (see media query) */
	overflow: hidden;
}
.contact-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;           /* enabled on click, see main.js */
}
.contact-map.is-active iframe { pointer-events: auto; }

.contact-info { padding: 0; }
.info-row {
	display: flex;
	align-items: center;
	margin: 0 20px;
	padding-bottom: 6px;        /* inline-block descender gap in the original */
}
.info-row:first-child { margin-top: 20px; }
.info-row:last-of-type { margin-bottom: 20px; }
.info-icon {
	flex: 0 0 auto;
	color: var(--red);
	font-size: 30px;
	line-height: 1;
}
.info-text {
	min-height: 52.5px;
	display: flex;
	align-items: center;
	padding-left: 15px;
}
.info-text p { margin: 0; }
.info-text a { color: var(--text); text-decoration: none; }
.info-text a:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-form { margin: 0 20px 20px; padding-top: 20px; }
.field { position: relative; margin-bottom: 10px; }
.field label {
	display: inline-block;
	margin: 0 10px 5px 0;
	font-weight: 100;
}
.field-error {
	display: none;
	margin-top: 2px;
	color: var(--error);
	font-size: 12px;
	font-weight: lighter;
}
.field.has-error .field-error { display: inline-block; }
.field.has-error input,
.field.has-error textarea { border-color: var(--error); }

.field input[type="text"],
.field input[type="email"],
.field textarea {
	display: block;
	width: 100%;
	padding: 6px 12px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.428571429;
	color: var(--text);
	background: var(--input-bg);
	border: 1px solid var(--hairline);
	border-radius: 4px;
	box-shadow: none;
	transition: all ease-in-out 0.15s;
}
.field input:focus,
.field textarea:focus {
	border-color: #ccc;
	outline: 0;
}
.field textarea { min-height: 130px; resize: vertical; }

/* Honeypot – off-screen, never shown to humans */
.field--hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.field--captcha { margin-bottom: 10px; }

.btn {
	display: inline-block;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 18px;
	color: var(--white);
	text-align: center;
	text-decoration: none;
	background: var(--red);
	border: 1px solid var(--red-hover);
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.15s ease-in-out;
}
.btn:hover, .btn:focus { background: var(--red); color: var(--white); opacity: 0.92; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--full { display: block; width: 100%; }

.form-status {
	position: relative;
	top: 5px;
	margin: 0;
}
.form-status--ok { color: var(--ok); }
.form-status--fail { color: var(--fail); }
.contact-form.is-sent .field { display: none; }

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--hairline);
	background: var(--white);
	color: var(--text);
	font-size: 12px;
	text-align: center;
}
.site-footer .container { max-width: var(--header-width); padding: 20px 0; }
.footer-text { margin: 0; }

/* ---------- Scroll to top ---------- */
.to-top {
	position: fixed;
	right: 15px;
	bottom: 15px;
	z-index: 1003;
	width: 44px;
	height: 42px;
	background: rgba(0, 0, 0, 0.2);
	color: var(--white);
	text-align: center;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: rgba(0, 0, 0, 0.3); }
.to-top i {
	position: absolute;
	top: 12px;
	left: 14px;
	color: var(--white);
	font-size: 16px;
	line-height: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Header/footer container: fixed 1020px only on wide screens */
@media (max-width: 1099px) {
	.header-row, .site-footer .container { max-width: none; padding-left: 40px; padding-right: 40px; }
}

/* Medium: services 2 per row */
@media (max-width: 992px) {
	.service { flex-basis: 50%; }
}

/* Mobile */
@media (max-width: 768px) {
	body { font-size: 14px; padding-top: 0; }
	.hero { padding: 20px 0; }
	/* Header scrolls with the page on mobile, as on the original */
	.site-header { position: static; }
	.section { scroll-margin-top: 0; }
	.contact-map .map-frame { height: 0; padding-bottom: 75%; }

	.header-row {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 30px 20px 0;
	}
	.site-footer .container { padding-left: 20px; padding-right: 20px; }
	.logo { text-align: center; padding-bottom: 30px; }
	.logo img { display: inline-block; }

	.site-nav { padding-bottom: 20px; }
	.nav-toggle {
		display: block;
		width: 100%;
		margin: 0;
		padding: 9px 10px;
		font-family: inherit;
		font-size: 16px;
		font-weight: 400;
		line-height: 1.4;
		text-transform: uppercase;
		color: var(--text);
		background: var(--hairline);
		border: 0;
		border-radius: 0;
		cursor: pointer;
	}
	.nav-toggle:hover, .nav-toggle:focus { background: var(--hairline); outline: 0; }
	.menu {
		display: none;
		flex-direction: column;
		border-top: 1px solid var(--hairline);
		padding-bottom: 10px;
	}
	.menu.is-open { display: flex; }
	.menu li { border-bottom: 1px solid var(--hairline); }
	.menu a { padding: 15px; text-align: left; }

	.hero-title { font-size: 17px; }
	.section-title--sm { font-size: 20px; }
	.section-title--xs { font-size: 17px; }

	.section { padding-left: 0; padding-right: 0; }
	.service { flex-basis: 100%; }
	.contact-map, .contact-info { flex-basis: 100%; }
}
