/* ==========================================================================
   Beatnik block layout — styles for core blocks + Beatnik patterns.
   Loaded only on the block-layout template, the products archive and in the editor.
   ========================================================================== */

:root {
	--wp--style--global--content-size: 1320px;
	--wp--style--global--wide-size: 1320px;
	--wp--style--block-gap: 1.25rem;
	--btk-measure: 46rem;
}

.btk-blocks { display: block; overflow-x: clip; background: #fff; color: var(--bt-teal-900); }
.btk-entry > * { margin-block: 0; }
/* Classic themes wrap group children in an inner container; make it layout-transparent so our grids apply to the group itself. */
.btk-blocks .wp-block-group__inner-container { display: contents; }
.btk-blocks .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: min(100% - 2 * var(--gutter), var(--wp--style--global--content-size)); max-width: none; margin-inline: auto;
}
.btk-blocks .is-layout-constrained .is-layout-constrained > * { width: 100%; }

/* Neutralise Vintech's global heading rules (capitalize / 400) inside block pages */
.btk-blocks :is(h1, h2, h3, h4, h5, h6) { text-transform: none; font-weight: 700; }
/* WordPress grid layout uses auto-fill (leaves empty tracks); use auto-fit so items fill the row */
.btk-blocks :is(.btk-grid, .btk-cases, .btk-steps) { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(var(--btk-min, 16rem), 100%), 1fr)); }
.btk-blocks .btk-cases { --btk-min: 19rem; }
.btk-blocks .btk-steps { --btk-min: 13rem; }
.btk-blocks .btk-grid:has(> .wp-block-group__inner-container > :nth-child(2):last-child) { --btk-min: 22rem; }
/* Panel boxes are white on tinted sections */
.btk-s--light .btk-panel-box, .btk-s--mint .btk-panel-box { background: #fff; }

/* ---------- Breadcrumbs ---------- */
.btk-crumbs { background: var(--bt-teal-950); color: var(--bt-grey-300); font-size: .8125rem; padding: .9rem 0 0; }
.btk-crumbs a { color: var(--bt-grey-300); text-decoration: none; }
.btk-crumbs a:hover { color: #fff; text-decoration: underline; }
.btk-crumbs .breadcrumb_last { color: #fff; }

/* ---------- Typography inside blocks ---------- */
.btk-blocks :is(h1, h2, h3, h4) { color: inherit; margin: 0; }
.btk-blocks h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.035em; }
.btk-blocks h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.03em; }
.btk-blocks h3 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.015em; }
.btk-blocks p, .btk-blocks li { font-size: 1rem; line-height: 1.65; color: inherit; margin: 0; }
.btk-blocks a:not(.wp-element-button) { color: var(--bt-green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.btk-blocks .btk-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--bt-grey-600); max-width: var(--btk-measure); }
.btk-blocks .btk-eyebrow { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--bt-green-600); }

/* ---------- Sections ---------- */
.btk-s { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.btk-s:not([class*="btk-s--"]) + .btk-s:not([class*="btk-s--"]) { padding-top: 0; }
:is(.btk-s, .btk-s > .wp-block-group__inner-container) > * + * { margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem) !important; }
.btk-s--light { background: var(--bt-grey-50); }
.btk-s--mint { background: var(--bt-mint-100); }
.btk-s--dark { background: var(--bt-teal-900); color: #fff; }
.btk-s--dark .btk-lead, .btk-s--dark p { color: var(--bt-grey-300); }
.btk-s--dark .btk-eyebrow { color: var(--bt-mint-400); }
.btk-s--dark a:not(.wp-element-button) { color: var(--bt-mint-400); }

.btk-head { display: grid; gap: .9rem; }
.btk-head h2 { max-width: 22ch; }
.btk-head.is-split { grid-template-columns: 1fr 1fr; align-items: end; }

/* ---------- Hero ---------- */
.btk-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 5vw, 7.5rem);
	background: radial-gradient(55% 80% at 85% 30%, rgba(8,126,105,.4), transparent 65%), linear-gradient(180deg, var(--bt-teal-950), var(--bt-teal-900)); }
