/* Zarar Footer Engine — frontend styles. Made by Zarar Ali Sher. */

#zfe-root {
	--zfe-max: 1400px;
	--zfe-gap: 40px;
	--zfe-pad-top: 70px;
	--zfe-pad-bottom: 60px;
	--zfe-heading-size: 26px;
	--zfe-text-size: 16px;
	--zfe-bg: #000;
	--zfe-heading: #fff;
	--zfe-text: #cfcfcf;
	--zfe-link: #e6e6e6;
	--zfe-link-hover: #fff;
	--zfe-accent: #fff;
	--zfe-social-bg: #1877f2;
	--zfe-cta-bg: #000;
	--zfe-cta-color: #fff;
	--zfe-cta-btn-bg: #fff;
	--zfe-cta-btn-color: #000;
	--zfe-cta-btn-hover: #e6e6e6;
	--zfe-bottom-bg: #d3d3d3;
	--zfe-bottom-color: #333;
}

#zfe-root .zfe-footer {
	background: var(--zfe-bg);
	color: var(--zfe-text);
	font-size: var(--zfe-text-size);
	line-height: 1.7;
}

#zfe-root .zfe-inner {
	max-width: var(--zfe-max);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
	width: 100%;
	box-sizing: border-box;
}

/* ---- CTA band (full-width image strip with overlay) ---- */
#zfe-root .zfe-cta-band {
	position: relative;
	background: var(--zfe-cta-bg);
	color: var(--zfe-cta-color);
	overflow: hidden;
	isolation: isolate;
}

/* Full-width photo across the whole strip. */
#zfe-root .zfe-cta-photo {
	position: absolute;
	inset: 0;
	background-image: var(--zfe-cta-image);
	background-size: cover;
	background-position: center;
	z-index: 0;
}

/* Readability overlay: darker on the right so heading + button stay crisp. */
#zfe-root .zfe-cta-band .zfe-cta-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, .55) 0%,
		rgba(0, 0, 0, .60) 45%,
		rgba(0, 0, 0, .78) 100%
	);
}

/* When no image is set, keep the solid band colour. */
#zfe-root .zfe-cta-band:not(.has-photo) {
	background: var(--zfe-cta-bg);
}

#zfe-root .zfe-cta-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding-top: 44px;
	padding-bottom: 44px;
	min-height: 128px;
}

#zfe-root .zfe-cta-heading {
	margin: 0;
	color: var(--zfe-cta-color);
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	max-width: 640px;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

#zfe-root .zfe-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 28px;
	background: var(--zfe-cta-btn-bg);
	color: var(--zfe-cta-btn-color);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 6px;
	white-space: nowrap;
	transition: background .18s ease, transform .18s ease;
}

#zfe-root .zfe-cta-btn:hover,
#zfe-root .zfe-cta-btn:focus-visible {
	background: var(--zfe-cta-btn-hover);
	transform: translateY(-2px);
}

#zfe-root .zfe-cta-btn svg {
	width: 20px;
	height: 14px;
}

/* ---- Main columns ---- */
#zfe-root .zfe-main {
	padding-top: var(--zfe-pad-top);
	padding-bottom: var(--zfe-pad-bottom);
}

#zfe-root .zfe-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr;
	gap: var(--zfe-gap);
	align-items: start;
}

#zfe-root .zfe-heading {
	margin: 0 0 22px;
	color: var(--zfe-heading);
	font-size: var(--zfe-heading-size);
	font-weight: 700;
	line-height: 1.25;
}

#zfe-root .zfe-brand-text {
	margin: 0 0 24px;
	color: var(--zfe-text);
}

/* Socials */
#zfe-root .zfe-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

#zfe-root .zfe-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: var(--zfe-social-bg);
	color: #fff;
	transition: transform .18s ease, opacity .18s ease;
}

#zfe-root .zfe-social:hover,
#zfe-root .zfe-social:focus-visible {
	transform: translateY(-3px);
	opacity: .9;
}

#zfe-root .zfe-social svg {
	width: 20px;
	height: 20px;
}

