/*
Theme Name: ERPBio Site
Description: Shared theme for the Bioenzy and Biogear Scientific websites. Brand name, logo and colours come from the ERP Catalog plugin's brand config (ERPBIO_BRAND in wp-config.php).
Version: 0.1.0
Requires PHP: 8.0
Text Domain: erpbio-site
*/

/* Brand colours arrive as --accent / --accent-dark / --ink on :root (functions.php). */
:root {
	--bg: #ffffff;
	--surface: #f6f7f9;
	--line: #e3e6ea;
	--muted: #5d6670;
	--radius: 10px;
	--wrap: 1180px;
	--font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	/* Hero silk colours (read by assets/hero.js): dark umber, caramel, cream. */
	--hero-deep: #1f1610;
	--hero-mid: #9a6a44;
	--hero-light: #f5e6d3;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-top: 0; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; }

/* ---- Header (inner pages; the home page floats it over the hero) ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; max-width: calc(var(--wrap) + 80px); padding: 0 40px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 32px; width: auto; display: block; }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); line-height: 1; }
.wordmark small { display: block; font-size: .58rem; letter-spacing: .38em; font-weight: 600; color: var(--accent); margin-top: 4px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 4px; background: var(--paper-2); border-radius: 999px; }
.primary-nav a { display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); font: 500 .92rem/1 var(--font); }
.primary-nav a:hover { background: rgb(0 0 0 / .05); color: var(--ink); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_parent > a { background: var(--ink); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; color: var(--ink); }

@media (max-width: 760px) {
	.site-header .wrap { padding: 0 20px; min-height: 68px; }
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; top: calc(100% - 4px); left: 12px; right: 12px; }
	.primary-nav.open { display: block; }
	.primary-nav ul { flex-direction: column; padding: 8px; border-radius: 18px; box-shadow: 0 18px 40px rgb(0 0 0 / .12); }
}

/* ---- Hero ----
   A rounded full-height card with the WebGL silk behind the text; on the home
   page the header floats inside it. The CSS gradient is what shows before
   the first frame and when WebGL is unavailable. */
.home .site-main { padding-top: 0; }
.front-content { padding-top: 72px; }

.hero {
	position: relative; overflow: hidden; isolation: isolate;
	margin: 12px; border-radius: 24px; min-height: max(560px, calc(100svh - 24px));
	/* clip-path, not just overflow + radius: while a glass button's backdrop blur
	   animates, Chrome puts the canvas on its own layer and drops the rounded
	   overflow clip, painting a square corner. clip-path clips every layer. */
	clip-path: inset(0 round 24px);
	background: radial-gradient(120% 90% at 75% 30%, var(--hero-mid) 0%, var(--hero-deep) 62%);
	color: #fff; display: flex;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s ease; }
.hero.is-live .hero-canvas { opacity: 1; }
.hero::after { /* keeps the copy readable over the brightest folds */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(180deg, rgb(0 0 0 / .25) 0%, transparent 30%, transparent 55%, rgb(0 0 0 / .45) 100%);
}
.hero-inner { width: 100%; max-width: calc(var(--wrap) + 80px); margin: 0 auto; padding: 128px 40px 40px; display: flex; flex-direction: column; }
.eyebrow { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: rgb(255 255 255 / .8); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero-title {
	font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.035em;
	max-width: 13ch; margin: 0; color: #fff; text-wrap: balance; /* no lone last word */
}
.hero-foot { margin-top: auto; padding-top: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero-lead { flex: 1 1 320px; min-width: 0; max-width: 520px; } /* shrinks on phones instead of spilling out of the card */
.hero-lead p { font-size: 1rem; line-height: 1.55; color: rgb(255 255 255 / .82); margin: 0 0 18px; }
.hero .product-search { background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; padding: 5px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero .product-search input[type=search] { background: transparent; border: 0; color: #fff; padding: 10px 16px; outline: none; }
.hero .product-search input[type=search]::placeholder { color: rgb(255 255 255 / .62); }
.hero .product-search button { border-radius: 999px; padding: 9px 18px; }
/* The hero button sits next to the search pill: same height (46 px field + 5 px frame + 1 px outline, twice). */
.hero .btn-label, .hero .btn-icon { min-height: 58px; }
.hero .btn-icon { width: 58px; }

/* Header floating inside the home hero */
.home .site-header { position: absolute; top: 12px; left: 12px; right: 12px; background: transparent; border: 0; z-index: 30; backdrop-filter: none; -webkit-backdrop-filter: none; } /* the inner-page glass blur would square off the hero's top corners */
.home .site-header .wrap { max-width: calc(var(--wrap) + 80px); padding: 0 40px; min-height: 88px; }
.home .wordmark { color: #fff; }
.home .primary-nav ul { background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); border-radius: 999px; padding: 4px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.home .primary-nav a { color: #fff; font: 500 .92rem/1 var(--font); padding: 10px 16px; border-radius: 999px; }
.home .primary-nav a:hover { background: rgb(255 255 255 / .14); color: #fff; }
.home .primary-nav .current-menu-item > a, .home .primary-nav .current_page_item > a { background: #fff; color: var(--ink); }
.home .nav-toggle { color: #fff; border-color: rgb(255 255 255 / .35); }
@media (max-width: 760px) {
	.hero { margin: 8px; border-radius: 18px; clip-path: inset(0 round 18px); }
	.hero-inner { padding: 104px 22px 24px; }
	.home .site-header { top: 8px; left: 8px; right: 8px; }
	.home .site-header .wrap { padding: 0 22px; min-height: 76px; }
	.home .primary-nav { top: calc(100% - 4px); left: 12px; right: 12px; background: rgb(20 18 16 / .92); border-radius: 18px; border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(14px); }
	.home .primary-nav ul { background: none; border: 0; }
	.hero .btn { width: 100%; }
	.hero .btn .btn-label { flex: 1; justify-content: center; }
}

/* Pill button with a separate accent square for the arrow (reference style) */
.btn { display: inline-flex; align-items: stretch; gap: 5px; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* Glass buttons, in the language of the hero search box: a frosted pane with
   a thin light outline, a faint top highlight and a highlight that follows
   the pointer (--mx/--my from assets/site.js). The arrow is a solid accent
   circle, like the search box's button. */
.btn-label, .btn-icon {
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; border-radius: 999px; border: 1px solid transparent;
	-webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.btn-label::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
	background: radial-gradient(110px circle at var(--mx, 30%) var(--my, -20%), rgb(255 255 255 / var(--glint, .1)), transparent 70%);
}
.btn-label {
	padding: 0 24px; font: 500 .95rem/1 var(--font); letter-spacing: -.005em; color: #fff;
	background-color: color-mix(in srgb, var(--ink) 90%, transparent);
	border-color: rgb(255 255 255 / .16);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 6px 16px -10px rgb(0 0 0 / .45);
}
.btn-icon { width: 46px; flex: none; background-color: var(--accent); color: var(--ink); font-size: 1.05rem; box-shadow: 0 6px 16px -10px rgb(0 0 0 / .45); }
.btn:hover .btn-label { color: #fff; border-color: rgb(255 255 255 / .28); --glint: .16; }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn:active .btn-label, .btn:active .btn-icon { transform: scale(.97); transition-duration: .12s; }
.btn:focus-visible { outline: none; }
.btn:focus-visible .btn-label { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }

/* On dark or busy backgrounds: see-through, exactly like the hero search box. */
.btn-light .btn-label { background-color: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .24); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); --glint: .14; }
.btn-light:hover .btn-label { background-color: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .38); color: #fff; }
/* On light backgrounds: clear frost with a thin dark outline. */
.btn-ghost .btn-label { background-color: rgb(255 255 255 / .55); border-color: rgb(0 0 0 / .1); color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9); --glint: .5; }
.btn-ghost:hover .btn-label { background-color: rgb(255 255 255 / .8); border-color: rgb(0 0 0 / .16); color: var(--ink); }
.btn-ghost .btn-icon { background-color: rgb(255 255 255 / .55); border-color: rgb(0 0 0 / .1); box-shadow: none; }
@media (prefers-reduced-transparency: reduce) {
	.btn-label { background-color: var(--ink); }
	.btn-light .btn-label { background-color: rgb(0 0 0 / .45); }
	.btn-ghost .btn-label, .btn-ghost .btn-icon { background-color: #fff; }
}

.front-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- Search & buttons ---- */
.product-search { display: flex; gap: 8px; }
.product-search input[type=search], .filters input[type=search] { text-overflow: ellipsis; } /* a placeholder too long for a phone ends in … */
.product-search input[type=search] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.button, .product-search button, .filters button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover, .product-search button:hover, .filters button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--accent-dark); }
.button.secondary:hover { background: var(--surface); color: var(--accent-dark); }

/* ---- Page body ---- */
.site-main { padding: 48px 0 72px; min-height: 50vh; }
.entry-content { max-width: 780px; }
.front-content .entry-content { max-width: none; }
.entry-content .wp-block-list li { margin-bottom: .4em; }

.catalog-counts { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.catalog-counts a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.catalog-counts a:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgb(0 0 0 / .06); }
.catalog-counts .count { display: block; font-size: 1.7rem; font-weight: 750; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.catalog-counts .label { color: var(--muted); font-size: .95rem; }

/* ---- Catalog: dark page band + cards ---- */
body.post-type-archive-product .site-main, body.search .site-main, body.tax-product_category .site-main, body.tax-product_species .site-main { padding-top: 0; }
.page-band {
	margin: 0 12px; border-radius: 24px; color: #fff; overflow: hidden;
	background: radial-gradient(70% 140% at 85% 0%, color-mix(in srgb, var(--hero-mid) 90%, var(--hero-deep)) 0%, color-mix(in srgb, var(--hero-mid) 35%, var(--hero-deep)) 40%, var(--hero-deep) 75%);
}
.page-band-inner { max-width: calc(var(--wrap) + 80px); margin: 0 auto; padding: 72px 40px 40px; }
.page-band .label { color: rgb(255 255 255 / .7); }
.band-title { font-weight: 400; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 12px; color: #fff; }
.band-meta { color: rgb(255 255 255 / .7); margin: 0 0 36px; font-variant-numeric: tabular-nums; }
.filters { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; padding: 6px; border-radius: 16px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.filters input, .filters select { padding: 12px 16px; border: 0; border-radius: 11px; font: inherit; background: rgb(255 255 255 / .94); color: var(--ink); min-width: 0; }
.filters select { padding-right: 36px; }
.filters button { border-radius: 11px; padding: 12px 22px; }
.band-reset { display: inline-block; margin-top: 16px; color: rgb(255 255 255 / .75); font-size: .9rem; }
.band-reset:hover { color: #fff; }
@media (max-width: 760px) {
	.page-band { margin: 0 8px; border-radius: 18px; }
	.page-band-inner { padding: 48px 20px 24px; }
	.filters { grid-template-columns: 1fr; }
}

.catalog-body { padding-top: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.product-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; padding: 22px 22px 20px; background: var(--paper); transition: transform .3s ease, box-shadow .3s ease, background .3s ease; min-height: 200px; }
.product-card:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 16px 36px rgb(40 20 0 / .1); }
.product-card .thumb { aspect-ratio: 4 / 3; margin: -22px -22px 16px; background: #fff; border-radius: 16px 16px 0 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-card .thumb.placeholder { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--paper-3) 12px 24px); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card .code { font: 500 .78rem/1.4 var(--mono); color: var(--muted); margin-bottom: 10px; }
.product-card h2 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 14px; font-weight: 500; letter-spacing: -.01em; }
.product-card h2 a { color: var(--ink); text-decoration: none; }
.product-card h2 a::after { content: ""; position: absolute; inset: 0; }
.product-card .meta { margin-top: auto; padding-right: 44px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-go { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: .95rem; opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.product-card:hover .card-go, .product-card:focus-within .card-go { opacity: 1; transform: none; }
@media (hover: none) { .card-go { opacity: 1; transform: none; } }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--muted); font-size: .76rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.product-card:hover .tag { background: var(--paper); }
.tag.doc { background: color-mix(in srgb, var(--accent) 16%, #fff); color: var(--accent-dark); box-shadow: none; }

.pagination { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: var(--paper-2); text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.pagination a.page-numbers:hover { background: var(--paper-3); color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; }
.pagination .dots { background: none; }
.empty { padding: 64px 24px; text-align: center; background: var(--paper); border-radius: 24px; }
.empty p { color: var(--muted); margin-bottom: 24px; }

/* ---- Product page ---- */
.product-page { padding-top: 8px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.product-layout.has-image { grid-template-columns: 360px minmax(0, 1fr); }
.product-layout.has-image .doc-panel { grid-column: 2; position: static; }
.product-layout.has-image .product-image { grid-row: span 2; }
@media (max-width: 960px) { .product-layout, .product-layout.has-image { grid-template-columns: 1fr; gap: 32px; } .product-layout.has-image .doc-panel { grid-column: auto; } .product-layout.has-image .product-image { grid-row: auto; } }
.product-image { border-radius: 20px; padding: 16px; background: var(--paper); }
.product-title { font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 36px; }
.sizes { border-radius: 16px; background: var(--paper); padding: 6px 20px; margin-bottom: 24px; }
.sizes-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--paper-3); }
.sizes-row:first-child { border-top: 0; }
.sizes-head { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 0 10px; }
.sizes .code { font: 500 .95rem var(--mono); }
.product-notice { display: flex; gap: 10px; align-items: baseline; margin: 0 0 24px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.product-notice::before { content: "RUO"; flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: #fff; }
.attributes { margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.attributes div { background: var(--paper); border-radius: 12px; padding: 14px 16px; }
.attributes dt { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.attributes dd { margin: 0; }
.doc-panel { position: sticky; top: 100px; border-radius: 20px; padding: 24px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--hero-mid) 70%, var(--hero-deep)) 0%, var(--hero-deep) 60%); }
.doc-panel .label { color: rgb(255 255 255 / .6); }
.downloads { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.downloads a.doc { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; background: rgb(255 255 255 / .08); text-decoration: none; color: #fff; transition: background .2s; }
.downloads a.doc:hover { background: rgb(255 255 255 / .15); color: #fff; }
.downloads .icon { flex: none; width: 38px; height: 46px; border-radius: 6px; background: var(--accent); color: var(--ink); font-size: .66rem; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
.doc-text { flex: 1; }
.downloads .name { font-weight: 500; display: block; }
.downloads .sub { font-size: .82rem; color: rgb(255 255 255 / .6); }
.doc-go { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgb(255 255 255 / .12); }
.downloads .unavailable { padding: 14px; border-radius: 12px; border: 1px dashed rgb(255 255 255 / .22); color: rgb(255 255 255 / .7); font-size: .92rem; }
.downloads .unavailable a { color: #fff; }
.btn-block { display: flex; }
.btn-block .btn-label { flex: 1; justify-content: center; }
.related { margin-top: 96px; }

/* ---- Ordinary pages (page.php): band + heading-left / text-right rows ---- */
body.page:not(.home) .site-main { padding-top: 0; }
.band-lead { color: rgb(255 255 255 / .78); font-size: 1.1rem; max-width: 56ch; margin: 8px 0 0; }
body.error404 .site-main { padding-top: 0; }
.band-search { margin-top: 28px; max-width: 640px; }
.band-search .product-search { background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; padding: 5px; }
.band-search .product-search input[type=search] { background: transparent; border: 0; color: #fff; padding: 10px 16px; outline: none; min-width: 0; }
.band-search .product-search input[type=search]::placeholder { color: rgb(255 255 255 / .62); }
.band-search .product-search button { border-radius: 999px; padding: 9px 18px; }
.page-body { padding-top: 72px; padding-bottom: 40px; }
.prose { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; column-gap: 56px; max-width: none; }
.prose > * { grid-column: 2; margin: 0; }
.prose > h2, .prose > h3 { grid-column: 1; font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; }
.prose > h2, .prose > h2 + * { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.prose > h2:first-child, .prose > h2:first-child + * { border-top: 0; margin-top: 0; padding-top: 0; }
.prose > p, .prose > ul, .prose > ol { color: #3d4249; font-size: 1.05rem; line-height: 1.7; margin-bottom: 1em; max-width: 64ch; }
.prose > .wp-block-shortcode, .prose > .distributors { max-width: none; }
@media (max-width: 760px) {
	.page-body { padding-top: 44px; }
	.prose { grid-template-columns: 1fr; }
	.prose > *, .prose > h2, .prose > h3 { grid-column: 1; }
	.prose > h2 + * { border-top: 0; padding-top: 0; margin-top: 12px; }
}
body.page:not(.home) .home-tiles { margin-top: 64px; }

/* ---- Distributors (Contacts) ---- */
.distributors { display: grid; gap: 28px; }
.distributor-region h3 { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.distributor-region h3::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.distributor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.distributor { border-radius: 16px; padding: 20px; background: var(--paper); transition: background .25s, box-shadow .25s; }
.distributor:hover { background: #fff; box-shadow: 0 14px 30px rgb(40 20 0 / .08); }
.distributor h4 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.distributor p { margin: 0 0 4px; font-size: .93rem; }
.distributor .place { color: var(--muted); margin-bottom: 12px; }
.distributor a { color: var(--ink); }
.notice { background: var(--paper); border-radius: 16px; padding: 20px 22px; color: var(--muted); }
.contact-card { background: var(--paper); border-radius: 16px; padding: 24px; margin-bottom: 1em; }
.contact-company { font-size: 1.25rem; letter-spacing: -.01em; color: var(--ink); margin: 0 0 6px; }
/* The .prose row rules reset the top padding of whatever follows a heading; a card keeps its own. */
.prose > h2 + .contact-card, .prose > h2:first-child + .contact-card { padding-top: 24px; }
.contact-address { margin: 0 0 12px; color: var(--muted); max-width: 46ch; }
.contact-email { margin: 0 0 20px; font-size: 1.05rem; }
.contact-email a { color: var(--accent-dark); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal a, .footer-legal span { color: rgb(255 255 255 / .7); text-transform: none; letter-spacing: 0; }

/* ---- Home sections (template-parts/home/*) ---- */
.label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.display { font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 28px; }
.display .muted { color: color-mix(in srgb, var(--ink) 35%, var(--bg)); }
.display-sm { font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 24px; }

.home-intro { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 40px; padding-top: 140px; padding-bottom: 120px; }
.home-intro-text { color: var(--muted); max-width: 560px; margin-bottom: 32px; }

.home-tiles { display: grid; grid-template-columns: repeat(var(--tiles, 4), 1fr); margin: 0 12px; border-radius: 24px; overflow: hidden; }
.tile { min-height: 380px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: transform .35s ease; }
.tile-1 { background: var(--accent); color: var(--ink); }
.tile-2 { background: var(--ink); color: #fff; }
.tile-3 { background: var(--tile-3); color: var(--ink); }
.tile-4 { background: var(--tile-4); color: var(--ink); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile-icon svg { width: 56px; height: 56px; transition: transform .6s ease; }
.tile:hover .tile-icon svg { transform: rotate(-8deg) scale(1.06); }
.tile-num { font-size: .8rem; opacity: .7; }
.tile-count { font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.tile h3 { font-size: 1.15rem; font-weight: 500; margin: 0 0 8px; }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile p { font-size: .92rem; line-height: 1.5; margin: 0; opacity: .82; max-width: 30ch; }
.tile-links { position: relative; z-index: 1; margin-top: 12px !important; display: flex; gap: 14px; }
.tile-links a { color: inherit; font-weight: 500; }

.marquee { overflow: hidden; padding: 110px 0 90px; border-bottom: 1px solid var(--line); margin: 0 0 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { font-size: clamp(3.2rem, 9vw, 8.5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1; white-space: nowrap; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

.home-about { padding-top: 110px; padding-bottom: 120px; }
.home-about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.datasheet-stack { position: relative; margin: 0; aspect-ratio: 5 / 4; border-radius: 20px; background: radial-gradient(120% 100% at 30% 20%, var(--tile-3), var(--tile-4)); overflow: hidden; }
.sheet { position: absolute; width: 46%; height: auto; border-radius: 6px; box-shadow: 0 24px 50px rgb(60 30 0 / .22); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.sheet-back { left: 42%; top: 14%; transform: rotate(6deg); }
.sheet-front { left: 12%; top: 9%; transform: rotate(-4deg); }
.datasheet-stack:hover .sheet-back { transform: rotate(9deg) translate(14px, -6px); }
.datasheet-stack:hover .sheet-front { transform: rotate(-6deg) translate(-10px, -4px); }
/* Three-picture stack (Biogear): product photos on white cards around a brochure. */
.sheet-1, .sheet-3 { background: #fff; padding: 6px; border-radius: 12px; }
.sheet-1 { left: 5%; top: 16%; width: 40%; transform: rotate(-7deg); }
.sheet-2 { left: 54%; top: 6%; width: 38%; transform: rotate(6deg); }
.sheet-3 { left: 27%; top: 38%; width: 46%; transform: rotate(-1deg); z-index: 1; }
.datasheet-stack:hover .sheet-1 { transform: rotate(-10deg) translate(-10px, -4px); }
.datasheet-stack:hover .sheet-2 { transform: rotate(9deg) translate(10px, -6px); }
.datasheet-stack:hover .sheet-3 { transform: rotate(-1deg) translateY(-6px); }
.home-about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: var(--muted); font-size: .95rem; margin-bottom: 28px; }

.home-species { background: var(--paper-2); margin: 0 12px; border-radius: 24px; padding: 96px 0 100px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head .display-sm { margin-bottom: 0; }
.species-card { position: relative; display: block; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.species-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(40 20 0 / .1); color: var(--ink); }
.species-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 16px; margin-bottom: 16px; }
.species-art { border-radius: 12px; min-height: 280px; display: flex; align-items: flex-end; padding: 24px; color: #fff;
	background: radial-gradient(90% 120% at 70% 20%, var(--hero-mid) 0%, color-mix(in srgb, var(--hero-mid) 45%, var(--hero-deep)) 45%, var(--hero-deep) 100%); }
.species-art span { font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.species-copy { padding: 24px 24px 24px 0; display: flex; flex-direction: column; justify-content: center; }
.species-copy h3, .species-small h3 { font-size: 1.6rem; font-weight: 400; letter-spacing: -.02em; margin: 0 0 12px; }
.species-copy p:not(.label) { color: var(--muted); max-width: 44ch; }
.species-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.species-small { padding: 26px; min-height: 200px; }
.species-small.is-dark { background: color-mix(in srgb, var(--hero-mid) 70%, var(--hero-deep)); color: #fff; }
.species-small.is-ink { background: var(--ink); color: #fff; }
.species-small.is-dark .label, .species-small.is-ink .label, .species-names { color: rgb(255 255 255 / .7); }
.species-small.is-dark:hover, .species-small.is-ink:hover { color: #fff; }
.species-names { font-size: .9rem; margin: 0; }
.species-go { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--ink); display: grid; place-items: center; transition: transform .25s ease; }
.species-card:hover .species-go { transform: translateX(3px); }

/* Scroll reveal (assets/site.js adds .js-motion only when motion is OK) */
.js-motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

@media (max-width: 960px) {
	.home-intro { grid-template-columns: 1fr; gap: 8px; padding-top: 88px; padding-bottom: 80px; }
	.home-tiles { grid-template-columns: 1fr 1fr; }
	.home-about-grid, .species-featured { grid-template-columns: 1fr; gap: 32px; }
	.species-copy { padding: 8px 12px 56px; }
	.species-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.home-tiles { grid-template-columns: 1fr; margin: 0 8px; border-radius: 18px; }
	.tile { min-height: 230px; gap: 28px; }
	.home-about-cols { grid-template-columns: 1fr; }
	.home-species { margin: 0 8px; padding: 64px 0; border-radius: 18px; }
	.marquee { padding: 72px 0 56px; }
}

/* ---- Footer: dark band, statement + columns, giant wordmark ---- */
.site-footer {
	margin: 12px; border-radius: 24px; overflow: hidden; color: rgb(255 255 255 / .78);
	background: radial-gradient(80% 120% at 85% 0%, color-mix(in srgb, var(--hero-mid) 55%, var(--hero-deep)) 0%, var(--hero-deep) 55%);
	padding: 56px 40px 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 48px; align-items: start; }
.footer-statement { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.02em; max-width: 22ch; margin: 0 0 28px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer .label { color: rgb(255 255 255 / .5); margin-bottom: 14px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.to-top { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .25); display: grid; place-items: center; }
.footer-wordmark { margin: 72px 0 0; font-size: clamp(4.5rem, 24.5vw, 25rem); font-weight: 500; letter-spacing: -.06em; line-height: .78; color: #fff; white-space: nowrap; }
.footer-legal { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .45); padding: 18px 0 22px; margin: 0; }
@media (max-width: 760px) {
	.site-footer { margin: 8px; border-radius: 18px; padding: 40px 22px 0; }
	.footer-top { grid-template-columns: 1fr; }
	.to-top { display: none; }
}
