/* ==========================================================================
   Aventis Health 2.2: mega menu, floating pill header, search, page / service /
   post layout styles, image + text rows and the "Get in touch" card.
   Colours come from the tokens in style.css (and the Customizer).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shared bits
   -------------------------------------------------------------------------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.btn-pill {
	background: #fff; color: var(--av-primary); border: 2px solid var(--av-primary);
	padding: 11px 26px; font-size: 0.92rem; font-weight: 700; box-shadow: none;
}
.btn-pill:hover { background: var(--av-primary); color: #fff; }

.header-inner { position: relative; }

/* Nested third level in the ordinary (non-mega) dropdown */
.primary-nav .sub-menu .sub-menu {
	position: static; display: block; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none;
	opacity: 1; visibility: visible; transform: none; background: transparent;
}
.primary-nav .sub-menu .sub-menu a { font-size: 0.86rem; color: var(--av-muted); }
.primary-nav .sub-menu .menu-item-has-children > a::after { display: none; }

/* --------------------------------------------------------------------------
   2. Mega menu (desktop)
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
	.primary-nav .menu > li.has-mega { position: static; }

	.mega {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 60; padding-top: 12px;
		opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	}
	/* Opens on hover, on a first tap (touch) or when reached with the keyboard (.kb-open). It is NOT tied to :focus-within:
	   a mouse click leaves focus inside the panel, which used to keep the Services panel stuck open over the other menus. */
	.has-mega:hover > .mega,
	.has-mega.kb-open > .mega,
	.has-mega.open > .mega { opacity: 1; visibility: visible; transform: none; }
	.has-mega.dismissed > .mega,
	.has-mega.dismissed:hover > .mega { opacity: 0; visibility: hidden; pointer-events: none; }

	.mega-inner {
		margin: 0 24px; display: grid; grid-template-columns: 270px 1fr; gap: 18px; padding: 20px;
		border-radius: 28px; background: linear-gradient(160deg, #0a1f63, #00104c 72%);
		border: 1px solid rgba(246, 229, 137, 0.22); box-shadow: 0 30px 70px rgba(0, 16, 76, 0.45);
	}

	/* Left: second-level items */
	.mega-nav { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-direction: column; gap: 6px; align-self: start; }
	.mega-nav a {
		display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 14px 20px;
		border-radius: 999px; color: #fff; text-decoration: none; font-size: 1.04rem; font-weight: 500; line-height: 1.25;
		transition: background 0.15s ease;
	}
	.mega-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
	.mega-nav .is-active > a { background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(246, 229, 137, 0.32); }
	.mega-chev {
		display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
		background: var(--av-gold-grad); color: var(--av-ink); opacity: 0; transform: translateX(-6px); transition: opacity 0.15s ease, transform 0.15s ease;
	}
	.mega-nav .is-active .mega-chev,
	.mega-nav a:focus-visible .mega-chev { opacity: 1; transform: none; }

	/* Right: white card with links + picture */
	.mega-stage { background: #fff; border-radius: 22px; min-height: 330px; max-height: calc(100vh - 210px); overflow-y: auto; overscroll-behavior: contain; }
	.mega-pane { display: none; grid-template-columns: 1fr 300px; gap: 22px; padding: 22px 22px 22px 22px; min-height: 100%; }
	.mega-pane.is-active { display: grid; }
	.mega-pane.no-media { grid-template-columns: 1fr; }
	.mega-pane-title { display: none; }
	.mega-main { min-width: 0; align-self: start; padding-top: 6px; }

	.mega-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px 14px; }
	.mega-links a { display: block; padding: 9px 12px; border-radius: 12px; text-decoration: none; }
	.mega-links a:hover, .mega-links a:focus-visible { background: var(--av-accent-soft); }
	.mega-link-t { display: block; color: var(--av-primary); font-weight: 700; font-size: 1rem; line-height: 1.3; }
	.mega-link-d { display: block; margin-top: 2px; color: var(--av-text); font-size: 0.86rem; font-weight: 400; line-height: 1.38; }
	.mega-links a:hover .mega-link-t { color: var(--av-violet); }
	.mega-flat .mega-inner { grid-template-columns: 1fr; }
	.mega-flat .mega-pane { padding: 22px 22px 22px 26px; }
	.mega-solo { padding: 10px 12px; max-width: 420px; }
	.mega-solo-link { display: inline-flex; margin-top: 8px; font-weight: 800; color: var(--av-primary); text-decoration: none; }
	.mega-solo-link:hover { color: var(--av-violet); }
}

/* Keep the top item highlighted while its panel is open (classic header) */
.primary-nav .menu > li.has-mega:hover > a,
.primary-nav .menu > li.has-mega.kb-open > a,
.primary-nav .menu > li.has-mega.open > a { background: var(--av-violet-soft); color: var(--av-violet); }
.primary-nav .menu > li.has-mega.dismissed > a:not(:hover) { background: none; color: inherit; }

