/* ==========================================================================
   Homepage V3 — bridges Cheese Club toward BonApp's "Fresh & Airy" world.
   Tokens mirror BonApp's --ba-* values (Nexus assets/css/app.css) so the two
   stores read as one grocer. Scoped under .hv3.
   ========================================================================== */

.hv3 {
	--leaf: #1f8a4c;
	--leaf-deep: #176e3c;
	--leaf-soft: #e4f3e9;
	--ink: #1c1f1a;
	--mute: #6b7168;
	--line: #ecede8;
	--well: #f3f4f1;
	--paper: #fff;
	--radius: 1.25rem;
	--radius-sm: 0.9rem;
	--float: 0 6px 18px -8px rgb(0 0 0 / 0.35);
	--display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
	--body: 'Figtree', 'Avenir Next', system-ui, sans-serif;

	/* Rhythm: tight inside a group, generous between chapters. */
	--gap-tight: 1rem;
	--gap-section: 3rem;

	width: min(1200px, 100% - 2rem);
	margin: 0 auto;
	padding: 1rem 0 var(--gap-section);
	font-family: var(--body);
	color: var(--ink);
	display: flex;
	flex-direction: column;
	gap: var(--gap-section);
}

.hv3 *,
.hv3 *::before,
.hv3 *::after {
	box-sizing: border-box;
}

.hv3 ::selection {
	background: var(--leaf-soft);
	color: var(--ink);
}

.hv3 a:focus-visible,
.hv3 button:focus-visible {
	outline: 2px solid var(--leaf);
	outline-offset: 3px;
}

/* The opening group (chips, the month, the doors) sits tight together. */
.hv3 > .hv3-month,
.hv3 > .hv3-doors {
	margin-top: calc(var(--gap-tight) - var(--gap-section));
}

/* ---------- Shared controls ---------- */

.hv3 .hv3-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	padding: 0.75rem 1.2rem;
	border-radius: 999px;
	background: var(--leaf);
	color: #fff !important;
	font-family: var(--body);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.12s ease;
}

.hv3 .hv3-btn:hover {
	background: var(--leaf-deep);
}

.hv3 .hv3-btn:active {
	transform: scale(0.98);
}

.hv3 .hv3-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--leaf);
	font-weight: 700;
}

.hv3 .hv3-link svg,
.hv3 .hv3-btn svg {
	width: 1.05em;
	height: 1.05em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.15s ease;
}

/* ---------- Aisles: round photo chips ---------- */

/* Desktop browses through the photo menu (cc-extensions mega menu), which
   shows above 1024px; the chips are the phone and tablet way in. */
@media (min-width: 1025px) {
	.hv3-aisles {
		display: none;
	}

	/* The month opens the page instead of following the chips. */
	.hv3 > .hv3-month {
		margin-top: 0;
	}
}

.hv3-aisles__list {
	/* A centred group with a fixed gap, not spread edge to edge: spread, the
	   first chip sat under the round logo and the two read as one column.
	   fit-content + auto margins centre it; when it overflows (narrow screens)
	   it starts at the left edge and scrolls. */
	display: flex;
	gap: 1.75rem;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	/* Room for what grows past the photo: a scrolling row clips both ways, and
	   the hover lift + scale and the Christmas ring reach about 8px out. */
	padding: 0.65rem 0 0.4rem;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.hv3-aisles__list::-webkit-scrollbar {
	display: none;
}

.hv3-aisles__list li {
	flex: 0 0 auto;
	margin: 0;
}

.hv3 .hv3-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	width: 6.6rem;
	text-decoration: none;
	color: var(--ink);
}

.hv3-chip__photo {
	width: 5.2rem;
	height: 5.2rem;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: var(--float);
	transition: transform 0.18s ease;
}

.hv3 .hv3-chip:hover .hv3-chip__photo {
	transform: translateY(-2px) scale(1.03);
}

.hv3-chip__label {
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
}

/* ---------- The month ---------- */

.hv3-month {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(20rem, 30vw, 24rem);
	padding: 1.5rem;
	border-radius: var(--radius);
	overflow: hidden;
	isolation: isolate;
}

