header.avanti-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 90px; display: flex; align-items: stretch; justify-content: space-between; transition: background 0.4s ease, height 0.3s ease, box-shadow 0.3s ease; background: #ffffff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
header.avanti-header.scrolled { background: #ffffff; box-shadow: 0 6px 22px rgba(0,0,0,0.1); }
@media (min-width: 769px) { header.avanti-header.scrolled { height: 72px; } }
.header-left { display: flex; align-items: stretch; }
.logo { display: flex; align-items: stretch; text-decoration: none; }
.logo-mark { background: #FF5102; width: 160px; display: flex; align-items: flex-end; justify-content: center; padding: 14px 24px; }
.logo-mark img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.header-center { display: flex; align-items: center; gap: 32px; }
.header-center a { text-decoration: none; color: #1a1a1a; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; transition: color 0.3s ease; position: relative; }
.header-center a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #1a1a1a; transition: width 0.3s ease; }
.header-center a:hover::after { width: 100%; }
header.avanti-header.scrolled .header-center a { color: #1a1a1a; }
header.avanti-header.scrolled .header-center a:hover { color: #1a1a1a; }
.header-ctas { display: flex; align-self: stretch; }
.header-cta { display: flex; align-items: center; justify-content: center; padding: 0 28px; text-decoration: none; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease; border-left: 1px solid rgba(0,0,0,0.08); white-space: nowrap; }
.header-cta-secondary { background: #faf8f5; color: #1a1a1a; }
.header-cta-secondary:hover { background: #f5f0eb; color: #1a1a1a; }
.header-cta-primary { background: #1a1a1a; color: #FFBE9A; border-left: none; }
.header-cta-primary:hover { background: #333; }
.cta-full { display: inline; }
.cta-short { display: none; }
header.avanti-header.scrolled .header-cta { border-left-color: rgba(0,0,0,0.08); }
header.avanti-header.scrolled .header-cta-secondary { color: #1a1a1a; }
header.avanti-header.scrolled .header-cta-secondary:hover { background: #f5f0eb; color: #1a1a1a; }
.burger { display: none; background: none; border: none; cursor: pointer; width: 60px; height: 100%; position: relative; z-index: 1002; flex-shrink: 0; }
.burger span { display: block; width: 26px; height: 3px; background: #1a1a1a; transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease; border-radius: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.burger span:nth-child(1) { top: calc(50% - 9px); }
.burger span:nth-child(2) { top: 50%; transform: translateX(-50%) translateY(-50%); }
.burger span:nth-child(3) { bottom: calc(50% - 9px); }
header.avanti-header.scrolled .burger span { background: #1a1a1a; }
.burger.active span:nth-child(1) { top: 50%; transform: translateX(-50%) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { bottom: auto; top: 50%; transform: translateX(-50%) rotate(-45deg); }
.burger.active span { background: #1a1a1a !important; }
header.avanti-header.nav-open { background: white !important; }
.mobile-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding-top: 90px; overflow-y: auto; }
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav-inner { padding: 40px 32px; display: flex; flex-direction: column; gap: 0; }
.mobile-nav-inner > a { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 700; color: #1a1a1a; text-decoration: none; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.06); letter-spacing: 0.5px; }
.mobile-nav-inner > a:hover { color: #1a1a1a; }
.mobile-nav-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.mobile-cta { display: flex; align-items: center; justify-content: center; padding: 16px 32px; border-radius: 50px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; text-align: center; border: 2px solid transparent; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.mobile-cta-primary { background: #1a1a1a; color: #FFBE9A; border-color: #1a1a1a; }
.mobile-cta-primary:hover { background: #333; border-color: #333; }
.mobile-cta-secondary { background: transparent; color: #1a1a1a; border-color: rgba(0,0,0,0.15); }
.mobile-cta-secondary:hover { border-color: #1a1a1a; background: rgba(26,26,26,0.04); }
.mobile-nav-phone { font-size: 20px; font-weight: 700; color: #1a1a1a; text-decoration: none; text-align: center; margin-top: 24px; }
@media (max-width: 1179px) {
.burger { display: block; order: 2; margin-left: auto; }
.header-center { display: none; }
.header-ctas { order: 3; }}
@media (max-width: 768px) {
.header-cta { padding: 0 16px; font-size: 12px; }
.cta-full { display: none; }
.cta-short { display: inline; }}
@media (max-width: 480px) {
.logo-mark { width: 96px; padding: 10px 14px; }
.logo-mark img { height: 20px; }
.burger { width: 48px; }
.header-cta { padding: 0 12px; font-size: 11px; }}
@media (max-width: 360px) {
.header-cta { padding: 0 9px; letter-spacing: 0; }}
@media (max-width: 768px) {
.logo-mark { width: 120px; padding: 10px 18px; }
.logo-mark img { height: 22px; }
header.avanti-header { height: 70px; }
.mobile-nav { padding-top: 70px; }}
@media (max-width: 480px) {
.logo-mark { width: 100px; padding: 8px 14px; }
.logo-mark img { height: 18px; }
header.avanti-header { height: 60px; }
.mobile-nav { padding-top: 60px; }}
.header-center { gap: 26px; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-top { display: inline-flex; align-items: center; text-decoration: none; color: #1a1a1a; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; padding: 6px 0; }
.nav-active .nav-top { box-shadow: inset 0 -2px 0 #1a1a1a; }
.nav-sub { position: absolute; top: calc(100% - 8px); left: -18px; min-width: 210px; background: #ffffff; border: 1px solid rgba(0,0,0,0.07); border-radius: 9px; box-shadow: 0 16px 44px rgba(0,0,0,0.12); padding: 10px 0; opacity: 0; visibility: hidden; transition: opacity 0.18s ease, visibility 0.18s ease; z-index: 1001; }
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; }
.nav-sub a { display: block; padding: 9px 20px; font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 600; color: #1a1a1a; text-decoration: none; white-space: nowrap; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: #faf8f5; }
.nav-sub a::after, .nav-top::after { display: none; }
.mnav-sub { display: flex; flex-direction: column; border-bottom: 1px solid rgba(0,0,0,0.06); padding: 2px 0 10px; }
.mnav-sub a { font-family: 'Nunito', sans-serif !important; font-size: 15px !important; font-weight: 600 !important; padding: 8px 0 8px 18px !important; border-bottom: none !important; color: #5a5a5a !important; text-decoration: none !important; }
.avanti-footer { border-top: 1px solid rgba(255,255,255,0.12); background-color: #1a1a1a; padding: 80px 60px 40px; color: rgba(255,255,255,0.65); font-family: 'Nunito', sans-serif; }
.avanti-footer .footer-grid { max-width: 1200px; margin: 0 auto 60px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
.avanti-footer .footer-brand-logo { display: inline-flex; background-color: #ff5102; padding: 14px 16px 10px; margin-bottom: 20px; align-items: flex-end; justify-content: center; width: 110px; height: 70px; }
.avanti-footer .footer-brand-logo img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.avanti-footer .footer-brand p { font-size: 15px; font-weight: 400; line-height: 1.7; max-width: 300px; margin-bottom: 24px; color: rgba(255,255,255,0.65); }
.avanti-footer .footer-phone { font-size: 22px; font-weight: 700; color: #ffffff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: color 0.3s ease; }
.avanti-footer .footer-phone:hover { color: #ffbe9a; }
.avanti-footer .footer-phone svg { width: 20px; height: 20px; stroke: #ffbe9a; fill: none; stroke-width: 2; }
.avanti-footer .footer-col h5 { font-size: 16px; font-weight: 700; font-family: 'Nunito', sans-serif; color: rgba(255,255,255,0.95); letter-spacing: 0.02em; margin-bottom: 22px; }
.avanti-footer .footer-col a { display: block; color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; font-weight: 400; margin-bottom: 13px; transition: color 0.3s ease; }
.avanti-footer .footer-col a:hover { color: #ffffff; }
.avanti-footer .footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.45); }
.avanti-footer .footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.3s ease; }
.avanti-footer .footer-bottom a:hover { color: #ffffff; }
.avanti-footer .footer-legal { display: flex; gap: 24px; }
@media (max-width: 1024px) {
  .avanti-footer { padding: 60px 40px 30px; }
  .avanti-footer .footer-grid { gap: 40px; }
}
@media (max-width: 768px) {
  .avanti-footer { padding: 60px 32px 30px; }
  .avanti-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .avanti-footer .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .avanti-footer .footer-legal { justify-content: center; }
}
@media (max-width: 480px) {
  .avanti-footer { padding: 48px 24px 24px; }
  .avanti-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .avanti-footer .footer-phone { font-size: 18px; }
}
.admin-bar .avanti-header { top: 32px; }
@media screen and (max-width: 782px) {
.admin-bar .avanti-header { top: 46px; }}
@media screen and (max-width: 600px) {
.admin-bar .avanti-header.scrolled { top: 0; }}


/* Breadcrumbs at the very top of hero-less BB pages */
.avanti-crumbs-top { margin-top: 90px; }
.avanti-crumbs-top + [class*="fl-node"] .article-head { padding-top: 50px; }
.avanti-crumbs-top + [class*="fl-node"] .ty-head { padding-top: 70px; }
.avanti-crumbs-top + [class*="fl-node"] .landing-hero { padding-top: 60px; }
@media (max-width: 768px) {
  .avanti-crumbs-top { margin-top: 70px; }
  .avanti-crumbs-top + [class*="fl-node"] .article-head { padding-top: 36px; }
  .avanti-crumbs-top + [class*="fl-node"] .landing-hero { padding-top: 44px; }
}
@media (max-width: 480px) { .avanti-crumbs-top { margin-top: 60px; } }

/* Breadcrumb trail, sits directly under every hero */
.avanti-crumbs { background: #ffffff; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 10px 60px; font-family: 'Nunito', sans-serif; font-size: 12px; color: #8a857e; }
.avanti-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 auto; max-width: 1200px; padding: 0; }
.avanti-crumbs li { display: flex; align-items: center; gap: 6px; }
.avanti-crumbs li + li::before { content: "/"; color: rgba(0,0,0,0.25); }
.avanti-crumbs a { color: #5a5a5a; text-decoration: none; }
.avanti-crumbs a:hover { color: #1a1a1a; }
.avanti-crumbs [aria-current] { color: #1a1a1a; font-weight: 600; }
@media (max-width: 768px) { .avanti-crumbs { padding: 9px 32px; } }
@media (max-width: 480px) { .avanti-crumbs { padding: 8px 24px; } }

/*
 * LiteSpeed serves WebP by wrapping the img in a <picture>. That puts an
 * inline, auto-height element between .page-hero-bg and the image, so the
 * height:100% on the image resolves against the picture instead of the
 * container, falls back to auto, and the hero renders at the image's own
 * ratio with the bottom cropped off by overflow:hidden. object-fit then has
 * nothing to crop into, which is why changing object-position looked like it
 * did nothing. Make the wrapper fill the container so the image can fill it.
 */
.page-hero-bg picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* Mobile fixes from the 25 Sep 2026 sweep.

   1. Every <button> inside a design-system block inherits white text from
      the theme's .fl-builder-content button rule (specificity 0,2,1), which
      beats any block-level colour (0,2,0). SVG icons using currentColor then
      vanish on light buttons: the review carousel arrows are white on white,
      and the finance tabs needed a hack to be readable. Neutralise it once,
      at a specificity the blocks can still override. */
.fl-builder-content .fl-module-ds-block button:not(.fl-content-ui-button),
.fl-builder-content .fl-module-ds-block button:not(.fl-content-ui-button) * {
	color: inherit;
}

/* 2. CTA band buttons on posts and projects are 395px wide on a 375px
      phone: 32px padding either side plus uppercase letter-spaced text.
      Both pill ends are clipped. Let the label wrap and cap the width. */
@media (max-width: 480px) {
	.cta-band .bb-btn,
	.cta-band .bb-btn-primary,
	.cta-band .bb-btn-outline-ink {
		max-width: 100%;
		white-space: normal;
		text-align: center;
		padding-left: 22px;
		padding-right: 22px;
		line-height: 1.35;
	}
}

/* ---------------------------------------------------------------
 * Two-row header, 30 Sep 2026 (option A from the header mock-ups).
 *
 * Desktop: a near-black quick-action bar (phone left, CTAs right)
 * above the white nav row. Mobile: the white row (logo, phone,
 * burger) with a cream strip of the same CTAs below it.
 *
 * The white row keeps its old heights (90 / 72 scrolled / 70 / 60),
 * and the page is pushed down by exactly the bar's height, so hero
 * overlap and hero-less page padding behave as they did before.
 * These rules supersede the older header rules above them.
 * ------------------------------------------------------------- */

:root { --avanti-bar-h: 52px; --avanti-main-h: 90px; }
@media (max-width: 1179px) { :root { --avanti-bar-h: 61px; } }
@media (max-width: 768px)  { :root { --avanti-main-h: 70px; } }
@media (max-width: 480px)  { :root { --avanti-main-h: 60px; } }

body { padding-top: var(--avanti-bar-h); }

header.avanti-header,
header.avanti-header.scrolled {
	height: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "barphone barctas" "main main";
	align-items: stretch;
}
.header-bar { display: contents; }
.header-main {
	grid-area: main;
	display: flex;
	align-items: stretch;
	height: var(--avanti-main-h);
	background: #ffffff;
	transition: height 0.3s ease;
}
@media (min-width: 769px) { header.avanti-header.scrolled .header-main { height: 72px; } }
.mobile-nav { padding-top: calc(var(--avanti-main-h) + var(--avanti-bar-h)); }

/* The quick-action bar (desktop) */
.header-bar-phone,
.header-bar-ctas { height: var(--avanti-bar-h); background: #1a1a1a; box-sizing: border-box; }
.header-bar-phone {
	grid-area: barphone;
	display: flex;
	align-items: center;
	gap: 10px;
	padding-left: 40px;
	color: #ffffff;
	text-decoration: none;
	font-family: 'Nunito', sans-serif;
	white-space: nowrap;
}
.header-bar-phone .hb-call { font-size: 12px; font-weight: 700; }
.header-bar-phone .hb-number { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; }
.header-bar-phone:hover .hb-number { text-decoration: underline; text-underline-offset: 3px; }
.header-bar-ctas {
	grid-area: barctas;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding-right: 40px;
}
.hb-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 16px;
	box-sizing: border-box;
	border-radius: 4px;
	border: 1.5px solid rgba(255,255,255,0.45);
	background: transparent;
	color: #ffffff;
	font-family: 'Nunito', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hb-cta:hover { border-color: #ffffff; color: #ffffff; }
.hb-cta-primary { background: #FF5102; border-color: #FF5102; color: #1a1a1a; padding: 0 18px; font-weight: 800; }
.hb-cta-primary:hover { background: #ff6a26; border-color: #ff6a26; color: #1a1a1a; }
.hb-cta:focus-visible,
.header-bar-phone:focus-visible,
.header-phone:focus-visible { outline: 2px solid #FF5102; outline-offset: 2px; }
.hb-short { display: none; }

/* The white row */
.header-phone { display: none; }
@media (min-width: 1180px) {
	.logo-mark { width: 184px; justify-content: flex-start; padding: 14px 24px 14px 40px; }
	.header-center { margin-left: auto; padding-right: 40px; }
}

/* Mobile and tablet: phone in the white row, CTA strip below it */
@media (max-width: 1179px) {
	header.avanti-header,
	header.avanti-header.scrolled {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "main" "barctas";
	}
	.header-bar-phone { display: none; }
	.header-bar-ctas {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 6px;
		padding: 8px;
		height: var(--avanti-bar-h);
		background: #f5f0eb;
		border-top: 1px solid rgba(0,0,0,0.06);
		border-bottom: 1px solid rgba(0,0,0,0.06);
	}
	.hb-cta {
		height: 44px;
		padding: 0 6px;
		border: 1px solid rgba(0,0,0,0.16);
		background: #ffffff;
		color: #1a1a1a;
		font-size: 12px;
		font-weight: 800;
		letter-spacing: 0;
		text-align: center;
		line-height: 1.15;
		white-space: normal;
	}
	.hb-cta:hover { border-color: #1a1a1a; color: #1a1a1a; }
	.hb-cta-primary,
	.hb-cta-primary:hover { background: #1a1a1a; border-color: #1a1a1a; color: #ffffff; }
	.header-phone {
		display: flex;
		align-items: center;
		gap: 7px;
		margin-left: auto;
		padding: 0 6px;
		color: #1a1a1a;
		text-decoration: none;
		font-family: 'Nunito', sans-serif;
		font-size: 15px;
		font-weight: 800;
		white-space: nowrap;
	}
	.header-phone .phone-icon { width: 16px; height: 16px; stroke: #FF5102; }
	.header-main .burger { margin-left: 0; }
}
@media (max-width: 639px) {
	.hb-full { display: none; }
	.hb-short { display: inline; }
}

/* ---------------------------------------------------------------
 * Softer dark and larger nav, 26 Oct 2026 (Avanti feedback).
 *
 * The near-black areas read as harsh, so large dark panels use a warm
 * charcoal held in one variable. Buttons and small chips keep #1a1a1a
 * so they stay crisp. Builder blocks reference the same variable.
 * ------------------------------------------------------------- */

:root { --avanti-dark: #332f2c; }

.avanti-footer { background: var(--avanti-dark); }
@media (min-width: 1180px) {
	.header-bar-phone,
	.header-bar-ctas { background: var(--avanti-dark); }
}

/* Navigation was smaller than body text. */
.header-center a { font-size: 15px; }

/* Logo wordmark sits in the middle of the orange block, not at the bottom. */
.logo-mark { align-items: center; }

/* Hero subheadings use the script face on every page. A global p rule sets Nunito
   with !important, which beat the per-block Satisfy rule on Our Work and Our Services. */
.page-hero .page-hero-sub { font-family: 'Satisfy', cursive !important; }
