/**
 * Gardenia Herbals — global styles.
 *
 * 1. Design tokens
 * 2. Base & typography
 * 3. Utilities & accessibility
 * 4. Buttons & forms
 * 5. Header & navigation
 * 6. Footer
 * 7. Content (pages, posts, archives)
 * 8. Homepage sections
 * 9. Motion preferences
 *
 * Colours reference theme.json presets so the editor and front end share
 * one source of truth; hex values are fallbacks only.
 */

/* 1. Design tokens ------------------------------------------------------- */

:root {
	--gh-color-primary: var(--wp--preset--color--primary, #216b4e);
	--gh-color-primary-dark: var(--wp--preset--color--primary-dark, #18523b);
	--gh-color-secondary: var(--wp--preset--color--secondary, #dcede2);
	--gh-color-accent: var(--wp--preset--color--accent, #9bc8a6);
	--gh-color-bg: var(--wp--preset--color--background, #fff);
	--gh-color-surface: var(--wp--preset--color--surface, #f4f9f5);
	--gh-color-text: var(--wp--preset--color--text, #263b30);
	--gh-color-muted: var(--wp--preset--color--muted, #56695e);
	--gh-color-border: var(--wp--preset--color--border, #d3e3d9);

	--gh-font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--gh-font-heading: var(--wp--preset--font-family--heading, Georgia, serif);

	--gh-radius-sm: 6px;
	--gh-radius: 12px;
	--gh-radius-lg: 24px;
	--gh-radius-pill: 999px;

	--gh-shadow-sm: 0 1px 2px rgb(38 59 48 / 0.06);
	--gh-shadow: 0 10px 30px -12px rgb(38 59 48 / 0.18);

	--gh-container: 1280px;
	--gh-gutter: clamp(1rem, 4vw, 2rem);
	--gh-section-space: clamp(3rem, 7vw, 6rem);
	--gh-header-height: 68px;
	--gh-logo-height: 44px;
	--gh-header-logo-height: 40px;

	--gh-transition: 180ms ease;
}

@media (min-width: 960px) {
	:root {
		--gh-header-height: 80px;
		--gh-logo-height: 56px;
		--gh-header-logo-height: 56px;
	}
}

/* 2. Base & typography --------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--gh-header-height) + 1rem);
}

body {
	margin: 0;
	background: var(--gh-color-bg);
	color: var(--gh-color-text);
	font-family: var(--gh-font-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--gh-font-heading);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--gh-color-text);
}

p, ul, ol, figure, blockquote {
	margin: 0 0 1.25em;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--gh-color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--gh-transition);
}

a:hover {
	color: var(--gh-color-primary-dark);
}

hr {
	border: 0;
	border-top: 1px solid var(--gh-color-border);
	margin: 2rem 0;
}

.eyebrow {
	margin-bottom: 0.75rem;
	color: var(--gh-color-primary);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* 3. Utilities & accessibility ------------------------------------------- */

.container {
	width: min(var(--gh-container), 100% - 2 * var(--gh-gutter));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	margin: 0;
	clip: auto;
	background: var(--gh-color-bg);
	color: var(--gh-color-primary);
	font-weight: 600;
	border-radius: var(--gh-radius-sm);
	box-shadow: var(--gh-shadow);
}

:focus-visible {
	outline: 2px solid var(--gh-color-primary);
	outline-offset: 2px;
}

.site-main:focus {
	outline: none;
}

/* 4. Buttons & forms ----------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.75rem 1.75rem;
	border: 1px solid transparent;
	border-radius: var(--gh-radius-pill);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--gh-transition), color var(--gh-transition), border-color var(--gh-transition);
}

.btn--primary {
	background: var(--gh-color-primary);
	color: var(--gh-color-bg);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--gh-color-primary-dark);
	color: var(--gh-color-bg);
}

.btn--outline {
	background: transparent;
	border-color: var(--gh-color-primary);
	color: var(--gh-color-primary);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	background: var(--gh-color-primary);
	color: var(--gh-color-bg);
}

/* White pill for use on tinted panels. */
.btn--light {
	background: var(--gh-color-bg);
	color: var(--gh-color-primary);
	box-shadow: var(--gh-shadow-sm);
}

.btn--light:hover,
.btn--light:focus-visible {
	background: var(--gh-color-primary);
	color: var(--gh-color-bg);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 1rem;
	border: 1px solid var(--gh-color-border);
	border-radius: var(--gh-radius-sm);
	background: var(--gh-color-bg);
	color: var(--gh-color-text);
	font: inherit;
	transition: border-color var(--gh-transition), box-shadow var(--gh-transition);
}

textarea {
	min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--gh-color-primary);
	box-shadow: 0 0 0 3px rgb(33 107 78 / 0.15);
	outline: none;
}

label {
	font-weight: 500;
}

button,
input[type="submit"] {
	font: inherit;
}

/* WordPress search form (search-form html5 markup). */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 560px;
}

.search-form label {
	flex: 1;
}

.search-form .search-submit,
.comment-form .submit,
.post-password-form input[type="submit"] {
	min-height: 48px;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: var(--gh-radius-pill);
	background: var(--gh-color-primary);
	color: var(--gh-color-bg);
	font-weight: 600;
	cursor: pointer;
}

.search-form .search-submit:hover,
.comment-form .submit:hover {
	background: var(--gh-color-primary-dark);
}

/* 5. Header & navigation ------------------------------------------------- */

.announcement-bar {
	background: var(--gh-color-primary);
	color: var(--gh-color-bg);
	font-size: 0.875rem;
	text-align: center;
}

.announcement-bar p {
	margin-block: 0;
	padding-block: 0.55rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--gh-color-bg);
	border-bottom: 1px solid var(--gh-color-border);
	transition: box-shadow var(--gh-transition);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	/* The admin bar is not fixed on small screens. */
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header.is-scrolled {
	box-shadow: var(--gh-shadow-sm);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--gh-header-height);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: clamp(0.5rem, 1.5vw, 0.875rem);
	min-width: 0;
	line-height: 0;
}

/* Header branding: the bundled Gardenia Herbals logo. */
.header-logo-link {
	display: inline-block;
	min-width: 0;
}

.header-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: var(--gh-header-logo-height);
	max-width: min(200px, 45vw);
}

/* Shown until the official logo files are uploaded. */
.logo-placeholder {
	display: inline-block;
	height: var(--gh-header-logo-height);
	max-width: min(13rem, 34vw);
	padding-inline: 0.6rem;
	overflow: hidden;
	border: 1px dashed var(--gh-color-accent);
	border-radius: var(--gh-radius-sm);
	color: var(--gh-color-primary);
	font-family: var(--gh-font-heading);
	font-size: clamp(0.8125rem, 1.4vw, 1rem);
	font-weight: 600;
	line-height: calc(var(--gh-header-logo-height) - 2px);
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.logo-placeholder:hover {
	color: var(--gh-color-primary-dark);
	border-color: var(--gh-color-primary);
}

/* The logo is never cropped or recoloured — only its rendered height is
   capped, with width following the original aspect ratio. */
.custom-logo-link {
	display: inline-block;
}

.custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: var(--gh-logo-height);
	max-width: min(240px, 50vw);
}

.site-title {
	font-family: var(--gh-font-heading);
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--gh-color-text);
	text-decoration: none;
}

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem;
}

.header-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--gh-radius-pill);
	background: transparent;
	color: var(--gh-color-text);
	cursor: pointer;
	transition: background-color var(--gh-transition), color var(--gh-transition);
}

.header-action:hover,
.header-action[aria-expanded="true"] {
	background: var(--gh-color-surface);
	color: var(--gh-color-primary);
}

.header-cart__count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--gh-radius-pill);
	background: var(--gh-color-primary);
	color: var(--gh-color-bg);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.header-cart__count.is-empty {
	display: none;
}

