/* ==========================================================================
   EZI Loads — Theme design system
   Colours/fonts are driven by CSS variables output from Theme Options
   (see inc/dynamic-css.php). Fallback defaults declared here.
   ========================================================================== */

:root {
	--ezi-primary: #0b4499;
	--ezi-primary-rgb: 11, 68, 153;
	--ezi-accent: #db0029;
	--ezi-accent-rgb: 219, 0, 41;
	--ezi-dark: #0d1b2e;
	--ezi-dark-rgb: 13, 27, 46;
	--ezi-light: #f4f6fa;
	--ezi-heading: #0d1b2e;
	--ezi-text: #0d1b2e;
	--ezi-muted: #5b6b80;
	--ezi-footer-bg: #0b4499;
	--ezi-footer-text: #ffffff;
	--ezi-font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ezi-font-body: "Geist", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ezi-base-size: 16px;
	--ezi-h-tracking: -1.5px;

	--ezi-radius: 8px;
	--ezi-gutter: 80px;
	--ezi-maxw: 1440px;
	--ezi-content: 1280px; /* boxed content width (design spec) */
	--ezi-heading-gap: 20px; /* consistent gap between a heading and the text below it */
	--ezi-section-y: 88px;
	--ezi-shadow: 0 10px 30px rgba(13, 27, 46, .08);
	--ezi-shadow-lg: 0 20px 50px rgba(13, 27, 46, .14);
}

/* ------------------------------ Base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ezi-font-body);
	font-size: var(--ezi-base-size);
	line-height: 1.6;
	color: var(--ezi-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ezi-primary); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--ezi-accent); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ezi-font-heading);
	color: var(--ezi-heading);
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); letter-spacing: var(--ezi-h-tracking); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.5rem); letter-spacing: var(--ezi-h-tracking); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; }
.ezi-accent { color: var(--ezi-primary); }

.ezi-container {
	width: min(100% - 40px, var(--ezi-content));
	margin-inline: auto;
	padding: 0;
}
.ezi-main { overflow: hidden; }
.ezi-section { padding: var(--ezi-section-y) 0; }
.ezi-section--light { background: var(--ezi-light); }
.ezi-skip-link { position: absolute; left: -9999px; }
.ezi-skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 10px 16px; z-index: 9999; border-radius: 6px; }

/* --------------------------- WPBakery integration ------------------------ */
/* Boxed page container — WPBakery rows sit inside this and box to 1280px. */
.ezi-page-content { width: min(100% - 40px, var(--ezi-content)); margin-inline: auto; padding: 0; }
.ezi-page-content > .vc_row,
.ezi-page-content > .wpb_row { margin-bottom: 0; }

/* Section vertical padding + helper spacing (use as WPBakery row "Extra class name"). */
.ezi-py { padding-top: var(--ezi-section-y); padding-bottom: var(--ezi-section-y); }
.ezi-pt { padding-top: var(--ezi-section-y); }
.ezi-pb { padding-bottom: var(--ezi-section-y); }
.ezi-gap-sm { padding-top: 24px; padding-bottom: 24px; }
.ezi-pt-lg { padding-top: 130px; }
.ezi-pb-lg { padding-bottom: 130px; }

/* Equal-height tiles: make a WPBakery row flex so its columns stretch to the
   tallest, and let the tile fill its column. Add class "ezi-tiles" to the row. */
.ezi-tiles.vc_row, .ezi-tiles.vc_row-inner, .ezi-tiles { display: flex; flex-wrap: wrap; align-items: stretch; row-gap: 24px; }
.ezi-tiles > .wpb_column, .ezi-tiles > .vc_column_container { display: flex; }
.ezi-tiles > .wpb_column > .vc_column-inner, .ezi-tiles > .vc_column_container > .vc_column-inner { display: flex; flex-direction: column; width: 100%; }
.ezi-tiles .vc_column-inner > .wpb_wrapper { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; }
.ezi-tiles .ezi-service-box, .ezi-tiles .ezi-testimonial { flex: 1 1 auto; }
/* Vertical space between stacked tile rows, and between a section heading and
   the first tile row (WPBakery inner rows carry no vertical margin by default). */
.ezi-tiles.vc_inner { margin-top: 32px; }
.ezi-heading + .vc_inner.ezi-tiles { margin-top: 40px; }

/* Full-bleed coloured bands: content stays boxed, a ::before paints edge-to-edge.
   Add e.g. class "ezi-band ezi-band--blue ezi-py" to a WPBakery row. */
