/* =========================================================
   Bioactive Bugs UK — Main Stylesheet
   Sections:
   1. Design Tokens
   2. Base / Reset
   3. Layout & Containers
   4. Buttons & Form Elements
   5. Header & Navigation
   6. Hero
   7. Cards & Grids
   8. Sections (Why Choose Us, Education, etc.)
   9. Breadcrumbs
   10. Blog
   11. Care Guides
   12. WooCommerce / Shop
   13. Species Profiles
   14. Footer
   15. Icons, Animations & Homepage Extras
   16. Utilities & Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------- */
:root {
	/* Colours */
	--bbuk-forest: #1B4332;
	--bbuk-forest-dark: #122A20;
	--bbuk-moss: #52796F;
	--bbuk-leaf: #74C69D;
	--bbuk-leaf-light: #D8F3DC;
	--bbuk-cream: #F7F5F0;
	--bbuk-cream-dark: #EDE8DD;
	--bbuk-brown: #8B5E3C;
	--bbuk-brown-light: #C9A77C;
	--bbuk-charcoal: #222722;
	--bbuk-grey: #6B7280;
	--bbuk-white: #FFFFFF;
	--bbuk-error: #B3261E;

	/* Typography */
	--font-heading: 'Poppins', 'Segoe UI', sans-serif;
	--font-body: 'Inter', 'Segoe UI', sans-serif;

	/* Spacing */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 6rem;

	/* Layout */
	--container-width: 1280px;
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.08);
	--shadow-md: 0 8px 24px rgba(27, 67, 50, 0.12);
	--shadow-lg: 0 16px 40px rgba(27, 67, 50, 0.18);

	--transition: 0.2s ease-in-out;
}

/* ---------------------------------------------------------
   2. Base / Reset
   --------------------------------------------------------- */
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

/* Keep anchored headings clear of the sticky header when jumped to. */
[id] {
	scroll-margin-top: 110px;
}

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--bbuk-charcoal);
	background-color: var(--bbuk-cream);
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.25;
	color: var(--bbuk-forest);
	margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p {
	margin: 0 0 var(--space-sm);
}

a {
	text-decoration: none;
	color: var(--bbuk-moss);
	transition: color var(--transition);
}

a:hover {
	color: var(--bbuk-forest);
}

ul, ol {
	padding-left: 1.4rem;
}

figure {
	margin: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link.screen-reader-text:focus {
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	padding: 1rem;
	background: var(--bbuk-forest);
	color: var(--bbuk-white);
	z-index: 10000;
	clip: auto;
}

/* ---------------------------------------------------------
   3. Layout & Containers
   --------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--space-md);
}

.site-main {
	display: block;
}

section {
	padding: var(--space-xl) 0;
}

.section-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto var(--space-lg);
}

.section-header .eyebrow {
	display: inline-block;
	color: var(--bbuk-moss);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8rem;
	margin-bottom: var(--space-xs);
}

.section-header p {
	color: var(--bbuk-grey);
	font-size: 1.05rem;
}

.bg-cream-dark {
	background-color: var(--bbuk-cream-dark);
}

.bg-forest {
	background-color: var(--bbuk-forest);
	color: var(--bbuk-leaf-light);
	position: relative;
	overflow: hidden;
}

.bg-forest h2,
.bg-forest h3,
.bg-forest .section-header .eyebrow {
	color: var(--bbuk-white);
}

.bg-forest .section-header p {
	color: var(--bbuk-leaf-light);
}

/* ---------------------------------------------------------
   4. Buttons & Form Elements
   --------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	border-radius: var(--radius-md);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--transition);
	text-align: center;
}

.btn-primary {
	background: linear-gradient(135deg, var(--bbuk-leaf) 0%, #9AE6B8 100%);
	color: var(--bbuk-forest-dark);
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(116, 198, 157, 0.35);
}

.btn-primary:hover {
	background: linear-gradient(135deg, var(--bbuk-forest) 0%, var(--bbuk-moss) 100%);
	color: var(--bbuk-white);
	border-color: transparent;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(27, 67, 50, 0.3);
}

.btn-secondary {
	background-color: transparent;
	color: var(--bbuk-white);
	border-color: var(--bbuk-white);
}

.btn-secondary:hover {
	background-color: var(--bbuk-white);
	color: var(--bbuk-forest);
	transform: translateY(-2px);
}

.btn-outline {
	background-color: transparent;
	color: var(--bbuk-forest);
	border-color: var(--bbuk-forest);
}

.btn-outline:hover {
	background-color: var(--bbuk-forest);
	color: var(--bbuk-white);
}

.btn-block {
	width: 100%;
}

input,
textarea,
select {
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.7rem 1rem;
	border: 1px solid var(--bbuk-cream-dark);
	border-radius: var(--radius-sm);
	background-color: var(--bbuk-white);
	color: var(--bbuk-charcoal);
	width: 100%;
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--bbuk-leaf);
	outline-offset: 1px;
}

/* ---------------------------------------------------------
   5. Header & Navigation
   --------------------------------------------------------- */
.site-header {
	background-color: var(--bbuk-white);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 999;
}

.top-bar {
	background-color: var(--bbuk-forest);
	color: var(--bbuk-leaf-light);
}

.top-bar-inner {
	display: flex;
	justify-content: center;
	padding: 0.45rem var(--space-md);
}

.top-bar p {
	margin: 0;
	font-size: 0.85rem;
	text-align: center;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding-top: var(--space-sm);
	padding-bottom: var(--space-sm);
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--bbuk-forest);
}

