/**
 * Home page styles.
 *
 * Cream base + image-heavy section rhythm inspired by Richters. Strong green
 * editorial block for Meet Your Farmer. Section-by-section per Aramide's doc.
 */

/* ============================================================ HERO CAROUSEL */

.tnt-hero {
	position: relative;
	/* Fits a single viewport: 100svh - (announcement ~32 + header ~60 + tiny breathing) */
	height: calc(100svh - 96px);
	min-height: 460px;
	max-height: 640px;
	overflow: hidden;
	background: var(--tnt-bg-deep);
	color: var(--tnt-white);
}
.tnt-hero__track {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
}
.tnt-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	min-height: inherit;
	opacity: 0;
	transform: scale(1.03);
	transition: opacity 800ms ease, transform 1200ms ease;
	pointer-events: none;
	z-index: 0;
}
.tnt-hero__slide.is-active {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
	z-index: 1;
}
.tnt-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.tnt-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(120deg, rgba(20, 45, 25, 0.72) 0%, rgba(20, 45, 25, 0.30) 55%, rgba(20, 45, 25, 0.05) 100%),
		linear-gradient(180deg, transparent 50%, rgba(20, 45, 25, 0.50) 100%);
	z-index: 1;
}
.tnt-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tnt-hero__inner {
	position: relative;
	z-index: 2;
	padding-block: clamp(2rem, 5vw, 3.5rem);
	/* Generous left indent so copy breathes - matches Richters */
	padding-left: clamp(3rem, 9vw, 7rem) !important;
	padding-right: clamp(1.125rem, 3.5vw, 2rem) !important;
	width: 100%;
}
.tnt-hero__copy {
	max-width: 600px;
}

/* Refined hero headline: weight 400, generous tracking, tight leading, Richters-style */
.tnt-hero__headline {
	color: var(--tnt-white);
	font-family: var(--tnt-font-display);
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.1;
	letter-spacing: -0.012em;
	margin: 0 0 var(--tnt-sp-5);
	text-wrap: balance;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
	max-width: 16ch;
}
.tnt-hero__sub {
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--tnt-font-body);
	font-weight: 400;
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	line-height: 1.5;
	max-width: 44ch;
	margin-bottom: var(--tnt-sp-6);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}
.tnt-hero__sub p { margin: 0 0 0.375rem; max-width: none; }
.tnt-hero__sub p:last-child { margin: 0; }

.tnt-hero__ctas {
	display: flex;
	gap: var(--tnt-sp-5);
	flex-wrap: wrap;
	align-items: center;
}
.tnt-hero__cta-primary {
	box-shadow: 0 8px 24px rgba(232, 125, 47, 0.28);
}
/* Secondary CTA as a refined inline link, not a button */
.tnt-hero__cta-link {
	font-family: var(--tnt-font-display);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
	color: var(--tnt-white);
	text-decoration: none;
	padding: 0.625rem 0.25rem;
	border-bottom: 1.5px solid rgba(255, 255, 255, 0.65);
	transition: border-color var(--tnt-t-fast), color var(--tnt-t-fast);
}
.tnt-hero__cta-link:hover {
	color: var(--tnt-orange);
	border-bottom-color: var(--tnt-orange);
}

/* ---- Carousel nav arrows + dots ----
 * Arrows pinned to the bottom-right, next to the dots, so they don't overlap
 * the hero copy. Small and quiet. */
.tnt-hero__nav {
	position: absolute;
	bottom: clamp(1.25rem, 2.5vw, 1.875rem);
	z-index: 5;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: var(--tnt-white);
	border-radius: var(--tnt-radius-pill);
	cursor: pointer;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: background var(--tnt-t-fast), border-color var(--tnt-t-fast);
}
.tnt-hero__nav:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.50);
}
.tnt-hero__nav svg { width: 14px; height: 14px; }
.tnt-hero__nav--prev { right: calc(clamp(1.5rem, 3vw, 2.25rem) + 80px); }
.tnt-hero__nav--next { right: clamp(1.5rem, 3vw, 2.25rem); }

