/*
Theme Name: bdminted
Theme URI: https://example.com/bdminted
Author: bdminted
Author URI: https://example.com
Description: A clean WordPress theme for bdminted with WooCommerce support.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bdminted
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, woocommerce

bdminted WordPress Theme, (C) bdminted
*/

/* --------------------------------------------------------------------------
   CSS variables & reset
   -------------------------------------------------------------------------- */

:root {
	--bdm-color-bg: #fafafa;
	--bdm-color-surface: #ffffff;
	--bdm-color-text: #1a1a1a;
	--bdm-color-muted: #5c5c5c;
	--bdm-color-accent: #0d6e6e;
	--bdm-color-accent-hover: #095555;
	--bdm-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bdm-max-width: 42rem;
	--bdm-space: 1.5rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--bdm-font-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--bdm-color-text);
	background: var(--bdm-color-bg);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--bdm-color-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--bdm-color-accent-hover);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header {
	background: var(--bdm-color-surface);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	padding: var(--bdm-space) clamp(var(--bdm-space), 4vw, 2.5rem);
}

.site-header__inner {
	max-width: 72rem;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--bdm-space);
}

.site-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-title a:hover {
	color: var(--bdm-color-accent);
}

.site-description {
	margin: 0.25rem 0 0;
	font-size: 0.9rem;
	color: var(--bdm-color-muted);
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.main-nav a {
	font-weight: 500;
	text-decoration: none;
}

.site-header__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.site-header__tool {
	text-decoration: none;
	color: inherit;
}

.site-header__tool:hover {
	color: var(--bdm-color-accent);
}

.site-header__cart .bdm-cart-count {
	display: inline-block;
	min-width: 1.25rem;
	margin-left: 0.2rem;
	padding: 0.1em 0.4em;
	font-size: 0.75rem;
	line-height: 1.2;
	text-align: center;
	border-radius: 999px;
	background: var(--bdm-color-accent);
	color: #fff;
}

.custom-logo-link {
	display: inline-block;
	max-width: 200px;
}

.custom-logo-link img {
	display: block;
	height: auto;
}

/* Wide SVG wordmark in default header */
.bdm-brand-logo {
	max-height: 3.25rem;
	width: auto;
	object-fit: contain;
	object-position: left center;
}

.site-main {
	flex: 1;
	max-width: var(--bdm-max-width);
	width: 100%;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 2.5rem) var(--bdm-space);
}

.site-footer {
	margin-top: auto;
	padding: clamp(1.5rem, 4vw, 2.5rem) clamp(var(--bdm-space), 4vw, 2rem);
	font-size: 0.875rem;
	color: var(--bdm-color-muted);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	background: var(--bdm-color-surface);
}

.site-footer__inner {
	max-width: 72rem;
	margin: 0 auto;
	display: grid;
	gap: 1.5rem 2rem;
	align-items: start;
}

@media (min-width: 640px) {
	.site-footer__inner {
		grid-template-columns: 1.2fr 1fr 1fr;
	}
}

.site-footer__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bdm-color-text);
}

.site-footer__tagline {
	margin: 0;
	line-height: 1.5;
}

.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.site-footer__menu a {
	text-decoration: none;
	font-weight: 500;
	color: inherit;
}

.site-footer__menu a:hover {
	color: var(--bdm-color-accent);
}

.site-footer__legal {
	font-size: 0.8125rem;
}

.site-footer__legal p {
	margin: 0.35rem 0 0;
}

.site-footer__privacy {
	margin: 0.5rem 0 0;
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.post,
.page {
	margin-bottom: 2.5rem;
}

.entry-header {
	margin-bottom: 1rem;
}

.entry-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--bdm-color-accent);
}