.hv3-month__photo {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hv3-month__card {
	max-width: 27rem;
	padding: 1.4rem 1.6rem 1.5rem;
	border-radius: var(--radius);
	background: rgb(255 255 255 / 0.94);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.hv3 .hv3-month__status {
	margin: 0 0 0.35rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--leaf);
}

.hv3-countdown {
	font-variant-numeric: tabular-nums;
}

.hv3 .hv3-month__title {
	margin: 0 0 0.6rem;
	font-family: var(--display);
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-wrap: balance;
	/* The theme centres, uppercases and underlines h1. */
	text-align: left;
	text-transform: none;
	border: 0;
	padding: 0;
}

.hv3 .hv3-month__text {
	margin: 0 0 1.1rem;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--ink);
}

/* Travel stamp: a tilted round card, top right. */
.hv3-stamp {
	position: absolute;
	top: 1.4rem;
	right: 1.6rem;
	display: grid;
	place-items: center;
	width: 7.6rem;
	height: 7.6rem;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.9);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	box-shadow: var(--float);
	transform: rotate(-12deg);
	color: var(--leaf-deep);
}

.hv3-stamp svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hv3-stamp__ring {
	fill: none;
	stroke: var(--leaf);
	stroke-width: 1.5;
	stroke-dasharray: 3 3;
}

.hv3-stamp__arc {
	font-family: var(--body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	fill: currentColor;
}

.hv3-stamp__place {
	position: relative;
	max-width: 5rem;
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	color: var(--ink);
	overflow-wrap: anywhere;
}

/* ---------- Doors: boxes + Picard ---------- */

.hv3-doors {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--gap-tight);
}

/* Without the Picard card, the boxes card takes the row, kept to the height
   it has beside Picard so the full-width photo does not stretch it. */
.hv3-doors.is-single {
	grid-template-columns: 1fr;
}

@media (min-width: 641px) {
	.hv3-doors.is-single .hv3-boxes {
		min-height: 14rem;
	}

	/* The photo's own height would set the row's; give it the card's. */
	.hv3-doors.is-single .hv3-boxes__photo {
		height: 14rem;
	}
}

.hv3 .hv3-boxes,
.hv3 .hv3-catering {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 13rem;
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
}

.hv3-boxes__photo,
.hv3-catering__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hv3-boxes__panel,
.hv3-catering__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 1.5rem 1.75rem;
	background: var(--leaf-soft);
}

.hv3-catering__panel {
	background: var(--well);
}

