/*
Theme Name: Walnut Farm
Theme URI: https://github.com/anisur2805/walnut-farm
Author: Anisur Rahman
Author URI: http://portfolio.clandevs.com
Description: A warm, editorial theme for Walnut Hollow Farm — hero slideshow, events, news and interior pages with banners and section sidebars.
Version: 1.0.0
Text Domain: walnut-farm
*/

/* =========================================================================
   1. Design tokens
   ========================================================================= */
:root {
	--forest: #23301f;
	--forest-700: #2f4326;
	--forest-500: #3f5a32;
	--moss: #5d7043;
	--sage: #9aab7e;
	--sage-soft: #c9d3b8;
	--cream: #f7f3e8;
	--paper: #fffdf8;
	--sand: #ece2cc;
	--clay: #b5623a;
	--clay-dark: #994e2b;
	--gold: #c99a3c;
	--ink: #26281f;
	--body: #414434;
	--muted: #6f7361;
	--line: rgba(35, 48, 31, .14);
	--line-strong: rgba(35, 48, 31, .28);

	--font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--wrap: 1180px;
	--wrap-narrow: 760px;
	--gutter: clamp(1.15rem, 4vw, 2.5rem);

	--radius-sm: 8px;
	--radius: 16px;
	--radius-lg: 26px;
	--radius-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(27, 33, 22, .06), 0 4px 14px rgba(27, 33, 22, .05);
	--shadow: 0 18px 40px -22px rgba(27, 33, 22, .4);
	--shadow-lg: 0 40px 80px -40px rgba(27, 33, 22, .5);

	--ease: cubic-bezier(.22, .61, .36, 1);
	--header-h: 84px;
}

/* =========================================================================
   2. Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--body);
	font-family: var(--font-sans);
	font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--forest);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.9rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--forest); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
address { font-style: normal; }

::selection { background: var(--sage); color: var(--forest); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* =========================================================================
   3. Layout helpers
   ========================================================================= */
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-content-wrap { display: block; min-height: 40vh; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	padding-block: clamp(3rem, 7vw, 5.5rem);
	align-items: start;
}
@media (min-width: 940px) {
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}
.layout__main { min-width: 0; }

/* =========================================================================
   4. Typography helpers
   ========================================================================= */
.eyebrow {
	font-family: var(--font-sans);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--moss);
	margin: 0 0 .9rem;
	display: inline-flex;
	align-items: center;
	gap: .6em;
}
.eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--clay);
	border-radius: 2px;
}
.eyebrow--light { color: var(--sage-soft); }
.eyebrow--light::before { background: var(--gold); }

.archive-lede {
	max-width: 62ch;
	font-size: 1.1rem;
	color: var(--muted);
	margin-bottom: 2.4rem;
}

