/*!
 * Bhoo Agrocare — homepage sections (enqueued only on the front page).
 * One block per section, in render order; every breakpoint is in the
 * "Responsive" block at the end. Tokens, the shared product/article cards and
 * the carousel arrows/dots are in main.css.
 */

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(86vh, 720px);
	padding-block: clamp(56px, 9vw, 104px);
	background: var(--g-950);
	overflow: hidden;
	isolation: isolate;
}

/* ----------------------------------------------------------------- media */

.hero__media { position: absolute; inset: 0; z-index: -1; }

.hero__poster,
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__video {
	opacity: 0;
	transition: opacity .9s ease;
}
.hero.is-video-ready .hero__video { opacity: 1; }
.hero.is-video-ready .hero__poster { opacity: 0; transition: opacity .9s ease .1s; }

/* Scrim: strong on the left where the copy sits, lighter to the right. */
.hero__scrim {
	position: absolute;
	inset: 0;
}

/* ------------------------------------------------------------------ copy */

.hero__inner { position: relative; }

.hero__panel { max-width: 660px; color: #fff; }

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 20px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: var(--r-pill);
	backdrop-filter: blur(6px);
	color: #fff;
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .05em;
}
.hero__eyebrow .bhoo-icon { color: var(--g-300); }

.hero__title {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(32px, 5.4vw, 62px);
	line-height: 1.08;
	letter-spacing: -.025em;
	text-wrap: balance;
}
.hero__title-main,
.hero__title-accent { display: block; }
.hero__title-accent { color: var(--g-300); }

.hero__sub {
	margin: 0 0 32px;
	max-width: 48ch;
	color: rgba(255, 255, 255, .86);
	font-size: clamp(15.5px, 1.6vw, 18px);
	line-height: 1.65;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Entry animation is driven by assets/js/hero.js (GSAP).
   The CSS animation below is a safety net: if hero.js never runs (blocked,
   404, error) the copy still fades in on its own after 1.2s, so the headline
   can never be left stuck at opacity:0. Once JS takes over it adds .is-ready,
   which cancels the fallback and hands the timeline to GSAP. */
.js .hero [data-hero-item] {
	opacity: 0;
	animation: bhoo-hero-in .6s ease 1.2s forwards;
}
.js .hero.is-ready [data-hero-item] { animation: none; opacity: 1; }

@keyframes bhoo-hero-in { to { opacity: 1; } }


/* ==========================================================================
   Trust bar
   ========================================================================== */

.trustbar {
	background: var(--g-050);
	border-bottom: 1px solid var(--g-100);
}

.trustbar__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding-block: clamp(20px, 2.6vw, 30px);
}

.trustbar__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-inline: clamp(12px, 2.2vw, 28px);
}
.trustbar__item + .trustbar__item { box-shadow: inset 1px 0 0 var(--g-100); }

.trustbar__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 72px; height: 72px;
	color: var(--g-700);
}

.trustbar__text { display: flex; flex-direction: column; line-height: 1.35; }
.trustbar__text strong {
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
	color: var(--g-900);
}
.trustbar__text span { font-size: 14px; color: var(--ink-2); }


/* ==========================================================================
   Categories
   ========================================================================== */

.cats { padding-block: var(--section-y); background: var(--white); }
.cats__text{
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2;
	line-clamp:2;
	overflow:hidden;
}
.cats__grid {
	display: grid;
	grid-template-columns: repeat(var(--cats-count, 4), 1fr);
	gap: clamp(14px, 1.8vw, 22px);
}

.cats__card {
	position: relative;
	display: block;
	aspect-ratio: 3 / 3.6;
	border-radius: var(--r-md);
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(150deg, var(--g-700), var(--g-900));
	transition: transform .28s var(--ease), box-shadow .28s;
}
.cats__card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }

.cats__bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ease);
}
.cats__card:hover .cats__bg { transform: scale(1.05); }

.cats__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(11, 36, 19, .92) 0%,
		rgba(11, 36, 19, .68) 38%,
		rgba(11, 36, 19, .28) 68%,
		rgba(11, 36, 19, .18) 100%
	);
	transition: opacity .28s;
}
.cats__card:hover .cats__scrim { opacity: .92; }