/* Per-network brand tints (fallback to social_bg variable when overridden inline is not set) */
#zfe-root .zfe-social-facebook { background: #1877f2; }
#zfe-root .zfe-social-linkedin { background: #0a66c2; }
#zfe-root .zfe-social-instagram { background: #333; }
#zfe-root .zfe-social-twitter { background: #111; }
#zfe-root .zfe-social-youtube { background: #ff0000; }

/* Useful Links menu */
#zfe-root .zfe-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

#zfe-root .zfe-menu li {
	margin: 0 0 14px;
}

#zfe-root .zfe-menu li:last-child {
	margin-bottom: 0;
}

#zfe-root .zfe-menu li a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--zfe-link);
	text-decoration: none;
	transition: color .18s ease, transform .18s ease;
}

#zfe-root .zfe-menu li a::before {
	content: "\00BB\00BB";
	letter-spacing: -3px;
	color: var(--zfe-accent);
	font-size: 1.05em;
	line-height: 1;
	flex: none;
}

#zfe-root .zfe-menu li a:hover,
#zfe-root .zfe-menu li a:focus-visible {
	color: var(--zfe-link-hover);
	transform: translateX(3px);
}

/* Office lists */
#zfe-root .zfe-office-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#zfe-root .zfe-office-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 18px;
	color: var(--zfe-text);
}

#zfe-root .zfe-office-list li:last-child {
	margin-bottom: 0;
}

#zfe-root .zfe-office-list li a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--zfe-link);
	text-decoration: none;
	transition: color .18s ease;
}

#zfe-root .zfe-office-list li a:hover,
#zfe-root .zfe-office-list li a:focus-visible {
	color: var(--zfe-link-hover);
}

#zfe-root .zfe-office-list svg {
	width: 20px;
	height: 20px;
	flex: none;
	margin-top: 2px;
	color: var(--zfe-accent);
}

/* Keep icon paths on the accent colour, overriding any theme SVG rules.
   Filled icons (phone) use fill=currentColor; stroked icons (email, pin)
   use stroke=currentColor. fill="none" paths are left transparent. */
#zfe-root .zfe-office-list svg path[fill="currentColor"] { fill: currentColor; }
#zfe-root .zfe-office-list svg path[stroke="currentColor"] { stroke: currentColor; }

/* Map column */
#zfe-root .zfe-map {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
}

/* Fallback height for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1) {
	#zfe-root .zfe-map { height: 190px; }
}

#zfe-root .zfe-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	filter: grayscale(.15);
}

/* Empty-menu notice */
#zfe-root .zfe-menu-empty {
	display: inline-block;
	padding: 8px 12px;
	border: 1px dashed rgba(255, 255, 255, .35);
	border-radius: 6px;
	color: var(--zfe-link);
	text-decoration: none;
	font-size: 13px;
}

/* ---- Bottom bar ---- */
#zfe-root .zfe-bottom {
	background: var(--zfe-bottom-bg);
	color: var(--zfe-bottom-color);
}

#zfe-root .zfe-bottom-inner {
	padding-top: 18px;
	padding-bottom: 18px;
}

#zfe-root .zfe-copy {
	margin: 0;
	font-size: 15px;
	color: var(--zfe-bottom-color);
}

/* ---- Back to top ---- */
#zfe-root .zfe-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 2px solid #111;
	border-radius: 50%;
	background: #fff;
	color: #111;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

#zfe-root .zfe-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#zfe-root .zfe-top svg {
	width: 20px;
	height: 20px;
}

/* Skip the theme's default footer visually if markup removal is off.
   Covers Hello Elementor (#site-footer) and Astra (#colophon). */
body.zfe-active .site-footer#site-footer,
body.zfe-active footer.site-footer#colophon,
body.zfe-active #colophon.site-footer { display: none; }

/* ---- Footer logo (above brand title) ---- */
#zfe-root .zfe-brand-logo img {
	max-width: 100%;
	height: auto;
}

/* ---- Locations column (scrollable) ---- */
#zfe-root .zfe-locations-scroll {
	overflow-y: auto;
	padding-right: 6px;
	border-radius: 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .35) transparent;
}

