/*
Theme Name: Booth Boys
Description: A lightweight block theme for PCEA Enoomatasiani Booth Boys School. Pages are built from ready-made, locked school sections that can be edited by clicking on text and images.
Version: 1.0.6
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: boothboys
*/

/* ---------- Base ---------- */
:root {
	--bb-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	--bb-i-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E");
	--bb-i-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z'/%3E%3Cpath d='M22 10v6'/%3E%3Cpath d='M6 12.5V16a6 3 0 0 0 12 0v-3.5'/%3E%3C/svg%3E");
	--bb-i-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E");
	--bb-i-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z'/%3E%3C/svg%3E");
	--bb-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
	--bb-i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3Cpath d='M8 12h.01M12 12h.01M16 12h.01'/%3E%3C/svg%3E");
	--bb-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
	--bb-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	--bb-i-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E");
	--bb-i-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='20' x='4' y='2' rx='2'/%3E%3Cpath d='M9 22v-4h6v4'/%3E%3Cpath d='M8 6h.01M16 6h.01M12 6h.01M12 10h.01M12 14h.01M16 10h.01M16 14h.01M8 10h.01M8 14h.01'/%3E%3C/svg%3E");
	--bb-i-signpost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 13v8'/%3E%3Cpath d='M12 3v3'/%3E%3Cpath d='M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.636l-3.424-2.317A2 2 0 0 0 17 6z'/%3E%3C/svg%3E");
	--bb-i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
	--bb-i-megaphone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E");
	--bb-i-flask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2'/%3E%3Cpath d='M6.453 15h11.094'/%3E%3Cpath d='M8.5 2h7'/%3E%3C/svg%3E");
	--bb-i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
	--bb-i-palette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z'/%3E%3Ccircle cx='13.5' cy='6.5' r='1.2'/%3E%3Ccircle cx='17.5' cy='10.5' r='1.2'/%3E%3Ccircle cx='6.5' cy='12.5' r='1.2'/%3E%3Ccircle cx='8.5' cy='7.5' r='1.2'/%3E%3C/svg%3E");
	--bb-i-trophy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6'/%3E%3Cpath d='M18 9h1.5a2.5 2.5 0 0 0 0-5H18'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22'/%3E%3Cpath d='M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22'/%3E%3Cpath d='M18 2H6v7a6 6 0 0 0 12 0V2Z'/%3E%3C/svg%3E");
	--bb-i-whatsapp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.47-2.39-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.6.13-.14.3-.35.45-.52.15-.18.2-.3.3-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.61-.91-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.07 2.88 1.21 3.07.15.2 2.1 3.2 5.08 4.49.71.3 1.26.49 1.7.63.71.22 1.36.19 1.87.12.57-.09 1.76-.72 2-1.41.25-.7.25-1.29.18-1.41-.08-.13-.28-.2-.57-.35m-5.42 7.4h-.01a9.87 9.87 0 0 1-5.03-1.37l-.36-.22-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.88 9.88m8.41-18.3A11.82 11.82 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.68 1.45h.01c6.55 0 11.89-5.34 11.89-11.89a11.82 11.82 0 0 0-3.48-8.41z'/%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
.wp-site-blocks > * { margin-block-start: 0; }
.bb-header-wrap > * { margin-block: 0; }
::selection { background: var(--wp--preset--color--navy); color: #fff; }

.bb-eyebrow {
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--red);
	margin-bottom: 0.5rem !important;
}
.has-white-color .bb-eyebrow, .bb-hero .bb-eyebrow, .bb-dark .bb-eyebrow { color: #f2b8b4; }
.bb-lead { font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.3rem); line-height: 1.55; color: var(--wp--preset--color--slate); }
.bb-hero .bb-lead, .bb-dark .bb-lead { color: rgba(255, 255, 255, 0.86); }

/* ---------- Sections ---------- */
.bb-section {
	padding-top: clamp(3.5rem, 8vw, 6.5rem);
	padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.bb-section + .bb-section { margin-block-start: 0; }
main .entry-content > * + .bb-section,
main .entry-content > .bb-section + *,
main .entry-content > .bb-hero + *,
main .entry-content > .bb-slider + *,
main .entry-content > .bb-slider { margin-block-start: 0; }
.bb-section--sand { background: var(--wp--preset--color--sand); }
.bb-section--white { background: #fff; }
.bb-section-head { margin-bottom: clamp(2rem, 4vw, 3rem) !important; }
.bb-section-head > * { margin-top: 0; }
.bb-section-head > h2 { text-wrap: balance; }
.bb-section-head > p { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.bb-center { text-align: center; }
.bb-dark { background: var(--wp--preset--color--navy-deep); color: #fff; }
.bb-dark :where(h1, h2, h3, h4) { color: #fff; }
.bb-dark a:where(:not(.wp-element-button)) { color: #fff; }

/* ---------- Header ---------- */
.bb-topbar {
	background: var(--wp--preset--color--navy-deep);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.85rem;
	padding-top: 0.45rem;
	padding-bottom: 0.45rem;
}
.bb-topbar p { margin: 0; }
.bb-topbar a { color: #fff; text-decoration: none; }
.bb-topbar a:hover { text-decoration: underline; color: #fff; }
/*
 * Sticky header. The sticky element is the template-part wrapper around
 * .bb-header-wrap: a sticky box can't leave its parent, and that wrapper is
 * only as tall as the header itself.
 */
.wp-site-blocks > .wp-block-template-part:has(> .bb-header-wrap) { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .bb-header-wrap) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > .wp-block-template-part:has(> .bb-header-wrap) { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > .wp-block-template-part:has(> .bb-header-wrap) { top: 0; } }
.bb-header {
	/* Solid, not backdrop-filter: a filter would trap the full-screen mobile menu inside the header. */
	background: #fff;
	border-bottom: 1px solid rgba(15, 37, 87, 0.08);
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}
.bb-brand { gap: 0.75rem !important; text-decoration: none; }
.bb-brand .wp-block-site-logo { flex-shrink: 0; }
.bb-brand .wp-block-site-logo img { width: 54px; height: auto; }
.bb-brand { min-width: 0; }
.bb-brand .wp-block-site-title { font-size: clamp(0.8rem, 0.55rem + 1.2vw, 1.15rem); line-height: 1.15; margin: 0; white-space: nowrap; }
.bb-brand .wp-block-site-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.bb-brand .wp-block-site-tagline {
	font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wp--preset--color--red); margin: 0.2rem 0 0;
}
.bb-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--ink); }
.bb-header .wp-block-navigation a:hover,
.bb-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--red); }
.bb-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.bb-header .wp-block-button__link { padding: 0.65rem 1.1rem; font-size: 0.95rem; white-space: nowrap; }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--navy-deep) !important;
	color: #fff !important;
	padding: 1.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open a { color: #fff !important; font-size: clamp(1.5rem, 5vw, 2.25rem); font-family: var(--wp--preset--font-family--serif); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 2.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 1.1rem !important; }
/* Core switches to the hamburger menu at 600px; the full menu, name and button need ~1366px. */
@media (min-width: 1366px) and (max-width: 1499px) {
	.bb-header .wp-block-navigation__container { gap: 1.1rem !important; }
	.bb-header .alignwide > .wp-block-group:last-child { gap: 1.25rem !important; }
}
@media (min-width: 1366px) {
	.bb-header .wp-block-navigation__container { flex-wrap: nowrap !important; }
}
@media (max-width: 1365px) {
	.bb-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.bb-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.bb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
}
/* Keep the top bar on one line. */
@media (max-width: 1199px) {
	.bb-topbar .bb-contact-links .bb-topbar-email { display: none; }
}
@media (max-width: 900px) {
	.bb-header-cta { display: none !important; }
	.bb-topbar > .wp-block-group > p:first-child { display: none; }
	.bb-topbar > .wp-block-group { justify-content: center !important; }
}
/* Phones: a smaller logo, and the name scales with the screen so it stays on one line. */
@media (max-width: 480px) {
	.bb-brand { gap: 0.5rem !important; }
	.bb-brand .wp-block-site-logo img { width: 34px; }
	.bb-brand .wp-block-site-title { font-size: clamp(0.6rem, 4.9vw - 6px, 0.9rem); }
	.bb-brand .wp-block-site-tagline { display: none; }
}

/* ---------- Contact icons (header top bar, footer) ----------
 * Drawn by CSS from the link address (tel:, mailto:, WhatsApp, Google Maps),
 * so the text stays plain and editable and any new contact link gets its icon.
 */
.bb-contact-links a[href^="tel:"] { --bb-icon: var(--bb-i-phone); }
.bb-contact-links a[href^="mailto:"] { --bb-icon: var(--bb-i-mail); }
.bb-contact-links a:is([href*="whatsapp.com"], [href*="wa.me"]) { --bb-icon: var(--bb-i-whatsapp); }
.bb-contact-links a:is([href*="google.com/maps"], [href*="goo.gl/maps"], [href*="maps.app"]) { --bb-icon: var(--bb-i-pin); }

.bb-topbar .bb-contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.35rem; }
.bb-topbar .bb-contact-links a { display: inline-flex; align-items: center; gap: 0.45em; }
.bb-topbar .bb-contact-links a::before {
	content: ""; width: 1.05em; height: 1.05em; flex-shrink: 0;
	background: currentColor; opacity: 0.8;
	-webkit-mask: var(--bb-icon) center / contain no-repeat; mask: var(--bb-icon) center / contain no-repeat;
}

.bb-footer .bb-contact-links li { margin-bottom: 0.7rem; }
.bb-footer .bb-contact-links a { position: relative; display: inline-flex; align-items: center; min-height: 2.25rem; padding-left: 3rem; overflow-wrap: anywhere; }
.bb-footer .bb-contact-links a::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 2.25rem; height: 2.25rem; margin-top: -1.125rem;
	border-radius: 50%; background: rgba(255, 255, 255, 0.1); transition: background-color 0.2s, transform 0.2s;
}
.bb-footer .bb-contact-links a::after {
	content: ""; position: absolute; left: 0.6rem; top: 50%; width: 1.05rem; height: 1.05rem; margin-top: -0.525rem;
	background: #fff;
	-webkit-mask: var(--bb-icon) center / contain no-repeat; mask: var(--bb-icon) center / contain no-repeat;
}
.bb-footer .bb-contact-links a:hover::before { background: var(--wp--preset--color--red); transform: scale(1.08); }
.bb-footer .bb-contact-links a:is([href*="whatsapp.com"], [href*="wa.me"]):hover::before { background: #1fa855; }

/* ---------- Hero / page header ---------- */
/*
 * Measured header and strip heights, so the home hero has the right size on
 * first paint; hero.js then publishes the exact values (they only differ while
 * the fonts load or after an edit changes the strip).
 */
:root { --bb-header-h: 111.5px; --bb-strip-h: 70px; }
@media (max-width: 1023px) { :root { --bb-strip-h: 113px; } }
@media (max-width: 640px) { :root { --bb-strip-h: 159px; } }
@media (max-width: 480px) { :root { --bb-header-h: 91.3px; } }
.bb-hero {
	min-height: max(26rem, calc(100svh - var(--bb-header-h, 8.5rem) - var(--bb-strip-h, 4.75rem) - var(--wp-admin--admin-bar--height, 0px))) !important;
}
.bb-hero.bb-hero--page { min-height: min(56vh, 520px) !important; }
.bb-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(10, 24, 56, 0.94) 0%, rgba(10, 24, 56, 0.72) 45%, rgba(10, 24, 56, 0.2) 100%) !important;
	opacity: 1 !important;
}
.bb-hero.wp-block-cover { padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right); }
.wp-block-cover.bb-hero .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; width: 100% !important; }
.bb-hero .wp-block-cover__inner-container > * { max-width: 40rem; }
.bb-hero :is(h1, h2) { color: #fff; font-size: var(--wp--preset--font-size--display); margin-top: 0; }
.bb-hero.bb-hero--page h1 { font-size: var(--wp--preset--font-size--xx-large); }
.bb-hero .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.bb-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--navy); }
.bb-page-header { background: var(--wp--preset--color--navy); color: #fff; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.bb-page-header h1 { color: #fff; margin: 0; }

/* ---------- Hero slideshow (assets/js/slider.js) ---------- */
/* Before the script runs (and without JavaScript) only the first slide shows; the editor lists them all. */
:where(body:not(.editor-styles-wrapper)) .bb-slider:not(.is-ready) > .bb-slide:not(:first-child) { display: none; }
.bb-slider { position: relative; overflow: hidden; background: var(--wp--preset--color--navy-deep); }
/* The grid applies from the first paint, so the first slide keeps its exact size when the script starts. */
:where(body:not(.editor-styles-wrapper)) .bb-slider { display: grid; }
:where(body:not(.editor-styles-wrapper)) .bb-slider > .bb-slide { grid-area: 1 / 1; margin: 0 !important; }
.bb-slider.is-ready > .bb-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}
.bb-slider.is-ready > .bb-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease, visibility 0s; z-index: 1; }
/* Slow zoom on the photo, and the text rises in, each time a slide appears. */
/* Animations only play once the slides change, so the first slide doesn't flicker (or repaint) on page load. */
.bb-slider.is-cycling > .bb-slide.is-active .wp-block-cover__image-background { animation: bb-kenburns 9s ease-out both; }
.bb-slider.is-cycling > .bb-slide.is-active .wp-block-cover__inner-container > * { animation: bb-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bb-slider.is-cycling > .bb-slide.is-active .wp-block-cover__inner-container > :nth-child(2) { animation-delay: 0.1s; }
.bb-slider.is-cycling > .bb-slide.is-active .wp-block-cover__inner-container > :nth-child(3) { animation-delay: 0.2s; }
.bb-slider.is-cycling > .bb-slide.is-active .wp-block-cover__inner-container > :nth-child(4) { animation-delay: 0.3s; }
@keyframes bb-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes bb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.bb-slider-controls {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: clamp(1rem, 3vh, 2rem);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left);
	pointer-events: none;
}
.bb-slider-controls > * { pointer-events: auto; }
.bb-slider-dots { display: flex; gap: 0.5rem; }
.bb-slider-dot {
	width: 2.25rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	display: flex;
	align-items: center;
}
.bb-slider-dot span { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; position: relative; }
.bb-slider-dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.bb-slider-dot.is-active span::after { transform: scaleX(1); }
.bb-slider.is-ticking .bb-slider-dot.is-active span::after { animation: bb-progress var(--bb-slide-interval, 6500ms) linear both; }
@keyframes bb-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bb-slider-prev,
.bb-slider-next {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	background: rgba(10, 24, 56, 0.25);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background-color 0.2s, border-color 0.2s;
}
.bb-slider-prev::before,
.bb-slider-next::before {
	content: "";
	width: 1.1rem;
	height: 1.1rem;
	background: currentColor;
	-webkit-mask: var(--bb-i-arrow) center / contain no-repeat;
	mask: var(--bb-i-arrow) center / contain no-repeat;
}
.bb-slider-prev::before { transform: scaleX(-1); }
.bb-slider-prev:hover,
.bb-slider-next:hover { background: var(--wp--preset--color--red); border-color: var(--wp--preset--color--red); }
.bb-slider-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bb-slider-prev { order: 0; }
.bb-slider-dots { order: 1; }
.bb-slider-next { order: 2; }
@media (max-width: 640px) {
	.bb-slider-controls { justify-content: center; }
	.bb-slider-prev, .bb-slider-next { display: none; }
	.bb-slider-dot { width: 1.75rem; }
}

