/* ==========================================================================
   Bethel River Farm — brand system
   Mobile-first. WCAG AA on cream. Loads after Kadence, so plain element
   selectors here win; a few rules carry `body` prefixes where Kadence is
   more specific.
   ========================================================================== */

:root {
	--brf-cream: #F7F2E8;
	--brf-olive: #6B7245;
	--brf-olive-dark: #4A5030;   /* AA-safe for text on cream */
	--brf-rust: #B15E2F;
	--brf-rust-dark: #8E4820;    /* AA-safe for text on cream */
	--brf-river: #9DB8BE;
	--brf-brown: #3E3529;
	--brf-denim: #7A8F9D;        /* darkened so white text passes AA */
	--brf-tan: #C9B99A;
	--brf-font-display: 'Caveat', 'Segoe Script', cursive;
	--brf-font-body: 'Lora', Georgia, serif;

	--brf-section-y: clamp(48px, 8vw, 92px);
	--brf-gap: clamp(20px, 4vw, 40px);
}

/* --- Base -------------------------------------------------------------- */

body {
	background: var(--brf-cream);
	color: var(--brf-brown);
	font-family: var(--brf-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
}

body h1, body h2, body h3, .brf-script {
	font-family: var(--brf-font-display);
	color: var(--brf-olive-dark);
	font-weight: 700;
	letter-spacing: .005em;
}

/* Caveat is a handwriting face: it reads smaller than its point size and needs
   tighter leading than a text face. */
body h1 { font-size: clamp(2.5rem, 6.5vw, 4rem); line-height: 1.08; margin: 0 0 .4em; }
body h2 { font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.12; margin: 0 0 .45em; }
body h3 { font-size: clamp(1.65rem, 3.4vw, 2.1rem); line-height: 1.2; margin: 0 0 .35em; }

.brf-section p, .brf-section li { max-width: 64ch; }
.brf-section p { margin: 0 0 1.1em; }
.brf-section p:last-child { margin-bottom: 0; }

.brf-kicker {
	display: block;
	font-family: var(--brf-font-body);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brf-rust-dark);
	margin-bottom: .5em;
	line-height: 1.4;
}

/* --- Buttons (44px+ tap targets, no hover dependency) ------------------- */

