/* [navian_section_header]: see inc/wpbakery/section-header.php. Uses brand.css. */

.navian-section-header {
	--nsh-text: var(--navian-brand-dark, #0a0b10);
	--nsh-body: #4a4d57;
	--nsh-line: #d9dce3;
	display: block;
}
.navian-section-header--dark {
	--nsh-text: var(--navian-brand-light, #fff);
	--nsh-body: rgba(255, 255, 255, 0.85);
	--nsh-line: rgba(255, 255, 255, 0.3);
}
.navian-section-header--mb-none   { margin-bottom: 0; }
.navian-section-header--mb-small  { margin-bottom: 24px; }
.navian-section-header--mb-medium { margin-bottom: 48px; }
.navian-section-header--mb-large  { margin-bottom: 80px; }

.navian-section-header .navian-eyebrow { margin-bottom: 14px; }
.navian-section-header--dark .navian-eyebrow { color: var(--navian-brand-light, #fff); }

.navian-section-header .navian-section-header__heading {
	margin: 0;
	color: var(--nsh-text);
	font-family: var(--navian-brand-font-display, inherit);
	font-size: clamp(32px, 4vw, 56px);
	font-weight: 800;
	line-height: 1.05;
}
.navian-section-header__bar { margin-top: 22px; }

.navian-section-header__text {
	color: var(--nsh-body);
	font-size: 17px;
	line-height: 1.65;
	max-width: 40em;
}
.navian-section-header__text p { margin: 0 0 1em; color: inherit; }
.navian-section-header__text p:last-child { margin-bottom: 0; }

/* Stacked / centred */
.navian-section-header--stacked .navian-section-header__text,
.navian-section-header--centred .navian-section-header__text { margin-top: 22px; }
.navian-section-header--centred { text-align: center; }
.navian-section-header--centred .navian-section-header__bar { margin-left: auto; margin-right: auto; }
.navian-section-header--centred .navian-section-header__text { margin-left: auto; margin-right: auto; }

/* Split */
.navian-section-header--split {
	display: grid;
	grid-template-columns: 45% 1fr;
	align-items: center;
	column-gap: clamp(24px, 4vw, 64px);
}
.navian-section-header--split.navian-section-header--has-divider {
	grid-template-columns: 45% 1px 1fr;
}
.navian-section-header--has-divider::before {
	content: "";
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	height: 70%;
	min-height: 60px;
	background: var(--nsh-line);
}
.navian-section-header--has-divider .navian-section-header__head { grid-column: 1; grid-row: 1; }
.navian-section-header--has-divider .navian-section-header__text { grid-column: 3; grid-row: 1; }

@media (max-width: 767px) {
	.navian-section-header--split,
	.navian-section-header--split.navian-section-header--has-divider {
		display: block;
	}
	.navian-section-header--has-divider::before { display: none; }
	.navian-section-header--split .navian-section-header__text { margin-top: 20px; }
}

/* Icon beside heading and dark band (only rendered with the --wrap class). */
.navian-section-header--wrap { display: block; }
.navian-section-header__wrap { display: flex; align-items: center; }
.navian-section-header__body { flex: 1 1 0; min-width: 0; }
.navian-section-header--has-icon .navian-section-header__icon { flex: 0 0 auto; }
.navian-section-header__icon-img {
	display: block;
	width: auto;
	height: clamp(64px, 8vw, 104px);
	max-width: 160px;
	object-fit: contain;
}
.navian-section-header__icon-divider {
	flex: 0 0 1px;
	align-self: stretch;
	margin: 0 32px;
	background: var(--nsh-line);
}

/* Dark band: row is stretch_row with class navian-band-row (padding zeroed here). */
.vc_row.navian-band-row,
section.navian-band-row {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
.navian-band-row .row { margin-left: 0; margin-right: 0; }
.navian-band-row .wpb_column,
.navian-band-row .vc_column-inner,
.navian-band-row .wpb_wrapper { padding: 0; margin-bottom: 0; }

.navian-section-header--band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin-bottom: 0;
	padding: 40px 0;
	background-color: var(--navian-brand-dark, #0a0b10);
	color: var(--navian-brand-light, #fff);
}
.navian-section-header--band .navian-section-header__wrap { position: relative; }
.navian-section-header--band .navian-section-header__heading { text-transform: uppercase; }
.navian-section-header--band .navian-section-header__text { max-width: none; font-size: 16px; color: rgba(255, 255, 255, 0.9); }
.navian-section-header--band.navian-section-header--dark { --nsh-line: rgba(255, 255, 255, 0.6); }
.navian-section-header__decor { z-index: -1; }

/* Centred + icon: the group is centred as one unit, text stays left-aligned beside the divider. */
.navian-section-header--has-icon .navian-section-header__wrap:has(> .navian-section-header--centred) { justify-content: center; }
.navian-section-header__body.navian-section-header--centred {
	flex: 0 1 auto;
	max-width: 60ch;
	text-align: left;
}
.navian-section-header__body.navian-section-header--centred .navian-section-header__bar,
.navian-section-header__body.navian-section-header--centred .navian-section-header__text { margin-left: 0; margin-right: 0; }
.navian-section-header__body.navian-section-header--centred .navian-section-header__text { margin-top: 22px; }

@media (max-width: 767px) {
	.navian-section-header__body.navian-section-header--centred { text-align: center; max-width: none; }
	.navian-section-header__body.navian-section-header--centred .navian-section-header__bar,
	.navian-section-header__body.navian-section-header--centred .navian-section-header__text { margin-left: auto; margin-right: auto; }
	.navian-section-header__icon-img { margin: 0 auto; }
	.navian-section-header--band { padding: 32px 0; }
	.navian-section-header__decor { display: none; }
	.navian-section-header__icon-img { height: 64px; }
	.navian-section-header__wrap { flex-wrap: wrap; }
	.navian-section-header__icon { flex: 0 0 100%; margin-bottom: 20px; }
	.navian-section-header__icon-divider { display: none; }
	.navian-section-header__body { flex: 1 1 100%; }
}

.navian-section-header__highlight {
	color: var(--navian-brand-primary, #1a3cff);
}

/* Opt-in (el_class): heading column sizes to its longest line instead of 45%, so a three-line heading doesn't wrap. */
@media (min-width: 768px) {
	.navian-section-header--split.navian-section-header--has-divider.navian-section-header--head-fit {
		grid-template-columns: max-content 1px 1fr;
	}
}

/* Font icon beside the heading (Themify class via the "icon" param). */
.navian-section-header--has-icon .navian-section-header__icon .navian-section-header__icon-font {
	display: block;
	font-size: clamp(48px, 5vw, 72px);
	line-height: 1;
	color: var(--navian-brand-primary, #1a3cff);
}
/* Half-width columns at 768-1024 are too narrow for icon + divider beside the text: stack the font icon above, as on mobile. */
@media (max-width: 1024px) {
	.navian-section-header__wrap:has(.navian-section-header__icon-font) { flex-wrap: wrap; }
	.navian-section-header__wrap:has(.navian-section-header__icon-font) .navian-section-header__icon { flex: 0 0 100%; margin-bottom: 20px; }
	.navian-section-header__wrap:has(.navian-section-header__icon-font) .navian-section-header__icon-divider { display: none; }
	.navian-section-header__wrap:has(.navian-section-header__icon-font) .navian-section-header__body { flex: 1 1 100%; }
}

/* Font-icon variant, desktop: icon aligned with the heading, short clear separator the height of the icon. */
@media (min-width: 1025px) {
	.navian-section-header__wrap:has(.navian-section-header__icon-font) {
		--nsh-icon-size: clamp(48px, 5vw, 72px);
		align-items: flex-start;
	}
	.navian-section-header__wrap:has(.navian-section-header__icon-font) .navian-section-header__icon { margin-top: 4px; }
	.navian-section-header__wrap:has(.navian-section-header__icon-font) .navian-section-header__icon-divider {
		align-self: flex-start;
		flex: 0 0 2px;
		height: var(--nsh-icon-size);
		margin-top: 4px;
		background: #c4c6cf;
	}
}
