/* HamzaBG Mods - shared storefront layer.
 *
 * Tokens, shell, buttons, section heads and the product card. Every redesigned
 * surface (home, cars, tools, about, product) reads from this file so a card
 * cannot drift between pages.
 *
 * Loaded before the page stylesheet: page files only carry layout that is
 * unique to that page.
 */

:root {
	--hb-ink: #14161b;
	--hb-ink-soft: #33363d;
	--hb-muted: #5d626b;
	--hb-faint: #8a8f98;
	/* The light field is the same grey the homepage poster paints (#f2f2f2).
	   Cards, panels and fields keep --hb-card white so they still lift. */
	--hb-bg: #f2f2f2;
	--hb-soft: #e9eaed;
	--hb-soft-2: #e1e2e6;
	--hb-card: #ffffff;
	--hb-line: #e6e8ee;
	--hb-line-strong: #d5d8e1;
	--hb-accent: #6571ff;
	--hb-accent-hi: #7a85ff;
	--hb-accent-ink: #4a55e0;
	--hb-accent-soft: #eef0ff;
	--hb-accent-line: rgba(101, 113, 255, 0.42);
	--hb-shadow: 0 1px 2px rgba(16, 18, 24, 0.04), 0 8px 24px -18px rgba(16, 18, 24, 0.28);
	--hb-shadow-lift: 0 2px 4px rgba(16, 18, 24, 0.05), 0 26px 50px -28px rgba(16, 18, 24, 0.42);
	--hb-radius: 16px;
	--hb-radius-lg: 22px;
	--hb-font: "Proxima Nova", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

	/* Button system. One shape, one state model, five surfaces.
	   Reference pairing: SellAuth indigo gradient for primary, Prism's
	   ink/paper inverse for secondary, hairline glass for outline. */
	--hb-btn-radius: 12px;
	--hb-btn-radius-sm: 10px;
	--hb-btn-primary: #6571ff;
	--hb-btn-primary-hi: #7a85ff;
	--hb-btn-primary-lo: #515df3;
	--hb-btn-primary-ink: #ffffff;
	--hb-btn-ink-bg: #14161b;
	--hb-btn-ink-bg-hi: #23262d;
	--hb-btn-ink: #ffffff;
	--hb-btn-soft-bg: #eef0ff;
	--hb-btn-soft-ink: #4a55e0;
	--hb-btn-danger: #e5484d;
	--hb-btn-danger-hi: #f2555a;
}

/* The theme's bootstrap sheet paints <body> #fff and body.dark #151515!important.
   Every light page field (legal, account, 404, custom work) reads from here. */
body:not(.dark) {
	background-color: #f2f2f2;
}

body.dark {
	--hb-ink: #f3f4f6;
	--hb-ink-soft: #d6d8dd;
	--hb-muted: rgba(255, 255, 255, 0.66);
	--hb-faint: rgba(255, 255, 255, 0.46);
	--hb-bg: #121316;
	--hb-soft: #1a1c21;
	--hb-soft-2: #202329;
	--hb-card: #181a1f;
	--hb-line: #272a31;
	--hb-line-strong: #363a43;
	--hb-accent-soft: rgba(101, 113, 255, 0.16);
	--hb-accent-line: rgba(122, 133, 255, 0.46);
	--hb-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 26px -20px rgba(0, 0, 0, 0.8);
	--hb-shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
	--hb-btn-ink-bg: #f2f2f2;
	--hb-btn-ink-bg-hi: #ffffff;
	--hb-btn-ink: #14161b;
	--hb-btn-soft-bg: rgba(101, 113, 255, 0.16);
	--hb-btn-soft-ink: #b9c0ff;
}

/* ------------------------------------------------------------------ shell */

