/* ==========================================================================
   HBG theme — extra styles on top of theme.json
   Colours/fonts come from theme.json presets (--wp--preset--*).
   ========================================================================== */

:root {
	--hbg-black: var(--wp--preset--color--black, #0a0a0b);
	--hbg-carbon: var(--wp--preset--color--carbon, #141418);
	--hbg-carbon-2: var(--wp--preset--color--carbon-2, #1b1b21);
	--hbg-line: var(--wp--preset--color--line, #2c2c34);
	--hbg-text: var(--wp--preset--color--text, #f3f3f5);
	--hbg-muted: var(--wp--preset--color--muted, #9a9aa4);
	--hbg-red: var(--wp--preset--color--red, #ff2b2b);
	--hbg-deep-red: var(--wp--preset--color--deep-red, #c8102e);
	--hbg-cond: var(--wp--preset--font-family--barlow-condensed, "Barlow Condensed", sans-serif);
	--hbg-ease: cubic-bezier(.2, .7, .2, 1);
	--hbg-header-h: 76px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--hbg-deep-red); color: #fff; }
:focus-visible { outline: 2px solid var(--hbg-red); outline-offset: 3px; }
img { height: auto; }
.hbg-red { color: var(--hbg-red); }
.hbg-muted { color: var(--hbg-muted); }
.hbg-main { min-height: 50vh; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Icons (CSS masks so they inherit colour) ---------- */
[class*="hbg-ico-"]::before {
	content: ""; display: block; width: 44px; height: 44px; margin-bottom: 1rem;
	background: var(--hbg-red);
	-webkit-mask: var(--hbg-ico) center / contain no-repeat; mask: var(--hbg-ico) center / contain no-repeat;
	filter: drop-shadow(0 0 10px rgba(255, 43, 43, .45));
}
.hbg-ico-chip { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='1.5'/%3E%3Crect x='9.5' y='9.5' width='5' height='5'/%3E%3Cpath d='M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E"); }
.hbg-ico-fuel { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v16M3 21h13M7 7h5v4H7zM15 10h2a2 2 0 0 1 2 2v4a1.5 1.5 0 0 0 3 0V8l-3-3'/%3E%3C/svg%3E"); }
.hbg-ico-gauge { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3.5 17a9.5 9.5 0 1 1 17 0'/%3E%3Cpath d='M12 14l5-5'/%3E%3Ccircle cx='12' cy='14' r='1.6'/%3E%3Cpath d='M6 12.5h1.5M12 6.5V8M17 10.5'/%3E%3C/svg%3E"); }
.hbg-ico-turbo { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 12m-2 0a2 2 0 1 0 4 0a4 4 0 1 0-8 0a6 6 0 1 0 12 0a8 8 0 0 0-8-8'/%3E%3Cpath d='M20 12h3M12 4V1'/%3E%3C/svg%3E"); }
.hbg-ico-exhaust { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 9h10a3 3 0 0 1 3 3v0a3 3 0 0 0 3 3h3M2 13h9'/%3E%3Cellipse cx='21' cy='15' rx='1.2' ry='2.5'/%3E%3Cpath d='M17 6c1-1 2 0 3-1M18 3c1-1 2 0 3-1'/%3E%3C/svg%3E"); }
.hbg-ico-engine { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 9h3l2-2h5l2 2h2v3h2v-2h2v7h-2v-2h-2v3h-3l-2 2H7v-3H4z'/%3E%3Cpath d='M9 4h5M11.5 4v3M1 12h3'/%3E%3C/svg%3E"); }
.hbg-ico-flame { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 22c4 0 7-2.8 7-7 0-4-3-6-4-10-2 2-3 4-3 6-1-1-2-2-2-4-3 3-5 5.5-5 8 0 4.2 3 7 7 7z'/%3E%3Cpath d='M12 22c-1.7 0-3-1.3-3-3 0-1.7 1.5-3 3-5 1.5 2 3 3.3 3 5 0 1.7-1.3 3-3 3z'/%3E%3C/svg%3E"); }
.hbg-ico-drop { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 2.5C9 7 5.5 10.5 5.5 14.5a6.5 6.5 0 0 0 13 0C18.5 10.5 15 7 12 2.5z'/%3E%3Cpath d='M9 15a3 3 0 0 0 3 3'/%3E%3C/svg%3E"); }
.hbg-ico-check { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 3v6c0 5-3.5 9-8 11-4.5-2-8-6-8-11V5z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.hbg-ico-wrench { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0 5 5l-9.4 9.4a2.1 2.1 0 0 1-3-3z'/%3E%3Cpath d='M14.7 6.3l2.8-2.8a4 4 0 0 0-5 5'/%3E%3C/svg%3E"); }
.hbg-ico-graph { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M6 17c3-1 4-6 7-8s4-2 7-4'/%3E%3Cpath d='M6 19c3-1 5-3 7-4s4-1 7-2' opacity='.5'/%3E%3C/svg%3E"); }
.hbg-ico-card { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
.hbg-ico-cloud { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a5 5 0 0 1-.6-10A6 6 0 0 1 18 9a4.5 4.5 0 0 1-1 9'/%3E%3Cpath d='M12 12v9M9 15l3-3 3 3'/%3E%3C/svg%3E"); }
.hbg-ico-refresh { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 0 0-14.5-4.5L3 9M4 13a8 8 0 0 0 14.5 4.5L21 15'/%3E%3Cpath d='M3 4v5h5M21 20v-5h-5'/%3E%3C/svg%3E"); }
.hbg-ico-plus { --hbg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.hbg-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .hbg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hbg-header { top: 0; } }
.hbg-promo { transition: margin .3s var(--hbg-ease), opacity .3s; overflow: hidden; text-align: center; letter-spacing: .02em; }
.hbg-promo p { margin: 0; }
.hbg-promo a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hbg-header__bar {
	background: rgba(10, 10, 11, .97); /* no backdrop-filter: it would trap the fixed mobile menu inside the bar */
	border-bottom: 1px solid var(--hbg-line);
	transition: background .3s;
	position: relative;
}
.hbg-header__bar::after { /* thin red seam under header */
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
	background: linear-gradient(90deg, transparent, var(--hbg-red) 30%, var(--hbg-red) 70%, transparent);
	opacity: .55; transform: scaleX(.4); transition: transform .6s var(--hbg-ease), opacity .6s;
}
.hbg-scrolled .hbg-header__bar::after { transform: scaleX(1); opacity: .9; }
.hbg-header__inner { min-height: var(--hbg-header-h); gap: 1.25rem; transition: min-height .3s var(--hbg-ease); }
.hbg-scrolled .hbg-header__inner { min-height: 58px; }
.hbg-scrolled .hbg-promo { margin-top: -2.2em; opacity: 0; }
.hbg-brand { gap: .75rem; flex-shrink: 0; }
.hbg-brand .wp-block-site-logo:has(img) + .hbg-wordmark { display: none; }
.hbg-brand .wp-block-site-logo:not(:has(img)) { display: none; }
.hbg-scrolled .hbg-brand .wp-block-site-logo img { max-width: 230px; }
.hbg-brand .wp-block-site-logo img { transition: max-width .3s ease; }
/* Trim the empty space built into the logo image (sparkle above, transparent strip below). */
.hbg-brand .wp-block-site-logo a { display: block; overflow: hidden; }
.hbg-brand .wp-block-site-logo img { display: block; margin: -2.6% 0 -4%; }
.hbg-header__bar { padding-top: .45rem; padding-bottom: .45rem; }
.hbg-header > .hbg-header__bar { margin-top: 0 !important; }
@media (max-width: 600px) { .hbg-promo-extra { display: none; } }
@media (max-width: 600px) { .hbg-brand .wp-block-site-logo img { max-width: 205px; } .hbg-scrolled .hbg-brand .wp-block-site-logo img { max-width: 175px; } }
@media (max-width: 380px) { .hbg-brand .wp-block-site-logo img { max-width: 175px; } .hbg-scrolled .hbg-brand .wp-block-site-logo img { max-width: 155px; } }

/* Text logo */
.hbg-wordmark { margin: 0; line-height: 1; }
.hbg-wordmark a { display: inline-flex; align-items: center; gap: .6rem; color: var(--hbg-text); text-decoration: none !important; }
.hbg-wordmark__mark {
	font-family: var(--hbg-cond); font-style: italic; font-weight: 800; font-size: 1.65rem; letter-spacing: .02em;
	padding: .18em .45em .14em .35em; color: #fff;
	background: linear-gradient(135deg, var(--hbg-deep-red), var(--hbg-red));
	clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
	box-shadow: 0 0 24px rgba(255, 43, 43, .45);
	transition: transform .3s var(--hbg-ease);
}
.hbg-wordmark a:hover .hbg-wordmark__mark { transform: skewX(-6deg) scale(1.04); }
.hbg-wordmark__name { font-family: var(--hbg-cond); font-weight: 700; text-transform: uppercase; font-size: .86rem; letter-spacing: .16em; line-height: 1.1; }
.hbg-wordmark--lg .hbg-wordmark__mark { font-size: 2.3rem; }
.hbg-wordmark--lg .hbg-wordmark__name { font-size: 1.05rem; }

/* Navigation + mega menu */
.hbg-nav .wp-block-navigation-item__content { color: var(--hbg-text); padding: .4rem 0; position: relative; }
.hbg-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--hbg-red);
	transform: scaleX(0); transform-origin: left; transition: transform .25s var(--hbg-ease);
}
.hbg-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.hbg-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.hbg-nav .wp-block-navigation-item__content:hover { text-decoration: none; color: #fff; }
@media (min-width: 600px) {
	.hbg-nav .wp-block-navigation__submenu-container {
		background: rgba(20, 20, 24, .98) !important; border: 1px solid var(--hbg-line) !important; border-top: 2px solid var(--hbg-red) !important;
		padding: .75rem !important; min-width: 250px !important; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
		font-family: var(--wp--preset--font-family--barlow); text-transform: none; letter-spacing: 0; font-weight: 500;
	}
	.hbg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem .75rem; border-radius: 2px; }
	.hbg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--hbg-carbon-2); color: var(--hbg-red); }
	.hbg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
	/* Mega panel: add the CSS class "hbg-mega" to a submenu item in the editor. */
	.hbg-nav .hbg-mega > .wp-block-navigation__submenu-container {
		display: grid !important; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: .1rem 1rem; min-width: 680px !important;
	}
	.hbg-nav .hbg-mega > .wp-block-navigation__submenu-container > :last-child .wp-block-navigation-item__content { color: var(--hbg-red); font-weight: 700; }
}

/* Mobile slide-in menu */
.wp-block-navigation__responsive-container-open svg, .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
@media (max-width: 599px) {
	.hbg-nav .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--hbg-carbon) !important; color: var(--hbg-text) !important;
		left: auto; width: min(88vw, 380px); border-left: 2px solid var(--hbg-red);
		box-shadow: -30px 0 60px rgba(0, 0, 0, .7);
		animation: hbg-slide-in .35s var(--hbg-ease) both !important;
		padding: 1.5rem;
	}
	.hbg-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3rem; gap: 0 !important; align-items: stretch !important; }
	.hbg-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; width: 100%; }
	.hbg-nav .is-menu-open .wp-block-navigation-item { border-bottom: 1px solid var(--hbg-line); width: 100%; align-items: stretch !important; }
	.hbg-nav .is-menu-open .wp-block-navigation-item__content { padding: .85rem 0 !important; font-size: 1.25rem; }
	.hbg-nav .is-menu-open .wp-block-navigation__submenu-container { padding: 0 0 .75rem 1rem !important; gap: 0 !important; }
	.hbg-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border: 0; }
	.hbg-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1rem; padding: .45rem 0 !important; color: var(--hbg-muted); text-transform: none; letter-spacing: 0; font-family: var(--wp--preset--font-family--barlow); }
}
@keyframes hbg-slide-in { from { transform: translateX(100%); } to { transform: none; } }

/* Header actions */
.hbg-actions { gap: .9rem; }
.hbg-actions .wp-block-search__button, .hbg-actions .wp-block-search__button:hover, .hbg-actions .wp-block-search__button:focus { background: transparent !important; box-shadow: none !important; color: var(--hbg-text); padding: .35rem; border: 0; }
.hbg-actions .wp-block-search__button svg { width: 26px; height: 26px; fill: currentColor; }
.hbg-actions .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.hbg-actions .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	background: var(--hbg-carbon-2); color: var(--hbg-text); border: 1px solid var(--hbg-line); min-width: min(280px, 50vw); padding: .5rem .75rem;
}
.hbg-actions .wc-block-customer-account a, .hbg-actions .wc-block-mini-cart__button { color: var(--hbg-text); }
.hbg-actions .wc-block-mini-cart__badge { background: var(--hbg-red) !important; color: #fff !important; border: 0 !important; font-weight: 700; }
.hbg-actions .wc-block-mini-cart__icon, .hbg-actions .wc-block-customer-account__account-icon { width: 26px; height: 26px; }
.hbg-actions .wp-block-button__link { padding: .55em 1.1em; }
@media (max-width: 1100px) { .hbg-header__cta { display: none !important; } }
@media (max-width: 599px) {
	:root { --hbg-header-h: 62px; }
	.hbg-header__inner { gap: .5rem; }
	.hbg-actions { gap: .35rem; order: 2; }
	.hbg-nav { order: 3; }
	.hbg-wordmark__name { font-size: .72rem; letter-spacing: .12em; }
	.hbg-wordmark__mark { font-size: 1.35rem; }
	.hbg-promo { font-size: .72rem !important; }
}

/* Mini-cart drawer */
.wc-block-mini-cart__drawer .components-modal__content, .wc-block-components-drawer { background: var(--hbg-carbon) !important; color: var(--hbg-text); }
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer { border-top: 1px solid var(--hbg-line); }

/* ---------- Block styles ---------- */
.is-style-kicker {
	font-family: var(--hbg-cond); font-size: .9rem !important; font-weight: 700; letter-spacing: .22em !important;
	color: var(--hbg-red) !important; text-transform: uppercase; display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem;
}
.is-style-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; box-shadow: 0 0 10px var(--hbg-red); flex: none; }
.is-style-slash { position: relative; padding-left: 1.1em; }
.is-style-slash::before {
	content: ""; position: absolute; left: 0; top: .1em; bottom: .12em; width: .32em;
	background: linear-gradient(180deg, var(--hbg-red), var(--hbg-deep-red)); transform: skewX(-14deg);
	box-shadow: 0 0 18px rgba(255, 43, 43, .5);
}
.is-style-checks { list-style: none; padding-left: 0; }
.is-style-checks li { position: relative; padding-left: 1.8em; margin: .45em 0; }
.is-style-checks li::before {
	content: ""; position: absolute; left: 0; top: .32em; width: 1.05em; height: 1.05em; background: var(--hbg-red);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.is-style-card {
	background: linear-gradient(180deg, var(--hbg-carbon-2), var(--hbg-carbon));
	border: 1px solid var(--hbg-line); border-radius: 4px; padding: clamp(1.25rem, 2.5vw, 2rem);
	position: relative; transition: transform .35s var(--hbg-ease), border-color .35s, box-shadow .35s;
}
.is-style-red-bar { border-left: 3px solid var(--hbg-red); padding-left: 1.25rem; }
.is-style-framed img { border: 1px solid var(--hbg-line); }
.is-style-framed { position: relative; }
.is-style-framed::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 30%; height: 30%; border-right: 3px solid var(--hbg-red); border-bottom: 3px solid var(--hbg-red); pointer-events: none; }

/* Ghost button */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent; color: var(--hbg-text); box-shadow: inset 0 0 0 1.5px rgba(243, 243, 245, .55);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1.5px var(--hbg-red); color: #fff; background: rgba(255, 43, 43, .08); }
.wp-block-button__link, .wc-block-components-button, .single_add_to_cart_button, .wp-element-button {
	transition: background-color .2s, box-shadow .3s, transform .2s var(--hbg-ease) !important;
}
.wp-block-button:not(.is-style-ghost) .wp-block-button__link:hover, .single_add_to_cart_button:hover { box-shadow: 0 10px 30px -8px rgba(255, 43, 43, .7); transform: translateY(-1px); }

/* ---------- Carbon shards backgrounds ---------- */
.is-style-shards, .is-style-shards-calm { position: relative; isolation: isolate; background-color: var(--hbg-black); }
.is-style-shards::before, .is-style-shards-calm::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 10, 11, .55), rgba(10, 10, 11, .85)), var(--hbg-shards) center / cover no-repeat;
}
.is-style-shards::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
	background: var(--hbg-seams) center / cover no-repeat;
}
.is-style-shards-calm::before { background: linear-gradient(180deg, rgba(10, 10, 11, .7), rgba(10, 10, 11, .92)), var(--hbg-shards) center / cover no-repeat; }

/* Cover with glowing seams + light sweep */
.wp-block-cover.is-style-seams { overflow: hidden; }
.wp-block-cover.is-style-seams::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: var(--hbg-seams) center / cover no-repeat;
	mix-blend-mode: screen;
}
.wp-block-cover.is-style-seams::before {
	content: ""; position: absolute; inset: -20% -60%; z-index: 1; pointer-events: none;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 43, 43, .16) 48%, rgba(255, 255, 255, .06) 50%, rgba(255, 43, 43, .14) 52%, transparent 58%);
	animation: hbg-sweep 7s 1.2s var(--hbg-ease) infinite;
	transform: translateX(-60%);
}
.wp-block-cover.is-style-seams > .wp-block-cover__inner-container { z-index: 2; }
@keyframes hbg-sweep { 0% { transform: translateX(-60%); } 45%, 100% { transform: translateX(60%); } }

/* ---------- Hero ---------- */
.hbg-hero.wp-block-cover, .hbg-build-card.wp-block-cover { padding-left: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2.5rem)) !important; padding-right: var(--wp--style--root--padding-right, clamp(1rem, 4vw, 2.5rem)) !important; }
.hbg-build-card.wp-block-cover { padding: 1.4rem !important; }
.hbg-hero .wp-block-cover__inner-container { width: 100% !important; max-width: none !important; margin: 0 !important; }
.hbg-hero { border-bottom: 1px solid var(--hbg-line); }
.hbg-hero__content { position: relative; }
.hbg-hero__title { font-size: clamp(2.8rem, 8.5vw, 6.6rem) !important; line-height: .92 !important; font-weight: 800; font-style: italic; letter-spacing: -.005em; margin: .2rem 0 1.2rem; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.hbg-hero--page .hbg-hero__title { font-size: clamp(2.5rem, 7vw, 5.4rem) !important; }
.hbg-hero__lead { color: #d6d6dc; max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.3rem) !important; }
.hbg-hero__ctas { margin-top: 1.75rem; gap: .9rem; }
.hbg-hero__finder { margin-top: var(--wp--preset--spacing--50) !important; }
/* Intro animation */
.hbg-hero__kicker, .hbg-hero__title, .hbg-hero__lead, .hbg-hero__ctas, .hbg-hero__finder { animation: hbg-in .9s var(--hbg-ease) both; }
.hbg-hero__kicker { animation-delay: .15s; }
.hbg-hero__title { animation-name: hbg-slide; animation-duration: 1.1s; animation-delay: .25s; }
.hbg-hero__lead { animation-delay: .55s; }
.hbg-hero__ctas { animation-delay: .7s; }
.hbg-hero__finder { animation-delay: .9s; }
@keyframes hbg-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hbg-slide { from { opacity: 0; transform: translateX(-60px) skewX(-8deg); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

/* Page hero (templates) */
.hbg-page-hero { border-bottom: 1px solid var(--hbg-line); }
.hbg-page-hero .wp-block-post-title, .hbg-page-hero .wp-block-query-title { font-style: italic; font-weight: 800; margin-top: .4rem; }
.hbg-page-hero--shop .wp-block-query-title { margin-bottom: .25rem; }

/* ---------- Sections ---------- */
.hbg-section-head { margin-bottom: var(--wp--preset--spacing--40) !important; gap: 1rem; }
.hbg-section-head h2 { margin: 0; }
.hbg-section-head a { font-family: var(--hbg-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hbg-section > .hbg-reveal + * { margin-top: var(--wp--preset--spacing--40); }

/* Category tiles */
.hbg-tiles { gap: 1rem !important; }
.hbg-tile {
	position: relative; padding: 1.6rem 1.4rem 1.4rem; border: 1px solid var(--hbg-line); border-radius: 4px; overflow: hidden;
	background: linear-gradient(160deg, var(--hbg-carbon-2), var(--hbg-black)); min-height: 190px;
	transition: transform .35s var(--hbg-ease), border-color .35s, box-shadow .35s;
}
.hbg-tile::after {
	content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 43, 43, .25), transparent 70%); opacity: 0; transition: opacity .35s;
}
.hbg-tile h3 { margin: 0 0 .35rem; }
.hbg-tile h3 a { color: var(--hbg-text); text-decoration: none; }
.hbg-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole tile clickable */
.hbg-tile p { margin: 0; }
.hbg-tile:hover, .hbg-card:hover, .hbg-platform:hover, .hbg-post-card:hover, .hbg-product-card:hover, .hbg-stage:hover {
	transform: translateY(-4px); border-color: rgba(255, 43, 43, .6);
	box-shadow: 0 0 0 1px rgba(255, 43, 43, .35), 0 18px 50px -18px rgba(255, 43, 43, .55);
}
.hbg-tile:hover::after { opacity: 1; }
.hbg-tile:hover h3 a { color: #fff; }

/* Cards */
.hbg-cards { gap: 1.1rem !important; }
.hbg-card { gap: .5rem; height: 100%; }
.hbg-card h3 { margin: 0; }
.hbg-card p { margin: 0; }
.hbg-card .is-style-checks { margin: .5rem 0 0; }
.hbg-card__cta { margin-top: auto !important; padding-top: 1rem; }
.hbg-card__badge {
	position: absolute; top: 1rem; right: 1rem; font-family: var(--hbg-cond); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
	background: var(--hbg-deep-red); color: #fff; padding: .25rem .6rem; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

/* Builds */
.hbg-build-stack { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hbg-build-stack > :first-child { grid-column: 1 / -1; }
.hbg-build-card { border: 1px solid var(--hbg-line); border-radius: 4px; overflow: hidden; transition: transform .4s var(--hbg-ease), box-shadow .4s, border-color .4s; }
.hbg-build-card .wp-block-cover__image-background { transition: transform 1.2s var(--hbg-ease); }
.hbg-build-card:hover { border-color: rgba(255, 43, 43, .6); box-shadow: 0 18px 50px -18px rgba(255, 43, 43, .55); }
.hbg-build-card:hover .wp-block-cover__image-background { transform: scale(1.06); }
.hbg-build-card h3 { margin: 0; font-style: italic; }
.hbg-build-card__spec { margin: .25rem 0 0; color: #d0d0d6; }
.hbg-gallery { gap: 1.1rem !important; }

/* Stats */
.hbg-stats { border-top: 1px solid var(--hbg-line); border-bottom: 1px solid var(--hbg-line); }
.hbg-stat { border-left: 2px solid var(--hbg-red); padding-left: 1.2rem; }
.hbg-stat__num { font-family: var(--hbg-cond); font-weight: 800; font-style: italic; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1; margin: 0 0 .4rem; color: #fff; text-shadow: 0 0 30px rgba(255, 43, 43, .35); font-variant-numeric: tabular-nums; }
.hbg-stat__num small { font-size: .45em; color: var(--hbg-red); margin-left: .15em; font-style: normal; }
.hbg-stat p:last-child { margin: 0; }

/* Marquee */
.hbg-marquee { overflow: hidden; border-top: 1px solid var(--hbg-line); border-bottom: 1px solid var(--hbg-line); padding: 1.1rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hbg-marquee__track { display: flex; width: max-content; margin: 0; gap: 3.5rem; animation: hbg-marquee 40s linear infinite; font-family: var(--hbg-cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: .04em; white-space: nowrap; }
.hbg-marquee__track span { color: #55555f; transition: color .3s; display: inline-flex; align-items: center; gap: 3.5rem; }
.hbg-marquee__track span::after { content: "/"; color: var(--hbg-red); font-style: normal; }
.hbg-marquee__track span:hover { color: var(--hbg-text); }
.hbg-marquee:hover .hbg-marquee__track { animation-play-state: paused; }
@keyframes hbg-marquee { to { transform: translateX(-50%); } }

/* Reviews carousel */
.hbg-carousel { gap: 1.1rem !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--hbg-red) var(--hbg-carbon); }
.hbg-review { flex: 0 0 min(86vw, 380px); scroll-snap-align: start; background: var(--hbg-carbon); border: 1px solid var(--hbg-line); border-top: 2px solid var(--hbg-red); border-radius: 4px; padding: 1.6rem; display: flex; flex-direction: column; }
.hbg-review p { margin: 0 0 1rem; }
.hbg-review__stars { color: var(--hbg-red); letter-spacing: .2em; text-shadow: 0 0 12px rgba(255, 43, 43, .5); }
.hbg-review__who { margin-top: auto !important; margin-bottom: 0 !important; color: var(--hbg-muted); text-transform: uppercase; letter-spacing: .08em; }
.hbg-review__who em { text-transform: none; letter-spacing: 0; opacity: .6; }
.hbg-carousel-nav { margin: 0; display: flex; gap: .5rem; align-items: center; color: var(--hbg-muted); }
.hbg-carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hbg-line); background: var(--hbg-carbon); color: var(--hbg-text); cursor: pointer; font-size: 1.2rem; transition: border-color .2s, background .2s; }
.hbg-carousel-btn:hover { border-color: var(--hbg-red); background: var(--hbg-deep-red); }

/* Stages / steps */
.hbg-stages, .hbg-steps { gap: 1.1rem !important; }
.hbg-stage__num, .hbg-step__num { font-family: var(--hbg-cond); font-weight: 800; font-style: italic; font-size: 3.2rem; line-height: 1; margin: 0 0 .5rem; color: transparent; -webkit-text-stroke: 1.5px var(--hbg-red); }
.hbg-stage h3, .hbg-step h3 { margin: 0 0 .5rem; }
.hbg-step { position: relative; padding: 1.5rem 1.25rem 1.25rem; border-top: 2px solid var(--hbg-line); transition: border-color .4s; }
.hbg-step::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--hbg-red); box-shadow: 0 0 12px var(--hbg-red); transition: width .9s var(--hbg-ease) .2s; }
.hbg-step.is-visible::before, html:not(.hbg-js) .hbg-step::before { width: 100%; }
.hbg-step p:last-child { margin: 0; }

/* Platforms */
.hbg-platforms { gap: 1rem !important; }
.hbg-platform { padding: 1.4rem; border: 1px solid var(--hbg-line); border-radius: 4px; background: rgba(20, 20, 24, .8); position: relative; overflow: hidden; transition: transform .35s var(--hbg-ease), border-color .35s, box-shadow .35s; }
.hbg-platform::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hbg-red); transform: scaleY(.25); transform-origin: top; transition: transform .4s var(--hbg-ease); }
.hbg-platform:hover::after { transform: scaleY(1); }
.hbg-platform h3 { margin: .1rem 0 .3rem; font-style: italic; }
.hbg-platform p { margin: 0; }
.hbg-platform__make { font-family: var(--hbg-cond); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--hbg-red) !important; font-weight: 700; }

/* Dyno graph */
.hbg-dyno { margin: 0; background: var(--hbg-carbon); border: 1px solid var(--hbg-line); border-radius: 4px; padding: 1rem 1rem .75rem; }
.hbg-dyno svg { width: 100%; height: auto; display: block; overflow: visible; }
.hbg-dyno__grid line { stroke: var(--hbg-line); stroke-width: 1; }
.hbg-dyno__grid text, .hbg-dyno__peak text { fill: var(--hbg-muted); font: 600 12px var(--hbg-cond); }
.hbg-dyno__peak text { fill: #fff; font-size: 15px; }
.hbg-dyno__peak circle { fill: var(--hbg-red); filter: drop-shadow(0 0 6px var(--hbg-red)); }
.hbg-dyno__line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hbg-dyno__line--stock { stroke: #6b6b75; stroke-width: 2.4; }
.hbg-dyno__line--tuned { stroke: var(--hbg-red); filter: drop-shadow(0 0 6px rgba(255, 43, 43, .8)); }
.hbg-js .hbg-dyno:not(.is-drawn) .hbg-dyno__line { stroke-dashoffset: 1; }
.hbg-js .hbg-dyno:not(.is-drawn) .hbg-dyno__peak { opacity: 0; }
.hbg-dyno.is-drawn .hbg-dyno__line--stock { transition: stroke-dashoffset 1.6s var(--hbg-ease); }
.hbg-dyno.is-drawn .hbg-dyno__line--tuned { transition: stroke-dashoffset 2.2s var(--hbg-ease) .5s; }
.hbg-dyno__peak { transition: opacity .6s 2.5s; }
.hbg-dyno figcaption { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; color: var(--hbg-muted); margin-top: .5rem; }
.hbg-dyno__key::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: .45rem; vertical-align: middle; background: #6b6b75; }
.hbg-dyno__key--tuned::before { background: var(--hbg-red); box-shadow: 0 0 6px var(--hbg-red); }
.hbg-dyno__note { margin-left: auto; font-style: italic; }

/* FAQ / details */
.hbg-faq .wp-block-details { border-bottom: 1px solid var(--hbg-line); padding: 0; }
.wp-block-details summary { cursor: pointer; font-family: var(--hbg-cond); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; padding: 1.1rem 2.5rem 1.1rem 0; list-style: none; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); color: var(--hbg-red); font-size: 1.6rem; transition: transform .3s var(--hbg-ease); font-weight: 400; }
.wp-block-details[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.wp-block-details summary:hover { color: #fff; }
.hbg-faq .wp-block-details > p { margin-top: 0; padding-bottom: 1.1rem; }

/* CTA banner */
.hbg-cta { background: linear-gradient(115deg, var(--hbg-deep-red), var(--hbg-red)); position: relative; overflow: hidden; isolation: isolate; }
.hbg-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hbg-shards) center / cover; mix-blend-mode: multiply; opacity: .55; }
.hbg-cta h2 { margin: 0 0 .25rem; font-style: italic; }
.hbg-cta p { margin: 0; color: #fff; font-size: 1.1rem; }
.hbg-cta__inner { gap: 1.5rem; }
.hbg-cta .is-style-ghost .wp-block-button__link { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.hbg-cta .is-style-ghost .wp-block-button__link:hover { background: rgba(0, 0, 0, .2); }

/* Newsletter */
.hbg-newsletter__box { background: rgba(20, 20, 24, .85); border: 1px solid var(--hbg-line); border-radius: 4px; padding: clamp(1.5rem, 4vw, 3rem); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hbg-newsletter__box h2 { margin: 0 0 .5rem; }

/* Post cards */
.hbg-post-grid { gap: 1.25rem !important; }
.hbg-post-card { background: var(--hbg-carbon); border: 1px solid var(--hbg-line); border-radius: 4px; overflow: hidden; height: 100%; transition: transform .35s var(--hbg-ease), border-color .35s, box-shadow .35s; }
.hbg-post-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.hbg-post-card .wp-block-post-featured-image img { transition: transform .8s var(--hbg-ease); }
.hbg-post-card:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.hbg-post-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.hbg-post-card__body > * { margin-top: 0 !important; margin-bottom: .5rem !important; }
.hbg-post-card .wp-block-post-title a { color: var(--hbg-text); text-decoration: none; }
.hbg-post-card .wp-block-post-title a:hover { color: var(--hbg-red); }
.hbg-post-card .wp-block-post-excerpt__more-link { font-weight: 600; }
.hbg-pill a, .hbg-pill { font-family: var(--hbg-cond); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--hbg-red); }
.hbg-prose { font-size: 1.1rem; }
.hbg-prose h2 { font-size: 2rem; margin-top: 2.5rem; }
.hbg-prose h3 { font-size: 1.5rem; margin-top: 2rem; }
.hbg-prose li { margin: .35rem 0; }
.hbg-post-nav a { font-family: var(--hbg-cond); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: .3rem .75rem; border: 1px solid var(--hbg-line); color: var(--hbg-text); }
.wp-block-query-pagination .current { background: var(--hbg-deep-red); border-color: var(--hbg-deep-red); }

/* Perks */
.hbg-perks__grid { gap: 1.5rem !important; }
.hbg-perk { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: start; }
.hbg-perk::before { grid-row: span 2; margin: 0 !important; width: 40px !important; height: 40px !important; }
.hbg-perk h3 { margin: 0 0 .15rem; }
.hbg-perk p { margin: 0; }

/* Contact */
.hbg-contact-card h3 { margin-top: 0; }
.hbg-hours table { border-collapse: collapse; width: 100%; }
.hbg-hours td { border: 0; border-top: 1px solid var(--hbg-line); padding: .6rem 0; }
.hbg-hours td:last-child { text-align: right; font-weight: 600; }
.hbg-map { margin-top: 1rem; min-height: 240px; display: grid; place-items: center; border: 1px dashed var(--hbg-line); border-radius: 4px; padding: 1.5rem; background: var(--hbg-shards) center / cover; position: relative; }
.hbg-map iframe { width: 100%; min-height: 300px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.hbg-dyno-info { margin-top: 1.5rem !important; gap: 1rem; }
.hbg-dyno-info p { margin: 0; }
.hbg-order-card h3 { margin-top: 0; }

/* 404 */
.hbg-404__code { font-family: var(--hbg-cond); font-weight: 800; font-style: italic; font-size: clamp(6rem, 22vw, 14rem); line-height: .8; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--hbg-red); text-shadow: 0 0 60px rgba(255, 43, 43, .35); }
.hbg-search-big { max-width: 560px; margin-inline: auto; }

/* Generic forms (search, inputs) */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], input[type="date"], input[type="url"], select, textarea {
	background: var(--hbg-carbon-2); color: var(--hbg-text); border: 1px solid var(--hbg-line); border-radius: 3px; padding: .7rem .85rem; font: inherit; font-size: 1rem; max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--hbg-red); box-shadow: 0 0 0 3px rgba(255, 43, 43, .2); }
.wp-block-search__inside-wrapper { border: 1px solid var(--hbg-line); background: var(--hbg-carbon-2); border-radius: 3px; }
.wp-block-search__inside-wrapper .wp-block-search__input { border: 0; background: transparent; }
.wp-block-search__button { background: var(--hbg-deep-red); color: #fff; border: 0; }
.wp-block-search__button svg { fill: currentColor; }

/* ---------- Footer ---------- */
.hbg-footer { border-top: 1px solid var(--hbg-line); position: relative; }
.hbg-footer::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--hbg-red), transparent); opacity: .7; }
.hbg-footer h4 { margin-bottom: 1rem; }
.hbg-footer__links { list-style: none; padding: 0; margin: 0; }
.hbg-footer__links li { margin: .4rem 0; }
.hbg-footer__links a, .hbg-footer__bottom a, .hbg-footer__contact a { color: var(--hbg-text); }
.hbg-footer__links a:hover { color: var(--hbg-red); text-decoration: none; padding-left: 4px; }
.hbg-footer__links a { transition: color .2s, padding .2s; }
.hbg-footer__bottom p { margin: 0; }
.hbg-footer .wp-block-separator { margin: var(--wp--preset--spacing--40) auto 1.25rem; opacity: 1; height: 1px; border: 0; }

/* ---------- WooCommerce ---------- */
.hbg-shop__cols { gap: var(--wp--preset--spacing--40) !important; }
.hbg-shop__side { position: sticky; top: calc(var(--hbg-header-h) + 1.5rem); align-self: flex-start; }
.admin-bar .hbg-shop__side { top: calc(var(--hbg-header-h) + 3.5rem); }
.hbg-shop__filters { border: 1px solid var(--hbg-line); background: var(--hbg-carbon); border-radius: 4px; padding: 0 1.25rem 1rem; }
.hbg-shop__filters > summary { font-size: 1.1rem; padding-right: 2rem; }
.hbg-shop__filters h6 { margin: 1.25rem 0 .6rem; }
.hbg-shop__toolbar { gap: 1rem; margin-bottom: 1.25rem; color: var(--hbg-muted); font-size: .95rem; }
.hbg-shop__toolbar p { margin: 0; }
.hbg-cat-list ul { list-style: none; padding: 0; margin: 0; }
.hbg-cat-list li { margin: 0; }
.hbg-cat-list a { display: flex; justify-content: space-between; padding: .4rem 0; color: var(--hbg-text); border-bottom: 1px solid rgba(44, 44, 52, .6); }
.hbg-cat-list a:hover { color: var(--hbg-red); text-decoration: none; }
.hbg-cat-list .wc-block-product-categories-list-item-count { color: var(--hbg-muted); font-size: .85em; }
.hbg-cat-list .wc-block-product-categories-list-item-count::before, .hbg-cat-list .wc-block-product-categories-list-item-count::after { content: ""; }
.hbg-cat-list .wc-block-product-categories-list--depth-1 { padding-left: .9rem; }
@media (max-width: 781px) {
	.hbg-shop__side { position: static; flex-basis: 100% !important; }
	.hbg-shop__filters:not([open]) { padding-bottom: 0; }
}
.woocommerce-breadcrumb, .wc-block-breadcrumbs { color: var(--hbg-muted); }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a { color: var(--hbg-muted); }
.wc-block-catalog-sorting select, .woocommerce-ordering select { padding: .5rem 2rem .5rem .75rem; }

/* Product cards */
.hbg-products { gap: 1rem !important; }
.hbg-product-card { background: var(--hbg-carbon); border: 1px solid var(--hbg-line); border-radius: 4px; overflow: hidden; height: 100%; display: flex; flex-direction: column; position: relative; transition: transform .35s var(--hbg-ease), border-color .35s, box-shadow .35s; }
.hbg-product-card .wc-block-components-product-image { margin: 0 !important; background: var(--hbg-black); overflow: hidden; }
.hbg-product-card .wc-block-components-product-image img { transition: transform .8s var(--hbg-ease); }
.hbg-product-card:hover .wc-block-components-product-image img { transform: scale(1.05); }
.hbg-product-card__body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }
.hbg-product-card__body > * { margin: 0 !important; }
.hbg-product-card__cat, .hbg-product-card__cat a { font-family: var(--hbg-cond); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--hbg-red); font-weight: 700; }
.hbg-product-card__cat .wp-block-post-terms__separator { color: var(--hbg-muted); }
.hbg-product-card .wp-block-post-title { line-height: 1.2; font-size: 1.05rem !important; text-transform: none; font-family: var(--wp--preset--font-family--barlow); font-weight: 600; letter-spacing: 0; }
.hbg-product-card .wp-block-post-title a { color: var(--hbg-text); text-decoration: none; }
.hbg-product-card .wp-block-post-title a:hover { color: #fff; }
.hbg-product-card .wc-block-components-product-price { font-family: var(--hbg-cond); font-weight: 700; color: #fff; font-size: 1.35rem !important; margin-top: auto !important; padding-top: .35rem; }
.hbg-product-card .wp-block-woocommerce-product-button { margin-top: .5rem !important; }
.hbg-product-card .wp-block-button__link, .hbg-product-card .wc-block-components-product-button__button { width: 100%; font-size: .9rem !important; padding: .7em 1em !important; }
.wc-block-components-product-sale-badge, .onsale { background: var(--hbg-red) !important; color: #fff !important; border: 0 !important; font-family: var(--hbg-cond); text-transform: uppercase; border-radius: 2px !important; }
.wc-block-components-product-button .added_to_cart { color: var(--hbg-red); font-size: .9rem; margin-top: .35rem; display: inline-block; }
@media (max-width: 600px) {
	.wc-block-product-template.is-flex-container, .hbg-products.wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .7rem !important; }
	.hbg-product-card__body { padding: .75rem; }
	.hbg-product-card .wp-block-post-title { font-size: .92rem !important; }
	.hbg-product-card .wc-block-components-product-price { font-size: 1.15rem !important; }
}

/* Single product */
.hbg-pdp { margin-top: 1.5rem !important; }
.hbg-pdp__summary .wp-block-post-title { font-style: italic; margin: .25rem 0 .5rem; font-size: clamp(2rem, 4vw, 3rem) !important; }
.hbg-pdp__summary .wc-block-components-product-price, .hbg-pdp__summary .price { font-family: var(--hbg-cond); font-weight: 800; color: #fff; }
.hbg-pdp__summary .wc-block-components-product-price del { color: var(--hbg-muted); font-weight: 500; }
.hbg-pdp__perks { border-top: 1px solid var(--hbg-line); padding-top: 1rem; margin-top: 1.5rem; }
.woocommerce-product-gallery { background: var(--hbg-carbon); border: 1px solid var(--hbg-line); border-radius: 4px; overflow: hidden; }
.woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: .5rem; padding: .5rem; list-style: none; margin: 0; }
.woocommerce-product-gallery .flex-control-thumbs li { width: 72px; }
.woocommerce-product-gallery__trigger { z-index: 5; }
form.cart { margin: 1.25rem 0 !important; }
form.cart .quantity input.qty { width: 4.5rem; text-align: center; padding: .8rem .5rem; }
form.cart:not(.hbg-has-form) { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
.single_add_to_cart_button, .wc-block-components-button:not(.is-link), .woocommerce-button, .woocommerce .button, .wc-block-components-checkout-place-order-button {
	background: var(--hbg-deep-red) !important; color: #fff !important; border: 0 !important; border-radius: 2px !important;
	font-family: var(--hbg-cond) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .06em; padding: .9em 1.8em !important; font-size: 1.05rem !important; cursor: pointer;
}
.single_add_to_cart_button:hover, .wc-block-components-button:not(.is-link):hover, .woocommerce .button:hover { background: var(--hbg-red) !important; }
.stock { font-weight: 600; }
.stock.in-stock { color: #39d98a; }
.stock.available-on-backorder, .stock.out-of-stock { color: #ffb347; }
.hbg-tabs .wc-tabs, .woocommerce-tabs .tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--hbg-line); padding: 0; list-style: none; margin: 0 0 1.5rem; flex-wrap: wrap; }
.woocommerce-tabs .tabs li { margin: 0; border: 0 !important; background: none !important; }
.woocommerce-tabs .tabs li a { display: block; padding: .8rem 1.1rem; font-family: var(--hbg-cond); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; color: var(--hbg-muted); border-bottom: 2px solid transparent; }
.woocommerce-tabs .tabs li.active a { color: #fff; border-bottom-color: var(--hbg-red); }
.woocommerce-tabs .panel { max-width: 900px; }
.woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce-tabs table.shop_attributes { width: 100%; border-collapse: collapse; }
.woocommerce-tabs table.shop_attributes th, .woocommerce-tabs table.shop_attributes td { border-bottom: 1px solid var(--hbg-line); padding: .6rem; text-align: left; }

/* Cart & checkout blocks — dark */
.wc-block-components-text-input input, .wc-block-components-text-input input[type], .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-block-components-textarea, .wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-form .wc-block-components-text-input input {
	background: var(--hbg-carbon-2) !important; color: var(--hbg-text) !important; border-color: var(--hbg-line) !important;
}
.wc-block-components-text-input label, .wc-blocks-components-select .wc-blocks-components-select__label, .wc-block-components-combobox .wc-block-components-combobox-control label { color: var(--hbg-muted) !important; }
.wc-blocks-components-select .wc-blocks-components-select__container { background: var(--hbg-carbon-2) !important; }
.wc-block-components-sidebar-layout .wc-block-components-sidebar, .wp-block-woocommerce-checkout-order-summary-block, .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block { background: var(--hbg-carbon); border: 1px solid var(--hbg-line) !important; border-radius: 4px; padding: 1rem 1.25rem; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-color: var(--hbg-line) !important; }
.wc-block-components-radio-control-accordion-option--checked-option-highlighted, .wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--hbg-red) !important; }
.wc-block-components-radio-control__input { border-color: var(--hbg-muted) !important; background: transparent !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--hbg-red) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { background: var(--hbg-carbon-2); border-color: var(--hbg-muted); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--hbg-deep-red); border-color: var(--hbg-deep-red); }
.wc-block-components-totals-item__value, .wc-block-components-product-price__value, .wc-block-formatted-money-amount { font-weight: 700; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: #fff; font-family: var(--hbg-cond); font-size: 1.6rem; }
.wc-block-cart-items, .wc-block-cart-items td, .wc-block-cart-items th { border-color: var(--hbg-line) !important; }
.wc-block-components-product-metadata, .wc-block-components-product-details { color: var(--hbg-muted); font-size: .85rem; }
.wc-block-components-quantity-selector { border-color: var(--hbg-line) !important; }
.wc-block-components-quantity-selector input { background: transparent !important; color: var(--hbg-text) !important; }
.wc-block-components-quantity-selector button { color: var(--hbg-text) !important; }
.wc-block-components-notice-banner { border-radius: 3px; background: var(--hbg-carbon-2) !important; color: var(--hbg-text) !important; border-color: var(--hbg-line) !important; }
.wc-block-components-notice-banner.is-error { border-left: 3px solid var(--hbg-red) !important; }
.wc-block-components-notice-banner.is-success { border-left: 3px solid #39d98a !important; }
.wc-block-components-notice-banner > svg { background: var(--hbg-deep-red) !important; fill: #fff; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice { background: var(--hbg-carbon-2); border-left: 3px solid var(--hbg-red); padding: 1rem 1.25rem; list-style: none; margin: 0 0 1.5rem; }
.woocommerce-message .button, .woocommerce-info .button { float: right; padding: .4em 1em !important; font-size: .9rem !important; }
.hbg-checkout-header .hbg-wordmark__mark { font-size: 1.35rem; }
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button { color: var(--hbg-muted); }
.wc-block-components-order-summary-item__quantity { background: var(--hbg-deep-red) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
.wc-block-components-panel__button, .wc-block-components-totals-coupon-link { color: var(--hbg-text) !important; }

/* My account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--hbg-line); border-radius: 4px; background: var(--hbg-carbon); overflow: hidden; }
.woocommerce-MyAccount-navigation li a { display: block; padding: .8rem 1rem; color: var(--hbg-text); border-bottom: 1px solid var(--hbg-line); font-family: var(--hbg-cond); text-transform: uppercase; font-weight: 600; letter-spacing: .06em; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--hbg-deep-red); color: #fff; }
.woocommerce-MyAccount-navigation li a:hover { color: var(--hbg-red); text-decoration: none; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce table.shop_table, .woocommerce-orders-table, .woocommerce-table { width: 100%; border-collapse: collapse; border: 1px solid var(--hbg-line); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: .75rem; border-bottom: 1px solid var(--hbg-line); text-align: left; }
.woocommerce form .form-row { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.woocommerce form .form-row input.input-text { width: 100%; }
.u-columns.col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
@media (max-width: 781px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } }
.wc-block-order-confirmation-status { font-family: var(--hbg-cond); }
.wc-block-order-confirmation-summary { background: var(--hbg-carbon); border: 1px solid var(--hbg-line); padding: 1rem; border-radius: 4px; }

/* Store notice + coming soon */
.woocommerce-store-notice, p.demo_store { background: var(--hbg-deep-red) !important; }

/* ---------- Scroll reveal (only when JS is running and motion allowed) ---------- */
.hbg-js .hbg-reveal, .hbg-js .hbg-reveal-children > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--hbg-ease), transform .8s var(--hbg-ease); }
.hbg-js .hbg-reveal.is-visible, .hbg-js .hbg-reveal-children > .is-visible { opacity: 1; transform: none; }
.hbg-js .hbg-reveal-children > *.is-visible:hover { transform: translateY(-4px); }
.block-editor-page .hbg-reveal, .block-editor-page .hbg-reveal-children > *, .editor-styles-wrapper .hbg-reveal, .editor-styles-wrapper .hbg-reveal-children > * { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.hbg-js .hbg-reveal, .hbg-js .hbg-reveal-children > * { opacity: 1; transform: none; }
	.hbg-marquee__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; gap: 1rem 2rem; }
	.wp-block-cover.is-style-seams::before { display: none; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 781px) {
	.hbg-build-stack { grid-template-columns: 1fr; }
	.hbg-build-stack .hbg-build-card { min-height: 240px !important; }
	.hbg-hero { min-height: auto !important; }
	.hbg-hero__ctas .wp-block-button { flex: 1 1 100%; }
	.hbg-hero__ctas .wp-block-button__link { width: 100%; text-align: center; }
	.hbg-dyno__note { margin-left: 0; }
	.hbg-section-head { align-items: flex-start !important; }
	.hbg-footer__cols { gap: 1.5rem !important; }
}
@media (min-width: 600px) and (max-width: 781px) {
	.hbg-footer__cols { flex-wrap: wrap !important; }
	.hbg-footer__cols > .wp-block-column { flex-basis: 45% !important; }
}

/* ---------- Layout refinements ---------- */
@media (min-width: 1000px) { .hbg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .hbg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .6rem !important; } .hbg-tile { min-height: 0; padding: 1.1rem 1rem; } .hbg-tile h3 { font-size: 1.05rem !important; } [class*="hbg-ico-"].hbg-tile::before { width: 34px; height: 34px; margin-bottom: .6rem; } }
.hbg-product-card .hbg-fit-badge { align-self: flex-start; }
.hbg-product-card .wp-block-woocommerce-product-button, .hbg-product-card .wc-block-components-product-button { width: 100%; }
.hbg-product-card .wc-block-components-product-button { align-items: stretch !important; }
.hbg-product-card .wc-block-components-product-button__button { width: 100%; justify-content: center; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li { padding: 0 !important; margin: 0 !important; border: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child a { border-bottom: 0; }
.woocommerce-account main .woocommerce { max-width: 1120px !important; }
.hbg-tune-files__list a { text-decoration: none; }
.woocommerce-account.logged-in .woocommerce { column-gap: 2rem; row-gap: 0; align-items: start; }
.woocommerce-account.logged-in .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
@media (max-width: 781px) { .woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; margin-top: 1.5rem !important; } }
.hbg-actions .wp-block-search__inside-wrapper { background: transparent !important; }
.hbg-cat-list li.wc-block-product-categories-list-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(44, 44, 52, .6); }
.hbg-cat-list li.wc-block-product-categories-list-item > a { border: 0; flex: 1; }
.hbg-cat-list li.wc-block-product-categories-list-item > ul { flex-basis: 100%; }
.hbg-header__cta .wp-block-button__link { font-size: .95rem; }

/* Explicit grid columns (WordPress "grid" layout leaves empty tracks on wide screens). */
.hbg-cards, .hbg-steps, .hbg-stages, .hbg-platforms, .hbg-gallery, .hbg-perks__grid, .hbg-stats__grid { grid-template-columns: repeat(var(--hbg-cols, 3), minmax(0, 1fr)) !important; }
.hbg-cards--4, .hbg-services, .hbg-steps:not(.hbg-steps--6), .hbg-perks__grid, .hbg-stats__grid { --hbg-cols: 4; }
@media (max-width: 1099px) { .hbg-cards--4, .hbg-steps:not(.hbg-steps--6), .hbg-perks__grid, .hbg-stats__grid, .hbg-cards, .hbg-steps, .hbg-platforms, .hbg-gallery, .hbg-stages { --hbg-cols: 2; } }
@media (max-width: 640px) { .hbg-cards, .hbg-cards--4, .hbg-steps, .hbg-steps:not(.hbg-steps--6), .hbg-stages, .hbg-gallery, .hbg-perks__grid { --hbg-cols: 1; } .hbg-platforms { --hbg-cols: 1; } .hbg-stats__grid { --hbg-cols: 2; } .hbg-stat__num { font-size: 2.6rem; } }
.page-template-page-narrow .wp-block-post-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important; margin-top: 2.2rem; }
.page-template-page-narrow .wp-block-post-content { font-size: 1.05rem; }

/* ==========================================================================
   Refresh 2026-11: taller logo, readable dropdowns, HBG standard, motion FX
   ========================================================================== */

/* Logo fills the header bar */
.hbg-header__bar { padding-top: .2rem; padding-bottom: .2rem; }
.hbg-brand .wp-block-site-logo img { width: 380px; max-width: 380px; }
.hbg-scrolled .hbg-brand .wp-block-site-logo img { max-width: 260px; }
@media (max-width: 1250px) { .hbg-brand .wp-block-site-logo img { max-width: 300px; } .hbg-scrolled .hbg-brand .wp-block-site-logo img { max-width: 240px; } }
@media (max-width: 600px) { .hbg-brand .wp-block-site-logo img { max-width: 215px; } .hbg-scrolled .hbg-brand .wp-block-site-logo img { max-width: 180px; } }
@media (max-width: 380px) { .hbg-brand .wp-block-site-logo img { max-width: 180px; } .hbg-scrolled .hbg-brand .wp-block-site-logo img { max-width: 160px; } }

/* Dropdown menus: light text on the dark panel */
.hbg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--hbg-text) !important; }
.hbg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.hbg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible,
.hbg-nav .hbg-mega > .wp-block-navigation__submenu-container > :last-child .wp-block-navigation-item__content { color: var(--hbg-red) !important; }
@media (max-width: 599px) {
	.hbg-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--hbg-muted) !important; }
}
@media (min-width: 600px) {
	.hbg-nav .has-child > .wp-block-navigation__submenu-container { transform: translateY(12px); transition: opacity .25s ease, transform .35s var(--hbg-ease), visibility .25s ease !important; }
	.hbg-nav .has-child:hover > .wp-block-navigation__submenu-container,
	.hbg-nav .has-child:focus-within > .wp-block-navigation__submenu-container,
	.hbg-nav .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container { transform: none; }
}

/* The HBG standard (replaces the numbers strip) */
.hbg-standard { position: relative; overflow: hidden; }
.hbg-standard::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 90% at 90% 0%, rgba(200, 16, 46, .18), transparent 70%); }
.hbg-standard > * { position: relative; }
.hbg-standard__head { gap: 1rem 3rem; margin-bottom: var(--wp--preset--spacing--40) !important; }
.hbg-standard__head h2 { margin: .3rem 0 0; font-style: italic; }
.hbg-standard__lead { max-width: 420px; margin: 0; }
.hbg-standard__grid { gap: 1.1rem !important; }
.hbg-standard__item {
	position: relative; padding: 1.6rem 1.4rem 1.5rem; border: 1px solid var(--hbg-line); border-radius: 4px; overflow: hidden;
	background: linear-gradient(160deg, var(--hbg-carbon-2), var(--hbg-black));
	transition: transform .35s var(--hbg-ease), border-color .35s, box-shadow .35s, opacity .8s var(--hbg-ease);
}
.hbg-standard__item::before {
	content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; pointer-events: none;
	background: linear-gradient(90deg, var(--hbg-red), rgba(255, 43, 43, 0));
	transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--hbg-ease) .3s;
}
.hbg-standard__item.is-visible::before, html:not(.hbg-js) .hbg-standard__item::before { transform: scaleX(1); }
.hbg-standard__item:hover { border-color: rgba(255, 43, 43, .6); box-shadow: 0 0 0 1px rgba(255, 43, 43, .35), 0 18px 50px -18px rgba(255, 43, 43, .55); }
.hbg-standard__num {
	font-family: var(--hbg-cond); font-weight: 800; font-style: italic; font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; margin: 0 0 .7rem;
	color: transparent; -webkit-text-stroke: 1.5px var(--hbg-red); text-shadow: 0 0 28px rgba(255, 43, 43, .3); transition: color .35s;
}
.hbg-standard__item:hover .hbg-standard__num { color: var(--hbg-red); }
.hbg-standard__item h3 { margin: 0 0 .4rem; }
.hbg-standard__item p:last-child { margin: 0; }
@media (max-width: 640px) { .hbg-standard__grid { --hbg-cols: 1; } .hbg-standard__num { font-size: 2.8rem; } }

