/*
Theme Name: Leadora
Theme URI: https://example.com/leadora
Author: Leadora
Author URI: https://example.com
Description: A premium bilingual corporate theme for Leadora Global Ltd, a manufacturer of functional food ingredients.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leadora
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

/* -------------------------------------------------------------------------
 * Design tokens
 * ---------------------------------------------------------------------- */
:root {
	/* Palette tuned to the brand logo: deep green #2e6b4f, champagne gold, taupe */
	--green-950: #0c241b;
	--green-900: #143628;
	--green-800: #1c4a38;
	--green-700: #275c44;
	--green-600: #2e6b4f;
	--green-500: #3f8a62;
	--green-100: #e3efe6;

	--gold: #c9a75e;
	--gold-strong: #b3924a;
	--gold-light: #ecd9a8;

	--taupe: #8f857a;
	--taupe-light: #c1bab0;

	--cream: #f6f3ec;
	--cream-2: #ede8dc;
	--white: #ffffff;
	--ink: #13201a;
	--slate: #5c6b63;
	--line: #e3ddd0;

	--serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 24px 60px -24px rgba(10, 58, 44, 0.28);
	--shadow-sm: 0 12px 34px -16px rgba(10, 58, 44, 0.24);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 28px;
}

.ld-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--gold);
	color: var(--ink);
	padding: 8px 16px;
	z-index: 999;
	border-radius: 0 0 8px 0;
}
.ld-skip:focus { left: 0; }

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 999px;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	line-height: 1;
	border: 1px solid transparent;
	transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s, color 0.28s, border-color 0.28s;
	white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
	background: var(--green-600);
	color: #fff;
	box-shadow: 0 14px 28px -14px rgba(26, 122, 90, 0.7);
}
.btn--primary:hover { background: var(--green-500); box-shadow: 0 18px 34px -14px rgba(26, 122, 90, 0.8); }

.btn--gold {
	background: var(--gold);
	color: #241a05;
	box-shadow: 0 14px 30px -14px rgba(200, 162, 78, 0.8);
}
.btn--gold:hover { background: var(--gold-light); }

.btn--ghost-light {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.7); }

.btn--outline {
	background: transparent;
	color: var(--green-700);
	border-color: var(--green-700);
}
.btn--outline:hover { background: var(--green-700); color: #fff; }

.btn--light {
	background: #fff;
	color: var(--green-800);
}
.btn--light:hover { background: var(--gold-light); }

/* -------------------------------------------------------------------------
 * Header & navigation
 * ---------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.site-header.is-scrolled {
	background: rgba(5, 37, 27, 0.9);
	backdrop-filter: blur(14px);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__logo {
	width: 48px;
	height: 48px;
	flex: 0 0 auto;
	padding: 3px;
	background: #fff;
	border-radius: 50%;
	object-fit: contain;
	box-shadow: inset 0 0 0 1px rgba(12, 36, 27, 0.08);
}
.brand .custom-logo {
	max-height: 52px;
	width: auto;
	padding: 3px;
	background: #fff;
	border-radius: 50%;
	object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.28rem;
	letter-spacing: 0.01em;
}
.brand__sub {
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-light);
}

.main-nav__list { display: flex; align-items: center; gap: 6px; }
.main-nav__item { position: relative; }
.main-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.88);
	font-weight: 600;
	font-size: 0.94rem;
	transition: color 0.25s, background 0.25s;
}
.main-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav__caret { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.main-nav__item:hover .main-nav__caret { transform: rotate(180deg); }

.dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	padding-top: 12px;
	transform: translateX(-50%) translateY(10px);
	width: 560px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.main-nav__item:hover .dropdown,
.main-nav__item:focus-within .dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
.dropdown::before { content: ''; position: absolute; inset: 12px 0 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.dropdown__inner { position: relative; border-radius: 16px; padding: 10px; }
.dropdown__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	color: var(--ink);
	font-size: 0.88rem;
	font-weight: 600;
	transition: background 0.2s, color 0.2s;
}
.dropdown__link:hover { background: var(--green-100); color: var(--green-700); }
.dropdown__icon { width: 22px; height: 22px; color: var(--green-600); flex: 0 0 auto; }
.dropdown__icon svg { width: 22px; height: 22px; }
.dropdown__footer { padding: 10px 8px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
.dropdown__footer a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--green-700);
	font-weight: 700;
	font-size: 0.9rem;
}
.dropdown__footer svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.dropdown__footer a:hover svg { transform: translateX(4px); }

.site-header__actions { display: flex; align-items: center; gap: 16px; }

.site-header__cta { padding: 12px 22px; }

/* Header product search */
.header-search { position: relative; }
.header-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.header-search__toggle:hover,
.header-search__toggle[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.4);
}
.header-search__toggle svg { width: 19px; height: 19px; }

