/*
Theme Name: Bonds Experts
Theme URI: https://bondsexperts.com
Author: Bonds Experts
Description: Custom block theme for Bonds Experts — Texas title, registration, and surety bond services. Built as a full-site-editing theme with a token-driven design system.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bondsexperts
Tags: business, block-theme, full-site-editing, one-column, custom-colors, custom-menu
*/

/* ---------------------------------------------------------------
   Base refinements
   theme.json handles tokens; this file covers what it can't express.
   --------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Visible focus for keyboard users */
:where(a, button, input, textarea, select, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
	border-radius: 3px;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.be-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--base);
	/* Brand stripe reads as a signature edge under the whole header */
	border-bottom: 3px solid var(--wp--preset--color--brand);
}

/* Brand lockup: shield mark + wordmark. The wordmark spells the company
   name out, which the "B" shield alone cannot do. */
.be-brand {
	gap: 0.65rem;
}

.be-brand .wp-block-site-logo img {
	display: block;
}

.be-wordmark {
	margin: 0;
	font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	white-space: nowrap;
}

.be-wordmark a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.be-wordmark a:hover,
.be-wordmark a:focus {
	color: var(--wp--preset--color--brand-dark);
}

/* On narrow screens the shield alone carries the brand so the nav has room */
@media (max-width: 480px) {
	.be-wordmark { display: none; }
}

.admin-bar .be-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .be-header { top: 46px; }
}

/* Nav links: underline on hover only, brand underline accent */
.be-header .wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0.35rem;
	border-bottom: 2px solid transparent;
	transition: border-color .15s ease, color .15s ease;
}
.be-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	border-bottom-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--ink);
}
.be-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--brand);
}

/* Submenu panel */
.be-header .wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	box-shadow: var(--wp--preset--shadow--lift);
	padding: 0.4rem;
	min-width: 260px;
}
.be-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	border-bottom: 0;
}
.be-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--surface-warm);
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.be-hero {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	isolation: isolate;
}

/* Subtle brand glow, purely decorative */
.be-hero::after {
	content: "";
	position: absolute;
	inset: auto -10% -60% auto;
	width: min(720px, 80vw);
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(255, 199, 44, .18) 0%, rgba(255, 199, 44, 0) 68%);
	pointer-events: none;
	z-index: -1;
}

.be-hero h1,
.be-hero h2,
.be-hero h3,
.be-hero p,
.be-hero li { color: #fff; }
.be-hero .be-hero__sub { color: #D8D8D8; }

/* Accent rule above hero headline */
.be-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand);
}
.be-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--wp--preset--color--brand);
}

/* ---------------------------------------------------------------
   Section headings — brand rule beneath centered h2s
   --------------------------------------------------------------- */

.be-ruled { position: relative; padding-bottom: 1.1rem; }
.be-ruled::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: var(--wp--preset--color--brand);
}

/* ---------------------------------------------------------------
   Solid brand CTA band
   --------------------------------------------------------------- */

.be-cta-brand { background: var(--wp--preset--color--brand); }
.be-cta-brand h1,
.be-cta-brand h2,
.be-cta-brand h3,
.be-cta-brand p,
.be-cta-brand li { color: var(--wp--preset--color--ink); }

/* Invert the button inside a yellow band so it still reads as a button */
.be-cta-brand .wp-block-button__link {
	background: var(--wp--preset--color--ink);
	color: #fff;
}
.be-cta-brand .wp-block-button__link:hover {
	background: #000;
	color: #fff;
}
.be-cta-brand .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
}
.be-cta-brand .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: #fff;
}

/* ---------------------------------------------------------------
   Cards
   --------------------------------------------------------------- */

.be-card {
	position: relative;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: 1.75rem;
	height: 100%;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Brand cap along the top edge of every card */
.be-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--wp--preset--color--brand);
}

.be-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lift);
	border-color: var(--wp--preset--color--brand);
}