/* Per-card accent tint, cycling the packaging palette. */
.cats__item:nth-child(1) { --tint: var(--c-blue); }
.cats__item:nth-child(2) { --tint: var(--g-500); }
.cats__item:nth-child(3) { --tint: var(--g-400); }
.cats__item:nth-child(4) { --tint: var(--c-soil); }
.cats__item:nth-child(5) { --tint: var(--c-maroon); }
.cats__item:nth-child(6) { --tint: var(--c-gold); }

.cats__item--noimg .cats__card {
	background: linear-gradient(155deg, color-mix(in srgb, var(--tint, var(--g-600)) 78%, #000), var(--g-950));
}

.cats__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(18px, 2vw, 26px);
	color: #fff;
}

.cats__icon {
	display: grid;
	place-items: center;
	width: 54px; height: 54px;
	border: 1.6px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	color: #fff;
	transition: background-color .25s, border-color .25s;
}
.cats__card:hover .cats__icon { background: rgba(255, 255, 255, .16); border-color: #fff; }

.cats__icon img { width: 45px; height: 45px; object-fit: contain; }

.cats__title {
	margin-top: auto;
	font-family: var(--font-head);
	font-size: clamp(19px, 2vw, 23px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.015em;
}

.cats__text {
	margin-top: 7px;
	color: rgba(255, 255, 255, .82);
	font-size: 14.5px;
	line-height: 1.45;
	max-width: 26ch;
}

.cats__go {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	margin-top: 18px;
	border: 1.5px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	color: #fff;
	transition: background-color .22s, border-color .22s, transform .22s var(--ease);
}
.cats__card:hover .cats__go {
	background: var(--g-500);
	border-color: var(--g-500);
	transform: translateX(4px);
}


/* ==========================================================================
   Featured products
   ========================================================================== */

.featured {
	position: relative;
	padding-block: var(--section-y);
	background:
		radial-gradient(60% 55% at 8% 6%, rgba(110, 201, 90, .16), transparent 60%),
		radial-gradient(52% 48% at 94% 92%, rgba(110, 201, 90, .14), transparent 62%),
		var(--g-025);
}

.featured__head { position: relative; }
.featured__head .section-head { margin-bottom: clamp(24px, 3vw, 38px); }

.featured__viewall {
	position: absolute;
	right: 0;
	bottom: clamp(28px, 3.4vw, 44px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--g-700);
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
}
.featured__viewall .bhoo-icon { transition: transform .2s var(--ease); }
.featured__viewall:hover .bhoo-icon { transform: translateX(4px); }

.featured__notice {
	max-width: 62ch;
	margin: 0 auto 24px;
	padding: 12px 18px;
	border: 1px dashed var(--g-300);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, .7);
	color: var(--ink-2);
	font-size: 14px;
	text-align: center;
}

/* ---------------------------------------------------------------- slider */

/* Reserves room for the 46px arrow buttons on each side. This can't be done
   with a negative offset into the page gutter instead — that gutter is 0
   past .container's own edge on any viewport at or below ~1308px (1280x800
   laptops, tablets in landscape, half-split desktop windows), so the arrow
   would either sit on top of the edge card or spill past the page edge. */
.featured__slider {
	padding-inline: 46px;
}

/* Splide clips the track; the padding keeps the card hover-lift and shadow from
   being cut off, and vertical padding does not affect Splide's slide maths. */
.featured__slider .splide__track {
	overflow: hidden;
	padding-block: 8px 20px;
	margin-block: -8px -14px;
}

/* Splide hides .splide until it mounts. The grid below is a valid rendering,
   so keep it visible in case the script never runs. */
.featured__slider:not(.is-initialized) { visibility: visible; }

.featured__slider:not(.is-initialized) .splide__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	overflow: hidden;
}

/* Equal-height cards regardless of whether a pack selector or price is present. */
.featured__slider .splide__slide { height: auto; display: flex; }
.featured__slider .splide__slide > .pcard { flex: 1; }


/* ==========================================================================
   Why Bhoo Agrocare
   ========================================================================== */

.why {
	padding-block: var(--section-y);
}

.why__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.why__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px clamp(16px, 2.4vw, 34px);
	transition-delay: var(--d, 0ms);
}
.why__item + .why__item { box-shadow: inset 1px 0 0 var(--g-100); }