.brf-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 13px 30px; border-radius: 999px;
	font-family: var(--brf-font-body); font-weight: 600; font-size: 1.02rem;
	line-height: 1.2; text-align: center; text-decoration: none;
	border: none; cursor: pointer; transition: background-color .15s, transform .1s;
}
.brf-btn + .brf-btn { margin-left: 10px; }
.brf-btn:active { transform: scale(.98); }
.brf-btn-rust { background: var(--brf-rust); color: #fff; }
.brf-btn-rust:hover, .brf-btn-rust:focus { background: var(--brf-rust-dark); color: #fff; }
.brf-btn-olive { background: var(--brf-olive); color: #fff; }
.brf-btn-olive:hover, .brf-btn-olive:focus { background: var(--brf-olive-dark); color: #fff; }
.brf-btn-outline { background: transparent; color: var(--brf-olive-dark); border: 2px solid var(--brf-olive); }
.brf-btn-outline:hover, .brf-btn-outline:focus { background: var(--brf-olive); color: #fff; }
.brf-btn:focus-visible { outline: 3px solid var(--brf-rust); outline-offset: 3px; }

/* --- Hero -------------------------------------------------------------- */

.brf-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.brf-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.brf-hero-inner {
	position: relative; width: 100%; padding: clamp(40px, 10vw, 90px) 20px clamp(32px, 5vw, 56px);
	background: linear-gradient(transparent, rgba(62,53,41,.5) 35%, rgba(62,53,41,.88));
	color: #fff; text-align: center;
}
body .brf-hero-inner h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45); max-width: 16ch; margin: 0 auto .5em; }
.brf-hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 46ch; margin: 0 auto 26px; color: #F2EADC; }

/* --- Sections ---------------------------------------------------------- */

.brf-section { padding: var(--brf-section-y) 20px; }
.brf-section-inner { max-width: 1120px; margin: 0 auto; }
.brf-section-centered, .brf-section-inner > h2[style*="center"] { text-align: center; }
.brf-section-denim { background: var(--brf-denim); color: #fff; }
body .brf-section-denim h2, body .brf-section-denim h3 { color: #fff; }
.brf-section-denim .brf-kicker { color: #FCE7D5; }
.brf-section-tan { background: var(--brf-tan); }

/* Centered section headings get their paragraph centered too */
.brf-section-inner[style*="center"] p { margin-left: auto; margin-right: auto; }

/* --- Proof band -------------------------------------------------------- */

.brf-proof-band { position: relative; }
.brf-proof-band img {
	width: 100%; display: block;
	height: clamp(340px, 58vh, 560px);
	object-fit: cover; object-position: center 42%;
}
.brf-proof-caption {
	position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
	padding: 70px 20px 30px;
	background: linear-gradient(transparent, rgba(62,53,41,.8));
	color: #fff; font-family: var(--brf-font-display);
	font-size: clamp(1.8rem, 4.5vw, 2.9rem); line-height: 1.15;
}

/* --- Photo + copy split rows ------------------------------------------- */

.brf-split { display: grid; gap: var(--brf-gap); align-items: center; }
.brf-split img {
	width: 100%; border-radius: 18px;
	box-shadow: 0 10px 34px rgba(62,53,41,.2);
	/* Portrait farm photos would otherwise tower over their copy */
	max-height: 520px; object-fit: cover;
}
@media (min-width: 768px) {
	.brf-split { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); }
	.brf-split.is-flipped > :first-child { order: 2; }
	.brf-split img { max-height: 600px; }
}

/* --- Why 4-up ---------------------------------------------------------- */

.brf-why-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 600px) { .brf-why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .brf-why-grid { grid-template-columns: repeat(4, 1fr); } }
.brf-why { background: #fff; border-radius: 18px; padding: 28px 22px; text-align: center; border-top: 5px solid var(--brf-olive); }
.brf-why p { max-width: none; font-size: .98rem; }

/* --- Tier cards -------------------------------------------------------- */

.brf-tiers { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 900px) { .brf-tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.brf-tier {
	background: #fff; border-radius: 22px; padding: 34px 26px 28px; text-align: center;
	border: 2px solid var(--brf-tan); position: relative;
	display: flex; flex-direction: column; gap: 14px;
}
.brf-tier.is-popular { border-color: var(--brf-rust); box-shadow: 0 12px 38px rgba(177,94,47,.24); }
.brf-tier-flag {
	position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
	background: var(--brf-rust); color: #fff; border-radius: 999px;
	padding: 5px 20px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; white-space: nowrap;
}
body .brf-tier h3 { font-size: clamp(1.9rem, 4vw, 2.3rem); margin: 0; }
.brf-tier-price { font-size: 2.1rem; font-weight: 700; color: var(--brf-rust-dark); line-height: 1.1; margin: 0; }
.brf-tier-price small { font-size: .95rem; color: var(--brf-brown); font-weight: 400; }
.brf-tier ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.brf-tier li { padding: 7px 0 7px 28px; position: relative; max-width: none; font-size: .97rem; line-height: 1.55; }
.brf-tier li::before { content: '🥚'; position: absolute; left: 0; top: 6px; }
.brf-tier .brf-btn { margin-top: auto; width: 100%; }

/* --- Founding banner --------------------------------------------------- */

.brf-founding-banner {
	background: var(--brf-rust); color: #fff; text-align: center;
	padding: 14px 20px; font-size: 1rem; line-height: 1.5;
}
.brf-founding-banner a { color: #fff; font-weight: 700; text-decoration: underline; }

/* --- Zip checker ------------------------------------------------------- */

.brf-zip-checker { max-width: 540px; margin: 0 auto; }
.brf-zip-form, .brf-waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.brf-zip-form input, .brf-waitlist-form input {
	flex: 1 1 210px; min-height: 52px; border-radius: 999px;
	border: 2px solid var(--brf-tan); padding: 10px 22px;
	font-size: 1.05rem; font-family: var(--brf-font-body); color: var(--brf-brown);
}
.brf-zip-form input:focus, .brf-waitlist-form input:focus { outline: 3px solid var(--brf-rust); outline-offset: 2px; }
.brf-zip-result { margin-top: 16px; font-size: 1.05rem; line-height: 1.6; min-height: 1.5em; }
.brf-zip-result .brf-btn { margin-top: 12px; }
.brf-zip-success { color: #EAF1DC; font-weight: 600; }
.brf-zip-error, .brf-zip-warn { color: #FFDCC2; font-weight: 600; }
.brf-waitlist-form { margin-top: 14px; background: rgba(255,255,255,.14); border-radius: 18px; padding: 18px; }
.brf-waitlist-msg { flex-basis: 100%; color: #F2EADC; margin: 0 0 4px; font-size: .98rem; }
/* Light-background variant (Membership, How It Works) */
.brf-on-light .brf-zip-success { color: var(--brf-olive-dark); }
.brf-on-light .brf-zip-error, .brf-on-light .brf-zip-warn { color: var(--brf-rust-dark); }
.brf-on-light .brf-waitlist-form { background: #fff; border: 2px solid var(--brf-tan); }
.brf-on-light .brf-waitlist-msg { color: var(--brf-brown); }
.brf-zip-fallback { text-align: center; }

/* --- Timeline ---------------------------------------------------------- */

.brf-timeline { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .brf-timeline { grid-template-columns: repeat(5, 1fr); } }
.brf-timeline li {
	background: #fff; border-radius: 16px; padding: 22px;
	border-left: 5px solid var(--brf-river); max-width: none; font-size: .98rem;
}
.brf-timeline .brf-step-num {
	font-family: var(--brf-font-display); font-size: 1.7rem; line-height: 1.2;
	color: var(--brf-rust-dark); display: block; margin-bottom: 4px;
}

/* --- FAQ --------------------------------------------------------------- */

.brf-faq details { background: #fff; border-radius: 14px; margin-bottom: 12px; padding: 2px 22px; }
.brf-faq summary {
	min-height: 56px; display: flex; align-items: center; cursor: pointer;
	font-weight: 600; font-size: 1.06rem; line-height: 1.4; list-style: none; padding: 10px 0;
}
.brf-faq summary::-webkit-details-marker { display: none; }
.brf-faq summary::after { content: '+'; margin-left: auto; padding-left: 16px; font-size: 1.7rem; color: var(--brf-rust); line-height: 1; }
.brf-faq details[open] summary::after { content: '–'; }
.brf-faq details p { padding-bottom: 18px; margin: 0; }

/* --- Account (My Delivery) --------------------------------------------- */

.brf-account-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .brf-account-grid { grid-template-columns: 1fr 1fr; } }
.brf-card { background: #fff; border-radius: 18px; padding: 24px; border: 1px solid var(--brf-tan); }
.brf-card h3 { margin-top: 0; }
.brf-card label { display: block; margin: 12px 0; font-weight: 600; }
.brf-card input[type=date], .brf-card textarea {
	width: 100%; min-height: 52px; border: 2px solid var(--brf-tan); border-radius: 12px;
	padding: 12px 15px; font-family: var(--brf-font-body); font-size: 1rem; margin-top: 6px;
}
.brf-card-bonus { border-color: var(--brf-rust); border-width: 2px; }
.brf-bonus-tracker { margin: 8px 0; }
.brf-bonus-tracker .brf-egg { font-size: 2rem; filter: grayscale(1) opacity(.32); margin-right: 6px; }
.brf-bonus-tracker .brf-egg.is-delivered { filter: none; }
.brf-badge-bonus { display: inline-block; background: #FBE3CF; color: var(--brf-rust-dark); border-radius: 999px; padding: 3px 13px; font-size: .88rem; font-weight: 700; }
.brf-banner { padding: 15px 19px; border-radius: 14px; margin-bottom: 18px; line-height: 1.6; }
.brf-banner-warn { background: #FBE3CF; color: var(--brf-rust-dark); font-weight: 600; }
.brf-empty { text-align: center; }
.brf-muted { color: #6B6152; font-size: .96rem; }
.brf-big { font-size: 1.2rem; line-height: 1.5; }
.brf-ok { color: var(--brf-olive-dark); font-weight: 600; }
.brf-err { color: var(--brf-rust-dark); font-weight: 600; }
.brf-founding-optin {
	display: flex; gap: 13px; background: #FBE3CF; border: 2px solid var(--brf-rust);
	border-radius: 16px; padding: 17px; margin: 18px 0; cursor: pointer; line-height: 1.55;
}
.brf-founding-optin input { width: 22px; height: 22px; margin-top: 3px; flex-shrink: 0; }

/* --- Footer band ------------------------------------------------------- */

.brf-footer-band { position: relative; text-align: center; color: #fff; }
.brf-footer-band .brf-footer-photo { width: 100%; height: 360px; object-fit: cover; object-position: center 45%; display: block; }
.brf-footer-band-inner {
	position: absolute; inset: 0; background: rgba(62,53,41,.68);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 16px; padding: 24px 20px;
}
.brf-claims { max-width: 68ch; font-size: 1rem; line-height: 1.65; margin: 0; }
.brf-footer-loc { margin: 0; font-size: .95rem; }
.brf-badges { display: flex; gap: 18px; }
.brf-badges img { background: #fff; border-radius: 50%; padding: 6px; }

/* --- Global guards ----------------------------------------------------- */

html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