/* ---------- Buttons ---------- */
/* Every button gets a trailing arrow; buttons also get a leading icon chosen by
   where they link to, or by an "bb-icon-*" class (Advanced > Additional CSS class). */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; }
.wp-block-button__link::before,
.wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: var(--bb-icon) center / contain no-repeat;
	mask: var(--bb-icon) center / contain no-repeat;
	transition: transform 0.2s ease;
}
.wp-block-button__link::before { display: var(--bb-icon-display, none); }
.wp-block-button__link::after { --bb-icon: var(--bb-i-arrow); width: 1em; height: 1em; }
.wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button__link:hover::before { transform: scale(1.12) rotate(-6deg); }
.wp-block-button__link[href*="admissions"] { --bb-icon: var(--bb-i-cap); --bb-icon-display: block; }
.wp-block-button__link[href*="contact-us"] { --bb-icon: var(--bb-i-send); --bb-icon-display: block; }
.wp-block-button__link[href*="about-us"] { --bb-icon: var(--bb-i-compass); --bb-icon-display: block; }
.wp-block-button__link[href*="pathways"] { --bb-icon: var(--bb-i-signpost); --bb-icon-display: block; }
.wp-block-button__link[href*="facilities"] { --bb-icon: var(--bb-i-building); --bb-icon-display: block; }
.wp-block-button__link[href^="tel:"] { --bb-icon: var(--bb-i-phone); --bb-icon-display: block; }
.wp-block-button__link[href*="whatsapp"] { --bb-icon: var(--bb-i-chat); --bb-icon-display: block; }
.wp-block-button__link[href^="mailto:"] { --bb-icon: var(--bb-i-mail); --bb-icon-display: block; }
.wp-block-button__link[href*="maps"] { --bb-icon: var(--bb-i-pin); --bb-icon-display: block; }
.wp-block-button.bb-icon-calendar > .wp-block-button__link { --bb-icon: var(--bb-i-calendar); --bb-icon-display: block; }
.wp-block-button.bb-icon-home > .wp-block-button__link { --bb-icon: var(--bb-i-home); --bb-icon-display: block; }
/* Direct contact buttons don't need the arrow. */
.wp-block-button__link:is([href^="tel:"], [href*="whatsapp"], [href^="mailto:"])::after { display: none; }
.wp-block-button__link:is([href^="tel:"], [href*="whatsapp"], [href^="mailto:"]):hover::before { animation: bb-ring 0.5s ease; }
@keyframes bb-ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.wp-block-button__link { transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: #fff; }
.bb-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.bb-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--navy); }
.bb-link-arrow a { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--red); }
.bb-link-arrow a::after { content: " \2192"; transition: margin 0.2s; }
.bb-link-arrow a:hover::after { margin-left: 0.25rem; }
.bb-link-arrow a[href^="#"]::after { content: " \2193"; }