/* Cards that lead with a photo: bleed the image to the card edges */
.be-card--media { padding-top: 0; }
.be-card__thumb { margin: 0 -1.75rem 1.5rem; }
.be-card__thumb img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
	/* Card has 4px brand cap on top; image sits flush beneath it */
	border-radius: 0;
}

/* Standalone photo with brand framing */
.be-photo { margin: 0; }
.be-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: var(--wp--preset--shadow--lift);
}

/* ---------------------------------------------------------------
   Hero as a photo cover
   The plain .be-hero rules above assume a solid dark panel. When the
   hero is a cover block we hand contrast duty to the dim layer instead,
   otherwise the two fight and the photo washes the text out.
   --------------------------------------------------------------- */

.wp-block-cover.be-hero {
	background: transparent;
	/* Keep the stacking context — the scrim depends on it */
	isolation: isolate;
}

/* Drop the decorative glow here — the photo already carries the interest */
.wp-block-cover.be-hero::after { content: none; }

/* Explicit layer order. Without these the photo paints over the scrim,
   because both layers otherwise resolve to z-index:auto. */
.wp-block-cover.be-hero .wp-block-cover__image-background {
	z-index: 0;
	filter: saturate(.85);
}
.wp-block-cover.be-hero .wp-block-cover__background {
	z-index: 1;
	background-color: #101010;
	opacity: .8;
}
/* Core emits `.wp-block-cover h1 { color: inherit }`, so headings inside a
   cover take their colour from this container rather than from any rule we
   put on the heading itself. Set it here and the whole subtree follows. */
.wp-block-cover.be-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	color: #fff;
}
.wp-block-cover.be-hero .wp-block-cover__inner-container h1,
.wp-block-cover.be-hero .wp-block-cover__inner-container h2,
.wp-block-cover.be-hero .wp-block-cover__inner-container p {
	color: #fff;
	text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}
.wp-block-cover.be-hero .be-hero__sub { color: #E8E8E8; }

/* Numbered step cards */
.be-step { counter-increment: be-step; position: relative; padding-left: 3.5rem; }
.be-steps { counter-reset: be-step; }
.be-step::before {
	content: counter(be-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.5rem;
	height: 2.5rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--ink);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--small);
}

/* Service link list with chevrons */
.be-linklist ul { list-style: none; padding-left: 0; margin: 0; }
.be-linklist li + li { margin-top: .1rem; }
.be-linklist a {
	display: block;
	padding: .55rem .75rem .55rem 1.5rem;
	border-radius: 7px;
	text-decoration: none;
	color: var(--wp--preset--color--body);
	position: relative;
	transition: background .15s ease, color .15s ease;
}
.be-linklist a::before {
	content: "";
	position: absolute;
	left: .45rem;
	top: 50%;
	width: 5px;
	height: 5px;
	border-right: 2px solid var(--wp--preset--color--brand);
	border-bottom: 2px solid var(--wp--preset--color--brand);
	transform: translateY(-50%) rotate(-45deg);
}
.be-linklist a:hover {
	background: var(--wp--preset--color--surface-warm);
	color: var(--wp--preset--color--ink);
}

/* ---------------------------------------------------------------
   Checklist ("What you'll need")
   --------------------------------------------------------------- */

/* Applied as a block style the class lands on the <ul> itself; applied to a
   wrapper it sits on the parent. Match both, or the native bullets stay on
   top of the drawn checkmarks. */