.logo-leaf {
	font-size: 2rem;
	line-height: 1;
}

.logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.logo-title {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--bbuk-forest);
}

.logo-tagline {
	font-size: 0.7rem;
	color: var(--bbuk-moss);
	font-weight: 500;
}

.custom-logo-link img {
	max-height: 60px;
	width: auto;
}

.main-navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--space-md);
	align-items: center;
}

.main-navigation > ul {
	flex-wrap: wrap;
}

.main-navigation a {
	display: block;
	padding: 0.5rem 0.1rem;
	font-weight: 600;
	color: var(--bbuk-forest-dark);
	font-size: 0.98rem;
}

.main-navigation a:hover {
	color: var(--bbuk-moss);
}

.main-navigation .menu-item-has-children {
	position: relative;
}

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--bbuk-white);
	box-shadow: var(--shadow-md);
	border-radius: var(--radius-sm);
	padding: 0.5rem;
	min-width: 240px;
	flex-direction: column;
	gap: 0;
	z-index: 50;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children.submenu-open > .sub-menu {
	display: flex;
}

.main-navigation .sub-menu a {
	padding: 0.55rem 0.75rem;
	border-radius: var(--radius-sm);
	font-weight: 500;
}

.main-navigation .sub-menu a:hover {
	background-color: var(--bbuk-leaf-light);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.menu-toggle-bar {
	display: block;
	width: 26px;
	height: 3px;
	background-color: var(--bbuk-forest);
	border-radius: 2px;
	transition: var(--transition);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.header-icon-link {
	position: relative;
	font-size: 1.3rem;
	color: var(--bbuk-forest);
}

.header-cart .cart-count {
	position: absolute;
	top: -6px;
	right: -10px;
	background: var(--bbuk-leaf);
	color: var(--bbuk-forest-dark);
	font-size: 0.65rem;
	font-weight: 700;
	border-radius: 999px;
	min-width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.header-shop-btn {
	padding: 0.6rem 1.25rem;
	font-size: 0.9rem;
}

/* ---------------------------------------------------------
   6. Hero
   --------------------------------------------------------- */
.hero {
	background: linear-gradient(135deg, var(--bbuk-forest) 0%, var(--bbuk-forest-dark) 100%);
	color: var(--bbuk-white);
	padding: var(--space-2xl) 0;
	position: relative;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 80% 20%, rgba(116, 198, 157, 0.25), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(139, 94, 60, 0.25), transparent 40%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: var(--space-xl);
	align-items: center;
}

.hero-content .eyebrow {
	display: inline-block;
	background-color: rgba(116, 198, 157, 0.15);
	color: var(--bbuk-leaf);
	border: 1px solid rgba(116, 198, 157, 0.4);
	border-radius: 999px;
	padding: 0.35rem 1rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: var(--space-sm);
}

.hero-content h1 {
	color: var(--bbuk-white);
	margin-bottom: var(--space-sm);
}

.hero-content .hero-subhead {
	font-size: 1.2rem;
	color: var(--bbuk-leaf-light);
	max-width: 540px;
	margin-bottom: var(--space-md);
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	margin-top: var(--space-lg);
	font-size: 0.9rem;
	color: var(--bbuk-leaf-light);
}

.hero-trust span {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.hero-visual {
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	text-align: center;
	font-size: 7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------
   7. Cards & Grids
   --------------------------------------------------------- */
.grid {
	display: grid;
	gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
	background-color: var(--bbuk-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform var(--transition), box-shadow var(--transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.card-image {
	background-color: var(--bbuk-leaf-light);
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3.5rem;
	color: var(--bbuk-forest);
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-body {
	padding: var(--space-md);
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card-body h3 {
	margin-bottom: 0.5rem;
	font-size: 1.2rem;
}

.card-body p {
	color: var(--bbuk-grey);
	font-size: 0.95rem;
	flex: 1;
}

.card-link {
	font-weight: 700;
	color: var(--bbuk-moss);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: var(--space-xs);
}

.card-link::after {
	content: "→";
	transition: transform var(--transition);
}

.card-link:hover::after {
	transform: translateX(4px);
}

/* Why Choose Us */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--space-md);
}

.feature-item {
	text-align: center;
	padding: var(--space-md);
}

.feature-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto var(--space-sm);
	background-color: var(--bbuk-leaf-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
}

.feature-item h3 {
	font-size: 1.05rem;
	margin-bottom: 0.35rem;
}

.feature-item p {
	font-size: 0.9rem;
	color: var(--bbuk-grey);
	margin: 0;
}

/* ---------------------------------------------------------
   8. Sections (Education, Latest Articles, etc.)
   --------------------------------------------------------- */
.education-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-lg);
	align-items: start;
}

.education-card {
	background-color: var(--bbuk-white);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
	border-top: 4px solid var(--bbuk-leaf);
	color: var(--bbuk-charcoal);
}

/* The cards sit on the dark .bg-forest section, whose white/leaf-light text
   rules would otherwise cascade into the white cards and vanish. */
.bg-forest .education-card h3,
.bg-forest .card h3 {
	color: var(--bbuk-forest);
}

.bg-forest .card p {
	color: var(--bbuk-grey);
}

.education-card p {
	color: var(--bbuk-charcoal);
}

.education-card h3 {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.education-cta {
	text-align: center;
	margin-top: var(--space-lg);
}
.articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

.article-card .card-image {
	font-size: 2.5rem;
}

.article-meta {
	font-size: 0.8rem;
	color: var(--bbuk-moss);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.35rem;
}

/* ---------------------------------------------------------
   9. Breadcrumbs
   --------------------------------------------------------- */
.bbuk-breadcrumbs {
	background-color: var(--bbuk-cream-dark);
	font-size: 0.85rem;
	padding: 0.75rem 0;
}

.bbuk-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
}

.bbuk-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.4rem;
	color: var(--bbuk-grey);
}

.bbuk-breadcrumbs a {
	color: var(--bbuk-moss);
	font-weight: 600;
}

.bbuk-breadcrumbs span[aria-current] {
	color: var(--bbuk-grey);
}

/* ---------------------------------------------------------
   10. Blog
   --------------------------------------------------------- */
.page-header-banner {
	background: linear-gradient(135deg, var(--bbuk-forest) 0%, var(--bbuk-moss) 100%);
	color: var(--bbuk-white);
	padding: var(--space-xl) 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.page-header-banner h1 {
	color: var(--bbuk-white);
	margin-bottom: var(--space-xs);
}

.page-header-banner p {
	color: var(--bbuk-leaf-light);
	max-width: 640px;
	margin: 0 auto;
}

.content-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--space-xl);
	align-items: start;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-md);
}

.post-card .card-image {
	font-size: 2.75rem;
}

.post-categories {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.post-categories span,
.post-categories a {
	background-color: var(--bbuk-leaf-light);
	color: var(--bbuk-forest);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
}

.single-post-content,
.guide-content {
	background-color: var(--bbuk-white);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
}

.single-post-content h2,
.guide-content h2 {
	margin-top: var(--space-lg);
	border-bottom: 2px solid var(--bbuk-leaf-light);
	padding-bottom: 0.4rem;
}

.single-post-content h2:first-child,
.guide-content h2:first-child {
	margin-top: 0;
}

.single-post-content ul li,
.guide-content ul li,
.single-post-content ol li,
.guide-content ol li {
	margin-bottom: 0.4rem;
}

.entry-header {
	margin-bottom: var(--space-md);
}

.entry-meta {
	font-size: 0.85rem;
	color: var(--bbuk-grey);
	margin-bottom: var(--space-xs);
}

.widget {
	background-color: var(--bbuk-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	padding: var(--space-md);
	margin-bottom: var(--space-md);
}

.widget-title {
	font-size: 1.05rem;
	border-bottom: 2px solid var(--bbuk-leaf-light);
	padding-bottom: 0.5rem;
}

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

.widget ul li {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--bbuk-cream-dark);
}

.widget ul li:last-child {
	border-bottom: none;
}

.related-links-widget a {
	font-weight: 600;
}

.cta-widget {
	background-color: var(--bbuk-forest);
	color: var(--bbuk-leaf-light);
}

.cta-widget h3 {
	color: var(--bbuk-white);
}

.cta-widget .btn {
	margin-top: var(--space-xs);
}

/* ---------------------------------------------------------
   11. Care Guides
   --------------------------------------------------------- */
.guide-toc {
	background-color: var(--bbuk-leaf-light);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	margin-bottom: var(--space-lg);
}

.guide-toc h2 {
	margin-top: 0;
	font-size: 1.1rem;
	border: none;
	padding: 0;
}

.guide-toc ol {
	margin: 0;
	columns: 2;
}

.guide-toc a {
	color: var(--bbuk-forest);
	font-weight: 600;
}

.guides-overview-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

.guide-card {
	border-top: 4px solid var(--bbuk-brown);
}

.callout {
	background-color: var(--bbuk-cream-dark);
	border-left: 4px solid var(--bbuk-leaf);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-sm);
	margin: var(--space-md) 0;
}

.callout strong {
	color: var(--bbuk-forest);
}

/* Accordion */
.accordion-item {
	border: 1px solid var(--bbuk-cream-dark);
	border-radius: var(--radius-sm);
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.accordion-trigger {
	width: 100%;
	background-color: var(--bbuk-cream-dark);
	border: none;
	text-align: left;
	padding: var(--space-sm) var(--space-md);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	color: var(--bbuk-forest);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.accordion-trigger::after {
	content: "+";
	font-size: 1.4rem;
	line-height: 1;
	transition: transform var(--transition);
}

.accordion-item.is-open .accordion-trigger::after {
	transform: rotate(45deg);
}

.accordion-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--transition);
	padding: 0 var(--space-md);
}

.accordion-item.is-open .accordion-panel {
	padding: var(--space-sm) var(--space-md);
}

/* ---------------------------------------------------------
   12. WooCommerce / Shop
   --------------------------------------------------------- */
.woocommerce-main {
	padding: var(--space-xl) 0;
}

ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: var(--space-md);
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-lg);
}

ul.products li.product {
	background-color: var(--bbuk-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	padding: var(--space-md);
	transition: transform var(--transition), box-shadow var(--transition);
	list-style: none;
}

ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

ul.products li.product img {
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-xs);
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--bbuk-forest);
	font-size: 1.05rem;
	margin: 0.4rem 0;
}

