/*
Theme Name: Heath & Lead
Theme URI: https://heathandlead.co.uk/
Description: Child theme for Kadence. Heath greens, warm paper, UK pet kit.
Author: Code Garden Services Ltd
Template: kadence
Version: 1.3.0
Text Domain: heath-lead
*/

/* -------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */

:root {
	--hl-heath: #2c4a3a;
	--hl-heath-deep: #1e3328;
	--hl-bracken: #5c6f45;
	--hl-moss: #7a8f62;
	--hl-clay: #c4a574;
	--hl-clay-deep: #a68554;
	--hl-paper: #f4efe6;
	--hl-paper-2: #ebe4d6;
	--hl-ink: #1c1917;
	--hl-ink-soft: #4a453e;
	--hl-rule: #d9d0c3;
	--hl-max: 72rem;
	--hl-serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
	--hl-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

html {
	background: var(--hl-paper);
	color-scheme: light;
}

body {
	background: var(--hl-paper) !important;
	color: var(--hl-ink);
	font-family: var(--hl-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}

h1, h2, h3, h4,
.entry-title,
.site-title,
.hl-hero h1,
.hl-section-title {
	font-family: var(--hl-serif);
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--hl-ink);
	line-height: 1.15;
}

a {
	color: var(--hl-heath);
}

a:hover {
	color: var(--hl-heath-deep);
}

/* -------------------------------------------------------------------------
   Header / wordmark
   ------------------------------------------------------------------------- */

.site-header-wrap,
#masthead,
.header-desktop,
.header-mobile {
	background: var(--hl-paper) !important;
	border-bottom: 1px solid var(--hl-rule);
}

.site-branding .site-title,
.site-branding .site-title a,
.site-title-inner,
.site-title-wrap .site-title {
	font-family: var(--hl-serif) !important;
	font-weight: 600 !important;
	font-size: 1.7rem !important;
	letter-spacing: -0.045em !important;
	color: var(--hl-ink) !important;
	text-transform: none !important;
}

.site-title .hl-amp,
.site-branding .hl-amp {
	color: var(--hl-clay);
	font-weight: 600;
	padding: 0 0.04em;
}

.site-branding .site-description,
.site-branding:has(.custom-logo) .site-title-wrap,
.site-branding:has(.custom-logo) .site-title {
	display: none !important;
}

.site-branding img.custom-logo,
.custom-logo {
	height: 42px;
	width: auto;
	max-width: 280px;
}

@media (max-width: 860px) {
	.site-branding img.custom-logo,
	.custom-logo {
		height: 34px;
		max-width: 200px;
	}
}

.header-menu-container ul.menu > li > a,
.mobile-menu-container ul.menu > li > a {
	font-family: var(--hl-sans);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	color: var(--hl-ink) !important;
	text-transform: none;
}

.header-menu-container ul.menu > li > a:hover {
	color: var(--hl-heath) !important;
}

.header-button,
.button.header-button {
	background: var(--hl-heath) !important;
	color: var(--hl-paper) !important;
	border: 0 !important;
	border-radius: 2px !important;
}

/* Header icons stay ink on paper (Kadence defaults to light icons / dark drawer). */
#masthead .menu-toggle-open,
#masthead .menu-toggle-open:focus,
#masthead .menu-toggle-open:hover,
.mobile-toggle-open-container .menu-toggle-open,
.mobile-toggle-open-container .menu-toggle-open:focus,
.mobile-toggle-open-container .menu-toggle-open:hover,
#masthead .header-cart-button,
#masthead .header-cart-button:hover,
.header-mobile-cart-wrap .header-cart-button,
.header-cart-wrap .header-cart-button,
#masthead .kadence-svg-icon {
	color: var(--hl-ink) !important;
	fill: var(--hl-ink) !important;
}

#masthead .header-cart-total,
.header-mobile-cart-wrap .header-cart-total,
.header-cart-wrap .header-cart-total {
	background: var(--hl-heath) !important;
	color: var(--hl-paper) !important;
	border: 0 !important;
}

