/* Beatnik global base: typography system applied site-wide (incl. legacy Elementor content),
   focus, buttons, utilities. Tokens come from tokens.css. */

:root {
	--font-heading: "Satoshi", "Satoshi Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-body: "Albert Sans", "Albert Sans Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--btk-header-h: 76px;
	--btk-hero-top: clamp(2.75rem, 1.75rem + 3vw, 5rem); /* one header→hero rhythm for every template (44 → 80px) */
	/* Elementor global typography → new families */
	--e-global-typography-primary-font-family: "Satoshi";
	--e-global-typography-secondary-font-family: "Albert Sans";
	--e-global-typography-text-font-family: "Albert Sans";
	--e-global-typography-accent-font-family: "Satoshi";
}

body.btk-v2 {
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.btk-v2 :is(button, input, select, textarea) { font-family: var(--font-body); }

/* Headings everywhere (theme + Elementor) use the heading face. */
body.btk-v2 :is(h1, h2, h3, h4, h5, h6),
body.btk-v2 .elementor-heading-title,
body.btk-v2 [class*="pxl-heading"] :is(h1, h2, h3, h4, h5, h6, .pxl-item--title),
body.btk-v2 .pxl-item--title {
	font-family: var(--font-heading) !important; /* overrides beatnik-site-fixes.php !important Rubik rule */
	letter-spacing: -0.02em;
	text-wrap: balance;
}
body.btk-v2 p { text-wrap: pretty; }

/* Focus: two-tone ring that works on light and dark. */
body.btk-v2 :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--bt-teal-900);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--bt-mint-400);
	border-radius: 6px;
}
body.btk-v2 :is(.btk-header, .btk-footer, .btk-mobile) :where(a, button, summary):focus-visible { outline-color: #fff; }

.btk-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; }
.btk-skip { position: absolute; left: 1rem; top: -5rem; z-index: 100000; padding: .75rem 1rem; border-radius: 8px; background: #fff; color: var(--bt-teal-900); font-weight: 700; text-decoration: none; }
.btk-skip:focus { top: 1rem; }
.btk-container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.btk-i { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: middle; }
.btk-eyebrow { display: inline-block; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--color-action); }
.btk-badge { display: inline-block; margin-left: .4em; padding: .1em .45em; border-radius: 4px; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; background: #FEF0C7; color: #93370D; }

/* ---------- Buttons (shared) ---------- */
.btk-btn {
	--btn-bg: var(--color-action); --btn-fg: #fff; --btn-bg-hover: var(--color-action-hover); --btn-border: transparent;
	position: relative; display: inline-flex; align-items: center; gap: .7rem; min-height: 50px; padding: .45rem .45rem .45rem 1.3rem;
	font-family: var(--font-heading); font-weight: 500; font-size: 1rem; line-height: 1; letter-spacing: -0.005em;
	color: var(--btn-fg) !important; background: var(--btn-bg); border: 1px solid var(--btn-border); border-radius: 999px;
	text-decoration: none !important; cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
	transition: color var(--dur-base) var(--ease-out), transform var(--dur-instant) var(--ease-out);
}
.btk-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-bg-hover); clip-path: circle(0% at calc(100% - 24px) 50%); transition: clip-path var(--dur-slow) var(--ease-expo); }
.btk-btn__label { position: relative; display: inline-block; overflow: hidden; }
.btk-btn__label > span { display: block; transition: transform var(--dur-slow) var(--ease-expo); }
.btk-btn__label > span + span { position: absolute; inset: 0; transform: translateY(110%); }
.btk-btn__icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.16); flex: none; }
.btk-btn__icon .btk-i { width: 15px; height: 15px; transition: transform var(--dur-slow) var(--ease-expo); }
.btk-btn__icon .btk-i + .btk-i { position: absolute; transform: translate(-180%, 180%); }
@media (hover: hover) {
	.btk-btn:hover::before { clip-path: circle(150% at calc(100% - 24px) 50%); }
	.btk-btn:hover .btk-btn__label > span { transform: translateY(-110%); }
	.btk-btn:hover .btk-btn__label > span + span { transform: none; }
	.btk-btn:hover .btk-btn__icon .btk-i:first-child { transform: translate(180%, -180%); }
	.btk-btn:hover .btk-btn__icon .btk-i + .btk-i { transform: none; }
}
.btk-btn:active { transform: scale(.97); }
.btk-btn--small { min-height: 44px; padding-left: 1.1rem; font-size: .9375rem; }
.btk-btn--small .btk-btn__icon { width: 32px; height: 32px; }
.btk-btn--block { display: flex; justify-content: space-between; width: 100%; }

@media (prefers-reduced-motion: reduce) {
	.btk-btn::before, .btk-btn__label > span, .btk-btn__icon .btk-i { transition: none !important; }
}

/* ---------- Overlay header: dark page tops extend under the header ---------- */
body.btk-header-overlay :is(.btk-blocks > .btk-crumbs, .btk-crumbs--legacy) { padding-top: calc(var(--btk-header-h) + .9rem); }
body.btk-header-overlay .btk-blocks .btk-entry > .btk-home-hero { padding-top: calc(var(--btk-header-h) + var(--btk-hero-top)); }
body.btk-header-overlay .btk-phero { padding-top: var(--btk-header-h); }
/* Block pages that open with a dark hero: header, breadcrumb and hero share ONE surface. The breadcrumb keeps its
   place in the flow (fixed height) but turns transparent; the hero is pulled up underneath it and pads by the same
   amount, so its gradient, grid and background photo start at the very top of the page. */