.tnt-hero__dots {
	position: absolute;
	left: clamp(2rem, 6vw, 5rem);
	bottom: clamp(1.5rem, 3vw, 2.25rem);
	display: flex;
	gap: var(--tnt-sp-2);
	z-index: 5;
}
.tnt-hero__dot {
	width: 32px;
	height: 4px;
	border: 0;
	background: rgba(255, 255, 255, 0.36);
	border-radius: var(--tnt-radius-pill);
	cursor: pointer;
	padding: 0;
	transition: background var(--tnt-t-fast), width var(--tnt-t-normal);
}
.tnt-hero__dot:hover { background: rgba(255, 255, 255, 0.65); }
.tnt-hero__dot.is-active {
	background: var(--tnt-white);
	width: 44px;
}

@media (max-width: 720px) {
	.tnt-hero__nav { display: none; }
	.tnt-hero__dots { bottom: 1.5rem; }
}

/* ============================================================ BROWSE CARDS (3 under hero) */

.tnt-browse {
	background: var(--tnt-bg);
}
.tnt-browse__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--tnt-sp-4);
}
.tnt-browse__card {
	position: relative;
	display: flex;
	align-items: stretch;
	background: #F4E7C5; /* warm cream/peach like Richters */
	border-radius: var(--tnt-radius-lg);
	overflow: hidden;
	min-height: 180px;
	color: var(--tnt-green-dark);
	text-decoration: none;
	transition: transform var(--tnt-t-normal), box-shadow var(--tnt-t-normal);
	box-shadow: 0 1px 2px rgba(60, 50, 30, 0.04);
}
.tnt-browse__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(60, 50, 30, 0.10);
}
.tnt-browse__copy {
	flex: 1;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.tnt-browse__title {
	font-family: var(--tnt-font-display);
	font-weight: 700;
	font-size: clamp(1.25rem, 1.75vw, 1.625rem);
	color: var(--tnt-green-dark);
	margin: 0 0 var(--tnt-sp-2);
	letter-spacing: -0.01em;
}
.tnt-browse__sub {
	font-family: var(--tnt-font-body);
	font-size: 0.9375rem;
	color: var(--tnt-soil);
	margin: 0 0 var(--tnt-sp-4);
	opacity: 0.85;
}
.tnt-browse__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--tnt-green);
	color: var(--tnt-white);
	border-radius: var(--tnt-radius-pill);
	transition: transform var(--tnt-t-normal), background var(--tnt-t-fast);
	align-self: flex-start;
}
.tnt-browse__card:hover .tnt-browse__arrow {
	transform: translateX(4px);
	background: var(--tnt-orange);
}
.tnt-browse__media {
	flex: 0 0 38%;
	background-size: cover;
	background-position: center;
	min-height: 100%;
}

@media (max-width: 960px) {
	.tnt-browse__grid { grid-template-columns: 1fr; }
	.tnt-browse__card { min-height: 140px; }
	.tnt-browse__media { flex-basis: 40%; }
}

/* ============================================================ WHY WE FARM */

.tnt-why__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
.tnt-why__media {
	position: relative;
}
.tnt-why__media::before {
	content: '';
	position: absolute;
	inset: 20px -20px -20px 20px;
	background: var(--tnt-green-soft);
	border-radius: var(--tnt-radius-lg);
	z-index: -1;
}
.tnt-why__img {
	width: 100%;
	max-height: 540px;
	object-fit: cover;
	border-radius: var(--tnt-radius-lg);
	box-shadow: var(--tnt-shadow-lg);
}
.tnt-why__copy h2 { margin: 0.5rem 0 var(--tnt-sp-4); }
.tnt-why__body p { margin: 0 0 var(--tnt-sp-4); }
.tnt-why__body p:last-child { margin-bottom: var(--tnt-sp-5); }

/* ============================================================ WHAT WE GROW */

