/**
 * Forest Remedy — sitewide components. Added 2026-09-15.
 * Reads the variables in fr-tokens.css; no colour is written here directly.
 */

/* ----------------------------------------------------------
 * The promise strip under the homepage hero.
 * Three plain facts a first-time visitor needs before scrolling.
 * Icons are CSS masks, so they take the brand colour from a token.
 * ---------------------------------------------------------- */
.fr-promise {
	background: var(--fr-mist);
	padding: 34px 0 14px;
}

/*
 * 2 Oct 2026 (Jeremy: the icons sat hard against the bottom of the hero). The strip is a UX Builder
 * section with padding="0px", which Flatsome prints as an inline style, so the padding above never
 * applied. The top is set here with !important; the bottom is left to the items, which was fine.
 */
.section.fr-promise {
	padding-top: 46px !important;
}

.fr-promise__item {
	text-align: center;
	padding: 4px 14px 18px;
}

.fr-promise__icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	margin-bottom: 10px;
	background-color: var(--fr-mid);
	-webkit-mask: var(--fr-icon) center / contain no-repeat;
	mask: var(--fr-icon) center / contain no-repeat;
}

.fr-promise__icon--jar {
	--fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 3h7v3h-7z'/%3E%3Cpath d='M7 6h10a1 1 0 0 1 1 1v12a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V7a1 1 0 0 1 1-1z'/%3E%3Cpath d='M9 12.5h6M9 15.5h4'/%3E%3C/svg%3E");
}

.fr-promise__icon--leaf {
	--fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8.5 5.5-13.5 14-14-.5 8.5-5.5 14-14 14z'/%3E%3Cpath d='M5 19l8-8'/%3E%3C/svg%3E");
}

.fr-promise__icon--parcel {
	--fr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5l9-4 9 4-9 4z'/%3E%3Cpath d='M3 7.5v9l9 4 9-4v-9'/%3E%3Cpath d='M12 11.5v9'/%3E%3C/svg%3E");
}

.fr-promise__title {
	margin: 0 0 4px;
	font-size: 1.05em;
	letter-spacing: 0.01em;
	color: var(--fr-deep);
}

.fr-promise__text {
	margin: 0;
	font-size: 0.95em;
	color: var(--fr-ink-3);
}

@media (max-width: 549px) {
	.fr-promise {
		padding: 24px 0 6px;
	}

	.section.fr-promise {
		padding-top: 30px !important;
	}

	.fr-promise__item {
		padding-bottom: 12px;
	}
}

/* ----------------------------------------------------------
 * Homepage hero — keep the headline inside the screen on phones.
 * The banner text carries inline font sizes from UX Builder, hence !important.
 * ---------------------------------------------------------- */
@media (max-width: 549px) {
	.fr-hero .h-large span {
		font-size: 100% !important;
	}

	.fr-hero h1:not(.h-large) span {
		font-size: 78% !important;
	}
}

/* ----------------------------------------------------------
 * Motion — respect "reduce motion". Flatsome's scroll animations ignore it by default.
 * ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	[data-animate] {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ==========================================================
 * Polish pass 2 — 2026-09-19
 * Same palette; darker wherever text sits on colour (see fr-tokens.css).
 * ========================================================== */

/* ----------------------------------------------------------
 * Top bar — forest green, white text (9.64:1).
 * ---------------------------------------------------------- */
#top-bar,
#top-bar .html,
#top-bar a {
	color: var(--fr-on-deep);
}

#top-bar strong {
	font-weight: 700;
	letter-spacing: 0.06em;
}

/* ----------------------------------------------------------
 * Header — search and cart icons in the forest ink, a visible focus ring.
 * ---------------------------------------------------------- */
.header-main .header-search > a,
.header-main .cart-item .header-cart-link {
	color: var(--fr-deep);
}

.header-main .header-search > a:hover,
.header-main .cart-item .header-cart-link:hover {
	color: var(--fr-mid);
}

