/**
 * FEG TechNova design system â€” component styles.
 * Tokens live in theme.json; this file covers layout and components
 * that core block styles do not provide. Original design per
 * requirements.md section 10.
 */

/* ---------- Base ---------- */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible,
:where(select):focus-visible,
:where(textarea):focus-visible,
:where([tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Skip link (rendered in the header part) */
.fegn-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--wp--preset--color--brand);
	color: #fff;
	padding: 0.75rem 1.25rem;
	z-index: 1000;
	border-radius: 0 0 8px 0;
}
.fegn-skip-link:focus {
	left: 0;
}

/* ---------- Header ---------- */

.fegn-site-header {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	border-bottom: 1px solid var(--wp--preset--color--border-color);
}
body { padding-top: 86px; }
html[data-theme="dark"] body { padding-top: 86px; }
@media (max-width: 781px) {
	body { padding-top: 70px; }
	html[data-theme="dark"] body { padding-top: 70px; }
}
/* Wrapper no longer needs sticky when header is fixed */
.wp-block-template-part:has(> .fegn-site-header) {
	position: static !important;
	display: contents;
}
.fegn-site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -20px;
	height: 20px;
	background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
	pointer-events: none;
}
html[data-theme="dark"] .fegn-site-header::after {
	background: linear-gradient(to bottom, rgba(11,18,32,0.15), transparent);
}

/* The menu pins while scrolling by sticking the header's template-part
   wrapper, not the header itself: a sticky element cannot travel outside
   its parent's box, and that wrapper is exactly header-height (so a
   sticky header alone scrolls away with it). The wrapper is a direct
   child of the tall .wp-site-blocks, giving the stick room to work. */
.wp-block-template-part:has(> .fegn-site-header) {
	position: sticky;
	top: 0;
	z-index: 1000;
}

.fegn-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-block: 0.75rem;
}

.fegn-brand {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.fegn-brand-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	margin: 0;
	white-space: nowrap;
}

.fegn-brand-name a {
	color: inherit;
	text-decoration: none;
}

/* Real custom logo (renders only when set in Site Identity) */
.fegn-brand .fegn-logo,
.fegn-brand .wp-block-site-logo {
	flex-shrink: 0;
	margin: 0;
}

.fegn-brand .wp-block-site-logo img,
.fegn-brand img {
	width: auto;
	height: 72px;
	max-width: 200px;
	object-fit: contain;
	border-radius: 4px;
	display: block;
}

/* Full lockup logo already contains the wordmark — hide the duplicate
   site-title text when a real logo is present (kept in DOM for SEO). */

/* SVG monogram fallback — auto-hidden once a real logo exists */
.fegn-logo-fallback {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.fegn-brand:has(.wp-block-site-logo) .fegn-logo-fallback {
	display: none;
}

.fegn-brand:has(.wp-block-site-logo) .fegn-brand-name {
	display: none;
}

@media (max-width: 781px) {
	.fegn-brand .wp-block-site-logo img,
	.fegn-brand img {
		height: 58px;
		width: auto;
		max-width: 160px;
	}
}

/* Primary navigation bar - right-aligned with tight, even spacing */
.fegn-primary-nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.fegn-nav-list {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem;
	width: auto;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
}

.fegn-nav-list > li {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Top-level links share identical metrics for perfect alignment */
.fegn-nav-link,
.fegn-mega-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.65rem 0.8rem;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.2;
	font-weight: 500;
	color: var(--wp--preset--color--body-text);
	text-decoration: none;
	white-space: nowrap;
	border: 0;
	border-radius: 8px;
	background: none;
	cursor: pointer;
	transition: color 180ms cubic-bezier(0.33, 1, 0.68, 1),
		background-color 180ms cubic-bezier(0.33, 1, 0.68, 1);
}

/* Smooth accent line that grows from the center on hover/focus */
.fegn-nav-link::after,
.fegn-mega-head::after {
	content: "";
	position: absolute;
	left: 0.8rem;
	right: 0.8rem;
	bottom: 0.35rem;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--brand);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
}

.fegn-nav-link:hover,
.fegn-nav-link:focus-visible,
.fegn-mega-head:hover .fegn-mega-link,
.fegn-mega-head:focus-within .fegn-mega-link,
.fegn-mega.is-open .fegn-mega-link,
.fegn-mega.is-open .fegn-mega-trigger {
	color: var(--wp--preset--color--ink);
}

.fegn-nav-link:hover::after,
.fegn-nav-link:focus-visible::after,
.fegn-mega:hover .fegn-mega-head::after,
.fegn-mega-head:hover::after,
.fegn-mega-head:focus-within::after,
.fegn-mega.is-open .fegn-mega-head::after {
	transform: scaleX(1);
}

.fegn-nav-link.current-menu-item,
.fegn-mega-link[aria-current='page'] {
	color: var(--wp--preset--color--brand);
	font-weight: 600;
}
.fegn-nav-link.current-menu-item::after {
	transform: scaleX(1);
}

/* Hamburger toggle â€” hidden on desktop */
.fegn-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border-color);
	border-radius: 10px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease;
}
.fegn-nav-toggle:hover {
	background: var(--wp--preset--color--light-blue);
}
.fegn-nav-toggle-box {
	position: relative;
	display: block;
	width: 20px;
	height: 14px;
}
.fegn-nav-toggle-bar,
.fegn-nav-toggle-box::before,
.fegn-nav-toggle-box::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 160ms ease;
}
.fegn-nav-toggle-box::before { top: 0; }
.fegn-nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.fegn-nav-toggle-box::after { bottom: 0; }

.fegn-nav-toggle[aria-expanded='true'] .fegn-nav-toggle-box::before {
	transform: translateY(6px) rotate(45deg);
}
.fegn-nav-toggle[aria-expanded='true'] .fegn-nav-toggle-bar {
	opacity: 0;
}
.fegn-nav-toggle[aria-expanded='true'] .fegn-nav-toggle-box::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer call-to-action (conversion path preserved on small screens) */
.fegn-drawer-cta {
	display: none;
}

/* Mobile navigation overlay */
.fegn-primary-nav .is-menu-open {
	background: var(--wp--preset--color--surface);
}

/* ---------- Services mega menu (desktop) ---------- */

.fegn-mega {
	position: relative;
}

.fegn-mega-head {
	position: relative;
	display: inline-flex;
	align-items: center;
	border-radius: 8px;
	transition: background-color 180ms cubic-bezier(0.33, 1, 0.68, 1);
}

.fegn-mega-head:hover,
.fegn-mega-head:focus-within {
	background: var(--wp--preset--color--light-blue);
}

.fegn-mega-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.65rem 0.3rem 0.65rem 0.8rem;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.2;
	font-weight: 500;
	color: var(--wp--preset--color--body-text);
	text-decoration: none;
	white-space: nowrap;
	border-radius: 8px 0 0 8px;
}

.fegn-mega-head:hover .fegn-mega-link,
.fegn-mega-head:focus-within .fegn-mega-link {
	color: var(--wp--preset--color--ink);
}

.fegn-mega-trigger {
	border: 0;
	background: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 34px;
	padding: 0.65rem 0.7rem 0.65rem 0.3rem;
	border-radius: 0 8px 8px 0;
	color: var(--wp--preset--color--body-text);
}
.fegn-mega-trigger:hover,
.fegn-mega-trigger[aria-expanded='true'] {
	background: var(--wp--preset--color--light-blue);
	color: var(--wp--preset--color--ink);
}

.fegn-mega .fegn-chevron {
	flex-shrink: 0;
	display: block;
	transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fegn-mega.is-open .fegn-chevron,
.fegn-mega:hover .fegn-chevron {
	transform: rotate(180deg);
}

/* Floating glass card anchored under its own trigger. The panel itself is
   transparent with a padding-top hover bridge so the mouse can travel from
   the trigger into the card without crossing a dead gap (which used to fire
   mouseleave and snap the menu shut). The visible card lives on the inner
   .fegn-mega-cols element. Visibility (not display) toggles so the
   cubic-bezier open/close transition can play while closed panels stay out
   of the tab order and hit-testing. */
.fegn-mega-panel {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	width: max-content;
	max-width: min(650px, 92vw);
	padding-top: 12px;
	background: transparent;
	border: 0;
	transition:
		opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s linear 260ms;
}

/* Edge triggers: keep the card inside the viewport instead of centering it
   past the screen edge (About sits left, Marketing sits right). */
.fegn-nav-list > li:nth-child(2) .fegn-mega-panel {
	left: 0;
	transform: none;
}
.fegn-nav-list > li:nth-child(5) .fegn-mega-panel {
	left: auto;
	right: 0;
	transform: none;
}
.fegn-mega.is-open .fegn-mega-panel {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transition:
		opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s;
}

.fegn-mega-cols {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	padding: 1.25rem 1.5rem;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(12px) saturate(130%);
	-webkit-backdrop-filter: blur(12px) saturate(130%);
	border: 1px solid rgba(217, 225, 236, 0.8);
	border-radius: 16px;
	box-shadow:
		0 24px 48px rgba(8, 26, 51, 0.12),
		0 6px 16px rgba(8, 26, 51, 0.06);
}

/* Single-column dropdown variant (Website / Products / Marketing) â€” a
   tight card pinned to the start of the full-width panel. */
.fegn-mega-cols--simple {
	grid-template-columns: 1fr;
	gap: 0;
	max-width: 320px;
	padding: 1rem 1.25rem 1.25rem;
}

/* Column headings carry the primary brand color for visual hierarchy */
.fegn-mega-col-title {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--brand-dark);
}

/* Column 1 â€” accent card treatment with a subtle brand border */
.fegn-mega-col--accent {
	align-self: start;
	background: linear-gradient(180deg, #EAF2FF 0%, #F6F8FB 100%);
	border: 1px solid rgba(24, 99, 220, 0.22);
	border-left: 3px solid var(--wp--preset--color--brand);
	border-radius: 14px;
	padding: 1.25rem 1.25rem 0.75rem;
	margin: -0.25rem;
}
.fegn-mega-col--accent .fegn-mega-list a:focus-visible {
	outline-color: var(--wp--preset--color--brand);
}

/* Sub-links: muted bullet marker that sharpens on hover/focus, soft
   highlight box, 4px translate, and color shift to the dark brand tone */
.fegn-mega-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fegn-mega-list a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0.625rem 0.75rem 0.625rem 1.55rem;
	border-radius: 10px;
	color: var(--wp--preset--color--body-text);
	text-decoration: none;
	font-weight: 500;
	line-height: 1.35;
	transition:
		color 180ms cubic-bezier(0.33, 1, 0.68, 1),
		background-color 180ms cubic-bezier(0.33, 1, 0.68, 1),
		transform 180ms cubic-bezier(0.33, 1, 0.68, 1);
}
.fegn-mega-list a::before {
	content: "";
	position: absolute;
	left: 0.65rem;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: var(--wp--preset--color--brand);
	opacity: 0.3;
	transform: translateY(-50%) scale(0.9);
	transition: opacity 180ms ease, transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fegn-mega-list a:hover,
.fegn-mega-list a:focus-visible {
	color: var(--wp--preset--color--brand-dark);
	background: var(--wp--preset--color--light-blue);
	transform: translateX(4px);
}
.fegn-mega-list a:hover::before,
.fegn-mega-list a:focus-visible::before {
	opacity: 1;
	transform: translateY(-50%) scale(1.15);
}

/* "All Services" â€” distinct emphasis plus animated arrow on hover */
.fegn-mega-all {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	margin-top: 0.5rem;
	padding: 0.625rem 0.875rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	color: #FFFFFF;
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(24, 99, 220, 0.28);
	transition:
		background-color 180ms cubic-bezier(0.33, 1, 0.68, 1),
		box-shadow 180ms cubic-bezier(0.33, 1, 0.68, 1),
		transform 180ms cubic-bezier(0.33, 1, 0.68, 1);
}
.fegn-mega-all .fegn-arrow {
	display: inline-block;
	transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fegn-mega-all:hover,
.fegn-mega-all:focus-visible {
	background: var(--wp--preset--color--brand-dark);
	box-shadow: 0 6px 16px rgba(16, 74, 168, 0.32);
	transform: translateY(-1px);
	color: #FFFFFF;
}
.fegn-mega-all:hover .fegn-arrow,
.fegn-mega-all:focus-visible .fegn-arrow {
	transform: translateX(4px);
}

/* WCAG-compliant focus ring tuned for the panel surface */
.fegn-mega :is(a, button):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
	border-radius: 10px;
}

/* Mobile drawer (requirement 9.1: a visible conversion path + full nav).
   The same <nav> becomes an off-canvas panel toggled by .fegn-nav-toggle. */
@media (max-width: 781px) {
	.fegn-nav-toggle {
		display: inline-flex;
		position: relative;
		z-index: 1001;
	}

	.fegn-primary-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(86vw, 340px);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0.5rem;
		padding: 5.5rem 1.25rem 2rem;
		background: var(--wp--preset--color--surface);
		box-shadow: -18px 0 48px rgba(8, 26, 51, 0.22);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 280ms;
		z-index: 998;
		overflow-y: auto;
	}

	.fegn-primary-nav.is-open {
		transform: translateX(0);
		visibility: visible;
		transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
	}

	.fegn-nav-list {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0.25rem;
		width: 100%;
	}

	.fegn-nav-list > li {
		width: 100%;
	}

	.fegn-nav-link,
	.fegn-mega-head {
		width: 100%;
		min-height: 48px;
		padding: 0;
		font-size: 1.0625rem;
		border-radius: 10px;
	}

	.fegn-nav-link {
		justify-content: flex-start;
		padding: 0.75rem 0.5rem;
	}

	.fegn-mega-link {
		flex: 1 1 auto;
		min-height: 48px;
		display: inline-flex;
		align-items: center;
		justify-content: flex-start;
		padding: 0.75rem 0.25rem 0.75rem 0.5rem;
		font-size: 1.0625rem;
	}

	.fegn-mega-trigger {
		min-height: 48px;
		min-width: 48px;
		padding: 0.75rem;
		font-size: 1.0625rem;
	}

	/* Accent line does not suit the stacked drawer list */
	.fegn-nav-link::after,
	.fegn-mega-head::after {
		display: none;
	}

	/* Panels render inline within the drawer (not floating) */
	.fegn-mega {
		flex-direction: column;
		align-items: stretch;
	}

	.fegn-mega-panel {
		position: static;
		visibility: visible;
		opacity: 1;
		transform: none;
		pointer-events: auto;
		max-width: none;
		max-height: 0;
		padding-top: 0;
		overflow: hidden;
		transition: max-height 280ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.fegn-mega.is-open .fegn-mega-panel {
		max-height: 70vh;
	}

	.fegn-mega-cols,
	.fegn-mega-cols--simple {
		grid-template-columns: 1fr;
		max-width: none;
		margin: 0;
		padding: 0.25rem 0 0.5rem;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.fegn-mega-list a {
		min-height: 44px;
		padding-block: 0.5rem;
		font-size: 1rem;
	}

	/* Conversion path preserved inside the drawer */
	.fegn-drawer-cta {
		display: block;
		margin-top: 1rem;
		padding: 0.875rem 1.5rem;
		background: var(--wp--preset--color--brand);
		color: #FFFFFF;
		font-weight: 600;
		text-align: center;
		text-decoration: none;
		border-radius: 12px;
		min-height: 44px;
	}
	.fegn-drawer-cta:hover,
	.fegn-drawer-cta:focus-visible {
		background: var(--wp--preset--color--brand-dark);
		color: #FFFFFF;
	}
}

/* Scrim behind the open drawer */
.fegn-nav-scrim {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(8, 26, 51, 0.45);
	z-index: 997;
	opacity: 0;
	transition: opacity 240ms ease;
}
.fegn-nav-scrim.is-visible {
	display: block;
	opacity: 1;
}

/* ---------- Shared section + type helpers ---------- */

.fegn-eyebrow {
	color: var(--wp--preset--color--brand);
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}
.fegn-eyebrow--light {
	color: #7FB3F5;
}

.fegn-lead {
	color: var(--wp--preset--color--body-text);
	max-width: 60ch;
}
.fegn-lead--light {
	color: #C9D7EC;
}

.fegn-section-title {
	max-width: 24ch;
}
.fegn-section-title--light {
	color: #FFFFFF;
}

.fegn-muted-note {
	color: var(--wp--preset--color--muted);
}

.fegn-section-head {
	align-items: flex-end;
}

/* ---------- Hero ---------- */

.fegn-hero-grid {
	gap: var(--wp--preset--spacing--60);
}
.fegn-hero .wp-block-heading h1,
.fegn-hero h1 {
	color: var(--wp--preset--color--ink);
	max-width: 18ch;
}
.fegn-hero-actions {
	gap: 0.75rem;
}
.fegn-hero-actions .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--brand);
	border: 2px solid var(--wp--preset--color--brand);
}
.fegn-hero-actions .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--light-blue);
	color: var(--wp--preset--color--brand-dark);
	border-color: var(--wp--preset--color--brand-dark);
}

.fegn-hero-panel h2 {
	color: var(--wp--preset--color--ink);
	margin-bottom: 1rem;
}
.fegn-hero-list {
	margin: 0;
	padding-left: 1.1rem;
}
.fegn-hero-list li {
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--body-text);
}

/* ---------- Capability cards ---------- */

.fegn-section--capabilities {
	background: #ffffff !important;
}

/* Force WordPress columns to render as CSS grid for equal-height cards. */
.fegn-cards {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 24px !important;
	align-items: stretch;
}

.fegn-card {
	background: #ffffff !important;
	border: 1px solid var(--wp--preset--color--border-color) !important;
	box-shadow: 0 4px 20px rgba(18, 38, 63, 0.06) !important;
	border-radius: 16px !important;
	padding: 0 !important;
	transition: transform 200ms ease, box-shadow 200ms ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

@media (hover: hover) {
	.fegn-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 12px 32px rgba(8, 26, 51, 0.08);
	}
}

.fegn-card-image {
	margin: 0 !important;
	padding: 0;
	line-height: 0;
}

.fegn-card-image img {
	width: 100% !important;
	height: 190px !important;
	object-fit: cover !important;
	border-radius: 16px 16px 0 0 !important;
	display: block !important;
}

/* Card text body — flex child grows to push link to bottom. */
.fegn-card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 24px;
}

.fegn-card-body h3 {
	color: var(--wp--preset--color--ink);
	margin-bottom: 0.5rem;
}
.fegn-card-body p {
	color: var(--wp--preset--color--body-text);
}
.fegn-card-body .fegn-card-link {
	margin-top: auto;
	padding-top: 0.75rem;
}
.fegn-card-link a {
	color: var(--wp--preset--color--brand);
	font-weight: 600;
	text-decoration: none;
}
.fegn-card-link a:hover {
	color: var(--wp--preset--color--brand-dark);
	text-decoration: underline;
}

/* Stack cards on narrow screens. */
@media (max-width: 781px) {
	.fegn-cards {
		grid-template-columns: 1fr !important;
	}
}

/* ---------- Process steps (dark section) ---------- */

.fegn-steps {
	gap: 1.5rem;
}
.fegn-step {
	border-top: 3px solid var(--wp--preset--color--teal);
	padding-top: 1.25rem;
}
.fegn-step-number {
	/* 20px bold clears the WCAG "large text" threshold, so the white-on-teal
	   ratio (3.3:1) meets AA large-text contrast */
	font-size: 1.25rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--teal);
	color: #fff;
	font-weight: 700;
	margin-bottom: 0.75rem;
}
.fegn-step h3 {
	color: #FFFFFF;
	margin-bottom: 0.5rem;
}
.fegn-step p {
	color: #C9D7EC;
}

/* ---------- Page header / inner pages ---------- */

.fegn-page-header h1 {
	max-width: 22ch;
}
.fegn-post-meta {
	color: var(--wp--preset--color--muted);
	margin-top: 0.75rem;
}

/* ---------- Post list cards ---------- */

.fegn-post-card h2 {
	margin-bottom: 0.25rem;
}
.fegn-post-card h2 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.fegn-post-card h2 a:hover {
	color: var(--wp--preset--color--brand);
}