.why__icon {
	display: grid;
	place-items: center;
	width: 66px; height: 66px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--g-050);
	color: var(--g-700);
}

.why__title {
	margin: 0 0 8px;
	font-size: clamp(16px, 1.8vw, 19px);
	color: var(--g-900);
	line-height: 1.3;
}

.why__text {
	margin: 0;
	max-width: 24ch;
	color: var(--ink-2);
	font-size: 14.5px;
	line-height: 1.55;
}


/* ==========================================================================
   Crops
   ========================================================================== */

.crops {
	padding-block: var(--section-y);
	background: var(--g-025);
}

.crops__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: clamp(12px, 1.4vw, 18px);
}

.crops__item { transition-delay: var(--d, 0ms); }

.crops__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	height: 100%;
	padding: 18px 14px 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--sh-1);
	transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.crops__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--sh-2);
	border-color: var(--g-100);
}

.crops__media {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1 / 1;
}
.crops__media img { width: 100%; height: 100%; object-fit: contain; }

.crops__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.crops__name {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
	color: var(--g-900);
}

.crops__go {
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--g-600);
	color: #fff;
	transition: background-color .2s, transform .2s var(--ease);
}
.crops__card:hover .crops__go { background: var(--g-700); transform: translateX(3px); }


/* ==========================================================================
   Organic
   ========================================================================== */

.organic {
	position: relative;
	overflow: hidden;
	background: var(--g-900);
	isolation: isolate;
}

.organic__bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 50% 35%;
	z-index: -2;
}
.organic__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		100deg,
		rgba(11, 36, 19, .95) 0%,
		rgba(11, 36, 19, .82) 42%,
		rgba(11, 36, 19, .45) 72%,
		rgba(11, 36, 19, .30) 100%
	);
}

.organic__inner {
	display: grid;
	align-items: center;
	min-height: clamp(420px, 42vw, 560px);
	padding-block: var(--section-y);
	color: #fff;
}
.organic__copy { max-width: 540px; }

.organic__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	color: var(--g-300);
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.organic__eyebrow span { width: 34px; height: 1.5px; background: currentColor; opacity: .6; }

.organic__title {
	margin: 0;
	color: #fff;
	font-size: clamp(26px, 3.6vw, 42px);
	line-height: 1.2;
}

.organic__accent {
	margin: 12px 0 0;
	color: var(--g-300);
	font-family: var(--font-head);
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 700;
}

.organic__text {
	margin: 16px 0 26px;
	max-width: 46ch;
	color: rgba(255, 255, 255, .85);
	font-size: clamp(15px, 1.6vw, 17px);
	line-height: 1.6;
}


/* ==========================================================================
   Brands
   ========================================================================== */

.brands {
	padding-block: var(--section-y);
	background: var(--g-050);
}

.brands__slider {
	--arrow-size: 44px;
	--arrow-icon: 18px;
	--arrow-inset: clamp(-20px, -1.4vw, -6px);
	--dots-top: 26px;
	position: relative;
}
.brands__slider .splide__track { overflow: hidden; padding-block: 10px; }
.brands__slider:not(.is-initialized) { visibility: visible; }
.brands__slider:not(.is-initialized) .splide__list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	overflow: hidden;
}

.brands__tile {
	--tint: var(--g-600);
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 14%;
}

/* Rotated square = the diamond frame; the label stays upright inside it. */
.brands__diamond {
	position: absolute;
	inset: 12%;
	border: 2px solid var(--tint, var(--g-500));
	border-radius: 14px;
	background: var(--white);
	transform: rotate(45deg);
	transition: transform .25s var(--ease), box-shadow .25s;
}
.brands__tile:hover .brands__diamond {
	transform: rotate(45deg) scale(1.04);
	box-shadow: var(--sh-2);
}