/* Scroll progress line under the header */
.hbg-progress {
	position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; z-index: 3; pointer-events: none;
	transform-origin: left; transform: scaleX(var(--hbg-progress, 0));
	background: linear-gradient(90deg, var(--hbg-deep-red), var(--hbg-red) 70%, #ff8a8a);
	box-shadow: 0 0 12px rgba(255, 43, 43, .8);
}

/* Opening "ignition" (first page of each visit only) */
html.hbg-intro body::before, html.hbg-intro body::after {
	content: ""; position: fixed; left: 0; right: 0; height: 50.5vh; z-index: 100000; pointer-events: none; background-color: #0a0a0b;
}
html.hbg-intro body::before {
	top: 0;
	background-image: linear-gradient(90deg, rgba(255, 43, 43, 0), var(--hbg-red) 25%, #fff 50%, var(--hbg-red) 75%, rgba(255, 43, 43, 0));
	background-position: center bottom; background-repeat: no-repeat; background-size: 0% 2px;
	animation: hbg-ignite .5s .05s var(--hbg-ease) forwards, hbg-gate-up .75s .6s cubic-bezier(.75, 0, .2, 1) forwards;
}
html.hbg-intro body::after { bottom: 0; animation: hbg-gate-down .75s .6s cubic-bezier(.75, 0, .2, 1) forwards; }
@keyframes hbg-ignite { to { background-size: 100% 2px; } }
@keyframes hbg-gate-up { to { transform: translateY(-101%); } }
@keyframes hbg-gate-down { to { transform: translateY(101%); } }
html.hbg-intro-run .hbg-hero__kicker { animation-delay: .8s; }
html.hbg-intro-run .hbg-hero__title { animation-delay: .9s; }
html.hbg-intro-run .hbg-hero__lead { animation-delay: 1.15s; }
html.hbg-intro-run .hbg-hero__ctas { animation-delay: 1.3s; }
html.hbg-intro-run .hbg-hero__finder { animation-delay: 1.45s; }

/* Hero: embers, cursor glow, parallax */
.hbg-hero { overflow: hidden; }
.hbg-hero > .wp-block-cover__inner-container { position: relative; z-index: 3; }
.hbg-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.hbg-hero-glow {
	position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s;
	background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 43, 43, .15), rgba(255, 43, 43, 0) 65%);
}
.hbg-hero-glow.is-on { opacity: 1; }
.hbg-hero .wp-block-cover__image-background { will-change: transform; }

