/*
 * Roots 'n' Fruits — home (front page) styles.
 *
 * Enqueued only on the front page (see functions.php). Home-specific layout and
 * presentation, built on the shared design tokens (assets/css/tokens.css) and
 * shared shell/button components (assets/css/offer.css). No token duplication.
 */

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.rnf-hero {
	position: relative;
	min-height: clamp(540px, 86vh, 760px);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	/* Reserve top space so the transparent over-header doesn't cover content. */
	padding: 120px 22px 64px;
	color: var(--paper);
}

/* Tunable darkening for legibility — a CSS scrim over the photo, not baked in. */
.rnf-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(22, 28, 21, .30), rgba(20, 26, 19, .52) 50%, rgba(22, 28, 21, .30));
	pointer-events: none;
}

.rnf-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.rnf-hero__eyebrow {
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 13px;
	font-weight: 500;
	color: var(--sage3);
}

/* .rnf prefix raises specificity to 0,2,0 so this beats `.rnf .disp`
   (color: var(--ink)) from offer.css — keeps the H1 light over the photo. */
.rnf .rnf-hero__title {
	font-family: var(--font-serif);
	font-weight: 500;
	color: var(--paper2);
	font-size: clamp(34px, 6vw, 56px);
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
	margin: 0 auto 18px;
	max-width: 16ch;
}

.rnf-hero__sub {
	color: var(--paper2);
	font-size: clamp(16px, 2.2vw, 19px);
	line-height: 1.55;
	max-width: 40ch;
	margin: 0 auto 28px;
}

/* Keep grouped words together so the line breaks before the group (e.g.
   "toxic chemicals" in the hero subhead), without a hard <br>. */
.rnf-nowrap {
	white-space: nowrap;
}

/* Desktop-only forced break before "and" in the hero subhead. Suppressed on
   phones so the line wraps naturally; restored at the desktop breakpoint. */
.rnf-hero__br {
	display: none;
}

@media (min-width: 768px) {
	.rnf-hero__br {
		display: inline;
	}
}

.rnf-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

/* Cream button variants for the hero (over a dark photo). Built on .rnf-btn. */
.rnf-btn--cream {
	background: var(--paper);
	color: var(--pine);
	border: none;
}

.rnf-btn--cream:hover {
	background: #fff;
	color: var(--pine);
}

.rnf-btn--cream-ghost {
	background: transparent;
	color: var(--paper);
	border: 1.5px solid var(--paper);
}

.rnf-btn--cream-ghost:hover {
	background: rgba(246, 242, 232, 0.14);
	color: var(--paper);
}

/* ---------------------------------------------------------------------------
 * What we stand for (#about) — centered cream intro band
 *
 * Plain cream background with dark body text in a centered, readability-
 * constrained column. (This section was previously a Scotland-photo hero; the
 * background + white text were reverted to cream/dark — /about keeps the hero.)
 * ------------------------------------------------------------------------- */
.rnf-about {
	background: var(--paper2);
}

/* Comfortable vertical padding (side padding stays from .rnf-sec). */
.rnf-sec.rnf-about {
	padding-block: clamp(72px, 10vw, 120px);
}

.rnf-about__grid {
	max-width: 680px; /* readable measure (~640–720px), centered column */
	margin-inline: auto;
}

.rnf-about__p {
	color: var(--inks); /* original dark body text */
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 18px;
}

.rnf-about__p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
 * Follow along
 * ------------------------------------------------------------------------- */
.rnf-follow {
	background: var(--paper);
}

.rnf-follow__kick {
	text-align: center;
}

.rnf-follow__title {
	font-family: var(--font-serif);
	font-weight: 500;
	color: var(--ink);
	font-size: clamp(24px, 4vw, 32px);
	line-height: 1.2;
	text-align: center;
	margin: 0 0 26px;
}

.rnf-follow__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

/* Portrait tiles (~3:4). Full-bleed cover photo per tile (same pattern as the
   portal category cards), with --sage2 as a load/fallback tint. The pill below
   keeps the link text readable over any photo. */
.rnf-tile {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	background: var(--sage2);
	background-size: cover;
	background-position: center;
}

/* Exact filenames/case are intentional — the live host is case-sensitive. */
.rnf-tile--yt { background-image: url('../images/youtube.JPG'); }   /* YouTube */
.rnf-tile--ig { background-image: url('../images/instagram.JPG'); } /* Instagram */
.rnf-tile--tt { background-image: url('../images/tiktok.JPG'); }    /* TikTok */
.rnf-tile--fb { background-image: url('../images/facebook.JPG'); }  /* Facebook */

.rnf-tile__label {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: rgba(246, 242, 232, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--pine);
	font-size: 14px;
	font-weight: 500;
}

.rnf-tile:hover .rnf-tile__label {
	background: rgba(255, 255, 255, 0.92);
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.rnf-about,
	.rnf-follow {
		padding: 64px 26px;
	}
}

/* Follow tiles reflow: 4-up (desktop) → 2-up (tablet) → stacked (phone). */
@media (max-width: 860px) {
	.rnf-follow__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.rnf-follow__grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	.rnf-hero {
		padding-left: 20px;
		padding-right: 20px;
	}
	.rnf-sec {
		padding-left: 20px;
		padding-right: 20px;
	}
}