/* Mobile drawer: paper panel, ink type. Kadence ships #090c10 + white. */
#mobile-drawer .drawer-inner,
.popup-drawer .drawer-inner,
.popup-drawer-layout-sidepanel .drawer-inner,
.popup-drawer-layout-fullwidth .drawer-inner {
	background: var(--hl-paper) !important;
	color: var(--hl-ink) !important;
}

#mobile-drawer .drawer-overlay,
.popup-drawer .drawer-overlay {
	background-color: rgba(28, 25, 23, 0.5) !important;
}

#mobile-drawer .drawer-header,
#mobile-drawer .drawer-content,
#mobile-drawer .mobile-navigation,
#mobile-drawer .menu-toggle-close,
#mobile-drawer .drawer-toggle {
	color: var(--hl-ink) !important;
	background: transparent !important;
}

#mobile-drawer .toggle-close-bar {
	background: var(--hl-ink) !important;
}

#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap,
.mobile-menu-container ul.menu > li > a,
#mobile-drawer a {
	color: var(--hl-ink) !important;
}

#mobile-drawer .mobile-navigation ul li > a:hover,
#mobile-drawer .mobile-navigation ul li.current-menu-item > a {
	color: var(--hl-heath) !important;
}

@media (prefers-color-scheme: dark) {
	html,
	body,
	#wrapper,
	#inner-wrap,
	.site-container {
		background: var(--hl-paper) !important;
		color: var(--hl-ink) !important;
		color-scheme: light;
	}

	.site-header-wrap,
	#masthead,
	.header-desktop,
	.header-mobile,
	.site-header-row-container-inner {
		background: var(--hl-paper) !important;
	}

	#masthead .menu-toggle-open,
	#masthead .header-cart-button,
	#masthead .kadence-svg-icon,
	.mobile-toggle-open-container .menu-toggle-open {
		color: var(--hl-ink) !important;
		fill: var(--hl-ink) !important;
	}

	#mobile-drawer .drawer-inner {
		background: var(--hl-paper) !important;
		color: var(--hl-ink) !important;
	}

	#mobile-drawer .mobile-navigation ul li > a,
	.mobile-menu-container ul.menu > li > a {
		color: var(--hl-ink) !important;
	}

	#masthead .header-cart-total {
		background: var(--hl-heath) !important;
		color: var(--hl-paper) !important;
	}
}

/* -------------------------------------------------------------------------
   Buttons (Woo + theme)
   ------------------------------------------------------------------------- */

.button,
button.button,
a.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.single_add_to_cart_button,
.add_to_cart_button {
	background: var(--hl-heath) !important;
	color: var(--hl-paper) !important;
	border: 0 !important;
	border-radius: 2px !important;
	font-family: var(--hl-sans) !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em;
	text-transform: none !important;
	box-shadow: none !important;
}

.button:hover,
a.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.add_to_cart_button:hover {
	background: var(--hl-heath-deep) !important;
	color: var(--hl-paper) !important;
}

/* -------------------------------------------------------------------------
   Homepage
   ------------------------------------------------------------------------- */

.hl-home {
	background: var(--hl-paper);
}

.hl-wrap {
	width: min(100% - 2rem, var(--hl-max));
	margin-inline: auto;
}

.hl-hero {
	position: relative;
	overflow: hidden;
	padding: 0;
	background:
		linear-gradient(180deg, rgba(44, 74, 58, 0.08), transparent 42%),
		var(--hl-paper);
	border-bottom: 1px solid var(--hl-rule);
}

.hl-hero::before,
.hl-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 7rem;
	background: var(--hl-heath);
	opacity: 0.12;
	clip-path: polygon(0 55%, 18% 30%, 36% 48%, 55% 22%, 74% 44%, 100% 18%, 100% 100%, 0 100%);
	pointer-events: none;
}

.hl-hero::after {
	height: 4.5rem;
	opacity: 0.22;
	background: var(--hl-heath-deep);
	clip-path: polygon(0 70%, 22% 40%, 41% 62%, 63% 28%, 82% 50%, 100% 32%, 100% 100%, 0 100%);
}

.hl-slides {
	position: relative;
	z-index: 1;
}

