/* ============================================================
   Onyoda — homepage sections
   Reconciled to the finalized Shopify sections (.liquid defaults +
   templates/index.json overrides). Uses theme.json design tokens.
   ============================================================ */

/* ---------- 1. Hero (scheme-2: espresso ground) ---------- */
.ony-hero {
	position: relative;
	height: 88vh;
	min-height: 640px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--wp--preset--color--espresso);
}
.ony-hero__media,
.ony-hero__media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.ony-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	pointer-events: none;
}
.ony-hero__copy {
	position: relative;
	max-width: 840px;
	padding: 0 24px;
	text-align: center;
}
.ony-hero__h {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 84px;
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--cream);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.ony-hero__sub {
	margin: 22px 0 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 17px;
	font-weight: 300;
	letter-spacing: 0.05em;
	color: rgba(245, 240, 234, 0.85);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.ony-hero__buttons {
	justify-content: center;
	margin-top: 42px;
}
.ony-hero__cta .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--espresso);
	border: 1px solid var(--wp--preset--color--gold);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: none;
	padding: 18px 40px;
	transition: background 0.4s ease, color 0.4s ease, letter-spacing 0.4s ease;
}
.ony-hero__cta .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--gold);
	letter-spacing: 0.14em;
}

/* ---------- 2. Brand intro (scheme-1: cream) ---------- */
.ony-brand-intro {
	padding: 140px 24px;
	text-align: center;
}
.ony-brand-intro__text {
	max-width: 880px;
	margin: 0 auto;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 300;
	font-size: 36px;
	line-height: 1.42;
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--sienna);
	text-wrap: balance;
}

/* ---------- 3. Category showcase (scheme-1: cream) — bare tile grid, no header ---------- */
.ony-cats {
	max-width: 1500px;
	margin: 0 auto;
	padding: 28px 56px 108px;
}
.ony-cats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.ony-cat {
	position: relative;
	display: block;
	height: 620px;
	overflow: hidden;
	text-decoration: none;
}
.ony-cat__media {
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--beige-tile);
}
.ony-cat__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ony-cat:hover .ony-cat__img {
	transform: scale(1.05);
}
.ony-cat__placeholder {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(45deg, #e8ded2, #e8ded2 14px, #ddd0bf 14px, #ddd0bf 28px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ony-cat__placeholder span {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(126, 73, 3, 0.45);
}
.ony-cat__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}
.ony-cat__label {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 34px 30px;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 30px;
	font-weight: 400;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--cream);
}

/* ---------- 4. Featured products (scheme-1: cream) ---------- */
.ony-fp {
	max-width: 1500px;
	margin: 0 auto;
	padding: 60px 56px 120px;
}
.ony-fp__head {
	text-align: center;
	margin-bottom: 64px;
}
.ony-fp__eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.ony-fp__title {
	margin: 14px 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 46px;
	color: var(--wp--preset--color--sienna);
}
.ony-fp__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 22px;
	align-items: start;
}
/* Bespoke featured tiles: fixed height, image 80% / name+price row 20%. */
.ony-featured-tile {
	display: block;
	text-decoration: none;
	color: inherit;
}
.ony-featured-tile--large {
	grid-column: span 3;
	height: 600px;
}
.ony-featured-tile--medium {
	grid-column: span 2;
	height: 480px;
}
.ony-featured-tile--feature {
	grid-column: 2 / 6;
	height: 540px;
}
.ony-featured-tile__media {
	position: relative;
	height: 80%;
	background: var(--wp--preset--color--beige-tile);
	overflow: hidden;
}
.ony-featured-tile__img,
.ony-featured-tile__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.ony-featured-tile__img {
	transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ony-featured-tile:hover .ony-featured-tile__img {
	transform: scale(1.04);
}
.ony-featured-tile__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(45deg, #e8ded2, #e8ded2 12px, #ddd0bf 12px, #ddd0bf 24px);
}
.ony-featured-tile__placeholder span {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(126, 73, 3, 0.35);
}
.ony-featured-tile__row {
	height: 20%;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 22px 4px 0;
}
.ony-featured-tile__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 25px;
	line-height: 1.1;
	color: var(--wp--preset--color--sienna);
}
.ony-featured-tile__price {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--deep-text);
	white-space: nowrap;
}
.ony-fp__mood {
	grid-column: span 3;
	height: 600px;
	position: relative;
	background: var(--wp--preset--color--espresso);
	overflow: hidden;
}
/* Lifestyle / mood image (design "2nd position") behind the copy. */
.ony-fp__mood-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.ony-fp__mood:hover .ony-fp__mood-img {
	transform: scale(1.04);
}
.ony-fp__mood-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}
.ony-fp__mood-copy {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	padding: 34px 32px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 28px;
	font-weight: 300;
	line-height: 1.25;
	color: var(--wp--preset--color--cream);
}

/* ---------- 5. Ingredient story (scheme-2: espresso copy panel, image left) ---------- */
.ony-ingred {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}
/* Zero the block-gap margin WordPress injects on the 2nd grid child (the copy
   panel), which otherwise offsets it 24px down and leaves the image taller. */