/* Section headings wipe in */
.hbg-js .hbg-wipe { clip-path: inset(-20% 100% -30% -2%); transition: clip-path 1.1s var(--hbg-ease); }
.hbg-js .hbg-wipe.is-visible { clip-path: inset(-20% -5% -30% -2%); }
.hbg-js .hbg-wipe.is-done { clip-path: none; }

/* 3D tilt + glare on cards (mouse only) */
.hbg-tilt { position: relative; }
.hbg-tilt.is-tilting {
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px) !important;
	transition: transform .12s linear, border-color .35s, box-shadow .35s !important;
}
.hbg-glare {
	position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
	background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .10), rgba(255, 43, 43, .06) 35%, rgba(255, 43, 43, 0) 60%);
}
.hbg-tilt.is-tilting .hbg-glare { opacity: 1; }

/* Button shine */
.wp-block-button__link { position: relative; overflow: hidden; isolation: isolate; }
.wp-block-button__link::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; z-index: -1; pointer-events: none;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
	transform: skewX(-20deg); transition: left .7s var(--hbg-ease);
}
.wp-block-button__link:hover::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
	html.hbg-intro body::before, html.hbg-intro body::after, .hbg-embers, .hbg-hero-glow, .wp-block-button__link::after { display: none; }
	.hbg-js .hbg-wipe { clip-path: none; }
}