.hbg-ui {
	font-family: var(--hb-font);
	color: var(--hb-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.hbg-shell {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
}

.hbg-shell--narrow {
	max-width: 860px;
}

/* ---------------------------------------------------------------- buttons
 *
 * One system for every storefront action. Shape: 12px radius, 44px standard
 * height, 600 weight, one lift/active curve. The variant picks the surface,
 * the size modifier picks the scale.
 *
 *   primary    SellAuth indigo gradient, the single main action per surface
 *   secondary  solid ink in light, solid paper in dark (the Prism pair)
 *   ghost      card surface with a hairline border, the second action
 *   soft       tinted indigo, low-priority inline action
 *   danger     destructive action
 *
 * Page sheets (page-tool, page-custom-work, page-about, page-account) keep
 * their legacy class names but read from the same tokens, so no surface can
 * drift into a different shape.
 */

.hbg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--hb-btn-radius);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.18s ease,
		background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

.hbg-btn svg {
	width: 16px;
	height: 16px;
	flex: none;
}

/* primary */
.hbg-btn--primary {
	background-color: var(--hb-btn-primary);
	background-image: linear-gradient(180deg, var(--hb-btn-primary-hi), var(--hb-btn-primary) 55%, var(--hb-btn-primary-lo));
	color: var(--hb-btn-primary-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(33, 38, 120, 0.18),
		0 1px 2px rgba(16, 18, 24, 0.1), 0 8px 18px -10px rgba(101, 113, 255, 0.65);
}

.hbg-btn--primary:hover {
	transform: translateY(-1px);
	color: var(--hb-btn-primary-ink);
	filter: saturate(1.06) brightness(1.03);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(33, 38, 120, 0.18),
		0 3px 6px rgba(16, 18, 24, 0.12), 0 14px 26px -12px rgba(101, 113, 255, 0.75);
}

.hbg-btn--primary:active {
	transform: translateY(0);
	filter: none;
	box-shadow: inset 0 2px 6px rgba(24, 28, 90, 0.24), 0 1px 2px rgba(16, 18, 24, 0.12);
}

/* secondary - ink button in light, paper button in dark */
.hbg-btn--secondary {
	background-color: var(--hb-btn-ink-bg);
	background-image: none;
	border-color: transparent;
	color: var(--hb-btn-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(16, 18, 24, 0.12),
		0 8px 18px -12px rgba(16, 18, 24, 0.55);
}

.hbg-btn--secondary:hover {
	transform: translateY(-1px);
	background-color: var(--hb-btn-ink-bg-hi);
	color: var(--hb-btn-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 3px 8px rgba(16, 18, 24, 0.14),
		0 14px 26px -14px rgba(16, 18, 24, 0.6);
}

.hbg-btn--secondary:active {
	transform: translateY(0);
	box-shadow: inset 0 2px 5px rgba(16, 18, 24, 0.2), 0 1px 2px rgba(16, 18, 24, 0.1);
}

/* outline - the second action */
.hbg-btn--ghost,
.hbg-btn--outline {
	background-color: var(--hb-card);
	background-image: none;
	border-color: var(--hb-line-strong);
	color: var(--hb-ink);
	box-shadow: 0 1px 2px rgba(16, 18, 24, 0.04);
}

.hbg-btn--ghost:hover,
.hbg-btn--outline:hover {
	transform: translateY(-1px);
	background-color: var(--hb-soft);
	border-color: color-mix(in srgb, var(--hb-ink) 22%, var(--hb-line-strong));
	color: var(--hb-ink);
	box-shadow: 0 2px 6px rgba(16, 18, 24, 0.06), 0 10px 20px -16px rgba(16, 18, 24, 0.4);
}

.hbg-btn--ghost:active,
.hbg-btn--outline:active {
	transform: translateY(0);
	background-color: var(--hb-soft-2);
	box-shadow: inset 0 1px 3px rgba(16, 18, 24, 0.08);
}

/* soft - tinted inline action */
.hbg-btn--soft {
	background-color: var(--hb-btn-soft-bg);
	background-image: none;
	border-color: transparent;
	color: var(--hb-btn-soft-ink);
	box-shadow: none;
}

.hbg-btn--soft:hover {
	transform: translateY(-1px);
	background-color: color-mix(in srgb, var(--hb-btn-soft-bg) 82%, var(--hb-btn-primary));
	color: var(--hb-btn-soft-ink);
	box-shadow: 0 6px 16px -12px rgba(101, 113, 255, 0.55);
}

.hbg-btn--soft:active {
	transform: translateY(0);
	background-color: color-mix(in srgb, var(--hb-btn-soft-bg) 72%, var(--hb-btn-primary));
	box-shadow: none;
}

/* danger */
.hbg-btn--danger {
	background-color: var(--hb-btn-danger);
	background-image: linear-gradient(180deg, var(--hb-btn-danger-hi), var(--hb-btn-danger));
	color: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 1px 2px rgba(16, 18, 24, 0.1),
		0 8px 18px -10px rgba(229, 72, 77, 0.55);
}

.hbg-btn--danger:hover {
	transform: translateY(-1px);
	color: #ffffff;
	filter: saturate(1.05) brightness(1.03);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 6px rgba(16, 18, 24, 0.12),
		0 14px 26px -12px rgba(229, 72, 77, 0.65);
}

.hbg-btn--danger:active {
	transform: translateY(0);
	filter: none;
	box-shadow: inset 0 2px 6px rgba(120, 24, 28, 0.28), 0 1px 2px rgba(16, 18, 24, 0.12);
}

/* size scale */
.hbg-btn--sm {
	min-height: 36px;
	padding: 0 14px;
	border-radius: var(--hb-btn-radius-sm);
	font-size: 13px;
	gap: 6px;
}

.hbg-btn--sm svg {
	width: 14px;
	height: 14px;
}

.hbg-btn--lg {
	min-height: 50px;
	padding: 0 26px;
	font-size: 15px;
	gap: 10px;
}

.hbg-btn--lg svg {
	width: 18px;
	height: 18px;
}

.hbg-btn--block {
	width: 100%;
}

.hbg-btn--icon {
	width: 44px;
	min-height: 44px;
	padding: 0;
}

.hbg-btn[disabled],
.hbg-btn[aria-disabled="true"] {
	opacity: 0.55;
	pointer-events: none;
	box-shadow: none;
}

.hbg-btn:focus-visible {
	outline: 2px solid var(--hb-accent);
	outline-offset: 2px;
}

/* The vendored bootstrap paints every border in dark with
   `body.dark * { border-color: #292929 !important }`. Buttons own their edge,
   so restore the system's border at higher specificity instead of letting a
   filled primary pick up a grey rim. */

body.dark .hbg-btn--primary,
body.dark .hbg-btn--secondary,
body.dark .hbg-btn--soft,
body.dark .hbg-btn--danger,
body.dark .hbg-cw-btn--primary,
body.dark .hbg-cw-btn--secondary,
body.dark .hbg-cw-btn--soft,
body.dark .hbg-tp-btn--primary,
body.dark .hbg-tp-btn--secondary,
body.dark .acct-btn:not(.acct-btn--ghost),
body.dark .hbg-card-cta,
body.dark .hbg-consent-btn--primary,
body.dark .hbg-modal .button.alt,
body.dark .sh-login-popup-cta .button {
	border-color: transparent !important;
}

body.dark .hbg-btn--ghost,
body.dark .hbg-btn--outline,
body.dark .hbg-cw-btn--ghost,
body.dark .hbg-cw-btn--outline,
body.dark .hbg-tp-btn--ghost,
body.dark .hbg-tp-btn--outline,
body.dark .acct-btn--ghost,
body.dark .hbg-consent-btn:not(.hbg-consent-btn--primary),
body.dark .hbg-modal .button:not(.alt) {
	border-color: var(--hb-line-strong) !important;
}

body.dark .hbg-btn--ghost:hover,
body.dark .hbg-btn--outline:hover,
body.dark .hbg-cw-btn--ghost:hover,
body.dark .hbg-cw-btn--outline:hover,
body.dark .hbg-tp-btn--ghost:hover,
body.dark .hbg-tp-btn--outline:hover,
body.dark .acct-btn--ghost:hover,
body.dark .hbg-consent-btn:not(.hbg-consent-btn--primary):hover,
body.dark .hbg-modal .button:not(.alt):hover {
	border-color: color-mix(in srgb, var(--hb-ink) 22%, var(--hb-line-strong)) !important;
}

/* ------------------------------------------------------------- section head */

.hbg-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hb-faint);
}

.hbg-kicker::before {
	content: "";
	display: block;
	width: 22px;
	height: 1px;
	background: currentColor;
	opacity: 0.55;
}

.hbg-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 34px;
}

.hbg-section-head h2,
.hbg-h2 {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.03em;
	color: var(--hb-ink);
	text-wrap: balance;
}

.hbg-section-head p {
	margin: 12px 0 0;
	max-width: 56ch;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--hb-muted);
}

