/* ---------- Homepage-only overrides ---------- */
/* Tea grades heading: base text white, accent gold (differs from the plain
   sage headings used in the other dark two-col sections). Shared classes
   (.er-section, .er-eyebrow, .er-two-col, .er-btn, etc.) live in
   header-footer.css since every native page template needs them, not just
   this one. */
.er-tea-grades-section .er-two-col__text h2.er-section__title {
	color: #fff;
}
.er-tea-grades-section .er-accent {
	color: var(--er-gold);
}
.er-tea-grades-section .er-tea-grades__lead {
	color: #D1D5DB;
	margin: 0;
}

/* ---------- Hero ---------- */
.er-hero {
	padding: 60px 20px;
	max-width: 1200px;
	margin: 0 auto;
}
.er-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}
.er-hero__text h1 {
	font-size: 60px;
	line-height: 1.1;
	color: var(--er-dark-green);
	margin: 0 0 18px;
	font-weight: 700;
}
.er-hero__text .er-accent {
	color: var(--er-sage);
}
.er-hero__lead {
	font-size: 17px;
	color: var(--er-secondary);
	margin: 0 0 16px;
}
.er-hero__text p:not(.er-eyebrow) {
	color: var(--er-secondary);
	line-height: 1.7;
	margin: 0 0 16px;
}
.er-hero__text .er-btn {
	margin-top: 10px;
}
.er-hero__image img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

/* ---------- Product grid section wrapper (homepage-only; the grid/card/
   quickview rules themselves are shared with the Shop page and live in
   header-footer.css) ---------- */
.er-products-section {
	max-width: none;
	background: #F2F2F2;
}
.er-products-section > * {
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
}
.er-products-section .er-product-grid {
	max-width: 1090px;
}

/* ---------- Principles / Partners cards ---------- */
.er-principles,
.er-partners {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 40px;
}
.er-partners {
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	max-width: 1110px;
	margin-left: auto;
	margin-right: auto;
}
.er-principle {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--er-sage);
	border-radius: 10px;
	padding: 60px 40px;
	transition: background-color 0.4s;
}
.er-principle:hover {
	background: var(--er-dark-green);
}
.er-principle h3 {
	color: #000;
	font-size: 25px;
	font-weight: 400;
	margin: 0 0 12px;
	transition: color 0.4s;
}
.er-principle:hover h3 {
	color: #fff;
}
.er-principle p,
.er-partner p {
	color: var(--er-secondary);
	line-height: 1.7;
	margin: 0;
	font-size: 15px;
}
.er-principle p {
	transition: color 0.4s;
}
.er-principle:hover p {
	color: #fff;
}
.er-principle__icon {
	position: absolute;
	bottom: -50px;
	right: 0;
	line-height: 0;
	opacity: 0;
	transition: 0.4s;
}
.er-principle__icon svg {
	width: 100px;
	height: 100px;
	vertical-align: middle;
}
.er-principle:hover .er-principle__icon {
	opacity: 1;
	bottom: -20px;
}
.er-partner {
	border: 1px solid var(--er-sage);
	border-radius: 4px;
}
.er-partner__image {
	margin-bottom: 10px;
}
.er-partner h3,
.er-partner p {
	padding-left: 10px;
	padding-right: 10px;
}
.er-partner p {
	padding-bottom: 10px;
}
.er-partner__image img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 10px 10px 0 0;
	display: block;
}
.er-partner h3 {
	color: var(--er-dark-green);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.2px;
	margin: 0 0 10px;
}

/* ---------- Tea grades ---------- */
.er-tea-grades {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}
.er-tea-grades h3 {
	color: var(--er-dark-green);
	font-size: 22px;
	margin: 0 0 14px;
}
.er-tea-grades p {
	color: var(--er-secondary);
	line-height: 1.7;
	margin: 0 0 24px;
}

/* ---------- Responsive (homepage-only; shared two-col/section rules are in
   header-footer.css) ---------- */
@media (max-width: 900px) {
	.er-nuwara-section .er-two-col__image {
		order: 1;
	}
	.er-tea-grades-section .er-two-col {
		row-gap: 18px;
	}
	.er-tea-grades-section .er-btn {
		display: block;
		width: 100%;
		text-align: center;
	}
	.er-hero__inner {
		grid-template-columns: 1fr;
	}
	.er-hero__image {
		order: -1;
		margin-top: -60px;
		margin-left: -20px;
		margin-right: -20px;
		width: calc(100% + 40px);
	}
	.er-hero__image img {
		height: 300px;
		object-fit: cover;
		border-radius: 0;
	}
	.er-principles,
	.er-partners {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 600px) {
	.er-hero {
		padding: 36px 20px;
	}
	.er-hero__image {
		margin-top: -36px;
	}
	.er-hero__text h1 {
		font-size: 40px;
		line-height: 1.2;
	}
	.er-principle {
		padding: 30px 20px;
	}
	.er-principles,
	.er-partners {
		grid-template-columns: 1fr;
	}
	.er-partner__image img {
		height: 215px;
	}
}