.brands__label {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 74%;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(13px, 1.4vw, 16px);
	color: var(--tint, var(--g-700));
	text-align: center;
	line-height: 1.2;
}
.brands__label img { width: 100%; height: auto; object-fit: contain; }

/* Ready-made diamond logos: no CSS frame, the logo itself is the diamond. */
.brands__tile--logo { padding: 2%; }
.brands__tile--logo .brands__label { width: 100%; }
.brands__tile--logo .brands__label img { transition: transform .25s var(--ease), filter .25s; }
.brands__tile--logo:hover .brands__label img { transform: scale(1.05); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }

/* Tint cycles the packaging palette by slide index. */
.brands__slider .splide__slide:nth-child(2) .brands__tile { --tint: var(--c-maroon); }
.brands__slider .splide__slide:nth-child(3) .brands__tile { --tint: var(--c-blue); }
.brands__slider .splide__slide:nth-child(4) .brands__tile { --tint: var(--c-gold); }
.brands__slider .splide__slide:nth-child(5) .brands__tile { --tint: var(--c-red); }
.brands__slider .splide__slide:nth-child(6) .brands__tile { --tint: var(--muted); }

.brands__tile--more { --tint: var(--muted); }
.brands__tile--more .brands__diamond { border-style: dashed; background: transparent; }


/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
	position: relative;
	overflow: hidden;
	padding-block: var(--section-y);
	background: var(--g-900);
	isolation: isolate;
}

.stats__bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 58%;
	z-index: -2;
}
.stats__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(11, 36, 19, .9), rgba(11, 36, 19, .3));
}

.stats .section-head__eyebrow { color: var(--g-300); }
.stats .section-head__title { color: #fff; }

.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 6px clamp(14px, 2.4vw, 32px);
	color: #fff;
}
.stats__item + .stats__item { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .16); }

.stats__icon {
	display: grid;
	place-items: center;
	width: 85px; height: 85px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: var(--g-300);
}

.stats__value {
	font-family: var(--font-head);
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.02em;
}

.stats__label {
	font-family: var(--font-head);
	font-size: clamp(14px, 1.6vw, 17px);
	font-weight: 600;
}

.stats__note {
	color: rgba(255, 255, 255, .7);
	font-size: 13px;
}


/* ==========================================================================
   Posts — From the Knowledge Center
   ========================================================================== */

.posts {
	position: relative;
	overflow: hidden;
	padding-block: var(--section-y);
	background: linear-gradient(180deg, var(--g-025), var(--g-050));
}

.posts__leaf {
	position: absolute;
	top: -46px;
	color: var(--g-300);
	opacity: .2;
	pointer-events: none;
}
.posts__leaf--l { left: -46px; transform: rotate(-16deg); }
.posts__leaf--r { right: -46px; transform: scaleX(-1) rotate(-16deg); }

.posts__head { position: relative; }
.posts__head .section-head { margin-bottom: clamp(24px, 3vw, 38px); }

.posts__viewall {
	position: absolute;
	right: 0;
	bottom: clamp(28px, 3.4vw, 44px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--g-700);
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
}
.posts__viewall .bhoo-icon { transition: transform .2s var(--ease); }
.posts__viewall:hover .bhoo-icon { transform: translateX(4px); }

.posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
	gap: clamp(16px, 2vw, 24px);
}

.posts__item { display: flex; transition-delay: var(--d, 0ms); }
.posts__item > .postcard { flex: 1; }

.posts__notice {
	max-width: 62ch;
	margin: 0 auto;
	padding: 12px 18px;
	border: 1px dashed var(--g-300);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, .7);
	color: var(--ink-2);
	font-size: 14px;
	text-align: center;
}


/* ==========================================================================
   Testimonials — Farmer Voices
   ========================================================================== */

.testi {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: var(--section-y);
	background: linear-gradient(165deg, var(--g-100), var(--g-050) 48%, var(--g-025));
}

.testi__bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 45%;
	z-index: -2;
}

/* Light veil, not a dark one: the heading over this band is dark green, and the
   supplied art is a bright daylight field. */