.ezi-band { position: relative; z-index: 0; }
.ezi-band > * { position: relative; z-index: 1; }
/* High specificity + !important so we beat WPBakery's .vc_row:before clearfix. */
.ezi-band::before,
.vc_row.ezi-band::before,
.wpb_row.ezi-band::before {
	content: "" !important; display: block !important; position: absolute !important;
	top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: 0; clear: none;
}
.ezi-band--light::before, .vc_row.ezi-band--light::before { background: var(--ezi-light); }
.ezi-band--blue::before,  .vc_row.ezi-band--blue::before  { background: var(--ezi-primary); }
.ezi-band--navy::before,  .vc_row.ezi-band--navy::before  { background: var(--ezi-dark); }
.ezi-band--blue, .ezi-band--navy { color: #fff; }
.ezi-band--blue :is(h1,h2,h3,h4,p,li), .ezi-band--navy :is(h1,h2,h3,h4,p,li) { color: #fff; }
.ezi-band--blue .ezi-eyebrow, .ezi-band--navy .ezi-eyebrow { color: #fff; opacity: .85; }
/* On dark bands, an un-coloured highlight defaults to white (no underline).
   A chosen Highlight Colour sets an inline style, which wins over this. */
.ezi-band--blue .ezi-accent:not([style]), .ezi-band--navy .ezi-accent:not([style]) { color: #fff; }

/* A boxed light section (non full-bleed) helper. */
.ezi-panel-light { background: var(--ezi-light); border-radius: var(--ezi-radius); }

/* --------------------------- Buttons ------------------------------------- */
.ezi-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--ezi-font-heading); font-weight: 700; font-size: 14px;
	border-radius: var(--ezi-radius); cursor: pointer; border: 1px solid transparent;
	transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
	line-height: 1; text-align: center;
}
.ezi-btn .ezi-icon { transition: transform .2s; }
.ezi-btn:hover .ezi-icon { transform: translateX(3px); }
.ezi-btn--md { padding: 12px 20px; }
.ezi-btn--lg { padding: 16px 28px; font-size: 15px; }
.ezi-btn--primary { background: var(--ezi-primary); color: #fff; }
.ezi-btn--primary:hover { background: #093a83; color: #fff; }
.ezi-btn--red { background: var(--ezi-accent); color: #fff; }
.ezi-btn--red:hover { background: #b8001f; color: #fff; }
.ezi-btn--white { background: #fff; color: var(--ezi-primary); }
.ezi-btn--white:hover { background: #eef2fb; color: var(--ezi-primary); }
.ezi-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.ezi-btn--outline:hover { background: #fff; color: var(--ezi-dark); }
.ezi-btn--ghost { background: transparent; color: var(--ezi-dark); border-color: rgba(var(--ezi-dark-rgb), .2); }
.ezi-btn--ghost:hover { background: var(--ezi-dark); color: #fff; }
/* On solid blue / navy background sections a blue "primary" button blends into
   the background, so switch it to the red accent for strong, on-brand contrast.
   This covers coloured bands, blue/navy CTA boxes, and heroes that use a solid
   blue overlay (ov-blue). Photo heroes with a dark overlay (ov-dark) keep the
   blue button, since the image behind it gives enough contrast. */
.ezi-band--blue .ezi-btn--primary,
.ezi-band--navy .ezi-btn--primary,
.ezi-cta--blue .ezi-btn--primary,
.ezi-cta--navy .ezi-btn--primary,
.ezi-hero--ov-blue .ezi-btn--primary { background: var(--ezi-accent); color: #fff; }
.ezi-band--blue .ezi-btn--primary:hover,
.ezi-band--navy .ezi-btn--primary:hover,
.ezi-cta--blue .ezi-btn--primary:hover,
.ezi-cta--navy .ezi-btn--primary:hover,
.ezi-hero--ov-blue .ezi-btn--primary:hover { background: #b8001f; color: #fff; }
.ezi-btn-wrap { display: flex; }
.ezi-btn-wrap--center { justify-content: center; }
.ezi-btn-wrap--right { justify-content: flex-end; }

/* Inline arrow link (Learn More) */
.ezi-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--ezi-font-heading); font-weight: 700; font-size: 14px; color: var(--ezi-primary);
}
.ezi-link .ezi-icon { transition: transform .2s; }
.ezi-link:hover { color: var(--ezi-primary); }
.ezi-link:hover .ezi-icon { transform: translateX(3px); }

/* Eyebrow + badge */
.ezi-eyebrow {
	font-family: var(--ezi-font-heading); font-weight: 700; font-size: 15px;
	letter-spacing: .06em; text-transform: uppercase; color: var(--ezi-primary); margin: 0 0 12px;
}
.ezi-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--ezi-accent); color: #fff; border-radius: 99px;
	padding: 8px 16px; font-family: var(--ezi-font-heading); font-weight: 600;
	font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.ezi-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* --------------------------- Header / Navbar ----------------------------- */
.ezi-header { position: relative; z-index: 500; padding: 24px 0; }
.ezi-header.is-sticky { position: sticky; top: 0; }
.ezi-navbar {
	display: flex; align-items: center; gap: 24px;
	background: rgba(255,255,255,.72);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	border: 1px solid rgba(255,255,255,.6);
	box-shadow: var(--ezi-shadow); border-radius: var(--ezi-radius);
	padding: 0 16px 0 28px; height: 80px;
}
.ezi-navbar__logo { display: flex; align-items: center; }
.ezi-navbar__logo img { max-height: 48px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.ezi-navbar__menu { margin-left: auto; }
.ezi-menu { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; position: relative; }
.ezi-menu > li { position: relative; }
.ezi-menu a {
	font-family: var(--ezi-font-heading); font-weight: 600; font-size: 15px; color: var(--ezi-dark);
	padding: 6px 4px; position: relative;
}
.ezi-menu a:hover, .ezi-menu .current-menu-item > a { color: var(--ezi-primary); }
.ezi-menu .current-menu-item > a { font-weight: 700; } /* active = bold, rest = semibold */
/* Fallback per-item underline (shown only if the JS sliding indicator isn't active). */
.ezi-menu a::after {
	content: ""; position: absolute; left: -8px; right: -8px; bottom: -3px; height: 2px;
	background: var(--ezi-primary);
	transform: scaleX(0); transform-origin: right center;
	transition: transform .28s ease;
}
.ezi-menu a:hover::after,
.ezi-menu .current-menu-item > a::after { transform: scaleX(1); transform-origin: left center; }
/* One blue bar that glides between items and back (JS-driven). */
.ezi-menu.has-indicator > li > a::after { display: none; }
.ezi-menu__indicator {
	position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
	background: var(--ezi-primary); opacity: 0; pointer-events: none;
	transition: transform .32s cubic-bezier(.4,0,.2,1), width .32s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
/* Dropdowns — clean white card, with a springy "flip-down" reveal. */
.ezi-menu .menu-item-has-children { perspective: 1500px; }
.ezi-menu .menu-item-has-children > a { padding-right: 18px; }
.ezi-menu .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 2px; top: 45%; width: 6px; height: 6px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg); opacity: .7;
	transition: transform .3s cubic-bezier(.34,1.4,.5,1), opacity .2s ease;
}
.ezi-menu .menu-item-has-children:hover > a::before,
.ezi-menu .menu-item-has-children:focus-within > a::before {
	transform: translateY(-25%) rotate(-135deg); opacity: 1;
}
.ezi-menu .menu-item-has-children::after { /* invisible hover bridge over the gap */
	content: ""; position: absolute; top: 100%; left: -14px; right: -14px; height: 22px;
}
.ezi-menu .sub-menu {
	position: absolute; top: 100%; left: -14px; min-width: 232px;
	list-style: none; margin: 16px 0 0; padding: 8px;
	background: #fff; border-radius: 12px; box-shadow: var(--ezi-shadow-lg);
	opacity: 0; visibility: hidden;
	transform: rotateX(-88deg); transform-origin: top center;
	transition: opacity .16s ease, transform .42s cubic-bezier(.3,1.35,.5,1), visibility .42s;
	z-index: 700;
}
.ezi-menu .menu-item-has-children:hover > .sub-menu,
.ezi-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: rotateX(0deg);
}
.ezi-menu .sub-menu li { display: block; }
.ezi-menu .sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ezi-dark) !important; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.ezi-menu .sub-menu a::before, .ezi-menu .sub-menu a::after { display: none; }
.ezi-menu .sub-menu a:hover { background: var(--ezi-light); color: var(--ezi-primary) !important; }
.ezi-navbar__actions { display: flex; align-items: center; gap: 10px; }
.ezi-navbar__toggle { display: none; background: none; border: none; color: var(--ezi-dark); cursor: pointer; padding: 6px; }

/* Transparent over hero */
.ezi-header.is-transparent {
	position: absolute; left: 0; right: 0; top: 0;
}
/* Frosted glass over the hero, tuned low-opacity so WHITE nav text reads. */
.ezi-header.is-transparent .ezi-navbar {
	background: rgba(255,255,255,.45);
	border-color: rgba(255,255,255,.3);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
}
.ezi-header.is-transparent:not(.is-scrolled) .ezi-menu > li > a { color: #fff; }
.ezi-header.is-transparent:not(.is-scrolled) .ezi-menu > li > a:hover { color: var(--ezi-primary); opacity: 1; }
.ezi-header.is-transparent:not(.is-scrolled) .ezi-menu > .current-menu-item > a { color: var(--ezi-primary); opacity: 1; }
.ezi-header.is-transparent:not(.is-scrolled) .ezi-navbar__toggle { color: #fff; }
/* When scrolled, the JS adds .is-scrolled to make it solid */
.ezi-header.is-scrolled { position: fixed; left: 0; right: 0; top: 0; padding: 12px 0; animation: eziDrop .3s ease; }
.ezi-header.is-scrolled .ezi-navbar { background: rgba(255,255,255,.75); border-color: rgba(13,27,46,.06); }
.ezi-header.is-scrolled .ezi-menu a { color: var(--ezi-dark); }
/* Scrolled (solid) nav: dark text, blue hover + blue underline (not white). */
.ezi-header.is-scrolled .ezi-menu a:hover,
.ezi-header.is-scrolled .ezi-menu .current-menu-item > a { color: var(--ezi-primary); }
.ezi-header.is-scrolled .ezi-menu a::after { background: var(--ezi-primary); }
@keyframes eziDrop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
/* Offset the floating header below the WP admin bar for logged-in users. */
body.admin-bar .ezi-header.is-transparent,
body.admin-bar .ezi-header.is-scrolled { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .ezi-header.is-transparent,
	body.admin-bar .ezi-header.is-scrolled { top: 46px; }
}

/* Mobile drawer */
.ezi-mobile-nav {
	position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); background: #fff;
	box-shadow: var(--ezi-shadow-lg); transform: translateX(100%); transition: transform .3s ease;
	z-index: 999; padding: 90px 28px 28px; overflow-y: auto;
}
.ezi-mobile-nav.is-open { transform: translateX(0); }
body.ezi-nav-open { overflow: hidden; }
/* Lift the header (which contains the drawer) above the backdrop so menu items are clickable. */
body.ezi-nav-open .ezi-header { z-index: 1001; }
.ezi-mobile-nav__inner { display: flex; flex-direction: column; gap: 18px; }
.ezi-mobile-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ezi-mobile-menu a { display: block; padding: 10px 0; font-family: var(--ezi-font-heading); font-weight: 600; color: var(--ezi-dark); border-bottom: 1px solid #eef1f5; }
.ezi-mobile-menu .menu-item-has-children { position: relative; }
/* Collapsible sub-menu (click to expand — no hover/scroll needed on touch). */
.ezi-mobile-menu .sub-menu { list-style: none; margin: 0; padding: 0 0 0 16px; max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.ezi-mobile-menu .menu-item-has-children.is-open > .sub-menu { max-height: 600px; margin: 0 0 4px; }
.ezi-mobile-menu .sub-menu a { font-weight: 400; font-size: 14px; color: var(--ezi-muted); padding: 8px 0; }
.ezi-mobile-menu .sub-menu a:hover { color: var(--ezi-primary); }
/* Tap-target caret injected by JS on parent items. */
.ezi-mobile-caret { position: absolute; top: 2px; right: 0; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ezi-dark); }
.ezi-mobile-caret::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s ease; }
.ezi-mobile-menu .menu-item-has-children.is-open > .ezi-mobile-caret::before { transform: translateY(2px) rotate(-135deg); }
.ezi-mobile-socials { display: flex; gap: 10px; }
.ezi-mobile-socials a { width: 38px; height: 38px; border-radius: 8px; background: var(--ezi-light); display: grid; place-items: center; color: var(--ezi-primary); }
.ezi-nav-backdrop { position: fixed; inset: 0; background: rgba(13,27,46,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 998; }
.ezi-nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ------------------------------ Ticker ----------------------------------- */
.ezi-ticker { overflow: hidden; background: var(--ezi-light); border-top: 1px solid rgba(13,27,46,.06); border-bottom: 1px solid rgba(13,27,46,.06);
	/* Always full-bleed, even inside the boxed 1280 content. */
	position: relative; left: 50%; transform: translateX(-50%); width: 100vw; max-width: 100vw; }
.ezi-ticker--blue { background: var(--ezi-primary); }
.ezi-ticker--navy { background: var(--ezi-dark); }
.ezi-ticker__track { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; padding: 16px 0; animation: eziMarquee 40s linear infinite; }
.ezi-ticker__item { font-family: var(--ezi-font-heading); font-weight: 600; font-size: 15px; color: var(--ezi-dark); }
.ezi-ticker--blue .ezi-ticker__item, .ezi-ticker--navy .ezi-ticker__item { color: #fff; }
.ezi-ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ezi-accent); flex: 0 0 auto; }
.ezi-ticker--blue .ezi-ticker__dot, .ezi-ticker--navy .ezi-ticker__dot { background: #fff; }
.ezi-ticker:hover .ezi-ticker__track { animation-play-state: paused; }
@keyframes eziMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------ Hero ------------------------------------- */
.ezi-hero {
	position: relative; background-size: cover; background-position: center;
	background-color: var(--ezi-dark); /* fallback before a hero image is set */
	color: #fff; display: flex; align-items: center;
	/* Full-bleed breakout that is scrollbar-aware: 100vw includes the scrollbar,
	   which would shift the hero (and its content) off the page grid. Using the
	   true content width (100vw - scrollbar) keeps the hero content aligned with
	   the header bar and page sections at every width. --sbw is set in JS; it
	   falls back to 0 (correct for touch/overlay scrollbars). */
	width: calc(100vw - var(--sbw, 0px));
	margin-left: calc(50% - (100vw - var(--sbw, 0px)) / 2);
	margin-right: calc(50% - (100vw - var(--sbw, 0px)) / 2);
}
.ezi-hero--h-tall { min-height: 760px; padding: 180px 0 90px; }
.ezi-hero--h-medium { min-height: 560px; padding: 170px 0 80px; }
.ezi-hero--h-compact { min-height: 420px; padding: 150px 0 70px; }
.ezi-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.ezi-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; border: 0; }
/* Dark (navy) overlay: diagonal, 65% at bottom-left fading to 25% at top-right. */
.ezi-hero--ov-dark::before { background: linear-gradient(to top right, rgba(var(--ezi-dark-rgb), .65) 0%, rgba(var(--ezi-dark-rgb), .25) 100%); }
.ezi-hero--ov-blue::before { background: linear-gradient(90deg, rgba(var(--ezi-primary-rgb),.92) 0%, rgba(var(--ezi-primary-rgb),.6) 100%); }
.ezi-hero--ov-none::before { background: transparent; }
/* Video hero keeps the same overlay treatment as its chosen style (dark = diagonal above). */
.ezi-hero--has-video.ezi-hero--ov-blue::before,
.ezi-hero--has-video.ezi-hero--ov-none::before {
	background: linear-gradient(180deg, rgba(var(--ezi-dark-rgb), .28) 0%, rgba(var(--ezi-dark-rgb), .55) 55%, rgba(var(--ezi-dark-rgb), .92) 100%);
}
.ezi-hero .ezi-container { position: relative; z-index: 2; }
.ezi-hero__content { max-width: 840px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--ezi-heading-gap); }
.ezi-hero__title { color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); margin: 0; }
.ezi-hero__subtext { color: rgba(255,255,255,.9); font-size: 1.05rem; max-width: 560px; margin: 0; }
.ezi-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* Interior page hero */
.ezi-page-hero {
	background: linear-gradient(120deg, var(--ezi-primary), var(--ezi-dark));
	background-size: cover; background-position: center; color: #fff;
	padding: 180px 0 70px;
}
.ezi-page-hero.has-image { padding: 200px 0 80px; }
.ezi-page-hero__title { color: #fff; margin: var(--ezi-heading-gap) 0 0; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.ezi-page-hero__subtitle { color: rgba(255,255,255,.85); margin: var(--ezi-heading-gap) 0 0; max-width: 640px; }
.ezi-breadcrumbs { font-size: 14px; color: rgba(255,255,255,.8); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ezi-breadcrumbs a { color: rgba(255,255,255,.8); }
.ezi-breadcrumbs a:hover { color: #fff; }
.ezi-breadcrumbs .sep { opacity: .5; }

/* --------------------------- Section heading ----------------------------- */
.ezi-heading { display: flex; flex-direction: column; gap: var(--ezi-heading-gap); margin-bottom: 8px; }
.ezi-heading--center { align-items: center; text-align: center; }
.ezi-heading--left { align-items: flex-start; text-align: left; }
.ezi-heading__title { margin: 0; }
.ezi-heading__intro { color: var(--ezi-muted); max-width: 620px; margin: 0; }
.ezi-heading--dark .ezi-heading__title { color: #fff; }
.ezi-heading--dark .ezi-heading__intro { color: rgba(255,255,255,.82); }
.ezi-heading--dark .ezi-accent:not([style]) { color: #fff; }

/* --------------------------- Service box --------------------------------- */
.ezi-service-box {
	display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
	background: #fff; border-radius: var(--ezi-radius); padding: 40px 32px 32px;
	box-shadow: var(--ezi-shadow); height: 100%; transition: transform .2s, box-shadow .2s; color: var(--ezi-text);
}
a.ezi-service-box:hover { transform: translateY(-4px); box-shadow: var(--ezi-shadow-lg); color: var(--ezi-text); }
.ezi-service-box:hover .ezi-icon { transform: translateX(3px); } /* move arrow on whole-tile hover */
.ezi-service-box__bar { width: 56px; height: 6px; border-radius: 8px; background: var(--ezi-accent); display: block; }

/* Photo card variant: cover photo across the top (rounded by the card), no red bar. */
.ezi-service-box--photo { padding: 0 28px 30px; overflow: hidden; gap: 12px; }
.ezi-service-box__photo {
	display: block; flex: 0 0 auto; width: calc(100% + 56px); margin: 0 -28px 12px;
	aspect-ratio: 16 / 10; background-size: cover; background-position: center; background-color: var(--ezi-light);
}
/* Calm hover for photo tiles: no lift, no zoom — just a softly deeper shadow. */
a.ezi-service-box--photo:hover { transform: none; box-shadow: var(--ezi-shadow-lg); }
.ezi-service-box--photo .ezi-service-box__title { font-size: 1.3rem; }
.ezi-service-box__icon img { width: 44px; height: 44px; object-fit: contain; }
.ezi-service-box__title { margin: 0; font-size: 1.4rem; }
.ezi-service-box__text { color: var(--ezi-muted); font-size: .95rem; margin: 0; }
.ezi-service-box__link { margin-top: auto; }

/* --------------------------- Team member --------------------------------- */
.ezi-team-member { display: flex; flex-direction: column; gap: 14px; }
.ezi-team-member__photo {
	position: relative; aspect-ratio: 4 / 5.2; border-radius: var(--ezi-radius);
	background-size: cover; background-position: center top; overflow: hidden; background-color: var(--ezi-light);
}
.ezi-team-member__socials {
	position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px;
	opacity: 0; transform: translateY(8px); transition: .25s;
}
/* Branded fallback: show the whole EZI Loads logo, centred, never cropped. */
.ezi-team-member__photo--placeholder { background-size: contain; background-position: center center; background-repeat: no-repeat; }
.ezi-team-member__photo:hover .ezi-team-member__socials { opacity: 1; transform: translateY(0); }
.ezi-team-member__socials a { width: 36px; height: 36px; border-radius: 8px; background: #fff; color: var(--ezi-primary); display: grid; place-items: center; box-shadow: var(--ezi-shadow); }
.ezi-team-member__info { }
.ezi-team-member__name { margin: 0; font-size: 1.15rem; }
.ezi-team-member__role { margin: 2px 0 0; color: var(--ezi-muted); font-size: .9rem; }
.ezi-team-member__bio { margin: 8px 0 0; color: var(--ezi-muted); font-size: .88rem; }

/* --------------------------- Testimonial --------------------------------- */
.ezi-testimonial {
	display: flex; flex-direction: column; gap: 18px; background: #fff;
	border: 1px solid #eef1f5; border-radius: var(--ezi-radius); padding: 32px; margin: 0; height: 100%;
	box-shadow: var(--ezi-shadow);
}
.ezi-testimonial__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ezi-testimonial__logo { max-height: 60px; width: auto; max-width: 200px; }
.ezi-testimonial__mark { color: var(--ezi-accent); }
.ezi-testimonial__company { font-family: var(--ezi-font-heading); font-weight: 700; color: var(--ezi-dark); font-size: 1.05rem; line-height: 1.2; }
.ezi-testimonial__quote { margin: 0; font-size: 1rem; color: var(--ezi-dark); line-height: 1.6; }
.ezi-testimonial__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.ezi-testimonial__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ezi-testimonial__name { display: block; font-family: var(--ezi-font-heading); color: var(--ezi-dark); font-size: .95rem; }
.ezi-testimonial__role { display: block; color: var(--ezi-muted); font-size: .82rem; }

/* ------------------------------ Stat ------------------------------------- */
.ezi-stat { display: flex; flex-direction: column; gap: 6px; }
.ezi-stat__number { font-family: var(--ezi-font-heading); font-weight: 800; font-size: clamp(2.2rem, 3.4vw, 3rem); color: var(--ezi-primary); margin: 0; line-height: 1; }
.ezi-stat__label { font-family: var(--ezi-font-heading); font-weight: 700; color: var(--ezi-dark); margin: 0; }
.ezi-stat__sub { color: var(--ezi-muted); font-size: .85rem; margin: 0; }

/* ------------------------------ Step ------------------------------------- */
.ezi-step { border-radius: var(--ezi-radius); padding: 32px; color: #fff; height: 100%; }
.ezi-step--blue { background: var(--ezi-primary); }
.ezi-step--navy { background: var(--ezi-dark); }
.ezi-step__number { font-family: var(--ezi-font-heading); font-weight: 800; font-size: 4rem; color: rgba(255,255,255,.5); display: block; line-height: 1; }
.ezi-step__title { color: #fff; margin: 8px 0 16px; font-size: 1.5rem; line-height: 1.15; }
.ezi-step__text { color: #fff; font-size: .875rem; line-height: 1.7; margin: 0; }
/* "How It Works" 4-up cards: progressively darker blue (matches design 85/90/95/100%). */
.ezi-tiles > .wpb_column:nth-child(1) .ezi-step { background: rgba(12,68,153,.85); }
.ezi-tiles > .wpb_column:nth-child(2) .ezi-step { background: rgba(12,68,153,.90); }
.ezi-tiles > .wpb_column:nth-child(3) .ezi-step { background: rgba(12,68,153,.95); }
.ezi-tiles > .wpb_column:nth-child(4) .ezi-step { background: #0c4499; }

/* ------------------------------ Image / Badge ---------------------------- */
.ezi-image { margin: 0; }
.ezi-image__frame { display: block; width: 100%; border-radius: var(--ezi-radius); background-size: cover; background-position: center; background-color: var(--ezi-light); overflow: hidden; }
.ezi-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ezi-image__ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
	background: linear-gradient(135deg, #2a4a74, #13233c); color: #8aa2c4;
	font-family: var(--ezi-font-heading); font-weight: 700; letter-spacing: .5px; }
.ezi-image--square .ezi-image__frame { border-radius: 0; }
/* Square badge: fixed square card (rounded, not circular) showing the full logo. */
.ezi-image--badge { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ezi-image--badge .ezi-image__frame { flex: 0 0 auto; background-size: contain; background-repeat: no-repeat; background-color: #fff; }
.ezi-image--badge .ezi-image__ph { background: rgba(255,255,255,.14); color: #fff; font-size: .8rem; }
.ezi-image--circle { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ezi-image--circle .ezi-image__frame { border-radius: 50%; flex: 0 0 auto; }
.ezi-image--circle .ezi-image__ph { background: rgba(255,255,255,.14); color: #fff; font-size: .8rem; }
.ezi-band--blue .ezi-image--circle .ezi-image__ph, .ezi-band--navy .ezi-image--circle .ezi-image__ph { background: rgba(255,255,255,.16); }
/* Accreditation badges (Safety section): pack them at the LEFT of the column with a
   tight gap, instead of spreading evenly across the full column width. Desktop only —
   the ≤768 rule keeps them evenly sized side by side on mobile. */
@media (min-width: 769px) {
	.ezi-accred-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-start; align-items: flex-start; }
	.ezi-accred-row > .wpb_column { width: auto !important; flex: 0 0 auto; padding-left: 0; padding-right: 0; }
	.ezi-accred-row .ezi-image--badge { align-items: flex-start; }
	.ezi-accred-row .ezi-image__frame { width: 130px !important; height: 130px !important; }
}
.ezi-image__caption { display: block; text-align: center; font-family: var(--ezi-font-heading); font-weight: 600; font-size: .9rem; margin-top: 10px; color: inherit; }

/* ------------------------------ CTA -------------------------------------- */
.ezi-cta {
	display: flex; border-radius: var(--ezi-radius); overflow: hidden; height: 100%;
	box-shadow: var(--ezi-shadow);
}
.ezi-cta--blue { background: var(--ezi-primary); color: #fff; }
.ezi-cta--navy { background: var(--ezi-dark); color: #fff; }
.ezi-cta--light { background: var(--ezi-light); color: var(--ezi-dark); }
.ezi-cta__media { flex: 0 0 40%; background-size: cover; background-position: center; min-height: 220px; }
.ezi-cta.has-image .ezi-cta__body { flex: 1; }
.ezi-cta__body { display: flex; flex-direction: column; gap: 16px; justify-content: center; padding: 40px; }
.ezi-cta__logo { max-height: 52px; height: auto; width: auto; max-width: 220px; align-self: flex-start; flex: 0 0 auto; object-fit: contain; }
.ezi-cta__title { margin: 0; font-size: 1.5rem; }
.ezi-cta--blue .ezi-cta__title, .ezi-cta--navy .ezi-cta__title { color: #fff; }
.ezi-cta__text { margin: 0; font-size: .95rem; opacity: .92; }
.ezi-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---- Service boxes on a dark band (e.g. About "Our Values") --------------
   Plain white cards, dark text, no red bar. Overrides the band's white-text
   bleed so the card text isn't white-on-white. */
.ezi-band--blue .ezi-service-box__bar,
.ezi-band--navy .ezi-service-box__bar { display: none; }
.ezi-band--blue .ezi-service-box .ezi-service-box__title,
.ezi-band--navy .ezi-service-box .ezi-service-box__title { color: var(--ezi-heading); }
.ezi-band--blue .ezi-service-box .ezi-service-box__text,
.ezi-band--navy .ezi-service-box .ezi-service-box__text { color: var(--ezi-muted); }
.ezi-band--blue .ezi-service-box .ezi-link,
.ezi-band--navy .ezi-service-box .ezi-link { color: var(--ezi-primary); }

/* ------------------------------ Timeline --------------------------------- */
.ezi-timeline { width: 100%; }
.ezi-timeline__track { display: flex; align-items: flex-start; }
.ezi-timeline__item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ezi-timeline__year { font-family: var(--ezi-font-body); font-weight: 600; font-size: 16px; color: var(--ezi-dark); }
.ezi-timeline__marker { position: relative; width: 100%; height: 22px; display: flex; align-items: center; justify-content: center; margin: 14px 0; }
.ezi-timeline__marker::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); background: var(--ezi-light); z-index: 0; }
.ezi-timeline__item:first-child .ezi-timeline__marker::before { left: 50%; }
.ezi-timeline__item:last-child .ezi-timeline__marker::before { right: 50%; }
.ezi-timeline__dot { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: #9fb0c4; }
.ezi-timeline__item.is-current .ezi-timeline__dot { width: 18px; height: 18px; background: var(--ezi-primary); box-shadow: 0 0 0 4px rgba(var(--ezi-primary-rgb), .15); }
.ezi-timeline__title { font-family: var(--ezi-font-heading); font-weight: 700; font-size: 13px; color: var(--ezi-dark); padding: 0 8px; }
.ezi-timeline__text { font-family: var(--ezi-font-heading); font-weight: 300; font-size: 14px; line-height: 1.4; color: var(--ezi-dark); margin-top: 8px; padding: 0 10px; }
.ezi-timeline__item.is-current .ezi-timeline__year,
.ezi-timeline__item.is-current .ezi-timeline__title { color: var(--ezi-primary); }
@media (max-width: 860px) {
	.ezi-timeline__track { flex-direction: column; align-items: stretch; gap: 4px; }
	.ezi-timeline__item { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--ezi-light); }
	.ezi-timeline__marker { width: auto; height: auto; margin: 0; }
	.ezi-timeline__marker::before { display: none; }
	.ezi-timeline__year { min-width: 48px; }
	.ezi-timeline__title { padding: 0; }
	.ezi-timeline__text { flex: 1 1 100%; margin-top: 2px; padding: 0; }
}

/* ------------------------------ Statement (Vision/Mission) --------------- */
.ezi-statement__label { font-family: var(--ezi-font-heading); font-weight: 800; font-size: 1.5rem; color: var(--ezi-heading); margin: 0 0 16px; }
.ezi-statement__body { display: flex; gap: 14px; align-items: flex-start; }
.ezi-statement__mark { font-family: Georgia, serif; font-size: 4.25rem; line-height: .8; margin-top: 2px; color: var(--ezi-primary); flex: 0 0 auto; }
.ezi-statement__text { margin: 0; font-family: var(--ezi-font-heading); font-weight: 300; color: var(--ezi-dark); font-size: 1rem; line-height: 1.6; }
.ezi-band--blue .ezi-statement__label, .ezi-band--navy .ezi-statement__label,
.ezi-band--blue .ezi-statement__text, .ezi-band--navy .ezi-statement__text { color: #fff; }
.ezi-band--blue .ezi-statement__mark, .ezi-band--navy .ezi-statement__mark { color: #fff; }

/* --------------------------- News cards ---------------------------------- */
.ezi-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.ezi-news-grid--cols2 { grid-template-columns: repeat(2, 1fr); }
.ezi-news-grid--cols4 { grid-template-columns: repeat(4, 1fr); }
/* Space the "View All Articles" button away from the grid. */
.ezi-news-grid ~ .ezi-btn-wrap { margin-top: 36px; }
.ezi-news-empty { color: var(--ezi-muted); }

/* Global CTA band (rendered above the footer site-wide). */
.ezi-global-cta__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: stretch; }
.ezi-global-cta__grid .ezi-cta { height: 100%; }
@media (max-width: 900px) { .ezi-global-cta__grid { grid-template-columns: 1fr; } }
.ezi-news-card { background: #fff; border: 1px solid #eef1f5; border-radius: var(--ezi-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ezi-shadow); transition: transform .2s, box-shadow .2s; }
.ezi-news-card:hover { transform: translateY(-4px); box-shadow: var(--ezi-shadow-lg); }
.ezi-news-card__media { display: block; aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--ezi-light); }
.ezi-news-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ezi-news-card__title { margin: 0; font-size: 1.15rem; }
.ezi-news-card__title a { color: var(--ezi-dark); }
.ezi-news-card__title a:hover { color: var(--ezi-primary); }
.ezi-news-card__excerpt { color: var(--ezi-muted); font-size: .9rem; margin: 0; }
.ezi-news-card .ezi-link { margin-top: auto; }
.ezi-news-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.ezi-news-cats ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ezi-news-cats a { display: inline-block; padding: 8px 16px; background: var(--ezi-light); border-radius: 99px; font-size: .85rem; font-weight: 600; color: var(--ezi-dark); }
.ezi-news-cats a:hover { background: var(--ezi-primary); color: #fff; }
.ezi-pagination { margin-top: 40px; }
.ezi-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; background: var(--ezi-light); color: var(--ezi-dark); font-weight: 600; margin: 0 3px; }
.ezi-pagination .page-numbers.current, .ezi-pagination .page-numbers:hover { background: var(--ezi-primary); color: #fff; }

/* ------------------------------ Article ---------------------------------- */
.ezi-article__inner { max-width: 1100px; margin: 0 auto; }
.ezi-article__content { font-size: 1.05rem; line-height: 1.8; color: #26364a; }
.ezi-article__content h2, .ezi-article__content h3 { margin-top: 1.6em; }
.ezi-article__content blockquote { border-left: 4px solid var(--ezi-accent); margin: 1.6em 0; padding: 4px 0 4px 24px; font-size: 1.2rem; color: var(--ezi-dark); font-style: italic; }
.ezi-article__content img { border-radius: var(--ezi-radius); margin: 1.5em 0; }
.ezi-related__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }
.ezi-related__head h2 { margin: 0; }

/* ------------------------------ Footer ----------------------------------- */
.ezi-footer { background: var(--ezi-footer-bg); color: var(--ezi-footer-text); padding: 88px 0 40px; }
.ezi-footer__top { display: grid; grid-template-columns: 360px 1fr; gap: 64px; }
.ezi-footer__logocard { background: rgba(255,255,255,.85); border-radius: var(--ezi-radius); padding: 16px 24px; display: inline-flex; align-items: center; height: 80px; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.ezi-footer__logocard img { max-height: 46px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.ezi-footer__family { margin-top: 24px; }
.ezi-footer__family-label { font-family: var(--ezi-font-heading); font-weight: 700; margin: 0 0 12px; }
.ezi-footer__family-logos { max-height: 50px; width: auto; }
.ezi-footer__family-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ezi-footer__family-brand { display: inline-flex; align-items: center; }
.ezi-footer__family-brand[href] { transition: opacity .15s ease; }
.ezi-footer__family-brand[href]:hover { opacity: .75; }
.ezi-footer__family-logo { max-height: 46px; width: auto; display: block; }
.ezi-footer__cols { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; }
.ezi-footer__col h4 { color: #fff; font-family: var(--ezi-font-heading); font-weight: 700; font-size: 1rem; margin: 0 0 16px; }
.ezi-footer__connect { margin-top: 24px; }
.ezi-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ezi-footer__menu a { color: rgba(255,255,255,.82); font-weight: 300; }
.ezi-footer__menu a:hover { color: #fff; }
.ezi-footer__contact p { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.85); margin: 0 0 12px; font-weight: 300; }
.ezi-footer__contact a { color: rgba(255,255,255,.85); }
.ezi-footer__contact a:hover { color: #fff; }
.ezi-footer__contact .ezi-icon { flex: 0 0 auto; margin-top: 3px; }
.ezi-socials { display: flex; gap: 10px; }
.ezi-socials a { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ezi-primary); display: grid; place-items: center; transition: background .15s ease, color .15s ease; }
.ezi-socials a:hover { background: #eef2fb; color: var(--ezi-primary); }
.ezi-footer__divider { height: 1px; background: rgba(255,255,255,.2); margin: 48px 0 24px; }
.ezi-footer__bottom { display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 300; flex-wrap: wrap; }

/* --------------------------- WPBakery admin icon ------------------------- */
.vc_element-icon.ezi-vc-icon, .ezi-vc-icon { background-image: none !important; background: var(--ezi-primary) !important; border-radius: 4px; position: relative; }
.vc_element-icon.ezi-vc-icon::after { content: "EZI"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 800; }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 1200px) {
	:root { --ezi-gutter: 40px; --ezi-section-y: 72px; }
	.ezi-footer__top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 1024px) {
	.ezi-news-grid { grid-template-columns: repeat(2, 1fr); }
	.ezi-footer__cols { grid-template-columns: 1fr 1fr; }
	.ezi-navbar__menu { display: none; }
	.ezi-navbar__toggle { display: inline-flex; }
	.ezi-navbar__cta { display: none; }
	/* Push the hamburger to the far right once the desktop menu is hidden. */
	.ezi-navbar__actions { margin-left: auto; }
}
@media (max-width: 768px) {
	:root { --ezi-gutter: 20px; --ezi-section-y: 56px; }
	.ezi-hero--h-tall, .ezi-hero--h-medium { min-height: 520px; padding: 150px 0 60px; }
	.ezi-cta { flex-direction: column; }
	.ezi-cta__media { flex-basis: auto; width: 100%; }
	.ezi-news-grid { grid-template-columns: 1fr; }
	.ezi-footer__cols { grid-template-columns: 1fr; }
	.ezi-footer__bottom { flex-direction: column; gap: 6px; }
	.ezi-hero__actions .ezi-btn { flex: 1 1 auto; }

	/* Smaller logo + tighter navbar on phones. */
	.ezi-navbar { height: 62px; padding: 0 12px 0 16px; }
	.ezi-navbar__logo img { max-height: 34px; }

	/* "Our Fleet" stats -> 2x2 grid. */
	.ezi-stats-row.vc_row { display: flex; flex-wrap: wrap; row-gap: 30px; }
	.ezi-stats-row > .wpb_column { width: 50% !important; flex: 0 0 50%; }

	/* Safety accreditation badges -> side by side. */
	.ezi-accred-row { display: flex !important; flex-wrap: nowrap; gap: 12px; align-items: flex-start; }
	.ezi-accred-row > .wpb_column { width: 33.33% !important; flex: 1 1 0; min-width: 0; }
	.ezi-accred-row .ezi-image { align-items: center; }
	.ezi-accred-row .ezi-image__frame { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; }
}

/* ---------------------------------------------------------------------------
   Contact Form 7 forms (Get a Quote + Contact)
   --------------------------------------------------------------------------- */
/* Full-bleed light background (the row is boxed, so a ::before paints edge-to-edge,
   matching the theme's .ezi-band technique). */
.ezi-quote-section { position: relative; z-index: 0; }
.ezi-quote-section > * { position: relative; z-index: 1; }
.ezi-quote-section::before,
.vc_row.ezi-quote-section::before,
.wpb_row.ezi-quote-section::before {
	content: "" !important; display: block !important; position: absolute !important;
	top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: 0; clear: none;
	background: var(--ezi-light);
}
.ezi-quote-section .vc_column-inner { height: 100%; }
.ezi-quote__title { font-family: var(--ezi-font-heading); font-size: 1.75rem; line-height: 1.15; color: var(--ezi-heading); margin: 0 0 8px; }
.ezi-quote__lead { color: var(--ezi-muted); margin: 0 0 22px; font-size: 1rem; }

/* Form card */
.ezi-quote__form-col .wpcf7,
.ezi-contact-form-section .wpcf7 { background: #fff; border: 1px solid rgba(13,27,46,.08); border-radius: 16px; padding: 30px; box-shadow: var(--ezi-shadow); }
.ezi-contact-form-section { background: #fff; }
.ezi-contact-form-section .ezi-quote__title, .ezi-contact-form-section .ezi-quote__lead { text-align: center; }
.ezi-contact-form-section .wpcf7 { max-width: 860px; margin: 24px auto 0; }

/* Field grid */
.ezi-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.ezi-form-grid .ezi-field { margin: 0; }
.ezi-form-grid .ezi-field--full { grid-column: 1 / -1; }
.ezi-form-grid label { display: block; font-family: var(--ezi-font-heading); font-weight: 600; font-size: .82rem; letter-spacing: .2px; color: var(--ezi-heading); }

/* Inputs */
.wpcf7-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 15px;
	color: var(--ezi-text); background: #fff; border: 1px solid rgba(13,27,46,.18);
	border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; box-sizing: border-box;
}
.wpcf7-form textarea { resize: none; min-height: 120px; }
/* CF7 wraps each control in an inline span; make it a full-width block so the
   control (select / textarea / input) stretches to the field width. */
.wpcf7-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7-form select {
	appearance: none; -webkit-appearance: none; background-repeat: no-repeat;
	background-position: right 14px center; background-size: 12px; padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230d1b2e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	cursor: pointer;
}
.wpcf7-form input:not([type=submit]):focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none; border-color: var(--ezi-primary); box-shadow: 0 0 0 3px rgba(var(--ezi-primary-rgb), .15);
}
.wpcf7-form ::placeholder { color: #9aa7b8; }

/* Custom styled dropdown (JS enhances the CF7 <select>; native stays for submit) */
.wpcf7-form select.ezi-select-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; pointer-events: none; }
.ezi-select { position: relative; }
.ezi-select__button { width: 100%; margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font: inherit; font-size: 15px; text-align: left; color: var(--ezi-text); background: #fff; border: 1px solid rgba(13,27,46,.18); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.ezi-select__button:hover { border-color: rgba(13,27,46,.34); }
.ezi-select.is-open .ezi-select__button, .ezi-select__button:focus-visible { outline: none; border-color: var(--ezi-primary); box-shadow: 0 0 0 3px rgba(var(--ezi-primary-rgb), .15); }
.ezi-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ezi-select__value.is-placeholder { color: #9aa7b8; }
.ezi-select__arrow { flex: 0 0 auto; display: flex; color: var(--ezi-dark); transition: transform .2s ease; }
.ezi-select.is-open .ezi-select__arrow { transform: rotate(180deg); }
.ezi-select__menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid rgba(13,27,46,.12); border-radius: 12px; box-shadow: 0 18px 44px rgba(13,27,46,.18); max-height: 280px; overflow-y: auto; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.ezi-select.is-open .ezi-select__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ezi-select__option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ezi-text); cursor: pointer; }
.ezi-select__option:hover, .ezi-select__option.is-active { background: var(--ezi-light); color: var(--ezi-primary); }
.ezi-select__option[aria-selected="true"] { font-weight: 600; color: var(--ezi-primary); }
.ezi-select__option[aria-selected="true"]::after { content: ""; width: 16px; height: 16px; flex: 0 0 auto; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b4499' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.wpcf7-form-control-wrap:has(select.wpcf7-not-valid) .ezi-select__button { border-color: var(--ezi-accent); }

/* Submit button (already carries .ezi-btn classes from the form template) */
.wpcf7-form input[type=submit].ezi-btn { cursor: pointer; border: none; font: inherit; font-weight: 700; }
/* Only the submit row is a flex row (button + spinner inline) — NOT the other
   full-width rows, which must stay block so their fields fill the width. */
.ezi-form-grid .ezi-field--full:has(input[type=submit]) { display: flex; align-items: center; }
.wpcf7-spinner { margin: 0 0 0 14px; }

/* Validation + response states */
.wpcf7-form .wpcf7-not-valid { border-color: var(--ezi-accent) !important; }
.wpcf7-not-valid-tip { color: var(--ezi-accent); font-size: .78rem; font-weight: 600; margin-top: 5px; }
.wpcf7-response-output { margin: 20px 0 0 !important; padding: 12px 16px !important; border-radius: 10px; font-size: .9rem; border-width: 1px !important; }
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output { border-color: var(--ezi-accent) !important; background: rgba(var(--ezi-accent-rgb), .06); color: #8a0018; }
.wpcf7-form.sent .wpcf7-response-output { border-color: #1a7f37 !important; background: rgba(26,127,55,.08); color: #12631f; }

/* Left form card + right navy contact panel. Both columns start at the same top;
   the panel keeps its own natural height (it does not stretch to the form). */
.ezi-quote-cols { margin-top: 24px; }

/* Navy contact panel */
.ezi-quote-panel {
	background: linear-gradient(160deg, var(--ezi-primary) 0%, var(--ezi-dark) 100%);
	color: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--ezi-shadow);
}
.ezi-quote-panel__title { color: #fff; font-family: var(--ezi-font-heading); font-size: 1.5rem; line-height: 1.15; margin: 0 0 8px; }
.ezi-quote-panel__lead { color: rgba(255,255,255,.8); margin: 0 0 26px; font-size: .95rem; line-height: 1.5; }
.ezi-quote-panel__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.ezi-quote-panel__item { display: flex; gap: 14px; align-items: flex-start; }
.ezi-quote-panel__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; }
.ezi-quote-panel__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ezi-quote-panel__k { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); font-weight: 700; }
.ezi-quote-panel__meta a, .ezi-quote-panel__v { color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.4; text-decoration: none; word-break: break-word; }
.ezi-quote-panel__meta a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 640px) {
	.ezi-form-grid { grid-template-columns: 1fr; }
	.ezi-quote__form-col .wpcf7, .ezi-contact-form-section .wpcf7 { padding: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.ezi-ticker__track { animation: none; }
	* { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------------
   Vision & Mission block (About page)
   --------------------------------------------------------------------------- */
.ezi-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.ezi-vm__copy { display: flex; flex-direction: column; min-width: 0; }
.ezi-vm__eyebrow {
	margin: 0 0 22px;
	font-family: var(--ezi-font-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--ezi-primary);
}
.ezi-vm__vision {
	margin: 0; font-family: var(--ezi-font-heading); font-weight: 800; letter-spacing: -.01em;
	font-size: clamp(1.9rem, 3.1vw, 2.75rem); line-height: 1.12; color: var(--ezi-heading);
}
.ezi-vm__bottom { margin-top: auto; padding-top: 48px; }
.ezi-vm__divider { border: 0; border-top: 1px solid rgba(var(--ezi-dark-rgb), .28); margin: 0 0 32px; }
.ezi-vm__mission { margin: 0; font-size: 1.12rem; line-height: 1.7; color: var(--ezi-muted); }

.ezi-vm__visual {
	position: relative; min-height: 540px; overflow: hidden; border-radius: var(--ezi-radius);
	background: linear-gradient(180deg, #16294a 0%, var(--ezi-dark) 100%);
	background-size: cover; background-position: center;
}
.ezi-vm__visual.has-image::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(var(--ezi-dark-rgb), .25) 0%, rgba(var(--ezi-dark-rgb), .7) 100%);
}
.ezi-vm__callout {
	position: absolute; left: 0; bottom: 0; width: 84%; padding: 44px 40px 26px;
	background: var(--ezi-primary); color: #fff; border-radius: 0 var(--ezi-radius) 0 0;
}
.ezi-vm__callout-text {
	margin: 0; font-family: var(--ezi-font-heading); font-weight: 800; letter-spacing: -.01em;
	font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; color: #fff;
}
.ezi-vm__callout-caption {
	margin: 18px 0 0; font-family: var(--ezi-font-heading); font-weight: 600; font-size: 11px;
	letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7);
}

@media (max-width: 900px) {
	.ezi-vm { grid-template-columns: 1fr; gap: 40px; }
	.ezi-vm__bottom { margin-top: 0; padding-top: 36px; }
	.ezi-vm__visual { min-height: 420px; }
	.ezi-vm__callout { width: 90%; padding: 30px 26px 20px; }
}

/* ---------------------------------------------------------------------------
   Story block (About page) — eyebrow | headline + copy, wide photo beneath
   --------------------------------------------------------------------------- */
.ezi-story {
	display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 48px; row-gap: 0;
	align-items: start;
}
.ezi-story__aside { grid-column: 1; padding-top: 10px; }
.ezi-story__eyebrow {
	margin: 0; font-family: var(--ezi-font-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--ezi-primary);
}
.ezi-story__copy { grid-column: 2; min-width: 0; }
.ezi-story__headline {
	margin: 0 0 32px; font-family: var(--ezi-font-heading); font-weight: 800; letter-spacing: -.01em;
	font-size: clamp(1.9rem, 3.1vw, 2.75rem); line-height: 1.12; color: var(--ezi-heading);
}
.ezi-story__body { font-size: 1.12rem; line-height: 1.7; color: var(--ezi-muted); max-width: 62ch; }
.ezi-story__body p { margin: 0 0 1.1em; }
.ezi-story__body p:last-child { margin-bottom: 0; }
.ezi-story__media { grid-column: 1 / -1; margin: 56px 0 0; }
.ezi-story--img-column .ezi-story__media { grid-column: 2; }
.ezi-story__img {
	display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 30%;
	border-radius: var(--ezi-radius); box-shadow: var(--ezi-shadow-lg);
}
.ezi-story--img-column .ezi-story__img { aspect-ratio: 16 / 10; }
.ezi-story__caption {
	margin: 14px 0 0; font-family: var(--ezi-font-heading); font-weight: 600; font-size: 11px;
	letter-spacing: .14em; text-transform: uppercase; color: var(--ezi-muted);
}
@media (max-width: 900px) {
	.ezi-story { grid-template-columns: 1fr; row-gap: 0; }
	.ezi-story__aside { grid-column: 1; padding-top: 0; margin-bottom: 18px; }
	.ezi-story__copy, .ezi-story--img-column .ezi-story__media { grid-column: 1; }
	.ezi-story__media { margin-top: 36px; }
	.ezi-story__img { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------------------
   Careers: benefit cards, open positions list, single role page
   --------------------------------------------------------------------------- */
.ezi-benefit {
	display: flex; flex-direction: column; gap: 14px; align-items: flex-start; height: 100%;
	background: #fff; border-radius: var(--ezi-radius); padding: 32px 30px 30px; box-shadow: var(--ezi-shadow);
	transition: box-shadow .2s;
}
.ezi-benefit:hover { box-shadow: var(--ezi-shadow-lg); }
.ezi-benefit__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
	border-radius: 14px; background: rgba(var(--ezi-primary-rgb), .1); color: var(--ezi-primary);
}
.ezi-benefit__icon img { width: 30px; height: 30px; object-fit: contain; }
.ezi-benefit__title { margin: 4px 0 0; font-size: 1.2rem; line-height: 1.25; }
.ezi-benefit__text { margin: 0; color: var(--ezi-muted); font-size: .95rem; line-height: 1.65; }
.ezi-tiles .ezi-benefit { flex: 1 1 auto; }

/* Benefits block (About page editorial style: copy + icon list | navy panel) */
.ezi-perks { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.ezi-perks__copy { min-width: 0; }
.ezi-perks__headline { margin-bottom: 22px; }
.ezi-perks__intro { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.7; color: var(--ezi-muted); max-width: 56ch; }
.ezi-perks__list { list-style: none; margin: 28px 0 0; padding: 0; }
.ezi-perk {
	display: flex; gap: 20px; align-items: flex-start; padding: 24px 0;
	border-top: 1px solid rgba(var(--ezi-dark-rgb), .14);
}
.ezi-perk:last-child { border-bottom: 1px solid rgba(var(--ezi-dark-rgb), .14); }
.ezi-perk__icon {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px;
	border-radius: 12px; background: rgba(var(--ezi-primary-rgb), .1); color: var(--ezi-primary);
}
.ezi-perk__body { min-width: 0; }
.ezi-perk__title { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.3; }
.ezi-perk__text { margin: 0; color: var(--ezi-muted); font-size: .97rem; line-height: 1.65; }
.ezi-perks__visual { position: sticky; top: 110px; min-height: 560px; }
.ezi-perks__visual.has-image:not(.has-overlay)::before { display: none; } /* plain photo unless the overlay option is on */
@media (max-width: 900px) {
	.ezi-perks { grid-template-columns: 1fr; gap: 40px; }
	.ezi-perks__visual { position: static; min-height: 420px; }
}

/* Positions on a navy band */
/* Buttons sit on white cards here, so they keep the blue (the red swap is for buttons directly on the band). */
.ezi-band--navy .ezi-position .ezi-btn--primary, .ezi-band--blue .ezi-position .ezi-btn--primary { background: var(--ezi-primary); }
.ezi-band--navy .ezi-position:hover .ezi-btn--primary, .ezi-band--blue .ezi-position:hover .ezi-btn--primary { background: #093a83; }
.ezi-band--navy .ezi-position, .ezi-band--blue .ezi-position { box-shadow: none; }
.ezi-band--navy .ezi-position :is(h3, p), .ezi-band--blue .ezi-position :is(h3, p) { color: var(--ezi-heading); }
.ezi-band--navy .ezi-position .ezi-position__text, .ezi-band--blue .ezi-position .ezi-position__text,
.ezi-band--navy .ezi-position .ezi-position__closing, .ezi-band--blue .ezi-position .ezi-position__closing { color: var(--ezi-muted); }
.ezi-band--navy .ezi-positions__empty p, .ezi-band--blue .ezi-positions__empty p { color: var(--ezi-muted); }

/* Feature spread (services pages): photo panel + blue callout | icon feature grid */
.ezi-spread { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.ezi-spread > .ezi-spread__visual { position: sticky; top: 110px; height: clamp(520px, 62vh, 620px); min-height: 0; } /* stays put beside longer feature lists */
.ezi-spread--photo-right .ezi-spread__visual { order: 2; }
.ezi-spread__visual {
	position: relative; min-height: 520px; overflow: hidden; border-radius: var(--ezi-radius);
	background: linear-gradient(180deg, #16294a 0%, var(--ezi-dark) 100%); background-size: cover; background-position: center;
}
.ezi-spread__callout {
	position: absolute; left: 0; bottom: 0; width: 88%; padding: 34px 32px 28px;
	background: var(--ezi-primary); color: #fff; border-radius: 0 var(--ezi-radius) 0 0;
}
.ezi-spread__eyebrow {
	margin: 0 0 12px; font-family: var(--ezi-font-heading); font-weight: 700; font-size: 12px; letter-spacing: .14em;
	text-transform: uppercase; color: rgba(255,255,255,.8);
}
.ezi-spread__headline {
	margin: 0; color: #fff; font-family: var(--ezi-font-heading); font-weight: 800; letter-spacing: -.01em;
	font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.12;
}
.ezi-spread__body { display: flex; flex-direction: column; min-width: 0; }
.ezi-spread__intro { margin: 0 0 24px; font-size: 1.12rem; line-height: 1.7; color: var(--ezi-muted); max-width: 60ch; }
.ezi-spread__grid { display: grid; grid-template-columns: 1fr 1fr; flex: 1 1 auto; }
.ezi-heading + .ezi-spread { margin-top: 36px; }
.ezi-spread__item {
	display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
	padding: 26px 32px 26px 0; border-top: 1px solid rgba(var(--ezi-dark-rgb), .14);
}
.ezi-spread__item:nth-child(even) { padding: 26px 0 26px 32px; border-left: 1px solid rgba(var(--ezi-dark-rgb), .14); }
/* Tidy hairlines: no line above the first row; a lone last item gets a full width line above it. */
.ezi-spread__item:nth-child(-n+2) { border-top: 0; }
.ezi-spread__item:last-child:nth-child(odd) { position: relative; border-top: 0; }
.ezi-spread__item:last-child:nth-child(odd)::before { content: ""; position: absolute; left: 0; top: 0; width: 200%; height: 1px; background: rgba(var(--ezi-dark-rgb), .14); }
.ezi-spread__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
	border-radius: 12px; background: rgba(var(--ezi-primary-rgb), .1); color: var(--ezi-primary);
}
.ezi-spread__title { margin: 2px 0 0; font-size: 1.12rem; line-height: 1.3; }
.ezi-spread__text { margin: 0; color: var(--ezi-muted); font-size: .95rem; line-height: 1.65; }
.ezi-band--light .ezi-spread__icon { background: #fff; box-shadow: var(--ezi-shadow); }
@media (max-width: 1100px) {
	.ezi-spread { gap: 40px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (max-width: 900px) {
	.ezi-spread { grid-template-columns: 1fr; gap: 32px; }
	.ezi-spread--photo-right .ezi-spread__visual { order: 0; }
	.ezi-spread > .ezi-spread__visual { position: relative; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
	.ezi-spread__callout { width: 92%; padding: 26px 24px 20px; }
}
@media (max-width: 640px) {
	.ezi-spread__grid { grid-template-columns: 1fr; }
	.ezi-spread__item, .ezi-spread__item:nth-child(even) { padding: 22px 0; border-left: 0; }
	.ezi-spread__item:first-child { border-top: 0; }
	.ezi-spread__item:nth-child(2) { border-top: 1px solid rgba(var(--ezi-dark-rgb), .14); }
	.ezi-spread__item:last-child:nth-child(odd) { border-top: 1px solid rgba(var(--ezi-dark-rgb), .14); }
	.ezi-spread__item:last-child:nth-child(odd)::before { display: none; }
	.ezi-spread__visual { aspect-ratio: 1 / 1.05; }
	.ezi-spread__headline { font-size: 1.35rem; }
	.ezi-spread__callout { width: 88%; padding: 22px 20px 18px; }
}

/* Chips (location / type / department) */
.ezi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ezi-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
	background: rgba(var(--ezi-primary-rgb), .08); color: var(--ezi-primary);
	font-family: var(--ezi-font-heading); font-weight: 600; font-size: 12.5px; letter-spacing: .1px; line-height: 1;
}
.ezi-chip .ezi-icon { flex: 0 0 auto; }

/* Positions list (job board rows) */
.ezi-positions--list { display: flex; flex-direction: column; gap: 16px; }
.ezi-position {
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
	background: #fff; border-radius: var(--ezi-radius); padding: 28px 32px; box-shadow: var(--ezi-shadow);
	color: var(--ezi-text); border: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.ezi-position:hover { box-shadow: var(--ezi-shadow-lg); border-color: rgba(var(--ezi-primary-rgb), .25); color: var(--ezi-text); }
.ezi-position__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ezi-position__title { margin: 0; font-size: 1.35rem; line-height: 1.2; color: var(--ezi-heading); }
.ezi-position__text { margin: 2px 0 0; color: var(--ezi-muted); font-size: .95rem; line-height: 1.6; max-width: 70ch; }
.ezi-position__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.ezi-position__closing { font-size: .82rem; color: var(--ezi-muted); white-space: nowrap; }
.ezi-position__btn { padding: 12px 20px; white-space: nowrap; }
.ezi-position:hover .ezi-position__btn .ezi-icon { transform: translateX(3px); }

/* Positions cards (grid variant) */
.ezi-positions--cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ezi-positions--cards .ezi-position { flex-direction: column; align-items: stretch; gap: 20px; height: 100%; }
.ezi-positions--cards .ezi-position__side { flex-direction: row; align-items: center; justify-content: space-between; margin-top: auto; }

.ezi-positions__empty {
	display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: var(--ezi-radius);
	padding: 32px; box-shadow: var(--ezi-shadow); max-width: 760px;
}
.ezi-positions__empty p { margin: 0; color: var(--ezi-muted); line-height: 1.7; }
.ezi-positions__empty-icon {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 56px; width: 56px; height: 56px;
	border-radius: 14px; background: rgba(var(--ezi-primary-rgb), .1); color: var(--ezi-primary);
}

/* Single role page */
.ezi-role__inner { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.ezi-role__content { font-size: 1.05rem; line-height: 1.8; }
.ezi-role__content > :first-child { margin-top: 0; }
.ezi-role__content h2 { margin-top: 1.5em; font-size: 1.55rem; }
.ezi-role__content h3 { margin-top: 1.4em; font-size: 1.25rem; }
.ezi-role__content p { margin: 0 0 1.1em; }
.ezi-role__content ul { padding-left: 1.2em; }
.ezi-role__content li { margin: 6px 0; }
.ezi-role__closed-note { background: rgba(var(--ezi-primary-rgb), .08); border-left: 4px solid var(--ezi-primary); padding: 14px 18px; border-radius: 0 var(--ezi-radius) var(--ezi-radius) 0; }
.ezi-role__aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.ezi-role__panel .ezi-quote-panel__list { margin-bottom: 26px; }
.ezi-role__apply { width: 100%; }
.ezi-role__back { align-self: flex-start; }
.ezi-apply__form { max-width: 860px; margin-top: 8px; }
.ezi-apply .ezi-heading { margin-bottom: 28px; }

/* File upload field (CV) */
.wpcf7-form input[type=file] {
	display: block; width: 100%; padding: 12px 14px; border: 1px dashed rgba(var(--ezi-dark-rgb), .3);
	border-radius: var(--ezi-radius); background: #fff; font-size: .95rem; color: var(--ezi-muted); cursor: pointer;
}
.wpcf7-form input[type=file]::file-selector-button {
	margin-right: 14px; padding: 8px 14px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--ezi-primary); color: #fff; font-family: var(--ezi-font-heading); font-weight: 700; font-size: 13px;
}
.ezi-form-grid .ezi-field__hint { display: block; margin-top: 6px; font-size: .8rem; color: var(--ezi-muted); font-weight: 400; font-family: var(--ezi-font-body, inherit); }

@media (max-width: 992px) {
	.ezi-role__inner { grid-template-columns: 1fr; gap: 36px; }
	.ezi-role__aside { position: static; }
	.ezi-positions--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.ezi-position { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px; }
	.ezi-position__side { flex-direction: row; align-items: center; justify-content: space-between; }
	.ezi-positions--cards { grid-template-columns: 1fr; }
}

/* Timeline — Cards style (photo panels with year below) */
.ezi-timeline--cards { --tl-cols: 4; }
.ezi-timeline__label {
	margin: 0 0 28px; font-family: var(--ezi-font-heading); font-weight: 700; font-size: 13px;
	letter-spacing: .14em; text-transform: uppercase; color: var(--ezi-primary);
}
.ezi-timeline__grid { display: grid; grid-template-columns: repeat(var(--tl-cols), minmax(0, 1fr)); gap: 40px 28px; }
.ezi-timeline__card { display: flex; flex-direction: column; align-items: stretch; text-align: left; min-width: 0; }
.ezi-timeline__panel {
	position: relative; aspect-ratio: 1 / 1.05; border-radius: var(--ezi-radius); overflow: hidden;
	background-color: #2b3750; background-size: cover; background-position: center;
}
/* Navy tones stepping darker across the row when there's no photo. */
.ezi-timeline__card:nth-child(6n+1) .ezi-timeline__panel { background-color: #3a4658; }
.ezi-timeline__card:nth-child(6n+2) .ezi-timeline__panel { background-color: #323e54; }
.ezi-timeline__card:nth-child(6n+3) .ezi-timeline__panel { background-color: #2a3650; }
.ezi-timeline__card:nth-child(6n+4) .ezi-timeline__panel { background-color: #232f4a; }
.ezi-timeline__card:nth-child(6n+5) .ezi-timeline__panel { background-color: #1d2942; }
.ezi-timeline__card:nth-child(6n+6) .ezi-timeline__panel { background-color: #17233c; }
.ezi-timeline__card.is-current .ezi-timeline__panel { background-color: var(--ezi-primary); }
.ezi-timeline__card.has-image .ezi-timeline__panel::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(var(--ezi-dark-rgb), 0) 45%, rgba(var(--ezi-dark-rgb), .75) 100%);
}
.ezi-timeline__caption {
	position: absolute; left: 16px; right: 12px; bottom: 14px; z-index: 1;
	font-family: var(--ezi-font-heading); font-weight: 600; font-size: 10.5px; letter-spacing: .14em;
	text-transform: uppercase; color: rgba(255,255,255,.72); line-height: 1.3;
}
.ezi-timeline__card.is-current .ezi-timeline__caption { color: rgba(255,255,255,.85); }
.ezi-timeline__rule { display: block; height: 3px; margin: 14px 0 16px; background: var(--ezi-dark); border-radius: 2px; }
.ezi-timeline__card.is-current .ezi-timeline__rule { background: var(--ezi-primary); }
.ezi-timeline--cards .ezi-timeline__year {
	font-family: var(--ezi-font-heading); font-weight: 800; font-size: 1.5rem; line-height: 1.1;
	color: var(--ezi-heading); margin: 0 0 8px;
}
.ezi-timeline__card.is-current .ezi-timeline__year { color: var(--ezi-primary); }
.ezi-timeline--cards .ezi-timeline__title {
	font-family: var(--ezi-font-heading); font-weight: 700; font-size: 13.5px; line-height: 1.35; color: var(--ezi-heading);
	padding: 0 8px 0 0; margin: 0 0 8px;
}
.ezi-timeline__card.is-current .ezi-timeline__title { color: var(--ezi-primary); }
.ezi-timeline--cards .ezi-timeline__text {
	font-family: var(--ezi-font-body); font-weight: 400; font-size: 13.5px; line-height: 1.6;
	color: var(--ezi-muted); margin: 0; padding: 0 8px 0 0;
}
@media (max-width: 1100px) { .ezi-timeline--cards .ezi-timeline__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .ezi-timeline--cards .ezi-timeline__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; } }
@media (max-width: 440px)  { .ezi-timeline--cards .ezi-timeline__grid { grid-template-columns: 1fr; } }

/* Timeline cards: join the rules into one continuous line across each row. */
.ezi-timeline--cards .ezi-timeline__rule { margin: 18px -28px 20px 0; border-radius: 0; }
.ezi-timeline--cards .ezi-timeline__card:nth-child(6n) .ezi-timeline__rule,
.ezi-timeline--cards .ezi-timeline__card:last-child .ezi-timeline__rule { margin-right: 0; }
@media (max-width: 1100px) {
	.ezi-timeline--cards .ezi-timeline__card:nth-child(6n) .ezi-timeline__rule { margin-right: -28px; }
	.ezi-timeline--cards .ezi-timeline__card:nth-child(3n) .ezi-timeline__rule,
	.ezi-timeline--cards .ezi-timeline__card:last-child .ezi-timeline__rule { margin-right: 0; }
}
@media (max-width: 720px) {
	.ezi-timeline--cards .ezi-timeline__card:nth-child(3n) .ezi-timeline__rule { margin-right: -12px; }
	.ezi-timeline--cards .ezi-timeline__rule { margin-right: -12px; }
	.ezi-timeline--cards .ezi-timeline__card:nth-child(2n) .ezi-timeline__rule,
	.ezi-timeline--cards .ezi-timeline__card:last-child .ezi-timeline__rule { margin-right: 0; }
}
@media (max-width: 440px) {
	.ezi-timeline--cards .ezi-timeline__rule { margin-right: 0; }
}

/* Phones: the milestones become a horizontal swipe strip (scroll snap) that keeps
   the desktop look: photo panel, connected toned rule, big year. The strip bleeds
   to the right edge of the screen so the next card peeks in as a swipe cue. */
@media (max-width: 640px) {
	.ezi-timeline--cards .ezi-timeline__grid {
		display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
		margin-right: -35px; padding-right: 35px; scroll-padding-left: 0; /* 20px container gutter + 15px WPBakery column padding: bleed to the screen edge */
	}
	.ezi-timeline--cards .ezi-timeline__grid::-webkit-scrollbar { display: none; }
	.ezi-timeline--cards .ezi-timeline__card { flex: 0 0 68%; max-width: 280px; scroll-snap-align: start; padding-right: 12px; }
	.ezi-timeline--cards .ezi-timeline__card:last-child { flex-basis: calc(68% + 20px); padding-right: 32px; }
	/* Undo the old list style's mobile rules (they squash the panel and stretch the text). */
	.ezi-timeline--cards .ezi-timeline__panel { aspect-ratio: 1 / 1; flex: 0 0 auto; }
	.ezi-timeline--cards .ezi-timeline__text { flex: 0 0 auto; }
	/* One continuous line: each rule spans its card's padding so it meets the next card's rule. */
	.ezi-timeline--cards .ezi-timeline__rule,
	.ezi-timeline--cards .ezi-timeline__card:nth-child(n) .ezi-timeline__rule { margin: 12px -12px 14px 0; }
	.ezi-timeline--cards .ezi-timeline__card:last-child .ezi-timeline__rule { margin-right: 0; }
	.ezi-timeline--cards .ezi-timeline__year { font-size: 1.5rem; }
	.ezi-timeline--cards .ezi-timeline__text { font-size: .9rem; }
	.ezi-timeline--cards .ezi-timeline__caption { display: none; }
}

/* Rule segments mirror the panel tones so the line reads as a gradient even once photos replace the panels. */
.ezi-timeline--cards .ezi-timeline__card:nth-child(6n+1) .ezi-timeline__rule { background: #3a4658; }
.ezi-timeline--cards .ezi-timeline__card:nth-child(6n+2) .ezi-timeline__rule { background: #323e54; }
.ezi-timeline--cards .ezi-timeline__card:nth-child(6n+3) .ezi-timeline__rule { background: #2a3650; }
.ezi-timeline--cards .ezi-timeline__card:nth-child(6n+4) .ezi-timeline__rule { background: #232f4a; }
.ezi-timeline--cards .ezi-timeline__card:nth-child(6n+5) .ezi-timeline__rule { background: #1d2942; }
.ezi-timeline--cards .ezi-timeline__card:nth-child(6n+6) .ezi-timeline__rule { background: #17233c; }
.ezi-timeline--cards .ezi-timeline__card.is-current .ezi-timeline__rule { background: var(--ezi-primary); }

/* ---------------------------------------------------------------------------
   Timeline — Zigzag story style (About page Journey)
   --------------------------------------------------------------------------- */
.ezi-timeline--zigzag .ezi-timeline__label { margin-bottom: 8px; }
.ezi-zig { list-style: none; margin: 0; padding: 8px 0 0; position: relative; }
.ezi-zig::before {
	content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px;
	background: linear-gradient(180deg, #3a4658 0%, #17233c 72%, var(--ezi-primary) 100%);
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 80px, #000 calc(100% - 80px), transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 80px, #000 calc(100% - 80px), transparent);
}
.ezi-zig__item {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
	align-items: center; column-gap: 28px; padding: 28px 0;
}
.ezi-zig__media { grid-column: 1; grid-row: 1; }
.ezi-zig__copy { grid-column: 3; grid-row: 1; padding: 0 8px; }
.ezi-zig__item:nth-child(even) .ezi-zig__media { grid-column: 3; }
.ezi-zig__item:nth-child(even) .ezi-zig__copy { grid-column: 1; text-align: right; }
.ezi-zig__node { grid-column: 2; grid-row: 1; display: flex; justify-content: center; align-items: center; }
.ezi-zig__dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--ezi-dark); box-shadow: 0 0 0 6px #fff; }
.ezi-zig__item.is-current .ezi-zig__dot { border-color: var(--ezi-primary); background: var(--ezi-primary); }
.ezi-zig__panel {
	position: relative; aspect-ratio: 16 / 10; border-radius: var(--ezi-radius); overflow: hidden;
	background-color: #2b3750; background-size: cover; background-position: center; box-shadow: var(--ezi-shadow-lg);
}
.ezi-zig__item:nth-child(6n+1) .ezi-zig__panel { background-color: #3a4658; }
.ezi-zig__item:nth-child(6n+2) .ezi-zig__panel { background-color: #323e54; }
.ezi-zig__item:nth-child(6n+3) .ezi-zig__panel { background-color: #2a3650; }
.ezi-zig__item:nth-child(6n+4) .ezi-zig__panel { background-color: #232f4a; }
.ezi-zig__item:nth-child(6n+5) .ezi-zig__panel { background-color: #1d2942; }
.ezi-zig__item:nth-child(6n+6) .ezi-zig__panel { background-color: #17233c; }
.ezi-zig__item.is-current:not(.has-image) .ezi-zig__panel { background-color: var(--ezi-primary); }
.ezi-zig__caption {
	position: absolute; left: 18px; right: 14px; bottom: 16px; font-family: var(--ezi-font-heading); font-weight: 600;
	font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); line-height: 1.3;
	text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.ezi-zig__year {
	display: block; font-family: var(--ezi-font-heading); font-weight: 800; letter-spacing: -.01em;
	font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; color: var(--ezi-heading); margin: 0 0 10px;
}
.ezi-zig__item.is-current .ezi-zig__year { color: var(--ezi-primary); }
.ezi-zig__title { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.25; }
.ezi-zig__item.is-current .ezi-zig__title { color: var(--ezi-primary); }
.ezi-zig__text { margin: 0; color: var(--ezi-muted); font-size: 1rem; line-height: 1.7; max-width: 46ch; }
.ezi-zig__item:nth-child(even) .ezi-zig__text { margin-left: auto; }
@media (max-width: 900px) {
	.ezi-zig::before { left: 21px; margin-left: 0; }
	.ezi-zig__item, .ezi-zig__item:nth-child(even) {
		grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto;
		column-gap: 16px; row-gap: 16px; padding: 18px 0; align-items: start;
	}
	.ezi-zig__node, .ezi-zig__item:nth-child(even) .ezi-zig__node { grid-column: 1; grid-row: 1; align-items: flex-start; padding-top: 6px; }
	.ezi-zig__media, .ezi-zig__item:nth-child(even) .ezi-zig__media { grid-column: 2; grid-row: 1; }
	.ezi-zig__copy, .ezi-zig__item:nth-child(even) .ezi-zig__copy { grid-column: 2; grid-row: 2; text-align: left; padding: 0; }
	.ezi-zig__item:nth-child(even) .ezi-zig__text { margin-left: 0; }
	.ezi-zig__year { font-size: 1.9rem; }
	.ezi-zig__dot { width: 16px; height: 16px; border-width: 3px; box-shadow: 0 0 0 4px #fff; }
}

/* Timeline — big centred heading block (zigzag style) */
.ezi-timeline__head { text-align: center; max-width: 720px; margin: 0 auto 16px; }
.ezi-timeline__head .ezi-timeline__label { margin-bottom: 14px; }
.ezi-timeline__heading {
	margin: 0 0 14px; font-family: var(--ezi-font-heading); font-weight: 800; letter-spacing: -.01em;
	font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; color: var(--ezi-heading);
}
.ezi-timeline__intro { margin: 0; color: var(--ezi-muted); font-size: 1.12rem; line-height: 1.7; }

/* Vision & Mission — split statements (two columns on a navy band) */
.ezi-vmsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ezi-vmsplit__col { position: relative; padding: 8px 64px 8px 0; }
.ezi-vmsplit__col + .ezi-vmsplit__col { padding: 8px 0 8px 64px; border-left: 1px solid rgba(255,255,255,.18); }
.ezi-vmsplit__mark { display: inline-flex; color: rgba(255,255,255,.22); margin-bottom: 22px; }
.ezi-vmsplit__eyebrow {
	margin: 0 0 18px; font-family: var(--ezi-font-heading); font-weight: 700; font-size: 13px; letter-spacing: .14em;
	text-transform: uppercase; color: rgba(255,255,255,.75);
}
.ezi-vmsplit__text {
	margin: 0; color: #fff; font-family: var(--ezi-font-heading); font-weight: 800; letter-spacing: -.01em;
	font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.22;
}
.ezi-vmsplit__col--mission .ezi-vmsplit__text { font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; color: rgba(255,255,255,.92); }
.ezi-band--navy .ezi-vmsplit :is(p) { color: inherit; }
@media (max-width: 900px) {
	.ezi-vmsplit { grid-template-columns: 1fr; }
	.ezi-vmsplit__col { padding: 0 0 36px; }
	.ezi-vmsplit__col + .ezi-vmsplit__col { padding: 36px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
}



/* ==========================================================================
   404 page: "wrong turn"
   ========================================================================== */
.ezi-404 {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, var(--ezi-primary), var(--ezi-dark));
	color: #fff;
	padding: clamp(150px, 15vw, 190px) 0 0;
}
.ezi-404__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 48px;
	align-items: end;
}
.ezi-404__copy { padding-bottom: clamp(64px, 8vw, 110px); }
.ezi-404__badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--ezi-accent); color: #fff;
	font: 700 12px/1 var(--ezi-font-heading);
	letter-spacing: 1.5px; text-transform: uppercase;
	padding: 9px 14px; border-radius: 999px;
	margin-bottom: 26px;
}
.ezi-404__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: ezi-404-blink 1.6s ease-in-out infinite; }
@keyframes ezi-404-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ezi-404__title {
	font-family: var(--ezi-font-heading);
	font-weight: 800;
	font-size: clamp(42px, 6.2vw, 84px);
	line-height: .98;
	letter-spacing: var(--ezi-h-tracking);
	color: #fff;
	margin: 0 0 22px;
}
.ezi-404__title span {
	background: linear-gradient(90deg, #ffffff 0%, #9cc0ff 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.ezi-404__text { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 520px; margin: 0 0 32px; }
.ezi-404__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.ezi-404__phone {
	display: inline-flex; align-items: center; gap: 10px;
	color: rgba(255,255,255,.8); text-decoration: none; font-size: 15px;
}
.ezi-404__phone svg { width: 18px; height: 18px; }
.ezi-404__phone strong { color: #fff; }
.ezi-404__phone:hover { color: #fff; }

/* the 4 0 4 with a truck for the zero */
.ezi-404__scene { position: relative; min-height: 300px; }
.ezi-404__num {
	display: flex; align-items: center; justify-content: center; gap: .02em;
	font: 800 clamp(120px, 18vw, 240px)/1 var(--ezi-font-heading);
	letter-spacing: -.06em;
	color: rgba(255,255,255,.14);
	position: absolute; left: 0; right: 0; bottom: clamp(48px, 6vw, 80px);
	user-select: none;
}
.ezi-404__zero {
	display: inline-flex; align-items: center; justify-content: center;
	width: .8em; height: .8em; margin: 0 .04em;
	filter: drop-shadow(0 18px 24px rgba(0,0,0,.45));
}
.ezi-404__zero svg { width: 100%; height: 100%; animation: ezi-404-spin 9s linear infinite; transform-origin: 50% 50%; }
@keyframes ezi-404-spin { to { transform: rotate(360deg); } }
@keyframes ezi-404-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* routes */
.ezi-404__routes { background: var(--ezi-light); padding: clamp(56px, 7vw, 88px) 0; }
.ezi-404__routes-head {
	display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
	margin-bottom: 32px;
}
.ezi-404__eyebrow { font: 700 12px/1 var(--ezi-font-heading); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ezi-primary); margin: 0 0 12px; }
.ezi-404__routes-title { font-family: var(--ezi-font-heading); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: var(--ezi-h-tracking); margin: 0; color: var(--ezi-heading); }
.ezi-404__search { display: flex; width: min(100%, 380px); background: #fff; border: 1px solid rgba(13,27,46,.12); border-radius: 999px; padding: 4px 4px 4px 20px; box-shadow: var(--ezi-shadow); }
.ezi-404__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 15px var(--ezi-font-body); color: var(--ezi-text); }
.ezi-404__search button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ezi-primary); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.ezi-404__search button:hover { background: var(--ezi-dark); }
.ezi-404__search button svg { width: 18px; height: 18px; }
.ezi-404__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ezi-404__grid a {
	display: flex; align-items: center; gap: 12px;
	background: #fff; border: 1px solid rgba(13,27,46,.08); border-radius: var(--ezi-radius);
	padding: 16px 16px 16px 14px; color: var(--ezi-heading); text-decoration: none;
	font: 600 15px/1.2 var(--ezi-font-heading);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ezi-404__grid a:hover { transform: translateY(-3px); box-shadow: var(--ezi-shadow-lg); border-color: rgba(var(--ezi-primary-rgb), .35); }
.ezi-404__grid-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; background: rgba(var(--ezi-primary-rgb), .08); color: var(--ezi-primary); display: grid; place-items: center; }
.ezi-404__grid-icon svg { width: 18px; height: 18px; }
.ezi-404__grid-label { flex: 1; }
.ezi-404__grid-arrow { color: var(--ezi-muted); display: grid; transition: transform .2s, color .2s; }
.ezi-404__grid-arrow svg { width: 16px; height: 16px; }
.ezi-404__grid a:hover .ezi-404__grid-arrow { transform: translateX(3px); color: var(--ezi-primary); }

@media (max-width: 1100px) {
	.ezi-404__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.ezi-404__inner { grid-template-columns: 1fr; gap: 0; }
	.ezi-404__copy { padding-bottom: 40px; }
	.ezi-404__scene { min-height: 260px; }
	.ezi-404__num { bottom: 40px; }
}
@media (max-width: 640px) {
	.ezi-404 { padding-top: 130px; }
	.ezi-404__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ezi-404__grid a { padding: 12px; font-size: 14px; }
	.ezi-404__grid-icon { width: 30px; height: 30px; flex-basis: 30px; }
	.ezi-404__routes-head { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	.ezi-404__zero svg, .ezi-404__dot { animation: none; }
}


/* Page hero: split layout (article pages: text left, featured image card right) */
.ezi-page-hero.is-split { background: var(--ezi-primary); padding: 150px 0 64px; }
.ezi-page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ezi-page-hero.is-split .ezi-page-hero__title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.05; }
.ezi-page-hero.is-split .ezi-page-hero__subtitle { font-size: 15px; margin-top: 28px; }
.ezi-page-hero__media { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--ezi-shadow-lg); background: rgba(255,255,255,.08); }
.ezi-page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
	.ezi-page-hero.is-split { padding: 120px 0 48px; }
	.ezi-page-hero__grid { grid-template-columns: 1fr; gap: 32px; }
}


/* Search results */
.ezi-search__inner { max-width: 860px; }
.ezi-search__form { display: flex; gap: 8px; background: #fff; border: 1px solid rgba(13,27,46,.14); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: var(--ezi-shadow); margin-bottom: 40px; }
.ezi-search__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 16px var(--ezi-font-body); color: var(--ezi-text); }
.ezi-search__form button { border: 0; border-radius: 999px; background: var(--ezi-primary); color: #fff; font: 700 14px var(--ezi-font-heading); padding: 12px 22px; cursor: pointer; transition: background .2s; }
.ezi-search__form button:hover { background: var(--ezi-dark); }
.ezi-search__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ezi-search__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid rgba(13,27,46,.1); }
.ezi-search__item:first-child { border-top: 0; padding-top: 0; }
.ezi-search__item.has-thumb { grid-template-columns: 160px minmax(0, 1fr); align-items: start; }
.ezi-search__thumb { display: block; border-radius: var(--ezi-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ezi-light); }
.ezi-search__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ezi-search__item:hover .ezi-search__thumb img { transform: scale(1.04); }
.ezi-search__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 700 11px/1 var(--ezi-font-heading); letter-spacing: 1.4px; text-transform: uppercase; color: var(--ezi-primary); }
.ezi-search__date { color: var(--ezi-muted); font-weight: 600; letter-spacing: .4px; text-transform: none; font-size: 13px; }
.ezi-search__date::before { content: "•"; margin-right: 10px; color: rgba(13,27,46,.3); }
.ezi-search__title { font-family: var(--ezi-font-heading); font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -.3px; margin: 0 0 6px; }
.ezi-search__title a { color: var(--ezi-heading); text-decoration: none; }
.ezi-search__title a:hover { color: var(--ezi-primary); }
.ezi-search__path { display: inline-block; font-size: 13px; color: var(--ezi-muted); text-decoration: none; margin-bottom: 10px; word-break: break-all; }
.ezi-search__path:hover { color: var(--ezi-primary); text-decoration: underline; }
.ezi-search__desc { margin: 0; color: #3b4a60; font-size: 15.5px; line-height: 1.65; }
.ezi-search__empty h2 { font-family: var(--ezi-font-heading); font-size: 26px; margin: 0 0 10px; }
.ezi-search__empty p { color: var(--ezi-muted); margin: 0 0 20px; }
.ezi-search__quick { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ezi-search__quick a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(13,27,46,.12); color: var(--ezi-heading); font: 600 14px var(--ezi-font-heading); text-decoration: none; transition: border-color .2s, color .2s; }
.ezi-search__quick a:hover { border-color: var(--ezi-primary); color: var(--ezi-primary); }
@media (max-width: 640px) {
	.ezi-search__item.has-thumb { grid-template-columns: 1fr; gap: 14px; }
	.ezi-search__thumb { aspect-ratio: 16 / 9; }
	.ezi-search__title { font-size: 19px; }
	.ezi-search__form { padding-left: 16px; margin-bottom: 28px; }
	.ezi-search__form button { padding: 10px 16px; }
}


/* Footer credit link */
.ezi-footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); transition: text-decoration-color .2s; }
.ezi-footer__bottom a:hover { color: #fff; text-decoration-color: #fff; }