.btk-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(169,195,188,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(169,195,188,.07) 1px, transparent 1px);
	background-size: 64px 64px; mask-image: radial-gradient(60% 80% at 75% 40%, #000 25%, transparent 75%); }
/* big decorative icon from the btk-ic-* class */
.btk-hero[class*="btk-ic-"]::after { content: ""; position: absolute; z-index: -1; right: max(4vw, calc((100vw - 1320px) / 2)); top: 50%; width: clamp(140px, 22vw, 320px); aspect-ratio: 1; translate: 0 -50%;
	background: var(--bt-mint-400); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; opacity: .16; animation: btk-float 9s var(--ease-in-out) infinite alternate; }
@keyframes btk-float { to { transform: translateY(-14px) rotate(-4deg); } }
.btk-hero__copy { display: grid; gap: 1.25rem; justify-items: start; }
.btk-hero__copy .btk-lead { max-width: 44rem; }
.btk-hero h1 { color: #fff; max-width: 18ch; }
.btk-hero .wp-block-buttons { margin-top: .75rem; }

/* ---------- Buttons (core/button) ---------- */
.btk-blocks .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.btk-blocks .wp-block-button__link {
	position: relative; display: inline-flex; align-items: center; gap: .65rem; min-height: 50px; padding: .8rem 1.35rem; border-radius: 999px;
	font-family: var(--font-heading); font-weight: 500; font-size: 1rem; line-height: 1.1; text-decoration: none;
	background: var(--bt-green-600); color: #fff; border: 1px solid transparent; overflow: hidden; isolation: isolate;
	transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base), transform var(--dur-instant) var(--ease-out);
}
.btk-blocks .wp-block-button__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bt-green-700); clip-path: circle(0% at 100% 50%); transition: clip-path var(--dur-slow) var(--ease-expo); }
.btk-blocks .wp-block-button__link::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("../img/icons/arrow.svg") center / contain no-repeat; mask: url("../img/icons/arrow.svg") center / contain no-repeat; transition: transform var(--dur-slow) var(--ease-expo); }
.btk-blocks .wp-block-button__link:hover::before { clip-path: circle(150% at 100% 50%); }
.btk-blocks .wp-block-button__link:hover::after { transform: translate(3px, -3px); }
.btk-blocks .wp-block-button__link:active { transform: scale(.97); }
.btk-blocks .is-style-outline .wp-block-button__link { background: transparent; color: var(--bt-teal-900); border-color: #B9CEC6; }
.btk-blocks .is-style-outline .wp-block-button__link::before { background: var(--bt-teal-900); }
.btk-blocks .is-style-outline .wp-block-button__link:hover { color: #fff; }
.btk-s--dark .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.32); }
.btk-s--dark .is-style-outline .wp-block-button__link::before { background: #fff; }
.btk-s--dark .is-style-outline .wp-block-button__link:hover { color: var(--bt-teal-900); }

/* ---------- Cards ---------- */
.btk-blocks .btk-grid { display: grid; gap: 1rem; }
.btk-card { position: relative; display: grid; align-content: start; gap: .6rem; padding: 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--bt-border);
	transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.btk-s--light .btk-card, .btk-s--mint .btk-card { border-color: transparent; }
.btk-s--dark .btk-card { background: rgba(255,255,255,.04); border-color: var(--color-border-dark); }
.btk-card[class*="btk-ic-"]::before { content: ""; display: block; width: 48px; height: 48px; margin-bottom: .35rem; border-radius: 13px; background: var(--bt-mint-100); transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-base); }
.btk-card[class*="btk-ic-"]::after { content: ""; position: absolute; left: calc(1.6rem + 13px); top: calc(1.6rem + 13px); width: 22px; height: 22px; pointer-events: none; background: var(--bt-green-700); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-base); }
.btk-s--dark .btk-card[class*="btk-ic-"]::before { background: rgba(61,214,163,.14); }
.btk-s--dark .btk-card[class*="btk-ic-"]::after { background: var(--bt-mint-400); }
.btk-card h3 a { color: inherit !important; text-decoration: none; }
.btk-card.is-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.btk-card p { color: var(--bt-grey-600); font-size: .96875rem; }
.btk-s--dark .btk-card p { color: var(--bt-grey-300); }
@media (hover: hover) {
	.btk-card.is-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
	.btk-card.is-link:hover::before { background: var(--bt-green-600); transform: rotate(-8deg); }
	.btk-card.is-link:hover::after { background: #fff; transform: rotate(-8deg); }
	.btk-card.is-link:hover h3 a { color: var(--bt-green-700) !important; }
}
.btk-card.is-link:focus-within { outline: 2px solid var(--bt-teal-900); outline-offset: 3px; box-shadow: 0 0 0 6px var(--bt-mint-400); }
.btk-card.is-link h3 a:focus-visible { outline: none; box-shadow: none; }

/* ---------- Evidence (case) cards ---------- */
.btk-blocks .btk-cases { display: grid; gap: 1rem; }
.btk-case { position: relative; display: grid; align-content: start; gap: .55rem; overflow: hidden; padding: 0 0 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--bt-border); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
:is(.btk-case, .btk-case > .wp-block-group__inner-container) > :not(.wp-block-image) { margin-inline: 1.6rem !important; }
.btk-case.no-img { padding-top: 1.6rem; border-top: 4px solid var(--bt-green-600); }
.btk-case .wp-block-image { margin: 0 0 .75rem; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bt-teal-900); }
.btk-case .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.btk-case__tag { font-family: var(--font-mono); font-size: .75rem !important; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-green-700) !important; }
.btk-case h3 a { color: inherit !important; text-decoration: none; }
.btk-case h3 a::after { content: ""; position: absolute; inset: 0; }
.btk-case p:not(.btk-case__tag) { color: var(--bt-grey-600); font-size: .96875rem; }
@media (hover: hover) { .btk-case:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); } .btk-case:hover img { transform: scale(1.05); } }
.btk-case:focus-within { outline: 2px solid var(--bt-teal-900); outline-offset: 3px; box-shadow: 0 0 0 6px var(--bt-mint-400); }
.btk-case h3 a:focus-visible { outline: none; box-shadow: none; }

