/* =====================================================================
   Backlink Hut — Design System
   Slate (#0F172A) + Emerald (#10B981). SaaS-inspired, no framework.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
	/* Colors */
	--bh-bg:           #ffffff;
	--bh-bg-alt:       #f8fafc;
	--bh-bg-dark:      #0f172a;
	--bh-text:         #0f172a;
	--bh-text-light:   #1e293b;
	--bh-muted:        #64748b;
	--bh-muted-light:  #94a3b8;
	--bh-border:       #e2e8f0;
	--bh-border-dark:  #cbd5e1;

	--bh-primary:      #0f172a;
	--bh-accent:       #10b981;
	--bh-accent-dark:  #059669;
	--bh-accent-soft:  #d1fae5;

	--bh-warn:         #f59e0b;
	--bh-danger:       #ef4444;

	/* Typography */
	--bh-font:         'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bh-mono:         ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--bh-size-base:    16px;
	--bh-leading:      1.6;

	/* Spacing scale (4px base) */
	--bh-1: 4px;  --bh-2: 8px;   --bh-3: 12px; --bh-4: 16px;
	--bh-5: 20px; --bh-6: 24px;  --bh-8: 32px; --bh-10: 40px;
	--bh-12: 48px; --bh-16: 64px; --bh-20: 80px; --bh-24: 96px;

	/* Radii */
	--bh-r-sm: 6px;
	--bh-r-md: 10px;
	--bh-r-lg: 16px;
	--bh-r-pill: 9999px;

	/* Shadows */
	--bh-shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
	--bh-shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -1px rgba(15,23,42,.04);
	--bh-shadow-lg: 0 10px 15px -3px rgba(15,23,42,.10), 0 4px 6px -2px rgba(15,23,42,.05);
	--bh-shadow-xl: 0 20px 25px -5px rgba(15,23,42,.12), 0 10px 10px -5px rgba(15,23,42,.04);

	/* Transitions */
	--bh-tx: 200ms ease;
	--bh-tx-slow: 400ms cubic-bezier(.2,.8,.2,1);

	/* Container */
	--bh-container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--bh-font);
	font-size: var(--bh-size-base);
	line-height: var(--bh-leading);
	color: var(--bh-text);
	background: var(--bh-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--bh-accent-dark); text-decoration: none; transition: color var(--bh-tx); }
a:hover { color: var(--bh-accent); }
ul, ol { padding-left: var(--bh-5); }

/* ---------- Accessibility ---------- */
.bh-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.bh-skip {
	position: absolute; left: -9999px; top: 0; padding: var(--bh-3) var(--bh-5);
	background: var(--bh-bg-dark); color: #fff; z-index: 999;
}
.bh-skip:focus { left: var(--bh-4); top: var(--bh-4); border-radius: var(--bh-r-md); }

/* ---------- Layout ---------- */
.bh-container { max-width: var(--bh-container); margin: 0 auto; padding: 0 var(--bh-6); }
@media (min-width: 768px) { .bh-container { padding: 0 var(--bh-8); } }

.bh-section { padding: var(--bh-16) 0; }
.bh-section--alt { background: var(--bh-bg-alt); }
.bh-section--cta {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #fff;
}
.bh-section--cta h2 { color: #fff; font-size: 36px; margin-bottom: var(--bh-3); }
.bh-section--cta p { color: rgba(255,255,255,.8); margin-bottom: var(--bh-6); }

.bh-section__head {
	max-width: 760px; margin: 0 auto var(--bh-12); text-align: center;
}
.bh-section__head h2 { font-size: 36px; line-height: 1.2; margin: 0 0 var(--bh-3); letter-spacing: -.02em; }
.bh-section__head p { color: var(--bh-muted); margin: 0; font-size: 18px; }
.bh-section__cta { text-align: center; margin-top: var(--bh-10); }

@media (max-width: 767px) {
	.bh-section { padding: var(--bh-12) 0; }
	.bh-section__head h2 { font-size: 28px; }
	.bh-section--cta h2 { font-size: 28px; }
}

.bh-grid { display: grid; gap: var(--bh-6); }
.bh-grid--2 { grid-template-columns: 1fr; }
.bh-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.bh-grid--2 { grid-template-columns: 1fr 1fr; gap: var(--bh-10); }
	.bh-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Header ---------- */
.bh-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.85);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--bh-border);
}
.bh-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 72px; gap: var(--bh-6);
}
.bh-logo { display: inline-flex; align-items: center; }
.bh-logo svg { height: 32px; width: auto; }
.bh-logo--footer svg { filter: brightness(0) invert(1); opacity: .9; }