#zfe-root .zfe-locations-scroll:focus-visible {
	outline: 2px solid var(--zfe-accent);
	outline-offset: 3px;
}

#zfe-root .zfe-locations-scroll::-webkit-scrollbar {
	width: 8px;
}

#zfe-root .zfe-locations-scroll::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, .06);
	border-radius: 8px;
}

#zfe-root .zfe-locations-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, .28);
	border-radius: 8px;
}

#zfe-root .zfe-locations-scroll::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, .45);
}

#zfe-root .zfe-locations-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#zfe-root .zfe-locations-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 16px;
	color: var(--zfe-text);
}

#zfe-root .zfe-locations-list li:last-child {
	margin-bottom: 0;
}

#zfe-root .zfe-locations-list li a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--zfe-link);
	text-decoration: none;
	transition: color .18s ease;
}

#zfe-root .zfe-locations-list li a:hover,
#zfe-root .zfe-locations-list li a:focus-visible {
	color: var(--zfe-link-hover);
}

#zfe-root .zfe-locations-list svg {
	width: 20px;
	height: 20px;
	flex: none;
	margin-top: 2px;
	color: var(--zfe-accent);
}

/* ============================================================
   Sticky Bar (mobile) + Popup (desktop) — Bar & Popup module
   ============================================================ */

/* ---- Mobile sticky bar ---- */
#zfe-root .zfe-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	display: none;
	width: 100%;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, .12);
}

#zfe-root .zfe-bar-btn {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

#zfe-root .zfe-bar-btn:hover,
#zfe-root .zfe-bar-btn:focus {
	filter: brightness(.95);
	text-decoration: none;
}

/* ---- Desktop popup ---- */
#zfe-root .zfe-popup {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: flex;
	pointer-events: none;
}

/* Fully remove the popup from layout + hit-testing when hidden or closed.
   The bare [hidden] attribute is otherwise overridden by display:flex above,
   which left an invisible layer catching clicks after the popup was closed. */
#zfe-root .zfe-popup[hidden],
#zfe-root .zfe-popup.is-closed {
	display: none !important;
	pointer-events: none !important;
}

#zfe-root .zfe-popup.has-overlay {
	background: rgba(15, 23, 42, 0);
	transition: background .25s ease;
}

#zfe-root .zfe-popup.has-overlay.is-open {
	background: rgba(15, 23, 42, .5);
	pointer-events: auto;
}

/* Position variants */
#zfe-root .zfe-popup-center {
	align-items: center;
	justify-content: center;
	padding: 20px;
}

#zfe-root .zfe-popup-bottom-right {
	align-items: flex-end;
	justify-content: flex-end;
	padding: 24px;
}

#zfe-root .zfe-popup-bottom-left {
	align-items: flex-end;
	justify-content: flex-start;
	padding: 24px;
}

#zfe-root .zfe-popup-box {
	position: relative;
	pointer-events: auto;
	width: min(var(--zfe-popup-w, 420px), calc(100vw - 40px));
	background: #ffffff;
	color: #1f2937;
	border-radius: 12px;
	padding: 26px 26px 24px;
	box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
	opacity: 0;
	transform: translateY(14px) scale(.98);
	transition: opacity .25s ease, transform .25s ease;
}

#zfe-root .zfe-popup.is-open .zfe-popup-box {
	opacity: 1;
	transform: translateY(0) scale(1);
}

#zfe-root .zfe-popup-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	color: #6b7280;
	background: transparent;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

#zfe-root .zfe-popup-close:hover {
	color: #111827;
	background: #f3f4f6;
}

#zfe-root .zfe-popup-heading {
	margin: 0 0 8px;
	padding-right: 26px;
	font-size: 22px;
	font-weight: 700;
	color: #111827;
}

#zfe-root .zfe-popup-text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
	color: #4b5563;
}

#zfe-root .zfe-popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

#zfe-root .zfe-popup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border: 0;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
}

#zfe-root .zfe-popup-btn:hover,
#zfe-root .zfe-popup-btn:focus {
	filter: brightness(.95);
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	#zfe-root .zfe-popup-box,
	#zfe-root .zfe-popup.has-overlay {
		transition: none;
	}
}
