/* ==========================================================================
   PAGE TITLE BAR  [decode_page_title]
   The home hero's little brother: same photo tint, heading and orange double
   rule, with the header overlaying the top, but shallower and with no buttons.
   Markup: mu-plugins/decode-components/decode-page-title.php
   ========================================================================== */

.dc-ptb {
	--dc-accent: var(--fl-global-orange, #f7961e);
	--dc-navy: var(--fl-global-navy, #04213b);
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: min(var(--dc-ptb-h, 460px), 86vh);
	min-height: min(var(--dc-ptb-h, 460px), 86svh);
	background: var(--dc-navy);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.dc-ptb, .dc-ptb * { box-sizing: border-box; }

/* The row holding the bar runs edge to edge, whatever the row is set to */
.fl-builder-content .fl-row:has(.dc-ptb) > .fl-row-content-wrap { padding: 0; margin: 0; }
.fl-builder-content .fl-row:has(.dc-ptb) .fl-row-content { max-width: none; }
.fl-builder-content .fl-row:has(.dc-ptb) .fl-col-content,
.fl-builder-content .fl-row:has(.dc-ptb) .fl-module-content { margin: 0; padding: 0; }

/* The header overlays the bar: see-through until the page scrolls or a menu opens */
body:has(.dc-ptb) header.fl-builder-content[data-type="header"] { height: 0; }
body:has(.dc-ptb) #dc-nav:not(.is-scrolled):not(.is-mega-open) { background: transparent; }
body:has(.dc-ptb) #dc-nav:not(.is-scrolled):not(.is-mega-open) .dc-nav__menu > li > a { text-shadow: 0 1px 10px rgba(0,0,0,.55); }

/* Photo */
.dc-ptb__media { position: absolute; inset: 0; z-index: -2; background: var(--dc-navy); }
.dc-ptb .dc-ptb__img {
	display: block;
	width: 100%; height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

/* Tint: the hero's wash, plus a little extra at the top for the menu and at
   the bottom so the heading always reads */
.dc-ptb::before {
	content: '';
	position: absolute; inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(2,24,39,.5) 0%, rgba(2,24,39,0) 34%),
		linear-gradient(0deg, rgba(2,24,39,.62) 0%, rgba(2,24,39,0) 62%),
		linear-gradient(90deg, rgba(2,24,39,.62) 0%, rgba(2,24,39,.22) 58%, rgba(2,24,39,0) 100%),
		rgba(2,24,39,var(--dc-ptb-tint, .33));
}

/* Copy sits on the bottom edge, on the same grid as the hero */
.dc-ptb__body {
	flex: 1;
	display: flex;
	align-items: flex-end;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 150px 20px 60px;
}
.dc-ptb__copy { max-width: 760px; }
.dc-ptb--long .dc-ptb__copy { max-width: 820px; }
.dc-ptb--xlong .dc-ptb__copy { max-width: 900px; }

.dc-ptb .dc-ptb__eyebrow {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
	margin: 0 0 18px;
	font-family: "Manrope", sans-serif;
	font-size: 13px; font-weight: 600; line-height: 1.4;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--dc-accent);
}
.dc-ptb .dc-ptb__eyebrow a { color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s ease; }
.dc-ptb .dc-ptb__eyebrow a:hover,
.dc-ptb .dc-ptb__eyebrow a:focus-visible { color: #fff; text-decoration: none; }
.dc-ptb__sep { color: rgba(255,255,255,.45); }

.dc-ptb .dc-ptb__heading,
.fl-builder-content .dc-ptb h1.dc-ptb__heading {
	margin: 0;
	color: #fff;
	font-size: clamp(42px, 5.4vw, 72px);
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	text-wrap: balance;
	text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
/* Longer headings step down so they never crowd the bar */
.dc-ptb.dc-ptb--long .dc-ptb__heading,
.fl-builder-content .dc-ptb.dc-ptb--long h1.dc-ptb__heading { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; }
.dc-ptb.dc-ptb--xlong .dc-ptb__heading,
.fl-builder-content .dc-ptb.dc-ptb--xlong h1.dc-ptb__heading { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; }

.dc-ptb__rule {
	display: block;
	width: 96px; height: 9px;
	margin: 22px 0 0;
	border-top: 2px solid var(--dc-accent);
	border-bottom: 2px solid var(--dc-accent);
}
.dc-ptb .dc-ptb__sub {
	margin: 22px 0 0;
	max-width: 560px;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.55;
	color: rgba(255,255,255,.9);
}

/* The copy settles in once on load, as the hero's does */
@media (prefers-reduced-motion: no-preference) {
	.dc-ptb__eyebrow, .dc-ptb__heading, .dc-ptb__sub { animation: dc-ptb-in .9s cubic-bezier(.2, .65, .2, 1) both; }
	.dc-ptb__heading { animation-delay: .08s; }
	.dc-ptb__sub { animation-delay: .26s; }
	.dc-ptb__rule { transform-origin: left center; animation: dc-ptb-rule .9s cubic-bezier(.2, .65, .2, 1) .2s both; }
}
@keyframes dc-ptb-in {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: none; }
}
@keyframes dc-ptb-rule {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@media (max-width: 1000px) {
	.dc-ptb__body { padding-top: 130px; padding-bottom: 48px; }
}
@media (max-width: 767px) {
	.dc-ptb { min-height: min(360px, 86svh); }
	.dc-ptb__body { padding: 116px 22px 36px; }
	.dc-ptb .dc-ptb__eyebrow { margin-bottom: 14px; font-size: 12px; letter-spacing: .22em; }
	.dc-ptb.dc-ptb--long .dc-ptb__heading { font-size: 34px; }
	.dc-ptb.dc-ptb--xlong .dc-ptb__heading { font-size: 28px; }
	.dc-ptb__rule { margin-top: 18px; }
	.dc-ptb .dc-ptb__sub { margin-top: 18px; }
}
