/**
 * ===================================================================
 * Front-page hero overlay
 *
 * Name, positioning line, and two CTAs laid over the RevSlider video.
 * Markup: decibel_child_home_hero_overlay() (appended to the_content).
 * Loaded only on is_front_page() via decibel_child_enqueue_home_styles().
 *
 * NB: the theme sets html { font-size: 10px }, so 1rem = 10px here.
 * ===================================================================
 */

/* .page-entry-content wraps the slider markup and is the overlay's
 * positioning context. It sits in a narrow (~750px) centred content
 * column while the slider itself is broken out to full viewport width,
 * so the overlay does the same 100vw breakout to line up with the video.
 * This file only loads on the front page. */
.page-entry-content {
	position: relative;
}

.home-hero-overlay {
	position: absolute;
	top: 0;
	left: 50%;
	width: 100vw;
	height: 100vh; /* viewport, not 100% of .page-entry-content - that grows once the body sections below are appended */
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	align-items: flex-end;
	pointer-events: none;
}

/* Scrim: bottom-weighted for text legibility, plus a left wash to anchor
 * the lower-left content over the bright drum head in the footage. */
.home-hero-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(15, 12, 10, 0.28) 0%, rgba(15, 12, 10, 0.04) 30%, rgba(15, 12, 10, 0.42) 68%, rgba(15, 12, 10, 0.72) 84%, rgba(15, 12, 10, 0.88) 100%),
		linear-gradient(90deg, rgba(15, 12, 10, 0.64) 0%, rgba(15, 12, 10, 0.18) 48%, rgba(15, 12, 10, 0) 72%);
}

.home-hero-overlay__inner {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px 10vh;
	color: #fff;
}

/* Ancestor prefix so text-transform beats the theme's
 * `h1:not(.wvc-bigtext) { text-transform: none }`. */
.home-hero-overlay .home-hero-overlay__name {
	margin: 0;
	font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.02;
	font-size: clamp(4rem, 8.5vw, 8rem);
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.home-hero-overlay__line {
	margin: 1.4rem 0 0;
	max-width: 34ch;
	font-size: clamp(1.5rem, 1.9vw, 1.8rem);
	line-height: 1.5;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.home-hero-overlay__cta {
	margin-top: 2.6rem;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.home-hero-btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
	font-size: 1.4rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	text-decoration: none;
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.75);
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.home-hero-btn:hover,
.home-hero-btn:focus-visible {
	background: #fff;
	color: #14100e;
	border-color: #fff;
}

.home-hero-btn--primary {
	background: #fff;
	color: #14100e;
	border-color: #fff;
}

.home-hero-btn--primary:hover,
.home-hero-btn--primary:focus-visible {
	background: #c74735;
	border-color: #c74735;
	color: #fff;
}

.home-hero-btn:focus-visible {
	outline: 3px solid #c74735;
	outline-offset: 3px;
}

/* One quiet entrance, honoured only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
	.home-hero-overlay__name,
	.home-hero-overlay__line,
	.home-hero-overlay__cta {
		animation: home-hero-rise .8s cubic-bezier(.2, .7, .2, 1) both;
	}

	.home-hero-overlay__line {
		animation-delay: .08s;
	}

	.home-hero-overlay__cta {
		animation-delay: .16s;
	}
}

@keyframes home-hero-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 640px) {
	.home-hero-overlay__inner {
		padding: 0 20px 12vh;
	}

	.home-hero-btn {
		flex: 1 1 auto;
	}
}


/**
 * ===================================================================
 * Front-page body sections (below the hero)
 *
 * Appended inside .page-entry-content (a narrow ~750px centred column),
 * so each section breaks out to full viewport width the same way the
 * slider and overlay do, then re-constrains its inner content.
 * ===================================================================
 */

.home-section {
	position: relative;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background: #f7f6f4;
	color: #1a1a1a;
	padding-block: clamp(5rem, 8vw, 9rem);
}

.home-section__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
}

.home-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
	margin-bottom: clamp(2.4rem, 4vw, 3.6rem);
}

.home-section__title {
	margin: 0;
	font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: clamp(2.6rem, 4vw, 3.6rem);
}

.home-section__more {
	font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 1.4rem;
	color: #c74735;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	transition: color .2s ease;
}

.home-section__more:hover,
.home-section__more:focus-visible {
	color: #1a1a1a;
}

.home-featured__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.6rem, 3vw, 3rem);
}

/* Ancestor prefix to beat the theme's `.page-entry-content li { list-style: disc }`. */
.home-featured .home-featured__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-featured__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.home-featured__cover {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #e7e3dd;
}

.home-featured__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.33, .02, 0, .94);
}

.home-featured__link:hover .home-featured__cover img,
.home-featured__link:focus-visible .home-featured__cover img {
	transform: scale(1.045);
}

.home-featured__title {
	display: block;
	margin-top: 1.4rem;
	font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(1.7rem, 2vw, 2rem);
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: color .2s ease;
}

.home-featured__link:hover .home-featured__title,
.home-featured__link:focus-visible .home-featured__title {
	color: #c74735;
}

.home-featured__by {
	display: block;
	margin-top: .4rem;
	font-size: 1.35rem;
	color: rgba(26, 26, 26, .62);
}

.home-featured__link:focus-visible {
	outline: 3px solid #c74735;
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.home-featured__cover img {
		transition: none;
	}
}

@media (max-width: 860px) {
	.home-featured__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.home-featured__grid {
		grid-template-columns: 1fr;
	}

	.home-section__inner {
		padding: 0 20px;
	}
}
