/* ==========================================================================
   Cultivar — design tokens
   ========================================================================== */
:root {
	/* Soil / greenhouse palette */
	--soil-900: #2b2118;
	--soil-800: #392b1e;
	--soil-700: #4a3826;
	--clay: #b5673f;
	--clay-deep: #8f4c2c;
	--moss-900: #202f27;
	--moss-700: #35503f;
	--moss-500: #4d6e57;
	--moss-300: #7fa085;
	--ochre: #c99a3d;
	--ochre-soft: #e0bb6e;
	--linen: #f2ead9;
	--linen-deep: #e8dcc3;
	--paper: #faf6ec;
	--ink: #241b13;
	--ink-dim: #6b5c48;
	--ink-soft: #8c7a63;
	--glass: rgba(250, 246, 236, 0.72);
	--line: rgba(43, 33, 24, 0.14);
	--line-dark: rgba(250, 246, 236, 0.16);

	--font-display: 'Vollkorn', Georgia, serif;
	--font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'DM Mono', 'SFMono-Regular', monospace;

	--fs-sm: 0.85rem;
	--fs-base: 1rem;
	--fs-md: 1.3rem;
	--fs-lg: 1.75rem;
	--fs-xl: 2.5rem;
	--fs-2xl: 3.6rem;
	--fs-3xl: 5.2rem;

	--sp-1: 8px;
	--sp-2: 16px;
	--sp-3: 24px;
	--sp-4: 32px;
	--sp-5: 48px;
	--sp-6: 64px;
	--sp-7: 96px;
	--sp-8: 140px;

	--radius: 6px;
	--radius-lg: 14px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-in: cubic-bezier(.5, 0, .75, 0);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	position: relative;
}
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 2000;
	opacity: .05;
	mix-blend-mode: multiply;
	background-image: url('../img/kraft-grain.png');
	background-size: 220px 220px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
.container { max-width: 1280px; margin-inline: auto; padding-inline: var(--sp-4); }
@media (max-width: 780px) { .container { padding-inline: var(--sp-3); } }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--clay-deep);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--clay-deep); }
.on-dark .eyebrow { color: var(--ochre-soft); }
.on-dark .eyebrow::before { background: var(--ochre-soft); }

.lede { font-size: var(--fs-md); color: var(--ink-dim); max-width: 56ch; line-height: 1.6; }
.on-dark .lede { color: rgba(250, 246, 236, 0.72); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .9em 1.7em; border-radius: 999px; font-size: .95rem; font-weight: 600;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
	white-space: nowrap;
}
.btn--primary { background: var(--clay); color: var(--paper); box-shadow: 0 10px 24px -8px rgba(181, 103, 63, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(181, 103, 63, .6); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--clay); color: var(--clay-deep); }
.on-dark .btn--ghost { border-color: var(--line-dark); color: var(--paper); }
.on-dark .btn--ghost:hover { border-color: var(--ochre-soft); color: var(--ochre-soft); }
.magnetic { will-change: transform; }

/* ==========================================================================
   Section backdrop system (real photos + duotone overlay, per project doctrine)
   ========================================================================== */
.section { position: relative; padding-block: var(--sp-8); }
.section.on-dark { background: var(--moss-900); color: var(--paper); }
.section[data-bg]::before {
	content: '';
	position: absolute; inset: 0; z-index: 0;
	background-size: cover; background-position: center;
	opacity: .32;
}
.section[data-bg]::after {
	content: '';
	position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(180deg, rgba(32, 47, 39, .92), rgba(32, 47, 39, .82));
}
.section[data-bg="greenhouse"]::before { background-image: url('../img/bg-greenhouse.jpg'); }
.section[data-bg="field"]::before { background-image: url('../img/bg-field.jpg'); }
.section[data-bg="crates"]::before { background-image: url('../img/bg-crates.jpg'); }
.section[data-bg] > .container { position: relative; z-index: 1; }