.header-main a:focus-visible,
.header-main button:focus-visible {
	outline: 2px solid var(--fr-mid);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ----------------------------------------------------------
 * Shop and category pages — a real H1 above the breadcrumbs.
 * ---------------------------------------------------------- */
.shop-page-title.is-xlarge {
	margin: 0 0 2px;
	font-size: 2em;
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: var(--fr-deep);
}

@media (max-width: 549px) {
	.shop-page-title.is-xlarge {
		font-size: 1.6em;
	}
}

/* Policy pages (inc/site.php §3). */
.fr-page-title {
	margin: 6px 0 20px;
	font-size: 2.1em;
	line-height: 1.2;
	color: var(--fr-deep);
}

/* "From $20.00" kept its space everywhere except the sticky buy bar, whose price row is flex. */
.sticky-add-to-cart .fr-price-from {
	margin-right: 0.25em;
}

/* ----------------------------------------------------------
 * The footer (inc/site.php §2) — forest green, four short columns,
 * then Flatsome's legal row. Colours are set on each link: themes
 * colour links per element, so a rule on the wrapper never reaches them.
 * ---------------------------------------------------------- */
.fr-footer {
	padding: 52px 0 30px;
	background: var(--fr-deep);
	color: var(--fr-on-deep-2);
	font-size: 0.95em;
	line-height: 1.55;
}

.fr-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
}

/* Phones: name and "find us" full width, Shop and Help side by side. */
.fr-footer__brand,
.fr-footer__col:last-child {
	grid-column: 1 / -1;
}

@media (min-width: 850px) {
	.fr-footer__brand,
	.fr-footer__col:last-child {
		grid-column: auto;
	}
}

@media (min-width: 850px) {
	.fr-footer__grid {
		grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
	}
}

.fr-footer p {
	margin: 0 0 12px;
}

.fr-footer__name {
	font-family: var(--fr-font-accent);
	font-size: 2em;
	line-height: 1.1;
	color: var(--fr-on-deep);
}

.fr-footer__blurb {
	max-width: 26em;
}

.fr-footer__heading {
	margin: 6px 0 14px;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fr-on-deep);
}

.fr-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fr-footer li {
	margin: 0 0 8px;
	padding: 0;
}

#footer .fr-footer a {
	color: var(--fr-on-deep);
	text-decoration: none;
}

#footer .fr-footer a:hover,
#footer .fr-footer a:focus-visible {
	color: var(--fr-on-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

#footer .fr-footer a:focus-visible {
	outline: 2px solid var(--fr-on-deep);
	outline-offset: 2px;
}

.fr-footer__social a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 18px;
}

/* "Where to find us" — shared by the footer and the homepage market band. */
.fr-find-us {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fr-find-us li {
	display: flex;
	flex-direction: column;
	margin: 0 0 12px;
	padding: 0;
}

.fr-find-us__when {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fr-find-us__pickup {
	margin: 14px 0 0;
	font-size: 0.92em;
	line-height: 1.55;
}

.fr-footer .fr-find-us__when,
.fr-market .fr-find-us__when {
	color: var(--fr-on-deep-2);
}

.fr-footer .fr-find-us__where,
.fr-market .fr-find-us__where {
	color: var(--fr-on-deep);
}

/* Flatsome's legal row, now on the same green. */
#footer .absolute-footer {
	padding: 18px 0 24px;
	border-top: 1px solid var(--fr-on-deep-rule);
	background: var(--fr-deep);
	color: var(--fr-on-deep-2);
	font-size: 0.85em;
}

#footer .absolute-footer .footer-nav > li > a,
#footer .absolute-footer a {
	color: var(--fr-on-deep-2);
	opacity: 1;
}

#footer .absolute-footer .footer-nav > li > a:hover,
#footer .absolute-footer a:hover,
#footer .absolute-footer a:focus-visible {
	color: var(--fr-on-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

#footer .absolute-footer .copyright-footer strong {
	color: var(--fr-on-deep);
}

/* ----------------------------------------------------------
 * Homepage — the market band between the two product rows.
 * ---------------------------------------------------------- */
.fr-market {
	background: var(--fr-deep);
	color: var(--fr-on-deep-2);
}

.fr-market__eyebrow {
	margin: 0 0 2px;
	font-family: var(--fr-font-accent);
	font-size: 1.6em;
	line-height: 1.2;
	color: var(--fr-bright);
}

.fr-market .fr-market__title {
	margin: 0 0 12px;
	font-size: 2.1em;
	line-height: 1.15;
	color: var(--fr-on-deep);
}

.fr-market__text {
	max-width: 30em;
	margin: 0 0 20px;
	font-size: 1.05em;
	line-height: 1.6;
	color: var(--fr-on-deep-2);
}

