/*
Theme Name: betahard
Theme URI: https://betahard.com
Author: betahard
Description: Dark monochrome theme built around the betahard tree mark. Mobile-first, no page builder, FR primary / EN via Polylang, RTL-ready.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: betahard
*/

/* ---------- 0. Self-hosted variable fonts (no third-party request) + metric-matched fallbacks (no layout shift) ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("assets/fonts/inter.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 600 800;
	font-display: swap;
	src: url("assets/fonts/manrope.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial"), local("Helvetica Neue"), local("Roboto");
	size-adjust: 107%;
	ascent-override: 90%;
	descent-override: 22%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Manrope Fallback";
	src: local("Arial"), local("Helvetica Neue"), local("Roboto");
	size-adjust: 104%;
	ascent-override: 92%;
	descent-override: 24%;
	line-gap-override: 0%;
}

/* ---------- 1. Design tokens — "Monochrome" (black, charcoal, white, one mint accent) ---------- */
:root {
	--bh-bg: #0A0A0A;
	--bh-bg-2: #111111;
	--bh-bg-3: #181818;
	--bh-bg-4: #202020;
	--bh-border: #2A2A2A;
	--bh-border-strong: #3A3A3A;
	--bh-text: #F5F5F5;
	--bh-text-2: #D4D4D4;
	--bh-muted: #A3A3A3;
	--bh-accent: #8FE3B4;
	--bh-accent-ink: #062B18;
	--bh-wa: #25D366;
	--bh-wa-ink: #06260F;
	--bh-radius: 14px;
	--bh-radius-lg: 22px;
	--bh-shadow: 0 10px 40px rgba(0, 0, 0, .45);
	--bh-max: 1160px;
	--bh-font-head: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--bh-font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--bh-safe-bottom: env(safe-area-inset-bottom, 0px);
	color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bh-bg); }
body {
	margin: 0;
	background: var(--bh-bg);
	color: var(--bh-text);
	font-family: var(--bh-font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--bh-accent); text-underline-offset: 3px; }
a:hover { color: #B6F0D0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--bh-accent);
	outline-offset: 3px;
	border-radius: 6px;
}
h1, h2, h3, h4 { font-family: var(--bh-font-head); color: #fff; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { background: var(--bh-bg-3); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; z-index: 999; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.bh-container { width: min(100% - 32px, var(--bh-max)); margin-inline: auto; }
.bh-section { padding: clamp(56px, 8vw, 104px) 0; }
.bh-section--surface { background: var(--bh-bg-2); border-top: 1px solid var(--bh-border); border-bottom: 1px solid var(--bh-border); }
.bh-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--bh-font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bh-accent); margin-bottom: 14px; }
.bh-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--bh-accent); border-radius: 2px; }
.bh-lead { font-size: 1.125rem; color: var(--bh-text-2); max-width: 60ch; }
.bh-section-head { max-width: 720px; margin-bottom: 36px; }
.bh-section-head .bh-lead { color: var(--bh-muted); }

/* ---------- 3. Buttons ---------- */
.bh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
	font-family: var(--bh-font-head); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.bh-btn:hover { transform: translateY(-1px); }
