/* ==========================================================================
   G Force Security - Header & Footer
   ========================================================================== */

:root {
	--gf-red: #e22b2b;
	--gf-red-dark: #c41f1f;
	--gf-navy: #2b2668;
	--gf-navy-deep: #05022f;
	--gf-gold: #e3d58a;
	--gf-text: #4d4d4d;
	--gf-black: #111;
	--gf-white: #fff;
	--gf-font-body: Verdana, Geneva, Tahoma, sans-serif;
	--gf-font-alt: "Lufga", "Lexend", sans-serif;
	--gf-header-h: 98px;

	/* Layout — overridden by Elementor Site Settings → Layout (see inc/layout.php) */
	--gf-site-width: 1600px;
	--gf-site-pad-l: 20px;
	--gf-site-pad-r: 20px;
	--gf-site-gap-col: 15px;
	--gf-site-gap-row: 15px;
}

@media (max-width: 767px) {
	:root {
		--gf-site-pad-l: 16px;
		--gf-site-pad-r: 16px;
	}
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.gf-header {
	position: relative;
	z-index: 999;
	background: var(--gf-white);
	border-bottom: 1px solid #cfcfcf;
}

.gf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gf-site-gap-col);
	max-width: calc(var(--gf-site-width) + var(--gf-site-pad-l) + var(--gf-site-pad-r));
	min-height: var(--gf-header-h);
	margin: 0 auto;
	padding: 10px var(--gf-site-pad-r) 10px var(--gf-site-pad-l);
}

.gf-header__logo {
	flex-shrink: 0;
}

.gf-header__logo img,
.gf-header__logo .custom-logo {
	display: block;
	width: auto;
	max-height: 74px;
}

.gf-header__site-name {
	font-family: var(--gf-font-alt);
	font-size: 22px;
	font-weight: 700;
	color: var(--gf-navy);
	text-decoration: none;
}

.gf-header__panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	gap: var(--gf-site-gap-col);
}

.gf-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.gf-menu,
.gf-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gf-menu {
	display: flex;
	align-items: center;
	gap: clamp(24px, 3.9vw, 75px);
}

.gf-menu > li {
	position: relative;
}

.gf-menu a {
	display: block;
	font-family: var(--gf-font-body);
	font-size: 18px;
	line-height: 1.4;
	color: var(--gf-text);
	text-decoration: none;
	transition: color .2s ease;
}

.gf-menu > li > a {
	padding: 10px 0;
}

.gf-menu a:hover,
.gf-menu a:focus,
.gf-menu .current-menu-item > a,
.gf-menu .current-menu-ancestor > a {
	color: var(--gf-red);
}

/* Desktop dropdown */
.gf-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	min-width: 240px;
	padding: 10px 0;
	background: var(--gf-white);
	border-top: 3px solid var(--gf-red);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all .2s ease;
}

.gf-menu .sub-menu .sub-menu {
	top: -13px;
	left: 100%;
}

.gf-menu li:hover > .sub-menu,
.gf-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gf-menu .sub-menu a {
	padding: 8px 20px;
	font-size: 16px;
}

.gf-submenu-toggle {
	display: none;
}

/* Buttons */
.gf-header__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-shrink: 0;
}

.gf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 58px;
	padding: 12px 30px;
	font-family: var(--gf-font-alt);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	border-radius: 4px;
	text-decoration: none;
	transition: all .2s ease;
}

.gf-btn--red {
	min-width: 182px;
	background: var(--gf-red);
	border: 1px solid var(--gf-red);
	color: var(--gf-white);
}

.gf-btn--red:hover,
.gf-btn--red:focus {
	background: var(--gf-red-dark);
	border-color: var(--gf-red-dark);
	color: var(--gf-white);
}

.gf-btn--outline {
	min-width: 184px;
	background: var(--gf-white);
	border: 1px solid var(--gf-black);
	color: var(--gf-black);
}

.gf-btn--outline:hover,
.gf-btn--outline:focus {
	background: var(--gf-black);
	color: var(--gf-white);
}

.gf-btn__icon svg {
	display: block;
	width: 22px;
	height: 18px;
}

/* Hamburger */
.gf-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--gf-black);
	border-radius: 4px;
	color: var(--gf-black);
	cursor: pointer;
}

.gf-header__toggle:hover,
.gf-header__toggle:focus {
	background: transparent;
	color: var(--gf-red);
}

.gf-header__toggle svg {
	display: block;
	width: 26px;
	height: 26px;
}

.gf-header__toggle-close {
	display: none;
}

@media (max-width: 1440px) {
	.gf-menu a {
		font-size: 16px;
	}

	.gf-btn {
		min-width: 0;
		padding: 12px 22px;
		min-height: 52px;
	}

	.gf-header__actions {
		gap: 14px;
	}
}