/* ---------- Homepage sections (approved hero is intentionally excluded) ---------- */
body.home :is(.fegn-home-capabilities, .fegn-home-process) {
 padding: clamp(3.5rem, 6vw, 5.5rem) max(1.25rem, var(--wp--preset--spacing--40)) !important;
 margin-block: 0;
}
body.home :is(.fegn-home-capabilities, .fegn-home-process) .fegn-eyebrow {
 font-size: .75rem;
 letter-spacing: .14em !important;
 margin: 0 0 1rem;
 color: #235bb1;
}
body.home :is(.fegn-home-capabilities, .fegn-home-process) .fegn-section-title {
 font-size: clamp(1.9rem, 3vw, 2.8rem) !important;
 line-height: 1.18 !important;
 letter-spacing: -.035em;
 max-width: 25ch;
 margin: 0;
 color: #10243e;
 text-wrap: balance;
}
body.home .fegn-home-process a:focus-visible {
 outline: 3px solid #2463d4;
 outline-offset: 5px;
 border-radius: 3px;
}
/* Core Capabilities: informational cards, scoped to the home section. */
body.home .fegn-home-capabilities { --fegn-cap-accent: #235bb1; padding-block: 40px !important; background: #f6f8fc !important; border-bottom: 1px solid #e0e7f0; }
body.home .fegn-home-capabilities .fegn-capabilities__header { text-align: left; margin-bottom: 2.5rem; }
body.home .fegn-home-capabilities .fegn-section-title { max-width: none; font-size: clamp(1.75rem, 2.5vw, 2.5rem) !important; text-wrap: initial; }
body.home .fegn-home-capabilities .fegn-capabilities__grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 28px; }
body.home .fegn-home-capabilities .fegn-capabilities__card {
 margin: 0; min-width: 0; border: 1px solid #dce5f0 !important; border-radius: 18px !important;
 background: linear-gradient(155deg, #fff 60%, #f5f8fd) !important; box-shadow: 0 6px 20px rgba(12,35,64,.065) !important; cursor: default;
 transition: transform .4s ease, opacity .6s ease, box-shadow .4s ease, border-color .4s ease;
}
body.home .fegn-home-capabilities .fegn-capabilities__image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e6ebf2; flex-shrink: 0; border-radius: 17px 17px 0 0; }
body.home .fegn-home-capabilities .fegn-capabilities__image::after {
 content: ""; position: absolute; inset: 0; pointer-events: none;
 background: linear-gradient(180deg, rgba(8,26,51,.02), rgba(8,26,51,.14));
}
body.home .fegn-home-capabilities .fegn-capabilities__image img { display: block; width: 100% !important; height: 100% !important; max-height: none !important; border-radius: 0 !important; object-fit: cover; object-position: center; transition: transform .45s ease; }
body.home .fegn-home-capabilities .fegn-capabilities__body { position: relative; padding: 26px; }
body.home .fegn-home-capabilities .fegn-capabilities__body::before {
 content: ""; position: absolute; top: 0; left: 26px; width: 36px; height: 2px;
 background: var(--fegn-cap-accent); pointer-events: none;
}
body.home .fegn-home-capabilities .fegn-capabilities__title { margin: 0 0 12px; font-size: clamp(1.25rem, 1.6vw, 1.375rem); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; color: #10243e; }
body.home .fegn-home-capabilities .fegn-capabilities__text { margin: 0; font-size: .9375rem; line-height: 1.6; color: #4b5d73; }
@media (hover: hover) and (pointer: fine) {
 body.home .fegn-home-capabilities .fegn-capabilities__card:hover {
  transform: translateY(-3px); border-color: #aac2e3 !important;
  box-shadow: 0 12px 28px rgba(12,35,64,.12) !important;
 }
 body.home .fegn-home-capabilities .fegn-capabilities__card:hover img { transform: scale(1.035); }
}
@media (min-width: 640px) { body.home .fegn-home-capabilities .fegn-capabilities__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
 body.home .fegn-home-capabilities .fegn-capabilities__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 body.home .fegn-home-capabilities .fegn-section-title { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
 body.home .fegn-home-capabilities .fegn-capabilities__card,
 body.home .fegn-home-capabilities .fegn-capabilities__image img { transition: none; }
 body.home .fegn-home-capabilities .fegn-capabilities__card:hover,
 body.home .fegn-home-capabilities .fegn-capabilities__card:hover img { transform: none; }
}
/* Four steps share a continuous rule on desktop, then reflow as a grid. */
body.home .fegn-home-process { padding-block: 40px !important; position: relative; isolation: isolate; background-color: #0c223b !important; background-image: linear-gradient(rgba(8, 20, 36, .87), rgba(8, 20, 36, .84)), url("../images/home-process-bg.webp") !important; background-size: cover !important; background-position: center 40% !important; background-repeat: no-repeat !important; color: #fff; }
body.home .fegn-home-process > * { position: relative; z-index: 1; }
body.home .fegn-home-process .fegn-eyebrow { color: #9ac5f7; }
body.home .fegn-home-process .fegn-section-title { color: #fff; max-width: none; white-space: nowrap; }
body.home .fegn-home-process > .alignwide:first-child { display: grid; grid-template-columns: max-content minmax(18rem, 1fr); column-gap: clamp(1.5rem, 3vw, 2.5rem); }
body.home .fegn-home-process > .alignwide:first-child > * { min-width: 0; max-width: none; margin-inline: 0 !important; }
body.home .fegn-home-process > .alignwide:first-child .fegn-eyebrow { grid-column: 1 / -1; }
body.home .fegn-home-process .fegn-lead { color: #c1d1e3; font-size: 1.0625rem; line-height: 1.75; margin: 0; align-self: end; }
body.home .fegn-home-process .fegn-steps { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 3rem !important; }
body.home .fegn-home-process .fegn-step { min-width: 0; border-top: 1px solid #3b526c; padding: 1.6rem 1.75rem 0 0; margin: 0; }
body.home .fegn-home-process .fegn-step:last-child { padding-right: 0; }
body.home .fegn-home-process .fegn-step-number {
 width: 2.5rem;
 height: 2.5rem;
 margin: 0 0 1.25rem;
 background: #183957;
 box-shadow: none;
 border: 1px solid #547797;
 color: #d7eaff;
 border-radius: 10px;
 font-size: 1rem;
}
body.home .fegn-home-process .fegn-step h3 { color: #fff; font-size: 1.2rem; letter-spacing: -.02em; margin: 0 0 .8rem; }
body.home .fegn-home-process .fegn-step p:not(.fegn-step-number) { color: #c1d1e3; font-size: .9375rem; line-height: 1.8; margin: 0; }
html[data-theme="dark"] body.home .fegn-home-capabilities { --fegn-cap-accent: #a8ceff; background: #101c2d !important; border-color: #2a3c53; }
html[data-theme="dark"] body.home .fegn-home-capabilities .fegn-card { background: #17283e !important; border-color: #33465f !important; }
html[data-theme="dark"] body.home .fegn-home-capabilities :is(.fegn-section-title, h3) { color: #f1f6fc; }
html[data-theme="dark"] body.home .fegn-home-capabilities .fegn-eyebrow { color: #a8ceff; }
html[data-theme="dark"] body.home .fegn-home-capabilities .fegn-capabilities__text { color: #c4d2e4; }
@media (max-width: 1024px) {
 body.home .fegn-home-process > .alignwide:first-child { column-gap: 2rem; }
 body.home .fegn-home-process .fegn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
 body.home .fegn-home-process .fegn-step { padding-right: 0; }
}
@media (max-width: 1023px) {
 body.home .fegn-home-process > .alignwide:first-child { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
 body.home .fegn-home-process .fegn-section-title { white-space: normal; }
}
@media (max-width: 781px) {
 body.home :is(.fegn-home-capabilities, .fegn-home-process) { padding-inline: 1.25rem !important; }
 body.home .fegn-home-process > .alignwide:first-child { grid-template-columns: 1fr; gap: 1rem; }
 body.home .fegn-home-process .fegn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
 body.home .fegn-home-process .fegn-steps { grid-template-columns: 1fr !important; gap: 1.75rem; }
 body.home .fegn-home-process .fegn-step { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; padding-top: 1.75rem; }
 body.home .fegn-home-process .fegn-step-number { grid-row: 1 / 3; margin-bottom: 0; }
 body.home .fegn-home-process .fegn-step h3 { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
 body.home :is(.fegn-home-capabilities, .fegn-home-process) .fegn-reveal { opacity: 1; transform: none; transition: none; }
 body.home .fegn-home-capabilities .fegn-card { transition: none; }
}

/* ---------- Shared footer: all styles stay within this component ---------- */
.fegn-site-footer {
 position: relative;
 background: #091b30 !important;
 color: #c1d0e1;
 padding: 0 max(1.25rem, var(--wp--preset--spacing--40));
 margin-top: 0;
}
.fegn-site-footer .fegn-footer-pre {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: clamp(3rem, 5vw, 4.5rem);
	padding-top: 30px !important;
	padding-bottom: 30px !important;
	margin-block: 0;
}
.fegn-site-footer .fegn-footer-pre h2 {
	color: #fff !important;
	max-width: none;
	margin: 0;
	font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
	line-height: 1.2;
	letter-spacing: -.035em;
	text-wrap: balance;
	white-space: nowrap;
}
.fegn-site-footer .fegn-footer-pre .wp-block-buttons { flex-shrink: 0; margin: 0; }
.fegn-site-footer .fegn-footer-pre .wp-block-button__link {
 background: #e7f0ff;
 border: 1px solid #e7f0ff;
 color: #12365f;
 font-weight: 700;
 padding: 1rem 1.5rem;
 border-radius: 10px;
 box-shadow: none;
 transform: none;
 text-decoration: none;
 transition: background-color 160ms ease;
}
.fegn-site-footer .fegn-footer-pre .wp-block-button__link:hover { background: #fff; color: #12365f; text-decoration: none; }
.fegn-site-footer > .wp-block-separator {
 width: 100%;
 max-width: var(--wp--style--global--wide-size);
 border: 0;
 border-top: 1px solid #304359;
 background: transparent !important;
 margin-block: 0;
 opacity: 1;
}
.fegn-site-footer .fegn-footer-cols {
 display: grid !important;
 grid-template-columns: 1.35fr 0.85fr 0.85fr 0.85fr 1.1fr !important;
 align-items: start !important;
 gap: 2rem 1.75rem;
 padding-top: 3rem !important;
 margin-block: 0;
}
.fegn-site-footer .fegn-footer-cols > .wp-block-column { min-width: 0; flex-basis: auto; }
.fegn-site-footer .fegn-footer-cols .fegn-footer-heading {
 font-size: .75rem;
 font-weight: 700;
 letter-spacing: .12em;
 text-transform: uppercase;
 color: #f2f7ff !important;
 margin: .2rem 0 1.15rem;
}
.fegn-site-footer .fegn-footer-brand .fegn-brand-name { margin: 0 0 1rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; color:#fff; }
.fegn-site-footer .fegn-footer-brand .fegn-brand-name a { color: #fff; }
.fegn-site-footer .fegn-footer-brand > .fegn-footer-motto { color: #e1edff; font-size: .9375rem; font-weight: 600; line-height: 1.7; margin: 0 0 .85rem; }
.fegn-site-footer .fegn-footer-heading a { color: inherit; }
.fegn-site-footer .fegn-footer-contact-list { display: flex; flex-direction: column; }

.fegn-site-footer .fegn-footer-contact-list { gap: 0; }
.fegn-site-footer .fegn-footer-contact .fegn-footer-contact-list > li { margin: 0; padding: 0; }
.fegn-site-footer .fegn-footer-contact .fegn-footer-contact-list > li:nth-child(-n+3) { margin-bottom: .3rem; }
.fegn-site-footer .fegn-footer-contact .fegn-footer-contact-list > :is(.fegn-footer-inquiries, .fegn-footer-powered) { margin-top: .75rem; }
@media (min-width: 1101px) {
 .fegn-site-footer .fegn-footer-contact { display: flex; flex-direction: column; align-self: stretch; }
 .fegn-site-footer .fegn-footer-contact .fegn-footer-contact-list { flex: 1; padding-bottom: .6rem; }
 .fegn-site-footer .fegn-footer-contact .fegn-footer-contact-list > :is(.fegn-footer-inquiries, .fegn-footer-powered) { margin-top: auto; }
}
.fegn-site-footer :is(.fegn-footer-inquiries, .fegn-footer-powered) strong { display: block; margin: 0; color: #f2f7ff; font-size: 1rem; font-weight: 700; letter-spacing: normal; text-transform: none; }
.fegn-site-footer .fegn-footer-inquiries span, .fegn-site-footer .fegn-footer-powered a { display: block; font-size: .875rem; line-height: 1.7; }
.fegn-site-footer .fegn-footer-contact-list a[href^="mailto:"] { text-decoration: none; }
.fegn-site-footer .fegn-footer-cols .has-text-color { color: #becde0 !important; }
.fegn-site-footer .fegn-footer-tagline { max-width: 30ch; line-height: 1.8; font-size: .9375rem; margin: 0 0 1.25rem; }
.fegn-site-footer .fegn-footer-brand > p:not(.fegn-footer-tagline, .fegn-brand-name) { font-size: .8125rem; line-height: 1.8; max-width: 32ch; }
.fegn-site-footer :is(.fegn-footer-service-list, .fegn-footer-contact-list) { list-style: none; margin: 0; padding: 0; }
.fegn-site-footer :is(.fegn-footer-service-list, .fegn-footer-contact-list) li { display: block; font-size: .875rem; line-height: 1.7; margin: 0 0 .6rem; color: #becde0; overflow-wrap: anywhere; }
.fegn-site-footer a { color: #becde0; text-decoration: none; text-underline-offset: .25em; }
.fegn-site-footer a:hover { color: #fff; text-decoration: underline; }
.fegn-site-footer a:focus-visible { outline: 2px solid #acd1ff; outline-offset: 5px; border-radius: 3px; color: #fff; }
.fegn-site-footer .fegn-social-row { display:flex; flex-wrap:nowrap; align-items:center; list-style:none; padding:0; margin:1.5rem 0 0; gap:.4rem; overflow:visible; }
.fegn-site-footer .fegn-social-row .wp-social-link { background: #142d47 !important; color: #d7e7fa !important; border: 1px solid #39516c; border-radius: 9px; transform: none; transition: background-color 160ms ease; flex-shrink:0; }
.fegn-site-footer .fegn-social-row .wp-social-link a { display: flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; width:34px; height:34px; padding: 0; background: transparent; border: 0; border-radius: 8px; box-shadow: none; transform: none; transition: none; }
.fegn-site-footer .fegn-social-row .wp-social-link a:is(:hover, :focus-visible) { background: transparent; border: 0; box-shadow: none; transform: none; }
.fegn-site-footer .fegn-social-row .wp-social-link:hover { background: #254767 !important; }
.fegn-site-footer .fegn-social-row svg { width: 16px; height: 16px; display: block; }
.fegn-site-footer .fegn-social-row .wp-social-link-linkedin svg { width: 17px; height: 17px; }
.fegn-site-footer .fegn-footer-bottom { border-top: 1px solid #304359; padding-block: 1.5rem 2rem; margin-top: 3rem; }
.fegn-site-footer .fegn-footer-bottom p.has-text-color { color: #aabed5 !important; font-size: .8125rem; margin: 0; }
@media (max-width: 1100px) {
 .fegn-site-footer .fegn-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 2.5rem 3rem; }
 .fegn-site-footer .fegn-footer-tagline { max-width: 38ch; }
}
@media (max-width: 600px) {
	.fegn-site-footer { padding-inline: 1.25rem; }
	.fegn-site-footer .fegn-footer-pre { align-items: flex-start; flex-direction: column; }
	.fegn-site-footer .fegn-footer-pre h2 { font-size: clamp(1.45rem, 3vw, 2rem) !important; }
 .fegn-site-footer .fegn-footer-cols { gap: 2.5rem 1.25rem; }
 .fegn-site-footer .fegn-footer-brand, .fegn-site-footer .fegn-footer-contact { grid-column: 1 / -1; }
 .fegn-site-footer .fegn-footer-bottom { margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
 .fegn-site-footer *, .fegn-site-footer *::before, .fegn-site-footer *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.fegn-header-inner {
		gap: 1.25rem;
	}
	.fegn-nav-list {
		gap: 0.15rem;
	}
	.fegn-nav-link,
	.fegn-mega-link {
		font-size: 0.9rem;
	}
	.fegn-nav-link {
		padding: 0.6rem 0.7rem;
	}
	.fegn-mega-link {
		padding: 0.6rem 0.25rem 0.6rem 0.7rem;
	}
	.fegn-mega-trigger {
		padding: 0.6rem 0.7rem 0.6rem 0.25rem;
	}
	.fegn-nav-link::after,
	.fegn-mega-head::after {
		left: 0.7rem;
		right: 0.7rem;
	}
	.fegn-mega-cols {
		gap: 1.25rem;
		padding: 1.5rem;
	}
	.fegn-mega-list a {
		padding-inline: 0.5rem;
		font-size: 0.9375rem;
	}
	.fegn-service-card {
		padding: 1.5rem;
	}
	.fegn-timeline-card {
		padding: 1.5rem;
	}
}

@media (max-width: 900px) {
	.fegn-mega-cols {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 781px) {
	.fegn-hero-grid > .wp-block-column {
		flex-basis: 100% !important;
	}
	.fegn-hero-panel {
		margin-top: 0.5rem;
	}
	.fegn-section-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.75rem;
	}
	.fegn-footer-cols {
		grid-template-columns: 1fr !important;
		gap: 2rem !important;
	}
}

/* ---------- CPT templates, query cards, meta sections ---------- */

.fegn-meta-section {
	margin-block: var(--wp--preset--spacing--70);
}
.fegn-meta-section h2 {
	color: var(--wp--preset--color--ink);
	margin-bottom: 1rem;
}
.fegn-meta-section h3 {
	color: var(--wp--preset--color--ink);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.fegn-query-cards .fegn-card {
	height: 100%;
}
.fegn-query-cards .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.fegn-query-cards .wp-block-post-title a:hover,
.fegn-query-cards .wp-block-post-title a:focus-visible {
	color: var(--wp--preset--color--brand);
}
.fegn-card-term {
	font-size: 0.875rem;
	color: var(--wp--preset--color--brand);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.5rem;
}
.fegn-query-cards .wp-block-post-excerpt__more-text a {
	font-weight: 600;
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}
.fegn-query-cards .wp-block-post-excerpt__more-text a:hover {
	text-decoration: underline;
}

.fegn-process-list,
.fegn-related-list {
	padding-left: 1.25rem;
}
.fegn-process-list li,
.fegn-related-list li {
	margin-bottom: 0.6rem;
}
.fegn-related-list a {
	color: var(--wp--preset--color--brand);
	font-weight: 600;
	text-decoration: none;
}
.fegn-related-list a:hover {
	text-decoration: underline;
}

.fegn-faq-list {
	max-width: 46rem;
}
.fegn-faq-item {
	border: 1px solid var(--wp--preset--color--border-color);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
	margin-bottom: 0.75rem;
}
.fegn-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	padding: 1rem 1.25rem;
	min-height: 44px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
}
.fegn-faq-item[open] summary {
	border-bottom: 1px solid var(--wp--preset--color--border-color);
}
.fegn-faq-item summary:hover {
	background: var(--wp--preset--color--soft-surface);
	border-radius: 12px 12px 0 0;
}
.fegn-faq-answer {
	padding: 1rem 1.25rem;
}
.fegn-faq-answer p:last-child {
	margin-bottom: 0;
}

.fegn-testimonial {
	border-left: 4px solid var(--wp--preset--color--teal);
	background: var(--wp--preset--color--soft-surface);
	border-radius: 0 16px 16px 0;
	padding: 1.5rem 2rem;
	margin: 2rem 0;
}
.fegn-testimonial blockquote {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--wp--preset--color--body-text);
}
.fegn-testimonial figcaption {
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

/* ---------- Services page ---------- */

/* Hero */
.fegn-services-hero {
	text-align: left;
	background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%) !important;
}

.fegn-services-title {
	max-width: 30ch;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.15;
	margin-bottom: 1rem;
}

.fegn-services-hero .fegn-eyebrow {
	display: inline-block;
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
	padding: 4px 14px;
	border-radius: 20px;
	text-transform: uppercase;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.fegn-services-hero .fegn-lead {
	color: var(--wp--preset--color--muted);
	max-width: 52ch;
}

/* Service cards — 3-column CSS grid */
.fegn-service-cards {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 2rem !important;
}

.fegn-service-cards > .wp-block-column {
	flex-basis: unset !important;
}

.fegn-service-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-color);
	border-top: 4px solid #2563eb;
	border-radius: 16px;
	padding: 2rem 1.75rem;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
	transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease;
}
@media (hover: hover) {
	.fegn-service-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.12);
	}
}

.fegn-service-card h3 {
	color: #0f172a;
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.fegn-service-card p {
	color: var(--wp--preset--color--body-text);
	line-height: 1.6;
}

.fegn-service-card .fegn-card-link {
	margin-top: 1rem;
}

.fegn-service-card .fegn-card-link a {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
	transition: color 180ms ease, letter-spacing 180ms ease;
}
.fegn-service-card .fegn-card-link a:hover {
	color: #1d4ed8;
	letter-spacing: 0.02em;
}

/* AI section — 2-column variant */
.fegn-service-cards--2col {
	grid-template-columns: repeat(2, 1fr) !important;
	max-width: 66.666%;
}

.fegn-service-cards--2col .wp-block-column {
	flex-basis: unset !important;
}

/* Process timeline — 4-column dark cards */
.fegn-process-timeline {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.5rem !important;
}

.fegn-process-timeline > .wp-block-column {
	flex-basis: unset !important;
}

.fegn-timeline-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 2rem 1.5rem;
	text-align: left;
	transition: background 200ms ease, transform 200ms ease;
}
@media (hover: hover) {
	.fegn-timeline-card:hover {
		background: rgba(255, 255, 255, 0.1);
		transform: translateY(-3px);
	}
}

.fegn-timeline-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #FFFFFF;
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1.25rem;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.fegn-timeline-card h3 {
	color: #FFFFFF;
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.fegn-timeline-card p {
	color: #C9D7EC;
	line-height: 1.6;
}

/* Services CTA banner */
.fegn-services-cta {
	text-align: center;
}

.fegn-services-cta-title {
	max-width: 32ch;
	margin-inline: auto;
	margin-bottom: 0.5rem;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
}

.fegn-services-cta .wp-block-button__link {
	background-color: #ffffff !important;
	color: var(--wp--preset--color--ink) !important;
	font-weight: 700;
	padding: 14px 32px;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: transform 180ms ease, box-shadow 180ms ease;
}
.fegn-services-cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Services responsive */
@media (max-width: 900px) {
	.fegn-service-cards {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.fegn-service-cards--2col {
		grid-template-columns: repeat(2, 1fr) !important;
		max-width: 100%;
	}
	.fegn-process-timeline {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 781px) {
	.fegn-service-cards,
	.fegn-service-cards--2col {
		grid-template-columns: 1fr !important;
	}
	.fegn-process-timeline {
		grid-template-columns: 1fr !important;
	}
	.fegn-services-title {
		font-size: 2rem;
		max-width: 20ch;
	}
}

/* =====================================================================
   AI Automation — Key Capabilities (#fegn-features, page-id-118) only.
   Scoped polish: 44px section rhythm, light-blue cards, navy type,
   gentle opacity-only title pulse. Touches nothing global/shared and
   nothing outside this section (hero, stats, CTA, header, footer and
   all other pages are unaffected by the page-ID + #fegn-features scope).
   ===================================================================== */
html body.page-id-118 #fegn-features {
	padding-top: 44px !important;
	padding-bottom: 44px !important;
}
html body.page-id-118 #fegn-features .fegn-service-cards {
	margin-top: 28px !important;
}
html body.page-id-118 #fegn-features .fegn-eyebrow,
html body.page-id-118 #fegn-features h2.fegn-section-title {
	color: #151B54;
}
html body.page-id-118 #fegn-features .fegn-service-card {
	background-color: #C9E8FF;
	border: 1px solid rgba(21, 27, 84, 0.16);
	border-top: 3px solid #1863DC;
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 8px 24px rgba(21, 27, 84, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
	html body.page-id-118 #fegn-features .fegn-service-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 12px 32px rgba(21, 27, 84, 0.14);
		background-color: #C9E8FF;
	}
}
html body.page-id-118 #fegn-features .fegn-service-card h3 {
	color: #151B54;
	animation: fegnAutomationCapabilitiesPulse 4s ease-in-out infinite;
}
html body.page-id-118 #fegn-features .fegn-service-card p {
	color: #24344D;
	line-height: 1.65;
}
@keyframes fegnAutomationCapabilitiesPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.88; }
}
/* H2 pulse starts only after the scroll-reveal fade completes (or when
   JS is off and reveal never runs), so the two opacity effects never fight. */
html body.page-id-118 #fegn-features h2.fegn-section-title.fegn-reveal.is-in,
html:not(.fegn-js) body.page-id-118 #fegn-features h2.fegn-section-title {
	animation: fegnAutomationCapabilitiesPulse 4s ease-in-out infinite;
}
@media (max-width: 781px) {
	html body.page-id-118 #fegn-features .fegn-service-card {
		padding: 22px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html body.page-id-118 #fegn-features h2.fegn-section-title,
	html body.page-id-118 #fegn-features .fegn-service-card h3 {
		animation: none;
	}
	html body.page-id-118 #fegn-features .fegn-service-card {
		transition: none;
	}
	html body.page-id-118 #fegn-features .fegn-service-card:hover {
		transform: none;
	}
}

/* =====================================================================
   AI Chatbot — Core Chatbot Features (#fegn-features, page-id-91) only.
   Scoped polish: 44px section rhythm, #EBF6FA section background,
   gradient cards, navy type, gentle opacity-only title pulse. Touches
   nothing global/shared and nothing outside this section (hero, mockup,
   CTA, header, footer and all other pages are unaffected by the
   page-ID + #fegn-features scope).
   ===================================================================== */
html body.page-id-91 #fegn-features {
	padding-top: 44px !important;
	padding-bottom: 44px !important;
	background-color: #EBF6FA;
}
html body.page-id-91 #fegn-features .fegn-service-cards {
	margin-top: 28px !important;
}
html body.page-id-91 #fegn-features .fegn-eyebrow,
html body.page-id-91 #fegn-features h2.fegn-section-title {
	color: #151B54;
}
html body.page-id-91 #fegn-features .fegn-service-card {
	background: linear-gradient(135deg, #E5EAF3 0%, #CAD2E3 100%);
	border: 1px solid rgba(21, 27, 84, 0.14);
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 8px 24px rgba(21, 27, 84, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
	html body.page-id-91 #fegn-features .fegn-service-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 12px 32px rgba(21, 27, 84, 0.14);
		background: linear-gradient(135deg, #E5EAF3 0%, #CAD2E3 100%);
	}
}
html body.page-id-91 #fegn-features .fegn-service-card h3 {
	color: #151B54;
	animation: fegnChatbotFeaturesPulse 4s ease-in-out infinite;
}
html body.page-id-91 #fegn-features .fegn-service-card p {
	color: #24344D;
	line-height: 1.65;
}
@keyframes fegnChatbotFeaturesPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.88; }
}
/* H2 pulse starts only after the scroll-reveal fade completes (or when
   JS is off and reveal never runs), so the two opacity effects never fight. */
html body.page-id-91 #fegn-features h2.fegn-section-title.fegn-reveal.is-in,
html:not(.fegn-js) body.page-id-91 #fegn-features h2.fegn-section-title {
	animation: fegnChatbotFeaturesPulse 4s ease-in-out infinite;
}
@media (max-width: 781px) {
	html body.page-id-91 #fegn-features .fegn-service-card {
		padding: 22px;
	}
}
@media (prefers-reduced-motion: reduce) {
	html body.page-id-91 #fegn-features h2.fegn-section-title,
	html body.page-id-91 #fegn-features .fegn-service-card h3 {
		animation: none;
	}
	html body.page-id-91 #fegn-features .fegn-service-card {
		transition: none;
	}
	html body.page-id-91 #fegn-features .fegn-service-card:hover {
		transform: none;
	}
}

/* ---------- Contact page ---------- */

/* Force Full-Bleed Background for Contact Hero */
html body .page-contact-wrapper .fegn-contact-hero,
html body .fegn-contact-hero {
	background-image: none !important;
	background-color: #D5E4ED !important;
	width: 100vw !important;
	position: relative !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	padding: 60px 0 !important;
	margin-bottom: 30px !important;
}

html body .fegn-contact-hero > div {
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 0 20px !important;
}

/* Keyframe Animation Definition */
@keyframes fegnFadeInUp {
	0% {
		opacity: 0;
		transform: translateY(24px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hero Title Animation & Color */
html body .fegn-contact-hero h1,
html body .fegn-contact-hero .fegn-title {
	color: #151B54 !important;
	animation: fegnFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Subtitle Animation & Color with Stagger Delay */
html body .fegn-contact-hero p,
html body .fegn-contact-hero .fegn-subtitle {
	color: #151B54 !important;
	opacity: 0.9;
	animation: fegnFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards !important;
}

.fegn-contact-hero {
	text-align: left;
}

.fegn-contact-title {
	max-width: 28ch;
	color: #151B54;
}

.fegn-contact-grid {
	display: grid !important;
	grid-template-columns: 1fr 1.6fr !important;
	gap: 32px !important;
	align-items: start !important;
}

.fegn-contact-grid > .wp-block-column {
	flex-basis: unset;
}

.fegn-contact-info {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fegn-contact-info > h2 {
	color: var(--wp--preset--color--ink);
	margin-bottom: 1.25rem;
}

.fegn-contact-card {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-left: 4px solid #1d4ed8 !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fegn-contact-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.fegn-contact-label {
	margin-bottom: 0.25rem;
	text-transform: uppercase;
	color: #1d4ed8;
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
}

.fegn-contact-card p {
	color: var(--wp--preset--color--body-text);
	line-height: 1.6;
}

/* Contact form card */
html body .page-contact-wrapper .fegn-contact-form,
html body .fegn-contact-form,
html body .page-contact-wrapper form,
.fegn-contact-form-card {
	background-color: #D5E4ED !important;
	border: 1px solid #c2d4e0 !important;
	padding: 32px !important;
	border-radius: 16px !important;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Form text & label colors */
html body .fegn-contact-form h2,
html body .fegn-contact-form h3,
html body .fegn-contact-form p,
html body .fegn-contact-form label,
html body .fegn-contact-form .form-label,
.fegn-contact-form-card > h2 {
	color: #151B54 !important;
	margin-bottom: 0.5rem;
}

/* Form elements */
.fegn-form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #151B54;
	margin-bottom: 0.35rem;
}

/* Input fields — crisp white against #EAEEE9 */
html body .fegn-contact-form input[type="text"],
html body .fegn-contact-form input[type="email"],
html body .fegn-contact-form input[type="tel"],
html body .fegn-contact-form select,
html body .fegn-contact-form textarea,
.fegn-form-input {
	display: block;
	width: 100%;
	padding: 12px 16px;
	background-color: #ffffff !important;
	color: #151B54 !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.fegn-form-input:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px rgba(24, 99, 220, 0.12);
}
.fegn-form-input::placeholder {
	color: var(--wp--preset--color--muted);
}

.fegn-form-textarea {
	resize: vertical;
	min-height: 120px;
}

/* Submit button */
.fegn-form-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	background-color: #1d4ed8 !important;
	color: #ffffff !important;
	font-weight: 700;
	font-size: 1rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
	transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.fegn-form-submit:hover,
.fegn-form-submit:focus-visible {
	background-color: #1e40af !important;
	box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
	transform: translateY(-1px);
}
.fegn-form-submit:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
}

/* Contact page responsive */
@media (max-width: 781px) {
	.fegn-contact-grid {
		grid-template-columns: 1fr !important;
		gap: 2rem !important;
	}
	.fegn-contact-grid > .wp-block-column {
		flex-basis: 100% !important;
	}
	.fegn-contact-form-card {
		padding: 1.5rem !important;
	}
}

/* =====================================================================
   Company Profile & Why Choose Us
   ===================================================================== */

/* Shared hero badge pill */
.fegn-hero-badge {
	display: inline-block;
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
	padding: 4px 14px;
	border-radius: 20px;
	text-transform: uppercase;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-bottom: 1rem;
}
.fegn-hero-badge--light {
	background: rgba(255, 255, 255, 0.12);
	color: #7FB3F5;
}

/* About Us Hero Banner — solid color background, constrained layout */
html body .about-hero-section {
	background-color: #DAE9EB !important;
	background-image: none !important;
}

/* Force remove background, border, shadow, and full-width shape from WHO WE ARE badge and its containers */
html body .about-hero-section > *:nth-child(1),
html body .page-about-us .fegn-badge,
html body .page-about-us .wp-block-button,
html body .page-about-us .wp-block-button__link,
html body .page-about-us .has-background,
html body .page-about-us .wp-element-button {
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin-bottom: 12px !important;
	width: auto !important;
	display: inline-block !important;
	color: #151B54 !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	letter-spacing: 1.5px !important;
	position: relative !important;
	z-index: 2 !important;
}

/* Main Heading positioned directly UNDER badge */
html body .about-hero-section h1 {
	display: block !important;
	color: #151B54 !important;
	margin-top: 0 !important;
	margin-bottom: 20px !important;
	position: relative !important;
	z-index: 1 !important;
}

/* Paragraph Description under Heading */
html body .about-hero-section p {
	display: block !important;
	color: #151B54 !important;
	margin-bottom: 0 !important;
}

/* Smooth Pulse Keyframe Animation */
@keyframes fegnPulseHeading {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.02);
	}
	100% {
		transform: scale(1);
	}
}

/* Pulse Animation ONLY on Main Heading */
html body .about-hero-section h1 {
	display: block !important;
	animation: fegnPulseHeading 2.8s ease-in-out infinite !important;
	will-change: transform;
}

/* Force pull up the Our Vision / Our Mission section */
html body .fegn-vision-mission-section {
	margin-top: 0px !important;
	padding-top: 44px !important;
	padding-bottom: 44px !important;
}

/* About Us (page-id-95) only: uniform 44px vertical padding for the
   Stats band and the generic Expertise section. Scoped by body class
   so other pages sharing .fegn-section--soft / .fegn-section are untouched. */
html body.page-id-95 .fegn-section--soft {
	padding-top: 44px !important;
	padding-bottom: 44px !important;
}
html body.page-id-95 .fegn-section {
	padding-top: 44px !important;
	padding-bottom: 44px !important;
}

/* Why Choose Us (WCU template classes only): 35px vertical padding for the 2nd
   section only via .fegn-section--wcu-2nd modifier (not all .fegn-section)
   and the CTA banner. Scoped by body class so other pages sharing these
   classes are untouched. */
.fegn-section--wcu-2nd {
	padding: 35px 0 !important;
}
.fegn-wcu-cta {
	padding-top: 44px !important;
	padding-bottom: 44px !important;
}

/* Service pages: compact 44px vertical padding via modifier classes.
   .fegn-section--svc-compact = section 2 on SaaS/Web/Mobile/CRM/UIUX/AI pages
   (+ AI STATS band); .fegn-section--erp-compact = ERP sections 2-4.
   Modifier-class approach (no page-ID): .fegn-section itself is untouched,
   so unrelated pages/sections are unaffected. */
.fegn-section--svc-compact,
.fegn-section--erp-compact {
	padding-top: 44px !important;
	padding-bottom: 44px !important;
}

/* Company profile hero */
.fegn-company-hero,
.fegn-wcu-hero {
	text-align: center;
}

.fegn-company-title {
	max-width: 30ch;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.15;
	margin-bottom: 1rem;
}

.fegn-wcu-title {
	max-width: 30ch;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: #113252 !important;
	line-height: 1.15;
	margin-bottom: 1rem;
	animation: none !important;
}

.fegn-company-hero .fegn-lead,
.fegn-wcu-hero .fegn-lead {
	color: var(--wp--preset--color--muted);
	max-width: 56ch;
}

/* Vision & Mission — 2-column */
.fegn-vision-mission {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 2rem !important;
}
.fegn-vision-mission > .wp-block-column {
	flex-basis: unset !important;
}

/* Stats grid — 4-column */
.fegn-stats-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.5rem !important;
	text-align: center;
}
.fegn-stats-grid > .wp-block-column {
	flex-basis: unset !important;
}
.fegn-stat-value {
	line-height: 1;
	margin-bottom: 0.35rem;
}
.fegn-stat-label {
	color: var(--wp--preset--color--body-text);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Expertise grid — 4-column */
.fegn-expertise-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.75rem !important;
}
.fegn-expertise-grid > .wp-block-column {
	flex-basis: unset !important;
}

/* Why Choose Us grid — 3-column */
.fegn-wcu-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.75rem !important;
}
.fegn-wcu-grid > .wp-block-column {
	flex-basis: unset !important;
}

/* Universal glass card */
.fegn-glass-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	padding: 2rem;
	border-top: 4px solid #2563eb;
	transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease;
}
@media (hover: hover) {
	.fegn-glass-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.12);
	}
}
.fegn-glass-card h2,
.fegn-glass-card h3 {
	color: #0f172a;
	font-weight: 700;
	margin-bottom: 0.75rem;
}
.fegn-glass-card p {
	color: var(--wp--preset--color--body-text);
	line-height: 1.6;
}
.fegn-card-icon {
	color: var(--wp--preset--color--brand);
	font-size: 1.75rem;
	line-height: 1;
	margin-bottom: 1rem;
}

/* Why Choose Us (WCU template classes only): Value Pillars card treatment.
   Scoped to .fegn-wcu-grid so About cards and Our Promise cards
   (.fegn-promise-card) are untouched. */
.fegn-wcu-grid .fegn-glass-card {
	background-color: #CCE3FC !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.fegn-wcu-grid .fegn-glass-card h3 {
	color: #113252 !important;
}
.fegn-wcu-grid .fegn-glass-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 28px rgba(17, 50, 82, 0.15);
	border-top-color: #1863DC !important;
}

/* Our Promise — dark container */
.fegn-wcu-promise {
	background: var(--wp--preset--color--ink) !important;
}

.fegn-promise-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.75rem !important;
}
.fegn-promise-grid > .wp-block-column {
	flex-basis: unset !important;
}
.fegn-promise-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-top: 3px solid var(--wp--preset--color--brand);
	border-radius: 14px;
	padding: 2rem;
	transition: background 200ms ease, transform 200ms ease;
}
@media (hover: hover) {
	.fegn-promise-card:hover {
		background: rgba(255, 255, 255, 0.1);
		transform: translateY(-3px);
	}
}
.fegn-promise-card h3 {
	color: #FFFFFF;
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.fegn-promise-card p {
	color: #C9D7EC;
	line-height: 1.6;
}

/* CTA banners */
.fegn-company-cta,
.fegn-wcu-cta {
	text-align: center;
}
.fegn-company-cta-title,
.fegn-wcu-cta-title {
	max-width: 32ch;
	margin-inline: auto;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
}

.fegn-company-cta .wp-block-button__link,
.fegn-wcu-cta .wp-block-button__link {
	background-color: #ffffff !important;
	color: var(--wp--preset--color--ink) !important;
	font-weight: 700;
	padding: 14px 32px;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: transform 180ms ease, box-shadow 180ms ease;
}
.fegn-company-cta .wp-block-button__link:hover,
.fegn-wcu-cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us (WCU template classes only): light CTA banner redesign.
   Scoped by body class so the Company CTA and any other page are untouched. */
.fegn-wcu-cta {
	background: #FFFFFF !important;
	border-top: 1px solid #E2E8F0 !important;
	border-bottom: 1px solid #E2E8F0 !important;
}
.fegn-wcu-cta-title {
	color: #113252 !important;
}
.fegn-wcu-cta .wp-block-button__link {
	background-color: #1863DC !important;
	color: #FFFFFF !important;
	border: none !important;
	transition: background-color 0.25s ease, transform 0.2s ease;
}
.fegn-wcu-cta .wp-block-button__link:hover {
	background-color: #104AA8 !important;
	transform: translateY(-2px);
}

/* Responsive — company profile & why choose us */
@media (max-width: 1024px) {
	.fegn-expertise-grid,
	.fegn-wcu-grid,
	.fegn-promise-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Tablet step so 4-up stats never squeeze into a narrow band. */
@media (max-width: 900px) {
	.fegn-stats-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 781px) {
	.fegn-vision-mission,
	.fegn-stats-grid,
	.fegn-expertise-grid,
	.fegn-wcu-grid,
	.fegn-promise-grid {
		grid-template-columns: 1fr !important;
	}
	.fegn-glass-card,
	.fegn-promise-card {
		padding: 1.5rem;
	}
}

/* =====================================================================
   ERP Development Page
   ===================================================================== */

/* Hero */
.fegn-erp-hero {
	text-align: left;
}

.fegn-erp-title {
	max-width: 30ch;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: #113252 !important;
	line-height: 1.15;
	margin-bottom: 1rem;
	animation: fegnPulseHeading 2.8s infinite;
}

.fegn-erp-hero .fegn-lead {
	color: var(--wp--preset--color--muted);
	max-width: 58ch;
}

.fegn-erp-hero .wp-block-buttons {
	gap: 1rem;
	margin-top: 2rem;
}

/* Core modules — 3-column grid */
.fegn-erp-module-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.75rem !important;
}
.fegn-erp-module-grid > .wp-block-column {
	flex-basis: unset !important;
}

.fegn-module-card {
	background: linear-gradient(135deg, #BDD9F2 0%, #E4EEF9 100%) !important;
	border-radius: 16px;
	border-top: 4px solid #2563eb;
	border-left: 1px solid rgba(18, 31, 92, 0.15) !important;
	border-right: 1px solid rgba(18, 31, 92, 0.15) !important;
	border-bottom: 1px solid rgba(18, 31, 92, 0.15) !important;
	box-shadow: 0 4px 16px rgba(18, 31, 92, 0.08);
	padding: 2rem;
	transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease;
}
@media (hover: hover) {
	.fegn-module-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.12);
	}
}
.fegn-module-card h3 {
	color: #121F5C !important;
	font-weight: 700;
	margin-bottom: 0.75rem;
	animation: fegnPulseHeading 2.8s infinite;
}
.fegn-module-card p {
	color: #1e3a5f !important;
	line-height: 1.6;
}
.fegn-module-icon {
	color: var(--wp--preset--color--brand);
	font-size: 1.75rem;
	line-height: 1;
	margin-bottom: 1rem;
}

/* Custom vs off-the-shelf comparison */
.fegn-erp-compare {
	background: var(--wp--preset--color--ink) !important;
}
.fegn-section-title--light {
	color: #FFFFFF !important;
}

.fegn-compare-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 1.75rem !important;
}
.fegn-compare-grid > .wp-block-column {
	flex-basis: unset !important;
}