ul.products li.product .price {
	font-weight: 700;
	color: var(--bbuk-moss);
	font-size: 1.1rem;
}

ul.products li.product .button {
	display: inline-flex;
	margin-top: 0.6rem;
	padding: 0.6rem 1.2rem;
	background-color: var(--bbuk-forest);
	color: var(--bbuk-white);
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 0.9rem;
}

ul.products li.product .button:hover {
	background-color: var(--bbuk-moss);
}

.woocommerce-result-count,
.woocommerce-ordering {
	margin-bottom: var(--space-md);
}

.shop-intro {
	background-color: var(--bbuk-white);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
	margin-bottom: var(--space-lg);
}

.shop-intro h1 {
	margin-bottom: var(--space-xs);
}

.shop-subcats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-sm);
	margin: var(--space-md) 0;
}

.shop-subcat-link {
	display: block;
	background-color: var(--bbuk-leaf-light);
	color: var(--bbuk-forest);
	text-align: center;
	padding: 0.75rem;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 0.9rem;
}

.shop-subcat-link:hover {
	background-color: var(--bbuk-leaf);
}

.shop-subcat-link.is-active {
	background-color: var(--bbuk-forest);
	color: var(--bbuk-white);
}

.card-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 3rem;
	background-color: var(--bbuk-leaf-light);
}