/* ---------- Steps ---------- */
.btk-blocks .btk-steps { display: grid; gap: 1rem; counter-reset: step; }
.btk-step { position: relative; display: grid; gap: .5rem; padding: 1.5rem 1.4rem 1.6rem; border-radius: var(--radius-lg); border: 1px solid var(--bt-border); background: #fff; counter-increment: step; }
.btk-step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: .8125rem; color: var(--bt-green-600); }
.btk-step::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--bt-green-600), var(--bt-mint-400)); transform: scaleX(var(--p, .25)); transform-origin: left; transition: transform var(--dur-slow) var(--ease-expo); }
.btk-step:hover::after { --p: 1; }
.btk-step p { color: var(--bt-grey-600); font-size: .96875rem; }
.btk-s--dark .btk-step { background: rgba(255,255,255,.04); border-color: var(--color-border-dark); }
.btk-s--dark .btk-step::before { color: var(--bt-mint-400); }

/* ---------- Checklist ---------- */
.btk-blocks .btk-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .65rem 2rem; padding: 0; list-style: none; }
.btk-checks li { position: relative; padding-left: 1.9rem; }
.btk-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; background: var(--bt-green-600); -webkit-mask: url("../img/icons/check.svg") center / contain no-repeat; mask: url("../img/icons/check.svg") center / contain no-repeat; }
.btk-s--dark .btk-checks li::before { background: var(--bt-mint-400); }

