/**
 * Intelliguard canonical hero — additive styles.
 *
 * These rules EXTEND the base `.ig-hero` block already shipped in
 * assets/css/widgets.css (brand tokens, .ig-hero, .ig-hero__bg/__img/__overlay,
 * .ig-hero__ribbon*, .ig-hero__inner, .ig-hero__content, .ig-hero__eyebrow,
 * .ig-hero__heading, .ig-hero__sub, .ig-hero__actions, plus .ig-btn* and
 * .ig-container). Nothing here overrides the default (image-background) look
 * used by the homepage — it only adds the new variant / decoration pieces.
 *
 * All new selectors are `ig-hero`-prefixed. Brand tokens (--ig-navy, --ig-gold,
 * --ig-teal, …) are inherited from the .ig-hero wrapper defined in widgets.css.
 *
 * See notes.md ("Base CSS") for the widgets.css rules that could later be
 * consolidated here — none need removing for the current pages to render.
 */

/* =========================================================================
   Heading highlight + trademark
   ========================================================================= */
.ig-hero__highlight {
	color: var(--ig-gold);
}

.ig-hero__heading em {
	font-style: normal;
	color: var(--ig-gold);
}

/* =========================================================================
   Alignment modifiers (image-background: home=left, Careers=center)
   ========================================================================= */
.ig-hero__inner--center {
	padding-left: 2rem;
	padding-right: 2rem;
	text-align: center;
}

.ig-hero__inner--center .ig-hero__content {
	margin-left: auto;
	margin-right: auto;
}

.ig-hero__inner--center .ig-hero__actions {
	justify-content: center;
}

/* =========================================================================
   Centered variant (Capsa / Events / Resources / Purchasing)
   ========================================================================= */
.ig-hero--centered {
	min-height: auto;
}

.ig-hero--centered .ig-hero__inner {
	padding-top: 5rem;
	padding-bottom: 5rem;
	padding-left: 2rem;
	padding-right: 2rem;
	text-align: center;
}

.ig-hero--centered .ig-hero__content {
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
}

.ig-hero--centered .ig-hero__actions {
	justify-content: center;
}

/* Text pill badge (Purchasing). */
.ig-hero__badge-text {
	display: inline-block;
	margin-bottom: 1.25rem;
	padding: 0.4rem 1rem;
	border-radius: 9999px;
	background: rgba(245, 176, 65, 0.15);
	color: var(--ig-gold-light);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* =========================================================================
   Feature callouts (Purchasing)
   ========================================================================= */
.ig-hero__features {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem 2.5rem;
	margin-top: 2rem;
}

.ig-hero__feature {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ig-hero__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
}

.ig-hero__feature-icon--gold {
	color: var(--ig-gold);
}

.ig-hero__feature-icon--teal {
	color: var(--ig-teal-light);
}

/* =========================================================================
   Decorations — solid navy fill, blur blobs, grid overlay
   ========================================================================= */
.ig-hero__bg-navy {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(135deg, var(--ig-navy) 0%, hsl(225 60% 12%) 100%);
}

.ig-hero__blobs {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.ig-hero__blob {
	position: absolute;
	width: 26rem;
	height: 26rem;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.25;
}

.ig-hero__blob--gold {
	top: -6rem;
	left: -6rem;
	background: var(--ig-gold);
}

.ig-hero__blob--teal {
	bottom: -8rem;
	right: -6rem;
	background: var(--ig-teal);
}

.ig-hero__grid-overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* =========================================================================
   Split variants — two column grid + side image
   ========================================================================= */
.ig-hero--split-image,
.ig-hero--split-form {
	min-height: auto;
}

.ig-hero--split-image .ig-hero__inner,
.ig-hero--split-form .ig-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 5rem;
	padding-bottom: 5rem;
	padding-left: 2rem;
	padding-right: 2rem;
}

.ig-hero__grid {
	display: grid;
	/* minmax(0, 1fr): plain 1fr's implied min-width:auto lets the side image's
	   intrinsic width force the grid (and the whole hero) wider than small
	   viewports — clipped both sides on phones. */
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	align-items: center;
}

@media (min-width: 992px) {
	.ig-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.ig-hero__grid--form {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.ig-hero--split-image .ig-hero__content,
.ig-hero--split-form .ig-hero__content {
	max-width: none;
}

.ig-hero__media {
	display: flex;
	justify-content: center;
}

.ig-hero__side-img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 1rem;
}

.ig-hero__note {
	font-style: italic;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
}

/* Glass icon badge (MiraPrep flask). */
.ig-hero__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 1.5rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: var(--ig-gold);
	font-size: 1.5rem;
}

.ig-hero__badge-icon svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

/* =========================================================================
   Split-form — quick contact links + demo form (Contact)
   ========================================================================= */
.ig-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 2rem;
}