/* Single product */
.product .summary {
	padding: var(--space-md) 0;
}

.product .product_title {
	margin-bottom: 0.4rem;
}

.product .price {
	font-size: 1.4rem;
	color: var(--bbuk-moss);
	font-weight: 700;
}

.woocommerce div.product form.cart .button {
	background-color: var(--bbuk-forest);
	color: var(--bbuk-white);
	border-radius: var(--radius-md);
	font-weight: 700;
	padding: 0.85rem 1.75rem;
	border: none;
	cursor: pointer;
}

.woocommerce div.product form.cart .button:hover {
	background-color: var(--bbuk-moss);
}

.woocommerce-tabs ul.tabs {
	list-style: none;
	display: flex;
	gap: var(--space-sm);
	padding: 0;
	border-bottom: 2px solid var(--bbuk-cream-dark);
	margin-bottom: var(--space-md);
}

.woocommerce-tabs ul.tabs li a {
	font-weight: 700;
	color: var(--bbuk-forest);
	padding-bottom: 0.5rem;
	display: inline-block;
}

/* ---------------------------------------------------------
   13. Species Profiles
   --------------------------------------------------------- */
.species-meta-table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--space-md) 0;
}

.species-meta-table th,
.species-meta-table td {
	text-align: left;
	padding: 0.6rem 1rem;
	border-bottom: 1px solid var(--bbuk-cream-dark);
}