.hl-slide {
	display: none;
	padding: 4.5rem 0 2.5rem;
}

.hl-slide.is-active {
	display: block;
}

.hl-hero h1,
.hl-slide-title {
	max-width: 16ch;
	margin: 0 0 1rem;
	font-family: var(--hl-serif);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--hl-ink);
	font-size: clamp(2.4rem, 6vw, 4.1rem);
}

.hl-hero-nav {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding: 0 1rem 1.75rem;
}

.hl-hero-prev,
.hl-hero-next {
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--hl-ink);
	background: var(--hl-paper);
	color: var(--hl-ink);
	font-size: 1.6rem;
	line-height: 1;
	border-radius: 2px;
	cursor: pointer;
}

.hl-hero-prev:hover,
.hl-hero-next:hover,
.hl-hero-prev:focus-visible,
.hl-hero-next:focus-visible {
	background: var(--hl-ink);
	color: var(--hl-paper);
}

.hl-hero-dots {
	display: flex;
	gap: 0.45rem;
	align-items: center;
}

.hl-dot {
	width: 0.7rem;
	height: 0.7rem;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--hl-ink);
	background: transparent;
	cursor: pointer;
}

.hl-dot[aria-current="true"] {
	background: var(--hl-heath);
	border-color: var(--hl-heath);
}

@media (prefers-color-scheme: dark) {
	.hl-hero-prev,
	.hl-hero-next,
	.hl-dot {
		border-color: var(--hl-ink);
		color: var(--hl-ink);
		background: var(--hl-paper);
	}

	.hl-dot[aria-current="true"] {
		background: var(--hl-heath);
		border-color: var(--hl-heath);
	}
}

.hl-kicker {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--hl-clay);
	color: var(--hl-heath);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hl-lede {
	max-width: 38rem;
	margin: 0 0 1.75rem;
	font-size: 1.2rem;
	color: var(--hl-ink-soft);
}

.hl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	position: relative;
	z-index: 1;
}

.hl-btn {
	display: inline-block;
	padding: 0.8rem 1.25rem;
	background: var(--hl-heath);
	color: var(--hl-paper) !important;
	text-decoration: none !important;
	font-weight: 650;
	border-radius: 2px;
}

.hl-btn:hover {
	background: var(--hl-heath-deep);
	color: var(--hl-paper) !important;
}

.hl-btn-ghost {
	background: transparent;
	color: var(--hl-ink) !important;
	border: 1px solid var(--hl-ink);
}

.hl-btn-ghost:hover {
	background: var(--hl-ink);
	color: var(--hl-paper) !important;
}

.hl-section {
	padding: 3.5rem 0;
	border-bottom: 1px solid var(--hl-rule);
}

.hl-section-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.hl-section-intro {
	max-width: 36rem;
	margin: 0 0 2rem;
	color: var(--hl-ink-soft);
}

.hl-stories {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}

.hl-story {
	padding: 1.4rem 1.3rem 1.5rem;
	background: var(--hl-paper-2);
	border-top: 3px solid var(--hl-heath);
}

.hl-story h3 {
	margin: 0 0 0.6rem;
	font-size: 1.35rem;
}

.hl-story p {
	margin: 0 0 1rem;
	color: var(--hl-ink-soft);
}

.hl-story a {
	font-weight: 650;
	text-decoration: none;
	border-bottom: 1px solid var(--hl-clay);
}

.hl-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	padding: 1.5rem 0;
	background: var(--hl-heath);
	color: var(--hl-paper);
	text-align: center;
}

.hl-strip p {
	margin: 0;
	font-size: 0.98rem;
}

.hl-strip a {
	color: var(--hl-clay) !important;
}

.hl-journal-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}

.hl-journal-card {
	display: block;
	padding: 1.4rem 1.3rem;
	background: #fff;
	border: 1px solid var(--hl-rule);
	text-decoration: none !important;
	color: inherit !important;
}

.hl-journal-card:hover {
	border-color: var(--hl-heath);
}

.hl-journal-card time {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hl-bracken);
}