/* ---------- Notice strip (sits directly under the home hero) ---------- */
.bb-strip {
	background: linear-gradient(90deg, var(--wp--preset--color--red) 0%, #a5221f 100%);
	color: #fff;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
	position: relative;
	z-index: 1;
}
.bb-strip > .wp-block-group { gap: 0.75rem 2rem; align-items: center; }
.bb-strip-message { gap: 0.5rem 1rem !important; align-items: center; }
.bb-strip p { margin: 0; }
.bb-strip-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.85rem 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}
.bb-strip-badge::before {
	content: "";
	width: 1.05rem;
	height: 1.05rem;
	background: currentColor;
	-webkit-mask: var(--bb-i-megaphone) center / contain no-repeat;
	mask: var(--bb-i-megaphone) center / contain no-repeat;
	animation: bb-nudge 2.8s ease-in-out infinite;
}
@keyframes bb-nudge { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.bb-strip-text { font-size: 1.05rem; line-height: 1.4; }
.bb-strip .wp-block-button__link { background: #fff; color: var(--wp--preset--color--red); padding: 0.7rem 1.25rem; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45); white-space: nowrap; }
.bb-strip .wp-block-button__link:hover { background: var(--wp--preset--color--navy-deep); color: #fff; }
@media (max-width: 640px) {
	.bb-strip { padding-top: 0.8rem; padding-bottom: 0.9rem; }
	.bb-strip > .wp-block-group { flex-direction: column; align-items: stretch; gap: 0.65rem; }
	.bb-strip-text { font-size: 0.98rem; }
	.bb-strip .wp-block-button__link { padding: 0.65rem 1rem; }
	.bb-strip-actions, .bb-strip-actions .wp-block-button, .bb-strip-actions .wp-block-button__link { width: 100%; }
}

/* ---------- Leader message ---------- */
.bb-leader { gap: clamp(2rem, 5vw, 4.5rem) !important; }
.bb-leader + .bb-leader { margin-top: clamp(3rem, 7vw, 5.5rem) !important; }
.bb-leader .wp-block-image img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(10, 24, 56, 0.45); }
.bb-leader h3 { margin-top: 0.25rem; }
.bb-leader > .wp-block-column > :where(p, ul, h2, h3) { max-width: 42rem; }
.bb-signature {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	padding-top: 1rem;
	border-top: 2px solid var(--wp--preset--color--red);
	display: inline-block;
}
.bb-signature em { display: block; font-family: var(--wp--preset--font-family--sans); font-style: normal; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--slate); }
@media (min-width: 782px) { .bb-leader--reverse { flex-direction: row-reverse; } }

/* ---------- Cards ---------- */
.bb-cards { gap: clamp(1rem, 2.4vw, 1.75rem) !important; }
.bb-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(10, 24, 56, 0.06), 0 12px 32px -18px rgba(10, 24, 56, 0.28);
	padding-bottom: 1.5rem;
	height: 100%;
	transition: transform 0.25s, box-shadow 0.25s;
}
.bb-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(10, 24, 56, 0.06), 0 22px 40px -20px rgba(10, 24, 56, 0.35); }
.bb-card > * { margin-left: 1.5rem; margin-right: 1.5rem; }
.bb-card > .wp-block-image:first-child { margin: 0 0 1.25rem; }
.bb-card > .wp-block-image:first-child img { border-radius: 0; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.bb-card h3 { font-size: 1.4rem; margin-top: 0; margin-bottom: 0.5rem; }
.bb-card p { margin-top: 0; color: var(--wp--preset--color--slate); }
.bb-card--plain { padding: 1.75rem 0 1.5rem; border-top: 3px solid var(--wp--preset--color--red); }
.wp-block-column > .bb-card { height: 100%; }

/* Value tiles (cover cards) */
.bb-value { border-radius: 14px; overflow: hidden; min-height: 380px !important; align-items: flex-end !important; }
.bb-value .wp-block-cover__background { background: linear-gradient(180deg, rgba(10, 24, 56, 0) 35%, rgba(10, 24, 56, 0.92) 100%) !important; opacity: 1 !important; }
.bb-value img { transition: transform 0.6s ease; }
.bb-value:hover img { transform: scale(1.05); }
@media (max-width: 781px) { .bb-value { min-height: 240px !important; } }
.bb-value h3 { color: #fff; font-size: 1.6rem; margin: 0 0 0.35rem; }
.bb-value p { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; margin: 0; line-height: 1.45; }

/* Numbered steps */
.bb-steps { counter-reset: bb-step; }
.bb-steps .bb-card--plain { counter-increment: bb-step; }
.bb-steps .bb-card--plain::before {
	content: counter(bb-step, decimal-leading-zero);
	display: block;
	margin: 0 1.5rem 0.75rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 2.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--red);
	line-height: 1;
}

/* Pathways */
.bb-pathway-cards .bb-card--plain::before {
	content: "";
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 1.5rem 1rem;
	background: var(--wp--preset--color--red);
	-webkit-mask: var(--bb-pathway-icon, var(--bb-i-signpost)) center / contain no-repeat;
	mask: var(--bb-pathway-icon, var(--bb-i-signpost)) center / contain no-repeat;
}
.bb-pathway-cards > .wp-block-column:nth-child(1) { --bb-pathway-icon: var(--bb-i-flask); }
.bb-pathway-cards > .wp-block-column:nth-child(2) { --bb-pathway-icon: var(--bb-i-users); }
.bb-pathway-cards > .wp-block-column:nth-child(3) { --bb-pathway-icon: var(--bb-i-palette); }
.bb-pathway-cards > .wp-block-column:nth-child(4) { --bb-pathway-icon: var(--bb-i-trophy); }
.bb-pathways .bb-leader { scroll-margin-top: calc(var(--bb-header-h, 8.5rem) + 1.5rem); }
.bb-pathways .wp-block-list { padding-left: 1.2rem; }
.bb-pathways .wp-block-list li { margin-bottom: 0.35rem; }
.bb-pathways .wp-block-list li::marker { color: var(--wp--preset--color--red); }

/* Contact tiles */
.bb-contact-tile :is(h2, h3) { font-family: var(--wp--preset--font-family--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--red); }
.bb-contact-tile p { font-size: 1.1rem; color: var(--wp--preset--color--ink); font-weight: 600; overflow-wrap: anywhere; }
.bb-contact-tile a { color: var(--wp--preset--color--navy); }

/* Vision & mission */
.bb-statement p:not(.bb-eyebrow) { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--x-large); line-height: 1.35; color: var(--wp--preset--color--navy); }