.be-checklist,
.be-checklist ul { list-style: none; padding-left: 0; margin: 0; }
.be-checklist li {
	position: relative;
	padding: .55rem 0 .55rem 2rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.be-checklist li:last-child { border-bottom: 0; }
.be-checklist li::before {
	content: "";
	position: absolute;
	left: .25rem;
	top: 1.05rem;
	width: 10px;
	height: 6px;
	border-left: 2.5px solid var(--wp--preset--color--ink);
	border-bottom: 2.5px solid var(--wp--preset--color--ink);
	transform: rotate(-45deg);
}

/* ---------------------------------------------------------------
   FAQ (details/summary)
   --------------------------------------------------------------- */

.be-faq .wp-block-details {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--base);
}
.be-faq .wp-block-details + .wp-block-details { margin-top: .75rem; }
.be-faq summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	list-style: none;
}
.be-faq summary::-webkit-details-marker { display: none; }
.be-faq summary::after {
	content: "+";
	float: right;
	font-weight: 700;
	color: var(--wp--preset--color--brand-dark);
	font-size: 1.25em;
	line-height: 1;
}
.be-faq details[open] summary::after { content: "\2013"; }

/* ---------------------------------------------------------------
   Social proof: rating summary + trust bar
   --------------------------------------------------------------- */

.be-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .75rem 1.1rem;
	padding: 1.1rem 1.5rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	box-shadow: var(--wp--preset--shadow--soft);
}
.be-rating__score {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--ink);
}
.be-rating__stars {
	color: #F5B301;
	font-size: 1.15rem;
	letter-spacing: .08em;
	line-height: 1;
}
.be-rating__meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
.be-rating__meta strong { color: var(--wp--preset--color--ink); }

/* Row of third-party trust marks */
.be-trustbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 3rem;
}
.be-trustbar img {
	max-height: 54px;
	width: auto;
	opacity: .85;
	transition: opacity .15s ease;
}
.be-trustbar a:hover img { opacity: 1; }

/* Text-based trust marks, used where we don't have an official badge asset */
.be-trustmark {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}
.be-trustmark__stars { color: #F5B301; font-size: 1.05rem; letter-spacing: .06em; }
.be-trustmark__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.3;
}
.be-trustmark__label small {
	display: block;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
}
a.be-trustmark:hover .be-trustmark__label { color: var(--wp--preset--color--brand-dark); }

/* ---------------------------------------------------------------
   Google reviews carousel
   The reviews plugin ships a slider that does not initialise on this
   install, so its cards stack full-width. We lay them out ourselves as a
   horizontal scroll-snap rail — no JS, keyboard and touch friendly.
   --------------------------------------------------------------- */

.be-reviewswrap .ti-widget { width: 100%; }

/* Plugin header/footer chrome duplicates our own rating card */
.be-reviewswrap .ti-header,
.be-reviewswrap .ti-controls,
.be-reviewswrap .ti-controls-line { display: none !important; }

/* Trustindex's own marketing block ("Universal Symbol of Trust", Read more).
   This is the plugin promoting itself, not Google's required attribution --
   the per-review "Posted on Google" credit and Google mark stay visible. */
.be-reviewswrap .ti-verified-by { display: none !important; }

.be-reviewswrap .ti-reviews-container-wrapper {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 1.25rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	padding: .25rem .25rem 1.25rem;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--brand) var(--wp--preset--color--line);
	-webkit-overflow-scrolling: touch;
}

.be-reviewswrap .ti-reviews-container-wrapper::-webkit-scrollbar { height: 8px; }
.be-reviewswrap .ti-reviews-container-wrapper::-webkit-scrollbar-track {
	background: var(--wp--preset--color--line);
	border-radius: 4px;
}
.be-reviewswrap .ti-reviews-container-wrapper::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--brand);
	border-radius: 4px;
}

.be-reviewswrap .ti-review-item {
	flex: 0 0 min(330px, 80vw) !important;
	width: auto !important;
	scroll-snap-align: start;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: 1.35rem !important;
	margin: 0 !important;
	transition: box-shadow .18s ease, border-color .18s ease;
}
.be-reviewswrap .ti-review-item:hover {
	box-shadow: var(--wp--preset--shadow--lift);
	border-color: var(--wp--preset--color--brand);
}

.be-reviewswrap .ti-review-content { font-size: var(--wp--preset--font-size--small); }

