/* ==========================================================================
   Greenarys design system (Phase 1)
   Mobile first. One token set for the whole site.
   ========================================================================== */

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Nunito Sans";
	src: url("../fonts/nunito-sans-var.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
	/* Brand */
	--gr-lime: #8cc63f;          /* Official logo green: logo, accents, impact visuals. Not for text on white. */
	--gr-green: #43631d;         /* Primary actions and links (6.9:1 with white). */
	--gr-green-dark: #3b5719;    /* Hover and pressed. */
	--gr-green-50: #f3f8ea;      /* Impact and success backgrounds. */
	--gr-green-100: #e4f0d2;

	/* Neutrals: warm, slightly green-biased */
	--gr-canvas: #fbfaf6;        /* Page background */
	--gr-surface: #ffffff;       /* Cards, header, forms */
	--gr-sand: #f4efe6;          /* Alternate sections, image backdrops */
	--gr-line: #e6dfd2;          /* Borders and dividers */
	--gr-line-strong: #cfc6b5;   /* Input borders */
	--gr-ink: #1d2a1f;           /* Body text */
	--gr-ink-soft: #55614f;      /* Secondary text (6.2:1 on canvas) */

	/* Status (used only for real states) */
	--gr-sale: #b4472f;
	--gr-error: #b42318;
	--gr-error-bg: #fdf0ee;
	--gr-warn-bg: #fdf6e3;
	--gr-info-bg: #eef4f8;

	/* Type */
	--gr-font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
	--gr-font-body: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;
	--gr-fs-xs: 0.8125rem;   /* 13 */
	--gr-fs-sm: 0.875rem;    /* 14 */
	--gr-fs-base: 1rem;      /* 16 */
	--gr-fs-md: 1.125rem;    /* 18 */
	--gr-fs-lg: 1.375rem;    /* 22 */
	--gr-fs-xl: 1.75rem;     /* 28 */
	--gr-fs-2xl: 2.25rem;    /* 36 */
	--gr-fs-3xl: 3rem;       /* 48 */

	/* Space: 4px grid */
	--gr-s1: 0.25rem; --gr-s2: 0.5rem; --gr-s3: 0.75rem; --gr-s4: 1rem;
	--gr-s5: 1.5rem;  --gr-s6: 2rem;   --gr-s7: 3rem;    --gr-s8: 4rem; --gr-s9: 6rem;
	--gr-gutter: 1rem;
	--gr-max: 1240px;

	/* Shape and depth */
	--gr-r-sm: 8px;
	--gr-r: 12px;
	--gr-r-lg: 20px;
	--gr-r-pill: 999px;
	--gr-shadow: 0 1px 2px rgba(29, 42, 31, 0.06), 0 4px 16px rgba(29, 42, 31, 0.06);
	--gr-shadow-raised: 0 8px 32px rgba(29, 42, 31, 0.16);

	/* Motion */
	--gr-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--gr-fast: 150ms;
	--gr-med: 250ms;

	--gr-header-h: 64px;
	--gr-tap: 48px;
}
/* Map Astra's global palette to ours so Astra-rendered parts (page titles,
   sidebar widgets, default buttons) stop using the low-contrast lime. */
:root:root {
	--ast-global-color-0: var(--gr-green);
	--ast-global-color-1: var(--gr-green-dark);
	--ast-global-color-2: var(--gr-ink);
	--ast-global-color-3: var(--gr-ink-soft);
}

@media (min-width: 768px) {
	:root { --gr-gutter: 1.5rem; --gr-header-h: 76px; }
}
@media (min-width: 1100px) {
	:root { --gr-gutter: 2rem; }
}

