/*
Theme Name: Bhava
Theme URI: https://bhava.tech
Author: Bhava Tech
Author URI: https://bhava.tech
Description: Custom block theme for Bhava Tech — technology consultancy, strategy and delivery for SMEs.
Version: 1.8.3
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bhava
*/

:root {
	--bh-ink: var(--wp--preset--color--ink, #0B1D33);
	--bh-paper: var(--wp--preset--color--paper, #F6F8FB);
	--bh-cobalt: var(--wp--preset--color--cobalt, #2F4BFF);
	--bh-sea: var(--wp--preset--color--sea, #12A5B4);
	--bh-mist: var(--wp--preset--color--mist, #E4E9F0);
	--bh-slate: var(--wp--preset--color--slate, #566579);
	--bh-line: rgba(11, 29, 51, 0.12);
	--bh-gutter: clamp(20px, 5vw, 56px);
	--bh-section: clamp(80px, 11vw, 144px);
	--bh-display: var(--wp--preset--font-family--display, Geist, "Helvetica Neue", Arial, sans-serif);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-group.bh-main > * { margin-block: 0; }
.wp-block-group.bh-grid > * { margin-block: 0; }
:focus-visible { outline: 2px solid var(--bh-cobalt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.bh-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin-inline: auto !important;
	padding-inline: var(--bh-gutter);
}

/* ---------- Buttons ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--bh-ink);
	border: 1.5px solid rgba(11, 29, 51, 0.25);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--bh-ink);
	background: transparent;
	color: var(--bh-ink);
}

/* ---------- Header ---------- */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }

.bh-header {
	position: relative;
	z-index: 0;
	border-bottom: 1px solid var(--bh-line);
}
/* Blur sits on a pseudo-element: backdrop-filter on the header itself
   would trap the full-screen mobile menu inside the header bar. */
.bh-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(246, 248, 251, 0.88);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
}
.wp-block-group.bh-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}
.bh-header__inner > * { margin-block: 0 !important; }

.bh-logo { margin: 0; font-family: var(--bh-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.bh-logo a { color: var(--bh-ink); text-decoration: none; }
.bh-nav { font-size: 0.95rem; font-weight: 500; }
.bh-nav .wp-block-navigation__container { gap: 28px; align-items: center; }
.bh-nav a { color: var(--bh-ink); text-decoration: none; }
.bh-nav .wp-block-navigation-item:not(.bh-nav__cta) > .wp-block-navigation-item__content.wp-block-navigation-item__content:hover { color: var(--bh-cobalt); }
.bh-nav .wp-block-navigation-item.bh-nav__cta { color: #fff; }
.bh-nav .bh-nav__cta > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	background: var(--bh-ink);
	color: #fff;
	padding: 0.6em 1.05em;
	border-radius: 8px;
	transition: background-color .2s ease;
}
.bh-nav .bh-nav__cta > .wp-block-navigation-item__content.wp-block-navigation-item__content:hover { background: var(--bh-cobalt); color: #fff; }

/* ---------- Hero ---------- */
.bh-hero {
	padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px);
	overflow: hidden;
	background:
		radial-gradient(55% 65% at 85% 35%, rgba(47, 75, 255, 0.09), transparent 72%);
}
.wp-block-group.bh-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.bh-hero__copy > * { margin-block: 0; }
.bh-eyebrow {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bh-slate);
	padding-bottom: 14px;
	position: relative;
	margin-bottom: 22px !important;
}
.bh-eyebrow::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 32px; height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--bh-sea), var(--bh-cobalt));
}
.bh-hero__title {
	font-size: clamp(3rem, 6.2vw, 5.5rem);
	line-height: 0.98;
	letter-spacing: -0.05em;
	font-weight: 700;
	margin: 0;
}
.bh-hero__title mark { background: transparent; color: var(--bh-cobalt); }
.bh-hero__lede {
	font-size: clamp(1.125rem, 1.4vw, 1.3rem);
	line-height: 1.55;
	color: var(--bh-slate);
	max-width: 30em;
	margin-top: 1.5rem !important;
}
.bh-hero__actions { margin-top: 2.25rem !important; }
.wp-block-button.bh-btn-dark > .wp-block-button__link { background: var(--bh-ink); color: #fff; }
.wp-block-button.bh-btn-dark > .wp-block-button__link:hover { background: var(--bh-cobalt); color: #fff; }
.wp-block-button.bh-btn-arrow > .wp-block-button__link::after { content: "\2192"; display: inline-block; margin-left: 0.6em; transition: transform .2s ease; }
.wp-block-button.bh-btn-arrow > .wp-block-button__link:hover::after { transform: translateX(3px); }

/* Insight -> Strategy -> Impact graphic */
.bh-flow { margin: 0; }
.bh-flow__stage {
	position: relative;
	width: 100%;
	aspect-ratio: 640 / 360;
	perspective: 1100px;
}
.bh-flow__dots, .bh-flow__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bh-flow__dots { z-index: 1; }
.bh-flow__line { z-index: 3; pointer-events: none; }
.bh-flow__panel {
	position: absolute;
	border-radius: 14px;
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(228, 235, 255, 0.55));
	border: 1px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 30px 60px -24px rgba(47, 75, 255, 0.28), 0 2px 6px rgba(11, 29, 51, 0.04), inset 0 0 0 1px rgba(47, 75, 255, 0.07);
	transform: rotateY(30deg);
	transform-style: preserve-3d;
	opacity: 0;
	animation: bh-panel .9s cubic-bezier(.2, .8, .2, 1) forwards;
}
.bh-flow__panel--1 { left: 21%; top: 17%; width: 27%; height: 66%; z-index: 2; animation-delay: .25s; }
.bh-flow__panel--2 { left: 46%; top: 11%; width: 28%; height: 76%; z-index: 2; animation-delay: .45s; }
.bh-flow__panel--3 { left: 71%; top: 5%;  width: 30%; height: 88%; z-index: 4; animation-delay: .65s; background: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(220, 228, 255, 0.45)); }
.bh-flow__label {
	position: absolute;
	top: 9%; left: 0; right: 0;
	text-align: center;
	font-size: clamp(8px, 0.8vw, 11px);
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--bh-ink);
	opacity: .75;
}
.bh-flow__grid { position: absolute; left: 12%; top: 20%; width: 76%; height: 72%; }
.bh-flow__orb {
	position: absolute;
	left: 50%; top: 50%;
	width: 26%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle at 34% 30%, #8EA0FF 0%, #2F4BFF 42%, #1B2ED6 78%);
	box-shadow: 0 0 0 12px rgba(47, 75, 255, 0.10), 0 0 0 26px rgba(47, 75, 255, 0.06), 0 0 50px 18px rgba(47, 75, 255, 0.35);
	animation: bh-orb 4s ease-in-out 1.8s infinite;
}
.bh-flow .dot { opacity: 0; animation: bh-fade .5s ease-out forwards; animation-delay: calc(var(--i) * 18ms); }
.bh-flow .ray { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bh-draw 1s cubic-bezier(.65, 0, .2, 1) forwards; animation-delay: calc(.3s + var(--i) * 30ms); }
.bh-flow .wave, .bh-flow .out { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bh-draw 1.2s cubic-bezier(.65, 0, .2, 1) 1s forwards; }
.bh-flow .out { animation-delay: 2.1s; animation-duration: .4s; }
.bh-flow .tip { opacity: 0; animation: bh-fade .3s ease-out 2.45s forwards; }
.bh-flow .sq { opacity: 0; animation: bh-fade .4s ease-out forwards; animation-delay: calc(1.2s + var(--i) * 40ms); }
@keyframes bh-panel { from { opacity: 0; transform: rotateY(30deg) translateY(14px); } to { opacity: 1; transform: rotateY(30deg) translateY(0); } }
@keyframes bh-orb {
	0%, 100% { box-shadow: 0 0 0 12px rgba(47, 75, 255, 0.10), 0 0 0 26px rgba(47, 75, 255, 0.06), 0 0 50px 18px rgba(47, 75, 255, 0.35); }
	50% { box-shadow: 0 0 0 16px rgba(47, 75, 255, 0.12), 0 0 0 32px rgba(47, 75, 255, 0.05), 0 0 64px 24px rgba(47, 75, 255, 0.42); }
}
@keyframes bh-fade { to { opacity: 1; } }
@keyframes bh-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bh-flow *, .bh-flow__panel { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
}

/* Process cards */
.bh-process { padding-block: clamp(8px, 2vw, 24px) var(--bh-section); }
.wp-block-group.bh-pcards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px;
}
.wp-block-group.bh-pcard {
	position: relative;
	background: #fff;
	border: 1px solid var(--bh-line);
	border-radius: 18px;
	padding: clamp(24px, 2.6vw, 32px);
	box-shadow: 0 20px 40px -28px rgba(11, 29, 51, 0.25);
}
.bh-pcard > * { margin-block: 0; }
.bh-pcard:not(:last-child)::after {
	content: "\2192";
	position: absolute;
	right: -40px; top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	color: var(--bh-slate);
}
.bh-pcard__num {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--bh-cobalt);
	min-height: 48px;
	position: relative;
}
.bh-pcard__num::after {
	content: "";
	position: absolute;
	right: 0; top: 0;
	width: 48px; height: 48px;
	border-radius: 12px;
	background-color: rgba(47, 75, 255, 0.08);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px;
}
.bh-pcard--insight .bh-pcard__num::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4BFF' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.bh-pcard--strategy .bh-pcard__num::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.bh-pcard--impact .bh-pcard__num::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232F4BFF'%3E%3Crect x='4' y='14' width='4' height='6' rx='1'/%3E%3Crect x='10' y='9' width='4' height='11' rx='1'/%3E%3Crect x='16' y='4' width='4' height='16' rx='1'/%3E%3C/svg%3E"); }
.bh-pcard h3 {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 10px 0 12px;
}
.bh-pcard > p:not(.bh-pcard__num) { color: var(--bh-slate); font-size: 1rem; }
.bh-checks { list-style: none; padding: 0; margin-top: 20px !important; }
.bh-checks li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 10px;
	color: var(--bh-slate);
	font-size: 0.975rem;
}
.bh-checks li::before {
	content: "";
	position: absolute;
	left: 0; top: 2px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--bh-cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.bh-timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px;
	margin-top: 40px;
}
.bh-timeline__track {
	position: absolute;
	top: 10px;
	left: calc((100% - 112px) / 6);
	right: calc((100% - 112px) / 6);
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, #8FE0E7, #6F8BFF 50%, var(--bh-cobalt));
}
.bh-timeline__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bh-timeline__node { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #8FE0E7; box-sizing: border-box; }
.bh-timeline__step:nth-child(3) .bh-timeline__node { background: #6F8BFF; border-color: #fff; box-shadow: 0 0 0 3px rgba(111, 139, 255, 0.35); }
.bh-timeline__step:nth-child(4) .bh-timeline__node { background: var(--bh-cobalt); border-color: #fff; box-shadow: 0 0 0 3px rgba(47, 75, 255, 0.35); }
.bh-timeline__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bh-ink); }
.bh-timeline__step:nth-child(4) .bh-timeline__label { color: var(--bh-cobalt); }

/* ---------- Section heads ---------- */
.wp-block-group.bh-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: end;
}
.bh-head h2 { margin: 0; max-width: 12em; }
.wp-block-group.bh-head.bh-head--stacked { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.bh-head p { margin: 0; color: var(--bh-slate); max-width: 36em; font-size: 1.125rem; }

/* ---------- Approach ---------- */
.bh-approach {
	background: #fff;
	border-block: 1px solid var(--bh-line);
	padding-block: var(--bh-section);
}
.wp-block-group.bh-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 48px);
	margin-top: clamp(48px, 6vw, 80px) !important;
}
.bh-step { position: relative; padding-top: 44px; border-top: 1px solid var(--bh-line); }
.bh-step > * { margin-block: 0; }
.bh-step__num {
	position: absolute;
	top: -20px; left: 0;
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid var(--bh-ink);
	font-family: var(--bh-display);
	font-weight: 500;
	font-size: 0.95rem;
	margin: 0 !important;
}
.bh-step h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; margin: 0 0 12px; }
.bh-step p { color: var(--bh-slate); max-width: 32em; }