.species-meta-table th {
	width: 40%;
	color: var(--bbuk-forest);
	font-family: var(--font-heading);
}

.species-badges {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: var(--space-md);
}

.species-badge {
	background-color: var(--bbuk-leaf-light);
	color: var(--bbuk-forest);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
}

/* ---------------------------------------------------------
   14. Footer
   --------------------------------------------------------- */
.footer-cta {
	background-color: var(--bbuk-leaf);
	color: var(--bbuk-forest-dark);
	text-align: center;
	padding: var(--space-xl) 0;
}

.footer-cta h2 {
	color: var(--bbuk-forest-dark);
}

.footer-cta p {
	max-width: 560px;
	margin: 0 auto var(--space-md);
}

.footer-cta .hero-ctas {
	justify-content: center;
}

.footer-cta .btn-secondary {
	color: var(--bbuk-forest-dark);
	border-color: var(--bbuk-forest-dark);
}

.footer-cta .btn-secondary:hover {
	background-color: var(--bbuk-forest-dark);
	color: var(--bbuk-white);
}

.site-footer {
	background-color: var(--bbuk-forest-dark);
	color: var(--bbuk-leaf-light);
	position: relative;
	overflow: hidden;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: var(--space-lg);
	padding: var(--space-xl) 0;
}

.footer-col .widget-title {
	color: var(--bbuk-white);
	border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

/* Widgets dropped into the footer widget area (Archives, Categories, etc.)
   would otherwise keep the white sidebar-card .widget styling, leaving the
   footer's pale text invisible on a white box. Blend them into the dark
   footer like the hand-built columns instead. */
.site-footer .widget {
	background-color: transparent;
	box-shadow: none;
	padding: 0;
	border-radius: 0;
	margin-top: var(--space-md);
}

.site-footer .widget ul li {
	border-bottom: none;
	padding: 0;
	margin-bottom: 0.5rem;
}

.site-footer .widget a {
	color: var(--bbuk-leaf-light);
}

.site-footer .widget a:hover {
	color: var(--bbuk-leaf);
}

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

.footer-col ul li {
	margin-bottom: 0.5rem;
}

.footer-col a {
	color: var(--bbuk-leaf-light);
}

.footer-col a:hover {
	color: var(--bbuk-leaf);
}

.footer-about p {
	color: var(--bbuk-leaf-light);
	font-size: 0.9rem;
}

.footer-about .site-logo .logo-title {
	color: var(--bbuk-white);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: var(--space-sm) 0;
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: var(--bbuk-leaf-light);
}

.footer-bottom-inner p {
	margin: 0;
}

/* ---------------------------------------------------------
   15. Icons, Animations & Homepage Extras
   --------------------------------------------------------- */

/* Base icon sizing — colour is inherited via currentColor */
.bbuk-icon {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
}

/* Circular gradient icon badges used in feature/category/education cards */
.icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--bbuk-leaf-light) 0%, var(--bbuk-leaf) 100%);
	color: var(--bbuk-forest);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.icon-badge .bbuk-icon {
	width: 28px;
	height: 28px;
}