/* Hide the account icon on very small screens to keep touch targets roomy. */
@media (max-width: 380px) {
	.header-account {
		display: none;
	}
}

.menu-toggle__open {
	display: inline-flex;
}

.menu-toggle__close {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: inline-flex;
}

/* Explicit placement keeps the row stable whether or not the toggle shows. */
.menu-toggle {
	grid-column: 1;
	grid-row: 1;
}

.site-branding {
	grid-column: 2;
	grid-row: 1;
}

.header-actions {
	grid-column: 3;
	grid-row: 1;
}

/* Menus share these resets (works for wp_nav_menu and the page fallback). */
.primary-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	display: block;
	color: var(--gh-color-text);
	font-weight: 500;
	text-decoration: none;
}

.primary-nav a:hover {
	color: var(--gh-color-primary);
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_parent > a {
	color: var(--gh-color-primary);
	font-weight: 600;
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.submenu-toggle .icon {
	width: 18px;
	height: 18px;
	transition: transform var(--gh-transition);
}

.submenu-toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

/* Mobile navigation (below 960px): a panel under the header. */
@media (max-width: 959px) {
	.js .primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - var(--gh-header-height));
		max-height: calc(100dvh - var(--gh-header-height));
		overflow-y: auto;
		padding: 0.5rem var(--gh-gutter) 1.5rem;
		background: var(--gh-color-bg);
		border-bottom: 1px solid var(--gh-color-border);
		box-shadow: var(--gh-shadow);
	}

	.js .primary-nav.is-open {
		display: block;
	}

	/* Without JavaScript the menu sits inline below the logo row. */
	.no-js .menu-toggle {
		display: none;
	}

	.no-js .primary-nav {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.primary-nav li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid var(--gh-color-border);
	}

	.primary-nav li a {
		flex: 1;
		padding: 0.85rem 0;
	}

	.primary-nav .sub-menu {
		display: none;
		flex-basis: 100%;
		padding-left: 1rem;
	}

	.primary-nav .is-open > .sub-menu,
	.no-js .primary-nav .sub-menu {
		display: block;
	}

	.primary-nav .sub-menu li:last-child {
		border-bottom: 0;
	}

	body.menu-open {
		overflow: hidden;
	}
}