.header-search__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: 340px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--shadow);
	overflow: hidden;
	z-index: 20;
}
.header-search__panel:not([hidden]) { animation: ldSearchIn 0.22s var(--ease); }
@keyframes ldSearchIn {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.header-search__form { padding: 12px; border-bottom: 1px solid var(--line); }
.header-search__input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: inherit;
	font-size: 0.92rem;
	color: var(--ink);
	background: var(--cream);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search__input::placeholder { color: var(--taupe); }
.header-search__input:focus {
	outline: none;
	border-color: var(--green-500);
	box-shadow: 0 0 0 3px rgba(26, 122, 90, 0.14);
	background: #fff;
}

.header-search__results { max-height: 320px; overflow-y: auto; padding: 6px; }
.header-search__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--ink);
	text-decoration: none;
	transition: background 0.15s;
}
.header-search__item:hover,
.header-search__item.is-active { background: var(--green-100); }
.header-search__item-title { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.header-search__item:hover .header-search__item-title,
.header-search__item.is-active .header-search__item-title { color: var(--green-700); }
.header-search__item-sub { font-size: 0.8rem; font-style: italic; color: var(--slate); }
.header-search__empty { padding: 14px 12px; margin: 0; font-size: 0.9rem; color: var(--slate); }

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: 8px;
}
.nav-toggle span {
	width: 24px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
	display: none;
	position: fixed;
	inset: 76px 0 0 0;
	background: var(--green-950);
	padding: 24px 28px 40px;
	overflow-y: auto;
	transform: translateY(-8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu__list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-menu__list > li > a {
	display: block;
	padding: 14px 0;
	color: #fff;
	font-weight: 600;
}
.mobile-menu__sub { padding: 0 0 12px 14px; }
.mobile-menu__sub li a { display: block; padding: 7px 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.mobile-menu__cta { margin-top: 20px; width: 100%; justify-content: center; }

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	background: radial-gradient(120% 120% at 80% 10%, var(--green-800) 0%, var(--green-900) 45%, var(--green-950) 100%);
	color: #fff;
	overflow: hidden;
	padding: 130px 0 90px;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(90% 90% at 50% 40%, #000 30%, transparent 80%);
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.hero__orb--1 { width: 460px; height: 460px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(38, 144, 108, 0.55), transparent 70%); }
.hero__orb--2 { width: 520px; height: 520px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(200, 162, 78, 0.28), transparent 70%); }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--green-600);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200, 162, 78, 0.2); }
.eyebrow--light { color: var(--gold-light); }
.eyebrow--light .eyebrow__dot { background: var(--gold-light); box-shadow: 0 0 0 4px rgba(230, 201, 138, 0.2); }

.hero__title {
	margin: 18px 0 20px;
	font-size: clamp(2.7rem, 6vw, 5rem);
	color: #fff;
}
.hero__subtitle {
	max-width: 560px;
	font-size: 1.12rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.78);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero__art { color: rgba(230, 201, 138, 0.22); animation: floaty 9s ease-in-out infinite; }
.hero__art svg { width: 100%; height: auto; }

