/**
 * General Engineering — theme styles.
 * Values come from tokens.css (generated from design/tokens.json). Components mirror the design system
 * (design/bundle.css), re-targeted at core block markup + block styles.
 *
 * Sections:
 *  1 Base & contexts   2 Icons   3 Block styles (core)   4 Header   5 Footer
 *  6 Patterns          7 Custom blocks                    8 Utilities / motion
 */

/* ---------- 1 Base & contexts ---------- */
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ge-dark, [class*="is-style-section-dark"] { color: var(--text); }
.ge-dark :where(h1, h2, h3, h4, h5, h6) { color: var(--text); }
.ge-dark a:where(:not(.wp-element-button)) { color: var(--text-accent); }
.ge-dark p.has-text-color, .ge-dark .ge-muted { color: var(--text-muted); }
.ge-muted { color: var(--text-muted); }
.ge-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wp-site-blocks > main { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- 2 Icons (CSS mask so they take currentColor) ---------- */
.ge-icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -0.15em; color: inherit; }
.ge-icon svg { display: block; width: 100%; height: 100%; }
.ge-mask { display: inline-block; width: 1em; height: 1em; background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ---------- 3 Block styles on core blocks ---------- */

/* Buttons: the brand's −12° parallelogram at rest, easing into the rounded rectangle on hover and keyboard focus.
   The shape is painted with gradients whose angle, inset and colours are registered custom properties, so it
   animates without pseudo-elements (those carry the icons and the service card's click overlay) and without
   clip-path (which would clip the focus ring). --ge-btn-cut = button height × sin 12°; .978 = sin 102°.
   Layers, top to bottom: outline top edge, outline bottom edge, outline slanted sides, fill. The Gravity Forms
   selector needs (0,5,2) to beat GF's own `… > button:not([id*=mceu_]):not(.mce-open)` background rule. */
@property --ge-btn-angle { syntax: "<angle>"; inherits: false; initial-value: 102deg; }
@property --ge-btn-cut { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --ge-btn-fill { syntax: "<color>"; inherits: false; initial-value: transparent; }
@property --ge-btn-edge { syntax: "<color>"; inherits: false; initial-value: transparent; }
.wp-block-button .wp-block-button__link,
.gform-theme.gform-theme--framework.gform_wrapper form button:is(.gform-button, .gform_button)[type="submit"] {
	--ge-btn-angle: 102deg;
	--ge-btn-cut: 10px;
	--ge-btn-rest: var(--brand-red);            /* styles set --ge-btn-rest / --ge-btn-fill-hover, never --ge-btn-fill */
	--ge-btn-fill-hover: var(--brand-red-hover);
	--ge-btn-fill: var(--ge-btn-rest);
	--ge-btn-edge: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px;
	border-color: transparent;
	background:
		linear-gradient(var(--ge-btn-edge), var(--ge-btn-edge)) calc(var(--ge-btn-cut) / .978) 0 / calc(100% - var(--ge-btn-cut) / .978) 2px no-repeat border-box,
		linear-gradient(var(--ge-btn-edge), var(--ge-btn-edge)) 0 100% / calc(100% - var(--ge-btn-cut) / .978) 2px no-repeat border-box,
		linear-gradient(var(--ge-btn-angle), transparent calc(var(--ge-btn-cut) - .5px), var(--ge-btn-edge) calc(var(--ge-btn-cut) + .5px), var(--ge-btn-edge) calc(var(--ge-btn-cut) + 2px), transparent calc(var(--ge-btn-cut) + 2.5px), transparent calc(100% - var(--ge-btn-cut) - 2.5px), var(--ge-btn-edge) calc(100% - var(--ge-btn-cut) - 2px), var(--ge-btn-edge) calc(100% - var(--ge-btn-cut) - .5px), transparent calc(100% - var(--ge-btn-cut) + .5px)) no-repeat border-box,
		linear-gradient(var(--ge-btn-angle), transparent calc(var(--ge-btn-cut) - .5px), var(--ge-btn-fill) calc(var(--ge-btn-cut) + .5px), var(--ge-btn-fill) calc(100% - var(--ge-btn-cut) - .5px), transparent calc(100% - var(--ge-btn-cut) + .5px)) no-repeat border-box;
	transition: --ge-btn-angle .4s cubic-bezier(.2, .8, .2, 1), --ge-btn-cut .4s cubic-bezier(.2, .8, .2, 1), --ge-btn-fill .3s ease, --ge-btn-edge .3s ease, color .3s ease;
}
.wp-block-button .wp-block-button__link:is(:hover, :focus-visible),
.wp-block-cover.ge-card:hover .wp-block-button__link,
.gform-theme.gform-theme--framework.gform_wrapper form button:is(.gform-button, .gform_button)[type="submit"]:is(:hover, :focus-visible) { --ge-btn-angle: 90deg; --ge-btn-cut: 0px; --ge-btn-fill: var(--ge-btn-fill-hover); }
.wp-block-button.is-style-outline > .wp-block-button__link { --ge-btn-rest: transparent; --ge-btn-fill-hover: var(--text); --ge-btn-edge: var(--text); color: var(--text); }
.wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible), .wp-block-cover.ge-card:hover .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--surface); }
.wp-block-button.is-style-fill-blue > .wp-block-button__link { --ge-btn-rest: var(--brand-blue); --ge-btn-fill-hover: var(--navy-800); color: var(--white); }
.wp-block-button.is-small > .wp-block-button__link { --ge-btn-cut: 8.3px; min-height: 40px; padding: 8px 18px; font-size: 17px; }
.wp-block-button.has-arrow > .wp-block-button__link::after,
.wp-block-button.has-icon-mail > .wp-block-button__link::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; transition: transform .15s; }
.wp-block-button.has-arrow > .wp-block-button__link::after { --i: url(../icons/arrow-right.svg); }
.wp-block-button.has-icon-mail > .wp-block-button__link::before { --i: url(../icons/mail.svg); }
.wp-block-button.has-arrow > .wp-block-button__link:hover::after { transform: translateX(3px); }