/* Desktop navigation. */
@media (min-width: 960px) {
	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		gap: clamp(1.25rem, 2.5vw, 2rem);
	}

	.menu-toggle {
		display: none;
	}

	.site-branding {
		grid-column: 1;
	}

	.primary-nav {
		grid-column: 2;
		grid-row: 1;
	}

	.primary-nav > ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.25rem clamp(1.25rem, 2.2vw, 2rem);
	}

	.primary-nav li {
		position: relative;
		display: flex;
		align-items: center;
	}

	/* Top-level links: a 2px underline grows in on hover (soft accent) and
	   stays on the current item (botanical green). */
	.primary-nav > ul > li > a {
		padding-block: 0.6rem;
		font-size: 0.9375rem;
		background: linear-gradient(var(--gh-color-accent), var(--gh-color-accent)) no-repeat 50% 100% / 0 2px;
		transition: background-size var(--gh-transition), color var(--gh-transition);
	}

	.primary-nav > ul > li > a:hover {
		background-size: 100% 2px;
	}

	.primary-nav > ul > .current-menu-item > a,
	.primary-nav > ul > .current_page_item > a,
	.primary-nav > ul > .current-menu-ancestor > a,
	.primary-nav > ul > .current_page_parent > a {
		color: var(--gh-color-text);
		font-weight: 600;
		background-image: linear-gradient(var(--gh-color-primary), var(--gh-color-primary));
		background-size: 100% 2px;
	}

	.primary-nav .submenu-toggle {
		width: 28px;
		height: 28px;
		margin-left: -0.25rem;
	}

	.primary-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: -1rem;
		z-index: 10;
		min-width: 220px;
		padding: 0.5rem;
		background: var(--gh-color-bg);
		border: 1px solid var(--gh-color-border);
		border-radius: var(--gh-radius);
		box-shadow: var(--gh-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity var(--gh-transition), transform var(--gh-transition), visibility var(--gh-transition);
	}

	.primary-nav .sub-menu .sub-menu {
		top: -0.5rem;
		left: 100%;
	}

	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu,
	.primary-nav li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav .sub-menu a {
		flex: 1;
		padding: 0.55rem 0.75rem;
		border-radius: var(--gh-radius-sm);
		font-size: 0.9375rem;
	}

	.primary-nav .sub-menu a:hover {
		background: var(--gh-color-surface);
	}
}

.header-search {
	padding-block: 1rem;
	background: var(--gh-color-surface);
	border-top: 1px solid var(--gh-color-border);
}

.header-search[hidden] {
	display: none;
}

/* Header product search (gardenia_product_search_form): a pill field with
   an icon submit. Inline on wide screens, in the toggle panel below that. */
.product-search {
	position: relative;
	display: flex;
	align-items: center;
}

.product-search .product-search__field {
	min-height: 40px;
	padding: 0.5rem 2.75rem 0.5rem 1.1rem;
	border-radius: var(--gh-radius-pill);
	background: var(--gh-color-surface);
	font-size: 0.875rem;
}

.product-search__field::placeholder {
	color: var(--gh-color-muted);
	opacity: 1;
}

.product-search__submit {
	position: absolute;
	top: 50%;
	right: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: var(--gh-radius-pill);
	background: transparent;
	color: var(--gh-color-text);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color var(--gh-transition), background-color var(--gh-transition);
}

.product-search__submit:hover {
	background: var(--gh-color-secondary);
	color: var(--gh-color-primary);
}

.product-search__submit .icon {
	width: 20px;
	height: 20px;
}