/* Picture card (all sizes share the look) */
.mega-media {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-self: stretch; min-height: 290px; max-height: 440px; overflow: hidden; isolation: isolate;
	border-radius: 20px; text-decoration: none; color: #fff; background: linear-gradient(150deg, #1b3fae, #00104c);
	border: 1px solid rgba(13, 43, 132, 0.55);
}
.mega-media:hover { color: #fff; }
.mega-media.no-img { background: linear-gradient(150deg, #0d2b84 0%, #00104c 55%, #6b4217 120%); }
.mega-media.no-img::before {
	content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -60px; top: -70px; border-radius: 50%;
	background: var(--av-gold-grad); opacity: 0.55; filter: blur(2px);
}
.mega-media-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; transition: transform 0.5s ease; }
.mega-media:hover .mega-media-img { transform: scale(1.04); }
.mega-media-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 16, 76, 0.04) 28%, rgba(0, 16, 76, 0.92) 100%); }
.mega-media-title { display: block; padding: 0 22px; font-size: 1.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.mega-media-cta { display: block; padding: 14px 22px 22px; font-weight: 700; color: #fff; }
.mega-media:hover .mega-media-cta { color: var(--av-gold-light); }
.mega-media:not(:has(.mega-media-title)) .mega-media-cta { font-size: 1.1rem; }

/* Light panel option */
@media (min-width: 901px) {
	.mega-light .mega-inner { background: #fff; border-color: var(--av-line); box-shadow: 0 30px 70px rgba(0, 16, 76, 0.22); }
	.mega-light .mega-nav a { color: var(--av-ink); }
	.mega-light .mega-nav a:hover { background: var(--av-soft); color: var(--av-ink); }
	.mega-light .mega-nav .is-active > a { background: var(--av-accent-soft); box-shadow: inset 0 0 0 1px rgba(171, 112, 42, 0.3); }
	.mega-light .mega-stage { background: var(--av-soft); }
}

@media (min-width: 901px) and (max-width: 1100px) {
	.mega-inner { grid-template-columns: 220px 1fr; }
	.mega-pane { grid-template-columns: 1fr 240px; }
	.mega-media-title { font-size: 1.25rem; }
}

/* --------------------------------------------------------------------------
   3. Floating pill header
   -------------------------------------------------------------------------- */
.site-header.is-pill { height: 0; background: transparent; border: 0; backdrop-filter: none; box-shadow: none; overflow: visible; }
.is-pill .header-inner {
	position: absolute; top: 14px; left: 0; right: 0; margin: 0 auto; width: min(1180px, calc(100% - 32px)); max-width: none; height: 66px;
	padding: 0 10px 0 24px; border-radius: 999px; background: rgba(0, 16, 76, 0.88);
	-webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(246, 229, 137, 0.3); box-shadow: 0 18px 44px rgba(0, 16, 76, 0.35);
}
.is-pill .brand-logo img, .is-pill .brand img { height: 42px; }
.is-pill .primary-nav { gap: 8px; }
.is-pill .primary-nav .menu > li > a { color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 0.98rem; }
.is-pill .primary-nav .menu > li > a:hover,
.is-pill .primary-nav .menu > li.current-menu-item > a,
.is-pill .primary-nav .menu > li.current-menu-ancestor > a { background: rgba(255, 255, 255, 0.14); color: #fff; }
.is-pill .primary-nav .menu > li.has-mega:hover > a,
.is-pill .primary-nav .menu > li.has-mega.kb-open > a,
.is-pill .primary-nav .menu > li.has-mega.open > a { background: rgba(246, 229, 137, 0.2); box-shadow: inset 0 0 0 1px rgba(246, 229, 137, 0.35); color: #fff; }
.is-pill .primary-nav .menu > li > .sub-menu { top: calc(100% + 16px); }
.is-pill .primary-nav .menu > li > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.is-pill .nav-cta { padding: 12px 24px; }
.is-pill .nav-toggle { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.is-pill .nav-toggle .bars, .is-pill .nav-toggle .bars::before, .is-pill .nav-toggle .bars::after { background: var(--av-gold-light); }
.nav-open.header-style-pill .nav-toggle .bars { background: transparent; }

/* Header offsets so the floating pill never covers page content */
@media (min-width: 901px) {
	body.header-style-pill .hero { padding-top: calc(88px + 84px); }
	body.header-style-pill .page-hero { padding-top: calc(72px + 84px); }
	body.header-style-pill .av-hero { padding-top: calc(72px + 84px); }
	body.header-style-pill .site-main:not(:has(> .hero, > .page-hero, > .av-hero)) { padding-top: 100px; }
}
@media (max-width: 900px) {
	body.header-style-pill .hero { padding-top: calc(56px + 84px); }
	body.header-style-pill .page-hero { padding-top: calc(48px + 84px); }
	body.header-style-pill .av-hero { padding-top: calc(40px + 84px); }
	body.header-style-pill .site-main:not(:has(> .hero, > .page-hero, > .av-hero)) { padding-top: 100px; }
}

/* --------------------------------------------------------------------------
   4. Header search
   -------------------------------------------------------------------------- */
.nav-search-toggle {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(0, 16, 76, 0.07); color: var(--av-ink); font: 600 0.95rem var(--av-font);
}
.nav-search-toggle:hover { background: rgba(0, 16, 76, 0.13); }
.is-pill .nav-search-toggle { background: rgba(255, 255, 255, 0.14); color: #fff; }
.is-pill .nav-search-toggle:hover { background: rgba(255, 255, 255, 0.24); }
.header-search {
	position: absolute; right: 0; top: calc(100% + 12px); z-index: 70; width: min(440px, 100%); padding: 14px;
	background: #fff; border: 1px solid var(--av-line); border-radius: 20px; box-shadow: var(--av-shadow-lg);
}
.header-search .search-form { display: flex; gap: 10px; }
.header-search .search-form label { flex: 1; margin: 0; }
.header-search .search-field { width: 100%; padding: 12px 18px; border-radius: 999px; }
.header-search .search-submit {
	padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer; font: 700 0.92rem var(--av-font);
	background: var(--av-gold-grad); color: var(--av-ink);
}

/* --------------------------------------------------------------------------
   5. Mobile navigation (mega panel becomes a simple list; pill header)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.mega { grid-column: 1 / -1; display: none; padding: 0 0 12px; }
	.has-mega.open > .mega { display: block; }
	.mega-inner { display: block; }
	.mega-nav { display: none; }
	.mega-pane { display: block; padding: 0 0 6px; }
	.mega-pane-title { margin: 14px 0 4px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
	.mega-pane-title a { color: var(--av-accent-ink); text-decoration: none; }
	.mega-links { list-style: none; margin: 0; padding: 0; }
	.mega-links a { display: block; padding: 9px 4px; text-decoration: none; }
	.mega-link-t { display: block; color: var(--av-primary); font-weight: 700; }
	.mega-link-d { display: block; color: var(--av-muted); font-size: 0.86rem; }
	.mega-solo-link { display: inline-block; padding: 8px 4px; color: var(--av-primary); font-weight: 700; text-decoration: none; }
	.mega-media { display: none; }

	.nav-search-toggle { justify-content: center; width: 100%; background: var(--av-soft); }

	/* Pill header on small screens: solid bar, dark slide-down panel */
	.is-pill .header-inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: #00104c; height: 60px; padding: 0 8px 0 18px; }
	.is-pill .brand-logo img, .is-pill .brand img { height: 36px; }
	.is-pill .primary-nav { top: 84px; left: 16px; right: 16px; bottom: 16px; border-radius: 24px; background: #00104c; border: 1px solid rgba(246, 229, 137, 0.3); }
	.is-pill .primary-nav .menu > li { border-bottom-color: rgba(255, 255, 255, 0.14); }
	.is-pill .primary-nav .menu > li > a { color: #fff; padding: 16px 4px; border-radius: 0; background: none !important; box-shadow: none !important; }
	.is-pill .primary-nav .sub-toggle { background: rgba(255, 255, 255, 0.12); color: #fff; }
	.is-pill .primary-nav .sub-menu a { color: #dfe6ff; }
	.is-pill .mega-pane-title a { color: var(--av-gold-light); }
	.is-pill .mega-link-t { color: #fff; }
	.is-pill .mega-link-d { color: #b9c2ee; }
	.is-pill .mega-solo-link { color: var(--av-gold-light); }
	.is-pill .nav-search-toggle { background: rgba(255, 255, 255, 0.12); }
	.is-pill .header-search { right: 0; left: 0; width: auto; top: calc(100% + 10px); }
	.header-search { position: fixed; left: 16px; right: 16px; top: 84px; width: auto; }
}

/* --------------------------------------------------------------------------
   6. Layout styles: hero variants
   -------------------------------------------------------------------------- */
.av-hero { position: relative; overflow: hidden; isolation: isolate; }
.av-eyebrow { margin: 0 0 14px; font-size: 0.92rem; font-weight: 800; letter-spacing: 0.02em; color: var(--av-accent-ink); }
.av-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; margin-bottom: 18px; }
.av-hero .lead { margin-bottom: 0; }
.av-hero-actions { margin: 26px 0 0; }
.av-meta { margin: 16px 0 0; font-size: 0.9rem; color: var(--av-muted); }
.av-hero .breadcrumbs { margin-bottom: 20px; }

/* Showcase: light hero, text on the left, photo fading in from the right */
.av-hero--showcase {
	display: flex; align-items: center; min-height: 440px; padding: 72px 0; color: var(--av-ink);
	background: radial-gradient(800px 380px at 0% 0%, rgba(239, 186, 74, 0.16), transparent 62%), linear-gradient(180deg, #f6f3ea, #fffdf8);
	border-bottom: 1px solid var(--av-line);
}
.av-hero--showcase .av-hero-inner { position: relative; width: 100%; }
.av-hero--showcase .av-hero-copy { max-width: 560px; }
.av-hero--showcase .lead { color: var(--av-text); font-size: 1.1rem; }
.av-hero--showcase .av-hero-media {
	position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: -1;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%); mask-image: linear-gradient(90deg, transparent 0, #000 40%);
}
.av-hero--showcase .av-hero-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 30%; display: block; }
.av-hero--showcase:not(.has-image)::after {
	content: ""; position: absolute; z-index: -1; right: -120px; top: 50%; width: 520px; height: 520px; margin-top: -260px; border-radius: 50%;
	background: var(--av-gold-grad); opacity: 0.28; filter: blur(8px);
}
@media (max-width: 900px) {
	.av-hero--showcase { min-height: 0; padding: 48px 0; }
	.av-hero--showcase .av-hero-media { width: 100%; opacity: 0.2; -webkit-mask-image: none; mask-image: none; }
}

/* Split: dark hero, framed photo on the right */
.av-hero--split {
	padding: 72px 0; color: #fff; border-bottom: 4px solid var(--av-accent);
	background: linear-gradient(120deg, #00104c, #0a1f63 60%, #1b2f80);
}
.av-hero--split::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; right: -140px; top: -200px; border-radius: 50%; background: var(--av-accent); filter: blur(90px); opacity: 0.32; }
.av-hero--split .av-hero-inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.av-hero--split.has-image .av-hero-inner { grid-template-columns: 1.05fr 0.95fr; }
.av-hero--split h1 { color: #fff; }
.av-hero--split .av-eyebrow { color: var(--av-gold-light); }
.av-hero--split .lead { color: rgba(255, 255, 255, 0.86); }
.av-hero--split .av-meta, .av-hero--split .breadcrumbs, .av-hero--split .breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.av-hero--split .breadcrumbs .current { color: #fff; }
.av-hero-frame {
	margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid rgba(246, 229, 137, 0.5);
	box-shadow: 0 30px 70px rgba(0, 6, 40, 0.5);
}
.av-hero-frame img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
@media (max-width: 900px) {
	.av-hero--split { padding: 48px 0; }
	.av-hero--split.has-image .av-hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Minimal: clean article header */
.av-hero--minimal { padding: 64px 0 28px; background: #fff; overflow: visible; }
.av-hero--minimal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.av-hero--minimal .lead { font-size: 1.2rem; max-width: none; }
.av-minimal-media { max-width: 1040px; margin-bottom: 8px; }
.av-minimal-media figure { margin: 24px 0 0; border-radius: 26px; overflow: hidden; box-shadow: var(--av-shadow-lg); }
.av-minimal-media img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.av-minimal-body { padding-top: 40px; }

.av-split-layout .service-main > .av-rows { margin-top: 28px; }
.av-intro-body { padding-bottom: 24px; }
.av-extras h2:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   7. Image + text rows
   -------------------------------------------------------------------------- */
.av-rows { padding: 28px 0 24px; }
.av-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 36px 0; }
.av-row.is-flip .av-row-media { order: 2; }
.av-row-media { display: block; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; max-height: 440px; box-shadow: var(--av-shadow); background: var(--av-soft); }
.av-row-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.av-row-copy h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); margin-bottom: 14px; }
.av-row-copy h2 a { color: inherit; text-decoration: none; }
.av-row-copy h2 a:hover { color: var(--av-violet); }
.av-row-text { margin-bottom: 22px; color: var(--av-text); }
.av-row-text > :last-child { margin-bottom: 0; }
.av-row.no-media { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.av-row-copy .tag { margin-bottom: 14px; }

/* Cards (Split layout) */
.av-rows--cards { padding: 8px 0 0; }
.av-rows--cards .container { padding: 0; max-width: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.av-rows--cards .av-row { display: flex; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--av-line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--av-shadow); }
.av-rows--cards .av-row-media { order: 0; border-radius: 0; aspect-ratio: 16 / 10; max-height: none; box-shadow: none; }
.av-rows--cards .av-row-copy { padding: 24px 26px 28px; }
.av-rows--cards .av-row-copy h2 { font-size: 1.3rem; }
.av-rows--cards .av-row.no-media { max-width: none; margin: 0; }

/* Stack (Minimal layout) */
.av-rows--stack .container { max-width: 900px; }
.av-rows--stack .av-row { grid-template-columns: 1fr; gap: 24px; }
.av-rows--stack .av-row-media { order: 0; aspect-ratio: 16 / 9; max-height: none; }

/* Services listing as rows: the wrapper already sits in a container */
.av-svc-rows { padding: 0; }
.service-card.av-row.is-hidden { display: none; }
.av-row-media--svc { text-decoration: none; }

@media (max-width: 900px) {
	.av-row { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
	.av-row.is-flip .av-row-media { order: 0; }
	.av-row-media { aspect-ratio: 16 / 10; max-height: none; }
	.av-rows--cards .container { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. Picture cards for services
   -------------------------------------------------------------------------- */
.service-card--image { padding: 0; overflow: hidden; }
.svc-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--av-navy-grad); }
.svc-thumb img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform 0.4s ease; }
.service-card--image:hover .svc-thumb img { transform: scale(1.05); }
.svc-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; }
.svc-ph svg { width: 56px; height: 56px; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.svc-body p { flex: 1; color: var(--av-muted); font-size: 0.97rem; }
.av-row-media--svc .svc-ph { min-height: 0; }

/* --------------------------------------------------------------------------
   9. "Get in touch" card
   -------------------------------------------------------------------------- */
.av-touch-section { background: linear-gradient(180deg, var(--av-soft), #fff 160%); }
.av-touch { max-width: 1000px; margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid var(--av-line); border-radius: 22px; box-shadow: var(--av-shadow); }
.av-touch-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 32px; background: #f6f6f4; border-bottom: 1px solid var(--av-line); color: var(--av-muted); font-size: 0.9rem; }
.av-touch-note a { color: var(--av-primary); font-weight: 700; text-decoration: none; }
.av-touch-body { padding: 36px 40px 30px; }
.av-touch-body h2 { margin-bottom: 6px; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.av-touch-sub { margin-bottom: 22px; color: var(--av-muted); }
.av-progress { display: none; height: 3px; margin: 0 0 28px; overflow: hidden; border-radius: 3px; background: var(--av-line); }
.js .av-progress { display: block; }
.av-progress span { display: block; width: 50%; height: 100%; background: var(--av-gold-grad); transition: width 0.3s ease; }
.av-touch .form-note { margin-bottom: 20px; }

.av-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.av-step legend { padding: 0; margin-bottom: 16px; font-weight: 700; color: var(--av-ink); }
.av-step legend span { font-weight: 400; color: var(--av-muted); }
.js .av-step[hidden] { display: none; }
.av-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.av-choice { position: relative; display: block; cursor: pointer; }
.av-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.av-choice-box {
	position: relative; display: flex; align-items: flex-end; min-height: 86px; padding: 16px 18px; border: 1px solid var(--av-line); border-radius: 14px;
	background: #fff; color: var(--av-ink); font-size: 0.92rem; font-weight: 700; line-height: 1.3; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.av-choice:hover .av-choice-box { border-color: var(--av-accent); }
.av-radio { position: absolute; top: 14px; right: 14px; width: 17px; height: 17px; border: 1.5px solid #b9bfd6; border-radius: 50%; }
.av-choice input:checked + .av-choice-box { border-color: var(--av-accent); box-shadow: 0 0 0 3px var(--av-accent-soft); }
.av-choice input:checked + .av-choice-box .av-radio { border-color: var(--av-primary); background: radial-gradient(circle, var(--av-primary) 42%, transparent 48%); }
.av-choice input:focus-visible + .av-choice-box { outline: 3px solid var(--av-accent); outline-offset: 2px; }
.av-step-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.av-next, .av-back { display: none; }
.js .av-next, .js .av-back { display: inline-flex; }
.av-touch-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 16px 40px; background: #f6f6f4; border-top: 1px solid var(--av-line); color: var(--av-muted); font-size: 0.8rem; }
.av-touch-foot a { color: var(--av-primary); font-weight: 600; }
@media (max-width: 680px) {
	.av-touch-body { padding: 26px 22px 22px; }
	.av-touch-foot { padding: 14px 22px; }
	.av-touch-note { padding: 12px 22px; }
	.av-step-actions { justify-content: stretch; }
	.av-step-actions .btn { flex: 1; }
}

/* Pill header logo: badge + gold wordmark on the dark bar */
.pill-logo img { width: 44px; height: 44px; }
.pill-logo .logo-main { font-size: 1.35rem; }
.pill-logo .logo-sub { font-size: 0.56rem; margin-top: 3px; }
@media (max-width: 900px) { .pill-logo img { width: 36px; height: 36px; } .pill-logo .logo-main { font-size: 1.15rem; } }

/* --------------------------------------------------------------------------
   10. Section builder blocks
   -------------------------------------------------------------------------- */
.av-bg-soft { background: linear-gradient(180deg, var(--av-soft), #fff); }
.av-bg-navy { background: linear-gradient(135deg, var(--av-ink), var(--av-primary-dark)); color: #dbe8f1; }
.av-bg-navy h2, .av-bg-navy h3 { color: #fff; }
.av-bg-navy .section-head p, .av-bg-navy .av-row-text, .av-bg-navy .av-text-body { color: rgba(255, 255, 255, 0.86); }
.av-bg-navy .av-eyebrow { color: var(--av-gold-light); }
.av-bg-navy .btn-pill { background: transparent; color: #fff; border-color: rgba(246, 229, 137, 0.7); }
.av-bg-navy .btn-pill:hover { background: var(--av-gold-grad); color: var(--av-ink); border-color: transparent; }
.av-bg-navy .check-list li { border-color: rgba(255, 255, 255, 0.16); }
.av-bg-navy .check-list li::before { background: var(--av-gold-grad); color: var(--av-ink); }
.av-bg-navy .faq-item, .av-bg-navy .faq-answer { color: var(--av-text); }
.section-head .av-eyebrow { margin-bottom: 10px; }
.section-head.is-left { text-align: left; margin-left: 0; }
.av-bullets { margin: 0 0 24px; max-width: 520px; }
.av-text-body { text-align: left; }
.av-sec-block.av-sec-contact { padding: 0; }

/* Boxes per row */
.av-cols { grid-template-columns: repeat(4, 1fr); }
.av-cols-3 { grid-template-columns: repeat(3, 1fr); }
.av-cols-2 { grid-template-columns: repeat(2, 1fr); }
.av-cols-1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
@media (min-width: 1021px) { .stats-band .av-stats-grid { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
@media (max-width: 1020px) { .av-cols, .av-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .av-cols, .av-cols-3, .av-cols-2, .av-cols-1 { grid-template-columns: 1fr; } }

/* Process steps */
.av-steps { counter-reset: avstep; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.av-steps li { position: relative; counter-increment: avstep; padding: 30px 26px 26px; background: #fff; border: 1px solid var(--av-line); border-radius: 20px; box-shadow: var(--av-shadow); }
.av-steps li::before {
	content: counter(avstep); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%;
	background: var(--av-gold-grad); color: var(--av-ink); font-weight: 800;
}
.av-steps h3 { margin-bottom: 8px; }
.av-steps p { margin: 0; color: var(--av-muted); font-size: 0.97rem; }
.av-bg-navy .av-steps li { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.av-bg-navy .av-steps p { color: rgba(255, 255, 255, 0.82); }

/* Call-to-action banner */
.av-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 48px 56px; border-radius: 28px; position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(120deg, #00104c, #0a1f63 60%, #1b2f80); color: #fff; box-shadow: var(--av-shadow-lg);
}
.av-cta::before { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -100px; top: -160px; border-radius: 50%; background: var(--av-accent); filter: blur(80px); opacity: 0.4; }
.av-cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.av-cta p { margin: 0; color: rgba(255, 255, 255, 0.86); max-width: 620px; }
@media (max-width: 680px) { .av-cta { padding: 32px 26px; } }

/* A hero section used inside the builder */
.av-sec-hero .av-hero-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; margin-bottom: 18px; }
.av-sec-hero .av-hero-copy { max-width: 600px; }

/* --------------------------------------------------------------------------
   11. Version 2.4: services designs, "why choose us" cards, scope tiles
   -------------------------------------------------------------------------- */
.av-sec-block { --h: var(--av-ink); --m: var(--av-muted); }
.av-bg-navy { --h: #fff; --m: rgba(255, 255, 255, 0.82); }

/* Accent colour of each section: teal (reference), navy or gold (theme palette). */
.av-tone-teal { --t1: #1fb0c3; --t-fill: #0c7f92; --t2: #0a6575; --t-num: #1fb0c3; --t-soft: #e7f6f9; --t-on: #fff; --t-ico: rgba(255, 255, 255, 0.22); }
.av-tone-navy { --t1: var(--av-primary); --t-fill: var(--av-primary); --t2: var(--av-primary-dark); --t-num: var(--av-primary); --t-soft: var(--av-soft); --t-on: #fff; --t-ico: rgba(255, 255, 255, 0.18); }
.av-tone-gold { --t1: #efba4a; --t-fill: #efba4a; --t2: #8a5a1c; --t-num: #ab702a; --t-soft: #fdf5df; --t-on: var(--av-ink); --t-ico: rgba(12, 26, 66, 0.12); }

.av-menu-list { list-style: none; margin: 0; padding: 0; }
.av-menu-list li { padding: 10px 0; border-bottom: 1px solid rgba(12, 26, 66, 0.12); font-size: 0.95rem; color: var(--av-text); }
.av-menu-list li:last-child { border-bottom: 0; }

/* Equal-width grids (2, 3, 4 per row) */
.av-listcards, .av-whycards, .av-svccards, .av-bigcols, .av-scope { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.av-listcards-2, .av-whycards-2, .av-svccards-2, .av-bigcols-2, .av-scope-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.av-listcards-4, .av-whycards-4, .av-svccards-4, .av-bigcols-4, .av-scope-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.av-listcards-1, .av-whycards-1, .av-svccards-1, .av-bigcols-1, .av-scope-1 { grid-template-columns: minmax(0, 520px); justify-content: center; }

/* Content + side panel */
.av-intro { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.av-intro.no-panel { grid-template-columns: minmax(0, 820px); justify-content: center; }
.av-intro.is-flip .av-intro-panel { order: -1; }
.av-intro-lead { margin: 0 0 10px; font-size: 1.05rem; color: var(--h); }
.av-intro-copy .av-row-text p { margin: 0 0 0.75em; }
.av-bg-navy .av-intro-copy .av-row-text { color: rgba(255, 255, 255, 0.86); }
.av-intro-panel { padding: 28px 30px 20px; border-radius: 20px; background: var(--t-soft); box-shadow: var(--av-shadow); }
.av-sec-block .av-intro-panel h3 { margin: 0 0 12px; font-size: 1.1rem; color: var(--t2); }
.av-intro-pic { margin: 0 0 20px; border-radius: 14px; overflow: hidden; }
.av-intro-pic img { display: block; width: 100%; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; }

/* Columns of menu lists */
.av-listcard { padding: 30px 28px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow); }
.av-sec-block .av-listcard h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--t2); }
.av-listcard h3 a { color: inherit; text-decoration: none; }
.av-listcard h3 a:hover { text-decoration: underline; }

/* Why choose us: coloured cards */
.av-whycard { padding: 34px 28px; border-radius: 22px; background: var(--t-fill); color: var(--t-on); text-align: center; box-shadow: 0 18px 40px rgba(12, 26, 66, 0.16); }
.av-whycard-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--t-ico); }
.av-whycard-ico svg { width: 30px; height: 30px; }
.av-sec-block .av-whycard h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--t-on); }
.av-whycard p { margin: 0; color: var(--t-on); opacity: 0.94; }

/* Our Services 1 and 3: picture beside numbered rows */
.av-svcnum { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 40px; align-items: stretch; }
.av-svcnum.is-flip .av-svcnum-media { order: 2; }
.av-svcnum.no-media { grid-template-columns: minmax(0, 860px); justify-content: center; }
.av-svcnum-media { margin: 0; min-height: 340px; border-radius: 24px; overflow: hidden; box-shadow: var(--av-shadow-lg); }
.av-svcnum-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.av-svcnum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.av-svcnum-list li { display: flex; gap: 22px; align-items: center; padding: 22px 28px; background: #fff; border-radius: 20px; border-left: 6px solid var(--t1); box-shadow: var(--av-shadow); }
.av-num { flex: none; min-width: 2ch; font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--t-num); }
.av-sec-block .av-svcnum-list h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--t2); }
.av-sec-block .av-svcnum-list h3 a { color: inherit; text-decoration: none; }
.av-svcnum-list p { margin: 0; color: var(--av-muted); font-size: 0.97rem; }
.av-svcacc { align-items: start; }
.av-acc { display: grid; gap: 12px; align-content: start; }
.av-acc-item { background: #fff; border-radius: 16px; border-left: 6px solid var(--t1); box-shadow: var(--av-shadow); }
.av-acc-item summary { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 60px 18px 24px; cursor: pointer; list-style: none; color: var(--t2); font-weight: 700; }
.av-acc-item summary::-webkit-details-marker { display: none; }
.av-acc-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--t-soft); color: var(--t2); font-size: 1.2rem; }
.av-acc-item[open] summary::after { content: "\2212"; }
.av-acc-title { font-size: 1.08rem; }
.av-acc-item p { margin: 0; padding: 0 28px 20px 24px; color: var(--av-muted); }

/* Our Services 2: timeline + picture */
.av-timewrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 8px; }
.av-timewrap.is-flip .av-timeline-media { order: -1; }
.av-timewrap.no-media { grid-template-columns: minmax(0, 820px); }
.av-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.av-timeline::before { content: ""; position: absolute; left: 19px; top: 14px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--t1), rgba(12, 26, 66, 0.08)); }
.av-timeline li { position: relative; padding: 0 0 34px 62px; }
.av-timeline li:last-child { padding-bottom: 0; }
.av-tl-dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--t-fill); color: var(--t-on); font-size: 0.8rem; font-weight: 800; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9); }
.av-sec-block .av-timeline h3 { margin: 6px 0 8px; font-size: 1.25rem; color: var(--h); }
.av-timeline p { margin: 0; color: var(--m); }
.av-timeline-media { position: sticky; top: 110px; margin: 0; }
.av-timeline-media img { display: block; width: 100%; max-width: none; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; box-shadow: var(--av-shadow-lg); }
.av-timeline-media figcaption { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--m); }

/* Our Services 4: icon cards with links */
.av-svccard { display: flex; flex-direction: column; padding: 30px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--av-line); border-top: 5px solid var(--t1); box-shadow: var(--av-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.av-svccard:hover { transform: translateY(-4px); box-shadow: var(--av-shadow-lg); }
.av-svccard-ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 14px; background: var(--t-fill); color: var(--t-on); }
.av-sec-block .av-svccard h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--av-ink); }
.av-svccard p { margin: 0 0 16px; color: var(--av-muted); font-size: 0.97rem; }
.av-more { margin-top: auto; font-weight: 700; color: var(--t2); text-decoration: none; }
.av-more:hover { text-decoration: underline; }

/* Our Services 5: big numbers */
.av-bigcols { list-style: none; margin: 0; padding: 0; gap: 34px 40px; }
.av-bigcols li { padding-top: 22px; border-top: 4px solid var(--t1); }
.av-bignum { display: block; margin-bottom: 14px; font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--t-num); }
.av-bg-navy .av-bignum { color: var(--av-gold-light); }
.av-sec-block .av-bigcols h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--h); }
.av-bigcols p { margin: 0; color: var(--m); }

/* Scope of services: icon tiles */
.av-scope-tile { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 20px; border-radius: 22px; background: linear-gradient(180deg, #fff, #f6f8fb); border: 1px solid var(--av-line); box-shadow: 0 14px 36px rgba(12, 26, 66, 0.08); text-align: center; transition: transform 0.2s ease, background 0.2s ease; }
.av-scope-tile:hover { transform: translateY(-3px); background: var(--t-soft); }
.av-scope-ico { color: var(--t1); }
.av-scope-ico svg { width: 42px; height: 42px; }
.av-scope-label { font-weight: 500; color: var(--av-ink); }
.av-tone-gold .av-scope-ico { color: var(--t-num); }

@media (max-width: 1020px) {
	.av-listcards, .av-whycards, .av-svccards, .av-bigcols, .av-scope,
	.av-listcards-4, .av-whycards-4, .av-svccards-4, .av-bigcols-4, .av-scope-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av-intro, .av-svcnum, .av-timewrap { grid-template-columns: 1fr; gap: 32px; }
	.av-intro.is-flip .av-intro-panel, .av-timewrap.is-flip .av-timeline-media, .av-svcnum.is-flip .av-svcnum-media { order: 0; }
	.av-svcnum-media { min-height: 0; aspect-ratio: 16 / 10; }
	.av-timeline-media { position: static; }
}
@media (max-width: 680px) {
	.av-listcards, .av-whycards, .av-svccards, .av-bigcols, .av-scope,
	.av-listcards-2, .av-whycards-2, .av-svccards-2, .av-bigcols-2, .av-scope-2,
	.av-listcards-4, .av-whycards-4, .av-svccards-4, .av-bigcols-4, .av-scope-4 { grid-template-columns: 1fr; }
	.av-svcnum-list li { padding: 18px 20px; gap: 16px; }
}

/* --------------------------------------------------------------------------
   12. Version 2.4: video band before the footer, footer columns
   -------------------------------------------------------------------------- */
.av-videoband { position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate; min-height: clamp(320px, 40vw, 500px); color: #fff; background: linear-gradient(135deg, #00104c, #0a1f63 60%, #14297a); }
.av-videoband-bg { position: absolute; inset: 0; z-index: -1; }
.av-videoband-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 16, 76, 0.84), rgba(0, 16, 76, 0.3)); }
.av-videoband .bg-video.is-playing { opacity: 0.9; }
.av-videoband-inner { padding-top: 72px; padding-bottom: 72px; }
.av-videoband h2 { max-width: 620px; margin: 0 0 12px; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; }
.av-videoband p { max-width: 560px; margin: 0 0 24px; color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; }
.av-videoband .video-toggle { right: 24px; bottom: 18px; }

@media (min-width: 1021px) {
	.footer-grid { grid-template-columns: 1.4fr repeat(var(--fcols, 3), minmax(0, 1fr)); }
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; padding: 0; list-style: none; }
.footer-legal a { color: inherit; opacity: 0.85; }
.footer-legal a:hover { opacity: 1; }
.social-links a svg { display: block; width: 18px; height: 18px; }
.section-head.is-left h2::after { margin-left: 0; }
@media (min-width: 1021px) {
	.av-svcnum.is-flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); }
	.av-timewrap.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
	.av-intro.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
}

/* Video inside the call-to-action banner */
.cta-band.has-video { overflow: hidden; isolation: isolate; }
.cta-band .av-videoband-bg { position: absolute; inset: 0; z-index: -1; }
.cta-band .av-videoband-bg::after { background: linear-gradient(180deg, rgba(0, 16, 76, 0.55), rgba(0, 16, 76, 0.82)); }
.cta-band .bg-video.is-playing { opacity: 0.9; }
.cta-band .video-toggle { right: 24px; bottom: 16px; }

/* --------------------------------------------------------------------------
   13. Version 2.5: side card (show / hide), hero video, new layout styles
   -------------------------------------------------------------------------- */

/* Side card: content on one side, the card runs the full height of the content and stays in view. */
.service-layout { align-items: stretch; }
.service-layout.has-side { grid-template-columns: minmax(0, 1fr) 340px; }
.service-layout.has-side.is-side-left { grid-template-columns: 340px minmax(0, 1fr); }
.service-layout.has-side.is-side-left .service-side { order: -1; }
.service-layout.is-nosidebar { grid-template-columns: minmax(0, 1fr); }
.service-side { position: static; }
.service-side-inner { position: sticky; top: calc(var(--av-header-h) + 24px); display: grid; gap: 20px; }
body.admin-bar .service-side-inner { top: calc(var(--av-header-h) + 56px); }
.service-layout.has-side .service-main { min-width: 0; container-type: inline-size; container-name: avmain; }
.service-layout.has-side .service-main .container { padding-left: 0; padding-right: 0; max-width: none; }
.service-layout.has-side .service-main .section { padding: 36px 0; }
.service-layout.has-side .service-main .av-sec-block { margin-top: 8px; }
.service-layout.has-side .service-main .av-bg-soft, .service-layout.has-side .service-main .av-bg-navy { border-radius: 22px; padding-left: 28px; padding-right: 28px; }
.service-layout.has-side .service-main .av-hero { display: none; }
.av-body--wide .entry-content { max-width: none; }
@media (max-width: 1020px) {
	.service-layout.has-side, .service-layout.has-side.is-side-left { grid-template-columns: 1fr; }
	.service-layout.has-side.is-side-left .service-side { order: 0; }
	.service-side-inner, body.admin-bar .service-side-inner { position: static; }
}
/* Sections inside the narrower content column respond to the column, not the screen. */
@container avmain (max-width: 860px) {
	.av-cols, .av-cols-4, .av-listcards-4, .av-whycards-4, .av-svccards-4, .av-bigcols-4, .av-scope-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container avmain (max-width: 640px) {
	.av-cols, .av-cols-3, .av-cols-4, .av-listcards, .av-whycards, .av-svccards, .av-bigcols, .av-scope,
	.av-listcards-4, .av-whycards-4, .av-svccards-4, .av-bigcols-4, .av-scope-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av-intro, .av-svcnum, .av-timewrap, .av-row { grid-template-columns: 1fr; gap: 28px; }
	.av-intro.is-flip .av-intro-panel, .av-timewrap.is-flip .av-timeline-media, .av-svcnum.is-flip .av-svcnum-media, .av-row.is-flip .av-row-media { order: 0; }
	.av-svcnum-media { min-height: 0; aspect-ratio: 16 / 10; }
	.av-timeline-media { position: static; }
	.av-rows--cards .container { grid-template-columns: 1fr; }
}
@container avmain (max-width: 440px) {
	.av-cols, .av-cols-2, .av-cols-3, .av-cols-4, .av-listcards, .av-whycards, .av-svccards, .av-bigcols, .av-scope,
	.av-listcards-2, .av-whycards-2, .av-svccards-2, .av-bigcols-2, .av-scope-2 { grid-template-columns: 1fr; }
}

/* Hero video (any hero: pages, services, posts, builder Hero banner) */
.av-hero-vid { position: absolute; inset: 0; z-index: -1; }
.av-hero-vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 16, 76, 0.86), rgba(0, 16, 76, 0.42)); }
.av-hero-vid .bg-video.is-playing { opacity: 0.9; }
.av-hero.has-video, .page-hero.has-video { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #0a1f63; }
.av-hero.has-video h1, .av-hero.has-video h2, .av-hero.has-video .lead, .page-hero.has-video h1, .page-hero.has-video .lead { color: #fff; }
.av-hero.has-video .lead, .page-hero.has-video .lead { color: rgba(255, 255, 255, 0.9); }
.av-hero.has-video .av-eyebrow, .page-hero.has-video .eyebrow { color: var(--av-gold-light); }
.av-hero.has-video .av-meta, .av-hero.has-video .breadcrumbs, .av-hero.has-video .breadcrumbs a,
.page-hero.has-video .breadcrumbs, .page-hero.has-video .breadcrumbs a { color: rgba(255, 255, 255, 0.78); }
.av-hero.has-video .breadcrumbs .current, .page-hero.has-video .breadcrumbs .current { color: #fff; }
.av-hero--showcase.has-video .av-hero-media { display: none; }
.av-hero--showcase.has-video::after { display: none; }
.av-hero.has-video .video-toggle, .page-hero.has-video .video-toggle { right: 24px; bottom: 16px; }

/* Banner: full-width cover hero, centred */
.av-hero--banner { display: flex; align-items: center; min-height: clamp(380px, 46vw, 560px); padding: 90px 0 80px; color: #fff; background: linear-gradient(135deg, #00104c, #0a1f63 60%, #14297a); text-align: center; }
.av-hero--banner .av-hero-media { position: absolute; inset: 0; z-index: -1; }
.av-hero--banner .av-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 16, 76, 0.55), rgba(0, 16, 76, 0.82)); }
.av-hero--banner .av-hero-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.av-hero--banner .av-hero-inner { width: 100%; }
.av-hero--banner .av-hero-copy { max-width: 820px; margin: 0 auto; }
.av-hero--banner h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
.av-hero--banner .av-eyebrow { color: var(--av-gold-light); }
.av-hero--banner .lead { color: rgba(255, 255, 255, 0.9); font-size: 1.2rem; }
.av-hero--banner .breadcrumbs, .av-hero--banner .breadcrumbs a, .av-hero--banner .av-meta { color: rgba(255, 255, 255, 0.78); justify-content: center; }
.av-hero--banner .breadcrumbs .current { color: #fff; }
.av-hero--banner .av-hero-actions { margin-top: 30px; }

/* Compact: slim light header for text-heavy pages */
.av-hero--compact { padding: 44px 0 30px; background: linear-gradient(180deg, var(--av-soft), #fff); border-bottom: 1px solid var(--av-line); overflow: visible; }
.av-hero--compact h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.av-hero--compact .lead { max-width: 760px; font-size: 1.05rem; color: var(--av-muted); }
.av-hero--compact.has-video { overflow: hidden; padding: 64px 0 52px; }

/* Centered: soft header, picture card overlapping the content */
.av-hero--centered { padding: 72px 0 130px; text-align: center; background: radial-gradient(900px 340px at 50% 0, rgba(239, 186, 74, 0.2), transparent 70%), linear-gradient(180deg, var(--av-soft), #fff); overflow: hidden; }
.av-hero--centered:not(.has-image) { padding-bottom: 72px; }
.av-hero--centered h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.av-hero--centered .lead { margin-left: auto; margin-right: auto; max-width: 680px; color: var(--av-muted); }
.av-hero--centered .breadcrumbs { justify-content: center; }
.av-centered-media { position: relative; z-index: 2; max-width: 1040px; margin-top: -96px; margin-bottom: 8px; }
.av-centered-media figure { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--av-shadow-lg); border: 6px solid #fff; background: #fff; }
.av-centered-media img { display: block; width: 100%; max-height: 500px; object-fit: cover; }
body.header-style-pill .av-hero--banner, body.header-style-pill .av-hero--compact, body.header-style-pill .av-hero--centered { padding-top: calc(60px + 84px); }
.av-hero--banner .lead, .av-hero--centered .lead { margin-left: auto; margin-right: auto; }

/* Light text on any dark background (the same rules as the dark navy section) */
.av-fg-light { color: #dbe8f1; }
.av-fg-light h2, .av-fg-light h3 { color: #fff; }
.av-fg-light .section-head p, .av-fg-light .av-row-text, .av-fg-light .av-text-body { color: rgba(255, 255, 255, 0.86); }
.av-fg-light .av-eyebrow { color: var(--av-gold-light); }
.av-fg-light .btn-pill { background: transparent; color: #fff; border-color: rgba(246, 229, 137, 0.7); }
.av-fg-light .btn-pill:hover { background: var(--av-gold-grad); color: var(--av-ink); border-color: transparent; }
.av-fg-light .check-list li { border-color: rgba(255, 255, 255, 0.16); }
.av-fg-light .check-list li::before { background: var(--av-gold-grad); color: var(--av-ink); }
.av-fg-light .faq-item, .av-fg-light .faq-answer { color: var(--av-text); }
.av-fg-light .av-steps li { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.av-fg-light .av-steps p { color: rgba(255, 255, 255, 0.82); }
.av-fg-light { --h: #fff; --m: rgba(255, 255, 255, 0.82); }
.av-fg-light .av-intro-copy .av-row-text { color: rgba(255, 255, 255, 0.86); }
.av-fg-light .av-bignum { color: var(--av-gold-light); }

/* --------------------------------------------------------------------------
   14. Version 2.6: section backgrounds (palette, own colour, picture, video), text colour, animation
   -------------------------------------------------------------------------- */
:is(section, header).av-look-on.av-bg-primary { background: var(--av-primary); }
:is(section, header).av-look-on.av-bg-gold { background: var(--av-accent); }
:is(section, header).av-look-on.av-bg-bronze { background: var(--av-violet); }
:is(section, header).av-look-on.av-bg-amber { background: var(--av-rose); }
:is(section, header).av-look-on.av-bg-theme { background: var(--t-fill); }
:is(section, header).av-look-on.av-bg-theme-soft { background: var(--t-soft); }

.has-bgmedia { position: relative; overflow: hidden; isolation: isolate; background: #0a1f63; }
.av-sec-bg { position: absolute; inset: 0; z-index: -1; }
.av-sec-bg img, .av-sec-bg video { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.av-sec-ov { position: absolute; inset: 0; }
.av-ov-dark .av-sec-ov { background: rgba(0, 16, 76, 0.62); }
.av-ov-darker .av-sec-ov { background: rgba(0, 10, 50, 0.82); }
.av-ov-light .av-sec-ov { background: rgba(255, 255, 255, 0.74); }
.has-bgmedia .bg-video.is-playing { opacity: 1; }
.has-bgmedia .video-toggle { right: 24px; bottom: 16px; }
.has-bgmedia.av-ov-light { background: #fff; }

/* Forced dark text, and your own text colour */
.av-sec-block.av-fg-dark, .av-fg-dark { color: var(--av-text); --h: var(--av-ink); --m: var(--av-muted); }
.av-fg-dark :is(h1, h2, h3, .av-hero-title) { color: var(--av-ink); }
.av-fg-dark :is(.lead, .section-head p, .av-row-text, .av-text-body) { color: var(--av-text); }
.av-fg-dark .av-eyebrow { color: var(--av-accent-ink); }
.av-fg-custom .section-head :is(h2, p, .av-eyebrow),
.av-fg-custom .av-row-copy :is(h2, p, li, .av-eyebrow),
.av-fg-custom .av-intro-copy :is(h2, p, strong),
.av-fg-custom .av-hero-copy :is(h1, h2, p, .lead, .av-eyebrow),
.av-fg-custom .av-timeline :is(h3, p),
.av-fg-custom .av-bigcols :is(h3, p, .av-bignum),
.av-fg-custom .av-text-body, .av-fg-custom .cta-inner :is(h2, p) { color: var(--sec-fg); }

/* Entrance animation */
.js [data-av-anim] > .container { opacity: 0; transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-av-anim="fade-up"] > .container { transform: translateY(40px); }
.js [data-av-anim="slide-left"] > .container { transform: translateX(-80px); }
.js [data-av-anim="slide-right"] > .container { transform: translateX(80px); }
.js [data-av-anim="zoom-in"] > .container { transform: scale(0.94); }
.js [data-av-anim].av-in > .container { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js [data-av-anim] > .container { opacity: 1; transform: none; transition: none; }
}

/* Hero text position (builder Hero banner and every page hero) */
.av-hero.av-align-left, .page-hero.av-align-left { text-align: left; }
.av-hero.av-align-center, .page-hero.av-align-center { text-align: center; }
.av-hero.av-align-right, .page-hero.av-align-right { text-align: right; }
.av-align-left .breadcrumbs { justify-content: flex-start; }
.av-align-center .breadcrumbs { justify-content: center; }
.av-align-right .breadcrumbs { justify-content: flex-end; }
.av-align-left .lead, .av-align-left .av-hero-copy { margin-left: 0; margin-right: auto; }
.av-align-center .lead, .av-align-center .av-hero-copy { margin-left: auto; margin-right: auto; }
.av-align-right .lead, .av-align-right .av-hero-copy { margin-left: auto; margin-right: 0; }
.av-hero--split.av-align-center .av-hero-inner { grid-template-columns: 1fr; justify-items: center; }
.av-hero--split.av-align-center .av-hero-frame { width: 100%; max-width: 560px; }
.av-hero--split.av-align-right.has-image .av-hero-inner { grid-template-columns: 0.95fr 1.05fr; }
.av-hero--split.av-align-right .av-hero-copy { order: 2; }
.av-hero--split.av-align-right:not(.has-image) .av-hero-inner { justify-items: end; }
.av-hero--showcase.av-align-center .av-hero-media, .av-hero--showcase.av-align-right .av-hero-media { width: 100%; opacity: 0.22; -webkit-mask-image: none; mask-image: none; }
.av-hero--showcase.av-align-center .av-hero-inner { display: flex; justify-content: center; }
.av-hero--showcase.av-align-right .av-hero-inner { display: flex; justify-content: flex-end; }
@media (max-width: 900px) {
	.av-hero--split.av-align-right.has-image .av-hero-inner { grid-template-columns: 1fr; }
	.av-hero--split.av-align-right .av-hero-copy { order: 0; }
}

/* --------------------------------------------------------------------------
   15. Version 2.7: breadcrumb bar, icon position, picture + icon features,
       mega menu links per row, side bar lists
   -------------------------------------------------------------------------- */

/* Breadcrumb bar: its own strip directly under the header (hero) video */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--av-line); }
.breadcrumb-bar .container { padding-top: 14px; padding-bottom: 14px; }
.breadcrumb-bar .breadcrumbs { margin: 0; font-size: 0.88rem; }

/* Mega menu: sub-menu links per row (2, 3 or 4). Fewer columns are used when the panel is narrow. */
@media (min-width: 901px) {
	.mega-cols-2 .mega-links { grid-template-columns: repeat(auto-fit, minmax(max(190px, calc((100% - 14px) / 2)), 1fr)); }
	.mega-cols-3 .mega-links { grid-template-columns: repeat(auto-fit, minmax(max(190px, calc((100% - 28px) / 3)), 1fr)); }
	.mega-cols-4 .mega-links { grid-template-columns: repeat(auto-fit, minmax(max(170px, calc((100% - 42px) / 4)), 1fr)); }
}

/* Icon position (left / centre / right).
   Set site-wide in Customize > 23 (body class) or on one section ("Icon position"); the nearest one wins. */
.av-ia-left, body.icon-align-left { --ia-ta: left; --ia-ml: 0; --ia-mr: auto; --ia-fx: flex-start; --ia-dir: row; --ia-bt: 0; --ia-br: 0; --ia-bl: 6px; }
.av-ia-center, body.icon-align-center { --ia-ta: center; --ia-ml: auto; --ia-mr: auto; --ia-fx: center; --ia-dir: column; --ia-bt: 6px; --ia-br: 0; --ia-bl: 0; }
.av-ia-right, body.icon-align-right { --ia-ta: right; --ia-ml: auto; --ia-mr: 0; --ia-fx: flex-end; --ia-dir: row-reverse; --ia-bt: 0; --ia-br: 6px; --ia-bl: 0; }

.why-card, .exc-card, .service-card:not(.service-card--image), .cta-card { text-align: var(--ia-ta, left); }
.why-card .icon, .exc-card .icon, .service-card:not(.service-card--image) > .icon, .cta-card .icon {
	display: grid; margin-left: var(--ia-ml, 0); margin-right: var(--ia-mr, auto);
}
.av-whycard { text-align: var(--ia-ta, center); }
.av-svccard { text-align: var(--ia-ta, left); }
.av-svccard-ico { margin-left: var(--ia-ml, 0); margin-right: var(--ia-mr, auto); }
.av-scope-tile { align-items: var(--ia-fx, center); text-align: var(--ia-ta, center); }

/* Our Services 6: picture + icon features */
.av-picico-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; align-content: start; }
.av-picico-list li {
	display: flex; flex-direction: var(--ia-dir, row); align-items: center; gap: 20px; padding: 22px 26px;
	background: #fff; border-radius: 20px; box-shadow: var(--av-shadow); text-align: var(--ia-ta, left);
	border-style: solid; border-color: var(--t1); border-width: var(--ia-bt, 0) var(--ia-br, 0) 0 var(--ia-bl, 6px);
}
.av-picico-ico { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--t-fill); color: var(--t-on); }
.av-picico-ico svg { width: 28px; height: 28px; }
.av-sec-block .av-picico-list h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--t2); }
.av-sec-block .av-picico-list h3 a { color: inherit; text-decoration: none; }
.av-sec-block .av-picico-list h3 a:hover { text-decoration: underline; }
.av-picico-list p { margin: 0; color: var(--av-muted); font-size: 0.97rem; }
@media (max-width: 680px) {
	.av-picico-list li { padding: 18px 20px; gap: 16px; }
}

/* Side bar: several lists can be stacked, so the column scrolls inside itself when it is taller than the screen */
@media (min-width: 901px) {
	.service-side-inner { max-height: calc(100vh - var(--av-header-h, 80px) - 48px); overflow-y: auto; padding: 4px 6px 12px; margin: -4px -6px -12px; scrollbar-width: thin; }
}
.side-links a[aria-current="page"] { color: var(--av-primary); font-weight: 700; }

/* Book a free demo page: navy panel with the health cross beside the form */
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.demo-panel { position: relative; overflow: hidden; padding: 40px 36px; border-radius: 24px; color: #e9edff; background: linear-gradient(160deg, #0d2b84, #00104c 80%); box-shadow: var(--av-shadow-lg); }
.demo-panel::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(239, 186, 74, 0.12); }
.demo-cross { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 22px; border-radius: 50%; background: var(--av-gold-grad, #efba4a); color: #00104c; box-shadow: 0 0 0 8px rgba(239, 186, 74, 0.2); }
.demo-panel h2 { margin: 0 0 18px; color: #fff; font-size: 1.6rem; }
.demo-points { list-style: none; margin: 0 0 24px; padding: 0; position: relative; z-index: 1; }
.demo-points li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.demo-points li:last-child { border-bottom: 0; }
.demo-points li::before { content: "\2713"; position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(239, 186, 74, 0.25); color: #f6e589; font-size: 0.75rem; font-weight: 800; }
.demo-contact { position: relative; z-index: 1; display: grid; gap: 4px; margin: 0; }
.demo-contact a { color: #f6e589; font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } }

/* --------------------------------------------------------------------------
   16. Version 2.7.1: side bar redesign (collapsible cards, row links, chips)
   -------------------------------------------------------------------------- */
.service-side-inner { display: grid; gap: 16px; align-content: start; }
.service-side-inner > .side-card { margin: 0; }
.side-card.side-list { padding: 0; overflow: hidden; border-radius: 20px; }
.side-list summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.side-list summary::-webkit-details-marker { display: none; }
.side-list summary:focus-visible { outline: 2px solid var(--av-primary); outline-offset: -2px; border-radius: 20px; }
.side-list summary h3 { flex: 1; margin: 0; font-size: 1.02rem; line-height: 1.25; }
.side-list-ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--av-accent-soft); color: var(--av-accent-ink); }
.side-list-ico svg { width: 19px; height: 19px; }
.side-count { padding: 2px 9px; border-radius: 999px; background: var(--av-soft); color: var(--av-muted); font-size: 0.74rem; font-weight: 800; }
.side-list summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: -3px 4px 0 2px; border-right: 2px solid var(--av-muted); border-bottom: 2px solid var(--av-muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.side-list[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.side-list[open] summary { border-bottom: 1px solid var(--av-line); }
.side-list .side-links { padding: 8px 10px 12px; }
.side-list .side-links li { border: 0; }
.side-list .side-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--av-text); font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.side-list .side-links a::after { content: "\203A"; flex: none; color: var(--av-muted); font-size: 1.25rem; line-height: 1; opacity: 0.55; transition: transform 0.15s ease, opacity 0.15s ease; }
.side-list .side-links a:hover, .side-list .side-links a:focus-visible { background: var(--av-accent-soft); color: var(--av-primary); }
.side-list .side-links a:hover::after, .side-list .side-links a:focus-visible::after { color: var(--av-primary); opacity: 1; transform: translateX(3px); }
.side-list .side-links a[aria-current="page"] { background: var(--av-accent-soft); color: var(--av-primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--av-accent); }
.side-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 14px 16px 18px; list-style: none; }
.side-chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--av-line); border-radius: 999px; background: #fff; color: var(--av-text); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.side-chips a:hover, .side-chips a:focus-visible { border-color: var(--av-primary); background: var(--av-primary); color: #fff; }

/* Mega menu: a sub-menu that sets its own number of columns beats the top-level choice */
@media (min-width: 901px) {
	.mega .mega-links.mega-links-cols-2 { grid-template-columns: repeat(auto-fit, minmax(max(190px, calc((100% - 14px) / 2)), 1fr)); }
	.mega .mega-links.mega-links-cols-3 { grid-template-columns: repeat(auto-fit, minmax(max(190px, calc((100% - 28px) / 3)), 1fr)); }
	.mega .mega-links.mega-links-cols-4 { grid-template-columns: repeat(auto-fit, minmax(max(170px, calc((100% - 42px) / 4)), 1fr)); }
}

/* --------------------------------------------------------------------------
   16. Version 2.9: testimonials, customer approach panels, logo strip
   -------------------------------------------------------------------------- */
.av-testi { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; margin: 0; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow); }
.av-testi::before { content: "\201C"; position: absolute; top: 6px; right: 22px; font: 700 4.6rem/1 Georgia, serif; color: var(--t1); opacity: 0.25; }
.av-stars { color: #efba4a; letter-spacing: 2px; font-size: 1.05rem; }
.av-testi blockquote { margin: 0; }
.av-testi blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--av-text); }
.av-testi figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.av-testi-photo { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--t-soft); color: var(--t2); font-weight: 800; }
.av-testi-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.av-testi-who { display: flex; flex-direction: column; line-height: 1.3; }
.av-testi-who strong { color: var(--av-ink); }
.av-testi-who span { font-size: 0.88rem; color: var(--av-muted); }
.av-testi-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.av-testi-grid.av-testi-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.av-testi-grid > div { display: flex; }
.av-testi-grid .av-testi { width: 100%; }

.av-testi-slider { position: relative; }
.av-slider-track { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 16px; }
.av-slider-track::-webkit-scrollbar { display: none; }
.av-slider-track:focus-visible { outline: 3px solid var(--t1); outline-offset: 2px; border-radius: 12px; }
.av-slide { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; display: flex; }
.av-slide .av-testi { width: 100%; }
.av-testi-featured .av-slide { flex: 0 0 100%; }
.av-testi-featured .av-testi { align-items: center; padding: 44px 40px; text-align: center; }
.av-testi-featured .av-testi blockquote p { font-size: 1.3rem; max-width: 760px; }
.av-testi-featured .av-testi figcaption { margin-top: 8px; }
.av-slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.av-slider-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--av-line); background: #fff; color: var(--t2); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--av-shadow); }
.av-slider-btn:hover, .av-slider-btn:focus-visible { background: var(--t-fill); color: var(--t-on); border-color: transparent; outline: none; }
.av-slider-dots { display: flex; gap: 8px; }
.av-slider-nav { color: var(--av-ink); }
.av-bg-navy .av-slider-nav, .av-fg-light .av-slider-nav { color: #fff; }
.av-slider-dots i { width: 9px; height: 9px; border-radius: 99px; background: currentColor; opacity: 0.3; transition: width 0.2s ease, opacity 0.2s ease; }
.av-slider-dots i.is-on { width: 24px; opacity: 1; background: var(--t1); }
.av-bg-navy .av-slider-dots i.is-on, .av-fg-light .av-slider-dots i.is-on { background: var(--av-gold-light); }

.av-approach { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.av-approach-row { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.av-approach-panel { position: relative; padding: 26px 22px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--av-line); border-top: 5px solid var(--t1); box-shadow: var(--av-shadow); }
.av-approach-row .av-approach-panel:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -24px; width: 24px; height: 2px; background: var(--t1); }
.av-approach-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.av-approach-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--t-fill); color: var(--t-on); font-size: 0.85rem; font-weight: 800; }
.av-approach-ico { color: var(--t1); }
.av-approach-ico svg { width: 32px; height: 32px; }
.av-sec-block .av-approach-body h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--av-ink); }
.av-approach-body p { margin: 0; color: var(--av-muted); font-size: 0.97rem; }
.av-approach-gets { list-style: none; margin: 14px 0 0; padding: 0; }
.av-approach-gets li { position: relative; padding: 5px 0 5px 24px; font-size: 0.92rem; color: var(--av-text); }
.av-approach-gets li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; color: var(--t2); }
.av-approach-stack { grid-template-columns: 1fr; }
.av-approach-stack .av-approach-panel { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; border-top: 1px solid var(--av-line); border-left: 6px solid var(--t1); }
.av-approach-stack .av-approach-top { flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
.av-approach-cta { margin-top: 34px; }

.av-logos-section { padding: 44px 0; }
.av-logos-cap { margin: 0 0 22px; text-align: center; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--m); }
.av-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px 48px; }
.av-logos img { display: block; width: auto; max-width: 150px; max-height: 46px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s ease, opacity 0.2s ease; }
.av-logos.is-color img, .av-logos li:hover img { filter: none; opacity: 1; }
.av-logo-name { font-size: 1.1rem; font-weight: 800; color: var(--m); }

@media (max-width: 1020px) {
	.av-testi-grid, .av-testi-grid.av-testi-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av-slide { flex-basis: calc((100% - 24px) / 2); }
	.av-approach-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av-approach-row .av-approach-panel::after { display: none; }
}
@media (max-width: 680px) {
	.av-testi-grid, .av-testi-grid.av-testi-cols-2, .av-approach-row { grid-template-columns: 1fr; }
	.av-slide { flex-basis: 100%; }
	.av-testi-featured .av-testi { padding: 30px 22px; }
	.av-approach-stack .av-approach-panel { grid-template-columns: 1fr; gap: 14px; }
}

/* Testimonials and approach panels in a narrow content column (side-card layout, or the plugin on another theme) */
@container avmain (max-width: 760px) {
	.av-testi-grid, .av-testi-grid.av-testi-cols-2, .av-approach-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av-slide { flex-basis: calc((100% - 24px) / 2); }
	.av-approach-row .av-approach-panel::after { display: none; }
}
@container avmain (max-width: 520px) {
	.av-testi-grid, .av-testi-grid.av-testi-cols-2, .av-approach-row { grid-template-columns: 1fr; }
	.av-slide { flex-basis: 100%; }
	.av-approach-stack .av-approach-panel { grid-template-columns: 1fr; gap: 14px; }
}

/* ==========================================================================
   17. Version 2.10: four home panels, success stories
   ========================================================================== */
.panels.panels-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.panels.panels-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panels-n4 .panel { padding: 28px 24px; min-height: 0; }
.panels-n4 .panel h3 { font-size: 1.4rem; overflow-wrap: anywhere; }
.panels-n4 .panel-stats { grid-template-columns: 1fr; gap: 8px; }
.panels-n4 .panel-stats li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; transform: none; }
.panels-n4 .panel-stats strong { font-size: 1.1rem; flex: 0 0 auto; }
.panels-n4 .panel-stats span { margin: 0; font-size: 0.78rem; }
.panel-4 { background: linear-gradient(150deg, #0e2a6e, #00104c 42%, #8a5a1f); }
.panel-4 .panel-stats strong { color: var(--av-gold-light); }
@media (max-width: 1180px) {
	.panels.panels-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.panels-n4 .panel { padding: 32px 28px; }
}
@media (max-width: 760px) {
	.panels.panels-n4, .panels.panels-n2 { grid-template-columns: 1fr; }
}

.av-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.av-story { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--av-line, #e3e8f2); box-shadow: var(--av-shadow, 0 10px 30px rgba(0, 16, 76, 0.08)); box-sizing: border-box; }
.av-story-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--av-soft, #eef3ff); color: var(--av-primary); font-size: 0.76rem; font-weight: 700; }
.av-story h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.av-story p { margin: 0; flex: 1; color: var(--av-muted, #55627f); }
.av-story-metrics { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; }
.av-story-metrics li { flex: 1 1 120px; padding: 12px 14px; border-radius: 14px; background: var(--av-soft, #eef3ff); }
.av-story-metrics strong { display: block; font-size: 1.5rem; line-height: 1.1; color: var(--av-primary); }
.av-story-metrics span { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--av-muted, #55627f); }
.av-story-link { font-weight: 800; text-decoration: none; }
@media (max-width: 1000px) { .av-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .av-stories { grid-template-columns: 1fr; } }

/* 2.10 polish: the quote mark no longer runs into the first line; equal label height on the four panels */
.av-testi::before { font-size: 3.4rem; top: 10px; right: 20px; }
.av-testi blockquote { padding-right: 34px; }
.av-testi-featured .av-testi blockquote { padding-right: 0; }

/* ==========================================================================
   18. Version 2.11: refined solution panels, extra side bar panels, menu state
   ========================================================================== */

/* Solution panels: icon bubble, label chip, big title, number rows, round arrow link. Same markup for the homepage
   section, its copy and the page builder's "Solution panels" section. */
.panels { gap: 22px; }
.panels .panel { gap: 0; padding: 30px 26px 26px; border-radius: 26px; min-height: 0; overflow: hidden; isolation: isolate; border: 1px solid rgba(255, 255, 255, 0.16); }
.panels .panel::after { content: ""; position: absolute; z-index: 0; right: -46px; bottom: -46px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, 0.07); pointer-events: none; }
.panels .panel > *:not(.tilt-glare) { z-index: 1; }
.panel-top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.panel-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); color: var(--av-gold-light); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.panel-ico svg { width: 26px; height: 26px; }
.panels .panel-label { margin: 0; padding: 5px 12px; border-radius: 12px; font-size: 0.74rem; line-height: 1.35; letter-spacing: 0.01em; min-height: 0; display: inline-block; }
.panels .panel h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; overflow-wrap: break-word; }
.panels .panel p { margin: 0; font-size: 0.97rem; line-height: 1.55; }
.panels .panel-stats { margin: 22px 0 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.panels-n4 .panel-stats li, .panels-n3 .panel-stats li { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); border-radius: 14px; }
@media (min-width: 1181px) { .panels-n4 .panel-top { min-height: 0; margin-bottom: 0; } } /* titles line up across the four cards */
.panels-n4 .panel-stats strong { font-size: 1.3rem; min-width: 4.2ch; letter-spacing: -0.01em; }
.panels-n4 .panel-stats span { font-size: 0.8rem; line-height: 1.3; }
.panels .panel-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; align-self: flex-start; font-size: 0.95rem; transform: none; }
.panels .panel-link i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--av-gold-grad); color: var(--av-ink); font-style: normal; font-weight: 800; transition: transform 0.2s ease; }
.panels a.panel:hover .panel-link i, .panels a.panel:focus-visible .panel-link i { transform: translateX(5px); }
.panels a.panel:focus-visible { outline: 3px solid var(--av-gold-light); outline-offset: 3px; }

/* Panel 2 is gold: dark icon and arrow. Panel 4 is a deep teal so four panels never repeat a colour. */
.panel-2 .panel-ico { background: rgba(0, 16, 76, 0.1); border-color: rgba(0, 16, 76, 0.25); color: var(--av-ink); }
.panel-2 .panel-link i { background: var(--av-navy-grad); color: var(--av-gold-light); }
.panel-2 .panel-stats { border-top-color: rgba(0, 16, 76, 0.22); }
.panel-4 { background: linear-gradient(150deg, #138f86, #0b5a73 52%, #00104c); }
.panel-4 .panel-stats strong { color: var(--av-gold-light); }

/* Two or three panels have more room: bigger text, numbers as tiles in one row */
.panels-n2 .panel, .panels-n3 .panel { padding: 36px 32px 30px; }
.panels-n2 .panel h3, .panels-n3 .panel h3 { font-size: 1.7rem; }
.panels-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1180px) {
	.panels.panels-n4, .panels.panels-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.panels-n3 .panel:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.panels.panels-n4, .panels.panels-n3, .panels.panels-n2 { grid-template-columns: 1fr; }
	.panels .panel { padding: 26px 22px 22px; }
}

/* Side bar: extra small panels, the same card shape as "Talk to an expert" */
.side-panel { position: relative; overflow: hidden; border: 0; text-align: var(--ia-ta, left); }
.side-panel .icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px; }
.side-panel .icon svg { width: 24px; height: 24px; }
.side-panel h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.25; }
.side-panel p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.5; }
.side-panel .btn { margin-top: 2px; }
.side-panel--navy { background: linear-gradient(160deg, #0d2b84, #00104c); color: #d4e4ff; }
.side-panel--navy h3 { color: #fff; }
.side-panel--navy .icon { background: rgba(246, 229, 137, 0.16); color: var(--av-gold-light); }
.side-panel--navy .side-panel-btn { background: var(--av-gold-grad); color: var(--av-ink); border-color: transparent; }
.side-panel--gold { background: linear-gradient(150deg, #f6e589, #efba4a 60%, #d9962f); color: var(--av-ink); }
.side-panel--gold h3, .side-panel--gold p { color: var(--av-ink); }
.side-panel--gold .icon { background: rgba(0, 16, 76, 0.12); color: var(--av-ink); }
.side-panel--gold .side-panel-btn { background: var(--av-navy-grad); color: #fff; border-color: transparent; }
.side-panel--light { background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow); }
.side-panel--light .icon { background: var(--av-accent-soft); color: var(--av-accent-ink); }
.side-panel--light .side-panel-btn { background: #fff; color: var(--av-primary); border: 2px solid var(--av-primary); }
.side-panel--light .side-panel-btn:hover { background: var(--av-primary); color: #fff; }
.side-panel .side-panel-btn:hover { filter: brightness(1.06); }

/* ==========================================================================
   19. Version 2.12: process styles, five columns, "Edit" buttons on the homepage
   ========================================================================== */

/* "Edit" button on each homepage block (only logged-in people who can use the Customizer ever see it) */
.av-home-block { position: relative; }
.av-edit-link {
	position: absolute; z-index: 40; top: 12px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
	background: #00104c; color: #f6e589 !important; border: 1px solid rgba(246, 229, 137, 0.5); font: 700 12px/1 system-ui, sans-serif; text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(0, 16, 76, 0.35); opacity: 0; transform: translateY(-4px); transition: opacity 0.15s ease, transform 0.15s ease;
}
.av-home-block:hover > .av-edit-link, .av-home-block:hover > .container > .av-edit-link, .av-edit-link:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .av-edit-link { opacity: 0.92; transform: none; } }
.admin-bar .av-edit-link { top: 12px; }

/* ---- Process steps: five styles ---- */
.av-steps li { --av-step-ring: #fff; }
.av-bg-soft .av-steps li, .av-bg-soft .av-steps { --av-step-ring: var(--av-soft, #f4f6fb); }
.av-bg-navy .av-steps, .av-fg-light .av-steps { --av-step-ring: #0d2b84; }
.av-bg-navy .av-steps h3, .av-fg-light .av-steps h3 { color: #fff; }
.av-step-tag { display: inline-block; margin: 0 0 10px; padding: 3px 11px; border-radius: 999px; background: var(--av-accent-soft, #fdf5df); color: var(--av-accent-ink, #8a5a1c); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.av-bg-navy .av-step-tag, .av-fg-light .av-step-tag { background: rgba(246, 229, 137, 0.16); color: #f6e589; }
.av-steps li::before { box-shadow: 0 6px 16px rgba(171, 112, 42, 0.35); }

/* Cards (default): number badge, and an arrow pointing to the next step */
.av-steps-cards li { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.av-steps-cards li:hover { transform: translateY(-4px); box-shadow: var(--av-shadow-lg, 0 18px 40px rgba(0, 16, 76, 0.18)); }
.av-steps-cards li:not(:last-child)::after {
	content: "→"; position: absolute; z-index: 2; right: -19px; top: 34px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: #fff; border: 1px solid var(--av-line); color: var(--av-accent-ink, #8a5a1c); font-weight: 800; box-shadow: 0 4px 10px rgba(0, 16, 76, 0.1);
}
@media (max-width: 1000px) { .av-steps-cards li:not(:last-child)::after { display: none; } }

/* Timeline: a line across the page with numbered dots, text below */
.av-steps.av-steps-timeline { position: relative; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px; }
.av-steps.av-steps-timeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 21px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #efba4a, #ab702a); opacity: 0.55; }
.av-steps.av-steps-timeline li { padding: 0; background: none; border: 0; box-shadow: none; text-align: center; }
.av-steps.av-steps-timeline li::before { position: relative; z-index: 1; margin: 0 auto 18px; box-shadow: 0 0 0 7px var(--av-step-ring), 0 6px 16px rgba(171, 112, 42, 0.35); }
.av-steps.av-steps-timeline h3 { font-size: 1.08rem; }
@media (max-width: 800px) {
	.av-steps.av-steps-timeline { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
	.av-steps.av-steps-timeline::before { left: 20px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
	.av-steps.av-steps-timeline li { text-align: left; padding-left: 64px; }
	.av-steps.av-steps-timeline li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Vertical line: steps stacked, joined by a line */
.av-steps.av-steps-vertical { display: block; max-width: 780px; margin-inline: auto; }
.av-steps.av-steps-vertical li { padding: 0 0 34px 72px; background: none; border: 0; box-shadow: none; min-height: 46px; }
.av-steps.av-steps-vertical li:last-child { padding-bottom: 0; }
.av-steps.av-steps-vertical li::before { position: absolute; left: 0; top: 0; margin: 0; }
.av-steps.av-steps-vertical li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #efba4a, rgba(171, 112, 42, 0.15)); }
.av-steps.av-steps-vertical h3 { margin-top: 6px; }

/* Arrow bands: each step points to the next one */
.av-steps.av-steps-chevrons { display: flex; flex-wrap: nowrap; gap: 0; }
.av-steps.av-steps-chevrons li {
	flex: 1 1 0; min-width: 0; padding: 30px 40px 30px 52px; margin-left: -16px; border: 0; border-radius: 0; box-shadow: none; color: #fff;
	background: linear-gradient(135deg, #1b3fae, #00104c); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%, 28px 50%);
}
.av-steps.av-steps-chevrons li:nth-child(even) { background: linear-gradient(135deg, #0d2b84, #061a5c); }
.av-steps.av-steps-chevrons li:first-child { margin-left: 0; padding-left: 34px; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%); border-radius: 18px 0 0 18px; }
.av-steps.av-steps-chevrons li:last-child { padding-right: 30px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 28px 50%); border-radius: 0 18px 18px 0; }
.av-steps.av-steps-chevrons li:first-child:last-child { clip-path: none; border-radius: 18px; }
.av-steps.av-steps-chevrons li::before { width: 36px; height: 36px; margin-bottom: 12px; font-size: 0.95rem; }
.av-steps.av-steps-chevrons h3 { color: #fff; font-size: 1.08rem; }
.av-steps.av-steps-chevrons p { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }
.av-steps.av-steps-chevrons .av-step-tag { background: rgba(246, 229, 137, 0.18); color: #f6e589; }
@media (max-width: 900px) {
	.av-steps.av-steps-chevrons { flex-direction: column; gap: 10px; }
	.av-steps.av-steps-chevrons li, .av-steps.av-steps-chevrons li:first-child, .av-steps.av-steps-chevrons li:last-child { margin: 0; padding: 24px 26px; clip-path: none; border-radius: 18px; }
}

/* Big numbers: large 01, 02, 03 above a gold rule */
.av-steps.av-steps-big { counter-reset: avstep; gap: 34px 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.av-steps.av-steps-big li { padding: 22px 0 0; background: none; border: 0; border-top: 3px solid #efba4a; border-radius: 0; box-shadow: none; }
.av-steps.av-steps-big li::before {
	content: counter(avstep, decimal-leading-zero); display: block; width: auto; height: auto; margin: 0 0 6px; border-radius: 0; place-items: unset; box-shadow: none;
	font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: transparent;
	background: linear-gradient(135deg, #1b3fae, #ab702a); -webkit-background-clip: text; background-clip: text;
}
.av-bg-navy .av-steps.av-steps-big li::before, .av-fg-light .av-steps.av-steps-big li::before { background: linear-gradient(135deg, #f6e589, #efba4a); -webkit-background-clip: text; background-clip: text; }

/* ---- Five columns ---- */
.av-cols5 { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.av-c5 { flex: 0 1 calc((100% - 80px) / 5); min-width: 0; box-sizing: border-box; text-align: var(--ia-ta, center); }
.av-c5 h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.25; overflow-wrap: break-word; }
.av-c5 h3 a { color: inherit; text-decoration: none; }
.av-c5 h3 a:hover { text-decoration: underline; }
.av-c5 p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--av-muted); }
.av-c5-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: var(--t-soft); color: var(--t-num); }
.av-c5-ico svg { width: 26px; height: 26px; }
.av-c5-num { display: block; margin-bottom: 10px; font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--t-num); }

.av-cols5-cards .av-c5 { padding: 28px 18px 24px; background: #fff; border: 1px solid var(--av-line); border-radius: 20px; box-shadow: var(--av-shadow); }
.av-cols5-cards .av-c5 h3 { color: var(--av-ink); }

.av-cols5-tiles .av-c5 { padding: 28px 18px 24px; border-radius: 20px; color: var(--t-on); background: linear-gradient(155deg, var(--t-fill), var(--t2)); box-shadow: 0 16px 34px rgba(12, 26, 66, 0.16); }
.av-cols5-tiles .av-c5 h3, .av-cols5-tiles .av-c5 p { color: var(--t-on); }
.av-cols5-tiles .av-c5 p { opacity: 0.92; }
.av-cols5-tiles .av-c5-ico { background: var(--t-ico); color: var(--t-on); }

.av-cols5-numbered .av-c5 { padding: 20px 4px 0; border-top: 4px solid var(--t1); text-align: left; }
.av-cols5-numbered .av-c5 h3 { color: var(--av-ink); }

.av-cols5-minimal { gap: 0; }
.av-cols5-minimal .av-c5 { padding: 6px 22px; flex-basis: 20%; border-left: 2px solid var(--av-line); }
.av-cols5-minimal .av-c5:first-child { border-left: 0; }
.av-cols5-minimal .av-c5 h3 { color: var(--av-ink); }

.av-bg-navy .av-cols5-numbered .av-c5 h3, .av-bg-navy .av-cols5-minimal .av-c5 h3, .av-fg-light .av-cols5-numbered .av-c5 h3, .av-fg-light .av-cols5-minimal .av-c5 h3 { color: #fff; }
.av-bg-navy .av-cols5-numbered .av-c5 p, .av-bg-navy .av-cols5-minimal .av-c5 p, .av-fg-light .av-cols5-numbered .av-c5 p, .av-fg-light .av-cols5-minimal .av-c5 p { color: rgba(255, 255, 255, 0.82); }
.av-bg-navy .av-cols5-minimal .av-c5 { border-left-color: rgba(255, 255, 255, 0.2); }

@media (max-width: 1100px) {
	.av-c5, .av-cols5-minimal .av-c5 { flex-basis: calc((100% - 40px) / 3); }
	.av-cols5-minimal { gap: 20px 0; }
	.av-cols5-minimal .av-c5:nth-child(3n+1) { border-left: 0; }
}
@media (max-width: 720px) {
	.av-c5, .av-cols5-minimal .av-c5 { flex-basis: calc((100% - 20px) / 2); }
	.av-cols5-minimal .av-c5 { border-left: 2px solid var(--av-line); }
	.av-cols5-minimal .av-c5:nth-child(odd) { border-left: 0; }
}
@media (max-width: 480px) {
	.av-c5, .av-cols5-minimal .av-c5 { flex-basis: 100%; border-left: 0 !important; }
}

/* Five steps sit on one row (six too, on wide screens) instead of wrapping 4 + 1 */
.av-steps.av-steps-cards, .av-steps.av-steps-big { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.av-steps.av-steps-cards li { padding: 28px 22px 24px; }


/* --------------------------------------------------------------------------
   20. Version 2.14: icon position (left / centre / right) for panels, five columns and approach panels
   -------------------------------------------------------------------------- */
.panel { text-align: var(--ia-ta, left); }
.panel-top { align-items: var(--ia-fx, flex-start); }
.av-ia-center .panel-top, .av-ia-right .panel-top { flex-direction: column; }
.panel-stats { text-align: left; }
.av-c5-ico { margin-left: var(--ia-ml, auto); margin-right: var(--ia-mr, auto); }
.av-approach-top { justify-content: var(--ia-fx, space-between); }
.av-approach-panel { text-align: var(--ia-ta, left); }
.av-approach-ico { margin-left: var(--ia-ml, 0); margin-right: var(--ia-mr, 0); }
.av-ia-left .av-approach-top, .av-ia-right .av-approach-top { gap: 12px; }

/* Icons are centred by default (v2.14.1); a block, section or the site-wide setting can switch to left or right. */
:root { --ia-ta: center; --ia-ml: auto; --ia-mr: auto; --ia-fx: center; --ia-dir: column; --ia-bt: 6px; --ia-br: 0; --ia-bl: 0; }
/* Footer message + button under a homepage block */
.section-more { margin-top: 36px; text-align: center; }
.section-more p { margin: 0 0 14px; color: var(--av-muted); font-size: 1.05rem; }


/* --------------------------------------------------------------------------
   21. Version 2.15: panel colours and a background colour theme for every homepage block
   -------------------------------------------------------------------------- */
.panels .panel.panel-c-navy   { background: linear-gradient(150deg, #0d2b84, #00104c); }
.panels .panel.panel-c-blue   { background: linear-gradient(150deg, #2f6df0, #1b3a94); }
.panels .panel.panel-c-teal   { background: linear-gradient(150deg, #138f86, #0b5a73 52%, #00104c); }
.panels .panel.panel-c-green  { background: linear-gradient(150deg, #2f9e6b, #145a3b); }
.panels .panel.panel-c-purple { background: linear-gradient(150deg, #7c4ddb, #3f1d8f); }
.panels .panel.panel-c-rose   { background: linear-gradient(150deg, #e0457b, #8f1650); }
.panels .panel.panel-c-slate  { background: linear-gradient(150deg, #54627a, #1e293b); }
.panels .panel.panel-c-gold   { background: linear-gradient(150deg, #f8dc72, #dd9f22); }
/* A chosen colour resets the position-based icon/arrow styling, then gold gets dark text. */
.panels .panel[class*="panel-c-"] .panel-ico { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); color: var(--av-gold-light); }
.panels .panel[class*="panel-c-"] .panel-link i { background: var(--av-gold-grad); color: var(--av-ink); }
.panels .panel[class*="panel-c-"] .panel-stats { border-top-color: rgba(255, 255, 255, 0.22); }
.panels .panel[class*="panel-c-"] .panel-stats strong { color: var(--av-gold-light); }
.panels .panel.panel-c-gold, .panels .panel.panel-c-gold h3, .panels .panel.panel-c-gold p, .panels .panel.panel-c-gold .panel-label, .panels .panel.panel-c-gold .panel-stats strong, .panels .panel.panel-c-gold .panel-stats span, .panels .panel.panel-c-gold .panel-link { color: #00104c; }
.panels .panel.panel-c-gold .panel-ico { background: rgba(0, 16, 76, 0.1); border-color: rgba(0, 16, 76, 0.25); color: #00104c; }
.panels .panel.panel-c-gold .panel-link i { background: linear-gradient(135deg, #0d2b84, #00104c); color: var(--av-gold-light); }
.panels .panel.panel-c-gold .panel-stats { border-top-color: rgba(0, 16, 76, 0.22); }

/* Homepage block backgrounds */
.av-hbg > section { background: transparent; }
.av-hbg.av-hbg-white   { background: #fff; }
.av-hbg.av-hbg-soft    { background: #fbf8ef; }
.av-hbg.av-hbg-sky     { background: #eaf2ff; }
.av-hbg.av-hbg-mint    { background: #e8f6ef; }
.av-hbg.av-hbg-sand    { background: #fcf3dc; }
.av-hbg.av-hbg-lilac   { background: #f1ecfc; }
.av-hbg.av-hbg-navy    { background: linear-gradient(135deg, #0d2b84, #00104c); }
.av-hbg.av-hbg-teal    { background: linear-gradient(135deg, #138f86, #0b5a73); }
.av-hbg.av-hbg-primary { background: var(--av-primary); }
.av-hbg.av-hbg-purple  { background: linear-gradient(135deg, #5b34b8, #2e1478); }
.av-hbg.av-hbg-custom  { background: var(--hbg, #0d2b84); }
/* Dark backgrounds: light headings and text (cards keep their own colours) */
.av-hbg-dark .section-head h2, .av-hbg-dark .section-head p, .av-hbg-dark .section-more p { color: #fff; }
.av-hbg-dark .section-head p, .av-hbg-dark .section-more p { opacity: 0.88; }
.av-hbg-dark .section-head .eyebrow { color: var(--av-gold-light); }
.av-hbg-dark .faq-item { color: var(--av-text); }
.av-hbg-dark .stat strong, .av-hbg-dark .stat span { color: #fff; }


/* --------------------------------------------------------------------------
   22. Version 2.16: smaller headings and card text per section (av-hs-N heading, av-cs-N cards)
   -------------------------------------------------------------------------- */
.av-hs-1 .section-head h2, .av-hs-1 > .container > h2 { font-size: clamp(1.4rem, 2.5vw, 1.95rem); }
.av-hs-2 .section-head h2, .av-hs-2 > .container > h2 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); }
.av-hs-3 .section-head h2, .av-hs-3 > .container > h2 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.av-hs-1 .section-head p { font-size: 1rem; }
.av-hs-2 .section-head p { font-size: 0.93rem; }
.av-hs-3 .section-head p { font-size: 0.86rem; }
.av-hs-2 .section-head h2::after, .av-hs-3 .section-head h2::after { width: 56px; height: 4px; margin-top: 12px; }
.av-hs-1 .section-head, .av-hs-2 .section-head, .av-hs-3 .section-head { margin-bottom: 36px; }

.av-cs-1 :is(.card, .exc-card, .why-card, .service-card, .faq-item, .post-card) h3, .av-cs-1 .panels .panel h3 { font-size: 1.2rem; }
.av-cs-2 :is(.card, .exc-card, .why-card, .service-card, .faq-item, .post-card) h3, .av-cs-2 .panels .panel h3 { font-size: 1.05rem; }
.av-cs-3 :is(.card, .exc-card, .why-card, .service-card, .faq-item, .post-card) h3, .av-cs-3 .panels .panel h3 { font-size: 0.95rem; }
.av-cs-1 :is(.card, .exc-card, .why-card, .service-card, .post-card) p, .av-cs-1 .panels .panel p { font-size: 0.9rem; }
.av-cs-2 :is(.card, .exc-card, .why-card, .service-card, .post-card) p, .av-cs-2 .panels .panel p { font-size: 0.84rem; line-height: 1.5; }
.av-cs-3 :is(.card, .exc-card, .why-card, .service-card, .post-card) p, .av-cs-3 .panels .panel p { font-size: 0.78rem; line-height: 1.45; }
.av-cs-1 .panels .panel-label { font-size: 0.7rem; } .av-cs-2 .panels .panel-label, .av-cs-3 .panels .panel-label { font-size: 0.64rem; }
.av-cs-1 .panels .panel-stats strong { font-size: 1.1rem; } .av-cs-2 .panels .panel-stats strong, .av-cs-3 .panels .panel-stats strong { font-size: 0.95rem; }
.av-cs-2 .panels .panel-stats span, .av-cs-3 .panels .panel-stats span { font-size: 0.72rem; }
.av-cs-2 .panels .panel, .av-cs-3 .panels .panel { padding: 22px 20px 20px; }
.av-cs-3 .panels .panel-link { font-size: 0.84rem; }
.av-cs-3 .panels .panel-ico, .av-cs-3 .side-panel .icon { width: 42px; height: 42px; }


/* --------------------------------------------------------------------------
   23. Version 2.17: testimonial opening quote on the left, custom HTML, linked card titles
   -------------------------------------------------------------------------- */
.av-testi { text-align: left; align-items: flex-start; }
.av-testi blockquote { padding-top: 30px; text-align: left; }
.av-testi::before { left: 24px; right: auto; top: 8px; }
.av-testi blockquote p:last-child { margin-bottom: 0; }
.av-testi-featured .av-testi { align-items: flex-start; text-align: left; }
.av-testi-featured .av-testi blockquote { max-width: 760px; }
.av-testi-html { margin-top: 30px; text-align: center; }
.av-testi-html > :first-child { margin-top: 0; }
.av-sec-block h3 a { color: inherit; text-decoration: none; }
.av-sec-block h3 a:hover, .av-sec-block h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) { .av-testi::before { left: 20px; } }

/* New section: two blocks on the left (60%) and one tall image on the right (40%) */
.av-two60 { display: grid; grid-template-columns: var(--two-a, 3fr) var(--two-b, 2fr); gap: 28px; align-items: stretch; }
.av-two60.is-flip { grid-template-columns: var(--two-b, 2fr) var(--two-a, 3fr); }
.av-two60.is-flip .av-two60-blocks { order: 2; }
.av-two60.no-media { grid-template-columns: 1fr; }
.av-two60-blocks { display: grid; gap: 20px; align-content: start; }
.av-two60-card { display: flex; flex-direction: var(--ia-dir, row); gap: 20px; align-items: var(--ia-fx, flex-start); padding: 30px 30px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--av-line); box-shadow: var(--av-shadow); text-align: var(--ia-ta, left); }
.av-two60-ico { flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--av-navy-grad, linear-gradient(135deg, #0d2b84, #00104c)); color: var(--av-gold-light, #f6e589); }
.av-two60-ico svg { width: 28px; height: 28px; }
.av-two60-copy h3 { margin: 0 0 10px; font-size: 1.35rem; }
.av-two60-text > :last-child { margin-bottom: 0; }
.av-two60-text p { color: var(--av-muted); line-height: 1.6; }
.av-two60-copy .btn { margin-top: 16px; }
.av-two60-media { margin: 0; min-height: 360px; border-radius: 26px; overflow: hidden; box-shadow: var(--av-shadow-lg); }
.av-two60-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-ia-right .av-two60-card { flex-direction: row-reverse; text-align: right; }
@media (max-width: 900px) { .av-two60, .av-two60.is-flip { grid-template-columns: 1fr; } .av-two60.is-flip .av-two60-blocks { order: 0; } .av-two60-media { min-height: 240px; order: 2; } }

/* Linked cards on the homepage: the whole card is clickable */
.exc-card, .why-card { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--av-gold-light, #f6e589); outline-offset: 2px; }
.card-more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.9rem; color: var(--av-primary); }
.exc-card:hover .card-more, .why-card:hover .card-more { text-decoration: underline; text-underline-offset: 3px; }

.av-two60-media { position: sticky; top: 100px; align-self: start; height: 100%; max-height: 680px; min-height: 420px; }
.av-two60-tag { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(239, 186, 74, 0.2); color: #8a5a00; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.av-two60-card { position: relative; }
.av-two60-card.has-link:hover { transform: translateY(-3px); box-shadow: var(--av-shadow-lg); }
.av-two60-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.av-two60 .av-bullets { margin: 12px 0 0; text-align: left; }
@media (max-width: 900px) { .av-two60-media { position: static; min-height: 240px; height: 260px; } }
.av-two60-card.has-link h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.av-two60-card .btn { position: relative; z-index: 2; }


/* --------------------------------------------------------------------------
   24. Version 2.19: footer contact icons, jump-link targets, "On this page" side card
   -------------------------------------------------------------------------- */
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .fc-ico { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--av-gold-light, #f6e589); }
.footer-contact .fc-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact a { padding-top: 3px; }
[id][tabindex="-1"]:target { animation: av-target 1.6s ease; outline: none; }
section[id], div.av-home-block[id] { scroll-margin-top: 90px; }
@keyframes av-target { 0% { box-shadow: inset 0 0 0 3px rgba(239, 186, 74, 0.9); } 100% { box-shadow: inset 0 0 0 3px rgba(239, 186, 74, 0); } }
@media (prefers-reduced-motion: reduce) { [id][tabindex="-1"]:target { animation: none; } }

/* Testimonial link + small UX polish (v2.20) */
.av-testi { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.av-testi:hover { transform: translateY(-3px); box-shadow: var(--av-shadow-lg); }
.av-testi-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 0.92rem; color: var(--av-primary); text-decoration: none; }
.av-testi-link:hover, .av-testi-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .av-testi, .av-two60-card { transition: none; } .av-testi:hover { transform: none; } }

/* 26. 60/40 section: cards in a 2-column grid, icon or image on top. */
.av-two60-blocks.av-two60-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.av-two60-blocks.av-two60-cols-1 { grid-template-columns: 1fr; }
.av-two60-blocks .av-two60-card { flex-direction: column; align-items: center; text-align: center; padding: 26px 22px; gap: 14px; }
.av-two60-blocks .av-two60-copy { width: 100%; }
.av-ia-left .av-two60-blocks .av-two60-card { align-items: flex-start; text-align: left; }
.av-ia-right .av-two60-blocks .av-two60-card { align-items: flex-end; text-align: right; flex-direction: column; }
.av-two60-blocks .av-bullets { display: inline-block; text-align: left; }
.av-two60-pic { display: block; width: 100%; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--av-line); }
.av-two60-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-two60-copy h3 { font-size: calc(1.15rem * var(--hs-3, 1)); }
@media (max-width: 640px) { .av-two60-blocks.av-two60-cols-2 { grid-template-columns: 1fr; } }

/* Linked titles look exactly like plain titles (no size, colour or text change). */
h2 > a.card-link, h3 > a, h4 > a, .exc-card h3 a, .why-card h3 a, .av-two60-copy h3 a, .av-testi h3 a { font: inherit; color: inherit; letter-spacing: inherit; text-decoration: none; }

/* 27. Client Success: readable paragraphs, Read more, lead CTA. */
.av-stories { gap: 28px; }
.av-story { position: relative; gap: 14px; padding: 32px 30px 26px; border-radius: 24px; border-top: 4px solid var(--av-primary); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.av-story:hover { transform: translateY(-4px); box-shadow: var(--av-shadow-lg, 0 18px 44px rgba(0, 16, 76, 0.14)); }
.av-story h3 { font-size: calc(1.3rem * var(--hs-3, 1)); line-height: 1.3; }
.av-story-metrics { margin: 0; }
.av-story-metrics li { background: linear-gradient(135deg, var(--av-soft, #eef3ff), #fff); border: 1px solid var(--av-line, #e3e8f2); }
.av-story-body p { margin: 0 0 10px; flex: none; max-width: 62ch; font-size: 1rem; line-height: 1.7; color: var(--av-muted, #55627f); }
.av-story-body p:first-child { color: var(--av-ink, #0b1b4d); font-weight: 500; }
.av-story-body.is-js .av-story-full { display: none; }
.av-story-body.is-js.is-open .av-story-full { display: block; }
.av-story-body.is-js.is-open .av-story-short { display: none; }
.av-story-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--av-primary); font: inherit; font-weight: 800; cursor: pointer; }
.av-story-toggle::after { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--av-soft, #eef3ff); font-size: 0.9rem; line-height: 1; }
.av-story-toggle[aria-expanded="true"]::after { content: "\2212"; }
.av-story-toggle .t-less, .av-story-toggle[aria-expanded="true"] .t-more { display: none; }
.av-story-toggle[aria-expanded="true"] .t-less { display: inline; }
.av-story-toggle:focus-visible, .av-story-ask:focus-visible { outline: 3px solid var(--av-gold-light, #f6e589); outline-offset: 3px; }
.av-story-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--av-line, #e3e8f2); }
.av-story-ask { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--av-primary); color: #fff; font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.av-story-ask:hover { filter: brightness(1.1); }
@media (prefers-reduced-motion: reduce) { .av-story { transition: none; } .av-story:hover { transform: none; } }
.av-two60-blocks .av-bullets { display: block; width: fit-content; max-width: 100%; margin: 12px auto 0; }
.av-ia-left .av-two60-blocks .av-bullets { margin-left: 0; }
.av-ia-right .av-two60-blocks .av-bullets { margin-right: 0; }
.av-two60-blocks .av-two60-copy .btn { display: inline-block; }

/* 28. Panels per row (1 to 4). */
.panels.panels-cols-1 { grid-template-columns: minmax(0, 1fr); }
.panels.panels-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panels.panels-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panels.panels-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .panels.panels-cols-3, .panels.panels-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .panels.panels-cols { grid-template-columns: 1fr; } }

/* 29. Testimonials: alignment, bullets, bold, italic. */
.av-testi blockquote ul, .av-testi blockquote ol { margin: 0 0 10px; padding-left: 1.2em; text-align: left; }
.av-testi blockquote li { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.6; color: var(--av-text); }
.av-testi blockquote p + p { margin-top: 10px; }
.av-testi blockquote strong, .av-testi blockquote b { font-weight: 800; color: var(--av-ink); }
.av-testi blockquote a { color: var(--av-primary); text-decoration: underline; text-underline-offset: 2px; }
.av-testi.av-testi-al-left, .av-testi.av-testi-al-left blockquote { text-align: left; align-items: flex-start; }
.av-testi.av-testi-al-center, .av-testi.av-testi-al-center blockquote { text-align: center; }
.av-testi.av-testi-al-center { align-items: center; }
.av-testi.av-testi-al-center figcaption { justify-content: center; }
.av-testi.av-testi-al-center blockquote ul, .av-testi.av-testi-al-center blockquote ol { display: inline-block; }
.av-testi.av-testi-al-right, .av-testi.av-testi-al-right blockquote { text-align: right; }
.av-testi.av-testi-al-right { align-items: flex-end; }
.av-testi.av-testi-al-right figcaption { flex-direction: row-reverse; text-align: right; }
.av-testi.av-testi-al-right blockquote { padding-right: 0; padding-left: 34px; }
.av-testi.av-testi-al-right::before { right: auto; left: 20px; }
.av-testi.av-testi-al-center blockquote { padding: 30px 0 0; }

/* 30. Panels without a description: no empty gap under the title. */
.panels .panel.panel-no-text h3 { margin-bottom: 0; }
.panels .panel.panel-no-text .panel-stats { margin-top: 14px; padding-top: 14px; }
.panels .panel.panel-no-text .panel-link { margin-top: 18px; }

/* Panels: no tall empty space between the label row and the title on desktop and laptop. */
@media (min-width: 1181px) { .panels .panel-top { min-height: 0 !important; margin-bottom: 14px; } .panels .panel h3 { margin-top: 0; } }

/* 31. Footer: every column the same width on every screen. */
.footer-grid > div { min-width: 0; }
.footer-contact li, .footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
.footer-contact li > span:last-child, .footer-contact li > a { min-width: 0; flex: 1 1 auto; }
@media (min-width: 1021px) { .footer-grid, .footer-grid.has-contact { grid-template-columns: repeat(var(--fn, 4), minmax(0, 1fr)); gap: 36px; } }
@media (max-width: 1020px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; } }
@media (max-width: 640px) {
	.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 44px; }
	.footer-bottom .container { flex-direction: column; align-items: flex-start; }
	.footer-legal { gap: 6px 16px; }
}

/* 32. Sticky-note customer story. */
.av-notes { display: grid; gap: 34px 30px; grid-template-columns: minmax(0, 1fr); max-width: 900px; margin: 0 auto; }
.av-notes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.av-note-wrap { display: flex; align-items: flex-start; gap: 18px; }
.av-note { --paper: #fff4b8; --paper2: #ffe98a; position: relative; flex: 1 1 auto; min-width: 0; margin: 0; padding: 44px 40px 32px; border-radius: 4px 4px 4px 26px; background: linear-gradient(165deg, var(--paper), var(--paper2)); color: #3b2f0b; box-shadow: 0 2px 2px rgba(60, 40, 0, 0.12), 0 18px 34px -10px rgba(60, 40, 0, 0.35); transform: rotate(-0.8deg); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.av-note-c2 { --paper: #ddf3ff; --paper2: #b9e3fb; color: #0b2f45; transform: rotate(0.7deg); }
.av-note-c3 { --paper: #e3f8d8; --paper2: #c4eeac; color: #173b0b; transform: rotate(-0.4deg); }
.av-note:hover { transform: rotate(0deg) translateY(-3px); }
.av-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; background: linear-gradient(315deg, #f5f1e4 50%, rgba(0, 0, 0, 0.14) 50%); border-top-left-radius: 8px; box-shadow: -3px -3px 6px rgba(0, 0, 0, 0.08); }
.av-note-tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(0, 0, 0, 0.06); transform: rotate(-2deg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.av-note blockquote { margin: 0; font-size: 1.08rem; line-height: 1.75; }
.av-note blockquote p { margin: 0 0 12px; font-size: inherit; line-height: inherit; color: inherit; }
.av-note blockquote p:first-child { font-size: 1.22rem; font-weight: 700; }
.av-note blockquote ul, .av-note blockquote ol { margin: 0 0 12px; padding-left: 1.3em; }
.av-note blockquote li { margin: 0 0 6px; font-size: inherit; line-height: inherit; color: inherit; }
.av-note blockquote ul li::marker { color: #c07a00; font-size: 1.1em; }
.av-note blockquote strong, .av-note blockquote b { font-weight: 800; background: linear-gradient(transparent 62%, rgba(255, 200, 40, 0.55) 62%); color: inherit; }
.av-note blockquote a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.av-note figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(0, 0, 0, 0.25); }
.av-note figcaption strong { font-size: 1rem; }
.av-note figcaption span { font-size: 0.88rem; opacity: 0.8; }
.av-note-al-center { text-align: center; }
.av-note-al-center blockquote ul, .av-note-al-center blockquote ol { display: inline-block; text-align: left; }
.av-note-al-right { text-align: right; }
.av-note-al-right blockquote ul, .av-note-al-right blockquote ol { display: inline-block; text-align: left; }
.av-note-open { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 16px; border-radius: 999px; background: var(--av-primary); color: #fff; font-weight: 700; font-size: 0.92rem; text-decoration: none; box-shadow: var(--av-shadow, 0 8px 20px rgba(0, 16, 76, 0.18)); transition: transform 0.2s ease, filter 0.2s ease; }
.av-note-open i { font-style: normal; transition: transform 0.2s ease; }
.av-note-open:hover { filter: brightness(1.12); }
.av-note-open:hover i { transform: translateX(4px); }
.av-note-open:focus-visible { outline: 3px solid var(--av-gold-light, #f6e589); outline-offset: 3px; }
@media (max-width: 900px) { .av-notes-2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .av-note-wrap { flex-direction: column; } .av-note { padding: 38px 24px 28px; } .av-note-open { margin-top: 0; align-self: flex-start; } }
@media (prefers-reduced-motion: reduce) { .av-note, .av-note:hover { transform: none; transition: none; } }

/* Note: plain text by default (bold / italic only where chosen in the editor); no tape. */
.av-note blockquote p:first-child { font-size: inherit; font-weight: 400; }
.av-note blockquote strong, .av-note blockquote b { background: none; font-weight: 700; }
.av-note-tape { display: none; }
/* Short description styles. */
.section-head p.av-intro-large { font-size: 1.3rem; line-height: 1.5; }
.section-head p.av-intro-bold { font-weight: 700; }
.section-head p.av-intro-large_bold { font-size: 1.3rem; line-height: 1.5; font-weight: 700; }

/* Footer: the second column (Quick links) is 20% wide; the other columns share the rest equally (laptop and desktop). */
@media (min-width: 1021px) {
	.footer-grid.has-cols, .footer-grid.has-cols.has-contact { grid-template-columns: minmax(0, 1fr) 20% repeat(var(--fm, 1), minmax(0, 1fr)) minmax(0, 1.12fr); } /* last column about 2% wider */
	.footer-grid.has-cols3 { grid-template-columns: minmax(0, 1fr) 20% minmax(0, 1.12fr); }
}

/* Call-to-action band and the Talk to an expert page: content and button centred on every screen. */
.cta-band .cta-inner { align-items: center; text-align: center; }
.cta-band .cta-inner > div { text-align: center; }
.cta-band .cta-inner .btn { align-self: center; margin-inline: auto; }
.form-card form .btn, .form-card form button[type="submit"], .form-card form input[type="submit"] { display: flex; align-items: center; justify-content: center; margin-inline: auto; }
.demo-panel .btn { display: flex; margin-inline: auto; width: fit-content; }

/* Footer video band: content and button centred like the other call-to-action blocks, on every screen. */
.av-videoband-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.av-videoband h2, .av-videoband p { margin-left: auto; margin-right: auto; text-align: center; }
.av-videoband .btn { align-self: center; margin-inline: auto; }
.av-videoband-bg::after { background: linear-gradient(180deg, rgba(0, 16, 76, 0.55), rgba(0, 16, 76, 0.82)); }

/* --------------------------------------------------------------------------
   2.33: video strength, fixed inner-page hero height, no-animation fallback
   -------------------------------------------------------------------------- */
:root { --av-hero-vid-o: 1; --av-hero-overlay-o: 0.35; --av-footer-vid-o: 1; --av-hero-h: 420px; --av-hero-h-m: 300px; }

/* Homepage hero video: full strength, with a light navy overlay (35%) so the video shows clearly (Customize > 3. Videos). */
.hero .bg-video.is-playing, .hero .bg-video.is-poster { opacity: var(--av-hero-vid-o); }
.hero .hero-overlay { opacity: var(--av-hero-overlay-o); }
.hero.has-video h1, .hero.has-video .lead { text-shadow: 0 2px 20px rgba(0, 8, 44, 0.55); }

/* Footer and banner videos show more: stronger video, lighter overlays. */
.footer-stage .bg-video.is-playing, .footer-stage .bg-video.is-poster,
.av-videoband .bg-video.is-playing, .cta-band .bg-video.is-playing { opacity: var(--av-footer-vid-o); }
.footer-stage.has-video .stage-bg::after { background: linear-gradient(180deg, rgba(0, 16, 76, 0.16), rgba(0, 16, 76, 0.6)); }
.footer-stage.has-video .site-footer { background: rgba(0, 8, 44, 0.34); }
.av-videoband-bg::after, .cta-band .av-videoband-bg::after { background: linear-gradient(180deg, rgba(0, 16, 76, 0.26), rgba(0, 16, 76, 0.56)); }

/* A video the browser would not start (for example iPhone Low Power Mode) shows its poster picture instead of a blank box. */
.bg-video.is-poster { opacity: 0.65; }

/* Same header height on every inner page, service, solution, listing and post. */
.page-hero, .av-hero { display: flex; align-items: center; box-sizing: border-box; min-height: var(--av-hero-h); }
.page-hero > .container, .av-hero > .container, .av-hero > .av-hero-inner { width: 100%; }
.av-hero--banner, .av-hero--showcase { min-height: var(--av-hero-h); }
.av-hero--centered.has-image { align-items: flex-start; padding-top: 72px; }
.av-hero--minimal, .av-hero--compact { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 680px) {
	.page-hero, .av-hero, .av-hero--banner, .av-hero--showcase { min-height: var(--av-hero-h-m); }
	.page-hero { padding: 40px 0; }
	.av-hero--minimal, .av-hero--compact { padding-top: 36px; padding-bottom: 36px; }
}

/* Breadcrumb bar: the full trail (Home / Solutions / Name) wraps neatly on small screens. */
.breadcrumb-bar .breadcrumbs { row-gap: 4px; }
.breadcrumbs .current { overflow-wrap: anywhere; }

/* When the 3D hero animation cannot run (no 3D support, reduced motion, data saver, or it stopped), the animated
   phone / dashboard mockup is hidden and the hero copy is centred. JS adds .av-no-anim to <html>. */
.av-no-anim .stage3d { display: none; }
.av-no-anim .hero { padding: 80px 0 96px; }
.av-no-anim .hero-grid { grid-template-columns: minmax(0, 820px); justify-content: center; text-align: center; }
.av-no-anim .hero .btn-row, .av-no-anim .hero .chips { justify-content: center; }
.av-no-anim .hero .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 680px) {
	.av-no-anim .hero { padding: 56px 0 72px; }
}

/* --------------------------------------------------------------------------
   2.34: hero header panel. Hide parts per device, stretch, mobile bar panel.
   Breakpoint 767px: phones and small tablets = "mobile", everything wider = "desktop".
   -------------------------------------------------------------------------- */

/* Centre the hero content when the panel is made taller (Customize > 3. Videos > header panel height). */
.hero { display: flex; flex-direction: column; justify-content: center; }
.hero > .container { width: 100%; }

/* Hide on desktop. */
@media (min-width: 768px) {
	.hero.av-hd-eyebrow .hero-eyebrow,
	.hero.av-hd-text .hero-text,
	.hero.av-hd-btn1 .hero-btn1,
	.hero.av-hd-btn2 .hero-btn2,
	.hero.av-hd-chips .chips,
	.hero.av-hd-pause .video-toggle,
	.hero.av-hd-bars .stage3d { display: none; }
	.hero.av-hd-bars .hero-grid { grid-template-columns: minmax(0, 1fr); }
	.hero.av-hd-btn1.av-hd-btn2 .btn-row { display: none; }
	.hero-barpanel { display: none; }
}

/* Hide on mobile. */
@media (max-width: 767px) {
	.hero.av-hm-eyebrow .hero-eyebrow,
	.hero.av-hm-text .hero-text,
	.hero.av-hm-btn1 .hero-btn1,
	.hero.av-hm-btn2 .hero-btn2,
	.hero.av-hm-chips .chips,
	.hero.av-hm-pause .video-toggle,
	.hero.av-hm-bars .stage3d { display: none; }
	.hero.av-hm-btn1.av-hm-btn2 .btn-row { display: none; }
	/* The bar animation lives in its own panel under the header on phones. */
	.hero.av-bars-panel .stage3d { display: none; }
	.hero.av-bars-panel { padding-bottom: 56px; }
}

/* The mobile bar panel. */
.hero-barpanel { display: none; }
@media (max-width: 767px) {
	.hero-barpanel { display: block; position: relative; overflow: hidden; padding: 28px 0 calc(36px + env(safe-area-inset-bottom, 0px)); color: #fff; background: linear-gradient(135deg, #00104c 0%, #0a1f63 52%, #14297a 100%); }
	.hero-barpanel .container { padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px)); }
	.hero-barpanel .bp-card { box-sizing: border-box; width: 100%; padding: 20px 18px; border-radius: 22px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07)); border: 1px solid rgba(246, 229, 137, 0.4); box-shadow: 0 24px 50px rgba(0, 6, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
	.hero-barpanel .dash-head { margin-bottom: 16px; }
	.hero-barpanel .dash-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
	.hero-barpanel .dash-row { grid-template-columns: minmax(84px, 36%) minmax(0, 1fr); gap: 10px; font-size: 0.82rem; }
	.hero-barpanel .dash-bars { height: clamp(90px, 28vw, 130px); gap: clamp(6px, 2vw, 10px); margin-top: 16px; }
	.hero-barpanel .bp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-top: 14px; }
	.hero-barpanel .bp-stat { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.96); color: var(--av-ink); box-shadow: 0 14px 30px rgba(0, 6, 40, 0.35); }
	.hero-barpanel .bp-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.hero-barpanel .bp-stat .gicon { width: 36px; height: 36px; border-radius: 10px; }
	.hero-barpanel .bp-stat .gicon svg { width: 18px; height: 18px; }
	.hero-barpanel .bp-stat strong { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.1; }
	.hero-barpanel .bp-stat span:not(.gicon) { display: block; font-size: 0.74rem; font-weight: 600; color: var(--av-muted); overflow-wrap: anywhere; }

	/* The bars breathe one after another. */
	.hero-barpanel .dash-bars i { transform-origin: bottom; animation: av-bp-rise 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.14s); }
	.hero-barpanel .bar i { transform-origin: left; animation: av-bp-fill 3.6s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * 0.3s); }
}
@keyframes av-bp-rise { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
@keyframes av-bp-fill { from { transform: scaleX(0.5); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
	.hero-barpanel .dash-bars i, .hero-barpanel .bar i { animation: none; }
}

/* 2.34: homepage header text alignment, set separately for desktop and mobile (Customize > 4. Hero). */
.hero .hero-copy { text-align: left; }
.hero .hero-copy .btn-row, .hero .hero-copy .chips { justify-content: flex-start; }
.hero .hero-copy .lead { margin-left: 0; margin-right: 0; }
@media (min-width: 768px) {
	.hero.av-ad-center .hero-copy { text-align: center; }
	.hero.av-ad-center .hero-copy .btn-row, .hero.av-ad-center .hero-copy .chips { justify-content: center; }
	.hero.av-ad-center .hero-copy .lead { margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) {
	.hero.av-am-center .hero-copy { text-align: center; }
	.hero.av-am-center .hero-copy .btn-row, .hero.av-am-center .hero-copy .chips { justify-content: center; }
	.hero.av-am-center .hero-copy .lead { margin-left: auto; margin-right: auto; }
}

/* 2.34.2: with Left alignment the header text stays on the left in every case, including when the 3D animation is switched
   off (reduced motion, data saver), which used to centre the whole block. */
@media (min-width: 768px) {
	.av-no-anim .hero.av-ad-left .hero-grid { justify-content: start; text-align: left; }
}
@media (max-width: 767px) {
	.av-no-anim .hero.av-am-left .hero-grid { justify-content: start; text-align: left; }
}