@keyframes floaty {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-16px) rotate(1.5deg); }
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 26px;
	width: 26px;
	height: 42px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 14px;
	transform: translateX(-50%);
}
.hero__scroll span {
	position: absolute;
	left: 50%;
	top: 7px;
	width: 4px;
	height: 8px;
	border-radius: 4px;
	background: var(--gold-light);
	transform: translateX(-50%);
	animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
	0% { transform: translate(-50%, 0); opacity: 0; }
	30% { opacity: 1; }
	100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* -------------------------------------------------------------------------
 * Section heads
 * ---------------------------------------------------------------------- */
.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-title {
	margin-top: 12px;
	font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}
.section-head--center .section-title { max-width: 720px; margin-left: auto; margin-right: auto; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--green-700);
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* -------------------------------------------------------------------------
 * Presence / map
 * ---------------------------------------------------------------------- */
.presence { padding: 96px 0 100px; background: var(--cream); color: var(--green-700); }
.presence__map { position: relative; max-width: 1040px; margin: 0 auto; }
.world-map { width: 100%; height: auto; }
.world-map .map-grid { stroke-opacity: 0.1; stroke-width: 1; }
.world-map .map-land { fill-opacity: 0.13; stroke-opacity: 0.25; stroke-width: 1.2; }
.world-map .map-arcs { stroke: var(--gold); stroke-opacity: 0.85; stroke-width: 2; stroke-dasharray: 5 7; stroke-linecap: round; }
.world-map .marker__pulse { fill: none; stroke: var(--green-600); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.world-map .marker__ring { fill: rgba(26, 122, 90, 0.16); stroke: var(--green-600); stroke-width: 1.5; }
.world-map .marker__dot { fill: var(--green-600); }
@keyframes pulse {
	0% { transform: scale(1); opacity: 0.9; }
	70%, 100% { transform: scale(2.6); opacity: 0; }
}

.presence__cards { position: absolute; inset: 0; pointer-events: none; }
.presence-card {
	position: absolute;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(18, 96, 72, 0.14);
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
	white-space: nowrap;
}
.presence-card__name { font-weight: 700; font-size: 0.86rem; color: var(--ink); }
.presence-card__dots { display: flex; gap: 5px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot--factory { background: var(--green-600); }
.dot--rd { background: var(--gold); }
.dot--sales { background: var(--taupe); }
.dot--warehouse { background: var(--taupe-light); }

.presence__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 34px;
	margin-top: 34px;
	color: var(--slate);
	font-weight: 600;
	font-size: 0.92rem;
}
.presence__legend li { display: inline-flex; align-items: center; gap: 10px; }

/* -------------------------------------------------------------------------
 * Best sellers cards
 * ---------------------------------------------------------------------- */
.best { padding: 96px 0; background: var(--white); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card-grid--related { grid-template-columns: repeat(3, 1fr); }

.card {
	display: flex;
	flex-direction: column;
	background: var(--cream);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.card__media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	background:
		radial-gradient(120% 120% at 50% 0%, var(--green-100) 0%, transparent 60%),
		linear-gradient(160deg, var(--cream-2), var(--cream));
	overflow: hidden;
}
.card__illustration {
	display: grid;
	place-items: center;
	width: 128px;
	height: 128px;
	border-radius: 50%;
	background: #fff;
	color: var(--green-600);
	box-shadow: 0 18px 40px -20px rgba(10, 58, 44, 0.35), inset 0 0 0 1px var(--line);
	transition: transform 0.5s var(--ease);
}
.card:hover .card__illustration { transform: scale(1.06) rotate(-4deg); }
.card__illustration svg { width: 60px; height: 60px; }
.card__illustration--liposome { color: var(--gold-strong); }
.card__illustration--molecule { color: var(--taupe); }
.card__illustration--fiber { color: var(--green-500); }

.card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}
.card:hover .card__img { transform: scale(1.05); }

.card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--green-600);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card__title { font-size: 1.32rem; }
.card__title a:hover { color: var(--green-600); }
.card__text {
	margin: 12px 0 20px;
	color: var(--slate);
	font-size: 0.92rem;
	line-height: 1.7;
	flex: 1;
}
.card__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--green-700);
	font-weight: 700;
	font-size: 0.9rem;
}
.card__link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card__link:hover svg { transform: translateX(5px); }