/* ---------- Services ---------- */
.bh-services { padding-block: var(--bh-section); }
.wp-block-group.bh-service-list { margin-top: clamp(40px, 5vw, 72px) !important; border-bottom: 1px solid var(--bh-line); }
.wp-block-group.bh-service {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(16px, 4vw, 64px);
	padding-block: clamp(28px, 3.5vw, 44px);
	border-top: 1px solid var(--bh-line);
	margin: 0 !important;
}
.bh-service h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; letter-spacing: -0.02em; font-weight: 500; }
.bh-service__body > * { margin: 0 !important; }
.bh-service .bh-service__link { margin-top: 14px !important; font-weight: 500; }
.bh-service__link a, .bh-case__link a { color: var(--bh-ink); text-decoration: underline; text-decoration-color: var(--bh-cobalt); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.bh-service__link a:hover { color: var(--bh-cobalt); }
.bh-service p { margin: 0; color: var(--bh-slate); font-size: 1.0625rem; max-width: 38em; }

/* ---------- Fractional leadership band ---------- */
.bh-lead { background: var(--bh-ink); color: #fff; padding-block: var(--bh-section); }
.wp-block-group.bh-lead__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}
.bh-lead__copy > * { margin-block: 0; }
.bh-lead h2 { color: #fff; max-width: 13em; }
.bh-lead .bh-lead__lede { color: rgba(255, 255, 255, 0.72); font-size: 1.125rem; max-width: 34em; margin-top: 1.5rem !important; }
.bh-lead .wp-block-buttons { margin-top: 2.25rem !important; }
.bh-lead .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--bh-ink); }
.bh-lead .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--bh-sea); color: var(--bh-ink); }
.bh-lead .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.bh-lead .wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: #fff; color: #fff; }
.wp-block-group.bh-lead__list { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.bh-lead__list .bh-lead__item {
	margin: 0 !important;
	padding-block: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.0625rem;
}

/* ---------- Work ---------- */
.bh-work { background: #fff; border-top: 1px solid var(--bh-line); padding-block: var(--bh-section); }
.wp-block-group.bh-cases {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	margin-top: clamp(40px, 5vw, 72px) !important;
}
.wp-block-group.bh-case {
	background: var(--bh-paper);
	border: 1px solid var(--bh-line);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.bh-case > * { margin-block: 0; }
.bh-case__art { margin: 0; aspect-ratio: 16 / 8; display: grid; place-items: center; }
.bh-case__art svg { width: 100%; height: 100%; display: block; }
.bh-case__art--ink { background: var(--bh-ink); }
.bh-case__art--mist { background: var(--bh-mist); }
.wp-block-group.bh-case__body { padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.bh-case__body > * { margin-block: 0; }
.bh-case__body h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); margin-bottom: 12px; }
.bh-case__body p { color: var(--bh-slate); }
.bh-case__body .bh-case__link { margin-top: auto; padding-top: 20px; font-weight: 500; }
.bh-case__link a { color: var(--bh-ink); text-decoration: underline; text-decoration-color: var(--bh-cobalt); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.bh-case__link a:hover { color: var(--bh-cobalt); }

/* ---------- About ---------- */
.bh-about { padding-block: var(--bh-section); }
.wp-block-group.bh-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.bh-about h2 { margin: 0; max-width: 11em; }
.wp-block-group.bh-about__text > * + * { margin-top: 1.1em; }
.bh-about__text p { margin: 0; font-size: 1.125rem; color: var(--bh-slate); }
.bh-about__text p:first-child { color: var(--bh-ink); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; }

/* ---------- Contact band ---------- */
.bh-cta {
	background: var(--bh-ink);
	color: #fff;
	padding-block: var(--bh-section);
	position: relative;
	overflow: hidden;
}
.bh-cta::after {
	content: "";
	position: absolute;
	right: -12vw; top: 50%;
	width: 46vw; aspect-ratio: 1;
	transform: translateY(-50%);
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 7vw rgba(255, 255, 255, 0.02), 0 0 0 14vw rgba(255, 255, 255, 0.015);
	pointer-events: none;
}
.bh-cta .bh-wrap { position: relative; z-index: 1; }
.bh-cta h2 {
	color: #fff;
	font-size: clamp(2.25rem, 4.6vw, 4rem);
	letter-spacing: -0.03em;
	line-height: 1.05;
	font-weight: 500;
	max-width: 12em;
	margin: 0;
}
.bh-cta p { color: rgba(255, 255, 255, 0.72); font-size: 1.125rem; max-width: 34em; margin-top: 1.5rem !important; }
.bh-cta .wp-block-buttons { margin-top: 2.25rem !important; }
.bh-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--bh-ink); }
.bh-cta .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--bh-sea); color: var(--bh-ink); }
.bh-cta .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.bh-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.bh-footer {
	background: var(--bh-ink);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.95rem;
	padding-block: 56px 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.wp-block-group.bh-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bh-footer__top > * { margin-block: 0 !important; }
.bh-footer .bh-logo a { color: #fff; }
.bh-footer__tag { margin-top: 10px !important; max-width: 26em; }
.bh-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.bh-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.wp-block-group.bh-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.bh-footer__links > * { margin: 0 !important; }
.wp-block-group.bh-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }
.bh-footer__bottom > * { margin: 0 !important; }

/* ---------- Inner pages ---------- */
.bh-page { padding-block: clamp(56px, 8vw, 104px) var(--bh-section); }
.bh-page .wp-block-post-title { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.bh-page .wp-block-post-content { max-width: 720px; }
.bh-page .wp-block-post-date { color: var(--bh-slate); font-size: 0.95rem; }
.bh-posts .wp-block-post { padding-block: 28px; border-top: 1px solid var(--bh-line); }
.bh-posts .wp-block-post-title { font-size: 1.75rem; margin: 0 0 8px; }
.bh-posts .wp-block-post-title a { color: var(--bh-ink); text-decoration: none; }
.bh-posts .wp-block-post-excerpt { color: var(--bh-slate); }

/* ---------- Case study pages ---------- */
.bh-case-page { padding-block: clamp(40px, 6vw, 80px) var(--bh-section); }
.bh-back { margin: 0 0 28px !important; font-size: 0.95rem; }
.bh-back a { color: var(--bh-slate); text-decoration: none; }
.bh-back a:hover { color: var(--bh-ink); text-decoration: underline; text-underline-offset: 3px; }
.bh-case-page .wp-block-post-title { font-size: clamp(2.25rem, 4.6vw, 3.75rem); letter-spacing: -0.03em; max-width: 15em; margin: 0; }
.bh-case-page .wp-block-post-content { margin-top: 24px !important; }
.bh-case-page .wp-block-post-content > * + * { margin-top: clamp(40px, 5vw, 64px); }
.bh-case-lede { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; max-width: 36em; margin: 0; }
.wp-block-group.bh-case-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding-block: 24px;
	border-block: 1px solid var(--bh-line);
}
.bh-fact > * { margin: 0 !important; }
.bh-fact__label { font-size: 0.875rem; color: var(--bh-slate); }
.bh-fact__value { font-weight: 500; margin-top: 4px !important; }
.wp-block-group.bh-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bh-photos .bh-photo { margin: 0; }
.bh-photos .bh-photo--wide { grid-column: 1 / -1; }
.bh-photos .bh-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; display: block; }
.bh-photos .bh-photo--wide img { aspect-ratio: 21 / 9; }
body:not(.editor-styles-wrapper) .bh-photos .bh-photo:not(:has(img[src])) { display: none; }
body:not(.editor-styles-wrapper) .bh-photos:not(:has(img[src])) { display: none; }
.wp-block-group.bh-case-section {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(16px, 4vw, 64px);
	padding-top: 32px;
	border-top: 1px solid var(--bh-line);
}
.bh-case-section h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin: 0; letter-spacing: -0.02em; }
.bh-case-section__body > * { margin-block: 0 0.9em; }
.bh-case-section__body p, .bh-case-section__body li { color: var(--bh-slate); font-size: 1.0625rem; max-width: 40em; }
.bh-case-section__body ul { padding-left: 1.1em; }
.bh-case-section__body li { margin-bottom: 0.45em; }
.bh-case-section__body li::marker { color: var(--bh-cobalt); }