.testi__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		180deg,
		rgba(246, 250, 244, .93) 0%,
		rgba(246, 250, 244, .66) 30%,
		rgba(246, 250, 244, .26) 60%,
		rgba(246, 250, 244, .42) 100%
	);
}

.testi__stage {
	position: relative;
	max-width: 660px;
	margin-inline: auto;
}

.testi__slider {
	--arrow-icon: 19px;
	--arrow-inset: clamp(-64px, -4vw, -22px);
	--dots-top: 24px;
	position: relative;
}
.testi__slider .splide__track { overflow: hidden; padding-block: 10px; margin-block: -10px; }
.testi__slider:not(.is-initialized) { visibility: visible; }
.testi__slider:not(.is-initialized) .splide__list { display: block; }
.testi__slider:not(.is-initialized) .splide__slide + .splide__slide { display: none; }

.testi__card {
	margin: 0;
	padding: clamp(20px, 2.4vw, 30px);
	background: var(--white);
	border-radius: var(--r-md);
	box-shadow: var(--sh-2);
}

.testi__who {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.testi__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 64px; height: 64px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--g-050);
	color: var(--g-600);
}
.testi__avatar img { width: 100%; height: 100%; object-fit: cover; }

.testi__name {
	margin: 0 0 5px;
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 700;
	color: var(--g-900);
}

.testi__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 3px;
	color: var(--ink-2);
	font-size: 13.5px;
	line-height: 1.4;
}
.testi__meta:last-child { margin-bottom: 0; }
.testi__meta .bhoo-icon { color: var(--g-500); }
.testi__sep { color: var(--g-100); }

.testi__quote {
	position: relative;
	margin: 0 0 16px;
	padding-left: 46px;
}
.testi__mark { position: absolute; left: 0; top: -2px; color: var(--g-300); }
.testi__quote p {
	margin: 0;
	color: var(--ink-2);
	font-size: clamp(14.5px, 1.5vw, 16px);
	line-height: 1.7;
}

.testi__notice {
	max-width: 62ch;
	margin: 0 auto;
	padding: 12px 18px;
	border: 1px dashed var(--g-300);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, .8);
	color: var(--ink-2);
	font-size: 14px;
	text-align: center;
}

/* Arrows sit outside the card (--arrow-inset above), dots below it. Unlike the
   other carousels the dots are round and swell instead of stretching. */
.testi__slider .splide__pagination { gap: 9px; }
.testi__slider .splide__pagination__page {
	border-radius: 50%;
	background: rgba(11, 36, 19, .18);
	transition: background-color .25s, transform .25s var(--ease);
}
.testi__slider .splide__pagination__page.is-active { width: 9px; background: var(--g-600); transform: scale(1.15); }


/* ==========================================================================
   Responsive — one block per condition, widest first
   ========================================================================== */

@media (min-width: 1000px) {
	/* Testimonials */
	/* The background photo keeps the left half; the card sits right of centre. */
	.testi__stage { margin-left: auto; margin-right: clamp(0px, 9vw, 150px); }
}