.bh-btn:active { transform: translateY(0); }
.bh-btn--primary { background: #fff; color: #0A0A0A; }
.bh-btn--primary:hover { background: #E8E8E8; color: #0A0A0A; }
.bh-btn--primary::after { content: "→"; font-weight: 800; transition: transform .15s ease; }
.bh-btn--primary:hover::after { transform: translateX(3px); }
.bh-btn--ghost { background: transparent; color: #fff; border-color: var(--bh-border-strong); }
.bh-btn--ghost:hover { background: var(--bh-bg-3); color: #fff; border-color: #555; }
.bh-btn--wa { background: var(--bh-wa); color: var(--bh-wa-ink); }
.bh-btn--wa:hover { background: #3FE07A; color: var(--bh-wa-ink); }
.bh-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- 4. Header / navigation ---------- */
.bh-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--bh-border); }
.bh-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.bh-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--bh-font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.bh-logo img, .bh-logo .custom-logo { height: 38px; width: auto; display: block; }
.bh-logo__text { color: #fff; }
.bh-logo__text span { color: var(--bh-accent); }
.bh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.bh-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--bh-text-2); text-decoration: none; font-weight: 600; font-size: .94rem; }
.bh-nav a:hover, .bh-nav .current-menu-item > a, .bh-nav .current_page_item > a { background: var(--bh-bg-3); color: #fff; }
.bh-header__cta { display: flex; align-items: center; gap: 10px; }
.bh-header__cta .bh-btn { min-height: 42px; padding: 8px 18px; font-size: .94rem; }
.bh-lang { font-size: .8rem; font-weight: 700; color: var(--bh-text-2); text-decoration: none; padding: 7px 11px; border: 1px solid var(--bh-border-strong); border-radius: 999px; letter-spacing: .06em; }
.bh-lang:hover { color: #fff; border-color: #666; }
.bh-menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--bh-bg-3); border: 1px solid var(--bh-border-strong); border-radius: 10px; color: #fff; cursor: pointer; padding: 0; }
.bh-menu-toggle svg { width: 22px; height: 22px; }
.bh-menu-toggle .bh-ico-close { display: none; }
.bh-menu-toggle[aria-expanded="true"] .bh-ico-open { display: none; }
.bh-menu-toggle[aria-expanded="true"] .bh-ico-close { display: block; }

/* ---------- 5. Hero ---------- */
/* Glow lives in the background (fixed geometry), not in a sized pseudo-element: no layout shift when fonts load. */
.bh-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0; border-bottom: 1px solid var(--bh-border); background: radial-gradient(640px 420px at 18% 0%, rgba(143, 227, 180, .13), transparent 70%) no-repeat var(--bh-bg); }
.bh-hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }
.bh-hero h1 { max-width: 16ch; }
.bh-hero .bh-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.bh-hero__trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--bh-muted); font-size: .92rem; }
.bh-hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.bh-hero__trust li::before { content: "✓"; color: var(--bh-accent); font-weight: 800; }
.bh-hero__panel { position: relative; background: linear-gradient(180deg, var(--bh-bg-3), var(--bh-bg-2)); border: 1px solid var(--bh-border); border-radius: var(--bh-radius-lg); padding: 28px; box-shadow: var(--bh-shadow); overflow: hidden; }
.bh-hero__panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 80% 0%, rgba(255,255,255,.06), transparent 60%); pointer-events: none; }
.bh-hero__art { display: block; width: 150px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 0 28px rgba(143, 227, 180, .25)); }
.bh-hero__panel h3, .bh-hero__panel-title { font-family: var(--bh-font-head); font-weight: 700; font-size: 1.02rem; color: var(--bh-accent); letter-spacing: .02em; margin: 0 0 .6em; }
.bh-hero__panel ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.bh-hero__panel li { position: relative; padding-inline-start: 26px; color: var(--bh-text-2); }
.bh-hero__panel li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 2px; background: var(--bh-accent); border-radius: 2px; }

/* ---------- 6. Cards, steps, badges ---------- */
.bh-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.bh-card { position: relative; background: var(--bh-bg-3); border: 1px solid var(--bh-border); border-radius: var(--bh-radius); padding: 26px; height: 100%; transition: border-color .2s ease, transform .2s ease; }
.bh-card:hover { border-color: #444; transform: translateY(-2px); }
.bh-card__icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #0A0A0A; display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; font-family: var(--bh-font-head); font-size: .95rem; }
.bh-card p { color: var(--bh-muted); }
.bh-card p:last-child { margin-bottom: 0; }
.bh-card a.bh-more { font-weight: 700; text-decoration: none; color: #fff; }
.bh-card a.bh-more:hover { color: var(--bh-accent); }
.bh-steps { counter-reset: step; display: grid; gap: 22px; }
.bh-step { position: relative; padding-inline-start: 60px; }
.bh-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--bh-border-strong); color: var(--bh-accent); display: grid; place-items: center; font-weight: 800; font-family: var(--bh-font-head); font-size: .9rem; }
.bh-step p { color: var(--bh-muted); margin: 0; }
.bh-badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.bh-badges li { padding: 9px 16px; border: 1px solid var(--bh-border-strong); border-radius: 999px; font-size: .9rem; color: var(--bh-text-2); background: var(--bh-bg-2); }