/* Images are swapped in from <trustindex-image> placeholders at runtime, so
   pin their box explicitly rather than relying on the plugin's preset sheet. */
.be-reviewswrap .ti-star {
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: -3px;
}

.be-reviewswrap .ti-profile-img img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.be-reviewswrap .ti-platform-icon img {
	width: 18px;
	height: 18px;
}

/* The plugin repeats a verification line on every card — noisy at this size */
.be-reviewswrap .ti-review-item .ti-verified-review { display: none !important; }

/* ---------------------------------------------------------------
   Contact form (Contact Form 7)
   --------------------------------------------------------------- */

.be-contact-card {
	max-width: 560px;
	margin-inline: auto;
	border-radius: 24px;
	padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}
.be-contact-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}
.be-contact-card__icon svg { display: block; }
.be-contact-card h1,
.be-contact-card h2,
.be-contact-card h3 { text-align: center; margin-bottom: .35rem; }
.be-contact-card > .wp-block-paragraph:first-of-type,
.be-contact-card__sub {
	text-align: center;
	color: var(--wp--preset--color--body);
	margin-bottom: 1.75rem;
}

.wpcf7 label {
	display: block;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	margin-bottom: 1rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select {
	width: 100%;
	margin-top: .4rem;
	height: 46px;
	padding: 0 1.15rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	/* !important: GoDaddy's global "wp-site-designer-contrast-fallback" stylesheet
	   targets every form input with a higher-specificity rule built on
	   var(--wp--preset--color--contrast), a slug this theme's palette never
	   defines. The invalid var() collapses that rule's border/background to
	   nothing, so without !important these fields render invisible. */
	color: var(--wp--preset--color--ink) !important;
	background: var(--wp--preset--color--base) !important;
	border: 1px solid #CFCFCF !important;
	border-radius: 999px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wpcf7 textarea {
	width: 100%;
	margin-top: .4rem;
	min-height: 110px;
	padding: .85rem 1.15rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink) !important;
	background: var(--wp--preset--color--base) !important;
	border: 1px solid #CFCFCF !important;
	border-radius: 20px;
	resize: vertical;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wpcf7 :where(input, select, textarea):focus {
	outline: none;
	border-color: var(--wp--preset--color--brand-dark) !important;
	box-shadow: 0 0 0 3px rgba(255, 199, 44, .28);
}
.wpcf7 input[type="submit"] {
	font: inherit;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	/* !important: same GoDaddy fallback also restyles [type="submit"] using
	   var(--wp--preset--color--accent-2), another undefined slug; its color
	   declaration (white text) still resolves and wins on specificity,
	   leaving white-on-transparent text with no override here. */
	background: var(--wp--preset--color--brand) !important;
	color: var(--wp--preset--color--ink) !important;
	border: 0 !important;
	border-radius: 999px;
	width: 100%;
	padding: .95rem 1.9rem;
	cursor: pointer;
	transition: background .15s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--brand-dark) !important; }

/* WhatsApp CTA button, placed just below the submit button */
.be-whatsapp-btn { margin-top: .75rem; }
.be-whatsapp-btn .wp-block-button__link {
	border-radius: 999px !important;
	width: 100%;
	text-align: center;
	justify-content: center;
	display: flex;
	align-items: center;
}

.be-contact-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem 1.5rem;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--brand-tint);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--body);
}
.be-contact-footer a { color: inherit; text-decoration: none; }
.be-contact-footer a:hover { color: var(--wp--preset--color--ink); }

/* Two-up name row on wider screens */
@media (min-width: 700px) {
	.be-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}

/* ---------------------------------------------------------------
   Process timeline (numbered steps on service pages)
   --------------------------------------------------------------- */

.be-steps__intro {
	text-align: center;
	margin: 0 auto 2.25rem;
	max-width: 46ch;
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--small);
}

.be-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	/* Auto-flow sizes itself to however many steps a service has.
	   repeat() cannot take a var() for its count, so don't reach for one. */
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	position: relative;
}