/* Gallery */
.bb-gallery.wp-block-gallery { gap: 0.75rem !important; }
.bb-gallery.wp-block-gallery .wp-block-image img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }

/* Media */
.bb-media img { border-radius: 14px; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.bb-video video { border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.bb-map-section { padding-top: 0; }
.bb-map { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(10, 24, 56, 0.5); background: var(--wp--preset--color--sand); }
.bb-map iframe { width: 100%; height: clamp(320px, 55vh, 520px); border: 0; display: block; }
.bb-visit .wp-block-buttons { margin-top: 1.5rem; }
.bb-card.bb-visit { height: auto; position: sticky; top: calc(var(--bb-header-h, 8.5rem) + 1.5rem); }
.bb-visit p { color: var(--wp--preset--color--ink); }

/* Partner logos: shown whole, never cropped. */
.bb-logos { gap: 1.25rem !important; align-items: stretch !important; }
.bb-logo-card {
	flex: 1 1 9rem;
	max-width: 17rem;
	background: #fff;
	border-radius: 14px;
	padding: 1.75rem 1.25rem 1.25rem;
	text-align: center;
	box-shadow: 0 1px 2px rgba(10, 24, 56, 0.06), 0 12px 32px -18px rgba(10, 24, 56, 0.28);
}
.bb-logo-card .wp-block-image { margin: 0 auto 1rem; display: flex; justify-content: center; align-items: center; height: 190px; }
.bb-leader .bb-logo-card .wp-block-image img {
	aspect-ratio: auto;
	object-fit: contain;
	width: auto;
	max-width: 100%;
	max-height: 190px;
	border-radius: 0;
	box-shadow: none;
}
@media (max-width: 480px) {
	.bb-logo-card { padding: 1.25rem 0.75rem 1rem; }
	.bb-logo-card .wp-block-image { height: 130px; }
	.bb-leader .bb-logo-card .wp-block-image img { max-height: 130px; }
}
.bb-logo-card p { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--wp--preset--color--navy); line-height: 1.35; }

/* Shown in place of the enquiry form if the form plugin can't load. */
.bb-form-fallback p { margin-top: 0; }
.bb-form-fallback .wp-block-buttons { gap: 0.6rem; }

/* Forms (WPForms) */
.bb-form { background: #fff; border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 12px 32px -18px rgba(10, 24, 56, 0.28); }
.bb-form .wpforms-container { margin: 0 !important; }
.bb-form :is(input[type="text"], input[type="email"], input[type="number"], input[type="tel"], select, textarea) {
	border-radius: 8px !important;
	border-color: #d5d9e2 !important;
	min-height: 46px;
}
.bb-form :is(input, select, textarea):focus {
	border-color: var(--wp--preset--color--navy) !important;
	box-shadow: 0 0 0 3px rgba(15, 37, 87, 0.15) !important;
	outline: none !important;
}
.bb-form .wpforms-field-label { color: var(--wp--preset--color--navy) !important; font-weight: 600 !important; }
.bb-form .wpforms-submit { background: var(--wp--preset--color--red) !important; border-radius: 6px !important; font-weight: 600 !important; }

/* ---------- CTA band ---------- */
.bb-cta { background: var(--wp--preset--color--navy); color: #fff; position: relative; overflow: hidden; }
.bb-cta::after {
	content: "";
	position: absolute;
	right: -6rem;
	top: 50%;
	width: 26rem;
	height: 26rem;
	transform: translateY(-50%);
	border-radius: 50%;
	border: 3.5rem solid rgba(255, 255, 255, 0.04);
	pointer-events: none;
}
.bb-cta h2 { color: #fff; }

/* ---------- Footer ---------- */
.bb-footer { background: var(--wp--preset--color--navy-deep); color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; padding-top: clamp(3rem, 7vw, 5rem); }
.bb-footer h2, .bb-footer h3 { color: #fff; }
.bb-footer h3 { font-family: var(--wp--preset--font-family--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.bb-footer a { color: #fff; text-decoration: none; }
.bb-footer a:hover { text-decoration: underline; color: #fff; }
.bb-footer ul { list-style: none; padding: 0; margin: 0; }
.bb-footer li { margin-bottom: 0.5rem; }
.bb-footer .wp-block-site-logo img { width: 72px; background: #fff; border-radius: 50%; padding: 6px; }
.bb-footer .wp-block-site-title { font-size: 1.25rem; margin: 0.75rem 0 0.25rem; }
.bb-footer .wp-block-site-title a { color: #fff; }
.bb-footer .wp-block-social-links { margin-top: 1.25rem; }
.bb-footer .wp-block-social-links .wp-social-link { background: rgba(255, 255, 255, 0.1); color: #fff; }
.bb-footer .wp-block-social-links .wp-social-link:hover { background: var(--wp--preset--color--red); }
.bb-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: clamp(2.5rem, 5vw, 4rem) !important; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.bb-footer-bottom p { margin: 0; }
.bb-credit .bb-heart { display: inline-block; color: var(--wp--preset--color--red); transition: transform 0.2s; }
.bb-credit:hover .bb-heart { animation: bb-heartbeat 0.9s ease-in-out infinite; }
@keyframes bb-heartbeat { 0%, 40%, 100% { transform: scale(1); } 20% { transform: scale(1.3); } 30% { transform: scale(0.95); } }

/* ---------- Floating WhatsApp button ----------
 * Sits bottom-left: the cookie banner and its "Manage consent" tab use the
 * bottom-right corner. whatsapp.js tucks it away while the cookie banner covers
 * that corner (phones, until a choice is made) and while the home page's red
 * strip is behind it; the banner also stacks above it. At the end of the page
 * it moves up (--bb-wa-lift) to sit above the copyright line.
 */
.bb-wa {
	--bb-wa-size: 60px;
	position: fixed; z-index: 40;
	left: max(1.1rem, env(safe-area-inset-left));
	bottom: max(1.1rem, env(safe-area-inset-bottom));
	display: block; width: var(--bb-wa-size); height: var(--bb-wa-size);
	text-decoration: none; color: var(--wp--preset--color--ink);
	translate: 0 calc(-1 * var(--bb-wa-lift, 0px));
	transition: opacity 0.3s, visibility 0.3s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), translate 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	animation: bb-wa-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}
.bb-wa.is-hidden, body:has(.wp-block-navigation__responsive-container.is-menu-open) .bb-wa { opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.6); }
.bb-wa__icon {
	position: relative; flex-shrink: 0; display: grid; place-items: center;
	width: var(--bb-wa-size); height: var(--bb-wa-size); border-radius: 50%;
	background: linear-gradient(145deg, #2fe074 0%, #1fa855 100%); color: #fff;
	box-shadow: 0 12px 28px -8px rgba(18, 140, 70, 0.65), 0 2px 6px rgba(0, 0, 0, 0.15);
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
/* Two soft rings ripple out from the button. */
.bb-wa__icon::before, .bb-wa__icon::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	border: 2px solid #25d366; opacity: 0; pointer-events: none;
	animation: bb-wa-ripple 2.6s cubic-bezier(0.2, 0.6, 0.35, 1) 1.8s infinite;
}
.bb-wa__icon::after { animation-delay: 2.65s; }
.bb-wa__icon svg { width: 54%; height: 54%; fill: currentColor; animation: bb-wa-wiggle 7s ease-in-out 2.4s infinite; transform-origin: 50% 60%; }
.bb-wa__badge {
	position: absolute; top: 1px; right: 1px; width: 15px; height: 15px; border-radius: 50%;
	background: var(--wp--preset--color--red); border: 2px solid #fff;
	animation: bb-wa-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 2.6s both;
}
.bb-wa.is-seen .bb-wa__badge { display: none; }
.bb-wa:hover .bb-wa__icon, .bb-wa:focus-visible .bb-wa__icon { transform: scale(1.08) rotate(-6deg); box-shadow: 0 16px 34px -8px rgba(18, 140, 70, 0.75), 0 2px 6px rgba(0, 0, 0, 0.15); }
.bb-wa:focus-visible { outline: none; }
.bb-wa:focus-visible .bb-wa__icon { outline: 3px solid var(--wp--preset--color--navy); outline-offset: 3px; }

.bb-wa__bubble {
	/* Out of the flow, so while hidden it doesn't cover the page beside the button. */
	position: absolute; left: calc(100% + 0.85rem); top: 50%;
	width: max-content; max-width: min(15.5rem, calc(100vw - var(--bb-wa-size) - 3.5rem));
	padding: 0.7rem 1rem 0.75rem; border-radius: 14px 14px 14px 4px;
	background: #fff; box-shadow: 0 14px 34px -12px rgba(10, 24, 56, 0.45), 0 0 0 1px rgba(15, 37, 87, 0.06);
	font-size: 0.9rem; line-height: 1.3;
	opacity: 0; visibility: hidden; transform: translate(-10px, -50%) scale(0.92); transform-origin: left center;
	transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
}
.bb-wa__bubble strong { display: block; color: var(--wp--preset--color--navy); font-size: 0.95rem; }
.bb-wa__bubble small { display: flex; align-items: center; gap: 0.4em; margin-top: 0.2rem; color: var(--wp--preset--color--slate); font-size: 0.78rem; }
.bb-wa__bubble small::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2); }
.bb-wa:hover .bb-wa__bubble, .bb-wa:focus-visible .bb-wa__bubble, .bb-wa.is-greeting .bb-wa__bubble { opacity: 1; visibility: visible; transform: translateY(-50%); }
@media (hover: none) { .bb-wa:hover:not(.is-greeting) .bb-wa__bubble { opacity: 0; visibility: hidden; } }
@media (max-width: 640px) { .bb-wa { --bb-wa-size: 54px; } }
@media print { .bb-wa { display: none; } }

@keyframes bb-wa-in { from { opacity: 0; transform: translateY(24px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes bb-wa-ripple { 0% { opacity: 0.7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.75); } }
@keyframes bb-wa-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bb-wa-wiggle {
	0%, 8%, 100% { transform: rotate(0); }
	1.5% { transform: rotate(-14deg) scale(1.08); }
	3% { transform: rotate(12deg) scale(1.08); }
	4.5% { transform: rotate(-8deg); }
	6% { transform: rotate(5deg); }
}

/* ---------- Posts ---------- */
.bb-post-card .wp-block-post-featured-image img { border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; }
.bb-post-card .wp-block-post-title { font-size: 1.35rem; }
.bb-post-card .wp-block-post-title a { text-decoration: none; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