.card--mini .card__media { aspect-ratio: 4 / 3; }
.card--mini .card__illustration { width: 96px; height: 96px; }
.card--mini .card__illustration svg { width: 46px; height: 46px; }

/* -------------------------------------------------------------------------
 * Categories
 * ---------------------------------------------------------------------- */
.cats { padding: 96px 0; background: var(--cream); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-grid--all { grid-template-columns: repeat(3, 1fr); }

.cat-card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 26px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: rgba(26, 122, 90, 0.35); }
.cat-card__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	flex: 0 0 auto;
	border-radius: 14px;
	background: var(--green-100);
	color: var(--green-600);
	transition: background 0.3s, color 0.3s;
}
.cat-card:hover .cat-card__icon { background: var(--green-600); color: #fff; }
.cat-card__icon svg { width: 26px; height: 26px; }
.cat-card__body { display: flex; flex-direction: column; gap: 8px; }
.cat-card__name { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; color: var(--ink); }
.cat-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--green-700);
	font-weight: 700;
	font-size: 0.85rem;
}
.cat-card__link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.cat-card:hover .cat-card__link svg { transform: translateX(4px); }

.cats__cta { text-align: center; margin-top: 44px; }

/* -------------------------------------------------------------------------
 * Metrics
 * ---------------------------------------------------------------------- */
.metrics {
	position: relative;
	padding: 88px 0;
	background:
		radial-gradient(90% 140% at 50% -20%, var(--green-800), var(--green-950));
	color: #fff;
}
.metrics__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}
.metric { padding: 12px; position: relative; }
.metric + .metric::before {
	content: '';
	position: absolute;
	left: 0;
	top: 20%;
	bottom: 20%;
	width: 1px;
	background: rgba(255, 255, 255, 0.14);
}
.metric__value {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 2px;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(2.4rem, 4.5vw, 3.6rem);
	line-height: 1;
	color: var(--gold-light);
}
.metric__suffix { font-size: 1.8rem; }
.metric__label {
	display: block;
	margin-top: 12px;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.78);
}

/* -------------------------------------------------------------------------
 * About
 * ---------------------------------------------------------------------- */
.about { padding: 104px 0; background: var(--white); }
.about__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.about__aside .section-title { margin-top: 14px; }
.about__content p { color: var(--slate); margin-bottom: 20px; }
.about__lead { font-size: 1.18rem; color: var(--ink) !important; font-family: var(--serif); }
.about__content .btn { margin-top: 12px; }

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, 0.82); }
body:not(.home) .site-footer { margin-top: 80px; }