.icon-badge--lg {
	width: 84px;
	height: 84px;
}

.icon-badge--lg .bbuk-icon {
	width: 38px;
	height: 38px;
}

.icon-badge--forest {
	background: linear-gradient(135deg, var(--bbuk-moss) 0%, var(--bbuk-forest) 100%);
	color: var(--bbuk-leaf-light);
}

.icon-badge--cream {
	background: linear-gradient(135deg, var(--bbuk-white) 0%, var(--bbuk-leaf-light) 100%);
	color: var(--bbuk-forest);
}

.card:hover .icon-badge,
.feature-item:hover .icon-badge {
	transform: scale(1.08) rotate(-4deg);
	box-shadow: var(--shadow-md);
}

/* Trust badges (hero, footer, etc.) */
.trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.trust-badge .bbuk-icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--bbuk-leaf);
	flex-shrink: 0;
}

/* ---------------------------------------------------------
   Scroll-reveal animation
   --------------------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-stagger > * {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.is-visible > * {
	opacity: 1;
	transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
	.reveal,
	.reveal-stagger > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------------------------------------------------------
   Hero illustration & floating decoration
   --------------------------------------------------------- */
.hero-illustration {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
}

.hero-illustration svg {
	width: 100%;
	max-width: 360px;
	height: auto;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.floating-icon {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(4px);
	color: var(--bbuk-leaf-light);
	animation: bbuk-float 6s ease-in-out infinite;
}

.floating-icon .bbuk-icon {
	width: 26px;
	height: 26px;
}

.floating-icon--1 { top: 6%; left: -4%; animation-delay: 0s; }
.floating-icon--2 { bottom: 12%; right: -6%; width: 70px; height: 70px; animation-delay: 1.2s; }
.floating-icon--2 .bbuk-icon { width: 32px; height: 32px; }
.floating-icon--3 { top: 50%; right: 4%; animation-delay: 2.4s; }

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

@media (prefers-reduced-motion: reduce) {
	.floating-icon {
		animation: none;
	}
}

/* ---------------------------------------------------------
   Crawling isopod decorations
   --------------------------------------------------------- */
/*
 * The isopod artwork is a top-down view (head at the top of the viewBox).
 * Movement is driven by the JS wander engine in main.js (initIsopods):
 * the outer .bbuk-isopod is translated around its parent section, and the
 * inner .bbuk-isopod-svg is rotated so the head leads the direction of
 * travel — walk, pause, pivot to a new heading, walk again. The CSS here
 * only handles sizing, layering and the leg walk-cycle (which the JS
 * toggles via the .is-walking class).
 */
.bbuk-isopod {
	position: absolute;
	left: 8%;
	width: 34px;
	height: auto;
	/* Clickable: tapping/clicking a bug makes it spring off and/or scurry
	   away (see initIsopods in main.js). */
	pointer-events: auto;
	cursor: pointer;
	z-index: 2;
	will-change: transform;
}

.bbuk-isopod--reverse {
	left: 72%;
}

.bbuk-isopod-svg {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
	will-change: transform;
}

.bbuk-isopod-legs {
	transform-box: fill-box;
	transform-origin: center;
}

.bbuk-isopod.is-walking .bbuk-isopod-legs {
	animation: bbuk-isopod-step 0.4s ease-in-out infinite alternate;
}

.bbuk-isopod.is-walking .bbuk-isopod-legs--b {
	animation-delay: 0.2s;
}

/* Startled — triggered briefly on click/tap, makes the legs scuttle faster
   while the bug is fleeing (or jolting on the spot). */
.bbuk-isopod.is-startled .bbuk-isopod-legs {
	animation-duration: 0.15s;
}

@keyframes bbuk-isopod-step {
	from { transform: rotate(-6deg); }
	to   { transform: rotate(6deg); }
}

.bbuk-isopod--small {
	width: 24px;
}

/* Springtails are far smaller than isopods in real life — scale them down. */
.bbuk-springtail {
	width: 20px;
}

.bbuk-springtail.bbuk-isopod--small {
	width: 15px;
}

@media (prefers-reduced-motion: reduce) {
	.bbuk-isopod,
	.bbuk-isopod-legs {
		animation: none !important;
	}
}

/* ---------------------------------------------------------
   Stats bar
   --------------------------------------------------------- */
.stats-bar {
	background-color: var(--bbuk-forest-dark);
	color: var(--bbuk-white);
	padding: var(--space-lg) 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-md);
	text-align: center;
}

