/* =========================================================
   HOMEPAGE — enqueued only on the front page (see functions.php),
   so this weight never loads on shop/product/other pages.
   ========================================================= */

/* ---------------------------------------------------------
   Shared section helpers
   .section-title, .product-grid/.product-card, and the .cat-*
   accent classes all moved to style.css during the Phase 5 audit —
   see the comments there for why (they're used across more than
   just the homepage, and living only here meant the Shop archive
   and Related Products were missing this styling entirely).
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   1. Hero
   --------------------------------------------------------- */
.home-hero {
	background-color: var(--color-bg);
	padding-block: var(--space-2xl) var(--space-xl);
	text-align: center;
}

.home-hero__inner {
	max-width: 720px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
}

.home-hero__badge {
	width: 100px;
	height: 100px;
	margin-bottom: var(--space-xs);
}

.home-hero__headline {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	margin: 0;
}
.home-hero__headline .text-tamil {
	font-size: var(--fs-2xl);
	line-height: var(--lh-tight);
}
.home-hero__headline-en {
	font-family: var(--font-heading-en);
	font-weight: 600;
	font-size: var(--fs-lg);
	color: var(--color-text-muted);
}

.home-hero__subhead {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	color: var(--color-text);
	margin: 0;
}
.home-hero__subhead .text-tamil {
	font-size: var(--fs-md);
}
.home-hero__subhead-en {
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

.home-hero__cta {
	margin-top: var(--space-sm);
}

/* ---------------------------------------------------------
   2. Trust bar
   --------------------------------------------------------- */
.trust-bar {
	background-color: var(--color-white);
	border-block: 1px solid var(--color-border);
	padding-block: var(--space-lg);
}

.trust-bar__grid {
	display: grid;
	grid-template-columns: 1fr; /* single column on small phones — 2 columns made the
		longer bilingual phrases (e.g. "தமிழ்நாடு முழுவதும் டெலிவரி" / "Delivery
		across Tamil Nadu") wrap awkwardly and created uneven card heights. Found
		during the Phase 5 responsive audit at 375px. */
	gap: var(--space-md);
}

.trust-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-2xs);
}

.trust-item__icon {
	width: 32px;
	height: 32px;
	color: var(--color-primary);
	margin-bottom: var(--space-2xs);
}

.trust-item .text-tamil {
	font-size: var(--fs-sm);
}

.trust-item__en {
	font-size: var(--fs-xs);
	color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   3. Category showcase
   --------------------------------------------------------- */
.category-showcase {
	padding-block: var(--space-2xl);
}

.category-showcase__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
}

.category-card {
	display: block;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-top: 4px solid var(--cat-accent);
	transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.category-card:hover,
.category-card:focus {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
	color: inherit;
}

.category-card__image {
	aspect-ratio: 1 / 1;
	background-color: var(--color-bg-alt);
}
.category-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.category-card__image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
}

.category-card__body {
	padding: var(--space-sm) var(--space-md);
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
}
.category-card__body .text-tamil {
	font-size: var(--fs-lg);
	color: var(--color-primary);
}
.category-card__en {
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   4. Featured products
   --------------------------------------------------------- */
.featured-products {
	padding-block: var(--space-2xl);
	background-color: var(--color-bg-alt);
}

.featured-products__empty {
	text-align: center;
	color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   5. Farmer story teaser
   --------------------------------------------------------- */
.farmer-teaser {
	padding-block: var(--space-2xl);
}

.farmer-teaser__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
	align-items: center;
}

.farmer-teaser__image-placeholder {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.farmer-teaser__content p {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}
.farmer-teaser__content .text-tamil {
	font-size: var(--fs-md);
}
.farmer-teaser__en {
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   6. CTA band
   --------------------------------------------------------- */
.cta-band {
	background-color: var(--color-primary);
	color: var(--color-text-on-dark);
	padding-block: var(--space-lg);
	text-align: center;
}

.cta-band__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
}

.cta-band__headline {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	margin: 0;
}
.cta-band__headline .text-tamil {
	font-size: var(--fs-xl);
	color: var(--color-text-on-dark);
}
.cta-band__headline-en {
	font-family: var(--font-heading-en);
	font-size: var(--fs-md);
	color: rgba(250, 246, 238, 0.75);
}

.cta-band__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
}

.cta-band__whatsapp {
	background-color: var(--color-white);
	color: var(--color-primary);
}
.cta-band__whatsapp:hover,
.cta-band__whatsapp:focus {
	background-color: var(--color-bg);
	color: var(--color-primary-dark);
}

.cta-band__social {
	display: flex;
	gap: var(--space-sm);
}
.cta-band__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(250, 246, 238, 0.3);
	color: var(--color-text-on-dark);
}
.cta-band__social a:hover,
.cta-band__social a:focus {
	color: var(--color-accent-gold);
}

/* ---------------------------------------------------------
   Breakpoints
   --------------------------------------------------------- */
@media (min-width: 480px) {
	.trust-bar__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 600px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 768px) {
	.trust-bar__grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.category-showcase__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.farmer-teaser__inner {
		grid-template-columns: 1fr 1fr;
	}
	.cta-band__inner {
		flex-direction: row;
		justify-content: space-between;
	}
	.cta-band__actions {
		flex-direction: row;
	}
}

@media (min-width: 1024px) {
	.product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