.cta-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 44px 48px;
	margin-bottom: 64px;
	background: linear-gradient(130deg, var(--green-800), var(--green-600));
	border-radius: 22px;
	transform: translateY(-44px);
	box-shadow: var(--shadow);
}
.cta-band__text p { font-size: 1.1rem; line-height: 1.6; color: #fff; max-width: 720px; }

.footer-main {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 56px;
	margin-top: -20px;
}
.brand--footer { color: #fff; }
.footer-brand__desc { margin-top: 16px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.6); max-width: 240px; }
.footer-col__title { color: #fff; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255, 255, 255, 0.66); font-size: 0.94rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-col__note { margin-top: 18px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--gold-light); }

/* -------------------------------------------------------------------------
 * Inner pages
 * ---------------------------------------------------------------------- */
.site-main.inner { padding-top: 76px; }

.inner-hero {
	padding: 92px 0 64px;
	background: radial-gradient(120% 120% at 85% 0%, var(--green-800), var(--green-950));
	color: #fff;
}
.inner-hero__title { color: #fff; font-size: clamp(2rem, 4.5vw, 3.3rem); margin-top: 14px; }
.inner-hero__lead { margin-top: 14px; color: rgba(255, 255, 255, 0.78); max-width: 640px; font-size: 1.05rem; }
.inner-hero__row { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.inner-hero__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	flex: 0 0 auto;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--gold-light);
	border: 1px solid rgba(255, 255, 255, 0.14);
}
.inner-hero__icon svg { width: 34px; height: 34px; }
.inner-hero .eyebrow { color: var(--gold-light); }

.ld-breadcrumb { margin-bottom: 10px; }
.ld-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ld-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
.ld-breadcrumb li + li::before { content: '/'; color: rgba(255, 255, 255, 0.35); }
.ld-breadcrumb a { color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.ld-breadcrumb a:hover { color: var(--gold-light); }

.inner__content { padding: 64px 0 96px; }

.post__content { color: var(--slate); line-height: 1.85; max-width: 760px; }
.post__content p { margin-bottom: 20px; }
.post__content h1, .post__content h2, .post__content h3 { color: var(--ink); margin: 28px 0 12px; }

.chip {
	display: inline-flex;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--green-100);
	color: var(--green-700);
	font-size: 0.82rem;
	font-weight: 700;
	transition: background 0.2s;
}
.chip:hover { background: var(--green-600); color: #fff; }

/* -------------------------------------------------------------------------
 * Product detail
 * ---------------------------------------------------------------------- */
.product { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; padding-top: 56px; align-items: start; }
.product__media {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	background:
		radial-gradient(120% 120% at 50% 0%, var(--green-100) 0%, transparent 60%),
		linear-gradient(160deg, var(--cream-2), var(--cream));
	border: 1px solid var(--line);
}
.product__illustration {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	color: var(--green-600);
}
.product__illustration svg { width: 40%; height: 40%; max-width: 220px; }
.product__img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.product__badge {
	position: absolute;
	top: 20px;
	left: 20px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--green-600);
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.product__cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.product__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.product__short { margin-top: 16px; font-size: 1.08rem; color: var(--ink); line-height: 1.8; }
.product__desc { margin-top: 22px; color: var(--slate); line-height: 1.85; }
.product__desc p { margin-bottom: 16px; }
.product__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; }

.related { padding: 0 0 96px; }
.related__title { margin-bottom: 28px; font-size: 1.7rem; }

/* -------------------------------------------------------------------------
 * Product category table
 * ---------------------------------------------------------------------- */
.product-table-wrap {
	position: relative;
	overflow-x: auto;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: 0 30px 60px -32px rgba(10, 58, 44, 0.4);
}
.product-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.product-table thead th {
	padding: 18px 24px;
	text-align: left;
	background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
	color: #fff;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	border-bottom: 3px solid var(--gold);
}
.product-table tbody td {
	padding: 18px 24px;
	border-top: 1px solid var(--line);
	vertical-align: middle;
	color: var(--slate);
}
.product-table tbody tr:first-child td { border-top: 0; }
.product-table tbody tr { transition: background 0.2s, box-shadow 0.2s; }
.product-table tbody tr:nth-child(even) { background: var(--cream); }
.product-table tbody tr:hover {
	background: var(--green-100);
	box-shadow: inset 4px 0 0 var(--green-600);
}

/* Empty cells render a subtle dash. */
.product-table tbody td:empty::before {
	content: '—';
	color: var(--taupe-light);
}

/* No. badge */
.product-table .pt-num {
	width: 96px;
	text-align: center;
}
.product-table .pt-num__badge {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--cream-2);
	color: var(--green-700);
	font-weight: 800;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}
.product-table tbody tr:hover .pt-num__badge {
	background: var(--green-600);
	color: #fff;
	transform: scale(1.08);
}

/* Product name */
.product-table tbody .pt-name { color: var(--ink); font-weight: 700; }
.product-table .pt-name a {
	display: inline-flex;
	align-items: center;
	color: var(--ink);
	transition: color 0.2s;
}
.product-table .pt-name a::after {
	content: '→';
	margin-left: 6px;
	color: var(--green-600);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s, transform 0.2s;
}
.product-table .pt-name a:hover { color: var(--green-600); }
.product-table .pt-name a:hover::after { opacity: 1; transform: translateX(0); }

/* Hot-selling badge */
.product-table .pt-hot {
	display: inline-block;
	margin-left: 8px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--green-600);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	vertical-align: middle;
}