/* =========================================================================
   5. Buttons
   ========================================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	padding: .85em 1.6em;
	background: var(--forest);
	color: var(--cream);
	font-family: var(--font-sans);
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .01em;
	border: 1px solid var(--forest);
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
	box-shadow: var(--shadow-sm);
}
.btn:hover {
	background: var(--clay);
	border-color: var(--clay);
	color: #fff;
	transform: translateY(-2px);
}
.btn--ghost {
	background: transparent;
	color: var(--forest);
	border-color: var(--line-strong);
	box-shadow: none;
}
.btn--ghost:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn--small { padding: .62em 1.15em; font-size: .85rem; }

.hero .btn--ghost, .peace-band .btn--ghost { color: var(--cream); border-color: rgba(255,255,255,.45); }
.hero .btn--ghost:hover, .peace-band .btn--ghost:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }

.tag {
	display: inline-block;
	padding: .2em .7em;
	border-radius: var(--radius-pill);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	background: var(--sage-soft);
	color: var(--forest-700);
}
.tag--muted { background: var(--sand); color: var(--muted); }

/* =========================================================================
   6. Header
   ========================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 70;
	background: rgba(255, 253, 248, .92);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px -20px rgba(27,33,22,.6); }

.header-bar {
	background: var(--forest);
	color: var(--sage-soft);
	font-size: .8rem;
	letter-spacing: .02em;
}
.header-bar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-block: .5rem;
}
.header-bar a { color: inherit; }
.header-bar a:hover { color: #fff; }
.header-bar__contact { display: inline-flex; gap: .6rem; align-items: center; }
.header-bar__sep { opacity: .45; }
.header-bar__note { display: inline-flex; align-items: center; gap: .55em; }
.header-bar__note .dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 0 rgba(201,154,60,.6);
	animation: pulse 3s var(--ease) infinite;
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(201,154,60,.55); }
	70% { box-shadow: 0 0 0 9px rgba(201,154,60,0); }
	100% { box-shadow: 0 0 0 0 rgba(201,154,60,0); }
}
@media (max-width: 720px) {
	.header-bar__note { display: none; }
	.header-bar__inner { justify-content: center; }
}

.header-main__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-block: .85rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--forest); }
.brand:hover { color: var(--forest); }
.brand__mark { width: 40px; height: 40px; color: var(--forest-700); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--forest); }
.brand__tag { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.primary-nav a {
	position: relative;
	display: inline-block;
	padding: .5rem .72rem;
	color: var(--forest);
	font-size: .95rem;
	font-weight: 500;
	white-space: nowrap;
	border-radius: var(--radius-pill);
}
.primary-nav a::after {
	content: "";
	position: absolute;
	left: .9rem; right: .9rem; bottom: .3rem;
	height: 2px;
	background: var(--clay);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ease);
}
.primary-nav a:hover::after, .primary-nav .is-active a::after { transform: scaleX(1); }
.primary-nav .is-active a { color: var(--clay-dark); }

.header-cta { flex: none; }

.nav-toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	background: none;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	padding: .5rem .85rem;
	color: var(--forest);
	font-family: var(--font-sans);
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 20px; }
.nav-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-close { display: none; }

@media (max-width: 940px) {
	/* backdrop-filter would make the header a containing block for the fixed
	   drawer, trapping it inside the header — disable it on small screens. */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
	.nav-toggle { display: inline-flex; }
	.nav-close {
		display: inline-flex; align-items: center; gap: .5rem;
		position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2;
		padding: .5rem .9rem;
		background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
		color: var(--forest); font-family: var(--font-sans); font-size: .85rem; font-weight: 600; cursor: pointer;
	}
	.nav-close svg { width: 16px; height: 16px; }
	.header-cta { display: none; }
	.primary-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(86vw, 360px);
		background: var(--paper);
		padding: 6rem 1.6rem 2rem;
		transform: translateX(102%);
		transition: transform .4s var(--ease);
		box-shadow: var(--shadow-lg);
		z-index: 80;
		overflow-y: auto;
	}
	.primary-nav ul { flex-direction: column; gap: .2rem; }
	.primary-nav a { font-size: 1.25rem; padding: .7rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; display: block; }
	.primary-nav a::after { display: none; }
	body.nav-open .primary-nav { transform: translateX(0); }
	body.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	body.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
	body.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	body.nav-open { overflow: hidden; }
	.nav-scrim {
		position: fixed; inset: 0; background: rgba(20,26,16,.5);
		opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; z-index: 65;
	}
	body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
}
@media (min-width: 941px) { .nav-scrim { display: none; } }

/* =========================================================================
   7. Hero slideshow
   ========================================================================= */
.hero { position: relative; background: var(--forest); color: var(--cream); overflow: hidden; }
.hero__viewport { position: relative; min-height: clamp(560px, 84vh, 860px); }
.hero__slide {
	position: absolute; inset: 0;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.04);
	transition: opacity 1s var(--ease), transform 1.4s var(--ease), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.hero__media {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
}
.hero__scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(20,26,16,.42) 0%, rgba(20,26,16,.12) 40%, rgba(20,26,16,.68) 100%),
		linear-gradient(90deg, rgba(20,26,16,.55) 0%, rgba(20,26,16,.1) 60%);
}
.hero__content {
	position: relative;
	z-index: 2;
	min-height: clamp(560px, 84vh, 860px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-block: clamp(3rem, 8vw, 6rem);
	max-width: 760px;
}
.hero__eyebrow { color: var(--sage-soft); }
.hero__title { color: #fff; margin-bottom: .45em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__text { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 52ch; margin-bottom: 1.6rem; }
.hero__actions { margin: 0; }

.hero__controls {
	position: absolute;
	left: 0; right: 0; bottom: clamp(1rem, 3vw, 2rem);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 1.2rem;
	justify-content: flex-end;
}
.hero__dots { display: inline-flex; gap: .5rem; }
.hero__dot {
	width: 34px; height: 4px; padding: 0;
	border: none; border-radius: 4px;
	background: rgba(255,255,255,.35);
	cursor: pointer;
	transition: background .3s var(--ease), transform .3s var(--ease);
}
.hero__dot.is-active { background: var(--gold); transform: scaleY(1.5); }
.hero__arrow {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.4);
	background: rgba(20,26,16,.25);
	color: #fff;
	cursor: pointer;
	transition: background .25s var(--ease), transform .25s var(--ease);
}
.hero__arrow:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-1px); }
.hero__arrow svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .hero__controls { justify-content: center; } }