/* ---------- 2. Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--gr-header-h) + 16px); }
body {
	background: var(--gr-canvas);
	color: var(--gr-ink);
	font-family: var(--gr-font-body);
	font-size: var(--gr-fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
h1, h2, h3, h4, h5, h6,
.entry-title, .woocommerce-loop-product__title, .product_title {
	font-family: var(--gr-font-head);
	color: var(--gr-ink);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
h1 { font-size: var(--gr-fs-2xl); }
h2 { font-size: var(--gr-fs-xl); }
h3 { font-size: var(--gr-fs-lg); }
h4 { font-size: var(--gr-fs-md); }
@media (min-width: 768px) {
	h1 { font-size: var(--gr-fs-3xl); }
	h2 { font-size: var(--gr-fs-2xl); }
}
p { text-wrap: pretty; }
a { color: var(--gr-green); text-underline-offset: 0.18em; }
a:hover { color: var(--gr-green-dark); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gr-lime); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gr-green-100); }

.gr-container { width: 100%; max-width: var(--gr-max); margin-inline: auto; padding-inline: var(--gr-gutter); box-sizing: border-box; }
.screen-reader-text, .gr-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gr-skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: var(--gr-s3) var(--gr-s4); background: var(--gr-surface); color: var(--gr-green);
	border-radius: var(--gr-r-sm); box-shadow: var(--gr-shadow-raised);
}

/* ---------- 3. Typography helpers ---------- */
.gr-eyebrow {
	font-family: var(--gr-font-head); font-size: var(--gr-fs-xs); font-weight: 600;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--gr-green);
}
.gr-lead { font-size: var(--gr-fs-md); color: var(--gr-ink-soft); max-width: 60ch; }
.gr-muted { color: var(--gr-ink-soft); }
.gr-section-head { display: grid; gap: var(--gr-s2); margin-bottom: var(--gr-s5); max-width: 640px; }
.gr-section-head h2 { margin: 0; }
.gr-section-head p { margin: 0; }
.gr-section { padding-block: var(--gr-s7); }
.gr-section--sand { background: var(--gr-sand); }
@media (min-width: 768px) { .gr-section { padding-block: var(--gr-s8); } }

/* ---------- 4. Buttons ---------- */
.gr-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--gr-s2);
	box-sizing: border-box; min-height: var(--gr-tap); padding: 0 var(--gr-s5);
	font-family: var(--gr-font-head); font-size: var(--gr-fs-sm); font-weight: 600; letter-spacing: 0.02em;
	line-height: 1.2; text-decoration: none; cursor: pointer;
	border: 2px solid var(--gr-green); border-radius: var(--gr-r);
	background: var(--gr-green); color: #fff;
	transition: background-color var(--gr-fast) var(--gr-ease), border-color var(--gr-fast) var(--gr-ease), color var(--gr-fast) var(--gr-ease), transform var(--gr-fast) var(--gr-ease);
}
.gr-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--gr-green-dark); border-color: var(--gr-green-dark); color: #fff;
}
.gr-btn:active { transform: translateY(1px); }
.gr-btn--secondary { background: transparent; color: var(--gr-green); }
.gr-btn--secondary:hover { background: var(--gr-green-50); color: var(--gr-green-dark); }
.gr-btn--link {
	min-height: auto; padding: 0; border: 0; background: none; color: var(--gr-green);
	text-decoration: underline; text-underline-offset: 0.2em;
}
.gr-btn--link:hover { background: none; color: var(--gr-green-dark); }
.gr-btn--block { width: 100%; }
.gr-btn--lg { min-height: 56px; font-size: var(--gr-fs-base); padding: 0 var(--gr-s6); }
.gr-btn[disabled], .gr-btn.is-disabled,
.woocommerce button.button:disabled, .woocommerce button.button.disabled {
	opacity: 0.45; cursor: not-allowed; pointer-events: none;
}

/* ---------- 5. Badges ---------- */
.gr-badge {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 10px; border-radius: var(--gr-r-pill);
	font-family: var(--gr-font-head); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
	background: var(--gr-surface); color: var(--gr-ink); border: 1px solid var(--gr-line);
}
.gr-badge--brand { background: var(--gr-lime); color: var(--gr-ink); border-color: var(--gr-lime); }
.gr-badge--soft { background: var(--gr-green-50); color: var(--gr-green); border-color: var(--gr-green-100); }
.gr-badge--sale { background: var(--gr-sale); color: #fff; border-color: var(--gr-sale); }

/* ---------- 6. Cards ---------- */
.gr-card {
	background: var(--gr-surface); border: 1px solid var(--gr-line); border-radius: var(--gr-r);
	padding: var(--gr-s5);
}
.gr-card--flat { border: 0; background: var(--gr-sand); }

/* Product grid: 2 columns on phones, 3 on tablets, 4 on desktop */
.gr-product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gr-s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .gr-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gr-s4); } }
@media (min-width: 1100px) { .gr-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gr-s5); } }