.header-search .product-search {
	max-width: 640px;
	margin-inline: auto;
}

.header-search .product-search .product-search__field {
	min-height: 48px;
	background: var(--gh-color-bg);
	font-size: 1rem;
}

.header-search .product-search__submit {
	width: 40px;
	height: 40px;
}

.header-search-inline {
	display: none;
}

@media (min-width: 1200px) {
	.header-search-inline {
		display: block;
		width: clamp(190px, 17vw, 260px);
		margin-right: 0.5rem;
	}

	.search-toggle,
	.header-search {
		display: none;
	}
}

/* Without JavaScript the search panel can't be toggled, so show it. */
@media (max-width: 1199px) {
	.no-js .search-toggle {
		display: none;
	}

	.no-js .header-search[hidden] {
		display: block;
	}
}

.woocommerce-product-search button {
	min-height: 48px;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: var(--gh-radius-pill);
	background: var(--gh-color-primary);
	color: var(--gh-color-bg);
	font-weight: 600;
	cursor: pointer;
}

/* 6. Footer -------------------------------------------------------------- */

/* White, with a hairline above. Columns: 1 (mobile), 2 (640px+), 4 (960px+). */
.site-footer {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid var(--gh-color-border);
	background: var(--gh-color-bg);
	color: var(--gh-color-muted);
	font-size: 0.875rem;
	line-height: 1.6;
}

.site-footer a {
	color: var(--gh-color-muted);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.site-footer a:hover {
	color: var(--gh-color-primary);
	text-decoration: underline;
}

.site-footer a[aria-current="page"] {
	color: var(--gh-color-text);
	font-weight: 600;
}

.site-footer__main {
	display: grid;
	gap: 2.5rem 2rem;
	padding-block: clamp(2.25rem, 4vw, 3rem);
}

/* Grid children may shrink below their content (long links, wide logos). */
.site-footer__main > * {
	min-width: 0;
}

@media (min-width: 640px) {
	.site-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.75rem 2.5rem;
	}
}

@media (min-width: 960px) {
	.site-footer__main {
		grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
		gap: 2.5rem;
	}

	/* Amazon stays in the last column even when a link column is empty. */
	.footer-amazon {
		grid-column: -2;
	}
}

.footer-brand__logo {
	margin-bottom: 0.5rem;
}

.footer-brand .custom-logo,
.footer-logo {
	display: block;
	width: 140px;
	max-width: 100%;
	height: auto;
}

.footer-logo-link {
	display: inline-block;
}

.footer-brand .site-title {
	display: inline-block;
	font-size: 1.375rem;
	color: var(--gh-color-primary);
	overflow-wrap: anywhere;
}

.footer-brand__tagline {
	max-width: 32ch;
	margin-bottom: 1rem;
	color: var(--gh-color-muted);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0 0 0 -0.5rem;
	padding: 0;
	list-style: none;
}

/* Plain glyphs as in the design; the 2.5rem box keeps the tap target. */
.site-footer .social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	color: var(--gh-color-text);
	transition: color var(--gh-transition), background-color var(--gh-transition);
}

.site-footer .social-link:hover {
	background: var(--gh-color-surface);
	color: var(--gh-color-primary);
}

.social-link .icon {
	width: 1.25rem;
	height: 1.25rem;
}

.footer-column__title {
	margin-bottom: 0.75rem;
	font-family: var(--gh-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--gh-color-text);
}

.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.125rem;
}

/* Padding gives each link a comfortable tap target without extra spacing. */
.footer-links a {
	display: inline-block;
	padding-block: 0.125rem;
}

.footer-amazon__text {
	max-width: 32ch;
	margin-bottom: 0.75rem;
}

.footer-amazon__link {
	display: inline-block;
	border-radius: var(--gh-radius-sm);
}

.footer-amazon__image {
	display: block;
	width: auto;
	height: auto;
	max-height: 60px;
	max-width: min(180px, 100%);
	transition: opacity var(--gh-transition);
}

.footer-amazon__link:hover .footer-amazon__image {
	opacity: 0.85;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-block: 1.25rem;
	border-top: 1px solid var(--gh-color-border);
	font-size: 0.8125rem;
}

.site-footer__bottom p {
	margin: 0;
}

/* 7. Content ------------------------------------------------------------- */

.content-area,
.page-article {
	padding-block: clamp(2rem, 5vw, 4rem);
}

.page-header,
.entry-header {
	max-width: 760px;
	margin: 0 auto clamp(1.5rem, 4vw, 3rem);
	text-align: center;
}