/* Connector line runs behind the markers, inset to the first/last centre.
   Scoped to the <ol> timeline (service-page steps) only — the homepage
   "Three steps" Columns block reuses the .be-steps class for its layout
   grid but is not this component, and the line should not draw there. */
ol.be-steps::before {
	content: "";
	position: absolute;
	top: 34px;
	left: 10%;
	right: 10%;
	height: 3px;
	background: var(--wp--preset--color--brand);
}

.be-steps > li {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0 .5rem;
}

.be-steps__mark {
	position: relative;
	flex: 0 0 auto;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--ink);
	display: grid;
	place-items: center;
}

.be-steps__mark svg { display: block; }

.be-steps__num {
	position: absolute;
	bottom: -5px;
	right: -5px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--brand);
	font-size: .75rem;
	font-weight: 800;
	line-height: 1;
	display: grid;
	place-items: center;
}

.be-steps h3 {
	margin: 1rem 0 .35rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}

.be-steps p {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--wp--preset--color--body);
}

/* Five columns cannot stay legible on phones — stack into a vertical rail */
@media (max-width: 860px) {
	.be-steps {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		gap: 1.75rem;
	}
	.be-steps::before {
		top: 34px;
		bottom: 34px;
		left: 34px;
		right: auto;
		width: 3px;
		height: auto;
	}
	.be-steps > li {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 1.25rem;
		padding: 0;
	}
	.be-steps h3 { margin-top: .35rem; }
}

/* ---------------------------------------------------------------
   Bond cost callout (required amount vs. what the customer pays)
   --------------------------------------------------------------- */

.be-bondcost {
	background: #121212;
	border: 2px solid var(--wp--preset--color--brand);
	border-radius: 18px;
	padding: clamp(1.4rem, 1rem + 1.6vw, 1.9rem);
	margin-top: 2.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: center;
}

.be-bondcost__col { text-align: center; }

.be-bondcost__col + .be-bondcost__col { border-left: 1px solid #2E2E2E; }

.be-bondcost__label {
	margin: 0 0 .4rem;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #9C9C9C;
}

.be-bondcost__col + .be-bondcost__col .be-bondcost__label {
	color: var(--wp--preset--color--brand);
}

.be-bondcost__fig {
	margin: 0 0 .3rem;
	font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.1rem);
	font-weight: 800;
	line-height: 1;
	color: #FFFFFF;
}

.be-bondcost__col + .be-bondcost__col .be-bondcost__fig {
	color: var(--wp--preset--color--brand);
}

.be-bondcost__note {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	color: #B5B5B5;
}

/* Stack the two figures on narrow screens; the divider moves to the top edge */
@media (max-width: 640px) {
	.be-bondcost { grid-template-columns: 1fr; gap: 1.25rem; }
	.be-bondcost__col + .be-bondcost__col {
		border-left: 0;
		border-top: 1px solid #2E2E2E;
		padding-top: 1.25rem;
	}
}

/* ---------------------------------------------------------------
   Surety bond directory (featured cards + A–Z index)
   --------------------------------------------------------------- */

.be-bondgrid {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.be-bondgrid > li { display: flex; }

.be-bondgrid > li > a {
	flex: 1;
	display: block;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	padding: 1.4rem 1.1rem;
	text-align: center;
	text-decoration: none;
	background: var(--wp--preset--color--base);
	transition: border-color .15s ease, transform .15s ease;
}

.be-bondgrid > li > a:hover {
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-2px);
}

.be-bondgrid__icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--wp--preset--color--surface-warm);
	color: var(--wp--preset--color--ink);
	display: grid;
	place-items: center;
	margin: 0 auto .8rem;
}

.be-bondgrid__icon svg { display: block; }

.be-bondgrid h3 {
	margin: 0 0 .3rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}

.be-bondgrid p {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
	color: var(--wp--preset--color--body);
}