/* Product card (also applied to WooCommerce loops in woocommerce.css) */
.gr-product-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--gr-surface); border-radius: var(--gr-r); overflow: hidden;
	border: 1px solid var(--gr-line);
	transition: box-shadow var(--gr-med) var(--gr-ease), border-color var(--gr-med) var(--gr-ease);
}
.gr-product-card:hover { box-shadow: var(--gr-shadow); border-color: transparent; }
.gr-product-card__media {
	position: relative; aspect-ratio: 1 / 1; background: var(--gr-sand); overflow: hidden; display: block;
}
.gr-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--gr-ease); }
.gr-product-card:hover .gr-product-card__media img { transform: scale(1.03); }
.gr-product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.gr-product-card__body { display: flex; flex-direction: column; gap: 6px; padding: var(--gr-s3) var(--gr-s3) var(--gr-s4); flex: 1; }
@media (min-width: 768px) { .gr-product-card__body { padding: var(--gr-s4) var(--gr-s4) var(--gr-s5); } }
.gr-product-card__title {
	margin: 0; font-family: var(--gr-font-head); font-size: var(--gr-fs-sm); font-weight: 600; line-height: 1.3;
}
@media (min-width: 768px) { .gr-product-card__title { font-size: var(--gr-fs-base); } }
.gr-product-card__title a { color: var(--gr-ink); text-decoration: none; }
.gr-product-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.gr-product-card__benefit { margin: 0; font-size: var(--gr-fs-sm); color: var(--gr-ink-soft); line-height: 1.45; }
.gr-product-card__meta { font-size: var(--gr-fs-xs); color: var(--gr-ink-soft); }
.gr-product-card__foot { margin-top: auto; display: grid; gap: var(--gr-s3); padding-top: var(--gr-s2); }
.gr-product-card__foot .gr-btn { position: relative; z-index: 1; min-height: 44px; padding-inline: var(--gr-s3); }

/* Price */
.gr-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.gr-price__now { font-family: var(--gr-font-head); font-weight: 700; font-size: var(--gr-fs-base); color: var(--gr-ink); }
.gr-price__was { font-size: var(--gr-fs-sm); color: var(--gr-ink-soft); text-decoration: line-through; }
.gr-price__save { font-size: var(--gr-fs-xs); font-weight: 700; color: var(--gr-sale); }