.fegn-compare-card {
	border-radius: 16px;
	padding: 2rem;
}
.fegn-compare-card--bad {
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.25);
}
.fegn-compare-card--good {
	background: rgba(37, 99, 235, 0.12);
	border: 1px solid rgba(37, 99, 235, 0.35);
}
.fegn-compare-label {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 1rem;
}
.fegn-compare-label--bad {
	background: rgba(239, 68, 68, 0.15);
	color: #FCA5A5;
}
.fegn-compare-label--good {
	background: rgba(37, 99, 235, 0.2);
	color: #93C5FD;
}
.fegn-compare-card h3 {
	color: #FFFFFF;
	font-weight: 700;
	margin-bottom: 1rem;
}
.fegn-compare-card ul {
	margin: 0;
	padding-left: 1.25rem;
}
.fegn-compare-card li {
	color: #C9D7EC;
	line-height: 1.7;
	margin-bottom: 0.4rem;
}
.fegn-compare-card--good li::marker {
	color: #60A5FA;
}
.fegn-compare-card--bad li::marker {
	color: #F87171;
}

/* Process steps — 4 horizontal cards */
.fegn-process-steps {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.5rem !important;
}
.fegn-process-steps > .wp-block-column {
	flex-basis: unset !important;
}

.fegn-step-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid var(--wp--preset--color--border-color);
	border-top: 4px solid #2563eb;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	padding: 2rem 1.5rem;
	transition: transform 240ms ease, box-shadow 240ms ease;
}
@media (hover: hover) {
	.fegn-step-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
	}
}
.fegn-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #FFFFFF;
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 1.25rem;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.fegn-step-card h3 {
	color: #0f172a;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.fegn-step-card p {
	color: var(--wp--preset--color--body-text);
	line-height: 1.6;
}

/* Security & tech stack */
.wp-block-group.fegn-section.fegn-erp-security {
	padding-top: 40px !important;
	padding-bottom: 40px !important;
	margin-block: 0 !important;
}

.fegn-security-grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.75rem !important;
}
.fegn-security-grid > .wp-block-column {
	flex-basis: unset !important;
}

.fegn-security-card {
	background: #ffffff;
	border-radius: 16px;
	border-top: 4px solid #2563eb;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	padding: 2rem;
	transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease;
}
@media (hover: hover) {
	.fegn-security-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.12);
	}
}
.fegn-security-card h3 {
	color: #0f172a;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.fegn-security-card p {
	color: var(--wp--preset--color--body-text);
	line-height: 1.6;
}

/* CTA banner */
.fegn-erp-cta {
	text-align: center;
}
.fegn-erp-cta-title {
	max-width: 32ch;
	margin-inline: auto;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
}
.fegn-erp-cta .wp-block-button__link {
	background-color: #ffffff !important;
	color: var(--wp--preset--color--ink) !important;
	font-weight: 700;
	padding: 14px 32px;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: transform 180ms ease, box-shadow 180ms ease;
}
.fegn-erp-cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive — ERP page */
@media (max-width: 1024px) {
	.fegn-compare-grid {
		grid-template-columns: 1fr 1fr !important;
	}
	.fegn-security-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 900px) {
	.fegn-erp-module-grid,
	.fegn-process-steps {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.fegn-compare-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 781px) {
	.fegn-erp-module-grid,
	.fegn-process-steps,
	.fegn-security-grid {
		grid-template-columns: 1fr !important;
	}
	.fegn-module-card,
	.fegn-step-card,
	.fegn-security-card,
	.fegn-compare-card {
		padding: 1.5rem;
	}
	.fegn-erp-title {
		font-size: 2rem;
		max-width: 22ch;
	}
}

/* =====================================================================
   Lightweight Service Pages (SaaS, Web App, Mobile App, CRM, UI/UX)
   ===================================================================== */

/* Shared hero */
.fegn-sec-hero {
	text-align: left;
}

.fegn-sec-title {
	max-width: 34ch;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: #113252 !important;
	line-height: 1.15;
	margin-bottom: 1rem;
	animation: fegnPulseHeading 2.8s infinite;
}

.fegn-sec-hero .fegn-lead {
	color: var(--wp--preset--color--muted);
	max-width: 58ch;
}

.fegn-sec-hero .wp-block-buttons {
	gap: 1rem;
	margin-top: 2rem;
}

.fegn-sec-hero .is-style-outline .wp-block-button__link {
	border: 1px solid #2563eb;
	color: #2563eb;
	background: transparent;
	border-radius: 10px;
	padding: 14px 32px;
	font-weight: 600;
	transition: background 180ms ease, color 180ms ease;
}
.fegn-sec-hero .is-style-outline .wp-block-button__link:hover {
	background: rgba(37, 99, 235, 0.08);
}

/* Lightweight feature cards — 3-column grid */
.fegn-feature-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.5rem !important;
}
.fegn-feature-grid > .wp-block-column {
	flex-basis: unset !important;
}