/* Mandate items, steps and FAQ on service pages */
.wp-block-group.bh-mandates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: 8px; }
.wp-block-group.bh-mandates.bh-mandates--stack { grid-template-columns: minmax(0, 1fr); gap: 0; }
.bh-mandates--stack .bh-mandate { padding-block: 18px; border-bottom: 1px solid var(--bh-line); }
.bh-mandates--stack .bh-mandate:first-child { padding-top: 0; }
.bh-mandate > * { margin: 0 !important; }
.bh-mandate h3 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 6px !important; color: var(--bh-ink); }
.bh-case-block h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin: 0; letter-spacing: -0.02em; padding-top: 32px; border-top: 1px solid var(--bh-line); }
.wp-block-group.bh-case-block > * { margin-block: 0; }
.wp-block-group.bh-steps.bh-steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px !important; }
.bh-steps--four .bh-step h3 { font-size: 1.25rem; }
.bh-faq { border-bottom: 1px solid var(--bh-line); padding-block: 18px; margin: 0 !important; }
.bh-faq:first-child { padding-top: 0; }
.bh-faq summary { cursor: pointer; font-weight: 500; font-size: 1.0625rem; color: var(--bh-ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.bh-faq summary::-webkit-details-marker { display: none; }
.bh-faq summary::after { content: "+"; color: var(--bh-cobalt); font-size: 1.35rem; line-height: 1; transition: transform .2s ease; }
.bh-faq[open] summary::after { transform: rotate(45deg); }
.bh-faq p { margin: 12px 0 0 !important; }

/* ---------- Contact and legal pages ---------- */
.wp-block-group.bh-contact {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.bh-contact__form > * { margin-block: 0 1rem; }
.bh-contact__form h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.bh-contact__form > p { color: var(--bh-slate); }
.wp-block-group.bh-contact__aside { border-top: 1px solid var(--bh-line); }
.bh-contact__aside .bh-fact { padding-block: 20px; border-bottom: 1px solid var(--bh-line); }
.bh-contact__aside a { color: var(--bh-ink); }
.bh-contact input[type="text"], .bh-contact input[type="email"], .bh-contact input[type="tel"], .bh-contact input[type="url"], .bh-contact select, .bh-contact textarea {
	width: 100%;
	max-width: 100% !important;
	box-sizing: border-box;
	font: inherit;
	color: var(--bh-ink);
	background: #fff;
	border: 1px solid rgba(11, 29, 51, 0.2) !important;
	border-radius: 10px !important;
	padding: 12px 14px !important;
	box-shadow: none !important;
}
.bh-contact input:focus, .bh-contact select:focus, .bh-contact textarea:focus { border-color: var(--bh-cobalt) !important; outline: 2px solid rgba(47, 75, 255, 0.2); outline-offset: 0; }
.bh-contact label { font-weight: 500; color: var(--bh-ink); }
.bh-contact button[type="submit"], .bh-contact input[type="submit"] {
	background: var(--bh-cobalt) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 10px !important;
	padding: 0.9em 1.35em !important;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	height: auto !important;
}
.bh-contact button[type="submit"]:hover, .bh-contact input[type="submit"]:hover { background: var(--bh-ink) !important; }
.bh-plain .wp-block-post-content > * + * { margin-top: 1rem; }
.bh-plain .wp-block-post-content > .bh-contact { margin-top: clamp(40px, 5vw, 64px); }
.bh-plain .wp-block-post-content > h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin-top: 2.5rem; }
.bh-plain .wp-block-post-content > p, .bh-plain .wp-block-post-content > ul { max-width: 44em; color: var(--bh-slate); }
.bh-plain .wp-block-post-content strong { color: var(--bh-ink); font-weight: 500; }
.bh-plain .wp-block-post-content li { margin-bottom: 0.5em; }
.bh-legal-date { font-size: 0.9rem; }
.bh-plain .wp-block-post-content > .bh-case-lede { color: var(--bh-ink); }
.wp-block-group.bh-footer__legal { display: flex; gap: 24px; }
.bh-footer__legal > * { margin: 0 !important; }

/* ---------- Mobile menu ---------- */
.bh-nav .wp-block-navigation__responsive-container-open svg,
.bh-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.bh-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--bh-paper) !important;
	color: var(--bh-ink) !important;
	padding: calc(20px + env(safe-area-inset-top, 0px)) var(--bh-gutter) calc(32px + env(safe-area-inset-bottom, 0px)) !important;
}
.bh-nav .is-menu-open .wp-block-navigation__responsive-close { max-width: none; }
.bh-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: calc(20px + env(safe-area-inset-top, 0px)); right: var(--bh-gutter); }
.bh-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 72px !important; align-items: stretch !important; }
.bh-nav .is-menu-open .wp-block-navigation__container {
	flex-direction: column;
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}
.bh-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--bh-line); }
.bh-nav .is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 16px 0 !important;
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--bh-ink);
}
.bh-nav .is-menu-open .wp-block-navigation-item.bh-nav__cta { border-bottom: 0; margin-top: 28px; }
.bh-nav .is-menu-open .bh-nav__cta > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	text-align: center;
	font-size: 1.0625rem;
	padding: 16px !important;
	border-radius: 10px;
	color: #fff;
}
html.has-modal-open header.wp-block-template-part { z-index: 100; }

