/**
 * 4Way Safety global header and footer.
 *
 * Every value here is taken from _elementor_data of page 13 (Home) on
 * test2.weexalate.com, so the theme header and footer match the design that
 * was originally built inside the Elementor page.
 *
 * Palette (from the design)
 *   accent            #f21d30   hover #d91426
 *   ink               #171717
 *   header border     #eee8dd
 *   newsletter band   #191b1f   border #262626
 *   footer            #121316
 *   body text         #a3a3a3   strong #d4d4d4   dim #737373
 *   form field        #24272c   border #404040
 *   social chip       #262626
 *
 * Type: Plus Jakarta Sans, as used throughout the design.
 */

:root {
	--fw-accent: #f21d30;
	--fw-accent-hover: #d91426;
	--fw-ink: #171717;
	--fw-border: #eee8dd;
	--fw-newsletter-bg: #191b1f;
	--fw-newsletter-border: #262626;
	--fw-footer-bg: #121316;
	--fw-text: #a3a3a3;
	--fw-text-strong: #d4d4d4;
	--fw-text-dim: #737373;
	--fw-input-bg: #24272c;
	--fw-input-border: #404040;
	--fw-chip: #262626;
	--fw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--fw-shell: 100%;
	--fw-gutter: 32px;
}

/* ------------------------------------------------------------------ shell */

.fw-header__inner,
.fw-footer__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--fw-shell);
	margin: 0 auto;
	padding-left: var(--fw-gutter);
	padding-right: var(--fw-gutter);
}

/* ----------------------------------------------------------------- header */

.fw-header {
	position: relative;
	z-index: 99;
	background: #fff;
	border-bottom: 1px solid var(--fw-border);
	font-family: var(--fw-font);
}

/* Neutralise Astra's own header box so only this markup shows. */
.fw-header .ast-container,
.fw-header .site-primary-header-wrap {
	display: none;
}

.fw-header__bar {
	padding: 14px 0;
}

.fw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* ------------------------------------------------------------------ brand */

.fw-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex: 0 0 auto;
}

.fw-brand img {
	display: block;
	max-height: 48px;
	width: auto;
}

.fw-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.fw-brand__line1 {
	color: var(--fw-ink);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.2px;
	text-transform: uppercase;
}

.fw-brand__line2 {
	color: var(--fw-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Footer brand sits on a dark background, so it gets a light plate. */
.fw-brand--footer {
	background: #fff;
	padding: 4px;
	border-radius: 2px;
}

/* --------------------------------------------------------------- main nav */

.fw-nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fw-nav__link {
	color: var(--fw-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.18s ease;
}

.fw-nav__link:hover,
.fw-nav__link:focus-visible {
	color: var(--fw-accent);
}

.fw-nav__link.is-active {
	color: var(--fw-accent);
}

/* --------------------------------------------------------- header actions */

.fw-header__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 0 0 auto;
}

.fw-header__phone {
	color: var(--fw-ink);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.fw-header__phone:hover,
.fw-header__phone:focus-visible {
	color: var(--fw-accent);
}

/* ---------------------------------------------------------------- buttons */

.fw-btn {
	display: inline-block;
	border: 0;
	border-radius: 4px;
	font-family: var(--fw-font);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	padding: 10px 20px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.fw-btn--primary {
	background: var(--fw-accent);
	color: #fff;
}

.fw-btn--primary:hover,
.fw-btn--primary:focus-visible {
	background: var(--fw-accent-hover);
	color: #fff;
}

/* ------------------------------------------------------------ mobile menu */

.fw-nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--fw-border);
	border-radius: 4px;
	padding: 8px 10px;
	cursor: pointer;
}

.fw-nav-toggle__bars {
	display: block;
	width: 20px;
}

.fw-nav-toggle__bars i {
	display: block;
	height: 2px;
	background: var(--fw-ink);
	border-radius: 2px;
}

.fw-nav-toggle__bars i + i {
	margin-top: 4px;
}

.fw-mobile-nav {
	display: none;
	border-top: 1px solid var(--fw-border);
	background: #fff;
	padding: 16px var(--fw-gutter) 24px;
}

.fw-mobile-nav__list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.fw-mobile-nav__list a {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--fw-border);
	color: var(--fw-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	text-decoration: none;
}

.fw-mobile-nav__list a.is-active {
	color: var(--fw-accent);
}

.fw-mobile-nav__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

/* ------------------------------------------------------------- newsletter */

.fw-footer {
	font-family: var(--fw-font);
}

.fw-newsletter {
	background: var(--fw-newsletter-bg);
	border-top: 1px solid var(--fw-newsletter-border);
	border-bottom: 1px solid var(--fw-newsletter-border);
	padding: 56px 0;
	text-align: center;
}

.fw-newsletter__title {
	margin: 0 0 8px;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.fw-newsletter__text {
	margin: 0 auto 20px;
	max-width: 640px;
	color: var(--fw-text);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.6;
}

.fw-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	max-width: 448px;
	margin: 0 auto;
}

.fw-newsletter__input {
	flex: 1 1 220px;
	min-width: 0;
	background: var(--fw-input-bg);
	border: 1px solid var(--fw-input-border);
	border-radius: 4px;
	color: #fff;
	font-family: var(--fw-font);
	font-size: 12px;
	padding: 11px 16px;
	outline: none;
}

.fw-newsletter__input::placeholder {
	color: #8a8a8a;
}

.fw-newsletter__input:focus {
	border-color: var(--fw-accent);
}

.fw-newsletter__submit {
	border-radius: 4px;
	padding: 11px 24px;
}

/* ------------------------------------------------------------ footer main */

.fw-footer__main {
	background: var(--fw-footer-bg);
	padding: 64px 0 32px;
}

.fw-footer__columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px 24px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--fw-newsletter-border);
}