.fegn-feature-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.75rem;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
@media (hover: hover) {
	.fegn-feature-card:hover {
		transform: translateY(-3px);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
		border-color: #2563eb;
	}
}
.fegn-feature-card h3 {
	color: #0f172a;
	font-weight: 700;
	margin-bottom: 0.6rem;
}
.fegn-feature-card p {
	color: var(--wp--preset--color--body-text);
	line-height: 1.6;
}

/* Card title entrance (module + feature families share one definition). */
@keyframes fegnBounceIn {
	0% { opacity: 0; transform: scale(0.3); }
	50% { opacity: 1; transform: scale(1.05); }
	70% { transform: scale(0.9); }
	100% { opacity: 1; transform: scale(1); }
}

/* Feature cards on the 5 lightweight pages only: Website tech-grid cards
   (.fegn-tech-card) are excluded via :not(). Bare .fegn-feature-card rule untouched. */
.fegn-feature-card:not(.fegn-tech-card) {
	background: linear-gradient(135deg, #BDD9F2 0%, #E4EEF9 100%) !important;
	border: 1px solid rgba(18, 31, 92, 0.15) !important;
	box-shadow: 0 4px 16px rgba(18, 31, 92, 0.08);
}
.fegn-feature-card:not(.fegn-tech-card) h3 {
	color: #121F5C !important;
	animation: fegnPulseHeading 2.8s infinite;
}
.fegn-feature-card:not(.fegn-tech-card) p {
	color: #1e3a5f !important;
}

/* Full-width CTA banner */
.fegn-sec-cta {
	text-align: center;
}
.fegn-sec-cta-title {
	max-width: 32ch;
	margin-inline: auto;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
}
.fegn-sec-cta .wp-block-button__link {
	background-color: #ffffff !important;
	color: var(--wp--preset--color--ink) !important;
	font-weight: 700;
	padding: 14px 32px;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: transform 180ms ease, box-shadow 180ms ease;
}
.fegn-sec-cta .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive — lightweight service pages */
@media (max-width: 900px) {
	.fegn-feature-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.fegn-feature-grid {
		grid-template-columns: 1fr !important;
	}
	.fegn-feature-card {
		padding: 1.5rem;
	}
	.fegn-sec-title {
		font-size: 2rem;
		max-width: 26ch;
	}
}

/* =====================================================================
   AI Automation & AI Chatbot — Futuristic Dark Theme
   ===================================================================== */

.fegn-ai-main {
	background: #090d16;
}

/* Shared dark badge pill with cyan glow */
.fegn-ai-badge {
	display: inline-block;
	border: 1px solid #00f2fe;
	border-radius: 20px;
	padding: 5px 16px;
	text-transform: uppercase;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #00f2fe;
	margin-bottom: 1rem;
	box-shadow: 0 0 12px rgba(0, 242, 254, 0.25), inset 0 0 12px rgba(0, 242, 254, 0.06);
}
.fegn-ai-badge--subtle {
	border-color: rgba(0, 242, 254, 0.35);
	box-shadow: none;
	color: #7fd8ef;
}

/* Hero */
.fegn-ai-hero {
	text-align: left;
}

.fegn-ai-title {
	max-width: 30ch;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 1rem;
}

.fegn-ai-lead {
	color: #94a3b8;
	max-width: 56ch;
	line-height: 1.65;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.fegn-ai-hero .wp-block-buttons {
	gap: 1rem;
	margin-top: 2rem;
}

/* Gradient primary CTA button */
.fegn-ai-cta-btn .wp-block-button__link {
	background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
	color: #090d16 !important;
	font-weight: 700;
	border: none;
	box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
	transition: box-shadow 200ms ease, transform 200ms ease;
}
.fegn-ai-cta-btn .wp-block-button__link:hover {
	box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
	transform: translateY(-2px);
}

/* Outline button on dark */
.fegn-ai-outline {
	border: 1px solid rgba(0, 242, 254, 0.4) !important;
	color: #00f2fe !important;
	background: transparent !important;
	border-radius: 10px;
	padding: 14px 32px;
	font-weight: 600;
	transition: background 180ms ease, border-color 180ms ease;
}
.fegn-ai-outline:hover {
	background: rgba(0, 242, 254, 0.08) !important;
	border-color: #00f2fe !important;
}

/* Stats */
.fegn-ai-stats {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.5rem !important;
	text-align: center;
}
.fegn-ai-stats > .wp-block-column {
	flex-basis: unset !important;
}
.fegn-ai-stat-val {
	line-height: 1;
	margin-bottom: 0.35rem;
	text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}
.fegn-ai-stat-lbl {
	color: #64748b;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

/* Capability / Feature cards — dark card on dark background */
.fegn-ai-cap-grid,
.fegn-ai-feat-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 1.5rem !important;
}
.fegn-ai-cap-grid > .wp-block-column,
.fegn-ai-feat-grid > .wp-block-column {
	flex-basis: unset !important;
}

.fegn-ai-cap-card,
.fegn-ai-feat-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(0, 242, 254, 0.12);
	border-radius: 14px;
	padding: 1.75rem;
	transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
@media (hover: hover) {
	.fegn-ai-cap-card:hover,
	.fegn-ai-feat-card:hover {
		border-color: rgba(0, 242, 254, 0.45);
		box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
		transform: translateY(-3px);
	}
}
.fegn-ai-cap-card h3,
.fegn-ai-feat-card h3 {
	color: #FFFFFF;
	font-weight: 700;
	margin-bottom: 0.6rem;
}
.fegn-ai-cap-card p,
.fegn-ai-feat-card p {
	color: #94a3b8;
	line-height: 1.6;
}
.fegn-ai-cap-icon {
	color: #00f2fe;
	font-size: 1.5rem;
	line-height: 1;
	margin-bottom: 0.75rem;
}

/* AI CTA */
.fegn-ai-cta {
	text-align: center;
}
.fegn-ai-cta-title {
	max-width: 32ch;
	margin-inline: auto;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
}

/* ---- Chatbot Mockup ---- */
.fegn-ai-hero-split {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 3rem !important;
	align-items: center !important;
}
.fegn-ai-hero-copy {
	text-align: left;
}
.fegn-chatbot-mockup {
	display: flex;
	justify-content: center;
}

/* Chat window */
.fegn-chat-window {
	width: 100%;
	max-width: 420px;
	background: #111827;
	border: 1px solid rgba(0, 242, 254, 0.2);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 0 30px rgba(0, 242, 254, 0.12);
}

.fegn-chat-header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1.1rem;
	background: #0f1729;
	border-bottom: 1px solid rgba(0, 242, 254, 0.15);
}
.fegn-chat-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #00f2fe;
	box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
	margin: 0 !important;
	flex-shrink: 0;
}
.fegn-chat-title {
	color: #FFFFFF;
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0 !important;
	flex: 1;
}
.fegn-chat-online {
	color: #22c55e;
	font-size: 0.75rem;
	font-weight: 600;
	margin: 0 !important;
	flex-shrink: 0;
}