/* Rating (rendered only when real reviews exist) */
.gr-rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--gr-fs-xs); color: var(--gr-ink-soft); }
.gr-rating__stars { color: #c98a12; letter-spacing: 1px; }

/* ---------- 7. Trust and impact blocks ---------- */
.gr-trust-list { display: grid; gap: var(--gr-s4); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .gr-trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gr-trust { display: grid; grid-template-columns: 40px 1fr; gap: var(--gr-s3); align-items: start; }
.gr-trust__icon {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--gr-green-50); color: var(--gr-green);
}
.gr-trust__icon svg { width: 22px; height: 22px; }
.gr-trust__title { margin: 0; font-family: var(--gr-font-head); font-size: var(--gr-fs-sm); font-weight: 600; }
.gr-trust__text { margin: 2px 0 0; font-size: var(--gr-fs-sm); color: var(--gr-ink-soft); line-height: 1.45; }

.gr-impact-card {
	background: var(--gr-green-50); border: 1px solid var(--gr-green-100); border-radius: var(--gr-r);
	padding: var(--gr-s4) var(--gr-s5); display: grid; gap: 4px;
}
.gr-impact-card__label { font-family: var(--gr-font-head); font-size: var(--gr-fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gr-green); }
.gr-impact-card__value { font-family: var(--gr-font-head); font-size: var(--gr-fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.gr-impact-card__note { font-size: var(--gr-fs-xs); color: var(--gr-ink-soft); }

/* ---------- 8. Forms ---------- */
.gr-field { display: grid; gap: 6px; }
.gr-label, .woocommerce form .form-row label {
	font-family: var(--gr-font-head); font-size: var(--gr-fs-sm); font-weight: 600; color: var(--gr-ink);
}
.gr-input, .gr-select, .gr-textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select,
.woocommerce-page form .form-row .input-text, .woocommerce .quantity .qty,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"],
input[type="number"], input[type="url"], select, textarea {
	width: 100%; min-height: var(--gr-tap); box-sizing: border-box;
	padding: 10px 14px; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
	color: var(--gr-ink); background: var(--gr-surface);
	border: 1px solid var(--gr-line-strong); border-radius: var(--gr-r-sm);
	transition: border-color var(--gr-fast) var(--gr-ease), box-shadow var(--gr-fast) var(--gr-ease);
}
textarea, .gr-textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus, .gr-input:focus {
	outline: none; border-color: var(--gr-green); box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.35);
}
.gr-hint { font-size: var(--gr-fs-xs); color: var(--gr-ink-soft); }
.gr-field.is-invalid .gr-input, .woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce form .form-row.woocommerce-invalid select { border-color: var(--gr-error); }
.gr-error-text { font-size: var(--gr-fs-xs); color: var(--gr-error); font-weight: 600; }
.gr-check { display: flex; gap: var(--gr-s2); align-items: flex-start; min-height: 32px; font-size: var(--gr-fs-sm); }
.gr-check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--gr-green); }

/* ---------- 9. Alerts ---------- */
.gr-alert {
	display: flex; gap: var(--gr-s3); align-items: flex-start;
	padding: var(--gr-s3) var(--gr-s4); border-radius: var(--gr-r-sm); font-size: var(--gr-fs-sm);
	border: 1px solid transparent; border-left-width: 4px;
}
.gr-alert--info { background: var(--gr-info-bg); border-color: #b9cfdd; }
.gr-alert--success { background: var(--gr-green-50); border-color: var(--gr-green); }
.gr-alert--warning { background: var(--gr-warn-bg); border-color: #c98a12; }
.gr-alert--error { background: var(--gr-error-bg); border-color: var(--gr-error); }

/* ---------- 10. Accordion (native details) ---------- */
.gr-accordion { border-top: 1px solid var(--gr-line); }
.gr-accordion details { border-bottom: 1px solid var(--gr-line); }
.gr-accordion summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--gr-s4);
	min-height: 56px; font-family: var(--gr-font-head); font-weight: 600; font-size: var(--gr-fs-base);
}
.gr-accordion summary::-webkit-details-marker { display: none; }
.gr-accordion summary::after {
	content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px); transition: transform var(--gr-fast) var(--gr-ease);
}
.gr-accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.gr-accordion__body { padding-bottom: var(--gr-s4); color: var(--gr-ink-soft); }

/* ==========================================================================
   Header
   ========================================================================== */
.gr-announce {
	background: var(--gr-green); color: #fff; font-size: var(--gr-fs-xs); text-align: center;
	padding: 8px var(--gr-gutter); line-height: 1.4;
}
.gr-announce a { color: #fff; }
.gr-announce p { margin: 0; }

.gr-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--gr-line);
	backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
	transition: box-shadow var(--gr-med) var(--gr-ease), border-color var(--gr-med) var(--gr-ease);
}
/* Slimmer once the page scrolls (assets/js/site.js) */
.gr-header.is-scrolled { box-shadow: 0 6px 24px rgba(29, 42, 31, 0.08); border-bottom-color: transparent; }
.gr-header__inner, .gr-header__logo img { transition: min-height var(--gr-med) var(--gr-ease), width var(--gr-med) var(--gr-ease); }
.gr-header.is-scrolled .gr-header__inner { min-height: 56px; }
.gr-header.is-scrolled .gr-header__logo img { width: 116px; }
@media (min-width: 768px) {
	.gr-header.is-scrolled .gr-header__inner { min-height: 62px; }
	.gr-header.is-scrolled .gr-header__logo img { width: 144px; }
}
.admin-bar .gr-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .gr-header { top: 32px; } }
.gr-header__inner {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--gr-s2);
	min-height: var(--gr-header-h);
}
.gr-header__logo { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }
.gr-header__logo img { display: block; width: 132px; height: auto; }
@media (min-width: 768px) { .gr-header__logo img { width: 168px; } }