@media (max-width: 1100px) {
	/* Featured products — grid shown until the carousel mounts */
	.featured__slider:not(.is-initialized) .splide__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
	/* Categories */
	.cats__grid { grid-template-columns: repeat(2, 1fr); }

	/* Crops */
	.crops__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
	/* Brands — grid shown until the carousel mounts */
	.brands__slider:not(.is-initialized) .splide__list { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
	/* Trust bar */
	.trustbar__list { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
	.trustbar__item:nth-child(odd) { box-shadow: none; }

	/* Why Bhoo Agrocare */
	.why__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
	.why__item:nth-child(odd) { box-shadow: none; }

	/* Stats */
	.stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
	.stats__item:nth-child(odd) { box-shadow: none; }

	/* Posts. The link is centred as its own box, not a full-width row: motion.js
	   slides it in from x:18, and a row that already spans the container then
	   pushes those 18px past the viewport and gives the page a sideways scroll
	   until the tween lands. */
	.posts__viewall { position: static; display: flex; justify-content: center; width: fit-content; margin: 0 auto 22px; }
	.posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	/* Featured products — see the note on .posts__viewall below. */
	.featured__viewall { position: static; display: flex; justify-content: center; width: fit-content; margin: 0 auto 24px; }

	/* Organic */
	.organic__inner { min-height: clamp(360px, 68vw, 460px); }
	.organic__copy { max-width: none; }
	/* Narrow crops land on the busy right half of the photo, so darken evenly rather than left-to-right. */
	.organic__bg { object-position: 30% center; }
	.organic__scrim {
		background: linear-gradient(180deg, rgba(11, 36, 19, .82) 0%, rgba(11, 36, 19, .9) 100%);
	}
}

@media (max-width: 820px) {
	/* Featured products — grid shown until the carousel mounts */
	.featured__slider:not(.is-initialized) .splide__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
	/* Brands — grid shown until the carousel mounts */
	.brands__slider:not(.is-initialized) .splide__list { grid-template-columns: repeat(3, 1fr); }

	/* Testimonials — the arrows hide earlier than the other carousels (620px, see main.css) */
	.testi__slider .splide__arrow { display: none; }
}

@media (max-width: 720px) {
	/* Hero */
	.hero { min-height: 66vh; }
}

@media (max-width: 680px) {
	/* Crops */
	.crops__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
	/* Featured products */
	.featured__slider { padding-inline: 0; }

	/* Posts */
	.posts__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	/* Categories */
	.cats__grid { grid-template-columns: 1fr; }
	.cats__card { aspect-ratio: 16 / 10; }
	/* No-image cards have no photo to fill the gap that .cats__title's
	   margin-top:auto is meant to push content down past — forcing them into
	   the same fixed ratio as photo cards crushes the icon/heading/text/arrow
	   together instead of showing the description in full. Size to content. */
	.cats__item--noimg .cats__card { aspect-ratio: auto; }
	.cats__item--noimg .cats__title { margin-top: 14px; }
}

@media (max-width: 520px) {
	/* Featured products — one card, as the carousel shows them here. Showing
	   the first slide alone (the pattern Farmer Voices already uses at every
	   width) rather than a one-column grid of every product: this grid is what
	   paints before the deferred script mounts, and a column of eight cards
	   would push the rest of the page down a screen and more, then snap back. */
	.featured__slider:not(.is-initialized) .splide__list { display: block; }
	.featured__slider:not(.is-initialized) .splide__slide + .splide__slide { display: none; }

	/* Why Bhoo Agrocare */
	.why__grid { grid-template-columns: 1fr; gap: 28px; }
	.why__item + .why__item { box-shadow: none; }
	.why__icon { width: 56px; height: 56px; margin-bottom: 14px; }

	/* Brands — one tile, as the carousel shows them here. Same reasoning as
	   Featured products above. */
	.brands__slider:not(.is-initialized) .splide__list { display: block; }
	.brands__slider:not(.is-initialized) .splide__slide + .splide__slide { display: none; }

	/* A tile is square, so one to a view would otherwise blow a bare logo up to
	   the full width of the screen. Capped and centred, it reads as a spotlight
	   on that brand rather than a zoomed image. */
	.brands__tile { max-width: 232px; margin-inline: auto; }
}

@media (max-width: 480px) {
	/* Hero */
	.hero__cta { gap: 10px; }
	.hero__cta .btn { flex: 1 1 100%; }

	/* Trust bar */
	.trustbar__list { grid-template-columns: 1fr; gap: 16px; }
	.trustbar__item { padding-inline: 0; }
	.trustbar__item + .trustbar__item { box-shadow: none; }
	.trustbar__icon { width: 38px; height: 38px; }
	/* The 60px icon (trust-bar.php) is sized for the 72px desktop box above;
	   shrink the rendered SVG itself so it still fits this 38px mobile one. */
	.trustbar__icon svg { width: 30px; height: 30px; }

	/* Stats */
	.stats__grid { grid-template-columns: 1fr; gap: 26px; }
	.stats__item + .stats__item { box-shadow: none; }
}

@media (max-width: 420px) {
	/* Crops */
	.crops__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	/* Hero */
	.js .hero [data-hero-item] { animation: none; opacity: 1; }
	.hero__video { display: none; }
}