.hl-journal-card h3 {
	margin: 0 0 0.4rem;
	font-size: 1.3rem;
}

.hl-journal-card p {
	margin: 0;
	color: var(--hl-ink-soft);
}

/* Featured Woo loop on home */

.hl-featured ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hl-featured ul.products::before,
.hl-featured ul.products::after,
.hl-featured .products::before,
.hl-featured .products::after {
	display: none !important;
}

.hl-featured ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	padding: 0.85rem;
	background: #fff;
	border: 1px solid var(--hl-rule);
}

.hl-featured ul.products li.product .woocommerce-loop-product__title,
.hl-featured ul.products li.product h2,
.hl-featured ul.products li.product h3 {
	font-family: var(--hl-serif);
	font-size: 1.15rem;
	padding: 0.5rem 0 0.2rem;
}

.hl-featured .price {
	color: var(--hl-heath) !important;
	font-weight: 650;
}

/* -------------------------------------------------------------------------
   Shop / product
   ------------------------------------------------------------------------- */

.woocommerce-products-header h1,
.kadence-shop-top,
.content-title-style-above .entry-hero {
	background: transparent !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: #fff;
	border: 1px solid var(--hl-rule);
	padding: 0.75rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
	color: var(--hl-heath) !important;
}

.woocommerce-demo-store {
	padding-top: 0;
}

.woocommerce-store-notice,
p.demo_store,
.woocommerce-store-notice a,
p.demo_store a {
	background: var(--hl-heath-deep) !important;
	color: var(--hl-paper) !important;
}

.woocommerce-store-notice a,
p.demo_store a {
	text-decoration: underline;
}

.sku_wrapper,
.product_meta .sku,
.single-product .product_meta {
	display: none;
}

.single-post .entry-taxonomies,
.single-post .posted-by,
.single-post .entry-author,
.loop-entry .entry-author,
.entry-meta .posted-by {
	display: none;
}

/* -------------------------------------------------------------------------
   Journal index + posts
   ------------------------------------------------------------------------- */

.hl-archive-head {
	padding: 3rem 0 1.5rem;
	border-bottom: 1px solid var(--hl-rule);
}

.hl-archive-head h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(2rem, 4vw, 3rem);
}

.entry-content p {
	max-width: 42rem;
}

.single-post .entry-content p,
.page .entry-content p {
	font-size: 1.08rem;
}

.loop-entry {
	background: #fff;
	border: 1px solid var(--hl-rule);
	padding: 1.25rem;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

#colophon,
.site-footer,
.site-bottom-footer-wrap,
.site-top-footer-wrap,
.site-middle-footer-wrap {
	background: var(--hl-heath-deep) !important;
	color: var(--hl-paper) !important;
	border: 0 !important;
}

#colophon a,
.site-footer a,
.footer-navigation a,
.footer-html-inner,
.footer-html-inner a {
	color: var(--hl-paper) !important;
}

.hl-footer-legal {
	background: var(--hl-heath-deep);
	color: #d7e0d4;
	text-align: center;
	padding: 0 1.25rem 2rem;
	font-size: 0.88rem;
	line-height: 1.55;
}

.hl-footer-legal a {
	color: var(--hl-clay) !important;
}

#colophon .footer-navigation,
#colophon .footer-menu-container ul.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 1.25rem 1rem 0.25rem;
}

#colophon .footer-navigation a {
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------------
   About / pages
   ------------------------------------------------------------------------- */

.hl-prose {
	max-width: 42rem;
}

.hl-prose h2 {
	margin-top: 2rem;
	font-size: 1.5rem;
}

/* -------------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------------- */

@media (max-width: 860px) {
	.hl-stories,
	.hl-strip,
	.hl-journal-grid,
	.hl-featured ul.products {
		grid-template-columns: 1fr;
	}

	.hl-slide {
		padding: 2.75rem 0 1.5rem;
	}

	.hl-hero h1,
	.hl-slide-title {
		max-width: none;
	}
}

@media (min-width: 640px) and (max-width: 860px) {
	.hl-featured ul.products,
	.hl-journal-grid {
		grid-template-columns: 1fr 1fr;
	}
}