.page-title,
.entry-title {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.archive-description {
	color: var(--gh-color-muted);
}

.entry-meta {
	margin-bottom: 0.5rem;
	color: var(--gh-color-muted);
	font-size: 0.875rem;
}

.entry-thumbnail {
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.entry-thumbnail img {
	display: block;
	width: 100%;
	border-radius: var(--gh-radius-lg);
}

/* Constrain block content to the readable width; allow wide/full blocks. */
.entry-content > * {
	max-width: 760px;
	margin-inline: auto;
}

.entry-content > .alignwide,
.entry-thumbnail.alignwide {
	max-width: var(--gh-container);
}

.entry-content > .alignfull {
	max-width: none;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.alignleft {
	float: left;
	margin: 0.25rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.25rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
figcaption {
	color: var(--gh-color-muted);
	font-size: 0.875rem;
}

.entry-footer,
.page-links {
	max-width: 760px;
	margin: 2rem auto 0;
}

.entry-tags a {
	display: inline-block;
	margin: 0 0.35rem 0.35rem 0;
	padding: 0.25rem 0.75rem;
	border-radius: var(--gh-radius-pill);
	background: var(--gh-color-surface);
	font-size: 0.875rem;
	text-decoration: none;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.post-card__media {
	display: block;
	overflow: hidden;
	margin-bottom: 1rem;
	border-radius: var(--gh-radius);
	background: var(--gh-color-surface);
	aspect-ratio: 4 / 3;
}

.post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__title {
	margin-bottom: 0.5rem;
	font-size: 1.375rem;
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--gh-color-primary);
}

.post-card__excerpt {
	color: var(--gh-color-muted);
}

.pagination,
.post-navigation,
.comments-area {
	max-width: 760px;
	margin: 3rem auto 0;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.85rem;
	border: 1px solid var(--gh-color-border);
	border-radius: var(--gh-radius-pill);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--gh-color-primary);
	border-color: var(--gh-color-primary);
	color: var(--gh-color-bg);
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation .nav-label {
	display: block;
	color: var(--gh-color-muted);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.comment-list {
	padding-left: 0;
	list-style: none;
}

.comment-list .children {
	list-style: none;
}

.not-found {
	text-align: center;
}

.not-found .search-form {
	margin: 0 auto 2rem;
}

/* 8. Homepage sections --------------------------------------------------- */

.section {
	padding-block: var(--gh-section-space);
}

.section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-title {
	margin: 0;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-header__eyebrow {
	margin-bottom: 0.4rem;
}

.section-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	text-decoration: none;
}

.section-link .icon {
	width: 18px;
	height: 18px;
	transition: transform var(--gh-transition);
}

.section-link:hover .icon {
	transform: translateX(3px);
}

/* Hero: copy + CTA and trust indicators on the left, product scene on the
   right. Stacks to copy → image → trust indicators on small screens. */
.hero {
	overflow: hidden;
	background: var(--gh-color-bg);
}

.hero__inner {
	display: grid;
	grid-template-areas:
		"content"
		"media"
		"trust";
	align-items: center;
	gap: clamp(1.75rem, 5vw, 2.75rem);
	padding-block: clamp(2rem, 6vw, 4.5rem);
}

.hero__content {
	grid-area: content;
	min-width: 0;
}

.hero__media {
	grid-area: media;
	justify-self: center;
	width: 100%;
	max-width: 640px;
	min-width: 0;
}

.hero .trust-list {
	grid-area: trust;
}

@media (min-width: 960px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		grid-template-areas:
			"content media"
			"trust media";
		column-gap: clamp(2rem, 4vw, 4rem);
		row-gap: 2.75rem;
	}

	.hero__content {
		align-self: end;
	}

	.hero .trust-list {
		align-self: start;
	}

	.hero__media {
		justify-self: end;
	}
}

.hero__eyebrow {
	margin-bottom: 1.1rem;
	color: var(--gh-color-muted);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
}

.hero__title {
	margin-bottom: 1.25rem;
	font-size: clamp(2.75rem, 7vw, 5rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.025em;
	color: var(--gh-color-text);
}

.hero__title-line {
	display: block;
}

.hero__title-accent {
	color: var(--gh-color-primary);
}

.hero__text {
	max-width: 36ch;
	margin-bottom: 2rem;
	color: var(--gh-color-text);
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	line-height: 1.6;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hero__cta {
	padding-inline: 1.75rem 1.5rem;
}

.hero__cta .icon {
	width: 18px;
	height: 18px;
	transition: transform var(--gh-transition);
}

.hero__cta:hover .icon,
.hero__cta:focus-visible .icon {
	transform: translateX(3px);
}

@media (max-width: 479px) {
	.hero__cta {
		width: 100%;
	}
}

.hero__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 8 / 7;
	object-fit: cover;
	border-radius: var(--gh-radius-lg);
}

/* Bundled banner: a wide photo with open space on its left. Small screens
   crop it to the product; wide screens run it full-bleed behind the copy. */
.hero__image--banner {
	aspect-ratio: 4 / 3;
	object-position: 80% center;
}

@media (min-width: 960px) {
	.hero--banner {
		position: relative;
		isolation: isolate;
	}

	.hero--banner .hero__inner {
		grid-template-areas:
			"content ."
			"trust .";
		min-height: min(56.25vw, 760px);
	}

	.hero--banner .hero__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		max-width: none;
	}

	.hero--banner .hero__image {
		height: 100%;
		aspect-ratio: auto;
		object-position: right center;
		border-radius: 0;
	}
}

/* Trust indicators */
.trust-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.trust-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.trust-list__item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--gh-color-text);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
}

.trust-list__item .icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	color: var(--gh-color-primary);
}

/* Promotional banners: one large banner on the left, two stacked on the
   right. Stacks large → top-right → bottom-right on small screens. */
.promo {
	--gh-promo-gap: clamp(1rem, 2vw, 1.5rem);
	--gh-promo-warm: #fbf5ea;
	--gh-promo-warm-deep: #f5ead6;
	padding-top: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.promo__grid {
	display: grid;
	gap: var(--gh-promo-gap);
}

@media (min-width: 640px) {
	.promo__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.promo-card--large,
	.promo__grid--2 .promo-card--small {
		grid-column: 1 / -1;
	}
}

@media (min-width: 960px) {
	.promo__grid--2,
	.promo__grid--3 {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		grid-template-rows: repeat(2, minmax(15rem, auto));
	}

	.promo-card--large {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.promo__grid--2 .promo-card--small {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

.promo-card {
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: var(--gh-radius-lg);
	background: linear-gradient(135deg, var(--gh-promo-warm) 0%, var(--gh-promo-warm-deep) 100%);
	isolation: isolate;
}

.promo-card--large {
	background: linear-gradient(135deg, var(--gh-color-surface) 0%, var(--gh-color-secondary) 100%);
}

.promo-card__body {
	position: relative;
	z-index: 1;
	min-width: 0;
	padding: clamp(1.5rem, 4vw, 2.75rem);
}

.promo-card--small .promo-card__body {
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

.promo-card__eyebrow {
	margin-bottom: 0.6rem;
	color: var(--gh-color-muted);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
}

.promo-card__title {
	margin-bottom: 0.75rem;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 600;
	line-height: 1.2;
}

.promo-card--large .promo-card__title {
	max-width: 14ch;
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	line-height: 1.12;
}

.promo-card__text {
	max-width: 32ch;
	margin-bottom: 1.5rem;
	color: var(--gh-color-muted);
}

.promo-card__cta {
	margin-top: 0.5rem;
	padding-inline: 1.5rem 1.25rem;
}

.promo-card--small .promo-card__cta {
	min-height: 44px;
	margin-top: 0.25rem;
	padding: 0.6rem 1rem 0.6rem 1.25rem;
	font-size: 0.875rem;
}

.promo-card__cta .icon {
	width: 18px;
	height: 18px;
	transition: transform var(--gh-transition);
}

/* The CTA's hit area covers the whole card; it stays one tab stop. */
.promo-card__cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.promo-card:hover .promo-card__cta {
	background: var(--gh-color-primary-dark);
	color: var(--gh-color-bg);
}

.promo-card--small:hover .promo-card__cta {
	background: var(--gh-color-primary);
}

.promo-card:hover .promo-card__cta .icon,
.promo-card__cta:focus-visible .icon {
	transform: translateX(3px);
}

/* The photo never drives the card height, so swapping in a photo of any size
   keeps the layout intact. Narrow cards stack the photo above the text; wide
   cards use it as a full-bleed backdrop with the text over its left side. */
.promo-card__media {
	position: relative;
	order: -1;
	min-width: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.promo-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
	transition: transform 400ms ease;
}

.promo-card:hover .promo-card__image {
	transform: scale(1.03);
}

@media (min-width: 640px) {
	.promo-card--large {
		align-items: center;
		min-height: 20rem;
	}

	.promo-card--large .promo-card__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
	}

	.promo-card--large .promo-card__body {
		max-width: 55%;
	}

	/* Soft fade behind the text so it stays legible on any photo. */
	.promo-card--large .promo-card__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, color-mix(in srgb, var(--gh-promo-warm) 80%, transparent) 0%, color-mix(in srgb, var(--gh-promo-warm) 45%, transparent) 40%, transparent 65%);
	}
}

@media (min-width: 960px) {
	.promo-card--small {
		align-items: center;
	}

	.promo-card--small .promo-card__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
	}

	.promo-card--small .promo-card__body {
		max-width: 58%;
	}

	.promo-card--small .promo-card__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, color-mix(in srgb, var(--gh-promo-warm) 80%, transparent) 0%, color-mix(in srgb, var(--gh-promo-warm) 45%, transparent) 45%, transparent 70%);
	}
}

