/* Extreme — header: fixed, transparent over the hero, solid once scrolled.
 * Desktop: logo | centred menu with mega panels | call + quote.
 * Phones: drawer with tap-to-open sub-menus, call / WhatsApp fixed at its foot. */
.ex.hdr { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .3s, box-shadow .3s, transform .3s var(--ex-ease); }
/* Pages that open on a light section (Sectors, About): the white logo and menu need the dark bar from the start. */
body:has(.ex.sectorlist, .ex.abouthero) .ex.hdr,
.ex.hdr.is-solid { background: rgba(7, 15, 34, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ex-line); }
/* Menu or mega panel open: an opaque bar, so the page doesn't show through (beats the rules above and the widget's own colour). */
body .ex.hdr.is-open.is-open.is-open,
body .ex.hdr.is-mega.is-mega.is-mega { background: var(--ex-ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--ex-line); }
.ex.hdr.is-hidden { transform: translateY(-100%); }
.admin-bar .ex.hdr { top: var(--wp-admin--admin-bar--height, 32px); }

.ex .hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "logo nav act"; align-items: center; gap: 24px; height: var(--ex-hdr); max-width: calc(var(--ex-max) + var(--ex-gutter) * 2); margin: 0 auto; padding: 0 var(--ex-gutter); }
.ex .hdr-in .logo { grid-area: logo; justify-self: start; }
.ex .hdr-in .logo img { height: 42px; }
.ex .hdr-act { grid-area: act; justify-self: end; display: flex; align-items: center; gap: 22px; }

/* ── centred menu ── */
.ex .hdr-nav { grid-area: nav; display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: #fff; }
.ex .hdr-item { display: flex; align-items: center; }
.ex .hdr-top { position: relative; display: block; padding: 10px 12px; color: #fff; }
.ex .hdr-top::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--ex-arc); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ex-ease); }
.ex .hdr-top:hover, .ex .hdr-top:focus-visible { color: #fff; }
.ex .hdr-top:hover::after, .ex .hdr-item.is-open .hdr-top::after, .ex .hdr-top[aria-current]::after { transform: scaleX(1); }
.ex .hdr-item .hdr-top { padding-right: 4px; }
.ex .hdr-item .hdr-top::after { right: 4px; }
.ex .hdr-caret { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 32px; margin-right: 6px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--ex-text-dim); cursor: pointer; }
.ex .hdr-caret:hover, .ex .hdr-caret:focus { background: none; color: #fff; }
.ex .hdr-caret svg, .ex .hdr-acc summary svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ex-ease); }
.ex .hdr-item.is-open .hdr-caret { color: var(--ex-green); }
.ex .hdr-item.is-open .hdr-caret svg { transform: rotate(180deg); }

/* ── mega panel: full width under the bar ── */
.ex .hdr-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--ex-ink); border-top: 1px solid var(--ex-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ex-ease), visibility 0s .25s; }
.ex .hdr-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ex-arc); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ex-ease); }
.ex .hdr-item.is-open .hdr-mega { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ex-ease), visibility 0s; }
.ex .hdr-item.is-open .hdr-mega::before { transform: scaleX(1); }
.ex .hdr-mega-in { display: grid; grid-template-columns: 1fr 320px; gap: 48px; max-width: calc(var(--ex-max) + var(--ex-gutter) * 2); max-height: calc(100vh - var(--ex-hdr) - 40px); margin: 0 auto; padding: 36px var(--ex-gutter) 40px; overflow-y: auto; }
.ex .hdr-mega-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 36px; align-content: start; }
.ex .hdr-col--wide { grid-column: span 2; }
.ex .hdr-col--wide ul { columns: 2; column-gap: 28px; }
.ex .hdr-col-t { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ex-line); font-size: 13px; font-weight: 800; font-stretch: 115%; letter-spacing: .08em; text-transform: uppercase; color: var(--ex-green); }
.ex a.hdr-col-t span { transition: transform .25s var(--ex-ease); }
.ex a.hdr-col-t:hover span { transform: translateX(4px); }
.ex .hdr-col ul { margin: 0; padding: 0; list-style: none; }
.ex .hdr-col li { break-inside: avoid; }
.ex .hdr-col li a { display: block; margin: 0 -10px; padding: 8px 10px; color: var(--ex-text); transition: background-color .2s; }
.ex .hdr-col li a b { display: block; font-size: 15px; font-weight: 600; }
.ex .hdr-col li a small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ex-text-dim); }
.ex .hdr-col li a:hover, .ex .hdr-col li a:focus-visible { background: rgba(255, 255, 255, .06); }
.ex .hdr-col li a:hover b { color: var(--ex-green-hi); }

