/*
 * Application category hero (dincel_resource.application_hero): a full-width
 * section above the existing application header on /applications/<category>.
 * Fonts are the theme's own (RobotoCondensed / Roboto); colours from
 * theme_dincel/static/src/scss/_variables.scss.
 */

.app-hero {
	--app-hero-red: #dc1415;            /* $Dincel-Red */
	--app-hero-red-hover: #b01011;
	--app-hero-text: #2b2a2a;
	--app-hero-border: #eaeaea;         /* $Dincel-SearchGrey */
	--app-hero-white: #ffffff;

	width: 100%;
	padding: 32px 0;
	border-bottom: 1px solid var(--app-hero-border);
}

.app-hero .app-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--app-hero-red);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* overrides the theme's red 1.25rem h2 */
.app-hero .app-hero__title {
	margin: 0 0 20px;
	padding: 0;
	color: #000;
	font-family: RobotoCondensed, Arial, sans-serif;
	font-size: 2.25rem;
	font-weight: bold;
	line-height: 1.15;
	text-transform: uppercase;
}

.app-hero .app-hero__body p {
	margin: 0 0 12px;
	color: var(--app-hero-text);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.app-hero .app-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.app-hero .app-hero__btn {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--app-hero-red);
	border-radius: 2px;
	font-size: 0.8125rem;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

/* ↗ after the label */
.app-hero .app-hero__btn::after {
	content: "\2197";
	margin-left: 10px;
	font-size: 0.75rem;
}

.app-hero .app-hero__btn--primary {
	background-color: var(--app-hero-red);
	color: var(--app-hero-white);
}

.app-hero .app-hero__btn--primary:hover {
	background-color: var(--app-hero-red-hover);
	border-color: var(--app-hero-red-hover);
	color: var(--app-hero-white);
}

.app-hero .app-hero__btn--secondary {
	background-color: var(--app-hero-white);
	color: var(--app-hero-red);
}

.app-hero .app-hero__btn--secondary:hover {
	background-color: var(--app-hero-red);
	color: var(--app-hero-white);
}

.app-hero .app-hero__btn:focus-visible {
	outline: 2px solid var(--app-hero-red);
	outline-offset: 2px;
}

/* inline variant: heading at the top of a page column (estimate page) - no band,
   no divider; the page already provides the container */
.app-hero.app-hero--inline {
	padding: 0 0 8px;
	border-bottom: 0;
}

.app-hero--inline .app-hero__body p {
	margin-bottom: 8px;
}

@media (max-width: 767px) {
	.app-hero {
		padding: 24px 0;
	}

	.app-hero .app-hero__title {
		font-size: 1.75rem;
	}

	.app-hero .app-hero__btn {
		flex: 1 1 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.app-hero .app-hero__btn {
		transition: none;
	}
}