/* ---------- About page ---------- */
.wp-block-group.bh-founder {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
	padding-top: 32px;
	border-top: 1px solid var(--bh-line);
}
body:not(.editor-styles-wrapper) .wp-block-group.bh-founder:not(:has(img[src])) { grid-template-columns: minmax(0, 1fr); }
body:not(.editor-styles-wrapper) .bh-founder .bh-portrait:not(:has(img[src])) { display: none; }
@media (max-width: 900px) { .bh-portrait { max-width: 360px; } }
.bh-portrait { margin: 0; }
.bh-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; display: block; }
.bh-founder__bio > * { margin-block: 0 1rem; }
.bh-founder__bio h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.bh-founder__bio p:not(.bh-fact__label) { color: var(--bh-slate); font-size: 1.0625rem; max-width: 40em; }
.bh-founder__bio p:nth-of-type(2) { color: var(--bh-ink); font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.5; }

/* ---------- Smart lockers ---------- */
.bh-lockers { padding-block: var(--bh-section); background: linear-gradient(180deg, #fff, var(--bh-paper)); border-bottom: 1px solid var(--bh-line); }
.wp-block-group.bh-lockers__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
.bh-lockers__art {
	margin: 0;
	padding: clamp(20px, 3vw, 40px);
	border-radius: 24px;
	background: radial-gradient(70% 70% at 50% 40%, rgba(47, 75, 255, 0.10), transparent 70%), var(--bh-mist);
}
.bh-lockers__art svg { display: block; width: 100%; height: auto; }
.bh-lockers__art--page { max-width: 720px; }
.bh-lockers__copy > * { margin-block: 0; }
.bh-lockers h2 { max-width: 13em; }
.bh-lockers .bh-lockers__lede { color: var(--bh-slate); font-size: 1.125rem; max-width: 34em; margin-top: 1.25rem !important; }
.bh-lockers .bh-checks { margin-top: 1.5rem !important; }
.bh-lockers .wp-block-buttons { margin-top: 2rem !important; }

/* ---------- AI-driven solutions ---------- */
.bh-ai {
	padding-block: var(--bh-section);
	color: #fff;
	background:
		radial-gradient(50% 60% at 85% 30%, rgba(47, 75, 255, 0.35), transparent 70%),
		radial-gradient(40% 50% at 10% 90%, rgba(18, 165, 180, 0.18), transparent 70%),
		#081629;
}
.wp-block-group.bh-ai__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
.bh-ai__copy > * { margin-block: 0; }
.bh-ai h2 { color: #fff; max-width: 12em; }
.bh-eyebrow--light { color: rgba(255, 255, 255, 0.7); }
.bh-ai .bh-ai__lede { color: rgba(255, 255, 255, 0.74); font-size: 1.125rem; max-width: 34em; margin-top: 1.25rem !important; }
.bh-ai .bh-checks { margin-top: 1.5rem !important; }
.bh-ai .bh-checks li { color: rgba(255, 255, 255, 0.85); }
.bh-ai .bh-checks li::before { background-color: var(--bh-sea); }
.bh-ai .wp-block-buttons { margin-top: 2rem !important; }
.wp-block-button.bh-btn-light > .wp-block-button__link { background: #fff; color: var(--bh-ink); }
.wp-block-button.bh-btn-light > .wp-block-button__link:hover { background: var(--bh-sea); color: var(--bh-ink); }
.bh-ai .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.bh-ai .wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: #fff; color: #fff; }
.bh-ai__art { margin: 0; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); overflow: hidden; }
.bh-ai__art svg, .bh-ai__art img { display: block; width: 100%; height: auto; }
.bh-ai__art text { font-family: inherit; }
.bh-ai__art--page { max-width: 760px; }
.bh-ai__art .bh-det { opacity: 0; animation: bh-fade .5s ease-out forwards; }
.bh-ai__art .bh-det--1 { animation-delay: .6s; }
.bh-ai__art .bh-det--2 { animation-delay: 1.1s; }
.bh-ai__art .bh-det--3 { animation-delay: 1.7s; }
.bh-ai__art .bh-rec { animation: bh-blink 1.6s ease-in-out infinite; }
.bh-ai__art .bh-scan { animation: bh-scan 4s linear infinite; }
@keyframes bh-blink { 50% { opacity: .2; } }
@keyframes bh-scan { from { transform: translateY(0); } to { transform: translateY(358px); } }
@media (prefers-reduced-motion: reduce) {
	.bh-ai__art .bh-det { animation: none; opacity: 1; }
	.bh-ai__art .bh-rec, .bh-ai__art .bh-scan { animation: none; }
	.bh-ai__art .bh-scan { display: none; }
}

/* ---------- Industry specialisations ---------- */
.bh-specs { padding-block: var(--bh-section); background: #fff; border-block: 1px solid var(--bh-line); }
.wp-block-group.bh-spec-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px;
	margin-top: clamp(40px, 5vw, 64px) !important;
}
.wp-block-group.bh-spec {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 2.6vw, 32px);
	border: 1px solid var(--bh-line);
	border-radius: 18px;
	background: var(--bh-paper);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.wp-block-group.bh-spec:nth-child(4), .wp-block-group.bh-spec:nth-child(5) { grid-column: span 3; }
.wp-block-group.bh-spec:hover { border-color: rgba(47, 75, 255, 0.35); box-shadow: 0 24px 48px -30px rgba(47, 75, 255, 0.45); transform: translateY(-2px); }
.bh-spec > * { margin-block: 0; }
.bh-spec__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(47, 75, 255, 0.08); color: var(--bh-cobalt); margin-bottom: 20px; }
.bh-spec__icon svg { width: 24px; height: 24px; }
.bh-spec h3 { font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.bh-spec > p:not(.bh-spec__link) { color: var(--bh-slate); font-size: 1rem; }
.bh-spec .bh-spec__link { margin-top: auto; padding-top: 20px; font-weight: 500; }
.bh-spec__link a { color: var(--bh-ink); text-decoration: underline; text-decoration-color: var(--bh-cobalt); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.bh-spec__link a:hover { color: var(--bh-cobalt); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.wp-block-group.bh-hero__grid,
	.wp-block-group.bh-pcards,
	.wp-block-group.bh-head,
	.wp-block-group.bh-about__grid,
	.wp-block-group.bh-cases,
	.wp-block-group.bh-service,
	.wp-block-group.bh-case-section,
	.wp-block-group.bh-case-facts,
	.wp-block-group.bh-lead__grid,
	.wp-block-group.bh-mandates,
	.wp-block-group.bh-steps.bh-steps--four,
	.wp-block-group.bh-contact,
	.wp-block-group.bh-founder,
	.wp-block-group.bh-lockers__grid,
	.wp-block-group.bh-ai__grid { grid-template-columns: minmax(0, 1fr) !important; }
	.wp-block-group.bh-spec-grid { grid-template-columns: minmax(0, 1fr); }
	.wp-block-group.bh-spec, .wp-block-group.bh-spec:nth-child(4), .wp-block-group.bh-spec:nth-child(5) { grid-column: auto; }
	.wp-block-group.bh-steps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.bh-pcard:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -44px; transform: translateX(-50%); }
	.bh-timeline { display: none; }
	.bh-head { align-items: start; }
}
@media (min-width: 901px) and (max-width: 1100px) {
	.wp-block-group.bh-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wp-block-group.bh-steps.bh-steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}
