/* ==========================================================================
   HME homepage (templates/front-page.html). Everything scoped to .hme-home
   ========================================================================== */
.hme-home { margin-top: 0 !important; overflow-x: clip; }
.hme-home > * { margin-block: 0 !important; }
.hme-home p { margin-block: 0; }

.hme-home .hme-section-title {
	font-size: clamp(2rem, 3.2vw, 2.6rem);
	line-height: 1.12;
	margin: 0 0 .9rem;
	color: var(--wp--preset--color--olive-900);
}
.hme-home .hme-section-lead {
	font-style: italic;
	color: var(--wp--preset--color--muted);
	font-size: 1.0625rem;
}

/* Buttons */
.hme-home .hme-btn .wp-block-button__link {
	border-radius: 4px;
	padding: .85rem 1.6rem;
	font-size: .975rem; font-weight: 500;
	letter-spacing: .01em;
	display: inline-flex; align-items: center; gap: .65rem;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
	border: 1px solid transparent;
}
.hme-home .hme-btn--arrow .wp-block-button__link::after {
	content: "→"; font-family: var(--wp--preset--font-family--body);
	transition: transform .2s var(--hme-ease);
}
.hme-home .hme-btn--arrow .wp-block-button__link:hover::after { transform: translateX(3px); }
.hme-home .hme-btn--ghost .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--olive-900);
	border: 1px solid var(--wp--preset--color--olive-700);
}
.hme-home .hme-btn--ghost .wp-block-button__link:hover { background: var(--wp--preset--color--olive-700); color: #fff; }
.hme-home .hme-btn--gold .wp-block-button__link {
	background: var(--wp--preset--color--gold-light); color: var(--wp--preset--color--olive-900); font-weight: 600;
}
.hme-home .hme-btn--gold .wp-block-button__link:hover { background: #E3C684; }
.hme-home .hme-btn--phone .wp-block-button__link::before {
	content: ""; width: 18px; height: 18px;
	background: url(../img/ui-phone-dark.svg) center/contain no-repeat;
}
.hme-home .hme-btn--light .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--cream);
	border: 1px solid rgba(246,241,230,.55);
}
.hme-home .hme-btn--light .wp-block-button__link:hover { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--olive-900); }
.hme-home .hme-link-arrow {
	font-weight: 500; color: var(--wp--preset--color--olive-700);
	text-decoration: none; border-bottom: 1px solid var(--wp--preset--color--gold); padding-bottom: 2px;
}
.hme-home .hme-link-arrow::after { content: " →"; }
.hme-home .hme-link-arrow:hover { color: var(--hme-gold-text); }

/* ---------- Hero ----------
   Photo slot: assets/img/hero.jpg (optional). If missing, the gradient below shows. */