.fw-footer__col--brand    { flex: 1 1 32%; max-width: 32%; }
.fw-footer__col--company  { flex: 1 1 16%; max-width: 16%; }
.fw-footer__col--services { flex: 1 1 24%; max-width: 24%; }
.fw-footer__col--contact  { flex: 1 1 24%; max-width: 24%; }

.fw-footer__about {
	margin: 16px 0 24px;
	color: var(--fw-text);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.7;
}

.fw-footer__heading {
	margin: 0 0 12px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.4;
	text-transform: uppercase;
}

.fw-footer__heading--muted {
	color: var(--fw-text-strong);
	font-size: 11px;
}

.fw-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fw-footer__links a {
	color: var(--fw-text);
	font-size: 12px;
	font-weight: 400;
	line-height: 2.1;
	text-decoration: none;
	transition: color 0.18s ease;
}

.fw-footer__links a:hover,
.fw-footer__links a:focus-visible {
	color: var(--fw-accent);
}

.fw-footer__meta {
	margin: 0 0 16px;
	color: var(--fw-text);
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.7;
}

.fw-footer__meta--strong a {
	color: var(--fw-text-strong);
	text-decoration: none;
}

.fw-footer__meta--strong a:hover {
	color: var(--fw-accent);
}

.fw-social {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fw-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 4px;
	background: var(--fw-chip);
	color: var(--fw-text);
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.fw-social__link svg {
	width: 15px;
	height: 15px;
}

.fw-social__link:hover,
.fw-social__link:focus-visible {
	background: var(--fw-accent);
	color: #fff;
}

/* ------------------------------------------------------------ footer legal */

.fw-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 24px;
}

.fw-footer__copyright {
	margin: 0;
	color: var(--fw-text-dim);
	font-size: 11.5px;
	line-height: 1.4;
}

.fw-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fw-footer__legal-links a {
	color: var(--fw-text-dim);
	font-size: 11.5px;
	text-decoration: none;
}

.fw-footer__legal-links a:hover {
	color: var(--fw-accent);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
	.fw-nav__list {
		gap: 18px;
	}

	.fw-nav__link {
		letter-spacing: 0.4px;
	}
}

@media (max-width: 980px) {
	.fw-nav,
	.fw-header__actions {
		display: none;
	}

	.fw-nav-toggle {
		display: block;
	}

	.fw-mobile-nav.is-open {
		display: block;
	}

	.fw-footer__col--brand,
	.fw-footer__col--company,
	.fw-footer__col--services,
	.fw-footer__col--contact {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	:root {
		--fw-gutter: 20px;
	}

	.fw-newsletter {
		padding: 40px 0;
	}

	.fw-newsletter__title {
		font-size: 20px;
	}

	.fw-footer__main {
		padding: 40px 0 24px;
	}

	.fw-footer__legal {
		flex-direction: column;
		align-items: flex-start;
	}

	.fw-footer__legal-links {
		gap: 16px;
	}
}

/* ---------------------------------------------------- full width layout
 *
 * WHY THE GAPS EXISTED
 * --------------------
 * Astra caps the content container from 922px upward:
 *
 *     @media (min-width:922px){ .ast-container{max-width:1240px;} }
 *
 * Every page is wrapped in
 *     <div id="content" class="site-content"><div class="ast-container">...
 * so on any screen wider than 1240px that cap showed up as empty margins down
 * the left and right of every page, including the Home page.
 *
 * The Elementor design was built with content_width:full, so the container is
 * released to the full viewport here and Astra's horizontal container padding
 * is removed.
 *
 * #primary does not exist on these templates - they all use the
 * elementor_header_footer page template - so there is no vertical margin or
 * padding to undo as well.
 */

.ast-container,
.site-content > .ast-container,
#content > .ast-container,
.ast-container--wide,
.ast-container--narrow {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Astra's "separate container" and boxed/padded layouts add em-based side
   padding on top of the max-width. Neutralise those too. */
.ast-separate-container #content .ast-container,
.ast-box-layout.ast-plain-container #content .ast-container,
.ast-padded-layout.ast-plain-container #content .ast-container {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

#content.site-content {
	width: 100%;
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
}

/* The Elementor wrapper and its page content should fill the container. */
.elementor-template-full-width .site-content,
.elementor-template-full-width .ast-container,
.elementor-template-full-width .elementor,
.elementor-template-full-width [data-elementor-type="wp-page"] {
	width: 100%;
	max-width: 100%;
}

/* ------------------------------------------- Elementor's second width cap
 *
 * Astra was only half the problem. Elementor caps the inner wrapper of every
 * boxed container with:
 *
 *     .e-con > .e-con-inner { margin: 0 auto; max-width: var(--content-width); }
 *
 * and post-13.css sets --content-width per section. On this site the values are
 * 1280px (x11), 1152px, 1024px and 896px, so even after releasing Astra's
 * 1240px container the content was still centred inside a 1280px column.
 *
 * Only the top level containers set --content-width, so releasing the inner
 * wrapper is safe: nested containers inherit the same variable and were never
 * intentionally narrower.
 *
 * The 32px horizontal padding that the design itself puts on each section is
 * deliberately left in place, so text does not touch the viewport edge.
 */

[data-elementor-type="wp-page"] > .e-con > .e-con-inner,
[data-elementor-type="wp-page"] .e-con.e-parent > .e-con-inner,
.elementor > .e-con > .e-con-inner {
	width: 100% !important;
	max-width: 100% !important;
}



