/* [navian_hero_banner]: see inc/wpbakery/hero-banner.php. Uses brand.css. */

/* The row holding the banner: no section padding, banner goes edge to edge. */
.vc_row.navian-hero-row,
section.navian-hero-row {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.navian-hero-row .row {
	margin-left: 0;
	margin-right: 0;
}

.navian-hero-row .wpb_column,
.navian-hero-row .vc_column-inner,
.navian-hero-row .wpb_wrapper {
	padding: 0;
}

.navian-hero-row .wpb_column {
	margin-bottom: 0;
}

/*
 * Navian's .nav-container forms its own stacking context, so its nav's
 * z-index:999 can't rise above a positioned banner later in the page.
 * Lift the container itself, only on pages that use the hero.
 */
body:has(.navian-hero) .nav-container {
	position: relative;
	z-index: 1000;
}

.navian-hero {
	--navian-hero-header-offset: 80px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	background-color: var(--navian-brand-dark, #0a0b10);
	color: var(--navian-brand-light, #fff);
	isolation: isolate;
}

.navian-hero--height-medium { min-height: 560px; }
.navian-hero--height-large  { min-height: 720px; }
.navian-hero--height-full   { min-height: 100vh; }

.navian-hero--header-offset {
	padding-top: var(--navian-hero-header-offset);
}

/* Layers: background → overlay → decor → content. */
.navian-hero__bg,
.navian-hero__overlay,
.navian-hero__decor {
	position: absolute;
	top: 0;
	bottom: 0;
	pointer-events: none;
}

.navian-hero__bg {
	left: 0;
	right: 0;
	z-index: -3;
	background-size: cover;
	background-repeat: no-repeat;
}

.navian-hero__overlay {
	left: 0;
	right: 0;
	z-index: -2;
	opacity: var(--navian-hero-overlay, 0.7);
}

.navian-hero--overlay-solid .navian-hero__overlay {
	background: var(--navian-brand-dark, #0a0b10);
}

.navian-hero--overlay-gradient .navian-hero__overlay {
	background: linear-gradient(90deg,
		var(--navian-brand-dark, #0a0b10) 0%,
		var(--navian-brand-dark, #0a0b10) 35%,
		color-mix(in srgb, var(--navian-brand-dark, #0a0b10) 55%, transparent) 65%,
		transparent 100%);
}

.navian-hero--overlay-gradient.navian-hero--align-center .navian-hero__overlay {
	background: var(--navian-brand-dark, #0a0b10);
}

/* No image yet: a subtle brand glow so the banner isn't flat black. */
.navian-hero:not(.navian-hero--has-bg)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -3;
	background: radial-gradient(ellipse 60% 90% at 85% 50%,
		color-mix(in srgb, var(--navian-brand-primary, #1a3cff) 35%, transparent) 0%,
		transparent 70%);
}

/*
 * Decor layer: box, tint mask and offsets come from the shared module
 * (styles/decor.css, .navian-decor). Only layering lives here.
 */
.navian-hero__decor {
	z-index: -1;
}

/* Content. */
.navian-hero__inner {
	position: relative;
	padding-top: 64px;
	padding-bottom: 64px;
}

.navian-hero__content {
	max-width: 860px;
}

.navian-hero--align-center .navian-hero__content {
	margin: 0 auto;
	text-align: center;
}

.navian-hero--align-center .navian-accent-bar {
	margin-left: auto;
	margin-right: auto;
}

.navian-hero__eyebrow {
	font-family: var(--navian-brand-font-body, inherit);
	margin: 0 0 12px;
	color: var(--navian-brand-light, #fff);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.navian-hero .navian-hero__title {
	margin: 0;
	color: var(--navian-brand-light, #fff);
	font-family: var(--navian-brand-font-display, inherit);
	font-size: clamp(38px, 5vw, 72px);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.navian-hero .navian-accent-bar {
	margin-top: 28px;
	margin-bottom: 24px;
}

.navian-hero__subtitle {
	max-width: 560px;
	color: var(--navian-brand-text-on-dark-muted);
	font-size: 18px;
	line-height: 1.5;
}

.navian-hero--align-center .navian-hero__subtitle {
	margin-left: auto;
	margin-right: auto;
}

.navian-hero__subtitle p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.navian-hero__subtitle p + p {
	margin-top: 12px;
}

.navian-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
}

.navian-hero--align-center .navian-hero__buttons {
	justify-content: center;
}

/* No accent bar: keep spacing between title and subtitle. */
.navian-hero__title + .navian-hero__subtitle {
	margin-top: 24px;
}

@media (max-width: 767px) {
	.navian-hero--height-medium,
	.navian-hero--height-large {
		min-height: 480px;
	}

	.navian-hero--overlay-gradient .navian-hero__overlay {
		background: var(--navian-brand-dark, #0a0b10);
	}

	.navian-hero__decor {
		width: 70% !important;
		/* Multiply, so the editor's opacity choice still applies; phones get 60% of it. */
		opacity: calc(var(--navian-decor-opacity, 1) * 0.6);
	}

	.navian-hero__subtitle {
		font-size: 16px;
	}
}

/* Blog headers (index, archives, search, single): blue eyebrow per the blog mockup. */
.navian-hero--blog .navian-hero__eyebrow {
	color: var(--navian-brand-primary, #1a3cff);
}

/* Single post header: long titles, date line. */
.navian-hero--single .navian-hero__title { font-size: clamp(30px, 3.8vw, 54px); max-width: 900px; line-height: 1.02; overflow-wrap: anywhere; }
.navian-hero--single .navian-hero__subtitle { max-width: 900px; }
.navian-hero__meta { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); font-size: 16px; }
/* wp_kses_post strips inline SVG from the banner subtitle, so the calendar icon is a CSS mask of the same artwork. */
.navian-hero__meta-icon { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--navian-cal) center / contain no-repeat; mask: var(--navian-cal) center / contain no-repeat; --navian-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='1.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.navian-hero__sub-text { display: block; margin: 0 0 10px; }