.tnt-grow__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--tnt-sp-4);
	margin-bottom: var(--tnt-sp-6);
}
.tnt-grow__card {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	background-color: var(--tnt-green-soft);
	background-size: cover;
	background-position: center;
	border-radius: var(--tnt-radius-md);
	overflow: hidden;
	box-shadow: var(--tnt-shadow-xs);
	transition: transform var(--tnt-t-normal), box-shadow var(--tnt-t-normal);
}
.tnt-grow__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tnt-shadow-md);
}
.tnt-grow__card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(47, 87, 54, 0.88) 100%);
	pointer-events: none;
}
.tnt-grow__card figcaption {
	position: absolute;
	left: var(--tnt-sp-4);
	right: var(--tnt-sp-4);
	bottom: var(--tnt-sp-4);
	z-index: 2;
	color: var(--tnt-white);
	font-family: var(--tnt-font-display);
	font-weight: 600;
	font-size: 1rem;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	line-height: 1.2;
}
.tnt-grow__cta {
	text-align: center;
	margin-top: var(--tnt-sp-5);
}

/* ============================================================ TRUST BAR */

.tnt-trust {
	background: var(--tnt-white);
	border-top: 1px solid var(--tnt-border);
	border-bottom: 1px solid var(--tnt-border);
	padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.tnt-trust__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	color: var(--tnt-green);
	font-family: var(--tnt-font-display);
	font-weight: 500;
	font-size: 0.9375rem;
}
.tnt-trust__list li {
	display: inline-flex;
	align-items: center;
	gap: var(--tnt-sp-2);
}
.tnt-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--tnt-radius-pill);
	background: var(--tnt-green-soft);
	color: var(--tnt-green);
}

/* ============================================================ HOW IT WORKS */

.tnt-how__steps {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--tnt-sp-6);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--tnt-sp-5);
}
.tnt-how__steps li {
	background: var(--tnt-white);
	border: 1px solid var(--tnt-border);
	border-radius: var(--tnt-radius-md);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	text-align: center;
	box-shadow: var(--tnt-shadow-xs);
	transition: transform var(--tnt-t-normal), box-shadow var(--tnt-t-normal);
}
.tnt-how__steps li:hover {
	transform: translateY(-3px);
	box-shadow: var(--tnt-shadow-sm);
}
.tnt-how__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--tnt-radius-pill);
	background: var(--tnt-orange);
	color: var(--tnt-white);
	font-family: var(--tnt-font-display);
	font-weight: 700;
	font-size: 1.5rem;
	margin: 0 auto var(--tnt-sp-4);
}
.tnt-how__title {
	margin: 0 0 var(--tnt-sp-3);
	font-size: 1.25rem;
}
.tnt-how__body { color: var(--tnt-text-muted); }
.tnt-how__body p { margin: 0 auto; max-width: 32ch; }
.tnt-how__cta { text-align: center; }

/* ============================================================ TESTIMONIALS */

.tnt-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--tnt-sp-5);
}
/* If only 3 testimonials, balanced row. If 4, the 4th wraps under */
.tnt-testimonials__grid > :nth-child(4):last-child {
	grid-column: 1 / -1;
	max-width: 720px;
	margin-inline: auto;
}
.tnt-testimonial {
	position: relative;
	background: var(--tnt-white);
	border: 1px solid var(--tnt-border);
	border-radius: var(--tnt-radius-lg);
	padding: var(--tnt-sp-6) var(--tnt-sp-5);
	margin: 0;
	box-shadow: var(--tnt-shadow-xs);
}
.tnt-testimonial__mark {
	color: var(--tnt-green-soft);
	margin-bottom: var(--tnt-sp-3);
	display: block;
}
.tnt-testimonial__quote {
	color: var(--tnt-text);
	font-size: 1.0625rem;
	line-height: 1.55;
	margin: 0 0 var(--tnt-sp-5);
	font-style: italic;
}
.tnt-testimonial__attr {
	display: flex;
	align-items: center;
	gap: var(--tnt-sp-3);
	font-style: normal;
}
.tnt-testimonial__photo {
	width: 44px;
	height: 44px;
	border-radius: var(--tnt-radius-pill);
	object-fit: cover;
	flex-shrink: 0;
}
.tnt-testimonial__attr cite {
	font-style: normal;
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.tnt-testimonial__attr strong {
	color: var(--tnt-green);
	font-family: var(--tnt-font-display);
	font-weight: 600;
	font-size: 0.9375rem;
}
.tnt-testimonial__attr span {
	color: var(--tnt-text-muted);
	font-size: 0.8125rem;
	margin-top: 2px;
}

/* ============================================================ MEET YOUR FARMER */

.tnt-meet {
	position: relative;
	overflow: hidden;
}
.tnt-meet::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--tnt-green);
	z-index: 0;
}
/* Subtle leafy texture overlay */
.tnt-meet::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.06), transparent 40%),
	                  radial-gradient(circle at 5% 90%, rgba(255,255,255,0.04), transparent 35%);
	z-index: 0;
	pointer-events: none;
}
.tnt-meet > * { position: relative; z-index: 1; }