.ex .hdr-feat { position: relative; align-self: start; display: flex; flex-direction: column; overflow: hidden; background: var(--ex-navy-800); clip-path: polygon(0 0, calc(100% - var(--ex-cut)) 0, 100% var(--ex-cut), 100% 100%, 0 100%); color: var(--ex-text); }
.ex .hdr-feat-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.ex .hdr-feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ex-ease); }
.ex .hdr-feat:hover .hdr-feat-img img { transform: scale(1.04); }
.ex .hdr-feat-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.ex .hdr-feat-k { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ex-amber); }
.ex .hdr-feat strong { font-size: 21px; font-weight: 800; font-stretch: 112%; line-height: 1.15; }
.ex .hdr-feat-t { font-size: 14px; line-height: 1.45; color: var(--ex-text-dim); }
.ex .hdr-feat-b { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ex-green); }

/* ── call + quote ── */
.ex .hdr-call { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; font-stretch: 110%; white-space: nowrap; color: var(--ex-text); }
.ex .hdr-call i { width: 9px; height: 9px; border-radius: 50%; background: var(--ex-green); animation: ex-pulse 2.2s infinite; }
.ex .hdr-call-lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ex-green); }
@keyframes ex-pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 204, 69, .55); } 70% { box-shadow: 0 0 0 10px rgba(124, 204, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 204, 69, 0); } }
.ex .hdr-cta { height: 42px; padding: 0 20px; font-size: 15px; }