/* Heading: accent bar + accent line (Highlight → Brand Sky text drops to its own line) */
/* The bar leans −12° from its foot, so its top drifts right by (height × tan 12°). The padding clears that lean
   plus a gap, using the heading's expected line count (--ge-bar-lines × 1lh) so text never runs into the bar. */
.is-style-accent-bar { --ge-bar-lines: 1; position: relative; padding-left: calc(var(--bar-width) + max(var(--space-3), .3em) + var(--ge-bar-lines) * 1lh * .2126); }
.is-style-accent-bar::before { content: ""; position: absolute; left: 0; top: .08em; bottom: .08em; width: var(--bar-width); background: var(--brand-sky); transform: skewX(var(--bar-skew)); transform-origin: bottom left; }
.ge-hero h1.is-style-accent-bar, .ge-why h2.is-style-accent-bar, .ge-card h3.is-style-accent-bar { --ge-bar-lines: 2; }
@media (width <= 600px) {
	.is-style-accent-bar { --ge-bar-lines: 2; }
	.ge-hero h1.is-style-accent-bar, .ge-why h2.is-style-accent-bar { --ge-bar-lines: 3; }
	.ge-card h3.is-style-accent-bar { --ge-bar-lines: 1; }
}
.is-style-accent-bar mark { display: block; background: none; color: var(--brand-sky); }
h2.is-style-accent-bar mark, h2.is-style-accent-bar small { font-size: inherit; }
.ge-kicker-line { display: block; font-size: .78em; }

/* Paragraph styles */
p.is-style-eyebrow { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); font-family: var(--font-body); font-size: 15px; line-height: 1.2; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-accent); }
p.is-style-eyebrow::after { content: ""; flex: 0 1 140px; height: 2px; background: currentColor; opacity: .7; }
.ge-dark p.is-style-eyebrow { color: var(--text); }
p.has-text-align-center.is-style-eyebrow { justify-content: center; }
p.has-text-align-center.is-style-eyebrow::before { content: ""; flex: 0 1 140px; height: 2px; background: currentColor; opacity: .7; }
p.is-style-service-line { font-family: var(--font-condensed); font-weight: 600; font-style: italic; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; }
p.is-style-service-line mark { background: none; color: var(--brand-sky); font-style: normal; padding-inline: .3em; }
p.is-style-lede { font-size: var(--wp--preset--font-size--lede); line-height: 1.5; color: var(--text-muted); max-width: 62ch; }

/* List: checks */
ul.is-style-checks { display: grid; gap: var(--space-3); padding: 0; list-style: none; }
ul.is-style-checks li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 19px; line-height: 1.35; font-weight: 500; }
ul.is-style-checks li::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: -1px; background: var(--text-accent); -webkit-mask: url(../icons/check.svg) center / contain no-repeat; mask: url(../icons/check.svg) center / contain no-repeat; }
.ge-dark ul.is-style-checks li::before { background: var(--brand-sky); }