/* Botanical hand-drawn accents */
.cv-botanical { position: absolute; opacity: .5; pointer-events: none; color: var(--moss-300); }
.on-dark .cv-botanical { color: rgba(250, 246, 236, .18); }
.section:not(.on-dark) .cv-botanical { color: var(--moss-500); opacity: .16; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	background: var(--glass);
	backdrop-filter: blur(14px) saturate(1.2);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.brand__mark {
	width: 30px; height: 30px; border-radius: 8px;
	background: conic-gradient(from 220deg, var(--moss-700), var(--clay), var(--ochre), var(--moss-700));
	display: inline-block;
}
.primary-nav__list { display: flex; align-items: center; gap: var(--sp-4); }
.primary-nav__list > li > a { font-size: .95rem; font-weight: 500; transition: color .25s var(--ease); }
.primary-nav__list > li > a:hover { color: var(--clay-deep); }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.mobile-nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; }
.mobile-nav {
	max-height: 0; overflow: hidden; background: var(--linen); border-top: 1px solid transparent;
	transition: max-height .4s var(--ease), border-color .4s;
}
.mobile-nav.is-open { max-height: 400px; border-top-color: var(--line); }
.mobile-nav nav { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.mobile-nav__list { display: grid; gap: var(--sp-2); }
.mobile-nav__list a { font-size: 1.05rem; font-weight: 500; }
@media (max-width: 900px) {
	.primary-nav { display: none; }
	.mobile-nav-toggle { display: inline-flex; }
}
@media (min-width: 901px) { .mobile-nav { display: none; } }

/* ==========================================================================
   Hero — the propagation bench lives here
   ========================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 90px; overflow: clip; background: linear-gradient(180deg, var(--linen), var(--paper) 70%); }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-6); align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

.hero__title { font-size: clamp(2.6rem, 5.4vw, var(--fs-3xl)); margin-block: .35em .3em; letter-spacing: -.01em; }
.hero__sub { font-size: var(--fs-md); color: var(--ink-dim); max-width: 46ch; margin-bottom: var(--sp-4); }
.hero__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.hero__stage {
	position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
	background: linear-gradient(160deg, var(--linen-deep), var(--linen));
	overflow: hidden;
	box-shadow: 0 40px 80px -32px rgba(43, 33, 24, .35);
}
.hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.hero__stage.is-live canvas { opacity: 1; }
.hero__stage-fallback {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 30%, var(--linen-deep), var(--linen));
}
.hero__stage.is-live .hero__stage-fallback { display: none; }
.hero__stage-scrub {
	position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3;
	display: flex; align-items: center; gap: 10px;
	font-family: var(--font-mono); font-size: .78rem; color: var(--ink-dim);
	background: var(--glass); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 16px;
	opacity: 0; transition: opacity .5s var(--ease);
}
.hero__stage.is-live .hero__stage-scrub { opacity: 1; }
.hero__stage-track { flex: 1; height: 3px; background: var(--line); border-radius: 2px; position: relative; }
.hero__stage-track i { position: absolute; inset: 0; width: 0%; background: var(--clay); border-radius: 2px; transform-origin: left; }
.hero__stage-species { position: absolute; top: 18px; right: 18px; z-index: 3; display: flex; gap: 6px; }
.hero__stage-species button {
	width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8);
	box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s var(--ease);
}
.hero__stage-species button:hover, .hero__stage-species button.is-active { transform: scale(1.15); }
.hero__stage-hint { position: absolute; top: 18px; left: 18px; z-index: 3; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); background: var(--glass); padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .4s; }
.hero__stage.is-live .hero__stage-hint { opacity: 1; }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 780px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat__value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--ochre-soft); }
.stat:not(.on-dark .stat) .stat__value { color: var(--clay-deep); }
.stat__label { font-size: .85rem; color: var(--ink-dim); margin-top: .4em; }
.on-dark .stat__label { color: rgba(250,246,236,.65); }

/* ==========================================================================
   Variety catalogue
   ========================================================================== */
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.section__head h2 { font-size: var(--fs-xl); max-width: 26ch; }

.category-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.category-filter button {
	padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 500;
	transition: all .25s var(--ease);
}
.category-filter button.is-active, .category-filter button:hover { background: var(--moss-700); border-color: var(--moss-700); color: var(--paper); }

.variety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
@media (max-width: 1100px) { .variety-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .variety-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .variety-grid { grid-template-columns: 1fr; } }

.variety-card { display: block; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px -18px rgba(43,33,24,.3); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.variety-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(43,33,24,.4); }
.variety-card[hidden] { display: none; }
.variety-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--linen-deep); }
.variety-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.variety-card:hover .variety-card__media img { transform: scale(1.06); }
.variety-card__season { position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: .68rem; background: var(--glass); backdrop-filter: blur(6px); padding: 3px 9px; border-radius: 999px; color: var(--ink-dim); }
.variety-card__body { padding: 16px; }
.variety-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.variety-card__title { font-size: 1.08rem; }
.variety-card__price { font-family: var(--font-mono); font-size: .85rem; color: var(--clay-deep); font-weight: 500; white-space: nowrap; }
.variety-card__latin { font-style: italic; color: var(--ink-soft); font-size: .85rem; margin-top: .3em; }
.variety-card__moq { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); margin-top: .6em; letter-spacing: .02em; }

/* ==========================================================================
   Lineage / breeding pedigree chart
   ========================================================================== */