.be-bondaz {
	margin-top: 2.5rem;
	border-top: 2px solid var(--wp--preset--color--brand);
	padding-top: 1.5rem;
}

.be-bondaz__group + .be-bondaz__group { margin-top: 1.4rem; }

.be-bondaz__letter {
	margin: 0 0 .5rem;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--brand);
}

.be-bondaz ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .35rem 1.2rem;
}

.be-bondaz li {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--body);
}

.be-bondaz li a { color: inherit; text-decoration: none; }
.be-bondaz li a:hover { color: var(--wp--preset--color--ink); text-decoration: underline; }

@media (max-width: 780px) {
	.be-bondgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.be-bondaz ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
	.be-bondgrid { grid-template-columns: 1fr; }
	.be-bondaz ul { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.be-footer { background: var(--wp--preset--color--ink); }
.be-footer p,
.be-footer li { color: #D8D8D8; }
.be-footer h2,
.be-footer h3,
.be-footer h4 { color: #fff; }
.be-footer a { color: #D8D8D8; text-decoration: none; }
.be-footer a:hover { color: var(--wp--preset--color--brand); text-decoration: underline; }
.be-footer ul { list-style: none; padding-left: 0; }
.be-footer li + li { margin-top: .45rem; }

/* ---------------------------------------------------------------
   Utilities
   --------------------------------------------------------------- */

.be-measure { max-width: 62ch; }
.be-center { margin-inline: auto; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip-path: none;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--ink);
	height: auto;
	width: auto;
	margin: 0;
	padding: .75rem 1.25rem;
	position: fixed;
	top: .5rem;
	left: .5rem;
	z-index: 999999;
	font-weight: 700;
	border-radius: 6px;
	text-decoration: none;
}

/* ---------------------------------------------------------------
   Blog: card grid
   --------------------------------------------------------------- */

/* WordPress emits a fixed 3-track grid for columnCount, which does not
   reflow on smaller screens. Step it down ourselves. */
@media (max-width: 900px) {
	.be-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
	.be-postgrid { grid-template-columns: 1fr !important; }
}

.be-postgrid > li { display: flex; }

.be-postcard {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.be-postcard:hover,
.be-postcard:focus-within {
	border-color: var(--wp--preset--color--brand);
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateY(-2px);
}

/* The group block's constrained layout sets max-width + auto inline margins on
   every child. Inside a flex column an auto cross-axis margin cancels stretch,
   so the featured image fell back to the image's intrinsic width and spilled
   past the card (clipped by overflow:hidden, but at the wrong scale). */
.be-postcard > *,
.be-postcard__body > * {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.be-postcard__media { margin: 0; }

.be-postcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.be-postcard__body {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	padding: 1.4rem;
	flex: 1 1 auto;
}

.be-postcard__date {
	margin: 0;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 600;
}

.be-postcard .wp-block-post-title { margin: 0; line-height: 1.25; }

.be-postcard .wp-block-post-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.be-postcard:hover .wp-block-post-title a { color: var(--wp--preset--color--brand-dark); }

.be-postcard .wp-block-post-excerpt {
	margin: 0;
	color: var(--wp--preset--color--body);
}

.be-postcard .wp-block-post-excerpt__excerpt { margin: 0; }

/* Push the read-more to the bottom so cards of different text length
   still line their links up across the row. */
.be-postcard__more {
	margin: auto 0 0;
	padding-top: .35rem;
	font-weight: 700;
}

.be-postcard__more a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--brand);
	padding-bottom: 2px;
}

.be-postcard__more a:hover { color: var(--wp--preset--color--brand-dark); }

/* ---------------------------------------------------------------
   Blog: single post
   --------------------------------------------------------------- */

.be-posthead .wp-block-post-terms,
.be-posthead .be-posthead__date {
	margin: 0;
	color: var(--wp--preset--color--brand);
}

.be-posthead .wp-block-post-terms a {
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

.be-posthead .be-posthead__date {
	margin-top: 1rem;
	color: #C9C9C9;
}

/* Long-form article body */
.be-prose > * + * { margin-top: 1.15em; }

.be-prose h2 {
	margin-top: 2.4em;
	margin-bottom: .2em;
	line-height: 1.25;
}

.be-prose h3 {
	margin-top: 1.8em;
	margin-bottom: .2em;
	line-height: 1.3;
}

/* Brand tick under every major section heading, matching .be-ruled */
.be-prose h2::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-top: .55rem;
	background: var(--wp--preset--color--brand);
	border-radius: 2px;
}

.be-prose ul:not(.be-checklist),
.be-prose ol { padding-left: 1.25rem; }

.be-prose li + li { margin-top: .45em; }

.be-prose a { color: var(--wp--preset--color--ink); }

.be-prose .be-card { margin-block: 2em; }

.be-prose .be-card h2 { margin-top: 0; }

.be-prose .be-card h2::after { display: none; }

/* Tables: readable on phones without breaking the page width */
.be-prose .wp-block-table,
.be-table {
	overflow-x: auto;
	margin-block: 1.8em;
}

.be-prose .wp-block-table table,
.be-table table {
	border-collapse: collapse;
	width: 100%;
	font-size: var(--wp--preset--font-size--small);
}

.be-prose .wp-block-table th,
.be-table th {
	background: var(--wp--preset--color--ink);
	color: #fff;
	text-align: left;
	font-weight: 700;
	padding: .7rem .9rem;
	border: 1px solid var(--wp--preset--color--ink);
}

.be-prose .wp-block-table td,
.be-table td {
	padding: .7rem .9rem;
	border: 1px solid var(--wp--preset--color--line);
	vertical-align: top;
}

.be-prose .wp-block-table tbody tr:nth-child(even) td,
.be-table tbody tr:nth-child(even) td {
	background: var(--wp--preset--color--surface);
}

/* Article banner: source images vary from 3:2 to square, so crop to a fixed
   band rather than letting a 1000px-tall image own the whole viewport. */
.be-postbanner { margin-bottom: var(--wp--preset--spacing--60); }

.be-postbanner img {
	width: 100%;
	height: clamp(200px, 26vw, 360px);
	object-fit: cover;
	border-radius: 12px;
}

/* ---------------------------------------------------------------
   Instruction panels (dark figures inside article bodies)
   --------------------------------------------------------------- */

.be-panel {
	--be-panel-bg: #121212;
	--be-panel-card: #1D1D1D;
	--be-panel-text: #B5B5B5;
	--be-panel-rule: rgba(255, 199, 44, .5);

	background: var(--be-panel-bg);
	border: 2px solid var(--wp--preset--color--brand);
	border-radius: 18px;
	padding: clamp(1.5rem, 1rem + 2.4vw, 3rem);
	margin-block: 2.6em;
	color: var(--be-panel-text);
}

.be-panel__title {
	margin: 0;
	text-align: center;
	color: var(--wp--preset--color--brand);
	text-transform: uppercase;
	font-weight: 800;
	line-height: 1.12;
	font-size: clamp(1.45rem, 1.05rem + 1.9vw, 2.4rem);
}

/* The component draws its own dividers, so suppress the prose heading tick */
.be-prose .be-panel__title::after,
.be-prose .be-panel h3::after { content: none; }

.be-panel__rule {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .9rem;
	margin: 1.1rem 0 .95rem;
}

.be-panel__rule::before,
.be-panel__rule::after {
	content: "";
	flex: 1 1 auto;
	max-width: 250px;
	height: 2px;
	background: var(--be-panel-rule);
}

.be-panel__diamond {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	background: var(--wp--preset--color--brand);
	transform: rotate(45deg);
}

.be-panel__lede,
.be-panel__foot {
	margin: 0;
	text-align: center;
	font-style: italic;
	color: #9C9C9C;
	font-size: var(--wp--preset--font-size--small);
}

.be-panel__foot { margin-top: .95rem; }

/* --- Vertical numbered timeline --- */

.be-flow {
	position: relative;
	list-style: none;
	margin: 2.4rem 0 0;
	padding: 0;
}

/* The spine, plus a diamond finial at the foot */
.be-flow::before {
	content: "";
	position: absolute;
	left: 2.4rem;
	top: 0;
	bottom: 1.4rem;
	width: 3px;
	background: var(--wp--preset--color--brand);
	transform: translateX(-50%);
}

.be-flow::after {
	content: "";
	position: absolute;
	left: 2.4rem;
	bottom: 1rem;
	width: 10px;
	height: 10px;
	background: var(--wp--preset--color--brand);
	transform: translate(-50%, 50%) rotate(45deg);
}

.be-flow > li {
	position: relative;
	margin: 0 0 2.7rem;
	padding: 0 0 0 5.6rem;
}

.be-flow > li:last-child { margin-bottom: 2.6rem; }

.be-flow__num {
	position: absolute;
	left: 2.4rem;
	top: 2.1rem;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 3.4rem;
	height: 3.4rem;
	border-radius: 50%;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--ink);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1;
}

/* Elbow joining the spine to its card */
.be-flow__num::after {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	width: 1.5rem;
	height: 3px;
	background: var(--wp--preset--color--brand);
	transform: translateY(-50%);
}

.be-flow__card {
	background: var(--be-panel-card);
	border: 1px solid var(--wp--preset--color--brand);
	border-radius: 12px;
	padding: 1.3rem 1.45rem;
}

.be-flow__step {
	margin: 0;
	color: var(--wp--preset--color--brand);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.be-flow__card h3 {
	margin: .35rem 0 0;
	color: #fff;
	line-height: 1.2;
	font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
}

.be-flow__card h3 + p { margin-top: .95rem; }

.be-flow__card p:not(.be-flow__step) { margin: 0; }

.be-flow__card h3::before {
	content: "";
	display: block;
	order: 2;
}

.be-flow__underline {
	display: block;
	width: 52px;
	height: 2px;
	margin-top: .55rem;
	background: var(--wp--preset--color--brand);
}

/* Duration pill sitting on the spine between two steps */
.be-flow__gap {
	position: absolute;
	left: 2.4rem;
	bottom: -1.45rem;
	transform: translateX(-50%);
	background: var(--be-panel-bg);
	border: 2px solid var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand);
	border-radius: 999px;
	padding: .18rem .75rem;
	font-size: .74rem;
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 560px) {
	.be-flow::before,
	.be-flow::after,
	.be-flow__num,
	.be-flow__gap { left: 1.5rem; }

	.be-flow > li { padding-left: 3.6rem; }

	.be-flow__num {
		width: 2.6rem;
		height: 2.6rem;
		font-size: 1.15rem;
		top: 1.7rem;
	}

	.be-flow__num::after { width: .9rem; }
	.be-flow__gap { font-size: .68rem; padding: .15rem .55rem; }
}

/* --- Numbered card row --- */

.be-numcards {
	list-style: none;
	margin: 2.4rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (max-width: 780px) {
	.be-numcards { grid-template-columns: 1fr; }
}

.be-numcards > li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--be-panel-card);
	border: 1px solid var(--wp--preset--color--brand);
	border-radius: 14px;
	padding: 1.8rem 1.4rem;
}

.be-numcards__num {
	display: grid;
	place-items: center;
	width: 3.2rem;
	height: 3.2rem;
	margin-bottom: 1.1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--ink);
	font-weight: 800;
	font-size: 1.4rem;
	line-height: 1;
}

.be-numcards h3 {
	margin: 0;
	color: #fff;
	line-height: 1.25;
	font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
}

.be-numcards .be-flow__underline { margin: .9rem auto 0; }

.be-numcards p { margin: .9rem 0 0; }