/* Table: specs */
.wp-block-table.is-style-specs { overflow-x: auto; border-radius: var(--radius-sm); }
.wp-block-table.is-style-specs table { width: 100%; border-collapse: collapse; font-size: 16px; }
.wp-block-table.is-style-specs :where(th, td) { padding: 12px var(--space-4); text-align: left; border: 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.wp-block-table.is-style-specs thead { border: 0; }
.wp-block-table.is-style-specs thead th { background: var(--navy-900); color: var(--white); font-family: var(--font-condensed); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.wp-block-table.is-style-specs tbody td:first-child { font-weight: 600; width: 38%; }
.wp-block-table.is-style-specs tbody tr:nth-child(even) { background: var(--surface-alt); }
.wp-block-table.is-style-specs figcaption { text-align: left; font-size: 13px; color: var(--text-muted); }

/* Details (FAQ) */
.wp-block-details summary { font-family: var(--font-condensed); font-weight: 700; font-size: 20px; text-transform: uppercase; cursor: pointer; transition: color .3s ease; }
.wp-block-details summary:is(:hover, :focus-visible) { color: var(--text-accent); }
.wp-block-details summary::marker { color: var(--brand-blue); }
.wp-block-details[open] summary { margin-bottom: var(--space-3); }

/* ---------- 4 Header ---------- */
/* A fixed, frosted bar. The <header> part keeps the bar's full height in the page flow, so content starts below it
   and nothing shifts when the bar compacts on scroll (assets/js/header.js toggles .is-compact). The frosting sits
   on ::before because backdrop-filter on .ge-header itself would trap the fixed mobile overlay inside the bar. */
header.wp-block-template-part:has(> .ge-header) { height: var(--header-height); }
.ge-header { position: fixed; z-index: 100; inset: var(--wp-admin--admin-bar--height, 0px) 0 auto; color: var(--ink-900); box-shadow: var(--shadow-header); }
.ge-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--white) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ge-header::before { background: var(--white); } }
/* Logged in at 600px and below, WordPress lets the admin bar scroll away (position: absolute), which left a gap
   above the fixed bar. There the header part is sticky instead: it rides up with the admin bar as part of the
   page and then sticks to the top, in step on the compositor with no script. The part keeps its reserved height,
   so it ignores pointer events and only the bar itself takes clicks. */
@media screen and (max-width: 600px) {
	body.admin-bar header.wp-block-template-part:has(> .ge-header) { position: sticky; top: 0; z-index: 100; pointer-events: none; }
	body.admin-bar .ge-header { position: absolute; inset: 0 0 auto; pointer-events: auto; }
}
.ge-header > *, .ge-header__inner > *, .ge-header__right > *, .ge-utility > * { margin-block: 0 !important; } /* drop the flow layout's block gaps */
.ge-header__inner { display: grid !important; grid-template-columns: auto 1fr; align-items: stretch; box-sizing: border-box; max-width: var(--wide-width); min-height: var(--header-height); margin-inline: auto; padding-inline: var(--wp--preset--spacing--50); gap: 0 !important; transition: min-height .3s ease; }
/* The logo's cylinder dips ~26px below the bar, as in the mockup (negative bottom margin keeps the bar 104px). */
.ge-header .wp-block-site-logo { position: relative; z-index: 2; padding-right: var(--space-6); margin-right: var(--space-6); border-right: 1px solid var(--steel-200); }
.ge-header .wp-block-site-logo img { display: block; width: 248px; height: auto; margin: 6px 0 -28px; } /* no width transition: the compact row would wrap while the logo was still shrinking */
.ge-header__right { display: flex !important; flex-direction: column; justify-content: space-between; align-items: flex-end !important; gap: 0 !important; }
.ge-utility { display: flex !important; justify-content: flex-end; align-items: center; gap: var(--space-6) !important; padding-top: var(--space-3); }
.ge-utility .wp-block-buttons { margin: 0; }
.ge-header .wp-block-navigation { gap: var(--space-6); }
.ge-header .wp-block-navigation .wp-block-navigation-item__content { position: relative; padding: 14px 0 11px; color: var(--ink-900); text-decoration: none; transition: color .25s ease; }
.ge-header .wp-block-navigation .wp-block-navigation-item__content::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 4px; background: transparent; transition: background-color .25s ease; }
.ge-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after { background: var(--steel-200); }
.ge-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.ge-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content { color: var(--brand-blue); }
.ge-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { background: var(--brand-blue); }
.ge-header .wp-block-navigation .wp-block-navigation__submenu-container { min-width: 260px !important; padding: var(--space-2) 0; border: 0 !important; border-top: 4px solid var(--brand-blue) !important; box-shadow: var(--shadow-card); }
.ge-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px var(--space-5); font-size: 16px; }
.ge-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.ge-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--steel-100); }
/* Phone, menu and close buttons on small screens: matching 48px tiles with brand-blue glyphs, centred. */
.ge-header .wp-block-navigation__responsive-container-open,
.ge-header .wp-block-navigation__responsive-container-close { box-sizing: border-box; width: 48px; height: 48px; padding: 0; place-items: center; border: 0; border-radius: var(--radius-md); background: var(--surface-alt); color: var(--text-accent); transition: background-color .25s ease, color .25s ease; }
.ge-header .wp-block-navigation__responsive-container-close { display: grid; }
.ge-header .wp-block-navigation__responsive-container-open svg, .ge-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.ge-header .wp-block-navigation__responsive-container-open:hover, .ge-header .wp-block-navigation__responsive-container-close:hover { background: var(--brand-blue); color: var(--white); }