/* Trust bar: dark green strip under the promotional banners. Two compact
   columns on small screens; one row with thin dividers from 768px. */
.trust-bar {
	--gh-trust-bar-bg: var(--gh-color-primary-dark);
}

/* Sit as close to the banners as the banners sit to each other. */
.promo + .trust-bar {
	margin-top: calc(clamp(1rem, 2vw, 1.5rem) - clamp(2.5rem, 6vw, 4.5rem));
}

.trust-bar__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 0.75rem;
	margin: 0;
	padding: 1.1rem 1.25rem;
	border-radius: var(--gh-radius);
	background: var(--gh-trust-bar-bg);
	color: var(--gh-color-bg);
	list-style: none;
}

.trust-bar__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

.trust-bar__item .icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: currentColor;
}

@media (min-width: 768px) {
	.trust-bar__list {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		grid-template-columns: none;
		gap: 0;
		padding: 1.4rem 1rem;
	}

	.trust-bar__item {
		justify-content: center;
		padding-inline: 0.5rem;
	}

	.trust-bar__item + .trust-bar__item::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 0;
		width: 1px;
		height: 1.75rem;
		background: rgb(255 255 255 / 0.25);
		transform: translateY(-50%);
	}
}

@media (min-width: 1100px) {
	.trust-bar__item {
		padding-inline: 1rem;
		font-size: 0.9375rem;
	}

	.trust-bar__item .icon {
		width: 28px;
		height: 28px;
	}
}