/* ---------- 7. FAQ ---------- */
.bh-faq details { border-bottom: 1px solid var(--bh-border); padding: 18px 0; }
.bh-faq details:first-child { border-top: 1px solid var(--bh-border); }
.bh-faq summary { cursor: pointer; font-family: var(--bh-font-head); font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bh-faq summary::-webkit-details-marker { display: none; }
.bh-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--bh-accent); flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bh-border-strong); display: grid; place-items: center; }
.bh-faq details[open] summary::after { content: "−"; }
.bh-faq details p { margin: 12px 0 0; color: var(--bh-muted); max-width: 62ch; }

/* ---------- 8. CTA band, forms, footer ---------- */
.bh-cta-band { position: relative; overflow: hidden; background: #fff; color: #0A0A0A; border-radius: var(--bh-radius-lg); padding: clamp(30px, 5vw, 56px); display: grid; gap: 22px; }
.bh-cta-band h2 { color: #0A0A0A; margin: 0 0 6px; }
.bh-cta-band p { margin: 0; color: #4A4A4A; max-width: 56ch; }
.bh-cta-band .bh-btn--primary { background: #0A0A0A; color: #fff; }
.bh-cta-band .bh-btn--primary:hover { background: #262626; }
.bh-form-wrap { background: var(--bh-bg-3); border: 1px solid var(--bh-border); border-radius: var(--bh-radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--bh-shadow); }
.bh-footer { background: #050505; color: var(--bh-muted); padding: 64px 0 28px; font-size: .95rem; border-top: 1px solid var(--bh-border); }
.bh-footer h2, .bh-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.bh-footer a { color: var(--bh-text-2); text-decoration: none; }
.bh-footer a:hover { color: #fff; }
.bh-footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.bh-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bh-footer__bottom { border-top: 1px solid var(--bh-border); margin-top: 44px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- 9. WPForms (dark) ---------- */
.bh-form-wrap .wpforms-container, .bh-form-wrap .wpforms-container-full {
	margin: 0;
	/* WPForms "modern" markup colours its labels through these variables; without them labels render near-black on the dark card. */
	--wpforms-label-color: #FFFFFF;
	--wpforms-label-sublabel-color: #A3A3A3;
	--wpforms-label-error-color: #FF8A8A;
	--wpforms-field-text-color: #FFFFFF;
	--wpforms-field-background-color: #0F0F0F;
	--wpforms-field-border-color: #3A3A3A;
	--wpforms-field-border-radius: 10px;
	--wpforms-button-background-color: #FFFFFF;
	--wpforms-button-text-color: #0A0A0A;
	--wpforms-button-border-radius: 999px;
	--wpforms-field-size-input-height: 48px;
	--wpforms-field-size-font-size: 16px;
}
.bh-form-wrap .wpforms-field-label, .bh-form-wrap label.wpforms-field-label { color: #fff !important; font-weight: 600; font-size: .95rem; }
.bh-form-wrap .wpforms-field-sublabel, .bh-form-wrap .wpforms-field-description { color: var(--bh-muted) !important; }
.bh-form-wrap .wpforms-required-label { color: var(--bh-accent); }
.bh-form-wrap input[type="text"], .bh-form-wrap input[type="email"], .bh-form-wrap input[type="tel"], .bh-form-wrap input[type="number"],
.bh-form-wrap select, .bh-form-wrap textarea {
	width: 100%; background: #0F0F0F !important; color: #fff !important; border: 1px solid var(--bh-border-strong) !important; border-radius: 10px !important;
	padding: 12px 14px !important; font-size: 16px !important; min-height: 48px; max-width: 100%;
}
.bh-form-wrap input:focus, .bh-form-wrap select:focus, .bh-form-wrap textarea:focus { border-color: var(--bh-accent) !important; box-shadow: 0 0 0 3px rgba(143,227,180,.18) !important; }
.bh-form-wrap .wpforms-submit, .bh-form-wrap button[type="submit"] {
	width: 100%; background: #fff !important; color: #0A0A0A !important; border: 0 !important; border-radius: 999px !important; min-height: 52px; font-family: var(--bh-font-head); font-weight: 800 !important; font-size: 1rem !important; cursor: pointer;
}
.bh-form-wrap .wpforms-submit:hover { background: #E8E8E8 !important; }
.bh-form-wrap .wpforms-confirmation-container-full { background: rgba(143,227,180,.12); border: 1px solid var(--bh-accent); color: #fff; border-radius: 12px; }
.bh-form-wrap .wpforms-error, .bh-form-wrap label.wpforms-error { color: #FF8A8A !important; }

/* ---------- 10. Cookie notice ---------- */
.bh-consent { position: fixed; inset-inline: 12px; bottom: calc(12px + var(--bh-safe-bottom)); z-index: 100; max-width: 720px; margin-inline: auto; background: var(--bh-bg-3); border: 1px solid var(--bh-border-strong); border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.6); padding: 18px; display: none; }
.bh-consent.is-visible { display: block; }
.bh-consent p { margin: 0 0 12px; font-size: .92rem; color: var(--bh-text-2); }
.bh-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bh-consent .bh-btn { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.bh-consent .bh-btn--primary::after { content: none; }

/* ---------- 11. Blog / content pages ---------- */
.bh-prose { max-width: 740px; }
.bh-prose h2 { margin-top: 1.7em; font-size: 1.5rem; }
.bh-prose p, .bh-prose li { color: var(--bh-text-2); }
.bh-prose ul, .bh-prose ol { padding-inline-start: 1.2em; }
.bh-prose strong { color: #fff; }
.bh-post-card { border: 1px solid var(--bh-border); border-radius: var(--bh-radius); overflow: hidden; background: var(--bh-bg-3); transition: border-color .2s ease; }
.bh-post-card:hover { border-color: #444; }
.bh-post-card img { display: block; width: 100%; height: auto; }
.bh-post-card__body { padding: 22px; }
.bh-post-card h2 a { color: #fff; text-decoration: none; }
.bh-post-card h2 a:hover { color: var(--bh-accent); }
.bh-post-card p { color: var(--bh-muted); }
.bh-meta { color: var(--bh-muted); font-size: .88rem; }
.bh-page .bh-section + .bh-section.bh-section--surface { margin-top: 0; }

/* ---------- 12. Floating WhatsApp (desktop) + mobile action bar ---------- */
.bh-wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; background: var(--bh-wa); color: var(--bh-wa-ink); text-decoration: none; font-weight: 800; padding: 13px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(37,211,102,.35); font-family: var(--bh-font-head); }
.bh-wa-float:hover { color: var(--bh-wa-ink); background: #3FE07A; }
.bh-wa-float svg { width: 22px; height: 22px; fill: currentColor; }
.bh-actionbar { display: none; }

/* ---------- 13. Responsive ---------- */
@media (min-width: 720px) {
	.bh-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.bh-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.bh-cta-band { grid-template-columns: 1fr auto; align-items: center; }
	.bh-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 960px) {
	.bh-hero__grid { grid-template-columns: 1.15fr .85fr; }
	.bh-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.bh-hero__art { width: 190px; }
}
@media (max-width: 959px) {
	.bh-menu-toggle { display: inline-flex; }
	.bh-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #0D0D0D; border-bottom: 1px solid var(--bh-border); padding: 10px 16px 18px; box-shadow: var(--bh-shadow); }
	.bh-nav.is-open { display: block; }
	.bh-nav ul { flex-direction: column; gap: 0; }
	.bh-nav a { padding: 14px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--bh-border); border-radius: 0; }
	.bh-nav li:last-child a { border-bottom: 0; }
	.bh-header__cta .bh-btn--primary { display: none; }
}
@media (max-width: 719px) {
	body { padding-bottom: calc(72px + var(--bh-safe-bottom)); }
	.bh-wa-float { display: none; }
	.bh-actionbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 95; padding: 10px 12px calc(10px + var(--bh-safe-bottom)); background: rgba(10,10,10,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--bh-border); }
	.bh-actionbar .bh-btn { min-height: 48px; padding: 10px 14px; font-size: .95rem; }
	.bh-actionbar .bh-btn--primary::after { content: none; }
	.bh-actionbar .bh-btn svg { width: 20px; height: 20px; fill: currentColor; }
	.bh-consent { bottom: calc(80px + var(--bh-safe-bottom)); }
	.bh-btn-row .bh-btn { width: 100%; }
	.bh-hero__panel { padding: 22px; }
	.bh-cta-band .bh-btn-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bh-btn, .bh-card, .bh-post-card { transition: none; }
}