/* Compact bar once scrolled: phone and location hide, the logo shrinks and loses its dip (brand book: the overhang
   is for the un-scrolled state only) and the quote button joins the menu row. */
@media (width > 1080px) {
	.ge-header.is-compact .ge-header__inner { min-height: 64px; }
	.ge-header.is-compact .wp-block-site-logo img { width: 112px; margin: 4px 0; }
	.ge-header.is-compact .ge-header__right { flex-direction: row-reverse; align-items: center !important; justify-content: flex-start; gap: var(--space-5) !important; }
	.ge-header.is-compact .ge-utility { padding-top: 0; }
	.ge-header.is-compact .ge-contact--header { display: none; }
	.ge-header.is-compact .wp-block-navigation { gap: var(--space-5); }
	.ge-header.is-compact .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { padding-block: 19px 18px; }
}

/* Six top-level items need ~727px on one row. Below 1140px the gaps tighten; below 1080px the menu collapses
   (the design system's 980px assumed a shorter menu). Range syntax leaves no gap for fractional widths. */
@media (1080px < width < 1140px) { .ge-header .wp-block-navigation { gap: var(--space-5); } }
@media (1080px < width < 1180px) { .ge-header.is-compact .ge-utility { display: none !important; } }
@media (width <= 1080px) {
	header.wp-block-template-part:has(> .ge-header) { height: 72px; }
	.ge-header__inner { grid-template-columns: 1fr auto; min-height: 72px; align-items: center; }
	.ge-header .wp-block-site-logo { align-self: start; padding: 0; margin: 0; border: 0; }
	.ge-header .wp-block-site-logo img { width: 168px; margin: 12px 0 -28px; } /* 12px clear of the bar's top; the cylinder still dips ~24px */
	.ge-header__right { flex-direction: row !important; align-items: center !important; justify-content: flex-end !important; gap: var(--space-3) !important; }
	.ge-utility { padding: 0; gap: var(--space-3) !important; }
	.ge-utility .ge-contact--header .ge-contact__place, .ge-utility .ge-contact--header .ge-contact__phone-text { display: none; }
	.ge-contact--header .ge-contact__phone { display: inline-grid; place-items: center; box-sizing: border-box; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--surface-alt); color: var(--text-accent); transition: background-color .25s ease, color .25s ease; }
	.ge-contact--header .ge-contact__phone:hover { background: var(--brand-blue); color: var(--white); }
	.ge-contact--header .ge-contact__phone .ge-icon { font-size: 24px; }
	.ge-header .wp-block-navigation__responsive-container-open { display: inline-grid; }
	.ge-header.is-compact .ge-header__inner { min-height: 64px; }
	.ge-header.is-compact .wp-block-site-logo img { width: 96px; margin: 8px 0; } /* 48px tall: 8px clear top and bottom */
}
/* Core's overlay only switches below 600px; show the menu button up to the collapse point. */
@media (600px <= width <= 1080px) { .ge-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; } }
@media (width < 600px) {
	.ge-header .wp-block-site-logo img { width: 160px; margin: 12px 0 -28px; }
	.ge-utility .wp-block-buttons { display: none; }
}

/* Open overlay menu: light context, full-width 48px+ rows on rules, submenus as indented lists (not dropdown panels). */
.ge-header .wp-block-navigation .is-menu-open { --navigation-layout-justification-setting: stretch; padding: var(--space-4) var(--wp--preset--spacing--50) var(--space-7); background: var(--surface); color: var(--text); }
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-close { top: 0; right: 0; }
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: calc(48px + var(--space-5)); }
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { --navigation-layout-justification-setting: stretch; gap: 0; border-top: 4px solid var(--brand-blue); } /* the <ul> also carries .items-justified-right, which resets the variable */
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container > .wp-block-navigation-item { border-bottom: 1px solid var(--rule); }
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 48px; padding: var(--space-2) var(--space-3); font-size: 22px; line-height: 1.15; }
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content::after { display: none; }
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:hover { color: var(--brand-blue); }
/* Current page: a 4px bar as well as blue text (blue vs ink is only 2.5:1, so colour alone fails 1.4.1). */
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .current-menu-item > .wp-block-navigation-item__content { box-shadow: inset 4px 0 0 var(--brand-blue); }
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container { min-width: 0 !important; margin: 0 0 var(--space-3); padding: 0 0 0 var(--space-5); border: 0 !important; border-left: 2px solid var(--rule) !important; box-shadow: none; gap: 0; }
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: var(--space-1) var(--space-3); font-size: 18px; }
.ge-header .wp-block-navigation .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: none; }