.hbg-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hb-accent-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: gap 0.2s ease;
}

.hbg-link:hover {
	color: var(--hb-accent-ink);
	gap: 9px;
}

.hbg-link svg {
	width: 14px;
	height: 14px;
}

/* ------------------------------------------------------------- trust strip */

.hbg-trustbar {
	border-bottom: 1px solid var(--hb-line);
	background: var(--hb-soft);
}

.hbg-trustbar-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
}

.hbg-trustbar-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 24px;
	border-left: 1px solid var(--hb-line);
}

.hbg-trustbar-item:first-child {
	border-left: 0;
	padding-left: 0;
}

.hbg-trustbar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--hb-accent-line);
	border-radius: 10px;
	background: var(--hb-accent-soft);
	color: var(--hb-accent-ink);
	flex: none;
}

.hbg-trustbar-icon svg {
	width: 17px;
	height: 17px;
}

.hbg-trustbar-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.35;
}

.hbg-trustbar-text strong {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--hb-ink);
}

.hbg-trustbar-text span {
	font-size: 11.5px;
	color: var(--hb-faint);
}

/* -------------------------------------------------------------- stat band */

.hbg-statband {
	border-top: 1px solid var(--hb-line);
	border-bottom: 1px solid var(--hb-line);
}

.hbg-statband-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hbg-stat {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 30px 26px;
	border-left: 1px solid var(--hb-line);
}