.tnt-meet__grid {
	display: grid;
	grid-template-columns: 1.05fr 1.1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
.tnt-meet__media {
	position: relative;
}
.tnt-meet__img {
	width: 100%;
	max-height: 620px;
	object-fit: cover;
	border-radius: var(--tnt-radius-lg);
	box-shadow: var(--tnt-shadow-lg);
}
.tnt-meet__copy {
	color: var(--tnt-cream);
}
.tnt-meet__eyebrow {
	color: var(--tnt-orange);
}
.tnt-meet__copy h2 {
	color: var(--tnt-white);
	margin: 0.5rem 0 var(--tnt-sp-5);
	font-size: clamp(2rem, 3.2vw, 2.75rem);
}
.tnt-meet__body p {
	color: rgba(245, 241, 232, 0.92);
	margin: 0 0 var(--tnt-sp-4);
	font-size: 1.0625rem;
	line-height: 1.65;
	max-width: 56ch;
}
.tnt-meet__ctas {
	display: flex;
	gap: var(--tnt-sp-5);
	align-items: center;
	flex-wrap: wrap;
	margin-top: var(--tnt-sp-5);
}
.tnt-meet__link {
	font-family: var(--tnt-font-display);
	font-weight: 600;
	color: var(--tnt-cream);
	border-bottom: 2px solid var(--tnt-orange);
	padding-bottom: 4px;
	transition: color var(--tnt-t-fast);
}
.tnt-meet__link:hover { color: var(--tnt-orange); }

/* ============================================================ NEWSLETTER */

.tnt-newsletter {
	background: var(--tnt-bg);
}
.tnt-newsletter .tnt-section-head h2 { color: var(--tnt-heading); }
.tnt-newsletter .tnt-section-head p  { color: var(--tnt-text-muted); }

.tnt-newsletter__form {
	display: flex;
	gap: var(--tnt-sp-3);
	max-width: 540px;
	margin: 0 auto;
}
.tnt-newsletter__form input[type="email"] {
	flex: 1;
	padding: 0.9375rem 1.25rem;
	border-radius: var(--tnt-radius-pill);
	border: 2px solid var(--tnt-border);
	background: var(--tnt-white);
	color: var(--tnt-text);
	font-family: var(--tnt-font-body);
	font-size: 1rem;
	outline: none;
	transition: border-color var(--tnt-t-fast);
}
.tnt-newsletter__form input[type="email"]:focus {
	border-color: var(--tnt-orange);
}
.tnt-newsletter__legal {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--tnt-text-muted);
	margin-top: var(--tnt-sp-4);
}

/* ============================================================ RESPONSIVE */

@media (max-width: 960px) {
	.tnt-why__grid,
	.tnt-meet__grid {
		grid-template-columns: 1fr;
	}
	.tnt-why__media,
	.tnt-meet__media {
		order: -1;
		max-width: 540px;
		margin-inline: auto;
	}
	.tnt-grow__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.tnt-how__steps,
	.tnt-testimonials__grid {
		grid-template-columns: 1fr;
	}
	.tnt-testimonials__grid > :nth-child(4):last-child {
		max-width: none;
	}
}
@media (max-width: 560px) {
	.tnt-hero { min-height: 540px; }
	.tnt-newsletter__form { flex-direction: column; }
}