.lineage { position: relative; }
.lineage__chart { width: 100%; height: auto; overflow: visible; }
.lineage__node { cursor: default; }
.lineage__node rect { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.on-dark .lineage__node rect { fill: rgba(250,246,236,.06); stroke: var(--line-dark); }
.lineage__node:hover rect { stroke: var(--ochre); }
.lineage__node text { font-family: var(--font-body); fill: var(--ink); font-size: 13px; }
.on-dark .lineage__node text { fill: var(--paper); }
.lineage__node .lineage__latin { font-style: italic; fill: var(--ink-soft); font-size: 10.5px; }
.on-dark .lineage__node .lineage__latin { fill: rgba(250,246,236,.55); }
.lineage__node .lineage__year { font-family: var(--font-mono); fill: var(--ochre-soft); font-size: 10px; }
.lineage__link { fill: none; stroke: var(--moss-300); stroke-width: 1.5; opacity: .55; }
.on-dark .lineage__link { stroke: var(--ochre-soft); }
.lineage__node.is-hybrid rect { stroke: var(--clay); stroke-width: 2; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 900px) { .testimonial-strip { grid-template-columns: 1fr; } }
.testimonial { background: rgba(250,246,236,.06); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: var(--sp-3); }
.testimonial p { font-size: 1.05rem; line-height: 1.6; }
.testimonial cite { display: block; margin-top: var(--sp-2); font-style: normal; font-family: var(--font-mono); font-size: .78rem; color: var(--ochre-soft); }

/* ==========================================================================
   Quote / CTA band
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; text-align: center; margin-top: var(--sp-2); margin-bottom: var(--sp-4); }

/* ==========================================================================
   Quote dialog
   ========================================================================== */
dialog.quote-dialog { width: min(480px, calc(100vw - 40px)); padding: 0; border: none; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -20px rgba(0,0,0,.4); }
dialog.quote-dialog::backdrop { background: rgba(32, 47, 39, .55); backdrop-filter: blur(4px); }
.quote-form { padding: var(--sp-4); }
.quote-form h3 { font-size: 1.4rem; margin-bottom: .3em; }
.quote-form .field { margin-top: var(--sp-2); }
.quote-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.quote-form input, .quote-form textarea { width: 100%; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--paper); }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--clay); }
.quote-form textarea { min-height: 90px; resize: vertical; }
.quote-form .field--hp { position: absolute; left: -9999px; }
.quote-form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--sp-3); }
.quote-form__status { font-size: .85rem; margin-top: var(--sp-2); }
.quote-form__status.is-error { color: var(--clay-deep); }
.quote-form__status.is-ok { color: var(--moss-500); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--soil-900); color: var(--linen); padding-block: var(--sp-6) var(--sp-4); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
.footer__col h4 { font-size: 1rem; margin-bottom: 1em; color: var(--ochre-soft); }
.footer__col ul { display: grid; gap: .7em; }
.footer__col a { color: rgba(242,234,217,.75); font-size: .92rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--paper); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(242,234,217,.14); font-size: .85rem; color: rgba(242,234,217,.55); flex-wrap: wrap; }

/* ==========================================================================
   Reveal-on-scroll base state (GSAP ScrollTrigger toggles .is-in)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
}
.js-off .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Page / 404 / search / comments (shared inner-page chrome)
   ========================================================================== */
.page-hero { padding-block: 150px 40px; background: linear-gradient(180deg, var(--linen), var(--paper)); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-content { max-width: 74ch; margin-inline: auto; padding-block: var(--sp-5); }
.page-content h2 { font-size: var(--fs-lg); margin-top: 1.4em; }
.page-content p { margin-top: 1em; color: var(--ink-dim); }
.not-found { text-align: center; padding-block: 160px; }

.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-5); align-items: start; }
@media (max-width: 900px) { .archive-layout { grid-template-columns: 1fr; } }
.sidebar-widget { background: var(--linen); border-radius: var(--radius-lg); padding: var(--sp-3); margin-bottom: var(--sp-3); }
.sidebar-widget h4 { font-size: .95rem; margin-bottom: .8em; }
.sidebar-widget ul { display: grid; gap: .6em; font-size: .9rem; }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.comment-form input, .comment-form textarea { width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; margin-top: .4em; }
.comment-form p { margin-top: var(--sp-2); }

.searchform { display: flex; gap: 10px; }
.searchform input[type="search"] { flex: 1; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; }

/* ==========================================================================
   Standard WP content classes (alignment, captions, gallery, sticky)
   ========================================================================== */
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }
.wp-caption-text { font-size: .85rem; color: var(--ink-dim); margin-top: .6em; }
.gallery-caption { font-size: .85rem; color: var(--ink-dim); }
.bypostauthor { }
.sticky { border-left: 2px solid var(--clay); padding-left: 1em; }
.screen-reader-text { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: 12px 20px; background: var(--paper); color: var(--ink); z-index: 999999; border-radius: var(--radius); }