/* ---------- Split rows (core/columns) ---------- */
.btk-blocks .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.btk-blocks .wp-block-column > * + * { margin-top: 1rem; }
.btk-panel-box { display: grid; align-content: start; gap: .8rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--bt-grey-50); }
.btk-note { padding: 1.1rem 1.25rem; border-left: 3px solid var(--bt-green-600); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--bt-mint-100); font-size: .9375rem !important; color: var(--bt-teal-900) !important; }
.btk-s--dark .btk-note { background: rgba(61,214,163,.08); color: #fff !important; border-color: var(--bt-mint-400); }

/* ---------- FAQ (core/details) ---------- */
.btk-faq { display: grid; gap: .6rem; }
.btk-faq .wp-block-details { max-width: 56rem; }
.btk-faq .wp-block-details { border-radius: var(--radius-md); background: #fff; border: 1px solid var(--bt-border); padding: 0; overflow: hidden; }
.btk-faq summary { position: relative; display: block; padding: 1.15rem 3.5rem 1.15rem 1.35rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.btk-faq summary::-webkit-details-marker { display: none; }
.btk-faq summary::before, .btk-faq summary::after { content: ""; position: absolute; right: 1.35rem; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--bt-green-600); transition: transform var(--dur-base) var(--ease-out); }
.btk-faq summary::after { transform: rotate(90deg); }
.btk-faq details[open] summary::after { transform: rotate(0); }
.btk-faq details > :not(summary) { padding: 0 1.35rem 1.25rem; color: var(--bt-grey-600); }
.btk-faq details[open] > :not(summary) { animation: btk-faq-in var(--dur-base) var(--ease-out); }
@keyframes btk-faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CTA band ---------- */
.btk-cta { background: radial-gradient(50% 90% at 100% 0%, rgba(61,214,163,.18), transparent 60%), var(--bt-teal-900); }
.btk-cta__inner { display: grid; gap: 1rem; justify-items: start; }
.btk-cta h2 { color: #fff; max-width: 20ch; }

/* ---------- IT ecosystem diagram ---------- */
.btk-eco { position: relative; width: min(100%, 640px); aspect-ratio: 1; margin-inline: auto !important; container-type: inline-size; }
.btk-eco__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.btk-eco__lines line, .btk-eco__lines circle { fill: none; stroke: rgba(169,195,188,.35); stroke-width: .3; stroke-dasharray: 1 1.4; }
.btk-eco__lines line { animation: btk-dash 3s linear infinite; }
@keyframes btk-dash { to { stroke-dashoffset: -4.8; } }
.btk-eco__hub { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 30cqi; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: .2rem;
	background: radial-gradient(circle at 30% 25%, #1f5a5a, var(--bt-teal-900) 70%); border: 1px solid rgba(61,214,163,.5); box-shadow: 0 0 0 12px rgba(61,214,163,.05), 0 30px 60px -20px rgba(0,0,0,.6); color: #fff; }
.btk-eco__hub strong { font-family: var(--font-heading); font-size: clamp(1.1rem, 4.6cqi, 1.75rem); letter-spacing: -0.02em; }
.btk-eco__hub span:last-child { font-size: clamp(.7rem, 2.3cqi, .875rem); color: var(--bt-grey-300); }
.btk-eco__hub-ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--bt-mint-400); animation: btk-ping 3.2s var(--ease-out) infinite; }
@keyframes btk-ping { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.btk-eco__nodes { position: absolute; inset: 0; margin: 0 !important; padding: 0; list-style: none; }
.btk-eco__nodes li { position: absolute; left: 50%; top: 50%; --a: calc(-90deg + var(--i) * 360deg / var(--n));
	transform: translate(-50%, -50%) rotate(var(--a)) translate(38cqi) rotate(calc(-1 * var(--a))); }
.btk-eco__nodes a { display: grid; justify-items: center; gap: .35rem; width: 22cqi; text-align: center; text-decoration: none; color: #fff !important; font-family: var(--font-heading); font-weight: 500; font-size: clamp(.72rem, 2.35cqi, .9375rem); line-height: 1.2; }
.btk-eco__nodes .btk-i { width: 12cqi; height: 12cqi; max-width: 58px; max-height: 58px; padding: 3cqi; border-radius: 50%; box-sizing: border-box; color: var(--bt-mint-400); background: var(--bt-teal-950); border: 1px solid var(--color-border-dark); transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-base), color var(--dur-base); }
.btk-eco__nodes a:hover .btk-i, .btk-eco__nodes a:focus-visible .btk-i { transform: scale(1.12); background: var(--bt-green-600); color: #fff; }
@media (max-width: 560px) {
	.btk-eco { aspect-ratio: auto; container-type: normal; }
	.btk-eco__lines, .btk-eco__hub-ring { display: none; }
	.btk-eco__hub { position: static; translate: none; width: auto; aspect-ratio: auto; border-radius: var(--radius-lg); padding: 1.1rem; margin-bottom: .75rem; }
	.btk-eco__nodes { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
	.btk-eco__nodes li { position: static; transform: none; }
	.btk-eco__nodes a { width: auto; min-height: 44px; grid-auto-flow: column; justify-content: start; align-items: center; text-align: left; padding: .65rem .75rem; border-radius: var(--radius-md); background: rgba(255,255,255,.05); font-size: .875rem; }
	.btk-eco__nodes .btk-i { width: 34px; height: 34px; padding: 8px; }
}

/* ---------- Products archive ---------- */
.btk-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.btk-pcard { position: relative; display: grid; align-content: start; gap: .7rem; padding: 2rem; border-radius: var(--radius-xl); color: #fff; background: radial-gradient(120% 100% at 100% 0%, #1d5b55 0%, var(--bt-teal-900) 60%); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.btk-pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(11,34,39,.8); }
.btk-pcard__logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--bt-teal-900); font-family: var(--font-heading); font-weight: 900; font-size: 1.5rem; overflow: hidden; }
.btk-pcard__logo img { width: 100%; height: 100%; object-fit: contain; }
.btk-pcard__cat { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-mint-400); }
.btk-pcard :is(h2, h3) { font-size: var(--fs-h3); color: #fff; margin: 0; }
.btk-pcard :is(h2, h3) a { color: inherit !important; text-decoration: none; }
.btk-pcard :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.btk-pcard p { color: var(--bt-grey-300); }
.btk-pcard__more { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-heading); font-weight: 500; color: var(--bt-mint-400); }
.btk-pcard:focus-within { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--bt-mint-400); }

/* ---------- Scroll reveal (only when JS is present; site.js adds .is-in) ---------- */
.js .btk-blocks :is(.btk-s:not(.btk-hero), .btk-s:not(.btk-hero) > .wp-block-group__inner-container) > :not(.wp-block-group__inner-container) { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .btk-blocks :is(.btk-s.is-in, .btk-s.is-in > .wp-block-group__inner-container) > :not(.wp-block-group__inner-container) { opacity: 1; transform: none; }
.js .btk-blocks .btk-s.is-in > .wp-block-group__inner-container > *:nth-child(2) { transition-delay: 80ms; }
.js .btk-blocks .btk-s.is-in > .wp-block-group__inner-container > *:nth-child(3) { transition-delay: 160ms; }

@media (max-width: 720px) { .btk-head.is-split { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
	.btk-hero::after, .btk-eco__lines line, .btk-eco__hub-ring { animation: none !important; }
	.js .btk-blocks :is(.btk-s, .btk-s > .wp-block-group__inner-container) > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.btk-ic-arrow-right { --ic: url("../img/icons/arrow-right.svg"); }
.btk-ic-arrow { --ic: url("../img/icons/arrow.svg"); }
.btk-ic-bank { --ic: url("../img/icons/bank.svg"); }
.btk-ic-book { --ic: url("../img/icons/book.svg"); }
.btk-ic-briefcase { --ic: url("../img/icons/briefcase.svg"); }
.btk-ic-building { --ic: url("../img/icons/building.svg"); }
.btk-ic-calendar { --ic: url("../img/icons/calendar.svg"); }
.btk-ic-cart { --ic: url("../img/icons/cart.svg"); }
.btk-ic-case { --ic: url("../img/icons/case.svg"); }
.btk-ic-check { --ic: url("../img/icons/check.svg"); }
.btk-ic-chevron { --ic: url("../img/icons/chevron.svg"); }
.btk-ic-chip { --ic: url("../img/icons/chip.svg"); }
.btk-ic-close { --ic: url("../img/icons/close.svg"); }
.btk-ic-code { --ic: url("../img/icons/code.svg"); }
.btk-ic-design { --ic: url("../img/icons/design.svg"); }
.btk-ic-facebook { --ic: url("../img/icons/facebook.svg"); }
.btk-ic-folder { --ic: url("../img/icons/folder.svg"); }
.btk-ic-grid { --ic: url("../img/icons/grid.svg"); }
.btk-ic-handshake { --ic: url("../img/icons/handshake.svg"); }
.btk-ic-help { --ic: url("../img/icons/help.svg"); }
.btk-ic-info { --ic: url("../img/icons/info.svg"); }
.btk-ic-layers { --ic: url("../img/icons/layers.svg"); }
.btk-ic-link { --ic: url("../img/icons/link.svg"); }
.btk-ic-linkedin { --ic: url("../img/icons/linkedin.svg"); }
.btk-ic-mail { --ic: url("../img/icons/mail.svg"); }
.btk-ic-menu { --ic: url("../img/icons/menu.svg"); }
.btk-ic-mobile { --ic: url("../img/icons/mobile.svg"); }
.btk-ic-ngo { --ic: url("../img/icons/ngo.svg"); }
.btk-ic-phone { --ic: url("../img/icons/phone.svg"); }
.btk-ic-pin { --ic: url("../img/icons/pin.svg"); }
.btk-ic-server { --ic: url("../img/icons/server.svg"); }
.btk-ic-shield { --ic: url("../img/icons/shield.svg"); }
.btk-ic-signal { --ic: url("../img/icons/signal.svg"); }
.btk-ic-spark { --ic: url("../img/icons/spark.svg"); }
.btk-ic-star { --ic: url("../img/icons/star.svg"); }
.btk-ic-store { --ic: url("../img/icons/store.svg"); }
.btk-ic-team { --ic: url("../img/icons/team.svg"); }
.btk-ic-web { --ic: url("../img/icons/web.svg"); }
.btk-ic-whatsapp { --ic: url("../img/icons/whatsapp.svg"); }

/* Evidence cards: children use side margins, so they must not also be width:100% */
.btk-blocks .btk-case .is-layout-constrained > * { width: auto; }
/* Breadcrumb links: comfortable target size (WCAG 2.5.8) */
.btk-crumbs a, .btk-crumbs .breadcrumb_last { display: inline-block; padding-block: .35rem; }

/* Nested groups: children align left inside their parent (only the outer section centres content) */
.btk-blocks .is-layout-constrained .is-layout-constrained > * { margin-inline: 0; }
/* Balanced card rows: 3/6/9 items → 3 columns; 5 items → 5 columns (desktop) */
.btk-blocks .btk-grid:has(> .wp-block-group__inner-container > :nth-child(3n):last-child) { --btk-min: 21rem; }
.btk-blocks .btk-grid:has(> .wp-block-group__inner-container > :nth-child(5):last-child) { --btk-min: 14rem; }

/* Vintech pads #pxl-main for its old overlay header; block pages start right under the new header */
body.btk-block-layout #pxl-main, body.post-type-archive-beatnik_product #pxl-main { padding-top: 0; }
/* Specific widths must out-rank the generic constrained-layout rule */
.btk-blocks .btk-hero h1 { max-width: 18ch; }
.btk-blocks .is-layout-constrained > .btk-eco { width: min(100% - 2 * var(--gutter), 620px); }
.btk-eco__nodes .btk-i { width: clamp(40px, 10cqi, 58px); height: clamp(40px, 10cqi, 58px); padding: clamp(9px, 2.4cqi, 14px); max-width: none; max-height: none; }
.btk-blocks .btk-crumbs a { color: var(--bt-grey-300); }
.btk-blocks .btk-crumbs a:hover { color: #fff; }

/* Contrast (WCAG AA): green labels on mint use the darker green; product gradients stay ≥ 4.5:1 for small text */
.btk-blocks .btk-s--mint .btk-eyebrow { color: var(--bt-green-700); }
.btk-pcard { background: radial-gradient(120% 100% at 100% 0%, var(--bt-teal-800) 0%, var(--bt-teal-900) 60%); }
@media (max-width: 720px) { .btk-hero[class*="btk-ic-"]::after { display: none; } }

/* "More" link under a section (e.g. View all services →) */
.btk-blocks .btk-more a { display: inline-flex; align-items: center; gap: .45rem; padding-block: .35rem; font-family: var(--font-heading); font-weight: 500; text-decoration: none; color: var(--bt-green-700); background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-slow) var(--ease-expo); }
.btk-blocks .btk-more a::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("../img/icons/arrow-right.svg") center / contain no-repeat; mask: url("../img/icons/arrow-right.svg") center / contain no-repeat; transition: transform var(--dur-base) var(--ease-out); }
.btk-blocks .btk-more a:hover { background-size: 100% 1px; }
.btk-blocks .btk-more a:hover::after { transform: translateX(4px); }
.btk-s--dark .btk-more a { color: var(--bt-mint-400); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.btk-blocks .btk-contact { display: grid !important; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: start; }
.btk-contact__aside, .btk-contact__form { display: grid; gap: .9rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--bt-border); }
.btk-contact__aside { background: var(--bt-teal-900); border-color: var(--bt-teal-900); color: #fff; }
.btk-contact__aside .btk-eyebrow { color: var(--bt-mint-400); }
.btk-contact__aside p { color: var(--bt-grey-300); }
.btk-contact__aside h3 { margin-top: 1rem !important; padding-top: 1.25rem; border-top: 1px solid var(--color-border-dark); font-size: 1.125rem; color: #fff; }
.btk-blocks .btk-contact__h { font-size: var(--fs-h3); }
.btk-contact__aside .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.32); }
.btk-contact__aside .is-style-outline .wp-block-button__link::before { background: #fff; }
.btk-contact__aside .is-style-outline .wp-block-button__link:hover { color: var(--bt-teal-900); }

/* WhatsApp button (WhatsApp brand green kept recognisable; white text 4.5:1 on #128C7E? → use #0E7A6E for AA) */
.btk-wa { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 54px; padding: .8rem 1.5rem; border-radius: 999px; font-family: var(--font-heading); font-weight: 700; font-size: 1.0625rem; text-decoration: none !important; transition: transform var(--dur-instant) var(--ease-out), background-color var(--dur-base), box-shadow var(--dur-base); }
.btk-wa .btk-i { width: 22px; height: 22px; }
.btk-wa--primary { background: #0E7A6E; color: #fff !important; box-shadow: 0 10px 24px -12px rgba(14,122,110,.8); }
.btk-wa--primary:hover { background: #0B6459; box-shadow: 0 14px 28px -12px rgba(14,122,110,.9); }
.btk-wa--outline { border: 1px solid currentColor; color: inherit; }
.btk-wa:active { transform: scale(.97); }
.btk-contact__aside .btk-wa { width: 100%; }

/* Contact details list */
.btk-cdetails { display: grid; gap: .25rem; margin: 0; }
.btk-cdetails__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--color-border-dark); }
.btk-cdetails__row:last-child { border-bottom: 0; }
.btk-cdetails dt { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-grey-300); }
.btk-cdetails dt .btk-i { width: 16px; height: 16px; color: var(--bt-mint-400); }
.btk-cdetails dd { margin: 0; color: #fff; }
.btk-blocks .btk-cdetails dd a { color: #fff; text-decoration-color: rgba(255,255,255,.4); display: inline-block; padding-block: .2rem; }
.btk-blocks .btk-cdetails dd a:hover { color: var(--bt-mint-400); }

/* Enquiry form (Contact Form 7) */
.btk-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btk-form { display: grid; gap: 1rem; }
.btk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btk-blocks .btk-field { display: grid; gap: .4rem; margin: 0; }
.btk-field label { font-family: var(--font-heading); font-weight: 500; font-size: .9375rem; color: var(--bt-teal-900); }
.btk-req { color: var(--bt-error, #B42318); }
.btk-form .wpcf7-form-control-wrap { display: block; }
.btk-form :is(input[type=text], input[type=email], input[type=tel], select, textarea) {
	width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 12px; border: 1px solid #74918A; background: #fff; color: var(--bt-teal-900);
	font: inherit; font-size: 1rem; box-shadow: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.btk-form textarea { min-height: 150px; resize: vertical; }
.btk-form select { appearance: none; background-image: url("../img/icons/chevron.svg"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px; padding-right: 2.75rem; }
.btk-form :is(input, select, textarea):hover { border-color: var(--bt-grey-600); }
.btk-form :is(input, select, textarea):focus-visible { outline: none; border-color: var(--bt-green-600); box-shadow: 0 0 0 4px rgba(8,126,105,.2); }
.btk-form [aria-invalid="true"] { border-color: #B42318 !important; }
.btk-form .wpcf7-not-valid-tip { display: block; margin-top: .35rem; font-size: .875rem; color: #B42318; }
.btk-blocks .btk-form__note { font-size: .875rem; color: var(--bt-grey-600); }
.btk-form .btk-submit { display: inline-flex; align-items: center; min-height: 54px; padding: .8rem 1.75rem; border: 0; border-radius: 999px; background: var(--bt-green-600); color: #fff; font-family: var(--font-heading); font-weight: 500; font-size: 1.0625rem; cursor: pointer; transition: background-color var(--dur-base), transform var(--dur-instant); }
.btk-form .btk-submit:hover { background: var(--bt-green-700); }
.btk-form .btk-submit:active { transform: scale(.97); }
.btk-form .btk-submit:disabled { opacity: .6; cursor: progress; }
.btk-form .wpcf7-spinner { margin: 0 .75rem; }
.btk-blocks .wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid; font-size: .9375rem; }
.btk-blocks .wpcf7 form.sent .wpcf7-response-output { border-color: #067647; background: #ECFDF3; color: #05603A; }
.btk-blocks .wpcf7 form.invalid .wpcf7-response-output, .btk-blocks .wpcf7 form.unaccepted .wpcf7-response-output { border-color: #B54708; background: #FFFAEB; color: #93370D; }
.btk-blocks .wpcf7 form.failed .wpcf7-response-output, .btk-blocks .wpcf7 form.spam .wpcf7-response-output { border-color: #B42318; background: #FEF3F2; color: #912018; }

@media (max-width: 980px) { .btk-blocks .btk-contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .btk-form__row { grid-template-columns: 1fr; } .btk-cdetails__row { grid-template-columns: 1fr; gap: .15rem; } .btk-form .btk-submit { width: 100%; justify-content: center; } }