.gr-nav { display: none; }
.gr-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; grid-column: 3; }
.gr-icon-btn {
	position: relative; display: inline-grid; place-items: center;
	width: var(--gr-tap); height: var(--gr-tap); border: 0; border-radius: 50%; padding: 0;
	background: transparent; color: var(--gr-ink); cursor: pointer; text-decoration: none;
	transition: background-color var(--gr-fast) var(--gr-ease);
}
.gr-icon-btn:hover { background: var(--gr-green-50); color: var(--gr-green); }
.gr-icon-btn svg { width: 24px; height: 24px; }
.gr-cart-count {
	position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
	border-radius: var(--gr-r-pill); background: var(--gr-green); color: #fff;
	font: 700 11px/18px var(--gr-font-head); text-align: center; font-variant-numeric: tabular-nums;
}
.gr-cart-count[data-count="0"] { display: none; }
.gr-cart-count { z-index: 1; box-shadow: 0 0 0 2px #fff; }
.gr-icon-btn > .gr-cart-count-wrap { position: absolute; inset: 0; pointer-events: none; } /* keeps the bag centred */
/* Ring around the bag: progress towards free shipping (inc/cart-drawer.php) */
.gr-cart-ring { position: absolute; inset: 3px; pointer-events: none; }
.gr-cart-ring[hidden] { display: none; }
.gr-cart-ring svg { display: block; width: 100% !important; height: 100% !important; transform: rotate(-90deg); }
.gr-cart-ring circle { fill: none; stroke: var(--gr-green-100); stroke-width: 2.5; }
.gr-cart-ring circle.gr-cart-ring__bar { stroke: var(--gr-green); stroke-linecap: round; transition: stroke-dasharray 600ms var(--gr-ease); }
.gr-cart-ring.is-done circle.gr-cart-ring__bar { stroke: var(--gr-lime); }
.gr-header__account { display: none; }
.gr-menu-toggle { margin-right: -8px; }

/* Desktop navigation */
@media (min-width: 1024px) {
	.gr-menu-toggle { display: none; }
	.gr-header__account { display: inline-grid; }
	.gr-header__inner { grid-template-columns: auto 1fr auto; gap: var(--gr-s6); }
	.gr-nav { display: block; justify-self: center; }
	.gr-nav__list { display: flex; gap: var(--gr-s1); margin: 0; padding: 0; list-style: none; }
	.gr-nav__list > li { position: relative; }
	.gr-nav__list > li > a, .gr-nav__list > li > button {
		display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--gr-s4);
		font: 600 var(--gr-fs-sm) var(--gr-font-head); color: var(--gr-ink); text-decoration: none;
		background: none; border: 0; border-radius: var(--gr-r-sm); cursor: pointer;
	}
	.gr-nav__list > li > a:hover, .gr-nav__list > li > button:hover,
	.gr-nav__list > li.current-menu-item > a, .gr-nav__list > li.current-menu-ancestor > a { color: var(--gr-green); }
	.gr-nav__list > li.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--gr-lime); }
	.gr-nav .sub-menu {
		position: absolute; top: calc(100% + 8px); left: 50%; min-width: 240px; margin: 0; padding: var(--gr-s2);
		list-style: none; background: var(--gr-surface); border: 1px solid var(--gr-line); border-radius: var(--gr-r);
		box-shadow: var(--gr-shadow-raised); opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
		transition: opacity var(--gr-fast) var(--gr-ease), transform var(--gr-fast) var(--gr-ease), visibility var(--gr-fast);
	}
	.gr-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
	.gr-nav li:hover > .sub-menu, .gr-nav li:focus-within > .sub-menu, .gr-nav li.is-open > .sub-menu {
		opacity: 1; visibility: visible; transform: translate(-50%, 0);
	}
	.gr-nav .sub-menu a {
		display: block; padding: 10px 12px; border-radius: var(--gr-r-sm);
		font-size: var(--gr-fs-sm); color: var(--gr-ink); text-decoration: none;
	}
	.gr-nav .sub-menu a:hover { background: var(--gr-green-50); color: var(--gr-green); }
	.gr-nav .menu-item-has-children > a::after {
		content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
	}
}