/* Brand promise */
.promise {
	border-block: 1px solid var(--gh-color-border);
}

.promise__list {
	display: grid;
	gap: 1.5rem;
	margin-block: 0;
	padding: clamp(1.75rem, 4vw, 2.5rem) 0;
	list-style: none;
}

@media (min-width: 768px) {
	.promise__list {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.promise__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.promise__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--gh-radius-pill);
	background: var(--gh-color-secondary);
	color: var(--gh-color-primary);
}

.promise__title {
	margin-bottom: 0.25rem;
	font-family: var(--gh-font-body);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
}

.promise__text {
	margin: 0;
	color: var(--gh-color-muted);
	font-size: 0.9375rem;
}

/* Shop by category: heading on the left, supporting text on the right;
   four pill cards (image, name, arrow) in one row from 960px, two columns
   from 480px, stacked below that. */
.home-categories {
	--gh-cat-warm: #fbf5ea;
	--gh-cat-warm-deep: #f5ead6;
}

.home-products + .home-categories {
	padding-top: 0;
}

.home-categories__text {
	max-width: 40ch;
	margin: 0;
	color: var(--gh-color-muted);
	font-size: 0.9375rem;
}

@media (max-width: 767px) {
	.home-categories__header {
		flex-direction: column;
		align-items: flex-start;
	}
}

.category-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 480px) {
	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.category-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.category-card__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 100%;
	min-height: 5.5rem;
	padding: 0.5rem 0.75rem 0.5rem 0.5rem;
	border-radius: var(--gh-radius-pill);
	background: linear-gradient(135deg, var(--gh-color-surface) 0%, var(--gh-color-secondary) 100%);
	color: var(--gh-color-text);
	text-decoration: none;
	transition: box-shadow var(--gh-transition), transform var(--gh-transition);
}

.category-card--warm .category-card__link {
	background: linear-gradient(135deg, var(--gh-cat-warm) 0%, var(--gh-cat-warm-deep) 100%);
}

.category-card__link:hover,
.category-card__link:focus-visible {
	box-shadow: var(--gh-shadow);
	transform: translateY(-2px);
}

.category-card__media {
	flex: none;
	display: block;
	width: 4.5rem;
	height: 4.5rem;
}

/* Uploaded photos and category thumbnails sit in a circle. */
.category-card__image {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	transition: transform 400ms ease;
}

/* Placeholder artwork has a transparent backdrop, so show all of it. */
.category-card__image--placeholder {
	border-radius: 0;
	object-fit: contain;
}

