/**
 * Homepage hero — flush to viewport top; header overlays it.
 */

/* Zero clearance on front page */
body.home {
	margin: 0;
	padding: 0;
	background-color: #fff;
}

body.home #page.site {
	margin-block-start: 0;
	padding-block-start: var(--onoff-gap-lg);
	background-color: #fff;
}

/* Header floats above hero (DOM order: header → hero) */
.home .site-header--over-hero {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: 100;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

body.admin-bar.home .site-header--over-hero {
	inset-block-start: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.home .site-header--over-hero {
		inset-block-start: 46px;
	}
}

/* Readable nav on photo background */
.home .site-header--over-hero .site-title a,
.home .site-header--over-hero .main-navigation a {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.home .site-header--over-hero .site-title a:hover {
	color: #fff;
	opacity: 0.9;
}

.home .site-header--over-hero .main-navigation a:hover,
.home .site-header--over-hero .main-navigation a:focus-visible,
.home .site-header--over-hero .main-navigation .current-menu-item > a,
.home .site-header--over-hero .main-navigation .current-menu-ancestor > a,
.home .site-header--over-hero .main-navigation .current_page_item > a {
	color: var(--onoff-color-nav-active);
	text-shadow: none;
}

.home .site-header--over-hero .nav-toggle {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.home .site-header--over-hero .header-utilities__link {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.home .site-header--over-hero .header-utilities__link:hover,
.home .site-header--over-hero .header-utilities__link:focus-visible {
	color: var(--onoff-color-nav-active);
	text-shadow: none;
}

.home .site-header--over-hero .main-navigation.is-open {
	background: var(--onoff-color-surface);
	border-block-end: 1px solid var(--onoff-color-border);
	box-shadow: var(--onoff-shadow);
}

.home .site-header--over-hero .main-navigation.is-open a {
	color: var(--onoff-color-text);
	text-shadow: none;
}

.home .site-header--over-hero .main-navigation.is-open a:hover,
.home .site-header--over-hero .main-navigation.is-open .current-menu-item > a {
	color: var(--onoff-color-nav-active);
}

.hero {
	--hero-aspect-ratio: 1152 / 600;
	--hero-shape-ratio: 1152 / 48;
	--hero-gradient: linear-gradient(
		135deg,
		#7c6f5f 0%,
		#796c5d 7.69%,
		#776a5a 15.38%,
		#746758 23.08%,
		#716556 30.77%,
		#6f6254 38.46%,
		#6c6051 46.15%,
		#695e4f 53.85%,
		#675b4d 61.54%,
		#64594b 69.23%,
		#625649 76.92%,
		#5f5446 84.62%,
		#5d5144 92.31%,
		#5a4f42 100%
	);

	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	aspect-ratio: var(--hero-aspect-ratio);
	background: var(--hero-gradient);
	overflow: hidden;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: 5;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	opacity: 0.4;
	pointer-events: none;
}

.hero__glow {
	position: absolute;
	z-index: 8;
	border-radius: 50%;
	background: #f2fb04;
	pointer-events: none;
}

/* Figma: 64×64 at top 40px, inset-inline-end 80px on 1152px canvas */
.hero__glow--tr {
	width: clamp(2.5rem, 5.56vw, 4rem);
	height: clamp(2.5rem, 5.56vw, 4rem);
	inset-block-start: 6.67%;
	inset-inline-end: 6.94%;
	opacity: 0.2;
	filter: blur(24px);
}

/* Figma: 96×96 at top 424px, inset-inline-start 128px on 1152px canvas */
.hero__glow--bl {
	width: clamp(3.5rem, 8.33vw, 6rem);
	height: clamp(3.5rem, 8.33vw, 6rem);
	inset-block-start: 70.67%;
	inset-inline-start: 11.11%;
	opacity: 0.15;
	filter: blur(40px);
}

/* Decorative wave — bottom of hero, full width, height scales with width; above overlay */
.hero__shape {
	position: absolute;
	inset-block-end: -1px;
	inset-inline: 0;
	z-index: 30;
	width: 100%;
	margin: 0;
	padding: 0;
	aspect-ratio: var(--hero-shape-ratio);
	pointer-events: none;
	line-height: 0;
}

.hero__shape-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hero__inner {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	max-width: var(--onoff-container, 1200px);
	height: 100%;
	margin-inline: auto;
	padding: 0 32px;
	padding-block-start: calc(var(--onoff-header-height) + 24px);
}

.hero__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
	text-align: start;
}

.hero__title {
	margin: 0;
	font-family: var(--onoff-font-family);
	font-size: clamp(2.25rem, 4.5vw, 60px);
	font-style: normal;
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: 0;
	color: #fff;
	white-space: nowrap;
}

.hero__title-accent {
	color: #f2fb04;
}

.hero__description {
	margin: 0;
	max-width: 42rem;
	font-family: var(--onoff-font-family);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.625;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 16px;
	margin-block-start: 0;
}

.hero__button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	height: 60px;
	padding-inline: 34px;
	padding-block: 0;
	font-family: var(--onoff-font-family);
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 9999px;
	transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.hero__button--1 {
	color: #ffffff;
	background-color: #ffffff33;
	border: 1.6px solid #ffffff66;
}

.hero__button--1:hover,
.hero__button--1:focus-visible {
	color: #ffffff;
	background-color: #ffffff4d;
	border-color: #ffffff99;
}

.hero__button--2 {
	color: #262415;
	background-color: #f2fb04;
	border: 1.6px solid #f2fb04;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.hero__button--2:hover,
.hero__button--2:focus-visible {
	color: #262415;
	background-color: #e6ec04;
	border-color: #e6ec04;
}

/* xlg and up: 120% of base hero typography (lg and below keep base sizes) */
@media (min-width: 1280px) {
	.hero__container {
		gap: 2.5rem;
	}

	.hero__title {
		font-size: 72px;
	}

	.hero__description {
		font-size: 24px;
		line-height: 1.625;
	}
}

@media (max-width: 899px) {
	.hero__inner {
		align-items: flex-end;
		justify-content: flex-start;
		padding-block-start: calc(var(--onoff-header-height) + 3rem);
		padding-block-end: 2rem;
	}

	.hero__description {
		display: none;
	}

	.hero__container {
		align-items: flex-start;
		gap: 1.25rem;
		width: 100%;
		text-align: right;
	}

	.hero__title {
		font-size: clamp(1.8rem, 3.6vw, 48px);
		width: 100%;
		text-align: right;
		white-space: normal;
	}

	.hero__actions {
		justify-content: flex-start;
		width: 100%;
		gap: 10px;
	}

	.hero__button {
		height: 38px;
		padding-inline: 22px;
		font-size: 10px;
		line-height: 15px;
	}

	[dir='ltr'] .hero__inner {
		justify-content: flex-end;
	}

	[dir='ltr'] .hero__container {
		align-items: flex-end;
	}

	[dir='ltr'] .hero__actions {
		justify-content: flex-end;
	}
}

body.admin-bar.home .hero__inner {
	padding-block-start: calc(var(--onoff-header-height) + var(--onoff-gutter) + 32px);
}

@media screen and (max-width: 899px) {
	body.admin-bar.home .hero__inner {
		padding-block-start: calc(var(--onoff-header-height) + 3.5rem);
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar.home .hero__inner {
		padding-block-start: calc(var(--onoff-header-height) + 4rem);
	}
}

.site-main--front {
	padding-block-start: var(--onoff-gap-lg);
}

.home .skip-link:focus {
	z-index: 200;
}