.bh-burger {
	display: inline-flex; flex-direction: column; gap: 5px; padding: var(--bh-2);
}
.bh-burger span:not(.bh-sr) {
	width: 22px; height: 2px; background: var(--bh-text); border-radius: 2px;
	transition: transform var(--bh-tx), opacity var(--bh-tx);
}
@media (min-width: 1024px) { .bh-burger { display: none; } }

.bh-nav { display: none; }
@media (min-width: 1024px) {
	.bh-nav { display: flex; align-items: center; gap: var(--bh-6); }
	.bh-nav__list {
		display: flex; align-items: center; gap: var(--bh-6);
		list-style: none; margin: 0; padding: 0;
	}
	.bh-nav__list a {
		color: var(--bh-text); font-weight: 500; font-size: 15px;
		padding: var(--bh-2) 0; position: relative;
	}
	.bh-nav__list a:hover { color: var(--bh-accent-dark); }
}

.bh-nav.is-open {
	display: block;
	position: fixed; inset: 72px 0 0; background: var(--bh-bg);
	padding: var(--bh-6);
	border-top: 1px solid var(--bh-border);
	overflow-y: auto;
}
.bh-nav.is-open .bh-nav__list {
	display: flex; flex-direction: column; gap: var(--bh-3);
	list-style: none; margin: 0 0 var(--bh-6); padding: 0;
}
.bh-nav.is-open .bh-nav__list a {
	display: block; padding: var(--bh-3) 0; font-size: 18px; font-weight: 500; color: var(--bh-text);
	border-bottom: 1px solid var(--bh-border);
}

/* ---------- Hero ---------- */
.bh-hero {
	padding: var(--bh-20) 0 var(--bh-16);
	background: radial-gradient(ellipse at top, rgba(16,185,129,.08), transparent 60%), var(--bh-bg);
	text-align: center;
}
.bh-eyebrow {
	display: inline-block; padding: var(--bh-1) var(--bh-3);
	background: var(--bh-accent-soft); color: var(--bh-accent-dark);
	font-size: 13px; font-weight: 600; border-radius: var(--bh-r-pill);
	margin-bottom: var(--bh-5); letter-spacing: .01em;
}
.bh-hero__title {
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.1;
	letter-spacing: -.03em;
	max-width: 880px; margin: 0 auto var(--bh-5);
	font-weight: 800;
}
.bh-hero__sub {
	font-size: clamp(16px, 2vw, 20px);
	color: var(--bh-muted);
	max-width: 680px; margin: 0 auto var(--bh-8);
}
.bh-hero__ctas {
	display: flex; gap: var(--bh-3); justify-content: center; flex-wrap: wrap;
	margin-bottom: var(--bh-6);
}
.bh-hero__trust {
	font-size: 14px; color: var(--bh-muted); margin: 0;
}
.bh-hero__trust span { color: var(--bh-warn); letter-spacing: 2px; }

/* ---------- Buttons ---------- */
.bh-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: var(--bh-3) var(--bh-6);
	font-size: 15px; font-weight: 600;
	border-radius: var(--bh-r-md);
	transition: transform var(--bh-tx), background var(--bh-tx), box-shadow var(--bh-tx);
	white-space: nowrap;
}
.bh-btn--primary {
	background: var(--bh-accent); color: #fff;
	box-shadow: 0 1px 2px rgba(15,23,42,.05), inset 0 -1px 0 rgba(0,0,0,.1);
}
.bh-btn--primary:hover { background: var(--bh-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--bh-shadow-md); }
.bh-btn--ghost {
	background: transparent; color: var(--bh-text);
	border: 1px solid var(--bh-border-dark);
}
.bh-btn--ghost:hover { background: var(--bh-bg-alt); color: var(--bh-text); border-color: var(--bh-text); }

.bh-section--cta .bh-btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.bh-section--cta .bh-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Trust strip ---------- */
.bh-trust { padding: var(--bh-8) 0; background: var(--bh-bg-alt); }
.bh-trust__label {
	text-align: center; color: var(--bh-muted); font-size: 13px; font-weight: 600;
	letter-spacing: .1em; text-transform: uppercase; margin: 0 0 var(--bh-5);
}
.bh-trust__row {
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: var(--bh-8); align-items: center;
}
.bh-trust__row span {
	color: var(--bh-muted); font-weight: 600; font-size: 14px;
	opacity: .7; transition: opacity var(--bh-tx);
}
.bh-trust__row span:hover { opacity: 1; }