/* ---------- 5 Footer ---------- */
.ge-footer { background: var(--navy-900); }
.ge-footer__top { max-width: var(--wide-width); margin-inline: auto; display: grid !important; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-7) !important; }
.ge-footer__top > * { margin: 0 !important; }
.ge-footer .wp-block-site-logo img, .ge-footer .ge-footer__logo img { width: 220px; height: auto; }
.ge-footer h2 { margin: 0 0 var(--space-4); font-family: var(--font-condensed); font-style: normal; font-weight: 700; font-size: 18px; letter-spacing: .5px; text-transform: uppercase; }
.ge-footer h2::after { content: ""; display: block; width: 36px; height: 3px; margin-top: var(--space-2); background: var(--brand-sky); transform: skewX(var(--bar-skew)); }
.ge-footer .wp-block-navigation { --navigation-layout-direction: column; }
.ge-footer .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.ge-footer .wp-block-navigation-item__content { color: var(--text-muted) !important; font-family: var(--font-body); font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.ge-footer .wp-block-navigation-item__content:hover { color: var(--white) !important; text-decoration: underline; }
.ge-footer__bottom { max-width: var(--wide-width); margin-inline: auto; display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); border-top: 1px solid var(--rule); padding-block: var(--space-4); font-size: 13px; color: var(--text-muted); }
.ge-footer__bottom p { margin: 0; }
.ge-footer__bottom a { color: var(--text-muted) !important; }
@media (max-width: 900px) { .ge-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ge-footer__top { grid-template-columns: 1fr; } }

/* ---------- 6 Patterns ---------- */

/* Heroes (core/cover.ge-hero / .ge-pagehero) */
.wp-block-cover.ge-hero, .wp-block-cover.ge-pagehero { background: var(--navy-900); }
.wp-block-cover.ge-hero .wp-block-cover__inner-container, .wp-block-cover.ge-pagehero .wp-block-cover__inner-container { width: 100%; max-width: var(--wide-width); margin-inline: auto; }
.ge-hero__copy { max-width: 720px; }
.wp-block-cover.ge-hero .wp-block-cover__inner-container, .wp-block-cover.ge-pagehero .wp-block-cover__inner-container { padding-inline: var(--wp--preset--spacing--50); }
.ge-hero__copy > * + * { margin-block-start: var(--space-5) !important; }
.ge-hero__copy > p.is-style-eyebrow + * { margin-block-start: 0 !important; }
.ge-hero p.is-style-lede { color: var(--text); font-style: italic; }
.ge-pagehero p.is-style-lede { color: var(--text-muted); }
.ge-hero h1 { font-size: var(--wp--preset--font-size--hero); line-height: 1; letter-spacing: -0.5px; text-transform: none; }
.ge-pagehero h1 { text-transform: none; }
@media (max-width: 720px) { .wp-block-cover.ge-hero .wp-block-cover__background { background: rgba(5, 25, 43, .82) !important; } }

/* Section intro */
.ge-intro { margin-bottom: var(--space-6); }

/* Service cards (core/cover.ge-card inside .ge-cards grid) */
.ge-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4) !important; }
.ge-cards > * { margin: 0 !important; }
.wp-block-cover.ge-card { min-height: 380px; padding: var(--space-5); align-items: flex-end; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.wp-block-cover.ge-card .wp-block-cover__image-background { height: 70%; bottom: auto; }
.wp-block-cover.ge-card .wp-block-cover__inner-container { display: grid; gap: var(--space-3); }
.wp-block-cover.ge-card .wp-block-cover__inner-container > * { margin: 0; }
.wp-block-cover.ge-card h3 { font-size: var(--wp--preset--font-size--card); line-height: 1; text-transform: uppercase; color: var(--white); }
.wp-block-cover.ge-card p { font-size: 17px; line-height: 1.45; color: var(--white); }
.wp-block-cover.ge-card .wp-block-buttons { justify-content: flex-start; margin-top: var(--space-2) !important; }
/* Card buttons are outline buttons in the navy context (--text white, --surface navy): no overrides needed. */
.wp-block-cover.ge-card .wp-block-button__link::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.wp-block-cover.ge-card .wp-block-button { position: static; }

/* Feature strip */
.ge-features { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0 !important; max-width: var(--wide-width); margin-inline: auto; }
.ge-features > * { margin: 0 !important; }
.ge-feature { display: flex !important; gap: var(--space-4) !important; align-items: center; padding-inline: var(--space-5); }
.ge-feature + .ge-feature { border-left: 1px solid var(--rule); }
.ge-feature .ge-icon { font-size: 52px; color: var(--text-accent); }
.ge-feature h3 { margin: 0 0 2px; font-size: 20px; line-height: 1.15; text-transform: uppercase; }
.ge-feature h3 a { color: inherit; text-decoration: none; }
.ge-feature h3 a:hover { text-decoration: underline; }
.ge-feature p { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--text-muted); }
@media (max-width: 980px) { .ge-features { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-6) !important; } .ge-feature:nth-child(3) { border-left: 0; } }
@media (max-width: 560px) { .ge-features { grid-template-columns: 1fr; } .ge-feature + .ge-feature { border-left: 0; border-top: 1px solid var(--rule); padding-top: var(--space-5); } }