.entry-meta {
	font-size: 0.875rem;
	color: var(--bdm-color-muted);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.post-thumbnail {
	margin-bottom: 1rem;
	border-radius: 6px;
	overflow: hidden;
}

.post-thumbnail img {
	display: block;
	width: 100%;
}

/* Pagination */
.navigation.pagination {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.navigation.pagination a,
.navigation.pagination span {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border-radius: 4px;
	background: var(--bdm-color-surface);
	border: 1px solid rgba(0, 0, 0, 0.08);
	text-decoration: none;
	color: inherit;
	font-size: 0.9rem;
}

.navigation.pagination a:hover {
	border-color: var(--bdm-color-accent);
	color: var(--bdm-color-accent);
}

.navigation.pagination .current {
	background: var(--bdm-color-accent);
	border-color: var(--bdm-color-accent);
	color: #fff;
}

/* Comments */
.comments-area {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* WordPress blocks */
.alignwide {
	max-width: 72rem;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-block-image figcaption {
	font-size: 0.875rem;
	color: var(--bdm-color-muted);
	margin-top: 0.5rem;
}

/* Search form */
.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.search-field {
	flex: 1;
	min-width: 12rem;
	padding: 0.5rem 0.75rem;
	font: inherit;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	background: var(--bdm-color-surface);
}

.search-submit {
	padding: 0.5rem 1rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	border: none;
	border-radius: 4px;
	background: var(--bdm-color-accent);
	color: #fff;
}

.search-submit:hover {
	background: var(--bdm-color-accent-hover);
}

/* UK registered company (footer + contact — legal visibility) */
.bdm-company-legal {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--bdm-color-text);
}

.bdm-company-legal__heading {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.bdm-company-legal__heading--compact {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bdm-color-muted);
}

.bdm-company-legal--contact .bdm-company-legal__heading {
	font-size: 1.15rem;
	margin-bottom: 1rem;
}

.bdm-company-legal__name {
	margin: 0 0 0.35rem;
	font-size: 1em;
}

.bdm-company-legal__number {
	margin: 0 0 0.5rem;
}

.bdm-company-legal__address-wrap {
	margin: 0.5rem 0;
}

.bdm-company-legal__address {
	margin: 0.25rem 0 0;
	font-style: normal;
}

.bdm-company-legal__phone {
	margin: 0.75rem 0 0;
}

.bdm-company-legal__label {
	font-weight: 600;
	color: var(--bdm-color-text);
}

.bdm-company-legal__phone-link {
	color: inherit;
	font-weight: 600;
}

.bdm-company-legal__email-link {
	color: inherit;
	font-weight: 600;
}

.bdm-company-legal__phone-link:hover {
	color: var(--bdm-color-accent);
}

.bdm-company-legal__email-link:hover {
	color: var(--bdm-color-accent);
}

.bdm-company-legal--mirrored {
	margin-top: 0;
	padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.5rem, 3vw, 2.25rem);
	border-top: 1px solid rgba(18, 28, 52, 0.12);
	background: #fff;
}

.template-index .bdm-company-legal--mirrored {
	color: #121c34;
}

.template-index .bdm-company-legal--mirrored .bdm-company-legal__label {
	color: #121c34;
}

/* Mirrored footer: Contact + company (left col), QUICK LINKS (right col), payment icons */
.bdm-footer-entity {
	margin: 0 0 1.25rem;
	padding: 0 0 1.25rem;
	border: 0;
	background: transparent;
}

.bdm-footer-entity__top {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 1.25rem 2rem;
	max-width: min(100%, 56rem);
	margin: 0 auto 1.25rem;
	border: 0;
	border-radius: 0;
	background: transparent;
}

@media (min-width: 520px) {
	.bdm-footer-entity__top {
		grid-template-columns: 1fr 1fr;
	}
}

.bdm-footer-entity__col {
	padding: 1.15rem 1.35rem;
	min-width: 0;
}

.bdm-footer-entity__col--contact,
.bdm-footer-entity__col--quick {
	border: 0;
	background: transparent;
	text-align: left;
}

.template-index .bdm-footer-entity__col--quick {
	color: #121c34;
}

.bdm-footer-entity__col-heading {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.3;
}

.bdm-footer-entity__contact-heading {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}

.bdm-footer-entity__contact--solo {
	text-align: center;
	width: 100%;
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: inherit;
}

.template-index .bdm-footer-entity {
	color: #121c34;
}

.bdm-company-legal--footer-payment {
	margin: 0;
	padding: 0;
	border: 0;
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.55;
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
}

.bdm-footer-entity__col--contact .bdm-company-legal--footer-payment {
	margin-top: 1rem;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	text-align: left;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.bdm-company-legal--footer-payment .bdm-company-legal__stack-title {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
}

.bdm-company-legal--footer-payment .bdm-company-legal__name,
.bdm-company-legal--footer-payment .bdm-company-legal__number,
.bdm-company-legal--footer-payment .bdm-company-legal__address-line,
.bdm-company-legal--footer-payment .bdm-company-legal__phone,
.bdm-company-legal--footer-payment .bdm-company-legal__email {
	margin: 0.35rem 0 0;
}

.template-index .bdm-company-legal--footer-payment .bdm-company-legal__label {
	color: #121c34;
}

.site-footer .inline-list.payment-icons.bdm-stripe-methods {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 0.5rem;
	text-align: center;
}

/* Footer QUICK LINKS: vertical list; paired with Contact Us in one row (mirrored + default footer) */
.bdm-quick-links--footer {
	margin: 0;
	padding: 0;
	max-width: none;
	border: 0;
	background: transparent;
}

.bdm-quick-links--footer .bdm-quick-links__title {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
}

.bdm-quick-links--footer .bdm-quick-links__columns {
	display: grid;
	grid-template-columns: repeat(var(--bdm-quick-link-cols, 1), minmax(0, 1fr));
	gap: 0.65rem 1.5rem;
	align-items: start;
}

@media (max-width: 519px) {
	.bdm-quick-links--footer .bdm-quick-links__columns {
		grid-template-columns: 1fr;
	}
}

.bdm-quick-links--footer .bdm-quick-links__list {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bdm-quick-links--footer .bdm-quick-links__column {
	min-width: 0;
}

.bdm-quick-links--footer .bdm-quick-links__item {
	margin: 0;
	width: 100%;
}

.bdm-quick-links--footer .bdm-quick-links__link {
	font-size: 0.875rem;
	display: inline-block;
}

.site-footer__quick-row {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 1.25rem 2rem;
	max-width: min(100%, 56rem);
	margin: 0.5rem auto 1rem;
	border: 0;
	border-radius: 0;
	background: transparent;
}

@media (min-width: 520px) {
	.site-footer__quick-row {
		grid-template-columns: 1fr 1fr;
	}
}

.site-footer__quick-col {
	padding: 1.15rem 1.35rem;
	min-width: 0;
}

.site-footer__quick-col--contact,
.site-footer__quick-col--nav {
	border: 0;
	background: transparent;
	text-align: left;
}

.site-footer__quick-col-heading {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.3;
}

.site-footer__quick-contact-heading {
	font-size: 1.0625rem;
	font-weight: 700;
	color: inherit;
	line-height: 1.3;
}

.site-footer__quick-col--contact .bdm-company-legal--footer-payment {
	margin-top: 1rem;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	text-align: left;
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* About page: main + QUICK LINKS (mirrors desktop header, no dropdown parents) */
.bdm-about-layout {
	display: grid;
	gap: 2rem 2.5rem;
	align-items: start;
	padding-top: 0.5rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 900px) {
	.bdm-about-layout {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
	}
}

.bdm-about-layout__main {
	max-width: 42rem;
	width: 100%;
}

/* Card shell only (e.g. About sidebar); footer uses .bdm-quick-links--footer without border/bg */
.bdm-quick-links:not(.bdm-quick-links--footer) {
	margin: 0;
	padding: 1.25rem 1.35rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: var(--bdm-color-surface, #fff);
}

.template-index .bdm-quick-links:not(.bdm-quick-links--footer) {
	border-color: rgba(18, 28, 52, 0.12);
	color: #121c34;
	background: #fafbfd;
}

.bdm-quick-links__title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: inherit;
}

.bdm-quick-links__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.bdm-quick-links__link {
	font-weight: 500;
	text-decoration: none;
	color: inherit;
}

.bdm-quick-links__link:hover {
	color: var(--bdm-color-accent, #0d6e6e);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.template-index .bdm-quick-links__link:hover {
	color: #0d6e6e;
}

/* Mirrored static home: subscription disclosure under £18/month promo */
.template-index .bdm-subscription-cancellation-notice {
	margin: 0.75rem 0 0;
	max-width: 36rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: inherit;
	opacity: 0.92;
}

.template-index .bdm-subscription-cancellation-notice a {
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

/* Accessibility */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	background: var(--bdm-color-surface);
	height: auto;
	left: 5px;
	padding: 0.5rem 0.75rem;
	top: 5px;
	width: auto;
	z-index: 100000;
	box-shadow: 0 0 0 2px var(--bdm-color-accent);
}

/* Comments */
.comment-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin-left: 1.25rem;
	padding: 0;
}

.comment-body {
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comments-title {
	font-size: 1.15rem;
	margin: 0 0 1rem;
}