.fegn-chat-body {
	padding: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* Chat messages */
.fegn-chat-msg {
	max-width: 85%;
	border-radius: 12px;
	padding: 0.7rem 0.9rem;
}
.fegn-chat-msg p {
	font-size: 0.875rem;
	line-height: 1.55;
	margin: 0 !important;
}
.fegn-chat-msg--user {
	align-self: flex-end;
	background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
	border: none;
}
.fegn-chat-msg--user p {
	color: #090d16;
	font-weight: 500;
}
.fegn-chat-msg--bot {
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(0, 242, 254, 0.15);
}
.fegn-chat-msg--bot p {
	color: #e2e8f0;
}

/* Action buttons inside chat */
.fegn-chat-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.fegn-chat-action-btn {
	background: rgba(0, 242, 254, 0.1);
	border: 1px solid rgba(0, 242, 254, 0.3);
	border-radius: 8px;
	padding: 0.35rem 0.75rem;
	color: #00f2fe;
	font-size: 0.78rem;
	font-weight: 600;
	margin: 0 !important;
	transition: background 160ms ease;
	cursor: pointer;
}

/* Chat input bar */
.fegn-chat-input {
	display: flex;
	align-items: center;
	padding: 0.8rem 1.1rem;
	background: #0f1729;
	border-top: 1px solid rgba(0, 242, 254, 0.12);
}
.fegn-chat-input-ph {
	color: #475569;
	font-size: 0.85rem;
	margin: 0 !important;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.fegn-ai-hero-split {
		grid-template-columns: 1fr !important;
		gap: 2rem !important;
	}
	.fegn-ai-hero-copy {
		text-align: center;
	}
	.fegn-ai-title {
		max-width: 28ch;
		margin-inline: auto;
	}
	.fegn-ai-lead {
		margin-inline: auto;
	}
	.fegn-chatbot-mockup {
		justify-content: center;
	}
}

@media (max-width: 900px) {
	.fegn-ai-stats {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.fegn-ai-cap-grid,
	.fegn-ai-feat-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.fegn-ai-stats,
	.fegn-ai-cap-grid,
	.fegn-ai-feat-grid {
		grid-template-columns: 1fr !important;
	}
	.fegn-ai-cap-card,
	.fegn-ai-feat-card {
		padding: 1.5rem;
	}
	.fegn-ai-title {
		font-size: 1.85rem;
		max-width: 22ch;
	}
	.fegn-chat-window {
		max-width: 100%;
	}
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =====================================================================
   Mobile navigation + global responsiveness fixes
   Appended overrides: drawer anchoring, header alignment, accordion,
   touch targets, page bounds, type scale, floating widgets.
   ===================================================================== */

/* Drawer header / close / CTA shell — hidden on desktop. */
.fegn-drawer-head,
.fegn-drawer-cta-wrap {
	display: none;
}

/* ---------- 1. Full-width anchored drawer (mobile) ---------- */
@media (max-width: 781px) {
	.fegn-primary-nav {
		/* Anchor strictly to the viewport right edge; never bleed right. */
		left: auto !important;
		right: 0 !important;
		top: 0 !important;
		bottom: 0 !important;
		width: min(85vw, 380px) !important;
		max-width: 100% !important;
		min-height: 100dvh;
		max-height: 100dvh;
		box-sizing: border-box;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		padding: 0 !important; /* inner regions carry padding so CTA never overflows */
	}

	.fegn-primary-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	/* In-drawer header row: brand left, X button right, inside padding. */
	.fegn-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		width: 100%;
		box-sizing: border-box;
		padding: 1rem 1.25rem;
		border-bottom: 1px solid var(--wp--preset--color--border-color);
		background: var(--wp--preset--color--surface);
		position: sticky;
		top: 0;
		z-index: 2;
	}

	.fegn-drawer-brand {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
		min-width: 0;
		font-weight: 700;
		font-size: 0.95rem;
		color: var(--wp--preset--color--ink);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.fegn-drawer-brand svg {
		flex-shrink: 0;
		display: block;
	}

	/* Clearly tappable X, pinned inside drawer padding (never off-canvas). */
	.fegn-drawer-close {
		flex-shrink: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		margin: 0;
		margin-right: -0.5rem; /* optical align inside 1.25rem padding */
		border: 1px solid var(--wp--preset--color--border-color);
		border-radius: 10px;
		background: transparent;
		color: var(--wp--preset--color--ink);
		cursor: pointer;
	}

	.fegn-drawer-close:hover,
	.fegn-drawer-close:focus-visible {
		background: var(--wp--preset--color--light-blue);
		outline: 2px solid var(--wp--preset--color--brand);
		outline-offset: 2px;
	}

	.fegn-nav-list {
		width: 100%;
		box-sizing: border-box;
		padding: 0.75rem 1.25rem 0.5rem;
	}

	/* Bottom CTA: always inside the drawer viewport, never overflowing. */
	.fegn-drawer-cta-wrap {
		display: block;
		width: 100%;
		box-sizing: border-box;
		padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
		margin-top: auto;
		background: linear-gradient(to bottom, transparent, var(--wp--preset--color--surface) 30%);
		position: sticky;
		bottom: 0;
	}

	.fegn-drawer-cta {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
		min-height: 48px;
		margin: 0 !important;
		padding: 0.875rem 1rem !important;
		white-space: normal;
		text-align: center;
		line-height: 1.35;
		overflow-wrap: anywhere;
	}

	/* ---------- 3. Smooth nested accordion dropdowns ---------- */
	.fegn-mega-head {
		display: flex;
		align-items: center;
		width: 100%;
	}

	.fegn-mega.is-open .fegn-mega-head {
		background: var(--wp--preset--color--light-blue);
	}

	.fegn-mega.is-open .fegn-chevron {
		transform: rotate(180deg);
	}

	.fegn-mega-panel {
		/* Inline accordion flow; JS animates max-height via scrollHeight. */
		display: block;
		width: 100%;
		box-sizing: border-box;
		max-height: 0;
		overflow: hidden;
		visibility: hidden;
		opacity: 1;
		transition:
			max-height 300ms cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0s linear 300ms;
	}

	.fegn-mega.is-open .fegn-mega-panel {
		visibility: visible;
		max-height: 70vh; /* no-JS fallback; JS upgrades to scrollHeight/none */
		overflow-y: auto;
		overscroll-behavior: contain;
		transition:
			max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0s;
	}

	.fegn-mega-cols,
	.fegn-mega-cols--simple {
		border-left: 2px solid var(--wp--preset--color--border-color);
		margin: 0.25rem 0 0.5rem 0.5rem;
		padding: 0.25rem 0 0.25rem 0.75rem !important;
	}

	.fegn-mega-col {
		min-width: 0;
		padding: 0.25rem 0;
	}

	.fegn-mega-col + .fegn-mega-col {
		border-top: 1px dashed var(--wp--preset--color--border-color);
		padding-top: 0.75rem;
		margin-top: 0.5rem;
	}

	.fegn-mega-col-title {
		padding-left: 0.75rem;
	}

	/* Indented sub-menu links: wrap cleanly, never cut off text. */
	.fegn-mega-list a {
		min-height: 44px;
		height: auto;
		padding: 0.65rem 0.75rem 0.65rem 1.75rem !important;
		font-size: 0.98rem;
		line-height: 1.5;
		white-space: normal;
		overflow-wrap: break-word;
		word-break: break-word;
		transform: none !important;
	}

	.fegn-mega-list a::before {
		left: 0.75rem;
	}

	.fegn-mega-all {
		margin: 0.5rem 0 0.25rem 0.75rem;
		max-width: calc(100% - 0.75rem);
		box-sizing: border-box;
		white-space: normal;
		text-align: center;
		justify-content: center;
	}

	/* ---------- 5. Touch-friendly hit targets ---------- */
	.fegn-nav-link,
	.fegn-mega-link,
	.fegn-mega-trigger,
	.fegn-mega-list a,
	.fegn-drawer-cta {
		min-height: 44px;
		line-height: 1.5;
	}

	.fegn-mega-trigger {
		flex-shrink: 0;
		border-radius: 10px;
	}

	.fegn-mega-trigger:focus-visible,
	.fegn-nav-link:focus-visible,
	.fegn-mega-link:focus-visible {
		outline: 2px solid var(--wp--preset--color--brand);
		outline-offset: 2px;
	}
}

/* Full-screen fallback on very narrow phones. */
@media (max-width: 480px) {
	.fegn-primary-nav {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ---------- 1b. Header alignment (tablet and below) ----------
   781px (not 768px) so there is no 769–781px band where the desktop
   brand + 6-item nav squeeze into a phone-width bar. */
@media (max-width: 781px) {
	.fegn-site-header {
		width: 100%;
		box-sizing: border-box;
		overflow-x: clip;
	}

	.fegn-header-inner {
		gap: 0.75rem;
		padding-block: 0.65rem;
		padding-inline: 1rem;
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
	}

	.fegn-brand {
		flex: 1 1 auto;
		min-width: 0;
		justify-content: flex-start;
	}

	.fegn-brand-name {
		font-size: 1rem;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.fegn-nav-toggle {
		flex-shrink: 0;
		margin-left: auto;
	}

	/* Keep the toggle visible above the scrim but below the in-drawer X. */
	.fegn-site-header.is-drawer-open .fegn-nav-toggle {
		opacity: 0;
		pointer-events: none;
	}
}

/* ---------- 2. Global page bounds: no horizontal scroll ----------
   overflow-x:clip (NOT hidden) — clip prevents sideways scroll without
   creating a scroll container, so position:sticky headers keep working.
   overflow-x:hidden on html/body is what made the menu scroll away. */
html,
body {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: clip;
}

body {
	overflow-x: clip;
}

#fegn-main,
.fegn-main,
.fegn-section,
.fegn-hero,
.fegn-services-hero,
.fegn-contact-hero,
.fegn-company-hero,
.fegn-wcu-hero,
.fegn-erp-hero,
.fegn-sec-hero,
.fegn-ai-hero,
.fegn-services-cta,
.fegn-sec-cta,
.fegn-ai-cta,
.fegn-erp-cta,
.fegn-company-cta,
.fegn-wcu-cta {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: clip;
}

.fegn-main img,
.fegn-main iframe,
.fegn-main video,
.fegn-main table,
.fegn-main pre {
	max-width: 100%;
}

.fegn-main img {
	height: auto;
}

/* Wide tables scroll inside their figure instead of pushing the viewport. */
.fegn-main figure.wp-block-table {
	max-width: 100%;
	overflow-x: auto;
}

/* Third-party embeds (forms, maps) can never exceed the column. */
.fegn-main form,
.fegn-main input,
.fegn-main select,
.fegn-main textarea {
	max-width: 100%;
	box-sizing: border-box;
}

.fegn-main pre {
	overflow-x: auto;
	box-sizing: border-box;
}

@media (max-width: 781px) {
	/* Core columns must stack and stay inside the viewport. */
	.fegn-hero-grid,
	.fegn-cards,
	.fegn-steps,
	.fegn-contact-grid,
	.fegn-service-cards,
	.fegn-process-timeline,
	.fegn-vision-mission,
	.fegn-stats-grid,
	.fegn-expertise-grid,
	.fegn-wcu-grid,
	.fegn-promise-grid,
	.fegn-erp-module-grid,
	.fegn-process-steps,
	.fegn-security-grid,
	.fegn-compare-grid,
	.fegn-feature-grid,
	.fegn-ai-stats,
	.fegn-ai-cap-grid,
	.fegn-ai-feat-grid,
	.fegn-ai-hero-split {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}

	.fegn-hero-grid > .wp-block-column,
	.fegn-contact-grid > .wp-block-column {
		min-width: 0;
		overflow-wrap: break-word;
	}

	/* Gutters: constrained-layout children go full-width on phones, so
	   sections must carry their own side padding (never 0) or text and
	   step markers sit exactly on the screen edge. Backgrounds stay
	   edge-to-edge since padding is inside the section box. */
	.fegn-section,
	.fegn-hero,
	.fegn-services-hero,
	.fegn-sec-hero,
	.fegn-erp-hero,
	.fegn-ai-hero,
	.fegn-contact-hero,
	.fegn-company-hero,
	.fegn-wcu-hero {
		padding-inline: 1rem;
	}

	/* Buttons wrap instead of forcing sideways scroll. */
	.fegn-hero-actions,
	.fegn-erp-hero .wp-block-buttons,
	.fegn-sec-hero .wp-block-buttons,
	.fegn-ai-hero .wp-block-buttons {
		flex-wrap: wrap;
	}

	.fegn-hero-actions .wp-block-button,
	.fegn-hero-actions .wp-block-button__link {
		max-width: 100%;
		box-sizing: border-box;
		white-space: normal;
	}

	/* ---------- Typography: scale heroes smoothly, no awkward breaks ---------- */
	.fegn-hero h1,
	.fegn-services-title,
	.fegn-contact-title,
	.fegn-company-title,
	.fegn-wcu-title,
	.fegn-erp-title,
	.fegn-sec-title,
	.fegn-ai-title {
		font-size: clamp(1.65rem, 7vw, 2rem) !important;
		line-height: 1.2 !important;
		max-width: 100% !important;
		overflow-wrap: break-word;
		word-break: break-word;
		text-wrap: balance;
	}

	.fegn-hero h2,
	.fegn-section-title,
	.fegn-services-cta-title,
	.fegn-sec-cta-title,
	.fegn-ai-cta-title,
	.fegn-erp-cta-title,
	.fegn-company-cta-title,
	.fegn-wcu-cta-title {
		font-size: clamp(1.3rem, 5.5vw, 1.6rem) !important;
		line-height: 1.25 !important;
		max-width: 100% !important;
		overflow-wrap: break-word;
		text-wrap: balance;
	}

	.fegn-lead,
	.fegn-ai-lead {
		font-size: 1rem !important;
		line-height: 1.65 !important;
		max-width: 100% !important;
	}

	.fegn-chat-window {
		max-width: 100%;
		box-sizing: border-box;
	}

	/* Contact form stays clear of floating widgets. */
	.fegn-contact-form-card {
		margin-bottom: 1rem;
	}

	.fegn-form-submit {
		width: 100%;
		box-sizing: border-box;
	}
}

/* ---------- Floating widgets (language switcher): never cover CTAs/fields --- */
.gt_switcher_wrapper,
#gt_float_wrapper,
.trp-language-switcher,
.trp-floater-ls,
.weglot-container,
[class*='language-switch'],
[class*='lang-switch'],
[class*='gtranslate'],
[id*='language-switch'],
[id*='gtranslate'] {
	z-index: 900 !important; /* below scrim (997) + drawer (998) + header (1000) */
	max-width: calc(100vw - 24px);
	box-sizing: border-box;
}

@media (max-width: 768px) {
	/* Dock it small at bottom-right with safe-area padding; keep it off inputs. */
	.gt_switcher_wrapper,
	#gt_float_wrapper,
	.trp-language-switcher,
	.trp-floater-ls,
	.weglot-container,
	[class*='language-switch'],
	[class*='lang-switch'],
	[class*='gtranslate'],
	[id*='language-switch'],
	[id*='gtranslate'] {
		position: fixed !important;
		right: 12px !important;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
		left: auto !important;
		transform: scale(0.9);
		transform-origin: bottom right;
	}

	/* Hide the floater entirely while the drawer is open (scrim covers it). */
	body:has(.fegn-primary-nav.is-open) .gt_switcher_wrapper,
	body:has(.fegn-primary-nav.is-open) #gt_float_wrapper,
	body:has(.fegn-primary-nav.is-open) .trp-language-switcher,
	body:has(.fegn-primary-nav.is-open) .trp-floater-ls,
	body:has(.fegn-primary-nav.is-open) .weglot-container,
	body:has(.fegn-primary-nav.is-open) [class*='language-switch'],
	body:has(.fegn-primary-nav.is-open) [class*='lang-switch'],
	body:has(.fegn-primary-nav.is-open) [class*='gtranslate'] {
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}
}

/* =====================================================================
   Mobile drawer overlap fix (max-width: 768px)
   Kills absolute-positioned submenus, forces single-column accordion,
   scrollable body + fixed header/footer, safe touch indentation.
   This block intentionally comes last so it wins over desktop + 781px.
   ===================================================================== */
@media (max-width: 768px) {
	/* ---- 3. Scrollable drawer body + fixed header/footer shell ---- */
	.fegn-primary-nav {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		gap: 0 !important;
		height: 100vh !important;
		height: 100dvh !important;
		max-height: 100vh !important;
		max-height: 100dvh !important;
		min-height: 100vh !important;
		min-height: 100dvh !important;
		overflow: hidden !important;
	}

	/* Header (logo + X) pinned at the top of the drawer. */
	.fegn-drawer-head {
		flex: 0 0 auto !important;
		position: sticky !important;
		top: 0 !important;
		z-index: 3 !important;
	}

	/* The scrollable body: expanding accordions push siblings down
	   inside this container instead of overlapping the CTA. */
	.fegn-nav-list {
		flex: 1 1 auto !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100% !important;
		min-height: 0 !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		overscroll-behavior: contain !important;
		-webkit-overflow-scrolling: touch !important;
		padding-bottom: 24px !important;
	}

	.fegn-nav-list > li {
		position: relative !important;
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		overflow: visible !important;
	}

	/* CTA footer pinned at the bottom with spec spacing. */
	.fegn-drawer-cta-wrap {
		flex: 0 0 auto !important;
		margin-top: 24px !important;
		padding-top: 12px !important;
		padding-bottom: 32px !important;
		border-top: 1px solid var(--wp--preset--color--border-color) !important;
		background: var(--wp--preset--color--surface) !important;
	}

	/* ---- 1. Remove absolute positioning on ALL mobile submenus ----
	   Expanding a parent MUST push lower items + CTA down in normal
	   flow; nothing may float/overlap. */
	.fegn-primary-nav .fegn-mega,
	.fegn-primary-nav li {
		position: relative !important;
		overflow: visible !important;
	}

	.fegn-primary-nav .fegn-mega-panel,
	.fegn-primary-nav .mega-menu,
	.fegn-primary-nav .dropdown-menu,
	.fegn-primary-nav .sub-menu,
	.fegn-primary-nav ul ul,
	.fegn-primary-nav .fegn-mega-cols,
	.fegn-primary-nav .fegn-mega-list {
		position: static !important;
		float: none !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		transform: none !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-shadow: none !important;
	}

	.fegn-primary-nav .fegn-mega-panel {
		display: block !important;
		height: auto !important;
		/* NOTE: no !important on max-height/overflow so JS inline
		   scrollHeight animation can override during transitions. */
		max-height: 0;
		overflow: hidden;
		visibility: hidden !important;
		opacity: 1 !important;
		pointer-events: none !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		transition:
			max-height 300ms cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0s linear 300ms !important;
	}

	.fegn-primary-nav .fegn-mega.is-open .fegn-mega-panel,
	.fegn-primary-nav li.is-open > .mega-menu,
	.fegn-primary-nav li.is-open > .dropdown-menu,
	.fegn-primary-nav li.is-open > .sub-menu,
	.fegn-primary-nav li.is-open > ul ul {
		visibility: visible !important;
		pointer-events: auto !important;
		/* No-JS fallback: fully expanded in normal flow (pushes content
		   down). JS overrides with exact scrollHeight during animation,
		   then releases back to none on transitionend. */
		max-height: none;
		overflow: visible;
		transition:
			max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0s !important;
	}

	/* ---- 2. Single-column mobile accordion ----
	   Override desktop multi-column/grid; stack everything vertically. */
	.fegn-primary-nav .fegn-mega-cols,
	.fegn-primary-nav .fegn-mega-cols--simple,
	.fegn-primary-nav .mega-menu,
	.fegn-primary-nav .dropdown-menu {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		grid-template-columns: 1fr !important;
		width: 100% !important;
		max-width: 100% !important;
		gap: 0 !important;
		padding: 4px 0 8px !important;
		margin: 0 !important;
		background: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
	}

	.fegn-primary-nav .fegn-mega-col {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		padding: 4px 0 !important;
		margin: 0 !important;
		background: transparent !important;
		border: 0 !important;
		border-left: 0 !important;
		border-right: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	.fegn-primary-nav .fegn-mega-col + .fegn-mega-col {
		border-top: 1px solid var(--wp--preset--color--border-color) !important;
		margin-top: 8px !important;
		padding-top: 12px !important;
	}

	.fegn-primary-nav .fegn-mega-list,
	.fegn-primary-nav .fegn-mega-list li,
	.fegn-primary-nav .mega-menu li,
	.fegn-primary-nav .dropdown-menu li,
	.fegn-primary-nav .sub-menu li {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	/* ---- 4. Typography & touch spacing ----
	   Sub-categories indented 16px, individual links 28px, 12px vertical
	   touch padding so targets never collide. */
	.fegn-primary-nav .fegn-mega-col-title {
		padding-left: 16px !important;
		margin: 8px 0 4px !important;
	}

	.fegn-primary-nav .fegn-mega-list a,
	.fegn-primary-nav .mega-menu a,
	.fegn-primary-nav .dropdown-menu a,
	.fegn-primary-nav .sub-menu a {
		display: flex !important;
		align-items: center !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		min-height: 44px !important;
		padding: 12px 12px 12px 28px !important;
		font-size: 1rem !important;
		line-height: 1.5 !important;
		white-space: normal !important;
		overflow-wrap: break-word !important;
		word-break: break-word !important;
		transform: none !important;
	}

	.fegn-primary-nav .fegn-mega-list a::before {
		left: 14px !important;
	}

	.fegn-primary-nav .fegn-mega-all {
		width: calc(100% - 32px) !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		margin: 12px 0 4px 16px !important;
	}
}

/* =====================================================================
   Website + Marketing hub pages (page-website / page-marketing)
   Reuses fegn-service-card / feature-card / glass-card / stats-grid.
   Only hub-specific bits live here: tech badges, metric cards, anchors.
   All grids inherit existing 1-column mobile stacking.
   ===================================================================== */

/* Anchor offset so in-page jumps clear the sticky header. */
#fegn-web-services,
#fegn-marketing-services {
	display: block;
	scroll-margin-top: 96px;
}

/* Tech badge pill inside tech cards. */
.fegn-tech-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 0 0.75rem;
}

.fegn-tech-card {
	text-align: left;
}

/* Metric counter cards: centered glass cards inside the stats grid. */
.fegn-metric-card {
	text-align: center;
}

.fegn-metric-card .fegn-stat-value {
	margin-bottom: 0.35rem;
}

@media (max-width: 781px) {
	.fegn-metric-card {
		padding: 1.5rem;
	}
}

/* ---------- Project inquiry form status ---------- */

.fegn-form-status {
	border-radius: 10px;
	padding: 0.875rem 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 1.25rem;
	box-sizing: border-box;
}

.fegn-form-status[hidden] {
	display: none;
}

.fegn-form-status.is-info {
	background: var(--wp--preset--color--light-blue);
	color: var(--wp--preset--color--brand-dark);
}

.fegn-form-status.is-success {
	background: #e7f6ec;
	color: #146c2e;
	border: 1.5px solid #6bc48a;
	box-shadow: 0 6px 18px rgba(20,108,46,0.12);
	font-weight: 700;
	animation: fegn-status-pop 420ms cubic-bezier(.22,1,.36,1);
}
@keyframes fegn-status-pop { from { opacity:0; transform: translateY(6px) scale(.98); } to { opacity:1; transform: translateY(0) scale(1); } }

.fegn-form-status.is-error {
	background: #fdecec;
	color: #b42318;
	border: 1px solid #f3b8b0;
}

.fegn-form-submit:disabled {
	opacity: 0.7;
	cursor: progress;
}

button.fegn-form-submit {
	font: inherit;
}

/* =====================================================================
   Contact form refinement — "Send a Project Inquiry" card
   Compact spacing, frosted-glass brand aesthetic, crisp focus states.
   Appended last so it wins over base + responsive contact rules.
   ===================================================================== */

/* Compact glassmorphism card (overrides the 2.5rem inline padding). */
.fegn-contact-form-card {
	padding: 28px 32px !important;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Tighten vertical rhythm (overrides 1.25rem/1.5rem inline margins). */
.fegn-contact-form-inner > p {
	margin-bottom: 12px !important;
}

.fegn-contact-form-inner > p:last-child {
	margin-bottom: 0 !important;
}

/* Off-screen honeypot must not add layout height. */
.fegn-contact-form-inner > p[aria-hidden='true'] {
	margin: 0 !important;
	padding: 0 !important;
}

.fegn-contact-form-card > h2 {
	margin-bottom: 0.35rem;
}

.fegn-form-label {
	margin-bottom: 0.25rem;
}

/* Compact inputs + brand-blue focus glow. */
.fegn-form-input {
	padding: 12px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fegn-form-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Shorter message box to balance the Direct Contact column. */
.fegn-form-textarea {
	min-height: 90px;
}

/* Wider submit with a smooth, tactile hover. */
.fegn-contact-form-inner .fegn-form-submit {
	width: 100%;
	padding: 14px 32px;
	background-color: #1d4ed8 !important;
	color: #ffffff !important;
	font-weight: 700;
	cursor: pointer;
	border: none;
	border-radius: 8px;
	transition:
		background-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.fegn-contact-form-inner .fegn-form-submit:hover,
.fegn-contact-form-inner .fegn-form-submit:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(29, 78, 216, 0.4);
	filter: brightness(1.1);
}

@media (max-width: 781px) {
	.fegn-contact-form-card {
		padding: 20px !important;
	}

	.fegn-contact-form-inner .fegn-form-submit {
		width: 100%;
		min-width: 0;
	}
}

/* =====================================================================
   AI chatbot mockup — light theme
   The mockup keeps its fegn-chat-* layout classes; only surfaces that
   were dark glass are remapped to the light brand palette so the AI
   pages match the core service pages. Appended last to win the cascade.
   ===================================================================== */

.fegn-chat-window {
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	box-shadow: 0 10px 30px rgba(0, 50, 120, 0.08);
}

.fegn-chat-header {
	background: #f1f5f9;
	border-bottom: 1px solid #e2e8f0;
}

.fegn-chat-title {
	color: #0f172a;
}

.fegn-chat-msg--user {
	background: linear-gradient(135deg, #1863dc 0%, #104aa8 100%);
}

.fegn-chat-msg--user p {
	color: #ffffff;
}

.fegn-chat-msg--bot {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

.fegn-chat-msg--bot p {
	color: #334155;
}

.fegn-chat-action-btn {
	background: rgba(24, 99, 220, 0.08);
	border: 1px solid rgba(24, 99, 220, 0.3);
	color: #1d4ed8;
}

.fegn-chat-input {
	background: #f1f5f9;
	border-top: 1px solid #e2e8f0;
}

.fegn-chat-input-ph {
	color: #94a3b8;
}

/* =====================================================================
   Footer social icons
   ===================================================================== */

/* Sleek circular icon buttons in the brand palette. */
.fegn-social-row {
	display:flex; flex-wrap:nowrap; align-items:center; list-style:none; padding:0;
	gap: 0.4rem;
	margin-top: 1.25rem;
	overflow:visible;
}

.fegn-social-row .wp-social-link a {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #c9d7ec;
	transition:
		background-color 200ms ease,
		border-color 200ms ease,
		color 200ms ease,
		transform 200ms ease,
		box-shadow 200ms ease;
}

.fegn-social-row .wp-social-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.fegn-social-row .wp-social-link a:hover,
.fegn-social-row .wp-social-link a:focus-visible {
	background: var(--wp--preset--color--brand);
	border-color: var(--wp--preset--color--brand);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(24, 99, 220, 0.45);
	text-decoration: none;
}

/* Mobile matches laptop: heroes, headers, section heads and CTAs keep
   the theme's left alignment (no forced centering). */

@media (max-width: 480px) {
	.fegn-eyebrow {
		letter-spacing: 0.04em;
		font-size: 0.78rem;
	}
}

/* =====================================================================
   Seamless header + first section, site-wide.
   No divider line under the nav anywhere; the homepage hero melts into
   the header background; every hero joins the sticky header tightly.
   Inner-page heroes keep their own backgrounds — only the divider and
   the oversized top gap are removed.
   ===================================================================== */
.fegn-site-header {
	border-bottom: 0;
}

body.home .fegn-hero {
	background: transparent !important;
}

.fegn-hero,
.fegn-services-hero,
.fegn-sec-hero,
.fegn-erp-hero,
.fegn-ai-hero,
.fegn-contact-hero,
.fegn-company-hero,
.fegn-wcu-hero,
.fegn-page-header {
	padding-top: 2.5rem !important;
	padding-bottom: 3rem !important;
}

/* First sections share the menu background (near-white) on every page.
   Light heroes go fully transparent; their ink/muted text is unaffected.
   (Homepage hero is covered by the body.home rule above.) */
.fegn-services-hero,
.fegn-contact-hero,
.fegn-company-hero,
.fegn-page-header {
	background: transparent !important;
}

.fegn-sec-hero,
.fegn-erp-hero {
	background: linear-gradient(135deg, #EAF2FB 0%, #F7FAFD 100%) !important;
}

.fegn-wcu-hero {
	background-color: #C4DCF2 !important;
}

/* AI heroes sit on the dark .fegn-ai-main page wrapper, so they get an
   explicit light band instead — the rest of the AI page stays dark.
   Text and controls are re-inked for the light surface. */
.fegn-ai-hero {
	background: #fff !important;
}
.fegn-ai-hero .fegn-ai-title {
	color: var(--wp--preset--color--ink);
}
.fegn-ai-hero .fegn-ai-lead {
	color: var(--wp--preset--color--muted);
}
.fegn-ai-hero .fegn-ai-badge {
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
	border-color: transparent;
	box-shadow: none;
}
.fegn-ai-hero .fegn-ai-badge--subtle {
	background: rgba(37, 99, 235, 0.1);
	color: #2563eb;
	border-color: transparent;
	box-shadow: none;
}
.fegn-ai-hero .fegn-ai-outline {
	border-color: #2563eb !important;
	color: #1d4ed8 !important;
}
.fegn-ai-hero .fegn-ai-outline:hover {
	background: rgba(37, 99, 235, 0.08) !important;
	border-color: #1d4ed8 !important;
}

/* Hero copy shares one left edge with the grids/cards below it.
   (Constrained layout otherwise centers the narrow hero column inside
   the wide hero box, offsetting badge/title/lede from everything
   beneath.) CTA banners intentionally stay centered. */
.fegn-services-hero .alignwide > *,
.fegn-sec-hero .alignwide > *,
.fegn-erp-hero .alignwide > *,
.fegn-ai-hero .alignwide > *,
.fegn-contact-hero .alignwide > *,
.fegn-wcu-hero .alignwide > * {
	margin-left: 0 !important;
	margin-right: auto !important;
	text-align: left;
}

.fegn-company-hero .alignwide > * {
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: center !important;
}

.fegn-services-hero .alignwide .wp-block-buttons,
.fegn-sec-hero .alignwide .wp-block-buttons,
.fegn-erp-hero .alignwide .wp-block-buttons,
.fegn-ai-hero .alignwide .wp-block-buttons {
	justify-content: flex-start;
}

/* =====================================================================
   Scroll-reveal entrance animations (all pages).
   JS-gated: without JS nothing is ever hidden. Elements fade + rise
   once when they enter the viewport; stagger comes from --fegn-d.
   ===================================================================== */
.fegn-js .fegn-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 600ms ease,
		transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--fegn-d, 0ms);
}

.fegn-js .fegn-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (max-width: 781px) {
	.fegn-js .fegn-reveal {
		transform: translateY(14px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fegn-js .fegn-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* =====================================================================
   Visitor theme switch (light / dark)
   ===================================================================== */

/* Toggle button: same chrome as the hamburger, icon swaps per theme. */
.fegn-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	flex-shrink: 0;
	border: 1px solid var(--wp--preset--color--border-color);
	border-radius: 10px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease;
}
.fegn-theme-toggle:hover {
	background: var(--wp--preset--color--light-blue);
}
.fegn-theme-toggle .fegn-theme-icon--sun {
	display: none;
}
html[data-theme="dark"] .fegn-theme-toggle .fegn-theme-icon--moon {
	display: none;
}
html[data-theme="dark"] .fegn-theme-toggle .fegn-theme-icon--sun {
	display: block;
}

.fegn-drawer-head-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}
.fegn-drawer-head-actions .fegn-drawer-close {
	margin-right: -0.5rem; /* optical align inside 1.25rem padding */
}

/* ---------- Dark palette: remap design tokens ---------- */
html[data-theme="dark"] {
	color-scheme: dark;
	--wp--preset--color--surface: #0C1526;
	--wp--preset--color--soft-surface: #111D33;
	--wp--preset--color--border-color: #26344D;
	--wp--preset--color--ink: #F1F5F9;
	--wp--preset--color--body-text: #C3D0E2;
	--wp--preset--color--muted: #8CA0B8;
	--wp--preset--color--light-blue: #16294D;
	--wp--preset--color--brand: #5B93F5;
	--wp--preset--color--brand-dark: #9DBCFA;
}

html[data-theme="dark"] body {
	background-color: #0B1220;
	color: var(--wp--preset--color--body-text);
}

html[data-theme="dark"] :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--ink);
}

html[data-theme="dark"] a:where(:not(.wp-element-button)):not(.fegn-nav-link):not(.fegn-mega-link):not(.fegn-drawer-cta):not(.fegn-mega-all) {
	color: var(--wp--preset--color--brand-dark);
}

/* ---------- Dark header / nav / drawer ---------- */
html[data-theme="dark"] .fegn-site-header {
	background: rgba(11, 18, 32, 0.55) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
}

html[data-theme="dark"] .fegn-mega-cols {
	background: rgba(12, 21, 38, 0.97);
	border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .fegn-mega-col--accent {
	background: linear-gradient(180deg, #13233F 0%, #0F1B30 100%);
	border-color: rgba(91, 147, 245, 0.35);
}

/* Mobile drawer shell keeps its own surface (scoped: desktop nav row
   must stay transparent so no inset box appears around the links). */
@media (max-width: 781px) {
	html[data-theme="dark"] .fegn-primary-nav {
		background: var(--wp--preset--color--surface);
	}

	html[data-theme="dark"] .fegn-drawer-head {
		background: var(--wp--preset--color--surface);
	}
}

/* ---------- Dark heroes (first sections follow the dark menu) ---------- */
html[data-theme="dark"] body.home .fegn-hero,
html[data-theme="dark"] .fegn-services-hero,
html[data-theme="dark"] .fegn-sec-hero,
html[data-theme="dark"] .fegn-erp-hero,
html[data-theme="dark"] .fegn-contact-hero,
html[data-theme="dark"] .fegn-company-hero,
html[data-theme="dark"] .fegn-wcu-hero,
html[data-theme="dark"] .fegn-page-header {
	background: transparent !important;
}

html[data-theme="dark"] .fegn-services-title,
html[data-theme="dark"] .fegn-sec-title,
html[data-theme="dark"] .fegn-erp-title,
html[data-theme="dark"] .fegn-contact-title,
html[data-theme="dark"] .fegn-company-title,
html[data-theme="dark"] .fegn-wcu-title,
html[data-theme="dark"] .fegn-page-header h1 {
	color: var(--wp--preset--color--ink);
}

html[data-theme="dark"] .fegn-services-hero .fegn-eyebrow,
html[data-theme="dark"] .fegn-hero-badge {
	background: rgba(91, 147, 245, 0.16);
	color: var(--wp--preset--color--brand-dark);
}

html[data-theme="dark"] .fegn-sec-hero .is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-dark);
}

/* AI hero band returns to dark (its page never left dark mode). */
html[data-theme="dark"] .fegn-ai-hero {
	background: transparent !important;
}
html[data-theme="dark"] .fegn-ai-hero .fegn-ai-title {
	color: #FFFFFF;
}
html[data-theme="dark"] .fegn-ai-hero .fegn-ai-lead {
	color: #94A3B8;
}
html[data-theme="dark"] .fegn-ai-hero .fegn-ai-badge,
html[data-theme="dark"] .fegn-ai-hero .fegn-ai-badge--subtle {
	background: transparent;
	color: #00F2FE;
	border-color: #00F2FE;
	box-shadow: 0 0 12px rgba(0, 242, 254, 0.25), inset 0 0 12px rgba(0, 242, 254, 0.06);
}
html[data-theme="dark"] .fegn-ai-hero .fegn-ai-outline {
	border-color: rgba(0, 242, 254, 0.4) !important;
	color: #00F2FE !important;
}
html[data-theme="dark"] .fegn-ai-hero .fegn-ai-outline:hover {
	background: rgba(0, 242, 254, 0.08) !important;
	border-color: #00F2FE !important;
}

/* ---------- Dark cards & surfaces ---------- */
html[data-theme="dark"] .fegn-card,
html[data-theme="dark"] .fegn-service-card,
html[data-theme="dark"] .fegn-module-card,
html[data-theme="dark"] .fegn-feature-card,
html[data-theme="dark"] .fegn-glass-card,
html[data-theme="dark"] .fegn-step-card,
html[data-theme="dark"] .fegn-security-card,
html[data-theme="dark"] .fegn-query-cards .fegn-card {
	background: #101C32;
	border-color: #26344D;
}

html[data-theme="dark"] .fegn-card h3,
html[data-theme="dark"] .fegn-service-card h3,
html[data-theme="dark"] .fegn-module-card h3,
html[data-theme="dark"] .fegn-feature-card h3,
html[data-theme="dark"] .fegn-glass-card :is(h2, h3),
html[data-theme="dark"] .fegn-step-card h3,
html[data-theme="dark"] .fegn-security-card h3 {
	color: var(--wp--preset--color--ink);
}

html[data-theme="dark"] .fegn-service-card .fegn-card-link a,
html[data-theme="dark"] .fegn-card-link a {
	color: var(--wp--preset--color--brand-dark);
}

html[data-theme="dark"] .fegn-card-icon,
html[data-theme="dark"] .fegn-module-icon {
	color: var(--wp--preset--color--brand-dark);
}

html[data-theme="dark"] .fegn-testimonial {
	background: #101C32;
}

html[data-theme="dark"] .fegn-faq-item {
	background: #101C32;
	border-color: #26344D;
}
html[data-theme="dark"] .fegn-faq-item summary {
	color: var(--wp--preset--color--ink);
}
html[data-theme="dark"] .fegn-faq-item summary:hover {
	background: #16233C;
}
html[data-theme="dark"] .fegn-faq-item[open] summary {
	border-color: #26344D;
}

/* Dark contact form + inputs. */
html[data-theme="dark"] .fegn-contact-form-card {
	background: rgba(16, 28, 50, 0.9);
	border-color: rgba(148, 163, 184, 0.22);
}
html[data-theme="dark"] .fegn-contact-form-card > h2,
html[data-theme="dark"] .fegn-form-label {
	color: var(--wp--preset--color--ink);
}
html[data-theme="dark"] .fegn-form-input {
	background: #0B1526;
	border-color: #2B3B58;
	color: var(--wp--preset--color--body-text);
}
html[data-theme="dark"] .fegn-form-input::placeholder {
	color: var(--wp--preset--color--muted);
}

/* Compare cards + metric/stat labels stay legible. */
html[data-theme="dark"] .fegn-stat-label {
	color: var(--wp--preset--color--muted);
}
html[data-theme="dark"] .fegn-tech-badge {
	background: rgba(91, 147, 245, 0.16);
	color: var(--wp--preset--color--brand-dark);
}

html[data-theme="dark"] .fegn-contact-card p a {
	color: var(--wp--preset--color--body-text);
}

/* Foreground utility classes must stay light in dark mode: the token
   remap above turns surface/light-blue into dark tones, which would
   render footer (and similar) copy invisible on dark grounds. */
html[data-theme="dark"] .has-surface-color {
	color: #F1F5F9 !important;
}
html[data-theme="dark"] .has-light-blue-color {
	color: #9DBCFA !important;
}
html[data-theme="dark"] .has-soft-surface-color {
	color: #C3D0E2 !important;
}

/* CTA bands: bright brand gradients become dark panels (titles stay
   white); white pill buttons become brand pills. Inline template
   gradients lose to these !important rules. */
html[data-theme="dark"] .fegn-services-cta,
html[data-theme="dark"] .fegn-sec-cta,
html[data-theme="dark"] .fegn-erp-cta,
html[data-theme="dark"] .fegn-ai-cta,
html[data-theme="dark"] .fegn-company-cta,
html[data-theme="dark"] .fegn-wcu-cta {
	background-color: #101C32 !important;
	background-image: none !important;
	border: 1px solid #26344D;
}

html[data-theme="dark"] .fegn-services-cta .wp-block-button__link,
html[data-theme="dark"] .fegn-sec-cta .wp-block-button__link,
html[data-theme="dark"] .fegn-erp-cta .wp-block-button__link,
html[data-theme="dark"] .fegn-company-cta .wp-block-button__link,
html[data-theme="dark"] .fegn-wcu-cta .wp-block-button__link {
	background-color: var(--wp--preset--color--brand) !important;
	color: #FFFFFF !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .fegn-services-cta .wp-block-button__link:hover,
html[data-theme="dark"] .fegn-sec-cta .wp-block-button__link:hover,
html[data-theme="dark"] .fegn-erp-cta .wp-block-button__link:hover,
html[data-theme="dark"] .fegn-company-cta .wp-block-button__link:hover,
html[data-theme="dark"] .fegn-wcu-cta .wp-block-button__link:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Ink is remapped to near-white for TEXT in dark mode — but several
   dark bands use ink as their BACKGROUND (inline
   background-color:var(--ink) or CSS rules). Without this they flip
   white with unreadable light text. Re-darken those surfaces
   (!important beats their inline styles). */
html[data-theme="dark"] .fegn-section--dark,
html[data-theme="dark"] .fegn-erp-compare,
html[data-theme="dark"] .fegn-wcu-promise,
html[data-theme="dark"] .has-ink-background-color {
	background-color: #0C1526 !important;
	background-image: none !important;
}

/* No white surfaces in dark mode: chat mockup + any literal-white
   utility backgrounds go dark. (Near-white TEXT stays — it is required
   for readable contrast on dark grounds.) */
html[data-theme="dark"] .fegn-chat-window {
	background: #101C32;
	border-color: #26344D;
}
html[data-theme="dark"] .fegn-chat-header {
	background: #0C1526;
	border-color: #26344D;
}
html[data-theme="dark"] .fegn-chat-title {
	color: var(--wp--preset--color--ink);
}
html[data-theme="dark"] .fegn-chat-msg--bot {
	background: #16233C;
	border-color: #26344D;
}
html[data-theme="dark"] .fegn-chat-msg--bot p {
	color: var(--wp--preset--color--body-text);
}
html[data-theme="dark"] .fegn-chat-input {
	background: #0C1526;
	border-top-color: #26344D;
}
html[data-theme="dark"] .fegn-chat-input-ph {
	color: var(--wp--preset--color--muted);
}
html[data-theme="dark"] .fegn-chat-action-btn {
	background: rgba(91, 147, 245, 0.12);
	border-color: rgba(91, 147, 245, 0.4);
	color: var(--wp--preset--color--brand-dark);
}
html[data-theme="dark"] .has-white-background-color {
	background-color: #101C32 !important;
}

/* --- Tighten header / hero junction: minimal clean spacing --- */
.fegn-site-header {
	margin-bottom: 0 !important;
}

.fegn-main,
#fegn-main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Homepage hero: local photographs, 12s loop, 800ms crossfades.
   The first layer remains opaque; later layers fade over it without gaps. */
body.home .fegn-hero.fegn-hero--bg {
 position: relative;
 isolation: isolate;
 overflow: hidden;
 margin-top: 0 !important;
 padding: clamp(2.5rem, 5vw, 4.5rem) var(--wp--preset--spacing--40) 4.5rem !important;
 background: #0b1b2d !important;
 color: #f5f8fc;
}
body.home .fegn-hero.fegn-hero--bg::before {
 content: "";
 position: absolute;
 inset: 0;
 z-index: 1;
 pointer-events: none;
 background: linear-gradient(90deg, rgba(6, 20, 38, .88), rgba(8, 25, 44, .73) 52%, rgba(8, 25, 44, .50));
}
body.home .fegn-hero.fegn-hero--bg > .fegn-hero__bg-slider {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 max-width: none;
 margin: 0;
 z-index: 0;
 pointer-events: none;
}
body.home .fegn-hero.fegn-hero--bg .fegn-hero__bg-slide {
 position: absolute;
 inset: 0;
 background-size: cover;
 background-repeat: no-repeat;
 opacity: 0;
}
body.home .fegn-hero.fegn-hero--bg .fegn-hero__bg-slide--1 {
 background-image: url("../images/hero-development.webp");
 background-position: 58% 52%;
 opacity: 1;
}
body.home .fegn-hero.fegn-hero--bg .fegn-hero__bg-slide--2 {
 background-image: url("../images/hero-cloud.webp");
 background-position: 62% 48%;
}
body.home .fegn-hero.fegn-hero--bg .fegn-hero__bg-slide--3 {
 background-image: url("../images/hero-data.webp");
 background-position: 60% 54%;
}
/* Completion points: 4s, 8s, 12s. Slide 2 resets behind opaque slide 3. */
@keyframes fegn-home-hero-second {
 0%, 26.666667% { opacity: 0; }
 33.333333%, 66.666667% { opacity: 1; }
 66.666668%, 100% { opacity: 0; }
}
@keyframes fegn-home-hero-third {
 0%, 60% { opacity: 0; }
 66.666667%, 93.333333% { opacity: 1; }
 100% { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
 body.home .fegn-hero.fegn-hero--bg.is-ready .fegn-hero__bg-slide--2 {
  animation: fegn-home-hero-second 12s ease-in-out infinite;
 }
 body.home .fegn-hero.fegn-hero--bg.is-ready .fegn-hero__bg-slide--3 {
  animation: fegn-home-hero-third 12s ease-in-out infinite;
 }
 body.home .fegn-hero.fegn-hero--bg.is-paused .fegn-hero__bg-slide {
  animation-play-state: paused;
 }
}
body.home .fegn-hero.fegn-hero--bg .fegn-hero-grid {
 position: relative;
 z-index: 2;
 gap: clamp(2rem, 4vw, 4rem);
 margin-top: 0;
 margin-bottom: 0;
}
body.home .fegn-hero.fegn-hero--bg .fegn-hero-grid > .wp-block-column { min-width: 0; }
body.home .fegn-hero.fegn-hero--bg h1 {
 color: #fff;
 font-size: clamp(2.25rem, 3.7vw, 3.6rem);
 line-height: 1.12;
 letter-spacing: -.035em;
 max-width: 18ch;
 text-wrap: balance;
}
body.home .fegn-hero.fegn-hero--bg .fegn-eyebrow { color: #c5dbef; }
body.home .fegn-hero.fegn-hero--bg .fegn-lead {
 color: #e0e9f2;
 line-height: 1.7;
 max-width: 54ch;
}
body.home .fegn-hero.fegn-hero--bg .fegn-reveal {
 opacity: 1 !important;
 transform: none !important;
 transition: none !important;
}
body.home .fegn-hero.fegn-hero--bg .fegn-hero-actions { gap: .75rem; margin-top: 1.75rem; }
body.home .fegn-hero.fegn-hero--bg .wp-block-button__link {
 background: #2463d4;
 border: 2px solid #2463d4;
 color: #fff;
 box-shadow: none;
 transform: none;
}
body.home .fegn-hero.fegn-hero--bg .wp-block-button__link:hover { background: #194da9; border-color: #194da9; }
body.home .fegn-hero.fegn-hero--bg .is-style-outline .wp-block-button__link {
 background: rgba(9, 26, 46, .3);
 border-color: rgba(235, 245, 255, .65);
 color: #fff;
}
body.home .fegn-hero.fegn-hero--bg .is-style-outline .wp-block-button__link:hover { background: rgba(235, 245, 255, .12); }
body.home .fegn-hero.fegn-hero--bg .fegn-hero-panel {
 background: rgba(22, 42, 63, .94) !important;
 border: 1px solid rgba(230, 241, 255, .24);
 border-radius: 24px !important;
 padding: clamp(1.5rem, 3vw, 2.5rem) !important;
 box-shadow: 0 16px 40px rgba(0, 8, 20, .16);
 color: #f5f8fc;
}
@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
 body.home .fegn-hero.fegn-hero--bg .fegn-hero-panel {
  background: rgba(32, 53, 76, .50) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
 }
}
body.home .fegn-hero.fegn-hero--bg .fegn-hero-panel h2 { color: #fff; margin-top: 0; margin-bottom: 1.25rem; }
body.home .fegn-hero.fegn-hero--bg .fegn-hero-list { padding-left: 1.15rem; margin: 0; }
body.home .fegn-hero.fegn-hero--bg .fegn-hero-list li { color: #e5edf6; line-height: 1.65; margin-bottom: 1rem; padding-left: .25rem; }
body.home .fegn-hero.fegn-hero--bg .fegn-hero-list li:last-child { margin-bottom: 0; }
body.home .fegn-hero.fegn-hero--bg .fegn-hero-list strong { color: #fff; }
body.home .fegn-hero.fegn-hero--bg .fegn-hero__pause {
 position: absolute;
 z-index: 2;
 bottom: 1rem;
 right: max(1.5rem, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2));
 margin: 0;
 min-height: 36px;
 padding: .45rem .8rem;
 border: 1px solid rgba(230, 241, 255, .4);
 border-radius: 8px;
 background: rgba(7, 22, 40, .8);
 color: #e5edf6;
 font: inherit;
 font-size: .75rem;
 cursor: pointer;
}
body.home .fegn-hero.fegn-hero--bg .fegn-hero__pause[hidden] { display: none; }
body.home .fegn-hero.fegn-hero--bg :is(a, button):focus-visible { outline: 3px solid #b8dcff; outline-offset: 4px; }
@media (max-width: 781px) {
 body.home .fegn-hero.fegn-hero--bg { padding: 2.5rem 1.25rem 4.5rem !important; }
 body.home .fegn-hero.fegn-hero--bg .fegn-hero-grid { flex-wrap: wrap !important; gap: 2rem; }
 body.home .fegn-hero.fegn-hero--bg .fegn-hero-grid > .wp-block-column { flex-basis: 100% !important; }
 body.home .fegn-hero.fegn-hero--bg::before { background: rgba(6, 20, 38, .78); }
 body.home .fegn-hero.fegn-hero--bg .fegn-hero__bg-slide--1 { background-position: 65% 45%; }
 body.home .fegn-hero.fegn-hero--bg .fegn-hero__bg-slide--2 { background-position: 72% 50%; }
 body.home .fegn-hero.fegn-hero--bg .fegn-hero__bg-slide--3 { background-position: 67% 50%; }
}

/* Force Equal Card & Image Heights */
.fegn-card {
	display: flex !important;
	flex-direction: column !important;
	overflow: hidden !important;
}

.fegn-card figure,
.fegn-card .wp-block-image,
.fegn-card-image {
	margin: 0 !important;
	width: 100% !important;
	height: 200px !important;
	min-height: 200px !important;
	max-height: 200px !important;
	overflow: hidden !important;
}

.fegn-card img,
.fegn-card .wp-block-image img,
.fegn-card-image img {
	width: 100% !important;
	height: 200px !important;
	max-height: 200px !important;
	object-fit: cover !important;
	object-position: center !important;
	border-radius: 16px 16px 0 0 !important;
	display: block !important;
}

/* ==========================================================================
   ABOUT US PAGE — FINAL SUPPORT RULES
   ========================================================================== */

/* Hero background (template sets layout:constrained — no full-bleed needed) */
html body .about-hero-section {
	background-color: #DAE9EB !important;
	background-image: none !important;
}
html body .about-hero-section .fegn-hero-badge {
	display: block !important;
}
html body .about-hero-section h1 {
	color: #151B54 !important;
}
html body .about-hero-section p {
	color: #151B54 !important;
}

/* CTA background (template sets #C5DCED inline — CSS reinforces) */
html body .fegn-company-cta {
	background-color: #C5DCED !important;
	background-image: none !important;
}
html body .fegn-company-cta .fegn-company-cta-title {
	color: #151B54 !important;
}
/* CTA button — dark text on light bg */
html body .fegn-company-cta .wp-block-button__link {
	background-color: #1d4ed8 !important;
	color: #ffffff !important;
}

/* ==========================================================================
   SERVICES PAGE — Hero Background & Spacing
   ========================================================================== */
/* Change Services Page Hero Background to #C5DCED & Set 40px Bottom Gap */
html body .page-services .entry-content > .wp-block-group:first-child,
html body .services .entry-content > .wp-block-group:first-child,
html body .fegn-services-hero {
	background-color: #C5DCED !important;
	background-image: none !important;
	padding-top: 50px !important;
	padding-bottom: 40px !important;
	margin-bottom: 0px !important;
}
/* Remove excessive top padding from the following Core Tech Services section */
html body .page-services .entry-content > .wp-block-group:nth-child(2),
html body .services .entry-content > .wp-block-group:nth-child(2) {
	margin-top: 0px !important;
	padding-top: 40px !important;
}

/* Pulse Animation for Services Hero Heading */
html body .fegn-services-hero h1 {
	animation: fegnPulseHeading 2.8s ease-in-out infinite !important;
}

/* ==========================================================================
   ABOUT US (body) — homepage technique, light frosted glass.
   Hero uses a static photographic background with a light overlay so the
   existing #151B54 ink copy stays readable; cards get consistent 16/9
   top images with natural colors (no tint/blend). Dark mode uses a
   dark-navy frosted variant. Scoped to template-unique .fegn-about /
   .about-hero-section classes (no page-ID) so rules apply on all
   environments, while other pages sharing
   .fegn-company-hero / .fegn-glass-card are untouched. No parallax.
   ========================================================================== */
body .about-hero-section {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #dfe9ef !important;
	background-image: linear-gradient(rgba(255, 255, 255, .74), rgba(255, 255, 255, .68)), url("../images/home-process-bg.webp") !important;
	background-size: cover !important;
	background-position: center 40% !important;
	background-repeat: no-repeat !important;
}
html body .about-hero-section > .fegn-about-hero-panel {
	background: rgba(255, 255, 255, .62) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 20px !important;
	box-shadow: 0 12px 32px rgba(15, 40, 80, .10);
	padding: clamp(1.5rem, 3vw, 2.5rem) !important;
	display: block !important;
	width: auto !important;
	margin-bottom: 0 !important;
}
body .fegn-about-card-image {
	margin: -2rem -2rem 1.5rem !important;
	line-height: 0;
	border-radius: 12px 12px 0 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e6ebf2;
}
body .fegn-about-card-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	filter: none !important;
	mix-blend-mode: normal !important;
}
body .fegn-vision-mission > .wp-block-column,
body .fegn-expertise-grid > .wp-block-column {
	overflow: hidden;
}
html[data-theme="dark"] body .about-hero-section {
	background-color: #0b1220 !important;
	background-image: linear-gradient(rgba(11, 18, 32, .80), rgba(11, 18, 32, .74)), url("../images/home-process-bg.webp") !important;
}
html[data-theme="dark"] body .fegn-about-hero-panel {
	background: rgba(16, 28, 50, .55) !important;
	border-color: rgba(148, 163, 184, .22);
	box-shadow: none;
}
html[data-theme="dark"] body .about-hero-section h1,
html[data-theme="dark"] body .about-hero-section p {
	color: #f1f6fc !important;
}

/* About Us editorial redesign. All rules are isolated to verified page ID 7. */
body .fegn-about { --about-ink:#102b49; --about-copy:#42566d; --about-paper:#ffffff; --about-soft:#f1f5f9; --about-line:#d5dfe9; --about-blue:#195bc4; margin:0; color:var(--about-copy); background:var(--about-paper); }
body .fegn-about :is(h1,h2,h3,p,figure) { margin:0; }
body .fegn-about :is(h1,h2,h3) { color:var(--about-ink); letter-spacing:-.045em; text-wrap:balance; }
body .fegn-about h1 { font-size:clamp(2.7rem,4.4vw,4rem); line-height:1.08; font-weight:750; }
body .fegn-about h2 { font-size:clamp(2rem,3.1vw,2.85rem); line-height:1.15; font-weight:700; }
body .fegn-about h3 { font-size:1.35rem; line-height:1.3; letter-spacing:-.025em; }
body .fegn-about p { color:var(--about-copy); font-size:1rem; line-height:1.8; }
body .fegn-about .fegn-about-wrap { box-sizing:border-box; width:calc(100% - 64px); max-width:1200px; margin-inline:auto; padding-block:35px 40px; }
body .fegn-about > section { margin-block:0; }
body .fegn-about .fegn-about-kicker { color:var(--about-blue); font-size:.72rem; font-weight:800; letter-spacing:.17em; line-height:1.5; margin-bottom:20px; }
body .fegn-about .fegn-about-hero { padding:40px 0 48px; background:#10263e url('../images/about-hero-business.jpg') center 54% / cover no-repeat; position:relative; isolation:isolate; }
body .fegn-about .fegn-about-hero > .fegn-about-wrap { padding-bottom:0; }
body .fegn-about .fegn-about-hero::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(6,22,40,.96) 0%,rgba(6,22,40,.88) 37%,rgba(6,22,40,.44) 68%,rgba(6,22,40,.12) 100%); }
body .fegn-about .fegn-about-hero-copy { max-width:690px; }
body .fegn-about .fegn-about-hero :is(h1,p) { color:#fff; }
body .fegn-about .fegn-about-hero .fegn-about-kicker { color:#b4d3fc; }
body .fegn-about .fegn-about-intro { max-width:560px; margin-top:25px; color:#e0e9f3; font-size:1.12rem; line-height:1.75; }
body .fegn-about .fegn-about-actions { margin-top:30px; }
body .fegn-about .fegn-about-button .wp-block-button__link { display:inline-flex; align-items:center; justify-content:center; gap:34px; min-height:52px; padding:14px 23px; border:1px solid transparent; border-radius:6px; background:#2164d7; color:#fff; font-size:.94rem; font-weight:700; text-decoration:none; box-shadow:none; transition:background .18s ease,transform .18s ease; }
body .fegn-about .fegn-about-button .wp-block-button__link:hover { background:#154cac; transform:translateY(-2px); }
body .fegn-about .fegn-about-button .wp-block-button__link:focus-visible { outline:3px solid #83b7ff; outline-offset:5px; }
body .fegn-about .fegn-about-story { padding:0; }
body .fegn-about .fegn-about-story-grid { display:grid; grid-template-columns:1.05fr 1fr; align-items:center; gap:80px; padding-block:40px; }
body .fegn-about .fegn-about-story-copy > p:not(.fegn-about-kicker) { margin-top:20px; }
body .fegn-about .fegn-about-standfirst { color:var(--about-ink); font-size:1.18rem; line-height:1.65; }
body .fegn-about .fegn-about-story-image { margin:0; }
body .fegn-about .fegn-about-story-image img { display:block; width:100%; height:400px; object-fit:cover; object-position:58% center; border-radius:4px 50px 4px 4px; }
body .fegn-about .fegn-about-story-image figcaption { margin:13px 0 0; font-size:.72rem; color:var(--about-copy); }
body .fegn-about .fegn-about-purpose { padding:40px 0; background:var(--about-paper); background:color-mix(in srgb,var(--about-paper) 55%,var(--about-soft)); }
body .fegn-about .fegn-about-purpose-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding-top:40px; }
body .fegn-about .fegn-about-purpose-card { margin:0; padding:30px 34px; background:var(--about-soft); border-top:2px solid var(--about-blue); border-radius:0 0 8px 8px; }
body .fegn-about .fegn-about-purpose-card .fegn-about-kicker { margin-bottom:13px; }
body .fegn-about .fegn-about-purpose-card h3 { font-size:1.55rem; margin-bottom:12px; }
body .fegn-about .fegn-about-expertise { padding:0; background:var(--about-soft); border-block:1px solid var(--about-line); }
body .fegn-about .fegn-about-expertise-grid { display:grid; grid-template-columns:.85fr 1.35fr; gap:80px; padding-top:40px; }
body .fegn-about .fegn-about-expertise-heading > p:last-child { margin-top:24px; max-width:330px; }
body .fegn-about .fegn-about-capabilities { margin:0; }
body .fegn-about .fegn-about-capability { display:grid; grid-template-columns:32px 1fr; gap:24px; padding:27px 0; border-bottom:1px solid var(--about-line); margin:0; }
body .fegn-about .fegn-about-capability:first-child { padding-top:0; }
body .fegn-about .fegn-about-capability:last-child { padding-bottom:0; border-bottom:0; }
body .fegn-about .fegn-about-number { color:var(--about-blue); font-size:.78rem; font-weight:800; padding-top:5px; }
body .fegn-about .fegn-about-capability-copy { margin:0; }
body .fegn-about .fegn-about-capability-copy > p { margin-top:11px; }
body .fegn-about .fegn-about-capability-copy .fegn-about-tags { color:var(--about-blue); font-size:.73rem; font-weight:700; line-height:1.7; }
body .fegn-about .fegn-about-why { padding:0; }
body .fegn-about .fegn-about-why-heading { max-width:none; }
body .fegn-about .fegn-about-reasons { display:grid; grid-template-columns:repeat(3,1fr); gap:42px; margin-top:44px; }
body .fegn-about .fegn-about-reason { border-top:1px solid var(--about-line); padding-top:24px; margin:0; }
body .fegn-about .fegn-about-reason::before { content:''; display:block; width:28px; height:3px; background:var(--about-blue); margin:-26px 0 22px; }
body .fegn-about .fegn-about-reason p { margin-top:14px; }
body .fegn-about .fegn-about-cta { padding:0; background:#112d4c; border-bottom:1px solid #ffffff20; }
body .fegn-about .fegn-about-cta-grid { display:grid; grid-template-columns:1fr auto; align-items:center; gap:60px; padding-top:40px; }
body .fegn-about .fegn-about-cta h2 { color:#fff; }
body .fegn-about .fegn-about-cta p { color:#d4e1ef; max-width:520px; margin-top:22px; }
body .fegn-about .fegn-about-cta .fegn-about-kicker { color:#a9ccff; margin-top:0; }
body .fegn-about .fegn-about-cta .fegn-about-actions { margin:0; }
body .fegn-about .fegn-about-cta .wp-block-button__link { background:#fff; color:#123353; }
body .fegn-about .fegn-about-cta .wp-block-button__link:hover { background:#dceaff; }
html[data-theme="dark"] body .fegn-about { --about-ink:#eef5ff; --about-copy:#b9c9dc; --about-paper:#0b1422; --about-soft:#111f30; --about-line:#2c3e53; --about-blue:#9ac2ff; }
/* Full-width copy preserves desktop single lines without crowding the CTA. */
@media (min-width:1024px) {
 body .fegn-about :is(.fegn-about-expertise-heading, .fegn-about-why-heading, .fegn-about-cta-copy) > h2 { white-space:nowrap; }
 body .fegn-about .fegn-about-why-heading > h2 { font-size:clamp(1.75rem,2.4vw,2.25rem); }
 body .fegn-about .fegn-about-expertise-heading > p:last-child { white-space:nowrap; }
 body .fegn-about .fegn-about-cta-grid { grid-template-columns:minmax(0,1fr) auto; gap:0 40px; }
 body .fegn-about .fegn-about-cta-copy { display:contents; }
 body .fegn-about .fegn-about-cta-copy > .fegn-about-kicker { grid-column:1; grid-row:1; }
 body .fegn-about .fegn-about-cta-copy > h2 { grid-column:1; grid-row:2; }
 body .fegn-about .fegn-about-cta-copy > p:not(.fegn-about-kicker) { grid-column:1 / -1; grid-row:3; max-width:none; white-space:nowrap; }
 body .fegn-about .fegn-about-cta .fegn-about-actions { grid-column:2; grid-row:1 / 3; }
}
@media (max-width:1000px) {
 body .fegn-about .fegn-about-story-grid { gap:40px; }
 body .fegn-about .fegn-about-expertise-grid { gap:40px; grid-template-columns:.8fr 1.2fr; }
 body .fegn-about .fegn-about-reasons { gap:25px; }
 body .fegn-about .fegn-about-story-image img { height:430px; }
}
@media (max-width:700px) {
 body .fegn-about .fegn-about-wrap { width:calc(100% - 40px); }
 body .fegn-about h1 { font-size:clamp(2.25rem,8.5vw,3.5rem); }
 body .fegn-about h2 { font-size:2rem; }
 body .fegn-about .fegn-about-hero { padding:24px 0 48px; background-position:64% center; }
 body .fegn-about .fegn-about-hero::before { background:linear-gradient(90deg,rgba(6,22,40,.93),rgba(6,22,40,.68)); }
 body .fegn-about .fegn-about-intro { font-size:1rem; }
 body .fegn-about .fegn-about-story-grid,
 body .fegn-about .fegn-about-purpose-grid,
 body .fegn-about .fegn-about-expertise-grid,
 body .fegn-about .fegn-about-reasons,
 body .fegn-about .fegn-about-cta-grid { grid-template-columns:1fr; gap:32px; }
 body .fegn-about .fegn-about-story-image img { height:310px; border-top-right-radius:36px; }
 body .fegn-about .fegn-about-purpose-grid { gap:16px; }
 body .fegn-about .fegn-about-purpose-card { padding:25px; }
 body .fegn-about .fegn-about-expertise { padding:0; }
 body .fegn-about .fegn-about-capability { gap:15px; grid-template-columns:24px 1fr; }
 body .fegn-about .fegn-about-expertise-heading > p:last-child { max-width:none; }
 body .fegn-about .fegn-about-why { padding:0; }
 body .fegn-about .fegn-about-reasons { margin-top:34px; }
 body .fegn-about .fegn-about-cta { padding:0; }
 body .fegn-about .fegn-about-cta-grid { gap:28px; }
}
@media (prefers-reduced-motion:reduce) {
 body .fegn-about .fegn-about-button .wp-block-button__link { transition:none; transform:none; }
}

/* Dropdown parents are a single disclosure button; only submenu links navigate. */
.fegn-mega-head > .fegn-mega-toggle {
 padding: 0;
 font: inherit;
 text-align: left;
 border-radius: 8px;
}
.fegn-mega-toggle > .fegn-chevron { margin: 0 .7rem 0 .3rem; }
.fegn-mega:not(.is-open):hover .fegn-chevron { transform: none; }
@media (max-width: 781px) {
 .fegn-mega-head > .fegn-mega-toggle { width: 100%; border-radius: 10px; }
 .fegn-mega-toggle > .fegn-chevron { margin-inline: .75rem; }
}

/* Homepage overview links keep dropdown parent pages directly accessible. */
body.home .fegn-home-overviews { margin:0; padding:30px 24px 34px; background:#fff; border-bottom:1px solid #dce5ef; }
body.home .fegn-home-overviews-inner { max-width:1200px; margin:auto; }
body.home .fegn-home-overviews-label { margin:0 0 16px; color:#52657c; font-size:.75rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
body.home .fegn-home-overviews-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; list-style:none; margin:0; padding:0; }
body.home .fegn-home-overviews-links li { margin:0; min-width:0; }
body.home .fegn-home-overviews-links a { display:flex; flex-direction:column; gap:7px; height:100%; box-sizing:border-box; padding:18px; border:1px solid #dce5ef; border-radius:8px; color:#14385e; text-decoration:none; background:#f7f9fc; }
body.home .fegn-home-overviews-title { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:1rem; line-height:1.4; font-weight:700; }
body.home .fegn-home-overviews-title > span { color:#195bc4; }
body.home .fegn-home-overviews-description { color:#52657c; font-size:.8125rem; line-height:1.5; }
body.home .fegn-home-overviews-links a:hover { background:#edf4ff; border-color:#83abe2; }
body.home .fegn-home-overviews-links a:focus-visible { outline:3px solid #2164d7; outline-offset:3px; }
html[data-theme="dark"] body.home .fegn-home-overviews { background:#0b1422; border-color:#2b3e55; }
html[data-theme="dark"] body.home .fegn-home-overviews-links a { color:#edf5ff; background:#152439; border-color:#2b3e55; }
html[data-theme="dark"] body.home .fegn-home-overviews-description,
html[data-theme="dark"] body.home .fegn-home-overviews-label { color:#bdcde0; }
html[data-theme="dark"] body.home .fegn-home-overviews-title > span { color:#a8ceff; }
html[data-theme="dark"] body.home .fegn-home-overviews-links a:hover { background:#203650; border-color:#8ebcf8; }
html[data-theme="dark"] body.home .fegn-home-overviews-links a:focus-visible { outline-color:#a8ceff; }
@media (max-width:1000px) { body.home .fegn-home-overviews-links { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:480px) {
 body.home .fegn-home-overviews { padding:26px 20px; }
 body.home .fegn-home-overviews-links { grid-template-columns:1fr; gap:10px; }
 body.home .fegn-home-overviews-links a { padding:15px 18px; }
}

/* Why Choose Us: verified localhost page 96. Reuses the existing template. */
body.page-id-96 {
 --wcu-ink:#10243e;
 --wcu-copy:#4b5d73;
 --wcu-line:#dce5f0;
 --wcu-section:linear-gradient(180deg,#f8fafc,#f1f5fa);
 --wcu-card:linear-gradient(145deg,#ffffff,#f3f7fd);
 --wcu-cta:linear-gradient(135deg,#eaf2ff,#f6f8fb 65%,#edf3fa);
 --wcu-glass:rgba(255,255,255,.68);
}
body.page-id-96 :is(.fegn-wcu-hero,.fegn-section--wcu-2nd,.fegn-wcu-promise,.fegn-wcu-cta) {
 box-sizing:border-box;
 width:100%;
 max-width:100%;
 margin-block:0;
 overflow-x:clip;
}
body.page-id-96 #fegn-main .wp-block-group.alignwide.has-global-padding.is-layout-constrained,
body.page-id-96 #fegn-main .wp-block-group.alignwide.has-global-padding.is-layout-constrained > * { text-align:center; }
body.page-id-96 #fegn-main .wp-block-group.alignwide.has-global-padding.is-layout-constrained .wp-block-button { display:flex; justify-content:center; }
/* Full-width photographic hero, with a centered, comfortably padded panel. */
body.page-id-96 .fegn-wcu-hero {
 display:flex;
 align-items:center;
 justify-content:center;
 min-height:clamp(420px,40vw,540px);
 padding:40px max(1.25rem,var(--wp--preset--spacing--40,2rem)) !important;
 background:#f1f5f9 url('../images/wcu-hero-team.jpg') center 52% / cover no-repeat !important;
 background-blend-mode:normal !important;
 filter:none !important;
 text-align:center;
}
body.page-id-96 .fegn-wcu-hero::before,
body.page-id-96 .fegn-wcu-hero::after { content:none !important; }
body.page-id-96 .fegn-wcu-hero > .alignwide {
 box-sizing:border-box;
 width:100%;
 max-width:1000px;
 margin-inline:auto !important;
 padding:clamp(28px,4vw,44px) !important;
 background:rgba(255,255,255,.72);
 border:1px solid rgba(255,255,255,.55);
 border-radius:20px;
 box-shadow:0 12px 32px rgba(17,50,82,.1),inset 0 1px 0 rgba(255,255,255,.45);
 backdrop-filter:blur(12px);
 -webkit-backdrop-filter:blur(12px);
}
body.page-id-96 .fegn-wcu-hero > .alignwide > * { margin-inline:auto !important; }
body.page-id-96 .fegn-wcu-hero .fegn-hero-badge {
 margin:0 0 20px;
 padding:0;
 border:0;
 border-radius:0;
 background:transparent;
 color:#235b85 !important;
 font-size:.72rem !important;
 font-weight:700;
 letter-spacing:.14em;
 line-height:1.6;
 box-shadow:none;
}
body.page-id-96 .fegn-wcu-hero .fegn-wcu-title {
 max-width:32ch;
 margin:0;
 color:#113252 !important;
 font-size:clamp(2rem,3.3vw,3rem) !important;
 font-weight:700;
 line-height:1.12 !important;
 letter-spacing:-.04em;
 text-wrap:balance;
}
body.page-id-96 .fegn-wcu-hero .fegn-lead {
 max-width:58ch;
 margin:20px 0 0;
 color:#4b5968 !important;
 font-size:1.0625rem !important;
 line-height:1.75;
}
/* The existing six-card grid and responsive column counts are preserved. */
body.page-id-96 .fegn-section--wcu-2nd {
 padding:40px max(1.25rem,var(--wp--preset--spacing--40,2rem)) !important;
 background:var(--wcu-section) !important;
 border-bottom:1px solid var(--wcu-line);
}
body.page-id-96 :is(.fegn-section--wcu-2nd,.fegn-wcu-promise) .fegn-section-head { margin-bottom:0 !important; }
body.page-id-96 :is(.fegn-section--wcu-2nd,.fegn-wcu-promise) .fegn-section-title {
 margin:0;
 color:var(--wcu-ink) !important;
 font-size:clamp(1.75rem,2.6vw,2.5rem) !important;
 line-height:1.2 !important;
 letter-spacing:-.035em;
}
body.page-id-96 .fegn-section--wcu-2nd .fegn-hero-badge {
 margin:0 0 16px;
 color:var(--wcu-ink);
}
body.page-id-96 :is(.fegn-wcu-grid,.fegn-promise-grid) {
 margin-top:24px !important;
 gap:20px !important;
}
body.page-id-96 .fegn-wcu-grid .fegn-glass-card {
 min-width:0;
 box-sizing:border-box;
 margin:0;
 padding:28px !important;
 border:1px solid var(--wcu-line) !important;
 border-top:2px solid #5488d3 !important;
 border-radius:14px !important;
 background:var(--wcu-card) !important;
 box-shadow:0 5px 18px rgba(12,35,64,.055) !important;
 transition:opacity 550ms ease,transform 400ms ease,box-shadow 400ms ease,border-color 400ms ease !important;
}
body.page-id-96 .fegn-wcu-grid .fegn-glass-card h3 {
 min-height:2.6em;
 margin:0 0 12px;
 color:var(--wcu-ink) !important;
 font-size:1.15rem !important;
 font-weight:600;
 line-height:1.3;
 letter-spacing:-.025em;
 text-wrap:balance;
 animation:none !important;
}
body.page-id-96 .fegn-wcu-grid .fegn-glass-card p {
 margin:0;
 color:var(--wcu-copy) !important;
 font-size:.9375rem;
 line-height:1.7 !important;
}
body.page-id-96 .fegn-wcu-grid .fegn-glass-card .fegn-card-icon {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 width:44px;
 height:44px;
 margin:0 0 20px;
 border:1px solid var(--wcu-line);
 border-radius:10px;
 background:rgba(24,99,220,.075);
 color:#235bb1 !important;
 font-size:1.35rem !important;
 line-height:1;
}
/* A restrained navy transition between the reasons and final conversion. */
body.page-id-96 .fegn-wcu-promise {
 padding:40px max(1.25rem,var(--wp--preset--spacing--40,2rem)) !important;
 background:linear-gradient(150deg,#0c223b,#142f4e) !important;
 border-block:1px solid #294663;
}
body.page-id-96 .fegn-wcu-promise .fegn-section-title--light { color:#f5f9ff !important; }
body.page-id-96 .fegn-promise-card {
 min-width:0;
 margin:0;
 padding:28px !important;
 border:1px solid rgba(186,215,250,.2) !important;
 border-top:2px solid #87afe5 !important;
 border-radius:14px !important;
 background:rgba(218,234,255,.065) !important;
 transition:opacity 550ms ease,transform 400ms ease,background-color 400ms ease,border-color 400ms ease !important;
}
body.page-id-96 .fegn-promise-card h3 { color:#f5f9ff !important; font-size:1.15rem !important; letter-spacing:-.025em; }
body.page-id-96 .fegn-promise-card p { color:#c9d9ec !important; font-size:.9375rem; line-height:1.7; }
/* Light glass CTA: strong navy heading and a clear blue action. */
body.page-id-96 .fegn-wcu-cta {
 padding:40px max(1.25rem,var(--wp--preset--spacing--40,2rem)) !important;
 background:var(--wcu-cta) !important;
 border:0 !important;
 color:var(--wcu-ink) !important;
}
body.page-id-96 .fegn-wcu-cta > .alignwide {
 box-sizing:border-box;
 text-align:left !important;
 padding:clamp(28px,4vw,44px) !important;
 border:1px solid var(--wcu-line);
 border-radius:16px;
 background:var(--wcu-glass);
 box-shadow:0 8px 24px rgba(12,35,64,.07),inset 0 1px 0 rgba(255,255,255,.3);
 backdrop-filter:blur(10px);
 -webkit-backdrop-filter:blur(10px);
}
body.page-id-96 .fegn-wcu-cta-title {
 max-width:40ch;
 margin:0 !important;
 text-align:left !important;
 color:var(--wcu-ink) !important;
 font-size:clamp(1.5rem,2.6vw,2.1rem) !important;
 font-weight:700;
 line-height:1.25;
 letter-spacing:-.035em;
 text-wrap:balance;
}
body.page-id-96 .fegn-wcu-cta .wp-block-buttons {
 margin:24px 0 0 !important;
 justify-content:flex-start !important;
 text-align:left !important;
}
body.page-id-96 .fegn-wcu-cta .wp-block-buttons > .wp-block-button { justify-content:flex-start !important; }
body.page-id-96 .fegn-wcu-cta .wp-block-button__link {
 box-sizing:border-box;
 max-width:100%;
 padding:14px 26px !important;
 border:1px solid transparent;
 border-radius:10px;
 background:linear-gradient(135deg,#1863dc,#145abf) !important;
 color:#fff !important;
 font-weight:700;
 white-space:normal;
 box-shadow:0 5px 14px rgba(24,99,220,.2);
 transition:transform 350ms ease,box-shadow 350ms ease,background-color 350ms ease;
}
body.page-id-96 .fegn-wcu-cta .wp-block-button__link:focus-visible { outline:3px solid #235bb1; outline-offset:4px; }
@media (hover:hover) and (pointer:fine) {
 body.page-id-96 .fegn-wcu-grid .fegn-glass-card:hover {
  transform:translateY(-3px) !important;
  border-color:#a7c0e3 !important;
  box-shadow:0 10px 24px rgba(12,35,64,.1) !important;
 }
 body.page-id-96 .fegn-promise-card:hover { transform:translateY(-3px); background:rgba(218,234,255,.1) !important; border-color:rgba(186,215,250,.4) !important; }
 body.page-id-96 .fegn-wcu-cta .wp-block-button__link:hover { transform:translateY(-2px); background:#104aa8 !important; box-shadow:0 8px 20px rgba(24,99,220,.24); }
}
html[data-theme="dark"] body.page-id-96 {
 --wcu-ink:#f1f6fc;
 --wcu-copy:#c4d2e4;
 --wcu-line:#33465f;
 --wcu-section:linear-gradient(180deg,#101c2d,#14243a);
 --wcu-card:linear-gradient(145deg,#17283e,#1b3049);
 --wcu-cta:linear-gradient(135deg,#152b48,#101c2d);
 --wcu-glass:rgba(27,48,73,.7);
}
html[data-theme="dark"] body.page-id-96 .fegn-wcu-grid .fegn-card-icon { color:#a8ceff !important; background:rgba(168,206,255,.08); }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 body.page-id-96 .fegn-wcu-hero > .alignwide { background:rgba(255,255,255,.97); }
 body.page-id-96 .fegn-wcu-cta > .alignwide { background:var(--wcu-card); }
}
@media (max-width:781px) {
 body.page-id-96 .fegn-wcu-hero { min-height:380px; padding:24px 20px !important; background-position:60% center !important; }
 body.page-id-96 .fegn-wcu-hero > .alignwide { padding:28px 24px !important; }
 body.page-id-96 .fegn-wcu-hero .fegn-wcu-title { font-size:clamp(1.75rem,5.5vw,2.4rem) !important; text-wrap:wrap; }
 body.page-id-96 .fegn-wcu-hero .fegn-lead { font-size:1rem !important; }
 body.page-id-96 :is(.fegn-section--wcu-2nd,.fegn-wcu-promise,.fegn-wcu-cta) { padding:32px 20px !important; }
 body.page-id-96 :is(.fegn-wcu-grid,.fegn-promise-grid) { gap:16px !important; }
 body.page-id-96 :is(.fegn-glass-card,.fegn-promise-card) { padding:24px !important; }
 body.page-id-96 .fegn-wcu-grid .fegn-glass-card h3 { min-height:0; }
 body.page-id-96 .fegn-wcu-cta > .alignwide { padding:28px 22px !important; }
}
@media (hover:none) {
 body.page-id-96 :is(.fegn-glass-card,.fegn-promise-card):hover,
 body.page-id-96 .fegn-wcu-cta .wp-block-button__link:hover { transform:none !important; }
}
@media (prefers-reduced-motion:reduce) {
 body.page-id-96 .fegn-wcu-grid .fegn-glass-card,
 body.page-id-96 .fegn-promise-card,
 body.page-id-96 .fegn-wcu-cta .wp-block-button__link { transition:none !important; }
 body.page-id-96 .fegn-wcu-grid .fegn-glass-card:hover,
 body.page-id-96 .fegn-promise-card:hover,
 body.page-id-96 .fegn-wcu-cta .wp-block-button__link:hover { transform:none !important; }
}

/* =====================================================================
   Contact page (body.page-id-18) — 2026 enterprise premium skin.
   CSS-only; HTML/content untouched. Light-mode rules are gated with
   :not([data-theme="dark"]) so dark theme stays intact.
   ===================================================================== */

/* 1. Hero: soft blue/white/cyan gradient + radial glows + type hierarchy. */
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-hero {
	background: linear-gradient(135deg, #eef6ff 0%, #dbeafe 55%, #f8fafc 100%) !important;
	background-image: linear-gradient(135deg, #eef6ff 0%, #dbeafe 55%, #f8fafc 100%) !important;
	overflow: clip !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-hero::before {
	content: "" !important;
	position: absolute !important;
	top: -180px !important;
	right: -120px !important;
	width: 520px !important;
	height: 520px !important;
	border-radius: 999px !important;
	background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, rgba(34, 211, 238, 0) 65%) !important;
	pointer-events: none !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-hero::after {
	content: "" !important;
	position: absolute !important;
	bottom: -220px !important;
	left: -140px !important;
	width: 560px !important;
	height: 560px !important;
	border-radius: 999px !important;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0) 65%) !important;
	pointer-events: none !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-hero > div {
	position: relative !important;
	z-index: 1 !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-title {
	font-size: clamp(2rem, 4vw, 2.9rem) !important;
	letter-spacing: -0.03em !important;
	line-height: 1.12 !important;
	color: #0f172a !important;
	text-wrap: balance !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-hero .fegn-lead {
	color: #475569 !important;
	font-size: 1.125rem !important;
	max-width: 52ch !important;
}

/* Section backdrop: soft enterprise canvas behind info + form. */
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-section {
	background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%) !important;
}

/* 2. Info cards: premium glass. */
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-card {
	background: rgba(255, 255, 255, 0.55) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	border: 1px solid rgba(255, 255, 255, 0.7) !important;
	border-left: 4px solid #1d4ed8 !important;
	border-radius: 16px !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.07) !important;
	padding: 1.25rem 1.4rem !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
@media (hover: hover) {
	html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-card:hover {
		transform: translateY(-3px) !important;
		box-shadow: 0 14px 34px rgba(29, 78, 216, 0.14) !important;
	}
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-label {
	display: inline-block !important;
	background: rgba(29, 78, 216, 0.09) !important;
	padding: 0.3rem 0.8rem !important;
	border-radius: 999px !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-info > h2 {
	color: #0f172a !important;
	letter-spacing: -0.02em !important;
}

/* 3. Form: SaaS inquiry panel, clean inputs, blue focus glow. */
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-form-card {
	background: rgba(255, 255, 255, 0.78) !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
	border: 1px solid rgba(226, 232, 240, 0.9) !important;
	border-radius: 20px !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 20px 48px rgba(15, 23, 42, 0.09) !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-form-card > h2 {
	color: #0f172a !important;
	letter-spacing: -0.02em !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-form-input {
	min-height: 52px !important;
	border-radius: 12px !important;
	border: 1px solid #cbd5e1 !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-form-textarea {
	min-height: 130px !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-form-input:focus {
	border-color: #2563eb !important;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14) !important;
}
html:not([data-theme="dark"]) body.page-id-18 .fegn-form-submit {
	border-radius: 12px !important;
	padding: 0.9rem 2.2rem !important;
	box-shadow: 0 8px 20px rgba(29, 78, 216, 0.32) !important;
}

/* 5. Bottom CTA (footer pre-section, scoped to contact page only). */
body.page-id-18 .fegn-site-footer .fegn-footer-pre {
	background: linear-gradient(135deg, #0b1b33 0%, #123064 60%, #0e4a6e 100%) !important;
	border: 1px solid rgba(125, 211, 252, 0.22) !important;
	border-radius: 24px !important;
	box-shadow: 0 20px 48px rgba(8, 20, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) !important;
	margin-block: clamp(2rem, 4vw, 3rem) !important;
	position: relative !important;
	overflow: hidden !important;
}
body.page-id-18 .fegn-site-footer .fegn-footer-pre::before {
	content: "" !important;
	position: absolute !important;
	top: -160px !important;
	right: -100px !important;
	width: 420px !important;
	height: 420px !important;
	border-radius: 999px !important;
	background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, rgba(34, 211, 238, 0) 65%) !important;
	pointer-events: none !important;
}
body.page-id-18 .fegn-site-footer .fegn-footer-pre > * {
	position: relative !important;
	z-index: 1 !important;
}
body.page-id-18 .fegn-site-footer .fegn-footer-pre .wp-block-button__link {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

/* Responsive. */
@media (max-width: 781px) {
	html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-hero {
		padding: 44px 0 !important;
	}
	html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-form-card {
		padding: 1.5rem !important;
		border-radius: 18px !important;
	}
	body.page-id-18 .fegn-site-footer .fegn-footer-pre {
		border-radius: 18px !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-card { transition: none !important; }
	html:not([data-theme="dark"]) body.page-id-18 .fegn-contact-card:hover { transform: none !important; }
}

/* Homepage capability cards: top image via CSS so it also works when the
   homepage content comes from the DB (no-title template) instead of
   templates/front-page.html. Skipped wherever a real .fegn-card-image
   figure already exists, so no duplicate images. */
body.home .fegn-cards .fegn-card:not(:has(.fegn-card-image))::before {
	content: "";
	display: block;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	border-radius: 18px 18px 0 0;
}
body.home .fegn-cards .fegn-card:nth-child(1):not(:has(.fegn-card-image))::before {
	background-image: url("../images/home-card-enterprise.webp");
}
body.home .fegn-cards .fegn-card:nth-child(2):not(:has(.fegn-card-image))::before {
	background-image: url("../images/home-card-erp.webp");
}
body.home .fegn-cards .fegn-card:nth-child(3):not(:has(.fegn-card-image))::before {
	background-image: url("../images/home-card-saas.webp");
}

/* Navigation finish: brand accents without changing header geometry. */
.fegn-site-header {
 --fegn-menu-accent: #175bc4;
 --fegn-menu-tint: #edf4ff;
 --fegn-menu-edge: rgba(34, 99, 190, .16);
 --fegn-menu-card: linear-gradient(145deg, #ffffff 35%, #f2f7ff);
}
html[data-theme="dark"] .fegn-site-header {
 --fegn-menu-accent: #a2c8ff;
 --fegn-menu-tint: #1b304e;
 --fegn-menu-edge: rgba(137, 181, 245, .23);
 --fegn-menu-card: linear-gradient(145deg, #15243a, #101c2e);
}
.fegn-site-header .fegn-nav-link:focus-visible,
.fegn-site-header .fegn-mega-trigger:focus-visible,
.fegn-site-header .fegn-mega-list a:focus-visible {
 outline: 2px solid var(--fegn-menu-accent);
 outline-offset: 3px;
}
@media (min-width: 782px) {
 .fegn-site-header .fegn-nav-link,
 .fegn-site-header .fegn-mega-head,
 .fegn-site-header .fegn-mega-toggle { border-radius: 12px; }
 .fegn-site-header .fegn-nav-link:hover,
 .fegn-site-header .fegn-mega-head:hover,
 .fegn-site-header .fegn-mega-head:focus-within,
 .fegn-site-header .fegn-mega.is-open .fegn-mega-head {
  background: var(--fegn-menu-tint);
  box-shadow: inset 0 0 0 1px var(--fegn-menu-edge);
 }
 .fegn-site-header .fegn-mega-toggle:hover,
 .fegn-site-header .fegn-mega-toggle[aria-expanded="true"] { background: transparent; }
 .fegn-site-header .fegn-mega.is-open .fegn-mega-link,
 .fegn-site-header .fegn-mega-head:hover .fegn-mega-link,
 .fegn-site-header .fegn-nav-link:hover { color: var(--fegn-menu-accent); }
 .fegn-site-header .fegn-nav-link::after,
 .fegn-site-header .fegn-mega-head::after {
  background: linear-gradient(90deg, #2463dc, #22b4da);
  height: 2px;
 }
 .fegn-site-header .fegn-mega-cols {
  background: var(--fegn-menu-card);
  border-color: var(--fegn-menu-edge);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 30, 66, .18), 0 4px 12px rgba(8, 30, 66, .06);
 }
 .fegn-site-header .fegn-mega-col--accent {
  background: var(--fegn-menu-tint);
  border-color: var(--fegn-menu-edge);
  border-left-color: var(--fegn-menu-accent);
 }
 .fegn-site-header .fegn-mega-col-title { color: var(--fegn-menu-accent); }
 .fegn-site-header .fegn-mega-list a:hover,
 .fegn-site-header .fegn-mega-list a:focus-visible {
  background: var(--fegn-menu-tint);
  color: var(--fegn-menu-accent);
  box-shadow: inset 0 0 0 1px var(--fegn-menu-edge);
 }
 .fegn-site-header .fegn-nav-list > li:last-child > .fegn-nav-link {
  color: #fff;
  background: linear-gradient(120deg, #1755be, #167bbd);
  box-shadow: 0 5px 14px rgba(23, 85, 190, .2);
 }
 .fegn-site-header .fegn-nav-list > li:last-child > .fegn-nav-link:hover {
  background: linear-gradient(120deg, #12479f, #126aa5);
  box-shadow: 0 7px 18px rgba(23, 85, 190, .3);
 }
 .fegn-site-header .fegn-nav-list > li:last-child > .fegn-nav-link::after { background: #fff; }
}
/* About Us expertise cards: scoped premium glass treatment. */
body .fegn-about .fegn-about-expertise .fegn-about-expertise-grid { grid-template-columns:1fr; gap:32px; }
body .fegn-about .fegn-about-expertise .fegn-about-capabilities { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
body .fegn-about .fegn-about-expertise .fegn-about-capability { display:grid; grid-template-columns:28px 48px 1fr; align-items:start; gap:14px; min-height:174px; padding:22px 20px; margin:0; border:1px solid rgba(255,255,255,.58); border-radius:18px; background:rgba(255,255,255,.48); box-shadow:0 10px 30px rgba(10,36,68,.07); backdrop-filter:blur(14px) saturate(130%); -webkit-backdrop-filter:blur(14px) saturate(130%); transition:transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
body .fegn-about .fegn-about-expertise .fegn-about-capability:hover { transform:translateY(-5px); border-color:rgba(24,99,220,.36); box-shadow:0 18px 38px rgba(10,36,68,.16); }
body .fegn-about .fegn-about-expertise .fegn-about-number { color:var(--about-blue); font-size:.75rem; font-weight:800; padding-top:0; align-self:center; }
body .fegn-about .fegn-about-expertise .fegn-about-capability-icon { box-sizing:border-box; width:48px; height:48px; padding:12px; border:1px solid rgba(24,99,220,.16); border-radius:14px; background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(221,236,255,.72)); filter:invert(31%) sepia(89%) saturate(1504%) hue-rotate(203deg) brightness(91%) contrast(95%); }
html[data-theme="dark"] body .fegn-about .fegn-about-expertise .fegn-about-capability { background:rgba(22,43,67,.7); border-color:rgba(154,194,255,.2); box-shadow:0 12px 32px rgba(0,0,0,.24); }
html[data-theme="dark"] body .fegn-about .fegn-about-expertise .fegn-about-capability:hover { border-color:rgba(154,194,255,.54); box-shadow:0 20px 42px rgba(0,0,0,.32); }
html[data-theme="dark"] body .fegn-about .fegn-about-expertise .fegn-about-capability-icon { background:linear-gradient(135deg,rgba(52,88,129,.7),rgba(22,43,67,.92)); border-color:rgba(154,194,255,.28); filter:invert(80%) sepia(34%) saturate(607%) hue-rotate(181deg) brightness(105%) contrast(101%); }
@media (max-width:700px) {
 body .fegn-about .fegn-about-expertise .fegn-about-capabilities { grid-template-columns:1fr; gap:12px; }
 body .fegn-about .fegn-about-expertise .fegn-about-capability { grid-template-columns:24px 44px 1fr; gap:13px; min-height:0; padding:19px 16px; }
 body .fegn-about .fegn-about-expertise .fegn-about-capability-icon { width:44px; height:44px; padding:11px; border-radius:12px; }
}
@media (prefers-reduced-motion:reduce) {
 body .fegn-about .fegn-about-expertise .fegn-about-capability { transition:none; }
 body .fegn-about .fegn-about-expertise .fegn-about-capability:hover { transform:none; }
}
/* Expertise photo and glass treatment, isolated to this section in both themes. */
body .fegn-about .fegn-about-expertise {
 --about-ink:#f5f9ff;
 --about-copy:#dce8f5;
 --about-blue:#b5d6ff;
 background:linear-gradient(110deg,rgba(7,25,49,.92),rgba(12,47,87,.78) 55%,rgba(16,63,108,.66)),url('../images/about-expertise-building.jpg') center / cover no-repeat #102d50;
 border-block:1px solid #294c70;
}
body .fegn-about .fegn-about-expertise .fegn-about-expertise-heading > p:last-child { max-width:none; }
html body .fegn-about .fegn-about-expertise .fegn-about-capability,
html[data-theme] body .fegn-about .fegn-about-expertise .fegn-about-capability {
 grid-template-columns:1fr 48px;
 grid-template-rows:48px minmax(0,1fr);
 align-content:start;
 gap:22px 14px;
 padding:28px;
 border:1px solid rgba(194,221,255,.3);
 background:linear-gradient(145deg,rgba(213,234,255,.16),rgba(103,161,223,.06));
 box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 16px 40px rgba(2,13,30,.22);
 backdrop-filter:blur(18px) saturate(130%);
 -webkit-backdrop-filter:blur(18px) saturate(130%);
}
html body .fegn-about .fegn-about-expertise .fegn-about-capability-copy { grid-column:1 / -1; display:flex; flex-direction:column; min-width:0; }
html body .fegn-about .fegn-about-expertise .fegn-about-capability-copy > h3 { min-height:2.6em; }
html body .fegn-about .fegn-about-expertise .fegn-about-capability-copy > .fegn-about-tags { min-height:3.4em; margin-top:auto; padding-top:14px; }
html body .fegn-about .fegn-about-expertise .fegn-about-capability:hover,
html[data-theme] body .fegn-about .fegn-about-expertise .fegn-about-capability:hover {
 border-color:rgba(194,221,255,.6);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 22px 46px rgba(2,13,30,.32);
}
html body .fegn-about .fegn-about-expertise .fegn-about-capability-icon,
html[data-theme] body .fegn-about .fegn-about-expertise .fegn-about-capability-icon {
 margin:0;
 align-self:start;
 justify-self:end;
 border-color:rgba(255,255,255,.28);
 background:rgba(255,255,255,.09);
 filter:brightness(0) invert(1);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 html body .fegn-about .fegn-about-expertise .fegn-about-capability,
 html[data-theme] body .fegn-about .fegn-about-expertise .fegn-about-capability { background:rgba(20,49,81,.94); }
}
@media (max-width:900px) {
 body .fegn-about .fegn-about-expertise .fegn-about-capabilities { grid-template-columns:1fr; gap:16px; }
 html body .fegn-about .fegn-about-expertise .fegn-about-capability,
 html[data-theme] body .fegn-about .fegn-about-expertise .fegn-about-capability { grid-template-columns:1fr 44px; grid-template-rows:44px auto; gap:18px 13px; min-height:0; padding:24px; }
 html body .fegn-about .fegn-about-expertise .fegn-about-capability-copy > h3 { min-height:0; }
 html body .fegn-about .fegn-about-expertise .fegn-about-capability-copy > .fegn-about-tags { min-height:0; }
}
/* Selected Work: homepage only; image showcases with navy glass panels. */
body.home .ft-selected-work {
 --ft-work-surface: #f6f8fb;
 --ft-work-ink: #10243e;
 --ft-work-copy: #4b5d73;
 --ft-work-blue: #235bb1;
 box-sizing: border-box;
 margin: 0;
 padding: clamp(2rem, 4vw, 3rem) max(1.25rem, var(--wp--preset--spacing--40, 2rem));
 background: var(--ft-work-surface);
 color: var(--ft-work-ink);
}
body.home .ft-selected-work__inner {
 max-width: var(--wp--style--global--wide-size, 75rem);
 margin-inline: auto;
}
body.home .ft-selected-work__header {
 display: grid;
 grid-template-columns: 1.1fr 1fr;
 align-items: end;
 gap: 1rem 3rem;
 margin-bottom: 1.5rem;
}
body.home .ft-selected-work__label {
 margin: 0 0 .625rem;
 color: var(--ft-work-blue);
 font-size: .75rem;
 font-weight: 600;
 letter-spacing: .14em;
}
body.home .ft-selected-work__heading {
 margin: 0;
 color: var(--ft-work-ink);
 font-size: clamp(1.75rem, 2.8vw, 2.5rem);
 font-weight: 600;
 line-height: 1.2;
 letter-spacing: -.035em;
 text-wrap: balance;
}
body.home .ft-selected-work__intro {
 max-width: 56ch;
 margin: 0;
 color: var(--ft-work-copy);
 font-size: .9375rem;
 line-height: 1.7;
}
body.home .ft-selected-work__grid {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 1rem;
}
body.home .ft-selected-work__card {
 position: relative;
 isolation: isolate;
 overflow: hidden;
 box-sizing: border-box;
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 min-width: 0;
 min-height: 360px;
 margin: 0;
 padding: 1rem;
 border: 1px solid rgba(151, 184, 223, .35);
 border-radius: 14px;
 background: #0c223b;
 box-shadow: 0 8px 22px rgba(12, 35, 64, .12);
 transition: transform 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}
body.home .ft-selected-work__card--erp { --ft-work-image: url("../images/capabilities/erp.webp"); }
body.home .ft-selected-work__card--saas { --ft-work-image: url("../images/capabilities/saas.webp"); }
body.home .ft-selected-work__card--ai { --ft-work-image: url("../images/capabilities/ai.webp"); }
body.home .ft-selected-work__card::before,
body.home .ft-selected-work__card::after {
 content: "";
 position: absolute;
 inset: 0;
 pointer-events: none;
}
body.home .ft-selected-work__card::before {
 z-index: -2;
 background-image: var(--ft-work-image);
 background-size: cover;
 background-position: center;
 transition: transform 450ms ease;
}
body.home .ft-selected-work__card::after {
 z-index: -1;
 background: linear-gradient(180deg, rgba(8, 25, 48, .12) 0%, rgba(8, 25, 48, .3) 36%, rgba(8, 25, 48, .78) 100%);
}
body.home .ft-selected-work__panel {
 display: flex;
 flex-direction: column;
 min-width: 0;
 padding: 1.125rem;
 border: 1px solid rgba(221, 234, 250, .2);
 border-radius: 10px;
 background: rgba(8, 25, 48, .58);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 box-shadow: 0 4px 14px rgba(3, 15, 30, .12);
 transition: background-color 420ms ease, border-color 420ms ease;
}
body.home .ft-selected-work__category {
 margin: 0 0 .625rem;
 color: #bdd9ff;
 font-size: .6875rem;
 font-weight: 600;
 letter-spacing: .075em;
 line-height: 1.5;
 text-transform: uppercase;
}
body.home .ft-selected-work__title {
 margin: 0 0 .625rem;
 color: #f5f9ff;
 font-size: 1.1875rem;
 font-weight: 600;
 line-height: 1.4;
 letter-spacing: -.02em;
 text-wrap: balance;
}
body.home .ft-selected-work__description {
 margin: 0 0 1rem;
 color: #e0e9f5;
 font-size: .875rem;
 line-height: 1.7;
}
body.home .ft-selected-work__status {
 margin: auto 0 0;
 padding-top: .875rem;
 border-top: 1px solid rgba(221, 234, 250, .2);
 color: #c7d8ed;
 font-size: .75rem;
 line-height: 1.5;
}
html[data-theme="dark"] body.home .ft-selected-work {
 --ft-work-surface: #101c2d;
 --ft-work-ink: #f1f6fc;
 --ft-work-copy: #c4d2e4;
 --ft-work-blue: #a8ceff;
}
@media (hover: hover) and (pointer: fine) {
 body.home .ft-selected-work__card:hover {
  transform: translateY(-3px);
  border-color: rgba(189, 217, 255, .65);
  box-shadow: 0 12px 28px rgba(12, 35, 64, .18);
 }
 body.home .ft-selected-work__card:hover::before { transform: scale(1.045); }
 body.home .ft-selected-work__card:hover .ft-selected-work__panel {
  background-color: rgba(8, 25, 48, .65);
  border-color: rgba(221, 234, 250, .32);
 }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
 body.home .ft-selected-work__panel { background-color: rgba(8, 25, 48, .78); }
}
@media (max-width: 1023px) {
 body.home .ft-selected-work__header { grid-template-columns: 1fr; gap: .875rem; }
 body.home .ft-selected-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 body.home .ft-selected-work__card:last-child { grid-column: 1 / -1; }
 body.home .ft-selected-work__card { min-height: 330px; }
}
@media (max-width: 639px) {
 body.home .ft-selected-work { padding: 2rem 1.25rem; }
 body.home .ft-selected-work__grid { grid-template-columns: 1fr; gap: .875rem; }
 body.home .ft-selected-work__card { min-height: 320px; padding: .875rem; }
 body.home .ft-selected-work__panel { padding: 1rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
@media (prefers-reduced-motion: reduce) {
 body.home .ft-selected-work__card,
 body.home .ft-selected-work__card::before,
 body.home .ft-selected-work__panel { transition: none; }
 body.home .ft-selected-work__card:hover,
 body.home .ft-selected-work__card:hover::before { transform: none; }
}

/* Why Choose Us hero: same tall, image-led composition as About Us. */
body.page-id-8 .fegn-wcu-hero {
 padding:86px 0 28px !important;
 background:#10263e url("../images/wcu-hero-team.jpg") center 52% / cover no-repeat !important;
 position:relative;
 isolation:isolate;
 text-align:left;
}
body.page-id-8 .fegn-wcu-hero::before {
 content:"" !important;
 position:absolute;
 inset:0;
 z-index:-1;
 background:linear-gradient(90deg,rgba(6,22,40,.84) 0%,rgba(6,22,40,.66) 43%,rgba(6,22,40,.26) 100%);
}
body.page-id-8 .fegn-wcu-hero .alignwide {
 max-width:690px;
 margin-left:max(32px,calc((100vw - 1200px) / 2));
 padding:36px 40px;
 background:rgba(8,28,50,.52);
 border:1px solid rgba(255,255,255,.28);
 border-radius:20px;
 box-shadow:0 18px 45px rgba(2,12,24,.26);
 backdrop-filter:blur(16px) saturate(125%);
 -webkit-backdrop-filter:blur(16px) saturate(125%);
}
body.page-id-8 .fegn-wcu-hero :is(.fegn-wcu-title,.fegn-lead,.fegn-hero-badge) { color:#fff !important; }
body.page-id-8 .fegn-wcu-hero .fegn-hero-badge { background:rgba(255,255,255,.13); border-color:rgba(255,255,255,.22); }
@media (max-width:700px) {
 body.page-id-8 .fegn-wcu-hero { padding:60px 0 25px !important; background-position:60% center !important; }
 body.page-id-8 .fegn-wcu-hero .alignwide { width:calc(100% - 40px); margin-inline:auto; padding:26px 22px; }
}

/* social icons: smaller + one line, no slider — 6 icons fit without cut */
.fegn-social-row{flex-wrap:nowrap !important;overflow:visible !important;gap:.4rem !important;padding:0 !important;}
.fegn-social-row .wp-social-link{flex-shrink:0 !important;}
.fegn-social-row .wp-social-link a{width:34px !important;min-width:34px !important;height:34px !important;min-height:34px !important;}
.fegn-social-row .wp-social-link svg{width:16px !important;height:16px !important;}
.fegn-social-row::-webkit-scrollbar{display:none;}