.category-card__link:hover .category-card__image {
	transform: scale(1.06);
}

.category-card__name {
	flex: 1;
	min-width: 0;
	font-family: var(--gh-font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.25;
}

.category-card__arrow {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--gh-color-bg);
	color: var(--gh-color-primary);
	box-shadow: var(--gh-shadow-sm);
	transition: background-color var(--gh-transition), color var(--gh-transition);
}

.category-card__arrow .icon {
	width: 18px;
	height: 18px;
}

.category-card__link:hover .category-card__arrow,
.category-card__link:focus-visible .category-card__arrow {
	background: var(--gh-color-primary);
	color: var(--gh-color-bg);
}

@media (min-width: 960px) and (max-width: 1199px) {
	.category-card__media {
		width: 3.75rem;
		height: 3.75rem;
	}

	.category-card__name {
		font-size: 1rem;
	}
}

/* Brand story: full-width rounded banner. The image fills the banner and
   fades into the light panel behind the copy, so a photo of any size keeps
   the copy legible. Copy stacks above the image below 768px. */
.home-categories + .home-story {
	padding-top: 0;
}

.story-banner {
	--gh-story-panel: var(--gh-color-surface);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
	border-radius: var(--gh-radius-lg);
	background: var(--gh-story-panel);
	isolation: isolate;
}

.story-banner__body {
	position: relative;
	z-index: 2;
	min-width: 0;
	padding: clamp(1.75rem, 5vw, 3.5rem);
}

.story-banner__eyebrow {
	margin-bottom: 0.6rem;
	color: var(--gh-color-muted);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
}

.story-banner__title {
	max-width: 20ch;
	text-wrap: balance;
	margin-bottom: 1rem;
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	font-weight: 600;
	line-height: 1.12;
}

.story-banner__text {
	max-width: 42ch;
	margin-bottom: 1.75rem;
	color: var(--gh-color-muted);
}

.story-banner__cta {
	padding-inline: 1.5rem 1.25rem;
}

.story-banner__cta .icon {
	width: 18px;
	height: 18px;
	transition: transform var(--gh-transition);
}

.story-banner__cta:hover .icon,
.story-banner__cta:focus-visible .icon {
	transform: translateX(3px);
}

.story-banner__media {
	position: relative;
	min-width: 0;
	aspect-ratio: 4 / 3;
}

.story-banner__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 78% center;
}

/* Blend the top edge of the image into the panel above it. */
.story-banner__media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, var(--gh-story-panel) 0%, transparent 30%);
	pointer-events: none;
}

.story-banner__note {
	position: absolute;
	right: clamp(1rem, 4vw, 3rem);
	bottom: clamp(1rem, 4vw, 2.5rem);
	z-index: 2;
	max-width: 12ch;
	margin: 0;
	color: var(--gh-color-bg);
	font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", cursive;
	font-size: clamp(1.125rem, 2.2vw, 1.5rem);
	line-height: 1.35;
	text-align: center;
	text-shadow: 0 1px 8px rgb(0 0 0 / 0.45);
}

@media (min-width: 768px) {
	.story-banner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		min-height: 22rem;
	}

	.story-banner__media {
		position: absolute;
		inset: 0;
		aspect-ratio: auto;
	}

	.story-banner__image {
		object-position: right center;
	}

	/* Solid panel behind the copy, fading into the image towards the centre. */
	.story-banner__media::before {
		background: linear-gradient(90deg, var(--gh-story-panel) 0%, var(--gh-story-panel) 40%, rgb(244 249 245 / 0.85) 52%, transparent 72%);
	}
}

@media (min-width: 1100px) {
	.story-banner {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		min-height: 24rem;
	}

	.story-banner__media::before {
		background: linear-gradient(90deg, var(--gh-story-panel) 0%, var(--gh-story-panel) 30%, rgb(244 249 245 / 0.85) 42%, transparent 62%);
	}
}

/* Section rhythm: the banner follows the cards closely, as in the design. */
.home-categories:has(+ .home-story) {
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Products: white cards on the page background (card styles live in
   woocommerce.css). Tighter top spacing when it follows the trust bar. */
.trust-bar + .home-products {
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

.home-content {
	padding-block: var(--gh-section-space);
}

/* Adjacent spacing must not double up: one section space after the story
   banner, and the footer's top margin alone after the last section. */
.home-story + .section {
	padding-top: 0;
}

.site-main > .section:not(:has(~ .section)) {
	padding-bottom: 0;
}

/* 9. Motion preferences -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