/* ---------- Card ---------- */
.bh-card {
	display: block;
	background: var(--bh-bg);
	border: 1px solid var(--bh-border);
	border-radius: var(--bh-r-lg);
	padding: var(--bh-6);
	transition: border-color var(--bh-tx), box-shadow var(--bh-tx), transform var(--bh-tx);
	color: var(--bh-text);
	position: relative;
}
.bh-card:hover {
	border-color: var(--bh-accent);
	box-shadow: var(--bh-shadow-lg);
	transform: translateY(-2px);
	color: var(--bh-text);
}
.bh-card h3 { margin: 0 0 var(--bh-2); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.bh-card p { margin: 0; color: var(--bh-muted); font-size: 15px; }
.bh-card__arrow {
	position: absolute; right: var(--bh-6); bottom: var(--bh-6);
	color: var(--bh-accent); font-size: 20px; transition: transform var(--bh-tx);
}
.bh-card:hover .bh-card__arrow { transform: translateX(4px); }

.bh-card--plan { text-align: center; }
.bh-card--plan h3 { margin-bottom: var(--bh-1); }
.bh-card__price { font-size: 32px; font-weight: 800; color: var(--bh-text); margin: var(--bh-2) 0; }
.bh-card--plan .bh-btn { margin-top: var(--bh-4); width: 100%; }

.bh-card--product { text-align: left; padding: var(--bh-4); }
.bh-card--product img { border-radius: var(--bh-r-md); margin-bottom: var(--bh-3); aspect-ratio: 4/3; object-fit: cover; }
.bh-card--product h3 { font-size: 16px; line-height: 1.3; }
.bh-card--product .bh-card__price { font-size: 20px; margin-top: var(--bh-2); color: var(--bh-accent-dark); }

.bh-card--nap h3 { margin-bottom: var(--bh-3); }
.bh-card--nap address { font-style: normal; color: var(--bh-muted); margin: var(--bh-3) 0; }

/* ---------- Steps ---------- */
.bh-steps {
	list-style: none; padding: 0; margin: 0;
	display: grid; gap: var(--bh-8); grid-template-columns: 1fr;
	counter-reset: bh-step;
}
@media (min-width: 768px) { .bh-steps { grid-template-columns: repeat(3, 1fr); gap: var(--bh-10); } }
.bh-steps li { text-align: center; }
.bh-steps__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: var(--bh-r-pill);
	background: var(--bh-accent-soft); color: var(--bh-accent-dark);
	font-weight: 700; font-size: 20px; margin-bottom: var(--bh-4);
}
.bh-steps h3 { margin: 0 0 var(--bh-2); font-size: 20px; }
.bh-steps p { margin: 0; color: var(--bh-muted); }

/* ---------- Breadcrumb ---------- */
.bh-breadcrumb { font-size: 14px; color: var(--bh-muted); margin: 0 0 var(--bh-5); }
.bh-breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--bh-1); }
.bh-breadcrumb li:not(:last-child)::after { content: "/"; margin: 0 var(--bh-2); color: var(--bh-border-dark); }
.bh-breadcrumb a { color: var(--bh-muted); }
.bh-breadcrumb a:hover { color: var(--bh-text); }

/* ---------- Prose (long-form content from the editor) ---------- */
.bh-prose {
	max-width: 760px; margin: 0 auto;
}
.bh-prose h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 var(--bh-6); }
.bh-prose h2 { font-size: 28px; line-height: 1.25; margin: var(--bh-12) 0 var(--bh-3); letter-spacing: -.01em; }
.bh-prose h3 { font-size: 22px; margin: var(--bh-8) 0 var(--bh-3); }
.bh-prose p { margin: 0 0 var(--bh-5); color: var(--bh-text-light); }
.bh-prose ul, .bh-prose ol { margin: 0 0 var(--bh-5); padding-left: var(--bh-6); }
.bh-prose li { margin-bottom: var(--bh-2); color: var(--bh-text-light); }
.bh-prose img, .bh-prose__img { border-radius: var(--bh-r-lg); margin: var(--bh-6) 0; }
.bh-prose blockquote {
	border-left: 4px solid var(--bh-accent); padding-left: var(--bh-5);
	font-style: italic; color: var(--bh-muted); margin: var(--bh-6) 0;
}