.ony-ingred > * {
	margin-block: 0;
}
.ony-ingred__img {
	position: relative;
	min-height: 680px;
	background: var(--wp--preset--color--beige-tile);
	overflow: hidden;
}
.ony-ingred__img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ony-ingred__placeholder,
.ony-founder__placeholder {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(45deg, #e8ded2, #e8ded2 14px, #ddd0bf 14px, #ddd0bf 28px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ony-ingred__placeholder span,
.ony-founder__placeholder span {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(126, 73, 3, 0.4);
}
.ony-ingred__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--cream);
	padding: 110px 96px;
}
.ony-ingred__eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.ony-ingred__h {
	margin: 24px 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 300;
	font-size: 52px;
	line-height: 1.12;
	color: var(--wp--preset--color--cream);
	/* Cap the measure so the heading holds its two-line wrap on wide monitors
	   (uncapped it stretches to one line past ~2200px). */
	max-width: 780px;
}
.ony-ingred__body {
	margin: 30px 0 0;
	max-width: 420px;
}
.ony-ingred__body p {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15.5px;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(245, 240, 234, 0.78);
}
.ony-ingred__body p + p {
	margin-top: 14px;
}
/* WordPress's constrained layout adds `margin-inline: auto !important` to these
   children, centering the narrower ones (eyebrow, body). Pin them flush-left to
   match Shopify so the text block sits at the panel's padding edge. !important
   is required to beat core's own !important (scoped selector, not a global). */
.ony-ingred .ony-ingred__copy > *,
.ony-founder .ony-founder__copy > * {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* ---------- 6. Founder story (scheme-1: cream, contained; text left, image right) ---------- */
.ony-founder {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 80px;
	padding-block: 140px;
	padding-inline: max(56px, calc((100% - 1500px) / 2));
}
.ony-founder__copy {
	padding-left: 24px;
}
.ony-founder__eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.ony-founder__h {
	margin: 22px 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 48px;
	line-height: 1.14;
	color: var(--wp--preset--color--sienna);
}
.ony-founder__body {
	margin: 28px 0 0;
	max-width: 460px;
}
.ony-founder__body p {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15.5px;
	font-weight: 300;
	line-height: 1.78;
	color: var(--wp--preset--color--deep-text);
}
.ony-founder__body p + p {
	margin-top: 14px;
}
.ony-founder__link {
	margin: 36px 0 0;
}
.ony-founder__link a {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--sienna);
	text-decoration: none;
}
.ony-founder__link a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.ony-founder__img {
	position: relative;
	/* Width follows the grid column; aspect-ratio then derives the height (a
	   square). Explicit width:100% is required so the ratio can't run the other
	   way — with only a min-height set, 1:1 would derive the *width* from the
	   height and overflow narrow columns (see the mobile block: no min-height). */
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--wp--preset--color--beige-tile);
	overflow: hidden;
}
.ony-founder__img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- 7. Newsletter (scheme-1: cream) ---------- */
.ony-news {
	padding: 28px 24px 148px;
	text-align: center;
}
.ony-news__h {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 300;
	font-size: 46px;
	color: var(--wp--preset--color--sienna);
}
.ony-news__desc {
	margin: 18px 0 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	font-weight: 300;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--deep-text);
}
.ony-news__form {
	margin: 42px auto 0;
	max-width: 480px;
	display: flex;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sienna) 28%, transparent);
}
.ony-news__input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	padding: 14px 4px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--deep-text);
}
.ony-news__input::placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--deep-text) 55%, transparent);
}
.ony-news__submit {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0 6px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.ony-news__submit:hover {
	opacity: 0.7;
}
.ony-news__success {
	margin: 20px 0 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	color: var(--wp--preset--color--deep-text);
}
.ony-news__error {
	margin: 20px 0 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	color: var(--wp--preset--color--gold);
}

/* ---------- Responsive (Shopify breakpoints: 880 stack, 560 hero) ---------- */
@media (max-width: 880px) {
	.ony-hero__h {
		font-size: 54px;
	}
	.ony-brand-intro {
		padding: 91px 24px;
	}
	.ony-brand-intro__text {
		font-size: 26px;
	}
	.ony-cats {
		padding: 28px 24px 76px;
	}
	.ony-cats__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.ony-cat {
		height: 440px;
	}
	.ony-fp {
		padding: 42px 24px 84px;
	}
	.ony-fp__title {
		font-size: 36px;
	}
	.ony-fp__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.ony-featured-tile--large,
	.ony-featured-tile--medium,
	.ony-featured-tile--feature,
	.ony-fp__mood {
		grid-column: auto;
		height: 440px;
	}
	.ony-ingred {
		grid-template-columns: 1fr;
	}
	.ony-ingred__img {
		min-height: 440px;
		order: -1;
	}
	.ony-ingred__copy {
		padding: 60px 28px;
	}
	.ony-ingred__h {
		font-size: 38px;
	}
	.ony-founder {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-block: 98px;
		padding-inline: 24px;
	}
	.ony-founder__copy {
		padding-left: 0;
		order: 2;
	}
	.ony-founder__img {
		order: 1;
	}
	.ony-founder__h {
		font-size: 36px;
	}
	.ony-news {
		padding: 28px 24px 104px;
	}
	.ony-news__h {
		font-size: 36px;
	}
}
@media (max-width: 560px) {
	.ony-hero__h {
		font-size: 42px;
	}
}