.fr-market .fr-find-us {
	padding: 22px 24px 10px;
	border: 1px solid var(--fr-on-deep-rule);
	border-radius: var(--fr-radius);
	background: rgba(255, 255, 255, 0.05);
}

/* Flatsome indents lists inside page content; this one sits in its own card. */
.fr-market ul.fr-find-us,
.fr-market ul.fr-find-us li {
	margin-left: 0;
}

.fr-market .fr-find-us li {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--fr-on-deep-rule);
}

.fr-market .fr-find-us li:last-child {
	border-bottom: 0;
}

.fr-market .fr-find-us__where {
	font-size: 1.1em;
}

.fr-market .fr-find-us__pickup {
	color: var(--fr-on-deep-2);
}

@media (max-width: 549px) {
	.fr-market .fr-market__title {
		font-size: 1.7em;
	}
}

/* ----------------------------------------------------------
 * Homepage promise strip on phones — icon beside the words, so the
 * three facts take one screen-third, not a whole screen.
 * ---------------------------------------------------------- */
@media (max-width: 549px) {
	.fr-promise__item {
		display: grid;
		grid-template-columns: 34px minmax(0, 1fr);
		column-gap: 14px;
		align-items: start;
		padding: 2px 8px 12px;
		text-align: left;
	}

	.fr-promise__icon {
		grid-row: span 2;
		width: 30px;
		height: 30px;
		margin: 2px 0 0;
	}

	.fr-promise__title,
	.fr-promise__text {
		grid-column: 2;
	}

	.fr-promise .col {
		padding-bottom: 4px;
	}
}

/* Hero: the first button is solid white with forest text (Flatsome's .white sets #666 with !important,
   so matching it is the only way to set the text; used here and nowhere else). */
.fr-hero .button.white:not(.is-outline) {
	color: var(--fr-deep) !important;
}

.fr-hero .button {
	min-width: 11em;
}

/* ----------------------------------------------------------
 * 2 Oct 2026, final pass on the homepage (Jeremy: room above "Best sellers" too, "it doesn't have
 * to be as much", and one more polish and motion pass before Leni's review).
 * ---------------------------------------------------------- */

/* Room between the strip and the "Best sellers" heading, which sat about 16 px under it. */
.fr-promise + .scroll-to + .section-title-container {
	margin-top: 30px;
}

@media (max-width: 549px) {
	.fr-promise + .scroll-to + .section-title-container {
		margin-top: 20px;
	}
}

/*
 * Motion on the homepage: slow and small. It moves things and never hides them, and it is off for
 * anyone whose device asks for less motion. The scroll-tied part only runs where the browser can
 * tie motion to scrolling; everywhere else the page is simply still.
 */
@keyframes fr-home-drift {
	from { transform: scale(1); }
	to { transform: scale(1.07) translate3d(0, -1%, 0); }
}

@keyframes fr-home-float {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -7px, 0); }
}

@keyframes fr-home-rise {
	from { transform: translate3d(0, 34px, 0); }
	to { transform: none; }
}

.fr-hero .banner-bg {
	overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
	/* The forest behind the headline drifts very slowly. */
	.fr-hero .banner-bg img.bg {
		animation: fr-home-drift 32s ease-in-out infinite alternate;
		transform-origin: 50% 65%;
	}

	/* The two arches in the sessions band rise and fall a little, out of step with each other. */
	.fr-sessions-band__photos .fr-sessions-photo {
		animation: fr-home-float 8s ease-in-out infinite;
	}

	.fr-sessions-band__photos .fr-sessions-photo:nth-child(2) {
		animation-delay: -4s;
	}

	@supports (animation-timeline: view()) {
		/* The market card, the sessions words and the four range tiles settle as they scroll into view. */
		.fr-market .col > .col-inner,
		.fr-sessions-band .col:first-child > .col-inner,
		.home .product-category.col > .col-inner {
			animation: fr-home-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 55%;
		}

		.home .product-category.col:nth-child(2) > .col-inner { animation-range: entry 8% entry 63%; }
		.home .product-category.col:nth-child(3) > .col-inner { animation-range: entry 16% entry 71%; }
		.home .product-category.col:nth-child(4) > .col-inner { animation-range: entry 24% entry 79%; }
	}
}