.hbg-stat:first-child {
	border-left: 0;
	padding-left: 0;
}

.hbg-stat strong {
	font-size: clamp(24px, 2.8vw, 34px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	color: var(--hb-ink);
}

.hbg-stat span {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--hb-faint);
}

/* ----------------------------------------------------------- filter chips */

.hbg-filterbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.hbg-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px;
	border: 1px solid var(--hb-line);
	border-radius: 9999px;
	background: var(--hb-card);
	box-shadow: var(--hb-shadow);
}

.hbg-filter {
	padding: 8px 15px;
	border: 0;
	border-radius: 9999px;
	background: transparent;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.005em;
	color: var(--hb-muted);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hbg-filter:hover {
	background: var(--hb-soft);
	color: var(--hb-ink);
}

.hbg-filter[aria-pressed="true"] {
	background: var(--hb-accent-fill);
	background-image: linear-gradient(180deg, var(--hb-btn-primary-hi), var(--hb-btn-primary));
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 8px rgba(101, 113, 255, 0.28);
}

.hbg-filter:focus-visible {
	outline: 2px solid var(--hb-accent);
	outline-offset: 2px;
}

.hbg-count {
	margin: 0;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--hb-faint);
	white-space: nowrap;
}

.hbg-count strong {
	font-weight: 600;
	color: var(--hb-ink);
}

/* ---------------------------------------------------- responsive strips */

@media (max-width: 1024px) {
	.hbg-trustbar-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hbg-trustbar-item:nth-child(3) {
		border-left: 0;
		padding-left: 0;
	}

	.hbg-trustbar-item:nth-child(n + 3) {
		border-top: 1px solid var(--hb-line);
	}
}

@media (max-width: 760px) {
	.hbg-trustbar-item {
		padding: 18px 16px;
	}

	.hbg-statband-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hbg-stat {
		padding: 22px 18px;
	}

	.hbg-stat:nth-child(3) {
		border-left: 0;
		padding-left: 0;
	}

	.hbg-stat:nth-child(n + 3) {
		border-top: 1px solid var(--hb-line);
	}

	.hbg-filterbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.hbg-filters {
		border-radius: 16px;
	}
}

@media (max-width: 460px) {
	.hbg-trustbar-grid,
	.hbg-statband-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hbg-trustbar-item {
		border-left: 0;
		padding-left: 0;
	}

	.hbg-trustbar-item + .hbg-trustbar-item {
		border-top: 1px solid var(--hb-line);
	}

	.hbg-stat {
		border-left: 0;
		padding-left: 0;
	}

	.hbg-stat + .hbg-stat {
		border-top: 1px solid var(--hb-line);
	}
}