@media (max-width: 1199px) {
	:root {
		--gf-header-h: 80px;
	}

	.gf-header__inner {
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.gf-header__logo img,
	.gf-header__logo .custom-logo {
		max-height: 60px;
	}

	.gf-header__toggle {
		display: inline-flex;
	}

	.gf-header.is-open .gf-header__toggle-open {
		display: none;
	}

	.gf-header.is-open .gf-header__toggle-close {
		display: block;
	}

	.gf-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		max-height: calc(100vh - var(--gf-header-h));
		padding: 10px var(--gf-site-pad-r) 30px var(--gf-site-pad-l);
		overflow-y: auto;
		background: var(--gf-white);
		border-top: 1px solid #e5e5e5;
		box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: all .25s ease;
	}

	.gf-header.is-open .gf-header__panel {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.gf-header__nav {
		display: block;
	}

	.gf-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.gf-menu li {
		position: relative;
		border-bottom: 1px solid #eee;
	}

	.gf-menu > li > a,
	.gf-menu a {
		padding: 14px 50px 14px 0;
		font-size: 17px;
	}

	.gf-menu .sub-menu,
	.gf-menu .sub-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 0 15px;
		border-top: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.gf-menu .sub-menu li:last-child {
		border-bottom: 0;
	}

	.gf-menu li.is-open > .sub-menu {
		display: block;
	}

	.gf-submenu-toggle {
		display: block;
		position: absolute;
		top: 4px;
		right: 0;
		width: 44px;
		height: 44px;
		padding: 0;
		background: transparent;
		border: 0;
		cursor: pointer;
	}

	.gf-submenu-toggle::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 9px;
		height: 9px;
		border-right: 2px solid var(--gf-text);
		border-bottom: 2px solid var(--gf-text);
		transform: translate(-50%, -70%) rotate(45deg);
		transition: transform .2s ease;
	}

	.gf-submenu-toggle:hover,
	.gf-submenu-toggle:focus {
		background: transparent;
	}

	.is-open > .gf-submenu-toggle::before {
		transform: translate(-50%, -30%) rotate(-135deg);
	}

	.gf-header__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.gf-btn {
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
   Footer — values from Figma node 166:19570 (1920 × 1121)
   -------------------------------------------------------------------------- */
.gf-footer {
	position: relative;
	isolation: isolate;
	padding: 61px 0 26px;
	overflow: hidden;
	background-color: #2b2668;
	color: var(--gf-white);
}

/* Star-wave photo, luminosity blend at 30% */
.gf-footer::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: 104.58%;
	height: 100.71%;
	background-image: var(--gf-footer-bg, none);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	opacity: .3;
	mix-blend-mode: luminosity;
	transform: translate(-50%, calc(-50% - 4px));
	pointer-events: none;
}

.gf-footer a {
	color: var(--gf-white);
	text-decoration: none;
	transition: opacity .2s ease;
}

.gf-footer a:hover,
.gf-footer a:focus {
	color: var(--gf-white);
	opacity: .75;
}

.gf-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gf-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 839fr) minmax(0, 926fr);
	gap: 50px 55px; /* Figma: 55px between the card and the menus */
	align-items: start;
	max-width: calc(var(--gf-site-width) + var(--gf-site-pad-l) + var(--gf-site-pad-r));
	margin: 0 auto;
	padding: 0 var(--gf-site-pad-r) 0 var(--gf-site-pad-l);
}

/* ---------- Left card ---------- */
.gf-footer__card {
	position: relative;
	isolation: isolate;
	padding-bottom: 16px;
	overflow: hidden;
	background-color: rgba(142, 142, 142, .2);
	border: 1px solid #e3e3e3;
	border-radius: 16px;
	container-type: inline-size;
	/* Hide the star-wave background behind the card so it reads as a flat colour */
	-webkit-backdrop-filter: blur(60px);
	backdrop-filter: blur(60px);
}

/* Decorative layer (glow + two rotated seal graphics) — sits above content like the design */
.gf-footer__fx {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.gf-footer__glow {
	position: absolute;
	top: -76.88cqw;
	left: 15.73cqw;
	width: 156.6cqw;
	max-width: none;
	height: auto;
}

.gf-footer__seal {
	position: absolute;
	overflow: hidden;
}

.gf-footer__seal img {
	position: absolute;
	top: 0;
	left: -16.67%;
	width: 133.33%;
	max-width: none;
	height: 100%;
}

.gf-footer__seal--big {
	bottom: -58.49cqw;
	left: 81.67cqw;
	width: 64.81cqw;
	height: 86.42cqw;
	transform: rotate(-30.61deg);
}

.gf-footer__seal--small {
	bottom: -21.97cqw;
	left: -21.43cqw;
	width: 28.65cqw;
	height: 38.2cqw;
	transform: rotate(39.19deg);
}

.gf-footer__card-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 17px 33px 0;
}

.gf-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gf-footer__logo img {
	display: block;
	width: 218px;
	max-width: 100%;
	height: auto;
}

.gf-footer__about,
.gf-footer__text {
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 22px;
	color: var(--gf-white);
}