.hme-home .hme-hero {
	position: relative;
	isolation: isolate;
	background:
		linear-gradient(90deg, rgba(246,241,230,.97) 0%, rgba(246,241,230,.9) 34%, rgba(246,241,230,.35) 56%, rgba(246,241,230,0) 70%),
		url(../img/hero.jpg) 70% center / cover no-repeat,
		radial-gradient(60% 85% at 76% 58%, #FFFDF6 0%, #F4EBD5 42%, #E6D9B8 100%);
	padding-block: clamp(3rem, 6vw, 5rem) 0;
	overflow: hidden;
}
.hme-home .hme-hero::before {          /* decorative branch, top-left */
	content: ""; position: absolute; z-index: -1;
	left: -135px; top: -95px; width: 300px; height: 180px;
	background: url(../img/branch-large.svg) center/contain no-repeat;
	transform: rotate(-150deg) scaleY(-1); opacity: .4;
}
.hme-home .hme-hero::after {           /* decorative branch, top-right */
	content: ""; position: absolute; z-index: -1;
	right: -40px; top: -20px; width: 420px; height: 250px;
	background: url(../img/branch-large.svg) center/contain no-repeat;
	transform: rotate(-14deg) scaleX(-1); opacity: .7;
}
.hme-home .hme-hero__inner {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: end; gap: 2rem;
	min-height: 470px;
}
.hme-home .hme-hero__text { align-self: center; padding-bottom: clamp(3rem, 5vw, 4.5rem); max-width: 600px; }
.hme-home .hme-hero__title {
	font-size: clamp(2.4rem, 4.2vw, 3.7rem);
	line-height: 1.07;
	letter-spacing: -.005em;
	margin: 0 0 1.4rem;
}
.hme-home .hme-hero__lead {
	font-style: italic; font-size: 1.15rem; line-height: 1.6;
	color: #4E4A3C; max-width: 30rem; margin-bottom: 2.1rem;
}
.hme-home .hme-hero__actions { gap: 1rem; }

.hme-home .hme-hero__visual {
	position: relative; height: 100%; min-height: 470px;
	display: flex; align-items: flex-end; justify-content: center;
}
.hme-home .hme-hero__visual::before {  /* soft glow */
	content: ""; position: absolute; left: 50%; bottom: 8%; width: 420px; height: 420px;
	transform: translateX(-50%); border-radius: 50%;
	background: radial-gradient(circle, rgba(255,252,240,.95) 0%, rgba(255,250,235,.5) 45%, rgba(255,250,235,0) 70%);
}
.hme-home .hme-hero__visual::after {   /* stone ledge the bottles stand on */
	content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: min(440px, 92%); height: 44px;
	background: linear-gradient(180deg, #E2D4B2 0%, #D3C29A 100%);
	border-radius: 6px 6px 0 0;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.hme-home .hme-hero__bottle { margin: 0 !important; position: relative; z-index: 1; }
.hme-home .hme-hero__bottle img { display: block; height: auto; filter: drop-shadow(0 18px 18px rgba(46,58,27,.28)); }
.hme-home .hme-hero__bottle--main { width: 168px; margin-bottom: 30px !important; margin-left: -18px !important; }
.hme-home .hme-hero__bottle--main img { width: 100%; }
.hme-home .hme-hero__bottle--small { width: 104px; margin-bottom: 32px !important; }
.hme-home .hme-hero__bottle--small img { width: 100%; }

/* ---------- Featured products ---------- */
.hme-home .hme-featured { padding-block: clamp(3.5rem, 6vw, 5rem); }
.hme-home .hme-section-head { text-align: center; margin-bottom: 2.75rem !important; }
.hme-home .hme-section-head .hme-section-title { margin-bottom: .6rem; }
.hme-home .hme-featured__grid { margin-top: 0 !important; }
.hme-home .hme-featured__grid .wc-block-product-template { gap: 1.75rem !important; }
.hme-home .hme-featured__more { margin-top: 2.5rem !important; }

/* ---------- Story ----------
   Photo slot: assets/img/story.jpg (optional). Fallback: olive panel with the 5 L tin. */
.hme-home .hme-story {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, .62fr);
	background: var(--wp--preset--color--paper);
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.hme-home .hme-story__media {
	position: relative; min-height: 460px;
	background:
		url(../img/story.jpg) center / cover no-repeat,
		url(../img/tin-5l.webp) 50% 58% / auto 66% no-repeat,
		url(../img/branch-large.svg) -60px 6% / 360px auto no-repeat,
		radial-gradient(70% 70% at 50% 55%, #55642F 0%, #3F4D24 55%, #2E3A1B 100%);
}
.hme-home .hme-story__badge {
	position: absolute; left: 1.5rem; bottom: 1.5rem;
	background: rgba(46,58,27,.82); color: var(--wp--preset--color--cream);
	padding: .55rem .95rem; border-radius: 4px;
	font-size: .8125rem; font-style: italic; letter-spacing: .02em;
	backdrop-filter: blur(2px);
}
.hme-home .hme-story__badge span {
	font-style: normal; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
	font-size: .7rem; color: var(--wp--preset--color--gold-light); margin-right: .4rem;
}
.hme-home .hme-story__text {
	padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.75rem);
	align-self: center;
}
.hme-home .hme-story__text p:not(.hme-eyebrow) { color: #4E4A3C; margin-bottom: 1.9rem; max-width: 34rem; }
.hme-home .hme-story__aside {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 3rem 2rem 3rem 1rem;
}
.hme-home .hme-story__aside::before {
	content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--wp--preset--color--gold); opacity: .6;
}
.hme-home .hme-story__tree { margin: 0 0 .25rem !important; width: 100%; max-width: 230px; }
.hme-home .hme-story__tree img { width: 100%; height: auto; }
.hme-home .hme-story__since {
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic; font-size: 1.9rem; color: var(--wp--preset--color--olive-700);
	text-align: center; line-height: 1;
}

/* ---------- Feature strip ---------- */
.hme-home .hme-features { padding-block: 2.6rem; background: var(--wp--preset--color--cream); }
.hme-home .hme-features__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hme-home .hme-feature {
	display: grid; grid-template-columns: 52px 1fr; column-gap: 1rem; align-items: start;
	padding: .25rem 1.75rem;
	margin: 0 !important;
}
.hme-home .hme-feature + .hme-feature { border-left: 1px solid var(--wp--preset--color--line); }
.hme-home .hme-feature:first-child { padding-left: 0; }
.hme-home .hme-feature::before {
	content: ""; grid-row: 1 / span 2; width: 52px; height: 52px;
	background: var(--hme-icon) center/contain no-repeat;
}
.hme-home .hme-feature--harvest { --hme-icon: url(../img/icon-harvest.svg); }
.hme-home .hme-feature--drop    { --hme-icon: url(../img/icon-drop.svg); }
.hme-home .hme-feature--coast   { --hme-icon: url(../img/icon-coast.svg); }
.hme-home .hme-feature--stone   { --hme-icon: url(../img/icon-stone.svg); }
.hme-home .hme-feature h3 {
	font-size: 1.15rem; margin: 0 0 .3rem !important; color: var(--wp--preset--color--olive-900);
}
.hme-home .hme-feature p {
	font-size: .875rem; font-style: italic; line-height: 1.5; color: var(--wp--preset--color--muted); margin: 0 !important;
}

/* ---------- Recipes ---------- */
.hme-home .hme-recipes {
	padding-block: clamp(3.5rem, 6vw, 5rem);
	background: linear-gradient(180deg, #F1EADA 0%, var(--wp--preset--color--cream) 100%);
	border-top: 1px solid var(--wp--preset--color--line);
}
.hme-home .hme-recipes__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hme-home .hme-recipes__intro .hme-section-lead { margin-bottom: 1.8rem; }
.hme-home .hme-recipes__list { margin: 0 !important; }
.hme-home .hme-recipe-grid { gap: 1.5rem !important; margin: 0 !important; padding: 0; }
.hme-home .hme-recipe { margin: 0 !important; }
.hme-home .hme-recipe__media {
	aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
	box-shadow: 0 1px 2px rgba(46,58,27,.08), 0 10px 24px rgba(46,58,27,.10);
	background:
		url(../img/olive-branch-gold.svg) center / 46% auto no-repeat,
		radial-gradient(80% 90% at 50% 40%, #55642F 0%, #3F4D24 60%, #2E3A1B 100%);
	margin-bottom: 1rem !important;
}
.hme-home .hme-recipe__media .wp-block-post-featured-image { margin: 0; height: 100%; }
.hme-home .hme-recipe__media .wp-block-post-featured-image a,
.hme-home .hme-recipe__media .wp-block-post-featured-image img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s var(--hme-ease); }
.hme-home .hme-recipe:hover .hme-recipe__media img { transform: scale(1.04); }
.hme-home .hme-recipe__title { font-size: 1.15rem !important; margin: 0 0 .35rem !important; line-height: 1.3; }
.hme-home .hme-recipe__title a { color: var(--wp--preset--color--olive-900); text-decoration: none; }
.hme-home .hme-recipe__title a:hover { color: var(--wp--preset--color--olive-700); text-decoration: underline; text-decoration-color: var(--wp--preset--color--gold); text-underline-offset: 3px; }
.hme-home .hme-recipe__excerpt { margin: 0 !important; }
.hme-home .hme-recipe__excerpt p { font-size: .875rem; font-style: italic; color: var(--wp--preset--color--muted); line-height: 1.5; }
.hme-home .hme-recipe__excerpt .wp-block-post-excerpt__more-text { display: none; }

/* ---------- Trust strip ---------- */
.hme-home .hme-trust { background: var(--wp--preset--color--sand); padding-block: 1.6rem; }
.hme-home .hme-trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hme-home .hme-trust__item {
	display: grid; grid-template-columns: 30px 1fr; column-gap: .85rem; align-items: center;
	padding: .2rem 1.5rem; margin: 0 !important;
}
.hme-home .hme-trust__item + .hme-trust__item { border-left: 1px solid rgba(110,104,88,.25); }
.hme-home .hme-trust__item::before {
	content: ""; grid-row: 1 / span 2; width: 30px; height: 30px;
	background: var(--hme-icon) center/contain no-repeat;
}
.hme-home .hme-trust__item--ship { --hme-icon: url(../img/ui-truck.svg); }
.hme-home .hme-trust__item--pay  { --hme-icon: url(../img/ui-card.svg); }
.hme-home .hme-trust__item--home { --hme-icon: url(../img/ui-home.svg); }
.hme-home .hme-trust__item strong { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.05rem; color: var(--wp--preset--color--olive-900); }
.hme-home .hme-trust__item span { font-size: .8125rem; font-style: italic; color: #5E5848; }

/* ---------- Contact band ---------- */
.hme-home .hme-band {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--wp--preset--color--olive-900);
	color: var(--wp--preset--color--cream);
	padding-block: 2.6rem;
}
.hme-home .hme-band::before, .hme-home .hme-band::after {
	content: ""; position: absolute; z-index: -1; width: 260px; height: 160px; opacity: .35;
	background: url(../img/olive-branch-gold.svg) center/contain no-repeat;
}
.hme-home .hme-band::before { left: -60px; top: 50%; transform: translateY(-50%) rotate(-12deg); }
.hme-home .hme-band::after { right: -70px; top: 50%; transform: translateY(-50%) scaleX(-1) rotate(-12deg); }
.hme-home .hme-band__inner {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2.5rem;
}
.hme-home .hme-band__title {
	color: var(--wp--preset--color--cream); font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 0 !important;
	display: flex; align-items: center; gap: 1rem;
}
.hme-home .hme-band__title::before {
	content: ""; width: 40px; height: 40px; flex: none;
	background: var(--wp--preset--color--gold-light);
	-webkit-mask: url(../img/ui-phone.svg) center/contain no-repeat; mask: url(../img/ui-phone.svg) center/contain no-repeat;
}
.hme-home .hme-band__text {
	font-style: italic; color: rgba(246,241,230,.88); padding-left: 2.5rem; border-left: 1px solid rgba(214,181,110,.45);
	max-width: 30rem;
}
.hme-home .hme-band__actions { gap: .85rem; flex-wrap: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hme-home .hme-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hme-home .hme-story__aside { display: none; }
	.hme-home .hme-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
	.hme-home .hme-feature:nth-child(3) { border-left: 0; padding-left: 0; }
	.hme-home .hme-band__inner { grid-template-columns: minmax(0, 1fr) auto; }
	.hme-home .hme-band__text { display: none; }
}
@media (max-width: 899px) {
	.hme-home .hme-hero {
		background:
			linear-gradient(180deg, rgba(246,241,230,.96) 0%, rgba(246,241,230,.85) 48%, rgba(246,241,230,0) 75%),
			url(../img/hero.jpg) 70% center / cover no-repeat,
			radial-gradient(90% 60% at 50% 80%, #FFFDF6 0%, #F4EBD5 45%, #E6D9B8 100%);
		padding-top: 2.75rem;
	}
	.hme-home .hme-hero::before { display: none; }
	.hme-home .hme-hero__text .hme-eyebrow { text-align: center; }
	.hme-home .hme-hero::after { width: 260px; height: 160px; right: -60px; top: auto; bottom: 230px; opacity: .55; }
	.hme-home .hme-hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 1rem; }
	.hme-home .hme-hero__text { padding-bottom: 0; text-align: center; margin-inline: auto; }
	.hme-home .hme-hero__lead { margin-inline: auto; font-size: 1.05rem; }
	.hme-home .hme-hero__actions { justify-content: center; }
	.hme-home .hme-hero__visual { min-height: 330px; }
	.hme-home .hme-hero__visual::before { width: 320px; height: 320px; }
	.hme-home .hme-hero__bottle--main { width: 118px; margin-bottom: 26px !important; }
	.hme-home .hme-hero__bottle--small { width: 74px; margin-bottom: 28px !important; }
	.hme-home .hme-hero__visual::after { height: 36px; width: min(320px, 86%); }

	.hme-home .hme-story { grid-template-columns: 1fr; }
	.hme-home .hme-story__media { min-height: 320px; }
	.hme-home .hme-story__text { padding: 2.75rem var(--wp--style--root--padding-left, 1.25rem); }

	.hme-home .hme-recipes__inner { grid-template-columns: 1fr; }
	.hme-home .hme-recipe-grid { grid-template-columns: 1fr !important; }
	.hme-home .hme-recipe { display: grid; grid-template-columns: 128px 1fr; column-gap: 1rem; align-items: center; }
	.hme-home .hme-recipe__media { grid-row: 1 / span 2; margin: 0 !important; }
	.hme-home .hme-recipe__title { align-self: end; }
	.hme-home .hme-recipe__excerpt { align-self: start; }

	.hme-home .hme-trust__grid { grid-template-columns: 1fr; row-gap: 1rem; }
	.hme-home .hme-trust__item { padding: 0; border-left: 0 !important; }

	.hme-home .hme-band__inner { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
	.hme-home .hme-band__title { justify-content: center; }
	.hme-home .hme-band::before, .hme-home .hme-band::after { opacity: .16; }
	.hme-home .hme-band__actions { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 600px) {
	.hme-home .hme-features__grid { grid-template-columns: 1fr; row-gap: 1.4rem; }
	.hme-home .hme-feature { border-left: 0 !important; padding: 0; }
	.hme-home .hme-feature + .hme-feature { padding-top: 1.4rem; border-top: 1px solid var(--wp--preset--color--line); }
	.hme-home .hme-hero__actions .wp-block-button { flex: 1 1 auto; }
	.hme-home .hme-hero__actions .wp-block-button__link { width: 100%; justify-content: center; }
	.hme-home .hme-band__title { font-size: 1.6rem; flex-direction: column; gap: .7rem; }
	.hme-home .hme-band__title::before { width: 30px; height: 30px; }
}

/* Guard against global .hme-eyebrow rules in other area stylesheets */
.hme-home .hme-eyebrow { display: block; color: var(--hme-gold-text) !important; font-size: .75rem; margin: 0 0 .9rem; }
.hme-home .hme-eyebrow--lined { display: flex; justify-content: center; }
.hme-home .hme-band .hme-eyebrow { color: var(--wp--preset--color--gold-light) !important; }