/* Why choose (core/columns.ge-why): full-bleed, as in the mockup. The photo spans the whole row and fades out to
   the right behind the angled navy panel; the panel stops short of the bottom so the fading photo shows beneath it.
   margin-block only, so the alignfull negative inline margins still reach the viewport edges. */
.wp-block-columns.ge-why { display: grid !important; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 0 !important; margin-block: 0; background: var(--surface); min-height: 380px; }
.ge-why > .wp-block-column { margin: 0 !important; }
.ge-why__media { grid-area: 1 / 1 / 2 / 3; position: relative; min-height: 280px; }
.ge-why__media .wp-block-image { position: absolute; inset: 0; margin: 0; }
.ge-why__media .wp-block-image img { display: block; width: 100%; height: 100% !important; object-fit: cover; /* !important: the editor sets an inline height:auto, which let the photo run at its natural height and spill into the next section */ -webkit-mask-image: linear-gradient(90deg, currentColor 38%, transparent 97%); mask-image: linear-gradient(90deg, currentColor 38%, transparent 97%); }
.ge-why > .ge-why__panel { grid-area: 1 / 2 / 2 / 3; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--space-5); margin: 0 0 var(--wp--preset--spacing--60) !important; padding: var(--space-7) max(var(--space-7), calc((100vw - var(--wide-width)) / 2)) var(--space-7) var(--space-8) !important; background: var(--navy-800); clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%); }
.ge-why__panel > * { margin: 0 !important; }
@media (max-width: 781px) {
	.wp-block-columns.ge-why { grid-template-columns: minmax(0, 1fr); }
	.ge-why__media, .ge-why__panel { grid-area: auto; }
	.ge-why__media { min-height: 240px; }
	.ge-why__media .wp-block-image img { -webkit-mask-image: none; mask-image: none; }
	.ge-why > .ge-why__panel { margin: 0 !important; clip-path: none; padding: var(--space-7) var(--space-5) !important; }
}

/* Process steps */
.ge-steps { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-5) !important; counter-reset: step; }
.ge-steps > * { margin: 0 !important; }
.ge-step { position: relative; padding: var(--space-6) var(--space-5) var(--space-5) !important; background: var(--surface-alt); border-top: 4px solid var(--brand-blue); }
.ge-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: var(--space-3); right: var(--space-4); font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 44px; line-height: 1; color: var(--rule); }
.ge-step > * { margin: 0 !important; }
.ge-step .ge-icon { font-size: 36px; color: var(--text-accent); margin-bottom: var(--space-3) !important; }
.ge-step h3 { margin-bottom: var(--space-2) !important; font-size: 22px; text-transform: uppercase; }
.ge-step p { font-size: 15px; line-height: 1.5; color: var(--text-muted); }

/* Industry grid (core/cover.ge-industry) */
.ge-industries { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) !important; }
.ge-industries > * { margin: 0 !important; }
.wp-block-cover.ge-industry { min-height: 190px; padding: var(--space-5); align-items: flex-end; border-radius: var(--radius-sm); overflow: hidden; }
.wp-block-cover.ge-industry .wp-block-cover__inner-container > * { margin: 0; }
.wp-block-cover.ge-industry .ge-icon { font-size: 40px; color: var(--brand-sky); margin-bottom: var(--space-2); }
.wp-block-cover.ge-industry h3 { font-size: 24px; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.wp-block-cover.ge-industry h3 a { color: inherit; text-decoration: none; }
.wp-block-cover.ge-industry h3 a::before { content: ""; position: absolute; inset: 0; }
.wp-block-cover.ge-industry h3 a:hover { text-decoration: underline; }
.wp-block-cover.ge-industry h3 a:focus-visible { outline: none; }
.wp-block-cover.ge-industry h3 a:focus-visible::before { outline: 3px solid var(--focus); outline-offset: -3px; } /* ring the whole card */

/* Whole-card links (service cards and industry tiles): each card's one link is stretched over it with ::before.
   Core makes the inner container position:relative, which trapped that overlay inside the text area. The inner
   container goes static, and the photo and scrim drop to z-index -1 inside the isolated card so text still paints
   above them. */
.wp-block-cover:is(.ge-card, .ge-industry) { isolation: isolate; }
.wp-block-cover:is(.ge-card, .ge-industry) > :is(.wp-block-cover__image-background, .wp-block-cover__background) { z-index: -1; }
.wp-block-cover:is(.ge-card, .ge-industry) > .wp-block-cover__inner-container { position: static; }

/* Ken Burns on hover or keyboard focus: a slow push-in and drift on the card photo, alternating direction from card
   to card, easing back faster on leave. Off for prefers-reduced-motion. */
.wp-block-cover:is(.ge-card, .ge-industry) > .wp-block-cover__image-background { --ge-kb-x: -2.5%; --ge-kb-y: -2%; transform-origin: 35% 40%; transition: transform .9s ease; }
.wp-block-cover:is(.ge-card, .ge-industry):nth-of-type(even) > .wp-block-cover__image-background { --ge-kb-x: 2.5%; transform-origin: 65% 55%; }
.wp-block-cover:is(.ge-card, .ge-industry):is(:hover, :focus-within) > .wp-block-cover__image-background { transform: scale(1.16) translate(var(--ge-kb-x), var(--ge-kb-y)); transition: transform 8s cubic-bezier(.25, .46, .45, .94); }
@media (prefers-reduced-motion: reduce) { .wp-block-cover:is(.ge-card, .ge-industry):is(:hover, :focus-within) > .wp-block-cover__image-background { transform: none; } }
@media (max-width: 860px) { .ge-industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ge-industries { grid-template-columns: 1fr; } }

/* Trust badges */
.ge-badges { display: flex !important; flex-wrap: wrap; gap: var(--space-4) !important; }
.ge-badges > * { margin: 0 !important; }
.ge-badge { display: flex !important; align-items: center; gap: var(--space-3) !important; padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4) !important; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--surface); }
.ge-badge > * { margin: 0 !important; }
.ge-badge .ge-icon { font-size: 36px; color: var(--text-accent); }
.ge-badge p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.35; }
.ge-badge p strong { display: block; font-family: var(--font-condensed); font-weight: 700; font-size: 19px; text-transform: uppercase; color: var(--text); }