/* ---------- Product page ---------- */
.bh-product__media { position: sticky; top: 90px; }
.bh-product__img { border-radius: var(--bh-r-lg); width: 100%; aspect-ratio: 1; object-fit: cover; }
.bh-product__placeholder {
	display: grid; place-items: center;
	aspect-ratio: 1; background: var(--bh-bg-alt);
	border-radius: var(--bh-r-lg); border: 1px dashed var(--bh-border);
}
.bh-product__placeholder svg { opacity: .25; max-width: 60%; }
.bh-product__price { font-size: 32px; font-weight: 800; margin: var(--bh-3) 0 var(--bh-2); }
.bh-product__compare { color: var(--bh-muted); text-decoration: line-through; font-size: 18px; font-weight: 500; margin-left: var(--bh-2); }
.bh-product__delivery { color: var(--bh-muted); margin-bottom: var(--bh-5); font-size: 14px; }
.bh-product__cta { display: flex; gap: var(--bh-3); flex-wrap: wrap; margin-bottom: var(--bh-8); }

/* ---------- Footer ---------- */
.bh-footer { background: var(--bh-bg-dark); color: rgba(255,255,255,.7); padding: var(--bh-16) 0 0; margin-top: var(--bh-20); }
.bh-footer__grid {
	display: grid; gap: var(--bh-8);
	grid-template-columns: 1fr;
	padding-bottom: var(--bh-12);
	border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 768px) { .bh-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.bh-footer__col h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 var(--bh-4); }
.bh-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--bh-2); }
.bh-footer__col a { color: rgba(255,255,255,.7); font-size: 14px; }
.bh-footer__col a:hover { color: #fff; }
.bh-footer__tagline { font-size: 14px; max-width: 320px; margin: var(--bh-4) 0; color: rgba(255,255,255,.6); }
.bh-footer__nap { font-style: normal; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.6); }
.bh-footer__nap a { color: rgba(255,255,255,.85); }
.bh-footer__bar {
	padding: var(--bh-5) 0;
	font-size: 13px; color: rgba(255,255,255,.5);
}
.bh-footer__bar .bh-container {
	display: flex; flex-wrap: wrap; gap: var(--bh-4); justify-content: space-between; align-items: center;
}
.bh-footer__bar p { margin: 0; }
.bh-footer__bar ul { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--bh-5); }
.bh-footer__bar a { color: rgba(255,255,255,.5); }
.bh-footer__bar a:hover { color: #fff; }

/* ---------- Pagination ---------- */
.bh-pagination { margin-top: var(--bh-10); text-align: center; }
.bh-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 var(--bh-3);
	border-radius: var(--bh-r-md); border: 1px solid var(--bh-border);
	color: var(--bh-text); margin: 0 2px; font-weight: 500;
}
.bh-pagination .current { background: var(--bh-text); color: #fff; }

/* ---------- Lead paragraph (intro under H2 in alt sections) ---------- */
.bh-lead {
	max-width: 760px; margin: 0 auto var(--bh-10);
	font-size: 18px; line-height: 1.7; color: var(--bh-text-light);
	text-align: center;
}

/* ---------- Industries inline list ---------- */
.bh-industries {
	display: flex; flex-wrap: wrap; justify-content: center; gap: var(--bh-3);
	max-width: 920px; margin: 0 auto;
}
.bh-industries span {
	display: inline-block; padding: var(--bh-2) var(--bh-5);
	background: var(--bh-bg-alt); border: 1px solid var(--bh-border);
	border-radius: var(--bh-r-pill); font-size: 14px; font-weight: 500; color: var(--bh-text-light);
	transition: border-color var(--bh-tx), color var(--bh-tx);
}
.bh-industries span:hover { border-color: var(--bh-accent); color: var(--bh-accent-dark); }

/* ---------- Testimonial / quote card ---------- */
.bh-quote {
	background: var(--bh-bg);
	border: 1px solid var(--bh-border);
	border-radius: var(--bh-r-lg);
	padding: var(--bh-6);
	margin: 0;
	display: flex; flex-direction: column; gap: var(--bh-4);
	transition: border-color var(--bh-tx), box-shadow var(--bh-tx);
}
.bh-quote:hover { border-color: var(--bh-accent); box-shadow: var(--bh-shadow-md); }
.bh-quote p {
	margin: 0; font-size: 16px; line-height: 1.6; color: var(--bh-text);
	font-style: italic;
}
.bh-quote footer {
	font-size: 14px; color: var(--bh-muted); font-style: normal;
}
.bh-quote footer strong { color: var(--bh-text); font-weight: 600; }
.bh-quote footer span[aria-label] { color: var(--bh-warn); letter-spacing: 1px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