.ex .hdr-ic { display: none; width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; background: none; border: 0; border-radius: 0; box-shadow: none; color: #fff; cursor: pointer; }
.ex .hdr-ic:hover, .ex .hdr-ic:focus { background: none; color: #fff; }
.ex .hdr-menu .hdr-menu-close { display: none; }
.ex .hdr-menu[aria-expanded="true"] .hdr-menu-open { display: none; }
.ex .hdr-menu[aria-expanded="true"] .hdr-menu-close { display: block; }

/* ── phone drawer ── */
.ex .hdr-drawer { position: fixed; inset: var(--ex-hdr) 0 0; z-index: 99; display: flex; flex-direction: column; background: var(--ex-ink); border-top: 1px solid var(--ex-line); }
.admin-bar .ex .hdr-drawer { top: calc(var(--ex-hdr) + var(--wp-admin--admin-bar--height, 32px)); }
.ex .hdr-drawer[hidden] { display: none; }
.ex .hdr-drawer-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 20px; padding: 28px 20px 24px; overflow-y: auto; overscroll-behavior: contain; }
.ex .hdr-drawer nav { display: flex; flex-direction: column; }
.ex .hdr-acc-top, .ex .hdr-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--ex-line); font-size: 26px; font-weight: 800; font-stretch: 115%; font-style: italic; line-height: 1.1; text-transform: uppercase; color: var(--ex-text); cursor: pointer; list-style: none; }
.ex .hdr-acc summary::-webkit-details-marker { display: none; }
.ex .hdr-acc summary svg { width: 20px; height: 20px; flex: none; color: var(--ex-text-dim); }
.ex .hdr-acc[open] summary { color: var(--ex-green); border-bottom-color: transparent; }
.ex .hdr-acc[open] summary svg { transform: rotate(180deg); color: var(--ex-green); }
.ex .hdr-acc-in { position: relative; display: flex; flex-direction: column; padding: 2px 0 16px 16px; border-bottom: 1px solid var(--ex-line); }
.ex .hdr-acc-in::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 18px; width: 2px; background: linear-gradient(180deg, #3d82d6, #72c33c); }
.ex .hdr-acc-in a, .ex .hdr-acc-in p { margin: 0; padding: 9px 0; font-size: 16px; font-weight: 500; color: var(--ex-text); }
.ex .hdr-acc-in .hdr-acc-h { margin-top: 10px; padding-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ex-green); }
.ex .hdr-acc-in .hdr-acc-all { font-weight: 700; color: #fff; }
.ex .hdr-drawer .btn { width: 100%; }

.ex .hdr-drawer-foot { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--ex-navy-900); border-top: 1px solid var(--ex-line); box-shadow: 0 -16px 30px rgba(0, 0, 0, .35); }
.ex .hdr-df { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 12px; font-weight: 800; font-stretch: 108%; line-height: 1.1; color: #fff; }
.ex .hdr-df:only-child { grid-column: 1 / -1; }
.ex .hdr-df span { display: flex; flex-direction: column; }
.ex .hdr-df small { font-size: 12px; font-weight: 500; opacity: .85; }
.ex .hdr-df-call svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex .hdr-df-wa svg { flex: none; }
.ex .hdr-df-call { background: var(--ex-green); color: var(--ex-green-ink); }
.ex .hdr-df-wa { background: #1f9e55; }

.ex .hdr-mbar { display: none; }

/* ── offer strip under the bar (phones; header.js decides when) ──
 * Like the GHH app invite: it slides in from the left, stays its seconds (a finger on it holds
 * the time), then slides out to the right and the strip folds away. A swipe sideways sends it off. */
.ex .hdr-obar { display: grid; grid-template-rows: 0fr; overflow: hidden; background: var(--ex-ink); transition: grid-template-rows .45s var(--ex-ease); }
.ex .hdr-obar[hidden] { display: none; }
.ex .hdr-obar.is-on { grid-template-rows: 1fr; }
.ex .hdr-obar-in { position: relative; min-height: 0; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 16px; border-top: 1px solid var(--ex-line); transform: translateX(-104%); opacity: 0; transition: transform .5s var(--ex-ease), opacity .35s var(--ex-ease); touch-action: pan-y; }
.ex .hdr-obar.is-on .hdr-obar-in { transform: translateX(var(--dx, 0px)); opacity: 1; }
.ex .hdr-obar.is-drag .hdr-obar-in { transition: none; }
.ex .hdr-obar.is-out .hdr-obar-in { transform: translateX(104%); opacity: 0; }
.ex .hdr-obar.is-out.is-left .hdr-obar-in { transform: translateX(-104%); }
.ex .hdr-obar-go { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; height: 60px; color: #fff; }
.ex .hdr-obar-mark { flex: none; display: grid; place-items: center; width: 38px; height: 38px; background: var(--ex-green); font-size: 21px; font-weight: 900; font-style: italic; color: var(--ex-green-ink); transform: skewX(-10deg); }
.ex .hdr-obar-t { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.ex .hdr-obar-t small { overflow: hidden; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: var(--ex-green); }
.ex .hdr-obar-t b { overflow: hidden; font-size: 16px; font-weight: 800; font-stretch: 108%; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.ex .hdr-obar-cta { position: relative; flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; font-size: 14px; font-weight: 800; color: var(--ex-green-ink); isolation: isolate; }
.ex .hdr-obar-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ex-green); transform: skewX(-10deg); }
.ex .hdr-obar-x, .ex .hdr-obar-x:hover, .ex .hdr-obar-x:focus { flex: none; display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; color: var(--ex-text-dim); cursor: pointer; }
.ex .hdr-obar-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* the time left, as a thin arc-gradient line that runs down (paused while held) */
.ex .hdr-obar-time { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--ex-arc); transform-origin: left; transform: scaleX(1); }
.ex .hdr-obar.is-on .hdr-obar-time { animation: ex-obar-time var(--secs, 8s) linear forwards; }
.ex .hdr-obar.is-held .hdr-obar-time { animation-play-state: paused; }
@keyframes ex-obar-time { to { transform: scaleX(0); } }
@media (min-width: 761px) { .ex .hdr-obar { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
	.ex .hdr-obar, .ex .hdr-obar-in { transition: opacity .2s linear; }
	.ex .hdr-obar-in, .ex .hdr-obar.is-on .hdr-obar-in, .ex .hdr-obar.is-out .hdr-obar-in { transform: none; }
}

@media (max-width: 1240px) {
	.ex .hdr-top { padding: 10px 9px; }
	.ex .hdr-act { gap: 16px; }
	.ex .hdr-call-lbl { display: none; }
	.ex .hdr-mega-in { grid-template-columns: 1fr 280px; gap: 32px; }
}
@media (max-width: 1100px) {
	.ex .hdr-nav { display: none; }
	.ex .hdr-in { grid-template-columns: auto 1fr; grid-template-areas: "logo act"; }
	.ex .hdr-menu { display: inline-flex; }
}
@media (min-width: 1101px) {
	.ex .hdr-drawer { display: none !important; }
}
@media (max-width: 640px) {
	.ex .hdr-in { gap: 4px; }
	.ex .hdr-in .logo img { height: 38px; }
	.ex .hdr-act { gap: 4px; }
	.ex .hdr-call, .ex .hdr-cta { display: none; }
	.ex .hdr-ic { display: inline-flex; }
	/* floating call / WhatsApp buttons, in once past the first screen */
	/* one slim dock: two halves side by side, the brand's cut corner, no pills */
	.ex .hdr-mbar { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 420px; margin: 0 auto; padding: 4px; background: rgba(7, 15, 34, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 12px 30px rgba(2, 6, 18, .5); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); pointer-events: none; opacity: 0; transform: translateY(calc(100% + 24px)); transition: transform .35s var(--ex-ease), opacity .25s; }
	.ex .hdr-mbar.is-on { pointer-events: auto; opacity: 1; transform: none; }
	/* hidden while typing in a form and while the cookie banner is up */
	.ex .hdr-mbar.is-on.is-typing, body:has(.ex.ckb:not([hidden])) .ex .hdr-mbar { pointer-events: none; opacity: 0; transform: translateY(calc(100% + 24px)); }
	/* fields scrolled into view stop above the bar */
	html { scroll-padding-bottom: 84px; }
	.ex .hdr-mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; font-size: 14.5px; font-weight: 700; letter-spacing: .01em; color: #fff; }
	.ex .hdr-mbar svg { flex: none; width: 17px; height: 17px; }
	.ex .hdr-mbar a.hdr-mbar-call svg { fill: none; stroke: var(--ex-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.ex .hdr-mbar a.hdr-mbar-call:active { background: rgba(255, 255, 255, .06); }
	.ex .hdr-mbar a.hdr-mbar-wa { background: #1f9e55; }
	.ex .hdr-mbar a.hdr-mbar-wa:active { background: #1a8a4a; }
	.ex .hdr-mbar a.hdr-mbar-go { background: var(--ex-green); color: var(--ex-green-ink); }
	.ex .hdr-mbar a:only-child { grid-column: 1 / -1; }
	body.ex-site:has(.hdr-mbar.is-on) .sky-whatsapp-widget { bottom: 76px !important; }
	/* room so the dock never covers the end of the footer */
	body:has(.ex .hdr-mbar) .ex.footer { padding-bottom: 80px; }
	/* the bottom bar would sit over the drawer's own call / WhatsApp foot */
	body:has(.hdr-drawer:not([hidden])) .ex .hdr-mbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ex .hdr-mega, .ex .hdr-mega::before, .ex .hdr-caret svg { transition: none; }
}
/* Elementor editor: keep the header in flow so it can be edited */
.elementor-editor-active .ex.hdr { position: relative; background: var(--ex-ink); }