.ig-hero__link {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
}

.ig-hero__link:hover {
	color: var(--ig-gold-light);
}

.ig-hero__link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--ig-gold);
}

.ig-hero__link-icon svg {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
}

.ig-hero__form-wrap {
	background: #fff;
	border-radius: 1.25rem;
	padding: 2rem;
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

.ig-hero-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ig-hero-form__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ig-navy);
	margin: 0 0 0.5rem;
}

.ig-hero-form__note {
	font-size: 0.9375rem;
	color: var(--ig-muted-foreground);
	margin: 0;
}

.ig-hero-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.ig-hero-form__field,
.ig-hero-form__select,
.ig-hero-form__textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--ig-border);
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--ig-foreground);
	background: #fff;
}

.ig-hero-form__field:focus,
.ig-hero-form__select:focus,
.ig-hero-form__textarea:focus {
	outline: 2px solid var(--ig-teal);
	outline-offset: 1px;
	border-color: var(--ig-teal);
}

.ig-hero-form__textarea {
	resize: vertical;
	min-height: 6rem;
}

.ig-hero-form__submit {
	margin-top: 0.5rem;
	padding: 0.875rem 2rem;
	border: none;
	border-radius: 9999px;
	background: var(--ig-gold);
	color: var(--ig-navy);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ig-hero-form__submit:hover {
	background: var(--ig-gold-light);
}

/* =========================================================================
   With-search variant (FAQ)
   ========================================================================= */
.ig-hero__search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 34rem;
	margin: 2rem auto 0;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 9999px;
	padding: 0.25rem 0.5rem 0.25rem 1rem;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.ig-hero__search-icon {
	width: 1.25rem;
	height: 1.25rem;
	color: rgba(255, 255, 255, 0.6);
	flex: none;
}

.ig-hero__search-input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: #fff;
	font-size: 1rem;
	font-family: inherit;
	padding: 0.75rem 0.75rem;
}

.ig-hero__search-input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.ig-hero__search-clear {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: none;
	border-radius: 9999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	flex: none;
}

.ig-hero__search-clear svg {
	width: 1.1rem;
	height: 1.1rem;
}

.ig-hero__search.is-filled .ig-hero__search-clear {
	display: inline-flex;
}

/* =========================================================================
   Typing headline (Careers)
   ========================================================================= */
.ig-hero__heading-lead {
	display: block;
}

.ig-hero__typed-line {
	display: block;
	min-height: 1.2em;
	color: var(--ig-gold);
}

.ig-hero__cursor {
	display: inline-block;
	width: 2px;
	height: 1em;
	margin-left: 2px;
	vertical-align: text-bottom;
	background: currentColor;
	animation: ig-hero-caret 1s steps(1) infinite;
}

@keyframes ig-hero-caret {
	0%, 50% { opacity: 1; }
	50.01%, 100% { opacity: 0; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 767px) {
	.ig-hero-form__row {
		grid-template-columns: 1fr;
	}

	.ig-hero__features {
		gap: 1rem 1.5rem;
	}
}

/* Respect reduced-motion preferences (matches widgets.css convention). */
@media (prefers-reduced-motion: reduce) {
	.ig-hero__cursor {
		animation: none;
	}
}

/* Side image: never wider than its column (Elementor's img reset can't be relied
   on during intrinsic sizing), and keep natural ratio. */
.ig-hero__media .ig-hero__side-img { max-width: 100%; width: auto; height: auto; }