/* =========================================================================
   8. Page banner (interior)
   ========================================================================= */
.page-banner {
	position: relative;
	color: #fff;
	overflow: hidden;
	min-height: clamp(300px, 38vh, 440px);
	display: flex;
	align-items: flex-end;
	background: var(--forest);
}
.page-banner__media {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	transform: scale(1.02);
}
.page-banner__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20,26,16,.25), rgba(20,26,16,.72));
}
.page-banner__content {
	position: relative;
	z-index: 2;
	padding-block: clamp(2rem, 5vw, 3.2rem);
	width: 100%;
}
.page-banner__title { color: #fff; margin: .35em 0 0; }
.page-banner__sub { color: rgba(255,255,255,.9); max-width: 60ch; margin-top: .5em; }

/* Breadcrumbs */
.breadcrumbs ol {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: .45rem;
	font-size: .82rem; letter-spacing: .02em;
	color: rgba(255,255,255,.82);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: .45rem; }
.breadcrumbs a { color: rgba(255,255,255,.82); }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .is-current span { color: #fff; font-weight: 600; }

/* =========================================================================
   9. Homepage sections
   ========================================================================= */
.intro { padding-block: clamp(3.5rem, 8vw, 6rem); }
.intro__lede { max-width: 20ch; }
.intro__cols { display: grid; gap: 1.4rem 2.5rem; max-width: 74ch; margin-top: 1rem; }
@media (min-width: 720px) { .intro__cols { grid-template-columns: 1fr 1fr; } }
.intro__stats {
	list-style: none; margin: 2.5rem 0 0; padding: 2rem 0 0;
	border-top: 1px solid var(--line);
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.intro__num { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3rem); color: var(--forest); line-height: 1; }
.intro__label { display: block; margin-top: .4rem; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

.front-grid {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4rem);
	padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem);
}
@media (min-width: 900px) { .front-grid { grid-template-columns: 1.15fr .85fr; } }
.front-col--events {
	background: var(--cream);
	border-radius: var(--radius-lg);
	padding: clamp(1.15rem, 2.2vw, 1.6rem);
	border: 1px solid var(--line);
}

.section-head {
	display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem 1rem;
	margin-bottom: 1.8rem;
}
.section-head .eyebrow { width: 100%; margin-bottom: .2rem; }
.section-head__title { margin: 0; }
.section-head__link { margin-left: auto; font-size: .9rem; font-weight: 600; color: var(--clay-dark); }
.section-head__link:hover { color: var(--forest); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Post cards */
.post-grid { display: grid; gap: 1.6rem; }
@media (min-width: 620px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .post-grid--archive { grid-template-columns: repeat(3, 1fr); } }

.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--sage); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; gap: .5rem; margin: 0 0 .6rem; }
.card__title { margin: 0 0 .5rem; font-size: 1.3rem; }
.card__title a { color: var(--forest); }
.card__title a:hover { color: var(--clay-dark); }
.card__excerpt { color: var(--muted); margin-bottom: 1.1rem; }
.card__more {
	margin-top: auto;
	display: inline-flex; align-items: center; gap: .4em;
	font-size: .88rem; font-weight: 600; color: var(--clay-dark);
}
.card__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

