/* HM Shutters: small front-end styles. Colors/type come from theme.json presets. */

/* ---------- Header ---------- */
.hm-header .hm-logo img { width: clamp(150px, 22vw, 230px); height: auto; }
.hm-header .wp-block-navigation .hm-store-cta > a {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 0.5rem 1.15rem;
	border-radius: 4px;
	text-decoration: none;
}
.hm-header .wp-block-navigation .hm-store-cta > a:hover,
.hm-header .wp-block-navigation .hm-store-cta > a:focus-visible {
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--base);
}
.hm-header .wp-block-navigation-item:not(.hm-store-cta) > a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.hm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; font-size: var(--wp--preset--font-size--large); }
.hm-header .wp-block-navigation__responsive-container.is-menu-open .hm-store-cta > a.wp-block-navigation-item__content {
	display: inline-block;
	padding: 0.55rem 1.4rem;
}

/* ---------- Type helpers ---------- */
.hm-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Image "frame" style (Gene's Frame color) ---------- */
.wp-block-image.is-style-hm-frame img {
	border: 10px solid var(--wp--preset--color--accent-1);
	border-radius: 3px;
	box-shadow: 0 14px 30px -18px rgba(62, 35, 26, 0.55);
}

/* ---------- Light button for dark backgrounds ---------- */
.wp-block-button.is-style-hm-light .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-hm-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }

/* ---------- Trust bar ---------- */
.hm-trust .wp-block-column { text-align: center; }
.hm-trust strong { font-family: var(--wp--preset--font-family--bitter); font-weight: 600; font-size: 1.1em; }

/* ---------- Masonry gallery (core/gallery + "Masonry + Load More" style) ---------- */
.wp-block-gallery.is-style-hm-masonry.has-nested-images {
	display: block;
	columns: 3 240px;
	column-gap: 1.25rem;
}
.wp-block-gallery.is-style-hm-masonry.has-nested-images figure.wp-block-image {
	display: block;
	width: 100% !important;
	margin: 0 0 1.25rem !important;
	break-inside: avoid;
}
.wp-block-gallery.is-style-hm-masonry.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	border: 6px solid var(--wp--preset--color--accent-1);
}
.wp-block-gallery.is-style-hm-masonry figure.hm-is-hidden { display: none !important; }
.wp-block-gallery.is-style-hm-masonry figure.hm-reveal { animation: hm-fade-up 0.5s ease both; }
.hm-load-more-wrap { display: flex; justify-content: center; margin-top: 1rem; }
.hm-load-more-wrap .wp-block-button__link { width: auto; }
@keyframes hm-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- WooCommerce product cards (classic [products] shortcode + Product Collection block) ---------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wp-block-woocommerce-product-template > li {
	box-sizing: border-box;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-2);
	border-radius: 6px;
	padding: 0.75rem 0.75rem 1.25rem;
	text-align: center;
}
.wp-block-woocommerce-product-template > li .wp-block-post-title {
	font-family: var(--wp--preset--font-family--bitter);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--large);
}
.wp-block-woocommerce-product-template > li .wp-block-post-title a { text-decoration: none; }
.woocommerce ul.products li.product a img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 3px;
	margin-bottom: 0.9rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--bitter);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
}
.woocommerce ul.products li.product .price {
	color: var(--wp--preset--color--accent-3);
	font-weight: 500;
}

/* ---------- Footer ---------- */
/* Sections are full-bleed bands; drop the root block gap so the last band meets the footer. */
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }
.hm-footer .hm-footer-links { list-style: none; padding-left: 0; }
.hm-footer .hm-footer-links li { margin: 0.35rem 0; }
.hm-footer h2 { margin-bottom: 0.75rem; }

/* ---------- Accessibility ---------- */
:where(a, button, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.is-style-hm-masonry figure.hm-reveal { animation: none; }
}