/* Keep the header on screen while scrolling (the template-part wrapper is the sticky box) */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.wp-site-blocks > header.wp-block-template-part .hbg-header { top: 0 !important; }
.hbg-promo { max-height: 4em; transition: max-height .3s var(--hbg-ease), padding .3s, opacity .3s, margin .3s; }
.hbg-scrolled .hbg-promo { margin-top: 0; max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; opacity: 0; }
/* Nudge the header logo up a little */
.hbg-brand .wp-block-site-logo { position: relative; top: -5px; }
@media (max-width: 600px) { .hbg-brand .wp-block-site-logo { top: -3px; } }


/* ===== Arabic / RTL (TranslatePress) ===== */
/* Arabic letters use Cairo; Latin keeps Barlow. Same family names, Arabic unicode range only. */
@font-face{font-family:"Barlow";src:url(/wp-content/uploads/fonts/cairo-arabic-wght-normal.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC;}
@font-face{font-family:"Barlow Condensed";src:url(/wp-content/uploads/fonts/cairo-arabic-wght-normal.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC;}
html[lang|="ar"] body *{letter-spacing:0 !important;font-style:normal !important;}
html[lang|="ar"] :is(h1,h2,h3,h4,.wp-block-heading){line-height:1.3 !important;}
html[lang|="ar"] body{line-height:1.75;}
html[dir="rtl"] .hbg-hero__title{animation-name:hbg-slide-rtl;}
@keyframes hbg-slide-rtl{from{opacity:0;transform:translateX(60px);clip-path:inset(-20% -5% -20% 100%);}to{opacity:1;transform:none;clip-path:inset(-20% -5% -20% -5%);}}
html[dir="rtl"].hbg-js .hbg-wipe,html[dir="rtl"] .hbg-js .hbg-wipe{clip-path:inset(-20% -2% -30% 100%);}
html[dir="rtl"].hbg-js .hbg-wipe.is-visible,html[dir="rtl"] .hbg-js .hbg-wipe.is-visible{clip-path:inset(-20% -5% -30% -2%);}
html[dir="rtl"].hbg-js .hbg-wipe.is-done,html[dir="rtl"] .hbg-js .hbg-wipe.is-done{clip-path:none;}

/* Phone numbers and emails always read left-to-right on Arabic pages */
html[dir="rtl"] a[href^="tel:"], html[dir="rtl"] a[href^="mailto:"], html[dir="rtl"] .hbg-ltr { direction: ltr; unicode-bidi: isolate; }


/* ---------- Performance fixes (2026-11-14) ---------- */
/* Embers canvas: plain compositing instead of a blend mode over the whole hero. */
.hbg-embers { mix-blend-mode: normal; }
/* Newsletter box: solid see-through background instead of a live backdrop blur. */
.hbg-newsletter__box { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 20, 24, 0.94); }
/* WhatsApp pulse: a scaling ring (GPU only) instead of animating box-shadow every frame. */
.hbg-wa { animation: none !important; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.7); }
.hbg-wa::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgb(37, 211, 102); animation: hbg-wa-ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes hbg-wa-ring { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hbg-wa::before { animation: none; opacity: 0; } }
/* Shrinking header: switch in one step instead of re-laying out the page on every frame. */
.hbg-header__inner { transition: none; }
.hbg-brand .wp-block-site-logo img { transition: none; }
.hbg-promo { transition: opacity 0.25s; }