/* Latin name */
.product-table tbody .pt-latin {
	font-family: var(--serif);
	font-style: italic;
	font-size: 0.92rem;
	color: var(--green-700);
}

/* Spec / Assay */
.product-table tbody .pt-spec { color: var(--slate); font-weight: 500; }

@media (max-width: 640px) {
	.product-table { font-size: 0.85rem; }
	.product-table thead th,
	.product-table tbody td { padding: 14px 16px; }
	.product-table .pt-num { width: 76px; }
}

/* -------------------------------------------------------------------------
 * About / R&D pages
 * ---------------------------------------------------------------------- */
.about-page { padding-top: 64px; }
.about-page__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.about-page__lead { margin-top: 16px; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.about-page__content p { color: var(--slate); margin-bottom: 20px; }

.rd { padding-top: 64px; }
.rd .cat-grid { grid-template-columns: repeat(2, 1fr); }
.rd-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.rd-card__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 15px;
	background: var(--green-100);
	color: var(--green-600);
	margin-bottom: 20px;
}
.rd-card__icon svg { width: 28px; height: 28px; }
.rd-card__title { font-size: 1.4rem; margin-bottom: 10px; }
.rd-card__text { color: var(--slate); }

/* -------------------------------------------------------------------------
 * Empty state
 * ---------------------------------------------------------------------- */
.empty-state {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
	padding: 40px 0;
}
.empty-state__icon {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--green-100);
	color: var(--green-600);
}
.empty-state__icon svg { width: 40px; height: 40px; }
.empty-state h2 { font-size: 1.6rem; margin-bottom: 10px; }
.empty-state p { color: var(--slate); margin-bottom: 26px; }

/* -------------------------------------------------------------------------
 * Contact form
 * ---------------------------------------------------------------------- */
.contact { padding-top: 64px; }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact__aside .section-title { margin-bottom: 18px; }
.contact__aside > p { color: var(--slate); margin-bottom: 26px; }
.contact__meta li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--slate); }
.contact__meta svg { width: 20px; height: 20px; color: var(--green-600); flex: 0 0 auto; }
.contact__meta a:hover { color: var(--green-600); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.form-field input,
.form-field select,
.form-field textarea {
	font-family: inherit;
	font-size: 0.96rem;
	color: var(--ink);
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 13px 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--green-500);
	box-shadow: 0 0 0 3px rgba(26, 122, 90, 0.14);
}
.contact-form .btn { margin-top: 4px; }
.contact-form__success { margin-top: 16px; color: var(--green-600); font-weight: 600; }
.contact-form__error { margin-top: 16px; color: #c0392b; font-weight: 600; }

/* Honeypot: visually hidden from humans, but present for bots */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.cat-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-main { grid-template-columns: 1fr 1fr; }
	.metrics__grid { grid-template-columns: repeat(2, 1fr); }
	.metric:nth-child(3)::before { display: none; }
	.about__inner, .about-page__grid, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
	.product { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
	.main-nav { display: none; }
	.site-header__cta { display: none; }
	.nav-toggle { display: flex; }
	.mobile-menu { display: block; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { display: none; }
	.presence__cards { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
	.presence-card { position: static; transform: none; }
}

@media (max-width: 640px) {
	.container { padding: 0 20px; }
	.card-grid, .cat-grid, .cat-grid--all, .rd .cat-grid { grid-template-columns: 1fr; }
	.section-head--split { flex-direction: column; align-items: flex-start; }
	.metrics__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.metric + .metric::before { display: none; }
	.footer-main { grid-template-columns: 1fr; gap: 30px; }
	.cta-band { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
	.form-row { grid-template-columns: 1fr; }
	.contact-form { padding: 24px; }
	.hero { min-height: 80vh; }
	.header-search__panel { width: min(78vw, 340px); }
}

/* -------------------------------------------------------------------------
 * Reveal on scroll
 * ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