/* Stat row: headline figures (label above, Stat paragraph below) with the brand's skewed bar as a marker */
.ge-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-6) var(--space-7) !important; }
.ge-stats > * { margin: 0 !important; }
.ge-stat { position: relative; padding-top: var(--space-4); }
.ge-stat::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 4px; background: var(--brand-sky); transform: skewX(var(--bar-skew)); }
.ge-stat > * { margin: 0 !important; }
.ge-stat > p:not(.is-style-stat) { margin-bottom: var(--space-2) !important; font-family: var(--font-condensed); font-weight: 600; font-size: 16px; letter-spacing: .3px; text-transform: uppercase; color: var(--text-muted); }
p.is-style-stat { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -0.5px; color: var(--text); }
.ge-stats__note { max-width: 72ch; margin-top: var(--space-6) !important; }

/* Info grid: heading-and-paragraph items in columns; items can carry anchors (Industries page) */
.ge-info-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6) var(--space-7) !important; }
.ge-info-grid > * { margin: 0 !important; }
.ge-info { padding-top: var(--space-4); border-top: 2px solid var(--rule); }
.ge-info > * { margin: 0 !important; }
.ge-info > * + * { margin-top: var(--space-3) !important; }
.ge-info p { line-height: 1.55; }

/* Photo pair: captioned photos cropped to one 3:2 shape; captions are short uppercase labels (booklet style) */
.ge-photos { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5) !important; }
.ge-photos > * { margin: 0 !important; }
.ge-photos .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.ge-photos .wp-block-image figcaption { margin: var(--space-2) 0 0; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-align: left; text-transform: uppercase; color: var(--text-accent); }

/* CTA band */
.ge-cta { position: relative; overflow: hidden; background: var(--brand-blue); color: var(--white); }
.ge-cta::before { content: ""; position: absolute; top: 0; bottom: 0; right: -40px; width: 38%; background: var(--navy-900); transform: skewX(var(--bar-skew)); transform-origin: top; }
.ge-cta__inner { position: relative; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) !important; max-width: var(--wide-width); margin-inline: auto; }
.ge-cta__inner > * { margin: 0 !important; }
.ge-cta h2 { margin: 0; color: var(--white); font-size: clamp(28px, 3.4vw, 38px); text-transform: none; }
.ge-cta p { margin: var(--space-2) 0 0; font-size: 18px; }
.ge-cta__actions { display: flex !important; flex-wrap: wrap; align-items: center; gap: var(--space-5) !important; }
.ge-cta__actions > * { margin: 0 !important; }
.ge-cta .ge-contact--inline a { color: var(--white); font-family: var(--font-condensed); font-weight: 700; font-size: 26px; text-decoration: none; }
@media (max-width: 720px) { .ge-cta::before { display: none; } }

/* Split content */
.ge-split { align-items: center !important; }
.ge-split .wp-block-image img { border-radius: var(--radius-sm); }

/* Quote + contact layouts */
.ge-quote-layout { align-items: flex-start !important; }
.ge-panel { padding: var(--space-6) !important; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.ge-form-placeholder { padding: var(--space-6); border: 2px dashed var(--control-border); border-radius: var(--radius-md); color: var(--text-muted); text-align: center; }

/* ---------- 7 Custom blocks ---------- */

/* ge/breadcrumbs */
.ge-crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.ge-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-muted); }
.ge-crumbs li + li::before { content: "/"; }
.ge-crumbs a { color: var(--text-accent); text-decoration: none; }
.ge-crumbs a:hover { text-decoration: underline; }
.ge-crumbs [aria-current] { color: var(--text); }