.gf-footer__about {
	max-width: 772px;
}

.gf-footer__caps {
	font-family: var(--gf-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 19.79px;
	letter-spacing: .32px;
	text-transform: uppercase;
	color: var(--gf-white);
}

.gf-footer__block {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gf-footer__block-body {
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.gf-footer__title {
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: 24px;
	font-weight: 700;
	line-height: 22px;
	color: var(--gf-white);
}

.gf-footer__info {
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.gf-footer__info--locations {
	gap: 14px;
}

.gf-footer__info-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gf-footer__info-item--phone,
.gf-footer__info-item--clock {
	gap: 15px;
}

.gf-footer__icon {
	display: block;
	flex-shrink: 0;
}

.gf-footer__social {
	margin-top: 21px; /* 32 (stack gap) + 21 = 53 like the design */
	padding-left: 2px;
}

.gf-footer__social-title {
	margin: 0 0 18px;
	font-family: var(--gf-font-body);
	font-size: 16px;
	line-height: 22px;
	color: var(--gf-white);
}

.gf-footer__social-list {
	display: flex;
	align-items: center;
	gap: 20.17px;
}

.gf-footer__social-list a,
.gf-footer__social-list img {
	display: block;
}

.gf-footer__banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 65px;
	margin-top: 51px;
	padding: 10px 33px 10px 79px;
	background-color: #e02828;
}

.gf-footer__banner p {
	max-width: 567px;
	margin: 0;
	font-family: var(--gf-font-body);
	font-size: 15px;
	line-height: 22px;
	color: var(--gf-white);
}

/* ---------- Right: menu sections ---------- */
.gf-footer__menus {
	--gf-ftr-col-gap: clamp(24px, 8.33vw, 160px);
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-top: 5px;
}

.gf-footer__heading {
	margin: 0 0 24px;
	font-family: var(--gf-font-alt);
	font-size: 18px;
	font-weight: 700;
	line-height: 22px;
	text-transform: uppercase;
	color: var(--gf-white);
}

.gf-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 157px));
	gap: 0 var(--gf-ftr-col-gap);
	align-items: start;
}

.gf-footer__section--services .gf-footer__cols {
	grid-template-columns: minmax(0, 177px) minmax(0, 157px) minmax(0, 187px);
}

.gf-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.gf-footer__menu li {
	width: max-content;
	max-width: 100%;
	font-family: var(--gf-font-alt);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
}

/* Services column 1 text boxes are 200px in the design; other sections never wrap */
.gf-footer__section--services .gf-footer__col:first-child .gf-footer__menu li {
	max-width: 200px;
}

.gf-footer__section:not(.gf-footer__section--services) .gf-footer__menu li {
	max-width: none;
	white-space: nowrap;
}

.gf-footer__divider {
	display: block;
	width: 100%;
	height: 2px;
	margin-top: 40px;
}

/* ---------- Bottom bar ---------- */
.gf-footer__bottom {
	max-width: var(--gf-site-width);
	margin: 75px max(var(--gf-site-pad-r), (100% - var(--gf-site-width)) / 2) 0 max(var(--gf-site-pad-l), (100% - var(--gf-site-width)) / 2);
	padding: 39px 20px;
	background-color: #050135;
	border-radius: 26px;
	text-align: center;
}

.gf-footer__bottom p {
	margin: 0;
	font-family: var(--gf-font-alt);
	font-size: 15px;
	font-weight: 400;
	line-height: 22px;
	color: var(--gf-white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.gf-footer__inner {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.gf-footer__menus {
		margin-top: 0;
	}
}

@media (max-width: 767px) {
	.gf-footer {
		padding: 40px 0 20px;
	}

	.gf-footer__card-body {
		gap: 26px;
		padding: 20px 20px 0;
	}

	.gf-footer__title {
		font-size: 22px;
	}

	.gf-footer__about,
	.gf-footer__text,
	.gf-footer__banner p {
		font-size: 14px;
	}

	.gf-footer__caps {
		font-size: 15px;
	}

	.gf-footer__social {
		margin-top: 10px;
	}

	.gf-footer__banner {
		margin-top: 36px;
		padding: 12px 20px;
	}

	.gf-footer__cols,
	.gf-footer__section--services .gf-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 16px;
	}

	.gf-footer__menu li,
	.gf-footer__section:not(.gf-footer__section--services) .gf-footer__menu li,
	.gf-footer__section--services .gf-footer__col:first-child .gf-footer__menu li {
		width: auto;
		max-width: 100%;
		font-size: 15px;
		white-space: normal;
	}

	.gf-footer__col:empty {
		display: none;
	}

	.gf-footer__divider {
		margin-top: 28px;
	}

	.gf-footer__bottom {
		margin-top: 40px;
		padding: 20px 16px;
		border-radius: 16px;
	}

	.gf-footer__bottom p {
		font-size: 14px;
	}
}