/* Search panel */
.gr-search-panel {
	border-top: 1px solid var(--gr-line); background: var(--gr-surface); padding-block: var(--gr-s3);
}
.gr-search-form { display: flex; gap: var(--gr-s2); max-width: 720px; margin-inline: auto; }
.gr-search-form input[type="search"] { flex: 1; min-width: 0; }
.gr-search-form button { flex: none; }

/* Mobile drawer */
.gr-drawer {
	position: fixed; inset: 0; z-index: 200; display: flex; visibility: hidden; pointer-events: none;
}
.gr-drawer.is-open { visibility: visible; pointer-events: auto; }
.gr-drawer__scrim {
	position: absolute; inset: 0; background: rgba(29, 42, 31, 0.45); opacity: 0;
	transition: opacity var(--gr-med) var(--gr-ease); border: 0; padding: 0; cursor: pointer;
}
.gr-drawer.is-open .gr-drawer__scrim { opacity: 1; }
.gr-drawer__panel {
	position: relative; width: min(88vw, 380px); outline: none; height: 100%; overflow-y: auto; overscroll-behavior: contain;
	background: var(--gr-surface); box-shadow: var(--gr-shadow-raised);
	transform: translateX(-100%); transition: transform var(--gr-med) var(--gr-ease);
	display: flex; flex-direction: column;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.gr-drawer.is-open .gr-drawer__panel { transform: none; }
.gr-drawer__head {
	display: flex; align-items: center; justify-content: space-between; gap: var(--gr-s3);
	padding: var(--gr-s2) var(--gr-s2) var(--gr-s2) var(--gr-s4); border-bottom: 1px solid var(--gr-line); min-height: var(--gr-header-h);
}
.gr-drawer__head img { width: 120px; height: auto; }
.gr-drawer__nav { padding: var(--gr-s2) 0; }
.gr-drawer__list, .gr-drawer__list .sub-menu { margin: 0; padding: 0; list-style: none; }
.gr-drawer__list a {
	display: flex; align-items: center; min-height: 52px; padding: 0 var(--gr-s5);
	font: 600 var(--gr-fs-md) var(--gr-font-head); color: var(--gr-ink); text-decoration: none;
}
.gr-drawer__list > li + li { border-top: 1px solid var(--gr-line); }
.gr-drawer__list > li:not(.menu-item-has-children) > a::after {
	content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--gr-line-strong); border-top: 2px solid var(--gr-line-strong); transform: rotate(45deg);
}
.gr-drawer__list .sub-menu { padding-bottom: var(--gr-s2); }
.gr-drawer__list a:hover { background: var(--gr-green-50); color: var(--gr-green); }
.gr-drawer__list .sub-menu a {
	min-height: 46px; padding-left: calc(var(--gr-s5) + var(--gr-s4));
	font: 500 var(--gr-fs-base) var(--gr-font-body); color: var(--gr-ink-soft);
}
.gr-drawer__list .current-menu-item > a { color: var(--gr-green); box-shadow: inset 3px 0 0 var(--gr-lime); }
.gr-drawer__foot { margin-top: auto; padding: var(--gr-s4) var(--gr-s5) var(--gr-s5); border-top: 1px solid var(--gr-line); display: grid; gap: var(--gr-s2); }
.gr-drawer__foot a { display: flex; align-items: center; gap: var(--gr-s3); min-height: 44px; color: var(--gr-ink); text-decoration: none; font-weight: 600; }
.gr-drawer__foot svg { width: 22px; height: 22px; color: var(--gr-green); }
body.gr-no-scroll { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.gr-footer { background: var(--gr-sand); color: var(--gr-ink); margin-top: var(--gr-s8); }
.gr-footer__assure { border-bottom: 1px solid var(--gr-line); padding-block: var(--gr-s5); }
.gr-footer .gr-assure--footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gr-s4); }
.gr-footer .gr-assure--footer li { font: 600 var(--gr-fs-xs)/1.35 var(--gr-font-head); }
.gr-footer .gr-assure--footer svg { flex-basis: 40px; width: 40px; height: 40px; padding: 10px; box-sizing: border-box; border-radius: 50%; background: var(--gr-surface); }
@media (min-width: 900px) {
	.gr-footer .gr-assure--footer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gr-footer .gr-assure--footer li { font-size: var(--gr-fs-sm); justify-content: center; }
}
.gr-footer__top { display: grid; gap: var(--gr-s6); padding-block: var(--gr-s7) var(--gr-s6); }
.gr-footer__brand { display: grid; gap: var(--gr-s4); max-width: 340px; align-content: start; justify-items: start; }
.gr-footer__brand img { width: 168px; height: auto; }
.gr-footer__brand p { margin: 0; color: var(--gr-ink-soft); font-size: var(--gr-fs-sm); }
.gr-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gr-s6) var(--gr-s5); }
.gr-footer__col h2 {
	margin: 0 0 var(--gr-s3); font-size: var(--gr-fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gr-green);
}
.gr-footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.gr-footer__col a {
	display: inline-flex; align-items: center; min-height: 44px; color: var(--gr-ink); text-decoration: none; font-size: var(--gr-fs-sm);
}
.gr-footer__col a:hover { color: var(--gr-green); text-decoration: underline; }
.gr-footer__contact { display: grid; gap: 2px; font-size: var(--gr-fs-sm); color: var(--gr-ink-soft); }
.gr-footer__mail { display: inline-flex; align-items: center; gap: var(--gr-s2); min-height: 44px; font-weight: 700; color: var(--gr-ink); text-decoration: none; }
.gr-footer__mail svg { width: 20px; height: 20px; color: var(--gr-green); }
.gr-footer__mail:hover span { text-decoration: underline; color: var(--gr-green); }
.gr-social { display: flex; gap: var(--gr-s2); flex-wrap: wrap; }
.gr-social a {
	width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
	background: var(--gr-surface); color: var(--gr-ink); border: 1px solid var(--gr-line);
}
.gr-social a:hover { color: var(--gr-green); border-color: var(--gr-green); }
.gr-social svg { width: 20px; height: 20px; }
.gr-footer__bottom {
	border-top: 1px solid var(--gr-line); padding-block: var(--gr-s4) var(--gr-s5);
	display: grid; gap: var(--gr-s3); font-size: var(--gr-fs-xs); color: var(--gr-ink-soft);
}
.gr-footer__legal { display: flex; flex-wrap: wrap; gap: 4px var(--gr-s4); margin: 0; padding: 0; list-style: none; }
.gr-footer__legal a { color: var(--gr-ink-soft); display: inline-flex; min-height: 44px; align-items: center; }
.gr-footer__copy { margin: 0; }
.gr-footer__pay { display: grid; gap: var(--gr-s2); }
.gr-footer__payments { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gr-footer__payments li {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--gr-line); border-radius: var(--gr-r-sm); background: var(--gr-surface);
	font: 700 11px var(--gr-font-head); letter-spacing: 0.04em; color: var(--gr-ink);
}
.gr-footer__payments svg { width: 16px; height: 16px; color: var(--gr-green); }
.gr-footer__payby { margin: 0; font-size: var(--gr-fs-xs); color: var(--gr-ink-soft); }
@media (min-width: 768px) {
	.gr-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gr-footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
	.gr-footer__pay { justify-items: end; text-align: right; }
}
@media (min-width: 1100px) {
	.gr-footer__top { grid-template-columns: 340px 1fr; gap: var(--gr-s8); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