body.btk-header-overlay { --btk-crumbs-h: calc(var(--btk-header-h) + 2.8rem); }
body.btk-header-overlay .btk-blocks:has(> .btk-entry > :is(.btk-hero, .btk-cs-hero):first-child) > .btk-crumbs {
	position: relative; z-index: 3; box-sizing: border-box; height: var(--btk-crumbs-h); background: transparent; }
body.btk-header-overlay .btk-blocks > .btk-crumbs + .btk-entry > :is(.btk-hero, .btk-cs-hero):first-child {
	margin-top: calc(-1 * var(--btk-crumbs-h)) !important; padding-top: calc(var(--btk-crumbs-h) + var(--btk-hero-top)); }
body.btk-header-overlay.btk-legacy--own-hero #pxl-main .elementor > .e-con:first-child { padding-top: 0 !important; }

/* ---------- Consistent header → hero spacing ---------- */
.btk-blocks .btk-hero, .btk-blocks .btk-hero--split { padding-top: var(--btk-hero-top); }
.btk-phero .btk-phero__inner { padding-top: var(--btk-hero-top); }
/* Elementor heroes (no breadcrumb): the top hero's own padding is replaced by the shared value; inner wrappers start flush */
body.btk-header-overlay.btk-legacy--own-hero #pxl-main .elementor > .e-con:first-child :is(#beatnik-sa-hero, header.bt-hero, div[class*="-section"][class*="-hero"]) { padding-top: var(--btk-hero-top) !important; }
body.btk-header-overlay.btk-legacy--own-hero #pxl-main .elementor > .e-con:first-child :is(#beatnik-sa-hero, header.bt-hero, div[class*="-section"][class*="-hero"]) > :first-child { padding-top: 0 !important; margin-top: 0 !important; }

/* Breadcrumb bar on Elementor pages (block pages style it in blocks.css) */
.btk-crumbs--legacy { position: relative; z-index: 1; padding: .9rem 0 0; background: var(--bt-teal-950); color: var(--bt-grey-300); font-size: .8125rem; }
body.btk-header-band .btk-crumbs--legacy { background: transparent; padding-top: 0; margin-top: calc(-1 * var(--btk-band-gap, clamp(1rem, .5rem + 1.5vw, 2rem))); }
.btk-crumbs--legacy a { display: inline-block; padding-block: .35rem; color: var(--bt-grey-300); text-decoration: none; }
.btk-crumbs--legacy a:hover { color: #fff; text-decoration: underline; }
.btk-crumbs--legacy .breadcrumb_last { color: #fff; }
/* Elementor hero grids: copy starts at the top on desktop (consistent with the block heroes) */
@media (min-width: 1081px) {
	body.btk-header-overlay.btk-legacy--own-hero #pxl-main .elementor > .e-con:first-child :is(#beatnik-sa-hero, header.bt-hero, div[class*="-section"][class*="-hero"]) [class*="hero-grid"],
	body.btk-header-overlay.btk-legacy--own-hero #pxl-main .elementor > .e-con:first-child :is(#beatnik-sa-hero, header.bt-hero, div[class*="-section"][class*="-hero"]) :has(> :is(h1, [class*="copy"], [class*="content"])):has(> [class*="visual"], > .btk-elm-illus, > [class*="board"], > [class*="map"], > [class*="studio"], > [class*="window"]) { align-items: start !important; }
}
/* Light-top (band) pages: the wrappers around the page's own title card add 65–140px of stacked top padding/margin.
   Only the top spacing of those wrappers is removed; the card keeps its own padding and sits on the dark band. */
body.btk-header-band #pxl-main .elementor > .e-con:first-child,
body.btk-header-band #pxl-main .elementor > .e-con:first-child :is(div, section, article):has(header h1) { padding-top: 0 !important; margin-top: 0 !important; }
body.btk-header-band #pxl-main { padding-top: 0 !important; }
/* Block split heroes: copy starts at the top on desktop, like every other hero */
@media (min-width: 1081px) { .btk-blocks .btk-hero__grid { align-items: start !important; } .btk-blocks .btk-hero__grid .btk-illus { margin-top: -1rem; } }
body.btk-header-band .btk-crumbs--legacy { margin-bottom: max(.75rem, calc(var(--btk-hero-top) - 3rem)); }
/* Band pages with a Vintech sidebar: widgets become white cards so nothing sits directly on the dark band */
body.btk-header-band #pxl-sidebar-area .widget { padding: 1.5rem; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); }
body.btk-header-band.single-product #pxl-main h1 { color: #fff !important; }

/* ---------- One palette: theme (Vintech) and Elementor kit colour variables mapped to the Beatnik palette ---------- */
body.btk-v2 {
	--secondary-color: #102F35; --secondary-color-rgb: 16,47,53;
	--third-color: #526B64; --third-color-rgb: 82,107,100;
	--four-color: #087E69; --four-color-rgb: 8,126,105;
	--link-color: #06684F; --link-color-hover: #087E69; --link-color-active: #087E69;
	--gradient-color-from: #06684F; --gradient-color-to: #087E69;
	--border-color: #DCE8E1;
	--e-global-color-primary: #087E69; --e-global-color-secondary: #102F35; --e-global-color-text: #526B64; --e-global-color-accent: #087E69;
}