.hv3-boxes__title,
.hv3-catering__title {
	font-family: var(--display);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.hv3-boxes__text,
.hv3-catering__text {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

/* The card's way in: a button, clear of the copy above it. */
.hv3-boxes__panel .hv3-btn,
.hv3-catering__panel .hv3-btn {
	margin-top: 1.25rem;
}

.hv3 .hv3-boxes:hover .hv3-btn,
.hv3 .hv3-catering:hover .hv3-btn {
	background: var(--leaf-deep);
}

/* The messages share one spot and take turns (homepage-v3.js); the spot is as
   tall as the longest, so nothing under it moves. */
.hv3-boxes__promos {
	display: grid;
	margin-top: 0.75rem;
}

/* A reassurance, not a badge: a tick and a line of text. */
.hv3-boxes__promo {
	grid-area: 1 / 1;
	align-self: start;
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: 0.9rem;
	line-height: 1.4;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.hv3-boxes__promo svg {
	flex: none;
	width: 1.1em;
	height: 1.1em;
	margin-top: 0.15em;
	fill: none;
	stroke: var(--leaf);
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hv3-boxes__promo.is-on {
	opacity: 1;
}

.hv3-boxes__promo strong {
	color: var(--leaf-deep);
}

.hv3 .hv3-boxes:hover .hv3-boxes__photo,
.hv3 .hv3-catering:hover .hv3-catering__photo,
.hv3 .hv3-picard:hover .hv3-picard__photo {
	transform: scale(1.04);
}

.hv3 .hv3-boxes:hover .hv3-btn svg,
.hv3 .hv3-catering:hover .hv3-btn svg {
	transform: translateX(3px);
}

.hv3 .hv3-picard {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 13rem;
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	isolation: isolate;
	background: #002e6d;
}

.hv3-picard__photo {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hv3-picard__foot {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	width: 100%;
	padding: 2.5rem 1rem 0.9rem;
	background: linear-gradient(to top, rgb(0 20 50 / 0.82), rgb(0 20 50 / 0));
	color: #fff;
}

.hv3-picard__name {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 700;
}

.hv3-picard__line {
	font-size: 0.88rem;
	opacity: 0.9;
}

/* ---------- Lanes ---------- */

.hv3-lane__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.9rem;
}

.hv3 .hv3-lane__title {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--ink);
}

.hv3 .hv3-lane__title a {
	color: inherit;
	text-decoration: none;
}

.hv3 .hv3-lane__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

.hv3-lane__end {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.hv3 .hv3-lane__all {
	font-size: 0.95rem;
	white-space: nowrap;
}

.hv3 .hv3-lane__all svg {
	transition: transform 0.2s ease;
}

.hv3 .hv3-lane__all:hover svg {
	transform: translateX(3px);
}

.hv3-lane__nav {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.hv3-lane__nav[hidden] {
	display: none;
}

.hv3 .hv3-lane__arrow {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0 !important;
	border: 1px solid var(--line) !important;
	border-radius: 50% !important;
	background: var(--paper) !important;
	color: var(--ink) !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.hv3 .hv3-lane__arrow:hover {
	border-color: var(--ink) !important;
}

.hv3 .hv3-lane__arrow:disabled {
	opacity: 0.35;
	pointer-events: none;
}

.hv3-lane__arrow svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hv3 .hv3-lane__track.product-section {
	display: flex;
	gap: 0.9rem;
	margin: 0 !important;
	padding: 2px 0 6px !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.hv3-lane__track::-webkit-scrollbar {
	display: none;
}

/* ---------- Product cards ----------
   The shop's own card, unchanged; the lane only sets its width and snap.
   Whole cards only: five across a desktop lane, four on a narrow window or
   a tablet; phones keep a fixed width, the next card peeking. */

.hv3 .hv3-lane__track .ecs-post-loop {
	flex: 0 0 calc((100% - 4 * 0.9rem) / 5);
	scroll-snap-align: start;
	min-width: 0;
	max-width: none;
}

@media (max-width: 1100px) {
	.hv3 .hv3-lane__track .ecs-post-loop {
		flex-basis: calc((100% - 3 * 0.9rem) / 4);
	}
}


/* ---------- Brand banners ---------- */

.hv3-banners {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: var(--gap-tight);
}

.hv3 .hv3-banner {
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
}

.hv3-banner__img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.hv3 .hv3-banner:hover .hv3-banner__img {
	transform: scale(1.03);
}

/* ---------- Editorial panels around the Elementor sections ---------- */

.hv3-panel {
	border-radius: var(--radius);
	overflow: hidden;
}

.hv3-panel--well {
	background: var(--well);
}

.hv3-panel--leaf {
	background: var(--leaf-soft);
}

.hv3 .hv2-elementor .elementor-top-section {
	margin: 0 !important;
	padding: 2.5rem 1.5rem !important;
	background: transparent !important;
}

/* Awards sit on the page, not in a panel: the page's own gap is enough above
   and below, and the title and the two rows of badges sit close together. */
.hv3 .hv2-elementor.hv2-elementor--hv2-awards .elementor-top-section {
	padding-top: 0.75rem !important;
	padding-bottom: 0.75rem !important;
}

.hv3 .hv2-elementor.hv2-elementor--hv2-awards .elementor-top-section:first-child {
	padding-top: 0 !important;
	padding-bottom: 0.25rem !important;
}

.hv3 .hv2-elementor.hv2-elementor--hv2-awards .elementor-top-section:last-child {
	padding-bottom: 0 !important;
}

/* Every heading in the Elementor sections is small body type by default
   (Why's Premium/Fresh…, the award years); the three section titles, picked
   by their Elementor ids (kept when create-elementor-sections.php copies
   them), take the display face. */
.hv3 .hv2-elementor .elementor-heading-title {
	font-family: var(--body) !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	line-height: 1.3 !important;
	color: var(--ink) !important;
}

.hv3 .hv2-elementor :is([data-id="9651e0e"], [data-id="ecba247"], [data-id="1d94809"]) .elementor-heading-title {
	font-family: var(--display) !important;
	font-size: clamp(1.5rem, 2.4vw, 1.9rem) !important;
	letter-spacing: -0.02em !important;
	line-height: 1.1 !important;
	text-transform: none !important;
}

.hv3 .hv2-elementor,
.hv3 .hv2-elementor p,
.hv3 .hv2-elementor .elementor-widget-text-editor {
	font-family: var(--body) !important;
	color: var(--ink);
}

.hv3 .hv2-elementor .elementor-widget-text-editor a,
.hv3 .hv2-elementor .elementor-widget-text-editor span {
	color: inherit !important;
}

/* "See the actual reviews on Google" */
.hv3 .hv2-elementor [data-id="3ee6d29"] :is(p, span, a) {
	color: var(--leaf-deep) !important;
	font-style: normal !important;
}

/* Testimonials: quotes set in type on leaf soft, not the yellow disc image. */
.hv3 .hv2-elementor--hv2-testimonials .elementor-testimonial__image {
	display: none !important;
}

.hv3 .hv2-elementor--hv2-testimonials .elementor-testimonial__footer {
	margin: 0 !important;
}

.hv3 .hv2-elementor--hv2-testimonials .elementor-testimonial__content::before {
	content: '\201C';
	display: block;
	height: 2.4rem;
	font-family: var(--display);
	font-size: 4rem;
	line-height: 1;
	color: var(--leaf);
}

.hv3 .hv2-elementor--hv2-testimonials .elementor-testimonial__text {
	font-family: var(--body) !important;
	font-style: normal !important;
	font-size: 0.98rem !important;
	line-height: 1.5 !important;
	color: var(--ink) !important;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	overflow: hidden;
}

.hv3 .hv2-elementor--hv2-testimonials .elementor-testimonial__name {
	font-family: var(--body) !important;
	font-weight: 700 !important;
	color: var(--ink) !important;
}

.hv3 .hv2-elementor--hv2-testimonials .elementor-testimonial__cite {
	margin-top: 0.9rem !important;
}

.hv3 .hv2-elementor--hv2-testimonials .swiper-slide {
	padding: 0.5rem 1.25rem !important;
}

.hv3 .hv2-elementor--hv2-testimonials .elementor-swiper-button {
	color: var(--leaf-deep) !important;
}

.hv3 .hv2-elementor--hv2-testimonials .elementor-swiper-button svg {
	fill: var(--leaf-deep) !important;
}

/* ---------- Cooking Time ---------- */

.hv3-recipe {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	container-type: inline-size;
	background: var(--well);
}

.hv3-recipe__img {
	display: block;
	width: 100%;
	height: auto;
}

.hv3 .hv3-recipe__btn {
	position: absolute;
	left: 31.5%;
	top: 41%;
	transform: translateX(-50%);
	font-size: clamp(0.75rem, 1.3cqi, 1rem);
	white-space: nowrap;
}

.hv3 .hv3-recipe__btn:active {
	transform: translateX(-50%) scale(0.98);
}

/* ---------- Phones and narrow tablets ---------- */

@media (max-width: 1100px) {
	.hv3-aisles__list {
		gap: 1rem;
	}

	.hv3 .hv3-chip {
		width: 6rem;
	}
}

@media (max-width: 900px) {
	.hv3 {
		--gap-section: 2.25rem;
	}

	.hv3-aisles__list {
		gap: 1.1rem;
	}

	.hv3-doors {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.hv3 {
		width: calc(100% - 1.5rem);
	}

	.hv3 .hv3-chip {
		width: 5.4rem;
	}

	.hv3-chip__photo {
		width: 4.4rem;
		height: 4.4rem;
	}

	.hv3-month {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-end;
		min-height: 30rem;
		padding: 0.75rem;
	}

	.hv3-month__card {
		max-width: none;
		padding: 1.1rem 1.2rem 1.25rem;
	}

	.hv3-stamp {
		top: 0.9rem;
		right: 0.9rem;
		width: 6rem;
		height: 6rem;
	}

	.hv3-stamp__place {
		font-size: 1.1rem;
	}

	.hv3 .hv3-boxes,
	.hv3 .hv3-catering {
		grid-template-columns: 1fr;
	}

	.hv3-boxes__photo,
	.hv3-catering__photo {
		aspect-ratio: 16 / 9;
		height: auto;
	}

	/* Photo first on the catering card too. */
	.hv3-catering__photo {
		order: -1;
	}

	.hv3 .hv3-lane__track .ecs-post-loop {
		flex-basis: 11.5rem;
	}
	.hv3 .hv2-elementor .elementor-top-section {
		padding: 2rem 1rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hv3 *,
	.hv3 *::before,
	.hv3 *::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