/* No zoom icon on the Custom Dyno Tune photo (owner request). */
.postid-22263 .woocommerce-product-gallery__trigger { display: none !important; }
/* No hover zoom on that photo either. */
.postid-22263 .woocommerce-product-gallery .zoomImg { display: none !important; }
.postid-22263 .woocommerce-product-gallery__image a { cursor: default; }

/* Variation drop-downs: full width, equal size, text not clipped. */
.variations_form table.variations { width: 100%; border-collapse: separate; border-spacing: 0 12px; margin: 0 0 8px; }
.variations_form table.variations th.label { width: 1%; padding: 16px 18px 0 0; text-align: start; white-space: nowrap; vertical-align: top; }
[dir="rtl"] .variations_form table.variations th.label { padding: 16px 0 0 18px; }
.variations_form table.variations td.value { padding: 0; }
.variations_form table.variations select { display: block; width: 100%; max-width: none; height: auto; min-height: 54px; padding-block: 14px; padding-inline: 16px 45px; line-height: 1.4; font-size: 16px; background-color: #111114; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: #fff; cursor: pointer; }
[dir="rtl"] .variations_form table.variations select { background-position: 12px 50%; }
.variations_form table.variations select:hover { border-color: rgba(255,255,255,.4); }
.variations_form table.variations select:focus { border-color: #E21B23; outline: none; box-shadow: 0 0 0 3px rgba(226,27,35,.25); }
.variations_form table.variations select option { background: #111114; color: #fff; }
.variations_form .reset_variations { display: inline-block; margin-top: 8px; font-size: .85em; }