/* Event cards */
.event-list { display: grid; gap: 1rem; }
.event-card {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: .95rem 1.05rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage); }
.event-card__date {
	width: 64px; height: 64px; flex: none;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: var(--forest); color: var(--cream);
	border-radius: 14px; line-height: 1;
}
/* Keep the badge text visible even when the whole card is a link (hover/focus). */
.event-card__date, .event-card__date:hover, .event-card__date:focus, .event-card__date:active { color: var(--cream); }
.event-card__month { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sage-soft); }
.event-card__day { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--cream); }
.event-card__title { margin: 0 0 .25rem; font-size: 1.18rem; }
.event-card__title a { color: var(--forest); }
.event-card__title a:hover { color: var(--clay-dark); }
.event-card__meta { font-size: .82rem; color: var(--muted); margin: 0 0 .3rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.event-card__excerpt { margin: .2rem 0 .4rem; color: var(--muted); font-size: .95rem; }
.event-card__place { display: inline-flex; align-items: center; gap: .4em; font-size: .85rem; color: var(--forest-700); margin: 0; }
.event-card__place svg { width: 16px; height: 16px; color: var(--clay); }
.event-card__arrow { color: var(--sage); }
.event-card__arrow svg { width: 26px; height: 26px; transition: transform .3s var(--ease), color .3s var(--ease); }
.event-card:hover .event-card__arrow svg { transform: translateX(4px); color: var(--clay); }
.event-card--past { opacity: .72; }
.event-list--archive .event-card { padding: 1.4rem 1.5rem; }
@media (max-width: 520px) {
	.event-card { grid-template-columns: auto 1fr; }
	.event-card__arrow { display: none; }
}

.empty-note {
	padding: 2.5rem;
	background: var(--cream);
	border-radius: var(--radius);
	border: 1px dashed var(--line-strong);
	color: var(--muted);
	text-align: center;
}

/* =========================================================================
   10. Peace band (Three.js)
   ========================================================================= */
.peace-band {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #2b3a24, #1b2416 70%);
	color: var(--cream);
	margin-block: clamp(3rem, 7vw, 5rem);
	min-height: clamp(420px, 60vh, 620px);
	display: flex;
	align-items: center;
}
.peace-band__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.peace-band__content { position: relative; z-index: 2; max-width: 620px; padding-block: clamp(3rem, 7vw, 5rem); }
.peace-band h2 { color: #fff; }
.peace-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.peace-band .btn { margin-top: 1rem; }

/* =========================================================================
   11. Farm life gallery + visit split
   ========================================================================= */
.farm-life { padding-block: clamp(2rem, 5vw, 4rem); }
.farm-life__grid {
	display: grid; gap: 1rem;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) {
	.farm-life__grid {
		grid-template-columns: 1.5fr 1fr 1fr;
		grid-template-rows: repeat(2, minmax(0, 1fr));
		height: clamp(460px, 36vw, 620px);
	}
	/* Higher specificity than the base .farm-life__item rule (which appears
	   later in this file) so the mosaic tiles fill their cells instead of
	   deriving a width from aspect-ratio and overflowing. */
	.farm-life__grid .farm-life__item { aspect-ratio: auto; height: 100%; }
	.farm-life__grid .farm-life__item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
	.farm-life__grid .farm-life__item:nth-child(2) { grid-column: 2; grid-row: 1; }
	.farm-life__grid .farm-life__item:nth-child(3) { grid-column: 3; grid-row: 1; }
	.farm-life__grid .farm-life__item:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }
}
.farm-life__item {
	position: relative; overflow: hidden; border-radius: var(--radius);
	margin: 0; aspect-ratio: 4 / 3; background: var(--sand);
}
.farm-life__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.farm-life__item:hover img { transform: scale(1.05); }
.farm-life__item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 1.1rem 1.2rem;
	background: linear-gradient(180deg, rgba(20,26,16,0), rgba(20,26,16,.78));
	display: flex; flex-direction: column;
}
.farm-life__label { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.farm-life__sub { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--sage-soft); }

.visit-split {
	display: grid; gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 860px) { .visit-split { grid-template-columns: 1fr 1fr; } }