/* ge/contact-info */
.ge-contact a { text-decoration: none; }
.ge-contact .ge-icon { color: inherit; }
.ge-contact--header { display: flex; align-items: center; gap: var(--space-6); }
.ge-contact--header a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-900); }
.ge-contact--header .ge-icon { font-size: 22px; }
.ge-contact--header .ge-contact__phone { font-family: var(--font-condensed); font-weight: 700; font-size: 24px; }
.ge-contact--header .ge-contact__place { font-size: 16px; font-weight: 500; }
.ge-contact--inline a { display: inline-flex; align-items: center; gap: var(--space-2); }
.ge-contact--card { display: grid; gap: var(--space-5); padding: var(--space-6); background: var(--surface-alt); border-top: 4px solid var(--brand-blue); }
.ge-contact__row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.ge-contact__row .ge-icon { font-size: 28px; color: var(--text-accent); margin-top: 2px; }
.ge-contact__label { margin: 0 0 2px; font-family: var(--font-condensed); font-style: normal; font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .3px; }
.ge-contact__row p { margin: 0; font-size: 17px; line-height: 1.45; }
.ge-contact__row a { color: var(--text); font-weight: 600; }
.ge-contact__row a:hover { color: var(--text-accent); text-decoration: underline; }
.ge-contact--footer { font-style: normal; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.ge-contact--footer .ge-contact__phone { display: inline-block; margin-bottom: var(--space-2); color: var(--white); font-family: var(--font-condensed); font-weight: 700; font-size: 22px; }
.ge-contact--footer .ge-contact__email { display: inline-block; min-height: 24px; margin-top: var(--space-2); line-height: 24px; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 8 Utilities / motion ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Section rhythm ---------- */
.ge-section { padding-block: var(--wp--preset--spacing--80); }
.ge-section--tight { padding-block: var(--wp--preset--spacing--60); }
/* Home rhythm: hero → service cards → feature strip → Why Choose sit one even gap apart, as in the mockup. */
.ge-section--cards { padding-block: var(--wp--preset--spacing--50); }
.ge-main .wp-block-post-content > .is-style-section-alt + .wp-block-columns.ge-why { margin-block-start: var(--wp--preset--spacing--50); }
/* Two plain (white) sections in a row share one padding: the second drops its top padding, so the gap between
   them is one section padding rather than two stacked. Banded sections (steel, navy, CTA) keep theirs. */
.ge-section:not([class*="is-style-section"], .ge-cta, .has-background) + .ge-section:not([class*="is-style-section"], .ge-cta, .has-background) { padding-top: 0; }
/* Sections own their rhythm: the CTA band part gets no block gap from <main> (it showed as a white strip above
   the band whenever a page ended on a coloured section). */
.ge-main > .wp-block-template-part { margin-block-start: 0; }
.ge-main > .alignfull + .alignfull, .ge-main .entry-content > .alignfull + .alignfull { margin-block-start: 0; }
.wp-block-post-content > * + .alignfull, .wp-block-post-content > .alignfull + * { margin-block-start: 0; }
.wp-block-cover.ge-hero .wp-block-cover__image-background { object-position: 75% 50%; }
.wp-block-cover.ge-pagehero { padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--70); }
.wp-block-cover.ge-pagehero .ge-hero__copy > * + * { margin-block-start: var(--space-4) !important; }
.wp-block-cover.ge-pagehero .wp-block-post-excerpt__excerpt { margin: 0; }
.wp-block-cover.ge-pagehero .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--lede); color: var(--text-muted); max-width: 62ch; }
.ge-split .wp-block-image img, .ge-split .wp-block-image { width: 100%; }

@media (max-width: 600px) {
	p.is-style-eyebrow { letter-spacing: .2em; font-size: 13px; }
	p.is-style-eyebrow::after { display: none; }
}

/* WCAG 2.2: focus ring must stay visible (≥3:1) on every surface it lands on */
.ge-cta :focus-visible, .ge-cta a:focus-visible { outline-color: var(--white) !important; }
.ge-dark :focus-visible, [class*="is-style-section-dark"] :focus-visible { outline-color: #4DB8F5; }
.wp-block-button__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Any compact inline link in UI chrome gets a 24px minimum target (2.5.8) */
.ge-crumbs a, .ge-footer__bottom a, .ge-footer .wp-block-navigation-item__content { display: inline-block; min-height: 24px; line-height: 24px; }
/* The fixed header must never cover the focused element (2.4.11): focus scrolling clears its full height */
html { scroll-padding-top: calc(var(--header-height) + 16px); }
.skip-link.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 12px 20px; background: var(--white); color: var(--ink-900); font-weight: 600; outline: 3px solid var(--focus); outline-offset: 2px; z-index: 100000; }