.stat-item .stat-number {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	color: var(--bbuk-leaf);
	display: block;
	line-height: 1.2;
}

.stat-item .stat-label {
	font-size: 0.9rem;
	color: var(--bbuk-leaf-light);
}

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */
.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

.testimonial-card {
	background-color: var(--bbuk-white);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.testimonial-stars {
	display: flex;
	gap: 0.2rem;
	color: var(--bbuk-brown-light);
}

.testimonial-stars .bbuk-icon {
	width: 1.1rem;
	height: 1.1rem;
	fill: currentColor;
	stroke: currentColor;
}

.testimonial-quote {
	font-style: italic;
	color: var(--bbuk-charcoal);
	margin: 0;
	flex: 1;
}

.testimonial-author {
	font-weight: 700;
	color: var(--bbuk-forest);
	font-size: 0.95rem;
}

.testimonial-author span {
	display: block;
	font-weight: 400;
	color: var(--bbuk-grey);
	font-size: 0.85rem;
}

/* ---------------------------------------------------------
   Section divider (wave)
   --------------------------------------------------------- */
.section-divider {
	display: block;
	width: 100%;
	height: auto;
	line-height: 0;
}

.section-divider svg {
	display: block;
	width: 100%;
	height: 60px;
}

/* ---------------------------------------------------------
   16. Utilities & Responsive
   --------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.back-to-top {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--bbuk-forest);
	color: var(--bbuk-white);
	border: none;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all var(--transition);
	z-index: 998;
}

.back-to-top .icon-rotate-up {
	transform: rotate(-90deg);
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (max-width: 1024px) {
	.feature-grid { grid-template-columns: repeat(3, 1fr); }
	.guides-overview-grid { grid-template-columns: repeat(2, 1fr); }
	.shop-subcats { grid-template-columns: repeat(2, 1fr); }
	.testimonials-grid { grid-template-columns: repeat(2, 1fr); }
	ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 900px) {
	.menu-toggle { display: flex; }

	/* The toggle button lives inside .main-navigation, so the nav element
	   itself must stay visible — only the dropdown <ul> is hidden/shown. */
	.main-navigation {
		position: static;
		display: flex;
		flex: 0 0 auto;
		justify-content: flex-end;
	}

	.main-navigation > ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--bbuk-white);
		box-shadow: var(--shadow-md);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: var(--space-sm);
	}

	.main-navigation.is-open > ul {
		display: flex;
	}

	.main-navigation .sub-menu {
		display: none;
		position: static;
		box-shadow: none;
		padding-left: var(--space-md);
	}

	.main-navigation .menu-item-has-children.submenu-open > .sub-menu {
		display: flex;
	}

	.hero-inner,
	.education-grid,
	.content-layout {
		grid-template-columns: 1fr;
	}

	.hero-visual {
		min-height: 200px;
		font-size: 4rem;
	}

	.grid-2,
	.grid-3,
	.grid-4,
	.grid-5,
	.feature-grid,
	.articles-grid,
	.blog-grid,
	.guides-overview-grid,
	.shop-subcats {
		grid-template-columns: repeat(2, 1fr);
	}

	ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	/* Free up space in the header so the menu toggle stays on screen. */
	.logo-tagline {
		display: none;
	}

	.header-shop-btn {
		display: none;
	}

	.header-inner {
		gap: var(--space-sm);
	}

	.feature-grid,
	.articles-grid,
	.blog-grid,
	.guides-overview-grid,
	.shop-subcats,
	.testimonials-grid,
	.grid-2,
	.grid-3,
	.grid-4,
	.grid-5 {
		grid-template-columns: 1fr;
	}

	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	ul.products {
		grid-template-columns: 1fr !important;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.guide-toc ol {
		columns: 1;
	}

	.hero-ctas {
		flex-direction: column;
	}

	.hero-ctas .btn {
		width: 100%;
	}

	h1 { font-size: 2rem; }
}