.visit-split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.visit-split__media img { width: 100%; height: 100%; object-fit: cover; }
.visit-split__list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .6rem; }
.visit-split__list li { padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.visit-split__list strong { color: var(--forest); margin-right: .5em; }

/* =========================================================================
   12. Section sidebar
   ========================================================================= */
.section-sidebar { display: grid; gap: 1.6rem; }
@media (min-width: 940px) { .section-sidebar { position: sticky; top: calc(var(--header-h) + 1rem); } }
.section-nav { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.section-nav__eyebrow {
	font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss);
	margin: 0 0 .5rem; font-weight: 600;
}
.section-nav__title { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--forest); margin-bottom: .8rem; }
.section-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.section-nav__list a { display: block; padding: .6rem .75rem; border-radius: var(--radius-sm); color: var(--body); font-size: .96rem; border-left: 3px solid transparent; }
.section-nav__list a:hover { background: var(--paper); color: var(--forest); }
.section-nav__list .is-current a { background: var(--paper); border-left-color: var(--clay); color: var(--forest); font-weight: 600; }
.section-nav__list--plain a { display: flex; flex-direction: column; border-left: none; padding: .55rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.section-nav__list--plain a:hover { padding-left: .3rem; }
.section-nav__date { font-size: .78rem; color: var(--muted); }

.sidebar-card { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 1.7rem; }
.sidebar-card h3 { color: #fff; margin-bottom: .5rem; }
.sidebar-card p { color: rgba(255,255,255,.82); font-size: .95rem; }
.sidebar-card__icon {
	width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1rem;
	border-radius: 50%; background: rgba(255,255,255,.12); color: var(--gold);
}
.sidebar-card__icon svg { width: 22px; height: 22px; }
.sidebar-card .btn { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.sidebar-card .btn:hover { background: var(--clay); color: #fff; border-color: var(--clay); }

/* =========================================================================
   13. Entry / prose
   ========================================================================= */
.entry { max-width: 100%; }
.entry--post, .entry--event { max-width: var(--wrap-narrow); }
.entry__meta { font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.entry__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.entry__tags a { font-size: .8rem; }
.entry__actions { margin-top: 2rem; }

.prose { font-size: 1.075rem; color: var(--body); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sage); }
.prose a:hover { text-decoration-color: var(--clay); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
	margin: 2em 0; padding: 1rem 1.6rem;
	border-left: 4px solid var(--clay);
	background: var(--cream);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-family: var(--font-display); font-size: 1.25rem; color: var(--forest);
}
.prose img { border-radius: var(--radius); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6rem; }

/* Event facts */
.event-facts { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; gap: .8rem; }
@media (min-width: 620px) { .event-facts { grid-template-columns: repeat(2, 1fr); } }
.event-facts__item { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.event-facts__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: var(--clay); background: var(--paper); border-radius: 50%; }
.event-facts__icon svg { width: 20px; height: 20px; }
.event-facts__label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-facts__value { color: var(--forest); font-weight: 500; }

/* =========================================================================
   14. Pagination, forms, WP classes
   ========================================================================= */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 42px; height: 42px; padding: 0 .6rem;
	border: 1px solid var(--line); border-radius: var(--radius-pill);
	color: var(--forest); font-weight: 600; font-size: .9rem;
}
.pagination a.page-numbers:hover { background: var(--cream); border-color: var(--sage); }
.pagination .page-numbers.current { background: var(--forest); color: var(--cream); border-color: var(--forest); }

input[type="text"], input[type="email"], input[type="search"], textarea {
	width: 100%; padding: .8em 1em; border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: var(--paper);
}
input:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.search-form { display: flex; gap: .5rem; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--forest); color: var(--cream); padding: .7rem 1.1rem; border-radius: var(--radius-sm);
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }

/* =========================================================================
   15. Footer
   ========================================================================= */
.site-footer { background: var(--forest); color: rgba(255,255,255,.8); margin-top: clamp(2rem, 5vw, 4rem); }
.footer-cta {
	display: grid; gap: 1.25rem; align-items: center;
	padding-block: clamp(1.75rem, 4vw, 2.75rem);
	border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 780px) { .footer-cta { grid-template-columns: 1.4fr auto; } }
.footer-cta h2 { color: #fff; margin-bottom: .35rem; }
.footer-cta p { color: rgba(255,255,255,.78); max-width: 52ch; margin: 0; }
.footer-cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer-cta .btn { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.footer-cta .btn:hover { background: var(--clay); color: #fff; border-color: var(--clay); }

.footer-grid {
	display: grid; gap: clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: 1fr;
	padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; } }
.footer-brand__name { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin: .6rem 0 .4rem; }
.footer-brand__blurb { color: rgba(255,255,255,.72); max-width: 40ch; font-size: .95rem; }
/* The mark is an inline <span> in the header's flex brand; give it box sizing
   here too, otherwise it scales to the footer column width. */
.footer-brand .brand__mark { display: block; width: 46px; height: 46px; color: var(--sage); }
.footer-social {
	display: inline-flex; align-items: center; gap: .55em;
	margin-top: .9rem; padding: .55em 1.05em;
	border: 1px solid rgba(255,255,255,.32); border-radius: var(--radius-pill);
	font-weight: 600; font-size: .9rem; color: var(--cream);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.footer-col__title { color: #fff; font-size: 1rem; font-family: var(--font-sans); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a, .footer-col a { color: rgba(255,255,255,.8); }
.footer-links a:hover, .footer-col a:hover { color: #fff; }
.footer-col__address, .footer-col__hours { color: rgba(255,255,255,.78); font-size: .95rem; margin-bottom: .8rem; }
.footer-widgets { margin-top: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom__inner {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
	padding-block: 1.3rem; font-size: .82rem; color: rgba(255,255,255,.6);
}
.footer-bottom__note { margin: 0; }

/* =========================================================================
   16. Motion preferences
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.hero__slide { transition: none; }
}

/* =========================================================================
   17. WooCommerce — Year Pass & sandbox checkout
   ========================================================================= */
.single-product .site-content-wrap { padding-bottom: 1rem; }
.woocommerce .price,
.woocommerce div.product p.price { color: var(--forest); font-family: var(--font-display); font-weight: 600; }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--forest);
	color: var(--cream);
	border-radius: var(--radius-pill);
	padding: .85em 1.6em;
	font-weight: 600;
	transition: background .25s var(--ease), transform .25s var(--ease);
}
.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover { background: var(--clay); color: #fff; transform: translateY(-2px); }

/* Quantity + add-to-cart row */
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.woocommerce .quantity { display: inline-flex; }
.woocommerce .quantity input.qty {
	width: 4.4rem; height: 46px; padding: 0 .6rem;
	border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
	background: #fff; color: var(--forest);
	font-family: var(--font-sans); font-size: 1rem; font-weight: 600; text-align: center;
	-moz-appearance: textfield; appearance: textfield;
}
.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .quantity input.qty:focus { outline: 3px solid var(--gold); outline-offset: 1px; }

/* Sandbox card fields on checkout */
.walnut-card-fields { margin: 0; padding: .75rem 0 0; border: 0; }
.walnut-card-fields::after { content: ""; display: table; clear: both; }
.walnut-card-fields .form-row { padding: 0; margin: 0 0 .8rem; }
.walnut-card-fields .form-row-wide { width: 100%; }
.walnut-card-fields .form-row-first,
.walnut-card-fields .form-row-last { width: 48%; display: inline-block; float: none; }
.walnut-card-fields .form-row-first { margin-right: 3.4%; }
.walnut-card-fields input.input-text {
	background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	padding: .8em 1em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em;
}
.walnut-card-fields__hint { clear: both; font-size: .82rem; color: var(--muted); margin: .2rem 0 0; }
ul.wc_payment_methods li.payment_method_walnut_test > label { font-weight: 600; color: var(--forest); }

/* Year pass card */
.year-pass-card {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.4rem;
	margin: 1.8rem 0 .5rem;
	padding: 1.6rem;
	border-radius: var(--radius-lg);
	background: radial-gradient(120% 140% at 0% 0%, #3f5a32 0%, #23301f 60%);
	color: var(--cream);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.year-pass-card::after {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
	background-size: 16px 16px;
	opacity: .35; pointer-events: none;
}
.year-pass-card__badge {
	position: relative; z-index: 1;
	align-self: start;
	display: inline-grid; place-items: center;
	width: 58px; height: 58px; border-radius: 50%;
	background: var(--gold); color: var(--forest);
	font-family: var(--font-sans); font-weight: 700; font-size: .68rem;
	letter-spacing: .08em; text-transform: uppercase;
}
.year-pass-card__body { position: relative; z-index: 1; }
.year-pass-card__eyebrow { margin: 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-soft); }
.year-pass-card__title { margin: .1em 0 .7em; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.year-pass-card__meta { margin: 0 0 1rem; display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.year-pass-card__meta div { display: flex; flex-direction: column; gap: .1rem; }
.year-pass-card__meta dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-soft); }
.year-pass-card__meta dd { margin: 0; color: #fff; font-weight: 600; }
.year-pass-card__note { font-size: .9rem; color: rgba(255,255,255,.8); }
.year-pass-card .btn { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.year-pass-card .btn:hover { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.year-pass-login { margin-top: 1.4rem; color: var(--muted); }
@media (max-width: 560px) {
	.year-pass-card { grid-template-columns: 1fr; }
	.year-pass-card__meta { grid-template-columns: 1fr; }
}
