/*
Theme Name:   Binhadi
Template:     osty
Description:  Child theme of Osty (Mad Sparrow) for the Binhadi website. All site-specific customization lives here so the parent theme stays unmodified and can be updated by swapping osty.zip.
Author:       Altibix Codelab Pvt. Ltd.
Author URI:   TODO
Version:      1.0.0
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:  osty
Tags:         custom-menu, editor-style, featured-images, post-formats, theme-options, translation-ready
*/

/* ==========================================================================
   Binhadi — child theme overrides

   Load order on the frontend:
     1. vendor CSS (bootstrap grid, swiper, plyr, fontawesome, ...)
     2. osty/assets/css/main.css      <- parent, compiled, ~430 KB
     3. this file                     <- enqueued at priority 999

   The parent ships compiled CSS with no SCSS sources, so there is no cascade
   to edit at source. Everything here is an override layered on top. Prefer
   matching the parent's existing selector specificity over reaching for
   !important; check main.css.map to find which concern a rule came from.

   Parent design tokens worth reusing rather than redefining:
     primary #1258ca   accent #c70a1a   black #263654
     contrast #292a2d  contrast-medium #79797c

   Dark/light is driven by [data-theme] on <body>, set from the Kirki theme
   mod. Scope colour overrides accordingly, e.g.
     [data-theme="dark"] .ms-header { ... }
   ========================================================================== */


/* Custom properties
   -------------------------------------------------------------------------- */

:root {
    /* Define Binhadi brand tokens here, then reference them below rather than
       hardcoding hex values throughout the file. */

    /* The amber the Elementor pages already use for buttons and accent
       headings. It comes from per-widget settings in the donor content, not
       from a parent token, so there is nothing upstream to reference. */
    --bh-accent: #FCCA73;

    /* Spacing scale
       ----------------------------------------------------------------------
       A 4px base. Everything this stylesheet spaces by hand uses a step from
       here rather than a value chosen for one element — that is what makes two
       unrelated blocks line up instead of nearly lining up.

       4px, not 8px: the gaps that carry meaning in running text are the small
       ones, and an 8-only scale has nothing between 8 and 16 where the
       difference between "same thing" and "next thing" actually lives.

       The section rhythm is NOT set here. That comes from the Elementor donor,
       and the build deliberately authors no style key against it — see the note
       at the top of bh-build.php. This scale governs the inside of the blocks
       this file owns. */
    --bh-s1: 0.25rem;   /*  4px  hairline separation */
    --bh-s2: 0.5rem;    /*  8px  within a line: label to value */
    --bh-s3: 0.75rem;   /* 12px  within a group: name to role */
    --bh-s4: 1rem;      /* 16px  between related lines */
    --bh-s5: 1.25rem;   /* 20px  comfortable inline padding */
    --bh-s6: 1.5rem;    /* 24px  group to group */
    --bh-s7: 2rem;      /* 32px  block to block */
    --bh-s8: 3rem;      /* 48px  breathing room inside a section */
    --bh-s9: 4rem;      /* 64px  column gutter at desktop */
    --bh-s10: 6rem;     /* 96px  the largest interval this file sets */
}


/* Typography
   -------------------------------------------------------------------------- */

/* Parent loads Inter + Poppins from Google Fonts and Graphik LCG locally.
   If Binhadi uses different faces, override the Kirki typography settings in
   the Customizer first — only fall back to CSS here for what Kirki can't reach. */


/* Justified body copy
   --------------------------------------------------------------------------

   `bh-prose` is written onto the body widget by bh_statement() in
   .devsite/bh-build.php, which every statement-derived block routes through —
   section heads, splits, legal clauses and the editorial lead. It is tagged
   rather than reached positionally because the donor sets body copy in a
   heading widget carrying the same class as the 64px headline above it; the
   only structural difference is one extra container, and a selector built on
   that lands on headlines the moment the donor changes.

   Body copy is set ragged-right. This replaces a justified setting, and the
   reasoning is worth keeping because the argument for justifying was not a bad
   one — it was just wrong about the result.

   That argument went: a browser justifies by stretching word spaces only, so
   with hyphenation off a long word is pushed down whole and the line it left
   stretches, producing rivers; therefore turn `hyphens: auto` on and let it
   break words instead. Sound in theory. Measured on the built pages it gave
   the other failure the same note warned about — a ladder of hyphens down the
   right edge, breaking `administra-tion`, `ser-vice`, `oper-ations` and
   `man-aged` in body text a visitor reads before anything else. At the 45ch
   the phone column gives, nearly every paragraph took a break.

   Ragged-right has neither failure mode. English sets ragged by default for
   this reason: even word spacing is worth more than a flush right edge, and a
   flush edge is not a quality signal anyone consciously registers. Hyphens are
   off outright — `manual` still honours a soft hyphen if copy ever needs one.

   `text-wrap: pretty` stays. It costs nothing where unsupported and keeps a
   single word from being stranded on the last line. */

.bh-prose .elementor-heading-title,
.bh-svc__lead,
.elementor-widget-text-editor p,
.bh-band--flat .e-con p {
    text-align: left;
    hyphens: manual;
    -webkit-hyphens: manual;
    text-wrap: pretty;
}

/* Headings are never justified — a stretched two-word line reads as a mistake,
   and the lead's title is a heading widget sitting inside the same block as its
   justified body. Stated rather than relied on: .bh-lead__body also carries
   .bh-prose, so without this the title would inherit nothing but the cascade
   here is narrow enough that an explicit reset is cheaper than being careful. */
.bh-lead__title .elementor-heading-title,
.bh-sechead > .e-con-inner > .elementor-widget-heading .elementor-heading-title {
    text-align: left;
    hyphens: manual;
}

/* The scope lists under each service name are dot-separated fragments in a
   wrapping flex row, not sentences. Justifying a row of flex items does nothing
   useful and `text-align` on the container would fight `flex-wrap`, so they are
   left alone deliberately rather than by omission. */


/* Header & navigation
   -------------------------------------------------------------------------- */

/* Announcement bar — markup from binhadi_announcement_bar() in functions.php.
   Sits above the header in normal flow and scrolls away; see the PHP for why
   it is not sticky. --color-bg and --color-contrast-higher both flip with
   [data-theme], so the bar follows light/dark without a second rule. */

.bh-announce {
    background-color: var(--color-contrast-higher);
    color: var(--color-bg);
}

.bh-announce__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: var(--bh-s1) var(--bh-s3);
    margin: 0 auto;
    max-width: 90rem;
    padding: var(--bh-s2) var(--bh-s5);
    font-size: 0.8125rem;
    line-height: 1.45;
    text-align: center;
}

.bh-announce__sep {
    opacity: 0.4;
}

.bh-announce__cta {
    color: var(--bh-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.bh-announce__cta:hover,
.bh-announce__cta:focus-visible {
    color: var(--color-bg);
}

/* In dark mode the bar inverts — --color-contrast-higher resolves to a near
   white sheet — and #FCCA73 on it measures 1.39:1, which is not a link so much
   as a rumour of one. The bar's own text colour already flips correctly, so the
   CTA borrows it and leans on the weight and the underline instead. */
[data-theme="dark"] .bh-announce__cta {
    color: var(--color-bg);
}

[data-theme="dark"] .bh-announce__cta:hover,
[data-theme="dark"] .bh-announce__cta:focus-visible {
    opacity: 0.72;
}

/* Below the sm breakpoint the three items wrap to three lines and the bar eats
   most of the fold. The hours are the least urgent of them. */
@media (max-width: 575px) {

    .bh-announce__hours,
    .bh-announce__sep {
        display: none;
    }
}


/* Header — pinned, and unchanging
   --------------------------------------------------------------------------

   The client wants the menu pinned and genuinely motionless: the same bar, with
   the same logo and the same seven links, in the same place, at every scroll
   position.

   The theme's own pinned mode (`type_header` = `fixed`) cannot do that. It pins
   the bar, but it also arms the scroll handler in app.js — `isFixedMenu` is
   read from `data-menu`, and at `scroll > 0` it runs showMenu(), which GSAP-
   fades the inline links out and expands a Menu button in their place. Pinning
   and animating are the same switch there, and the animation is the half the
   client does not want.

   So `type_header` stays `default` (set in bh-finish.php), which leaves that
   handler asleep, and the pin is done here instead — on `.main-header`, not on
   the `.main-header__layout` the theme pins.

   That choice is what makes `sticky` usable rather than `fixed`. A sticky
   element cannot leave its containing block, and the layout's block is the
   100px `.main-header` — it would unstick immediately. `.main-header` is itself
   a direct child of <body>, so its block is the page and it stays put for the
   whole document. Sticky also leaves the element in normal flow at rest, so the
   band keeps its own height and offset and there is no jump at the moment it
   pins, and nothing below it has to be padded to compensate.

   The band is transparent in this theme — at rest it is just page background
   showing through — so pinned it needs a fill of its own, or content scrolls up
   underneath the links. Same recipe the theme uses for its own floating chrome
   (the mobile nav trigger, the scrolled widget cluster): most of --color-bg
   plus a blur, which follows light and dark mode without a second rule. */

body[data-menu="default"] .main-header {
    position: sticky;
    top: 0;
    z-index: 9;
    background-color: color-mix(in srgb, var(--color-bg) 88%, transparent);
    backdrop-filter: blur(10px);
}

/* Logged in, the WP admin bar owns the top 32px of the viewport. */
body.admin-bar[data-menu="default"] .main-header {
    top: 32px;
}

/* Active menu item — final review, item 20
   --------------------------------------------------------------------------

   WordPress already emits the state; the theme just never styled it. Verified
   on both navigations: `current-menu-item` / `current_page_item` on the page
   itself, and `current-menu-ancestor` / `current_page_parent` on Services while
   a service detail page is open, so the parent highlights for its children too.

   An underline rather than a colour swap. --color-primary is hsl(37 99% 73%),
   a light amber that was chosen to sit under black button text; as link text on
   this near-white header it measures about 1.8:1 and would fail AA outright.
   As a 2px rule under text that keeps its own colour it carries the same brand
   signal at full legibility — and an underline is a non-colour cue, so the
   state survives greyscale and the common forms of colour blindness.

   The specificity is deliberate, not decorative. The theme sets
   `text-decoration: none` at (1,3,1) via
   `.main-header__layout .main-header__default > #primary-menu-default >
   .menu-item > a`, so these selectors carry one more class to land at (1,4,1).
   That is cheaper than !important and leaves the next person a fair fight. */

.main-header__layout .main-header__default > #primary-menu-default > .menu-item.current-menu-item > a,
.main-header__layout .main-header__default > #primary-menu-default > .menu-item.current-menu-ancestor > a,
.main-header__layout .main-header__default > #primary-menu-default > .menu-item.current_page_item > a,
.main-header__layout .main-header__default > #primary-menu-default > .menu-item.current_page_parent > a,
.main-header__nav #primary-menu-button > .menu-item.current-menu-item > a,
.main-header__nav #primary-menu-button > .menu-item.current-menu-ancestor > a,
.main-header__nav #primary-menu-button > .menu-item.current_page_item > a,
.main-header__nav #primary-menu-button > .menu-item.current_page_parent > a {
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;

    /* The headline typeface has deep descenders; letting the rule break around
       them turns a clean 2px line into a dotted one. */
    text-decoration-skip-ink: none;
}


/* Home type scale — final review, item 24
   --------------------------------------------------------------------------

   The document asks for the main heading at 75% and the subheading at 60% of
   "existing". Neither figure can be applied as written. The hero standfirst is
   already 16px and 60% of it is 9.6px — body copy, shrunk below readable. And
   the baseline the client measured on 05/10 no longer exists: the hero was
   rebuilt afterwards, so "existing" refers to a page that is not this one.

   What is actually out of proportion, measured 16/10 at 1440/1024/390:

     hero h1                      60 / 36 / 28
     hero standfirst              16 / 16 / 16
     "The work behind your work"  57.6 / 60 / 28

   The third row is the finding. At 1024 the section heading is 60px against a
   36px page headline — the subordinate heading is two-thirds larger than the
   one it sits under. So both headings come down and the standfirst is left
   alone, which is the spirit of the item: the heading stack is too loud
   against its own body copy.

   Clamps rather than three per-breakpoint rules. Elementor authored discrete
   px at each breakpoint, which is what produced the 1024 inversion in the
   first place — a continuous curve cannot invert halfway along it.

     h1  28px floor, 45px ceiling   (was 60 / 36 / 28, now 45 / 32.8 / 28)
     h2  26px floor, 38px ceiling   (was 57.6 / 60 / 28, now 38 / 27.6 / 26)

   Mobile is left at its 28px headline. 28px is already small for a hero and
   the item is about balance, which is a desktop problem here.

   `bh-photo-row` is build-authored and stable; element ids are not. The second
   selector has no class of its own to hold onto, so it is reached positionally
   — the top-level container after the one holding the sticky hero — the same
   idiom already used further down this file.

   The headline's size is set by `.elementor-7596 .elementor-element
   .elementor-element-e7b9d73 .elementor-heading-title` at 0,4,0, in a
   stylesheet enqueued after this one. `body.home .bh-photo-row h1.elementor-
   heading-title` is 0,3,2 and loses to it — measured, not assumed; the first
   attempt left the headline at 60px. `.elementor-widget` and
   `.elementor-widget-heading` are both already on the wrapper, so stacking
   them reaches 0,5,2 without !important and without naming the element id. */

body.home .bh-photo-row .elementor-widget.elementor-widget-heading h1.elementor-heading-title {
    font-size: clamp(1.75rem, 3.2vw, 2.8125rem);

    /* The donor pins line-height in px, so it does not follow the font down —
       at 45px type the authored 60px leading opens a visible gap between the
       two lines of the headline. */
    line-height: 1.04;
}

body.home .e-con.e-parent:has(> .ms-sticky-w) + .e-con.e-parent h2.elementor-heading-title {
    font-size: clamp(1.625rem, 2.7vw, 2.375rem);
    line-height: 1.08;
}

/* …but not the body copy underneath it — final review #3, item 7: "Reduce the
   size of this paragraph."

   The rule above says "every h2 in the container after a sticky one", and on
   this site that is not the same set as "every heading". bh_statement() renders
   body copy through a heading widget, so a paragraph is an
   `h2.elementor-heading-title` exactly like the title above it, and it was
   picking up the 38px display size meant for the section head.

   Measured: every .bh-prose body on the site is 18px except this one, which was
   38px — "Headquartered in Vengoor, Perinthalmanna, Kerala, we support clients
   globally…", set at the same size as "Serving clients globally" above it. The
   stored widget is byte-identical to the two other splits on About and
   Commitments; the only difference is that this one sits after a sticky
   container, which is what the selector keys on.

   `inherit`, not a number. The widget already carries its own 18/18/16px
   typography, which Elementor emits onto the wrapper, and the theme's
   `* { font: inherit }` reset means the h2 takes it unless something intervenes.
   So this does not impose a size — it gets out of the way and lets the one that
   was already authored through. The cascade is the same on every breakpoint for
   free, which three hardcoded clamps would not be.

   Scoped by .bh-prose rather than by position. The adjacency above is
   positional and item 6 removes a top-level section from this page; anything
   anchored to an index would have quietly re-aimed itself. */
body.home .e-con.e-parent:has(> .ms-sticky-w) + .e-con.e-parent .bh-prose h2.elementor-heading-title {
    font-size: inherit;
    line-height: inherit;
}


/* The hole under the Home standfirst
   --------------------------------------------------------------------------

   Reported 03/11/2026 as an empty band between the "Let's Talk / Explore
   Services" buttons and the "Business process outsourcing, end to end"
   heading.

   The block is bh_dup($T['hero']) — the donor's FULL-SCREEN hero, reused as the
   second block on the page. It carries the donor's `min_height:
   calc(100vh - 0px)` with `justify-content: center` and 100px of top padding
   and no bottom padding, and its content does not fill a screen. The leftover
   is dead space that grows with the window, which is why it reads as a layout
   fault on a large monitor and as nothing much on a laptop:

     1280x800    43px
     1440x900    91px
     1920x1000  141px
     1920x1080  181px

   The donor already sets `min_height_mobile: 0` for the same reason; this is
   that decision carried up to the widths where the block is not a hero either.
   The 100px of top padding stays — it is what separates this block from the
   real hero above it. The join below it needed its own fix; see the next rule.

   Reached positionally because the block has no class of its own. Same idiom as
   the two rules above: the top-level container after the one holding the sticky
   hero. Elementor emits the min-height as `.elementor-7596 .elementor-element
   .elementor-element-{id}` at 0,3,0 from a stylesheet enqueued after this file,
   so a tie would be a loss — this lands at 0,5,1. */

body.home .e-con.e-parent:has(> .ms-sticky-w) + .e-con.e-parent {
    min-height: 0;
}

/* The buttons at the bottom of that block used to sit flush on the box's own
   bottom edge — the donor set `padding: 100px 0 0 0`, harmless while the block
   was a 100vh hero with its content centred, not harmless once it is sized by
   its content. That edge is drawn: the pinned-card shadow further down this
   file spills about 25px past the border box. The padding floor that fixes it
   lives on that rule rather than here, because the same thing was true of every
   other block carrying the same shadow. */

/* …and the band that was left under it. With the min-height gone the buttons
   still sat 154px above the rule that opens the next section head — 8vw of
   donor margin over a block that has no bottom padding of its own, so the
   whole interval is empty page. With a hairline across the bottom of it, an
   empty interval stops reading as spacing and starts reading as a section with
   nothing in it, which is what was reported twice.

   …and the band that was left under it. With the min-height gone the buttons
   still sat 154px above the next section head — 8vw of donor margin over a
   block that has no bottom padding of its own, so the whole interval is empty
   page.

   The border is the half of this that mattered. `.bh-sechead` carries a
   `border-top: 1px solid rgba(18, 18, 18, 0.13)` and the colour either side of
   it is identical — sampled every 2px down the join, it is rgb(245, 245, 245)
   painted by `body` the whole way. So there was never a white panel here; a
   stretch of empty background with a line ruled across the bottom of it simply
   stops reading as spacing and starts reading as an empty box. Shrinking the
   margin alone made the box smaller three times over and it was still a box.

   Dropping the rule here is a deliberate exception — every other section head
   on the site keeps it. This is the only one that follows a centred pair of
   buttons rather than a block of content, which is exactly why the rule read
   as an underline on the buttons instead of an opening for the heading.

   24px for what is left, matching the 24px of bottom padding added to the
   block above so the join is even on both sides of its edge. Zero was tried
   and screenshotted first: it put a 64px display headline 17px under a button,
   which reads as a collision.

   `--margin-top`, not `margin-top`: Elementor resolves container margins
   through that custom property, so setting the property itself is overwritten
   by the variable on the next cascade pass. Same trap, same workaround, as the
   `.bh-promise + .bh-sechead` rule further down this file — the other place on
   the site where a section head follows a block that supplies no air of its
   own. */

body.home .e-con.e-parent:has(> .ms-sticky-w) + .e-con.e-parent + .bh-sechead.e-con.e-parent {
    --margin-top: var(--bh-s6);
    border-top: 0;
}


/* Above the theme's own 1023px hamburger breakpoint the inline links are the
   only navigation on the page — the Menu button that is supposed to replace
   them computes 0px wide at these widths.

   showMenu() in app.js blanks those links (GSAP autoAlpha:0, x:-35) and sizes
   the button from `$('.container-menu').outerWidth()`, measured inside the
   `$(window).load()` handler in ms_menu_button(). When that measurement comes
   back 0 — the element is still behind the #loaded transition overlay, or the
   load event fired before the handler bound — the links fade out and the button
   animates to nothing. The result is a bar with a logo and a blank right-hand
   side, and since only hideMenu() restores the links and nothing calls it, it
   stays that way for the rest of the visit.

   ponytail: this makes the broken state invisible at desktop widths rather than
   fixing the measurement, because the measurement lives in minified vendor JS
   that a theme update overwrites. If the same blanking ever shows up BELOW
   1023px, where the Menu button is real and this guard does not apply, the race
   has to be fixed at the source instead.

   !important is not decoration here: GSAP writes opacity/visibility/transform
   as inline styles, and nothing but !important outranks those. */

@media (min-width: 1024px) {

    #primary-menu-default > li.menu-item {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

@media screen and (max-width: 782px) {

    body.admin-bar[data-menu="default"] .main-header {
        top: 46px;
    }
}


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

/* Note: the footer is an Elementor template chosen via the `footer_template`
   theme mod, not a PHP template. Structural footer changes belong in Elementor;
   only styling belongs here. */

/* The footer is cut off on small laptops
   --------------------------------------------------------------------------

   Found 03/11/2026 by `bh-clip.mjs`. Two of the footer's rows are authored at
   a fixed `width: 1320px` with a `width_tablet: 100%` override, and Elementor's
   tablet breakpoint is 1024px — so from 1025px until the viewport reaches
   1320px the row is wider than the screen, centres itself on negative offset,
   and loses both ends:

     1025px   147px off each side
     1152px    84px off each side
     1280px    20px off each side
     1366px   fits

   On every page. "LET'S MAKE IT HAPPEN." renders as "T'S MAKE IT / APPEN." and
   the Legal column — Privacy Policy, Terms of Service — is off-screen and
   unclickable.

   Nothing caught it because nothing could: `main.css` sets
   `html{overflow-x:hidden}` and `.ms-footer{overflow:hidden}`, so there is no
   scrollbar and `scrollWidth - clientWidth` reads 0. `bh-shoot.mjs` asserts
   exactly that and passes while the content is being chopped.

   `max-width`, not a `width` override: Elementor emits the width at 0,3,0 from
   a stylesheet enqueued after this file, and a tie would lose — but it sets no
   max-width at all, so capping on a different property sidesteps the fight
   entirely. `flex-wrap` because the row's own children are 660 + 200 + 200 +
   200 and still do not fit a 1152px screen once the row stops overflowing;
   without it they would just overflow one level further in.

   The inline padding is the gutter the fixed width never left room for. At
   1320px exactly the row would otherwise touch both edges. */

footer.ms-footer .e-con {
    max-width: 100%;
}

/* Shrink, don't wrap. The row's children are authored at 660px and three times
   250px — 1410px of columns — so capping the row alone just moved the overflow
   one level in.

   `flex-wrap: wrap` was the first attempt and it is the wrong tool: flexbox
   breaks lines using each item's hypothetical size, so with wrap on, the items
   wrap *before* they are ever asked to shrink. The Legal column dropped out of
   the four-across row and landed under the headline. Measured, not guessed —
   the columns still read 250px wide with `flex-shrink: 1` already on them.

   With wrapping off they shrink proportionally instead and the four-column
   footer survives to 1025px, below which Elementor's own tablet widths (45%
   and 100%) take over and stack it properly. `min-width: 0` because a flex
   item will not shrink past its longest word otherwise.

   Bounded above at 1359px on purpose. The 1320px row fits from about 1360px
   up, and applied unconditionally this rule re-proportioned a footer that was
   not broken — the first column went 660px to 590px and the other three 200px
   to 223px at every desktop width. The fault only exists below the point where
   the authored width fits, so the fix lives there too. */
@media (max-width: 1359px) {

    footer.ms-footer .e-con.e-flex > .e-con {
        flex-shrink: 1;
        min-width: 0;
    }
}

footer.ms-footer .e-con.e-parent {
    padding-inline: max(var(--padding-inline-start, 0px), var(--bh-s5));
}

/* The bottom row — legal name and locality — is set to #626262 by bh-finish.php,
   chosen to clear 4.5:1 against the footer's #EAEAEA in light mode. The footer
   background flips with the theme and that grey does not, so in dark mode the
   same row measures 2.57:1. The light value is left alone and dark gets the
   token, which is the same intent expressed in a colour that flips.

   .bh-footer-muted is tagged in bh-finish.php because the element id Elementor
   would otherwise need as a hook is regenerated on every build.

   Five classes, not four. Elementor emits title_color as
   `.elementor-7612 .elementor-element.elementor-element-{id}
   .elementor-heading-title`, also 0,4,0 — and `elementor-post-7612-css` is
   enqueued *after* the child stylesheet, so a tie is a loss here. The extra
   `.elementor-widget-heading` sits on the same wrapper and takes it to 0,5,0. */
[data-theme="dark"] .bh-footer-muted.elementor-widget.elementor-widget-heading .elementor-heading-title {
    color: var(--color-contrast-medium);
}


/* Search suggestions
   --------------------------------------------------------------------------

   Markup from searchform.php in this theme. The form sits in the header's
   full-screen search modal, which is a dark sheet in both themes, so the colours
   here are keyed to the modal rather than to the page. */

.bh-search-sugg {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--bh-s2) var(--bh-s3);
    margin-top: var(--bh-s4);
}

.bh-search-sugg__label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

.bh-search-sugg__item {
    padding: var(--bh-s1) var(--bh-s3);
    border: 1px solid currentColor;
    border-radius: 50em;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.bh-search-sugg__item:hover,
.bh-search-sugg__item:focus-visible {
    opacity: 1;
    background-color: rgba(127, 127, 127, 0.18);
}


/* Contact form
   -------------------------------------------------------------------------- */

/* The honeypot. Added to every CF7 form by the contact-form step in
   .devsite/bh-finish.php and checked by binhadi_cf7_honeypot() in
   functions.php, replacing the arithmetic CAPTCHA the 30/09/2026 review asked
   to remove.

   Moved off-screen rather than display:none or visibility:hidden — a great many
   bots skip fields hidden those two ways, which would leave the trap unsprung.
   The field is already out of the tab order and the accessibility tree; this
   only has to take it out of the picture. */

.bh-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Photographed rows — mobile legibility scrim
   -------------------------------------------------------------------------- */

/* `bh-photo-row` is set by bh_numbered() and bh_band() on every row that
   carries a background photograph.

   Those rows inherit the donor's overlay, `linear-gradient(270deg,
   transparent 0%, black 70%)`. 270deg points left, so solid black covers only
   the LEFTMOST 30% of the row and fades out across the rest — and 30% is
   width-relative. At 1410px that is 423px and the whole text column sits
   inside it; at 360px it is 108px and the copy runs out onto the photograph.

   Measured against the lightest pixel actually rendered behind the text:

     1440px   5.6:1 - 8.9:1   passes AA across all seven rows
      390px   1.2:1 - 2.4:1   fails AA on six of seven; 1.2:1 is invisible

   So below the lg breakpoint the gradient is re-anchored to cover the text
   rather than a fixed fraction of the width. The photograph still reads
   through the right of the frame, which is all that is visible at this size
   anyway.

   !important is deliberate and not laziness: Elementor emits this overlay as
   `.elementor-{page} .elementor-element.elementor-element-{id}::before`,
   specificity 0,4,1, and that element id changes on every rebuild — so there
   is no stable selector to match it with. */

@media (max-width: 991px) {

    .bh-photo-row::before {
        background-image: linear-gradient(
            270deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.93) 45%
        ) !important;
    }
}


/* Editorial lead
   --------------------------------------------------------------------------

   One large statement, used once per page, where the page should slow down.
   Emitted by bh_lead() in .devsite/bh-build.php.

   The theme sets headings in uppercase, which is right for a section label and
   wrong for a sentence someone is meant to read and believe — caps cost about
   a third of reading speed at this length and strip the ascender/descender
   shapes the eye uses to recognise words. Sentence case here, uppercase left
   alone everywhere else.
   -------------------------------------------------------------------------- */

.bh-lead {
    --bh-lead-measure: 20ch;
}

/* Four classes, to clear the 0,3,0 that Elementor emits for the widget's own
   typography. The title and body are tagged from the builder rather than
   reached positionally — see the note in bh_lead(). */
.bh-lead .bh-lead__title.elementor-widget .elementor-heading-title {
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: none;
    max-width: var(--bh-lead-measure);
}

/* The body is a heading widget too, so it inherits the uppercase and the
   headline scale. It is a sentence, and should be set like one. */
.bh-lead .bh-lead__body.elementor-widget .elementor-heading-title {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.65;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
    max-width: 52ch;
}

@media (min-width: 992px) {

    .bh-lead {
        --bh-lead-measure: 24ch;
    }

    /* Statement and body as aligned columns, same device as the section heads
       but weighted further toward the statement — this is the one thing on the
       page meant to be read slowly. Without it the donor drops the body below
       and to the right of the heading, leaving a hole between them. */
    .bh-lead > .e-con-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        gap: 0 var(--bh-s9);
        align-items: end;
    }

    .bh-lead > .e-con-inner > .e-con {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0.4rem;
    }
}


/* Body-column width reset
   --------------------------------------------------------------------------

   The statement donor sets its body widget to `_element_width: initial` at
   50%, which Elementor renders as `.elementor-widget__width-initial` with an
   explicit width, right-aligned inside its container. Across a full-bleed
   section that produces the intended heading-left / body-right pairing. Inside
   a column — which is what all three of these wrappers create — it halves an
   already-halved column: the lead's standfirst came out 240px wide inside a
   480px cell, about fifteen characters a line.

   Not a padding problem, which is what it looks like. Three classes to tie
   Elementor's own 0,3,0 rule, and this sheet loads after it.
   -------------------------------------------------------------------------- */

.bh-lead .elementor-widget.elementor-widget__width-initial,
.bh-sechead .elementor-widget.elementor-widget__width-initial,
.bh-splitcopy .elementor-widget.elementor-widget__width-initial,
.bh-promise .elementor-widget.elementor-widget__width-initial {
    width: 100%;
    max-width: 100%;
}

.bh-splitcopy .elementor-heading-title {
    max-width: 38ch;
}

/* The image half of a split. The donor's image widget carries a 15px pad and a
   1px hairline on .elementor-widget-container — the framed-thumbnail treatment
   that suits the client logos further down the page, and leaves a picture
   floating inside a box here. Stripped inside the split only; the logo grid
   uses the same widget and keeps its frame. */

/* !important for the same reason as bh-photo-row: Elementor scopes this to
   `.elementor-{page} .elementor-element.elementor-element-{id} >
   .elementor-widget-container`, and that element id is regenerated on every
   build, so there is no stable selector to out-specify it with. */
.bh-splitimg .elementor-widget-container {
    padding: 0 !important;
    border: 0 !important;
}

/* The <img> already fills the column; what was leaving a gap on either side is
   the theme's `object-fit: contain` letterboxing a squarer source inside it.
   A stated aspect-ratio plus cover crops it instead. */
.bh-splitimg img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 26rem;
    object-fit: cover !important;
    object-position: center;
    border-radius: 18px;
    display: block;
}


/* Section heads
   --------------------------------------------------------------------------

   Heading and standfirst as an editorial pair, from bh_section_head(). The
   donor stacks them full-width and indents the body, which on a page carrying
   four of these in a row reads as four identical blocks each with a hole in
   the middle. Here they sit as two aligned columns under a hairline rule, so
   the rule does the work of separating sections and the standfirst sits where
   the eye already is.

   Single column below lg — two 45%-ish columns on a tablet leaves the
   standfirst too narrow to read.
   -------------------------------------------------------------------------- */

.bh-sechead {
    border-top: 1px solid rgba(18, 18, 18, 0.13);
}

/* …and air under it. The rule above draws an edge; the donor gives these
   containers no top padding, so every section head on the site had its title
   starting 10px below its own hairline — the `.e-con-inner` Elementor inserts
   supplies that 10px and nothing else does. Against a 64px display face that
   reads as the heading resting on the line rather than opening below it.

   Found by `bh-deadspace.mjs`, not by eye: 15 of 15 pages, every section head
   on each. Reported on 03/11/2026 as "elements which are in the edges of the
   borders".

   24px on top of the inner box's 10px. `max()` against Elementor's own custom
   property so a container that already carries authored padding — the donor
   sets 15px at tablet — keeps the larger of the two rather than being reset to
   this one. Setting the property while reading the variable is not a cycle.

   `body` on the front so this lands at 0,3,1 and clears Elementor's per-element
   0,3,0; a tie would lose, since `elementor-post-{id}-css` is enqueued after
   this file. */
body .bh-sechead.e-con {
    padding-block-start: max(var(--padding-block-start, 0px), var(--bh-s6));
}

/* Section heads are set in sentence case. That is done on the data in
   bh_statement(), not here — see the note there for why a CSS override could
   not win against Elementor's per-element rule. */

[data-theme="dark"] .bh-sechead {
    border-top-color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 992px) {

    /* 1.45fr, not 1.1: at the narrower ratio "Trusted by growing businesses"
       broke onto three lines while the standfirst beside it had room to
       spare. */
    .bh-sechead > .e-con-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        gap: 0 var(--bh-s9);
        align-items: start;
    }

    /* The body container carries the donor's indent; as a grid column it is
       already where it should be. */
    .bh-sechead > .e-con-inner > .e-con {
        padding-left: 0;
        padding-right: 0;
    }

    /* The three-child form — eyebrow, title, body — and the typography that
       set the eyebrow as a label both lived here. The client asked for the
       ornamental labels to come off the whole site, so every bh_statement()
       and bh_ticker() call now passes '' and the widget is sliced out at build
       time: a .bh-sechead has exactly two children everywhere, and a
       :has(> :nth-child(3)) guard could never match again. Removed rather than
       left to rot; git has it if the labels ever come back. */
}

.bh-sechead .elementor-heading-title {
    margin: 0;
}


/* Questions we get asked
   --------------------------------------------------------------------------

   Built by bh_faq() in bh-build.php and spliced onto Home by bh-add-faq.php.
   The block authors no style key at all — it is three bh_statement() clones in
   a two-column grid, tagged `.bh-faq`, `.bh-faq__intro` and `.bh-faq__item`,
   and everything below is what turns that into a Q&A.

   Reaching the type takes five classes, not four. The donor sets the title at
   64px and Elementor emits it as `.elementor-{page} .elementor-element
   .elementor-element-{id} .elementor-heading-title` — 0,4,0, from a stylesheet
   enqueued after this file, so matching it is a loss. `.elementor-widget` and
   `.elementor-widget-heading` are both already on the wrapper, which gets
   there without naming an element id that regenerates on every build.

   The child combinators are load-bearing. An answer is also a heading widget
   carrying `.elementor-heading-title` — bh_statement() renders body copy that
   way — so a descendant selector aimed at the question lands on the answer
   too. `>` is what keeps a 21px question and an 18px answer apart.
   -------------------------------------------------------------------------- */

/* The two columns. Elementor resolves a container's grid through custom
   properties, and on a boxed container the grid is on the `.e-con-inner` it
   inserts — so both have to be set or the rule silently does nothing. Same
   trap documented on `.bh-swipe`.

   1fr / 1.45fr gives the answers the room: they are the content, the intro is
   a label for them. */
@media (min-width: 992px) {

    .bh-faq,
    .bh-faq > .e-con-inner {
        --e-con-grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
        column-gap: var(--bh-s9);
        align-items: start;
    }

    /* The intro rides along as the answers scroll past it. `top` clears the
       84px sticky header plus a little air; `max-height` keeps it from
       sticking when it is taller than the viewport, which would pin it mid
       scroll and look stuck rather than deliberate. */
    .bh-faq__intro {
        position: sticky;
        top: 6.5rem;
        max-height: calc(100vh - 8rem);
    }
}

/* 2.375rem ceiling, matching the section-head clamp further up: this heading
   does the same job and sat at the donor's full 64px, which next to a 21px
   question read as two different pages. */
.bh-faq__intro > .e-con-inner > .elementor-widget.elementor-widget-heading .elementor-heading-title {
    font-size: clamp(1.625rem, 2.7vw, 2.375rem);
    line-height: 1.08;
}

/* Un-indent the body. The donor wraps body copy in a container set to
   `justify-content: flex-end` with the widget inside at 50% width, so it sits
   to the right of a full-width headline. That is right across a whole page and
   wrong in a column: measured, the answer started 350px into a 703px column
   with the left half empty. Same correction `.bh-splitcopy` makes, for the
   same donor and the same reason. */
.bh-faq__intro > .e-con-inner > .e-con,
.bh-faq__item > .e-con-inner > .e-con {
    justify-content: flex-start;
}

.bh-faq__intro .elementor-widget.elementor-widget__width-initial,
.bh-faq__item .elementor-widget.elementor-widget__width-initial {
    width: 100%;
    max-width: 100%;
}

.bh-faq__intro .bh-prose .elementor-heading-title {
    max-width: 38ch;
}

/* The donor's 8vw section margin, which is right between two sections and
   absurd between two questions — it put 115px of air inside the list at 1440.
   The rule and the block padding do the separating here.
   `body` on the front: Elementor sets the variable at 0,3,0 and a bare
   `.bh-faq__item` is 0,1,0, which measured as no change at all. */
body .bh-faq__item.e-con.e-parent {
    --margin-top: 0;
    --margin-bottom: 0;
}

.bh-faq__img {
    margin-top: var(--bh-s7);
}

/* The donor's image widget is the framed-thumbnail treatment — 15px of padding
   and a hairline on `.elementor-widget-container` — which suits the client
   logo grid and leaves a photograph floating inside a box here. Stripped the
   same way `.bh-splitimg` strips it, and with !important for the same reason:
   Elementor scopes it to an element id that regenerates on every build. */
.bh-faq__img .elementor-widget-container {
    padding: 0 !important;
    border: 0 !important;
}

/* 4:5 and cropped, rather than whatever ratio the frame happens to be. The
   theme's image widget letterboxes with `object-fit: contain`, which in a
   portrait slot leaves bars down both sides. !important because that is set on
   the widget's own element rule. */
.bh-faq__img img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover !important;
    border-radius: 2px;
}

/* The list. A rule above every item opens each question the way `.bh-sechead`
   opens a section — the same hairline, so the block reads as part of the page
   rather than as a widget dropped onto it. */
.bh-faq__item {
    border-top: 1px solid rgba(18, 18, 18, 0.13);
    padding-block: var(--bh-s6) var(--bh-s7);
}

[data-theme="dark"] .bh-faq__item {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.bh-faq__item > .e-con-inner > .elementor-widget.elementor-widget-heading .elementor-heading-title {
    font-size: 1.3125rem;
    line-height: 1.3;
    text-transform: none;
}

/* The donor hangs 30px under the heading widget, which with the container's
   own 20px gap put 50px between a question and its answer — they read as
   unrelated. The gap alone is the right amount. */
.bh-faq__item > .e-con-inner > .elementor-widget.elementor-widget-heading {
    margin-bottom: 0;
}

/* 52ch, not the 62ch used for body copy elsewhere in this file. `ch` is the
   width of a zero, and this face's figures are wide relative to its lowercase:
   62ch measured 700px and held 81 characters on a line, well past the point
   where the eye reliably finds the next one. 52ch lands around 68. */
.bh-faq__item .bh-prose .elementor-heading-title {
    max-width: 52ch;
}

/* Links inside an answer. The same amber underline as the active nav item, and
   for the same reason: --color-primary as link text measures about 1.8:1 on
   this background and would fail AA outright, while as a 2px rule under text
   that keeps its own colour it carries the brand signal at full legibility and
   survives greyscale. */
.bh-faq__item a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-skip-ink: none;
}

.bh-faq__item a:hover,
.bh-faq__item a:focus-visible {
    text-decoration-color: currentColor;
}

/* Stacked below lg, where the image falls between the standfirst and the first
   question — which is the order the block was designed around anyway. */
@media (max-width: 991px) {

    .bh-faq__img {
        margin-bottom: var(--bh-s7);
    }
}


/* Team tiers
   --------------------------------------------------------------------------

   Two tiers on /bh-about/, split on whether the source states a role for the
   person (see bh_team_cards()). Leadership gets the larger portraits; the
   wider team gets a quieter grid. Everywhere else the team renders as one flat
   grid and neither class applies.
   -------------------------------------------------------------------------- */

.bh-tm .ms-tm--img img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
}

.bh-tm .ms-tm--content {
    padding-top: var(--bh-s3);
}

.bh-tm .ms-tm--title {
    margin-bottom: var(--bh-s1);
    line-height: 1.25;
}

.bh-tm .ms-tm--function {
    opacity: 0.7;
    line-height: 1.35;
}

/* The wider team: same portraits, less weight. Squarer crop and smaller names
   so the leadership row above stays the one that reads first. */
.bh-tm--rest .ms-tm--img img {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
}

.bh-tm--rest .ms-tm--title {
    font-size: 0.9375rem;
}


/* Swipeable rows on a phone
   --------------------------------------------------------------------------

   The team grids and the client logo grid, tagged `bh-swipe` by bh_team_cards(),
   bh_team_grid() and bh_client_grid(). At 390px the About page spent roughly
   3,000px on portraits and the client strip 5 rows on 10 logos, which is the
   long scroll the 30/09/2026 review asked to replace with a carousel.

   Scroll-snap rather than Swiper. Swiper is enqueued on every page already, so
   it is free to use — but it wants .swiper/.swiper-wrapper/.swiper-slide markup
   and an init call, which means restructuring what the builder emits and
   shipping JS. The grid is already a row of equal cells; giving it one axis of
   overflow and a snap point per child is the same gesture, with momentum, for
   no script at all. It also degrades to a plain scrollable row anywhere the
   snap properties are missing.

   The container keeps its grid display so the children keep their sizing; only
   the flow direction and the track definition change.
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {

    /* Elementor drives its container grid through custom properties, not
       through the properties themselves: `.e-con.e-grid, .e-con.e-grid >
       .e-con-inner` resolves grid-template-columns from
       --e-con-grid-template-columns and grid-auto-flow from --grid-auto-flow.

       Overriding the variables rather than the resolved properties is what
       makes this work on both container shapes. A boxed container puts the grid
       on the .e-con-inner it inserts; a full-width one keeps it on the .e-con.
       A rule written against either element alone silently does nothing on the
       other — which is how the first attempt at this failed, visibly, on a page
       where the class was present in the markup the whole time.

       !important because the per-page CSS Elementor writes for these is
       `.elementor-{page} .elementor-element.elementor-element-{id}`, and that
       element id is regenerated on every build. */
    .bh-swipe {
        --e-con-grid-template-columns: none !important;
        --e-con-grid-template-rows: none !important;
        --grid-auto-flow: column !important;
        --overflow: auto !important;
    }

    /* Whichever of the two the grid landed on is the scroll container. Setting
       both is safe: the one that is not a grid has nothing to overflow. */
    .bh-swipe,
    .bh-swipe > .e-con-inner {
        grid-auto-columns: 66%;
        overflow-x: auto !important;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;

        /* Noise on a touch device — the half-visible next card is the
           affordance. Still keyboard-scrollable; an overflow container is
           focusable either way. */
        scrollbar-width: none;
    }

    .bh-swipe::-webkit-scrollbar,
    .bh-swipe > .e-con-inner::-webkit-scrollbar {
        display: none;
    }

    .bh-swipe > .e-con-inner > *,
    .bh-swipe > * {
        scroll-snap-align: start;
    }

    /* Leadership portraits are the largest cards on the About page; at 66% they
       lose too much of the face. One-and-a-bit per screen instead. */
    .bh-swipe:has(.bh-tm--lead),
    .bh-swipe:has(.bh-tm--lead) > .e-con-inner {
        grid-auto-columns: 76%;
    }

    /* Logos are wide and short, so more of them fit per screen. */
    .bh-swipe:has(.elementor-widget-ms_image),
    .bh-swipe:has(.elementor-widget-ms_image) > .e-con-inner {
        grid-auto-columns: 44%;
    }
}


/* Services index
   --------------------------------------------------------------------------

   The seven BPO lines on /bh-services/. Markup comes from bh_index()
   in .devsite/bh-build.php, rendered through the helper plugin's <services>
   widget, so the inner structure is fixed:

     .bh-svc                            <- Elementor widget wrapper, grid item
       .ms-sb.img-top                   <- widget root; this is the row
         .ms-sb--inner
           h3.ms-sb--title > a > span   <- the line's name
           p.ms-sb--text
             .bh-svc__lead              <- short heading (final review #2, 3.2)
             .bh-svc__scope > .bh-svc__scope-item ...

   There was a third child, `.bh-svc__cta`, holding the word "Explore" and an
   arrow. It is gone — final review #2, item 3.1 — along with the `cta` track
   the text grid reserved for it.

   There is no card here. Each row draws a single hairline above itself and
   nothing else — no border box, no fill, no radius, no shadow — so the rules
   are the only drawn element in the section and hierarchy is carried by type
   scale and space instead.

   The name/copy split is a two-column grid on .ms-sb--inner, which has exactly
   two children, so the columns need no wrapper the widget does not already
   emit. The container itself is one column at every breakpoint (set in the
   builder); only the inside of a row reflows.
   -------------------------------------------------------------------------- */

.bh-idx {
    --bh-idx-rule: rgba(18, 18, 18, 0.14);
    --bh-idx-gap: var(--bh-s9);

    /* Restraint needs room to read as intent rather than as an empty page.
       The donor's section padding stops at the container, so the breathing
       space between the band above, the rules, and the band below is set
       here. */
    padding-block: var(--bh-s4) var(--bh-s7);

    /* The donor grid centres its items and lets them size to fit-content, which
       left every row 889px wide in a 1320px container and floating in the
       middle of the page. A row here is the full measure. */
    justify-items: stretch;
}

.bh-idx > .bh-svc,
.bh-idx > .e-con-inner > .bh-svc {
    justify-self: stretch;
    width: 100%;
}

[data-theme="dark"] .bh-idx {
    --bh-idx-rule: rgba(255, 255, 255, 0.16);
}

/* main.css sets `.ms-sb .ms-sb--title a { color: initial }`. `initial` is not
   "inherit" — for `color` it resolves to the property's initial value, which is
   black, in every theme. So in dark mode every service name on the site renders
   near-black on #242323: measured 1.34:1, which is the subtitle problem the
   30/09/2026 review reported.

   currentColor takes the colour from .ms-sb--title, which is already correct in
   both modes. One rule, every <services> widget — the index rows here and the
   icon cards on the hubs and detail pages. */
.ms-sb .ms-sb--title a {
    color: currentColor;
}


/* The row
   -------------------------------------------------------------------------- */

.bh-svc .ms-sb {
    display: block;
    padding: var(--bh-s7) 0;
    border-top: 1px solid var(--bh-idx-rule);
    transition: border-top-color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The section closes on a rule too, so the last line is bounded the same way
   as the six above it. Both selectors are kept because whether the widgets are
   direct children of .bh-idx or of an .e-con-inner it inserts depends on how
   Elementor renders the container, and that has changed between versions. */
.bh-idx > .bh-svc:last-child .ms-sb,
.bh-idx > .e-con-inner > .bh-svc:last-child .ms-sb {
    border-bottom: 1px solid var(--bh-idx-rule);
}

/* The hovered row darkens its own rule. Tinting the name with --bh-accent was
   the obvious alternative and is wrong: #FCCA73 on the near-white page is
   nowhere near AA, so the hover state would make the thing you are pointing at
   harder to read. */
.bh-svc .ms-sb:hover {
    border-top-color: var(--color-contrast-higher);
}

/* Backstop. The builder blanks `image` so the widget emits no icon block at
   all, but main.css sets `.ms-sb.img-top .ms-sb--img{display:inline-block}` at
   0,3,0 — a two-class selector here loses to it, so this has to match the
   variant class too. */
.bh-svc .ms-sb.img-top .ms-sb--img,
.bh-svc .ms-sb .ms-sb--img {
    display: none;
}

/* Name left, copy right. .ms-sb--inner has exactly two children — the heading
   and the <p> — so the grid needs nothing else to place them. */
.bh-svc .ms-sb--inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 0 var(--bh-idx-gap);
    align-items: start;
}

/* Elementor emits the widget's typography as
   `.elementor-{page} .elementor-element.elementor-element-{id} .ms-sb--title`,
   which is 0,3,0 and beats a two-class selector. Four classes clears it
   without !important, and without depending on an element id that changes on
   every rebuild. */
.bh-idx .bh-svc .ms-sb .ms-sb--title {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.125rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    max-width: 12ch;
}


/* The line's mark — final review, item 11
   --------------------------------------------------------------------------

   The row's left column is 457px of a 1256px measure and holds the service
   name and nothing else. That is the emptiness the client reported; the
   description already fills the right.

   The icon is the one the service's own detail page shows, so the hub and the
   page it links to carry the same mark. It arrives as a pseudo-element on the
   name rather than through the <services> widget's image slot, which is the
   route that looks obvious and is wrong: the widget wraps the image in the
   row's own <a> whenever the row links somewhere, so all seven rows would gain
   a second tab stop to a destination they already link to — the reason the CTA
   beside them is a <span>. A pseudo-element cannot be focused and never
   reaches the accessibility tree.

   Masked and filled with the theme's own ink rather than drawn as an <img>.
   The files are #B0978A line art, which measures 2.5:1 against this page — fine
   for the tan cards on a detail page, washed out at 40px on a near-white index.
   Through a mask the fill follows --color-contrast-higher, so the mark is 6:1
   in light mode and 7.5:1 in dark with no second asset and no [data-theme]
   rule. `background-color`, not `background`, so the mask properties below are
   not reset by a shorthand.

   Root-relative URLs: these are uploads, so the path is the same on every host
   this site runs on, and a path with no origin is not something the
   dev-port-rewrite mu-plugin has to know about. */

.bh-svc--icon .ms-sb--title::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: var(--bh-s4);
    background-color: var(--color-contrast-higher);
    opacity: 0.72;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.bh-svc--finance-accounting .ms-sb--title::before {
    -webkit-mask-image: url("/wp-content/uploads/2026/09/bh-finance-accounting.svg");
    mask-image: url("/wp-content/uploads/2026/09/bh-finance-accounting.svg");
}

.bh-svc--data-management .ms-sb--title::before {
    -webkit-mask-image: url("/wp-content/uploads/2026/09/bh-data-management.svg");
    mask-image: url("/wp-content/uploads/2026/09/bh-data-management.svg");
}

.bh-svc--hr-services .ms-sb--title::before {
    -webkit-mask-image: url("/wp-content/uploads/2026/09/bh-hr-services.svg");
    mask-image: url("/wp-content/uploads/2026/09/bh-hr-services.svg");
}

.bh-svc--call-center .ms-sb--title::before {
    -webkit-mask-image: url("/wp-content/uploads/2026/09/bh-call-center.svg");
    mask-image: url("/wp-content/uploads/2026/09/bh-call-center.svg");
}

.bh-svc--information-technology .ms-sb--title::before {
    -webkit-mask-image: url("/wp-content/uploads/2026/09/bh-information-technology.svg");
    mask-image: url("/wp-content/uploads/2026/09/bh-information-technology.svg");
}

.bh-svc--marketing .ms-sb--title::before {
    -webkit-mask-image: url("/wp-content/uploads/2026/09/bh-marketing.svg");
    mask-image: url("/wp-content/uploads/2026/09/bh-marketing.svg");
}

.bh-svc--administration .ms-sb--title::before {
    -webkit-mask-image: url("/wp-content/uploads/2026/09/bh-administration.svg");
    mask-image: url("/wp-content/uploads/2026/09/bh-administration.svg");
}

@media (max-width: 991px) {

    /* 32px on a phone, where the name sits directly above its own description
       rather than beside it and the mark has less column to hold. */
    .bh-svc--icon .ms-sb--title::before {
        width: 32px;
        height: 32px;
        margin-bottom: var(--bh-s3);
    }
}

/* One column. The `cta` track is gone with the "Explore" affordance it held —
   final review #2, item 3.1. Leaving the track behind would have left the
   48px column gap down the right of every row with nothing in it, which is
   the same dead space the `--plain` override below was written to fix. */
.bh-svc .ms-sb--text {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "lead"
        "scope";
    row-gap: var(--bh-s3);
    align-items: start;
}

.bh-svc__lead {
    grid-area: lead;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 58ch;
}

/* The short heading over the list — final review #2, item 3.2. It replaced a
   full sentence, so it is set as a label rather than as body copy: it has to
   read as the thing the list below belongs to.

   Linked rows only. On a detail page the same element holds a sub-service's
   DESCRIPTION — a full sentence with no list under it — and setting a sentence
   in semibold says it is a heading when it is not. Those rows are
   `bh-svc--plain`, which is the only stable thing separating the two. */
.bh-svc:not(.bh-svc--plain) .bh-svc__lead {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
}

/* The services themselves, listed under their heading — final review #2,
   item 3.2 asks for them "directly below each subheading in a well-organized
   layout". They used to run inline separated by middots, which is a line of
   detail, not a list you can scan.

   Spans rather than a <ul> because the widget prints this inside a <p>;
   role="list"/"listitem" in the markup carries the semantics. CSS multi-column
   rather than a grid: the lists are 4 to 7 items long depending on the line,
   and columns balance a ragged count on their own where a fixed grid would
   leave Administration's seventh item alone on a row. */
.bh-svc__scope {
    grid-area: scope;
    columns: 2;
    column-gap: var(--bh-s8);
    font-size: 0.875rem;
    line-height: 1.7;
    opacity: 0.78;
}

.bh-svc__scope-item {
    display: block;
    /* A column break mid-item would split "Recruitment Process Outsourcing
       (RPO)" across two columns. */
    break-inside: avoid;
}

/* Rows with no destination — the sub-services on the detail pages. The scope
   list is empty there (each row IS a sub-service), so a second column would
   halve the measure of the description for nothing. */
.bh-svc--plain .bh-svc__scope {
    columns: 1;
}

/* No hover affordance on an unclickable row: darkening the rule promises
   a destination that does not exist. */
.bh-svc--plain .ms-sb:hover {
    border-top-color: var(--bh-idx-rule);
}


/* Narrower than lg the two columns stop earning their keep: the name column
   gets too tight for "Information Technology" to sit on two lines without
   hyphenating, and the copy beside it drops under 40ch. Stack instead. */
@media (max-width: 991px) {

    .bh-svc .ms-sb--inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--bh-s3);
    }

    .bh-idx .bh-svc .ms-sb .ms-sb--title {
        max-width: none;
    }

    /* One column for the list too: at this width two columns of 14px items
       leave each one around 20ch, and the longer service names wrap on every
       line. */
    .bh-svc__scope {
        columns: 1;
    }
}

@media (max-width: 575px) {

    .bh-svc .ms-sb {
        padding: var(--bh-s6) 0;
    }
}



/* Respect reduced motion: the only transitions here are hover affordances. */
@media (prefers-reduced-motion: reduce) {

    .bh-svc .ms-sb {
        transition: none;
    }
}


/* Dark bands without a photograph
   --------------------------------------------------------------------------

   bh_band() clones a numbered service row, whose copy sits in a half-width
   child container so the right of the frame is left to the picture. When the
   band has no picture — bh_band()'s $image is null, and the builder tags it
   .bh-band--flat — that half width is inherited for a reason that no longer
   applies, and an 80px heading spends four lines saying what fits in two while
   the right half of the panel stays empty.

   Photographed bands (.bh-photo-row) are untouched: there the empty right half
   is the photograph.

   Elementor emits the donor's width as
   `.elementor-{page} .elementor-element.elementor-element-{id}`, which is
   0,3,0. Matching that here and relying on the child stylesheet loading after
   the page CSS is what makes this win without !important. -------------------- */

/* A percentage, not a ch value: `ch` on the container resolves against its own
   16px font rather than the 80px heading inside it, so it capped the column at
   roughly the width the donor already had and moved nothing. */
.bh-band--flat > .e-con,
.bh-band--flat > .e-con-inner > .e-con {
    width: auto;
    max-width: 64%;
}

/* The heading is what needed the room. The paragraph under it does not want a
   64%-of-1410 measure — that is about 110 characters, well past readable — so
   it keeps its own cap. */
.bh-band--flat .e-con p {
    max-width: 62ch;
}

/* Below lg the band is narrow enough that the donor width is no longer the
   constraint, and capping the measure just reintroduces the early wrap. */
@media (max-width: 991px) {

    .bh-band--flat > .e-con,
    .bh-band--flat > .e-con-inner > .e-con {
        max-width: 100%;
    }
}


/* Closing CTA
   --------------------------------------------------------------------------

   bh_cta() stacks a heading, a standfirst and a button. The first two are left
   aligned; the button is cloned from the ticker and arrives centred, so the
   block ends on an alignment neither of the other two uses. Both rules are
   kept because the widget centres via text-align in some builds and via flex
   justification in others, depending on which button skin is active.
   -------------------------------------------------------------------------- */

.bh-cta .elementor-widget-ms-button {
    text-align: left;
}

.bh-cta .elementor-widget-ms-button > .elementor-widget-container {
    display: flex;
    justify-content: flex-start;
}


/* The Home CTA as a field of brand colour — final review, item 22
   --------------------------------------------------------------------------

   The direction was settled with the client from three mockups and is recorded
   further down this file: extend the amber already in the buttons, introduce no
   second hue. What it had produced was the counter figures and a set of 1px
   rules — measured, 85k px² of amber against 7.5M px² of black and near-white,
   which is 1.1% of the painted page. That is the colour the client could not
   see.

   One surface, not a scattering. The CTA is the right one: it is the only block
   on the page asking for an action, it carries no body copy longer than a
   sentence, and a field there is emphasis as well as colour. Everything else
   stays as it is — the restraint is the identity, and a page with one
   deliberate field of colour reads differently from a page with six.

   Ink is a literal, not --color-contrast-higher: that token flips with the
   theme, and the field does not. White text on amber would measure 1.9:1.
   #1A1A1A on #FCCA73 is 11.6:1 in both modes.

   Scoped to Home because item 22 is. `.bh-cta` is on five other pages and they
   keep the plain treatment until the client says otherwise. */

/* Block padding only. `.bh-cta` is a boxed container: the element itself spans
   the viewport and caps its content at 1320px inside `.e-con-inner`, so the
   field is full-bleed for free. Horizontal padding here does not inset the
   field — it narrows the track the inner box centres in, which moved the
   headline's left edge to 64px while every other section on the page starts at
   60px. Four pixels, visible as a kink down the left margin. */
body.home .bh-cta {
    background-color: var(--bh-accent);
    padding-block: var(--bh-s10);
}

/* The amber field runs straight into the footer — 03/11/2026.
   --------------------------------------------------------------------------

   157px of page background sat between the two, measured at 1920 by sampling
   the rendered column: amber to y=9825, then `rgb(245,245,245)` for 157px,
   then the footer's own grey panel. Two margins, one from each side:

     76.8px  the donor's 4vw margin-bottom on `.bh-cta`
     80px    a margin-top on the footer template's root container

   Neither reads as spacing once the block above it is a field of colour — a
   coloured band with a strip of page under it looks like it failed to reach
   the bottom. Both go, and the two painted surfaces meet. The footer keeps its
   own 80px of top padding, so the content inside it is unaffected; only the
   gap between the panels closes.

   `.ms-footer` is `overflow: hidden` in main.css, which makes it a block
   formatting context — that is why the footer's inner margin shows up inside
   the footer instead of collapsing through to sit above it, and why zeroing
   the CTA's margin alone would have closed only half the gap.

   Home only, and that is a design call as much as a scoped fix: on the other
   five pages `.bh-cta` has no background, so the same 157px is ordinary
   section rhythm and closing it would butt plain text against the footer.

   Custom properties, not the real ones — Elementor resolves container margins
   through `--margin-top` / `--margin-bottom`. */

body.home .bh-cta.e-con.e-parent {
    --margin-bottom: 0;
}

body.home footer.ms-footer .elementor > .e-con.e-parent {
    --margin-top: 0;
}

/* Four classes to clear the per-element title colour Elementor emits at 0,4,0
   from a stylesheet enqueued after this one — the same arithmetic as the dark
   band further down. */
body.home .bh-cta .elementor-element.elementor-widget .elementor-heading-title,
body.home .bh-cta .elementor-element.elementor-widget .ms-sp--title,
body.home .bh-cta .elementor-element.elementor-widget p {
    color: #1A1A1A;
}

/* The button is the same amber as the field it now sits on: in light mode it
   measured 1.0:1 against it, and in dark mode it was already invisible against
   the page at 1.34:1 before this section existed. Ink fill, amber text — the
   inverse of what it was, so the pair still reads as one idea. */
body.home .bh-cta .elementor-element.elementor-widget .ms-btn,
body.home .bh-cta .elementor-widget-ms-button a,
body.home .bh-cta .elementor-widget-ms-button button {
    background-color: #1A1A1A;
    border-color: #1A1A1A;
}

/* The theme builds this button out of three layers: an `.f-btn-l` cap holding
   an SVG and an `.f-btn-r` fill, both painted amber, sitting on top of the
   anchor. Recolouring the anchor alone put ink behind an amber plate and left
   the label at 1:1 against the plate — invisible, and measured that way twice
   before this rule existed. The fill layers have to come with it. */
body.home .bh-cta .btn .f-btn-l,
body.home .bh-cta .btn .f-btn-r {
    background-color: #1A1A1A;
}

body.home .bh-cta .btn .f-btn-l svg path,
body.home .bh-cta .btn .f-btn-r svg path {
    fill: #1A1A1A;
}

/* The label is a <span> inside the anchor and Elementor colours it there, so
   colouring the anchor alone left ink text on an ink button. The descendant
   selector is the fix, not more weight on the anchor. */
body.home .bh-cta .elementor-element.elementor-widget .ms-btn,
body.home .bh-cta .elementor-element.elementor-widget .ms-btn *,
body.home .bh-cta .elementor-widget-ms-button a,
body.home .bh-cta .elementor-widget-ms-button a * {
    color: var(--bh-accent);
}

body.home .bh-cta .elementor-widget-ms-button a:hover,
body.home .bh-cta .elementor-widget-ms-button button:hover,
body.home .bh-cta .ms-btn:hover {
    background-color: #000;
    border-color: #000;
}

@media (max-width: 991px) {

    body.home .bh-cta {
        padding-block: var(--bh-s8);
    }
}


/* Pinned cards receding under the next section
   --------------------------------------------------------------------------

   The theme pins each `.ms-sticky-w` row at top:0 and lets the following
   section scroll up over it. That reads as a deck of cards only while the
   thing sliding over is itself a card — which it was, when every row below
   the banner was another dark photographed panel. Now the banner is pinned
   and a flat light sheet slides over it, so at full brightness the banner
   looks guillotined rather than covered.

   Two layers, because they degrade differently:

   1. The sheet gets an edge. Universally supported, and on its own it is
      most of the effect — an overlap with a shadow reads as depth, an
      overlap without one reads as a clipping bug.
   2. The pinned card dims as it is covered. Scroll-driven animations are
      Chrome/Edge/Firefox; where they are missing the card simply stays lit
      and layer 1 still carries it.

   Not applied to a section head. The edge sells depth only when the thing
   sliding over is a solid sheet; over a bare heading and its standfirst there
   is no sheet, so a 44px shadow at 0.42 just lays a grey smear above the
   title. On the homepage that is exactly what follows the pinned row.
   -------------------------------------------------------------------------- */

.e-con.e-parent:has(> .ms-sticky-w) + .e-con.e-parent:not(.bh-sechead) {
    position: relative;
    z-index: 1;
    box-shadow: 0 -20px 44px -10px rgba(0, 0, 0, 0.42);

    /* A floor under the vertical padding, because the shadow is an edge this
       box draws for itself and the donor blocks that land here mostly carry no
       vertical padding at all. Reported 03/11/2026 on Home, where the hero
       block's buttons sat on the bottom edge and read as stuck to a border.

       The offset points up, so the bottom spill is easy to argue away and
       wrong to: sampled out of a screenshot, the pixel at the box's bottom
       edge is rgb(236,236,236) against the page's rgb(245,245,245), fading
       back over about 25px. Soft, but visible, and content sitting on it looks
       like a mistake.

       `max()` against Elementor's own custom property rather than a flat
       value, so this only raises padding that is too low and leaves alone the
       blocks that already have their own — the Home hero keeps its authored
       100px top and gains a 24px bottom. Setting the property while reading
       the variable is not a cycle; setting the variable from itself would be.

       Applies site-wide because the shadow does. Measured at 1920: the three
       blocks carrying it are the Home hero, Home's "Serving clients globally"
       and About's `.bh-lead`, and all three were flush top and bottom. */
    padding-block-start: max(var(--padding-block-start, 0px), var(--bh-s6));
    padding-block-end: max(var(--padding-block-end, 0px), var(--bh-s6));
}

@supports (animation-timeline: view()) {

    .ms-sticky-w {
        animation: bh-card-recede linear both;
        animation-timeline: view();
        /* Only while the card is leaving the top of the scrollport — that is
           exactly the span during which the next section is covering it. */
        animation-range: exit 0% exit 100%;
    }
}

@keyframes bh-card-recede {

    to {
        filter: brightness(0.42);
    }
}

/* The dim is depth, not motion, but it is still an animation — honour the
   preference and leave the card lit. */
@media (prefers-reduced-motion: reduce) {

    .ms-sticky-w {
        animation: none;
    }
}


/* Footer CTA on narrow screens
   --------------------------------------------------------------------------

   `.btn-osty` is sized entirely by its label plus the 55px round icon that
   slides in on hover. In the footer the label is "Let's make something great
   together", which at 390px measures 387px from x=15 — 402px total, 12px past
   the viewport, so the whole document scrolled sideways.

   Capping the width does not help: the label is nowrap and `.btn-wrap` grows
   to fit the button rather than constraining it. What actually costs the 12px
   is the icon, and a phone has no hover for it to reveal — so it is 55px of
   layout paying for an interaction that cannot happen. Dropping it takes the
   button to ~332px, comfortably inside.
   -------------------------------------------------------------------------- */

@media (max-width: 575px) {

    .btn-wrap .btn.btn-osty .btn-r_icon {
        display: none;
    }

    /* The icon was also the pill's right padding. With it gone the label sits
       flush against the border radius and the last glyph is clipped — measured
       on "Let's Talk" at 390px: pill 98px, label 74px starting 24px in, 0px
       left on the right. 1.5rem to match the padding-left the parent already
       sets, which is what the review calls a button sizing issue.

       This is the theme's own idiom, not an invention: main.css pairs
       `.btn-load-more.no-works .f-btn-r .btn-r_icon{display:none}` with
       `padding-right:1.5rem` on the same element for exactly this reason. */
    .btn-wrap .btn.btn-osty .f-btn-r {
        padding-right: 1.5rem;
    }
}


/* 404
   -------------------------------------------------------------------------- */

/* Markup from 404.php in this theme. The page wrapper, the giant "404" and the
   copy block are all parent classes (.ms-404-page, .ms-404--content,
   .ms-404--bg) and are left to main.css — only the additions need rules. */

.bh-404--links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bh-s2) var(--bh-s6);
    margin: var(--bh-s6) 0 0;
    padding: 0;
    list-style: none;
}

/* The parent's .ms-404--content sits over the oversized numeral in .ms-404--bg,
   so anything added here needs to stay above it to remain clickable. */
.ms-404-page .ms-404--content {
    position: relative;
    z-index: 1;
}

.bh-404--links a {
    white-space: nowrap;
}

.ms-404--content .search-form,
.ms-404--content form[role="search"] {
    margin-top: var(--bh-s7);
    max-width: 24rem;
}


/* Portfolio
   -------------------------------------------------------------------------- */


/* Blog & post formats
   -------------------------------------------------------------------------- */


/* WooCommerce
   -------------------------------------------------------------------------- */

/* Only loaded when WooCommerce is active. Parent has ~55 template overrides in
   osty/woocommerce/ — check there before assuming markup. */


/* The promise band
   --------------------------------------------------------------------------

   The homepage's "One team, accountable end to end" block, from bh-build.php.
   The claim sits left, its three proofs stack right under hairlines.

   Dark and full-bleed, which is the point of it: the page runs roughly 3000px
   of unbroken #F4F4F4 between the hero and the numbered service rows, and this
   is the one section not selling a service. The band is the only full-width
   dark field on the page, so it reads as the page drawing breath rather than
   as another card.

   Full bleed comes free — a top-level `.e-con.e-parent` already spans the
   viewport and boxes its own content in `.e-con-inner`, so the background goes
   on the outer element and the grid on the inner one. Both are set for
   anything positional: on a boxed container the grid lives on `.e-con-inner`,
   and a rule written against `.e-con` alone silently does nothing.
   -------------------------------------------------------------------------- */

.bh-promise {
    background-color: #121212;
    margin-top: var(--bh-s10);
    margin-bottom: var(--bh-s10);
    padding-top: var(--bh-s10);
    padding-bottom: var(--bh-s10);
}

/* The join below the dark band read as a band of empty white: 96px of the
   block's own bottom padding (dark, so it reads as the section), then 96px of
   margin, then the next section head's donor margin of 8vw — ~115px at 1440,
   and margins collapse to the larger, not the sum. The padding inside the dark
   field already supplies the air, so this one boundary gets 48px.
   `--margin-top`, not `margin-top`: Elementor resolves the variable on the
   `.e-con`, and `elementor-post-7596-css` (0,3,0) is enqueued after this file,
   so the override has to outweigh it — hence the `.e-con.e-parent` stack. */
.bh-promise:has(+ .bh-sechead) {
    margin-bottom: var(--bh-s8);
}

.bh-promise + .bh-sechead.e-con.e-parent {
    --margin-top: var(--bh-s8);
}

/* Claim column narrower than the proofs column: the heading is three short
   lines and wants to stay three short lines, while the proofs carry most of
   the words. 1fr/1.15fr rather than a even split for that reason. */
@media (min-width: 992px) {

    .bh-promise > .e-con-inner {
        --e-con-grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 0 var(--bh-s10);
        align-items: start;
    }
}

/* Colour on a dark field.

   Five classes, not four, and the reason is recorded in the footer note
   above: Elementor emits each widget's own `title_color` as
   `.elementor-{page} .elementor-element.elementor-element-{id} .selector` at
   0,4,0, and `elementor-post-{id}-css` is enqueued *after* this stylesheet.
   Matching 0,4,0 is a loss, not a tie-break. `.elementor-element` and
   `.elementor-widget` both sit on the same wrapper, so stacking them takes
   these to 0,5,0 and they win. */
.bh-promise .elementor-element.elementor-widget.elementor-widget-heading .elementor-heading-title {
    color: #FFF;
}

.bh-promise .elementor-element.elementor-widget .bh-prose .elementor-heading-title {
    color: rgba(255, 255, 255, 0.72);
}

.bh-promise .ms-sb--title,
.bh-promise .elementor-widget-ms_service_box .ms-sb--title {
    color: #FFF;
}

.bh-promise .ms-sb--text,
.bh-promise .elementor-widget-ms_service_box .ms-sb--text {
    color: rgba(255, 255, 255, 0.72);
}

/* The proofs. A hairline between each, no card chrome — these are three
   parallel claims, not three equivalent objects, so a rule is the right
   separator and a box is not. Deliberately not numbered: the craft floor
   reserves 01/02/03 for sequences the reader has to follow in order, and
   these three are unordered.

   Rows sized to their own content and packed to the top. Elementor's grid
   container distributes the row track across the column's full height, which
   left the shortest proof trailing ~120px of air before its own rule — the
   rule then read as unrelated to the text above it. `gap: 0` because the
   separation is expressed by the margin/padding pair below, so the interval
   stays symmetrical about the rule instead of being gap-above and
   padding-below. */
.bh-promise__proofs,
.bh-promise__proofs > .e-con-inner {
    --e-con-grid-template-rows: none;
    grid-auto-rows: auto;
    align-content: start;
    gap: 0;
}

.bh-promise__proofs > .e-con-inner > * + *,
.bh-promise__proofs > * + * {
    margin-top: var(--bh-s7);
    padding-top: var(--bh-s7);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* The donor is a service-box card: it ships its own background, padding and
   radius, which is exactly the chrome this block is removing. It also centres
   its own text, which suits a three-across card row and not a stacked list —
   centred ragged text in a column reads as a poster, not as prose. */
.bh-promise__proofs .ms-sb {
    background: none;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.bh-promise__proofs .ms-sb,
.bh-promise__proofs .ms-sb--title,
.bh-promise__proofs .ms-sb--text {
    text-align: left;
}

.bh-promise__proofs .ms-sb--text {
    margin-top: var(--bh-s3);
    max-width: 52ch;
}

/* The statement donor pins its body to a fixed ~275px and right-aligns it
   inside the column, which broke the left edge the heading establishes. The
   `width-initial` reset further up handles the width; this clears the padding
   on the container that carries it. */
.bh-promise > .e-con-inner > :first-child .e-con {
    padding-left: 0;
    padding-right: 0;
}

.bh-promise > .e-con-inner > :first-child .bh-prose .elementor-heading-title {
    max-width: 42ch;
    margin-top: var(--bh-s6);
}

@media (max-width: 991px) {

    .bh-promise {
        margin-top: var(--bh-s8);
        margin-bottom: var(--bh-s8);
        padding-top: var(--bh-s8);
        padding-bottom: var(--bh-s8);
    }

    /* The claim has to clear its proofs when they stack beneath it. */
    .bh-promise > .e-con-inner > :first-child {
        margin-bottom: var(--bh-s7);
    }
}


/* Responsive
   -------------------------------------------------------------------------- */

/* Parent uses the Bootstrap 5 grid; its breakpoints are
   sm 576  md 768  lg 992  xl 1200  xxl 1400 */


/* Search results — final review, item 13
   --------------------------------------------------------------------------

   Scope agreed with the client: strip the default WordPress furniture and make
   the page look like the rest of the site. Not a bespoke results experience.

   The widgets themselves are gone from the database, not hidden here. The demo
   import had seeded wp:search, Recent Posts and Recent Comments twice over, and
   Recent Comments was rendering "No comments to show." on a site that has no
   comments at all. blog_sidebar now holds one widget — the search field, which
   renders through the child's searchform.php and carries the suggestion chips.

   What is left to do in CSS is the result rows themselves. */

/* The heading is the only uppercase H1 on the site. bh_statement() argued this
   out for every other heading and settled on sentence case; the search template
   never went through it because it is a theme template rather than built data.
   70px for "Search results: automation" is also a page title competing with a
   hero it does not have.

   The title is `h1.ms-sp--title` inside `.ms-sp--header`; a bare `.search h1`
   loses to the theme's own rule, so the selector carries both. */
.search .ms-sp--header h1.ms-sp--title,
.search-no-results .ms-sp--header h1.ms-sp--title {
    text-transform: none;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

/* Pages carry a publish date and an empty category list, because the template
   assumes every result is a blog post. On a site whose search results are
   almost entirely pages, that renders "Sep 23, 2026" and a bare "Category:"
   under each one — two pieces of furniture that say nothing.

   Scoped to .type-page so a real article keeps its date and categories. */
.search article.type-page .post-meta__date,
.search article.type-page .post-category__list {
    display: none;
}

/* A post with no categories assigned hits the same empty label. :has() does
   what the template should have: hide the list when there is nothing in it. */
.search .post-category__list:not(:has(a)) {
    display: none;
}

/* Give the results room. The sidebar holds a single search field and was taking
   450px of a 1440px viewport, which left the excerpts in a narrow column beside
   a mostly empty rail. */
@media (min-width: 992px) {

    .search .ms-sidebar,
    .search #secondary,
    .search aside.widget-area {
        max-width: 320px;
    }
}

/* Separate the rows. The template ships them as a flat stack with no divider,
   so at a glance the excerpt of one result runs into the title of the next. */
.search article.grid-item .post-content {
    padding-bottom: var(--bh-s5, 2rem);
    border-bottom: 1px solid var(--color-contrast-low);
}

.search article.grid-item:last-child .post-content {
    border-bottom: 0;
}

/* On the no-results page the template already prints a prominent "Try a new
   search" form in the body. The sidebar widget beside it is a second, identical
   field two inches away — exactly the duplication item 13 was about. */
.search-no-results .ms-sidebar,
.search-no-results #secondary,
.search-no-results aside.widget-area {
    display: none;
}


/* Colour — final review, item 22
   --------------------------------------------------------------------------

   "Make the Home Page more colourful ... Please ensure the colour combinations
   remain consistent with the overall brand identity."

   Direction chosen by the client from three mockups: extend the amber that is
   already in the buttons rather than introduce a second hue. Nothing new enters
   the palette, so there is nothing that can clash with the dark service rows or
   the photography.

   --bh-accent (#FCCA73) is the button amber. It is NOT used for the figures: on
   the near-white section background it measures about 1.7:1, which fails at any
   size. --bh-accent-ink is the same hue darkened until it passes. The light
   tone is kept for rules and borders, which carry no text and are not
   load-bearing. */

:root {
    /* #B8792A on #F5F5F5 measures 3.32:1 — measured in the browser, not
       estimated. That passes AA for large text (>=24px, or >=18.66px bold),
       which is the rule that applies here: the figures render 91px/700 on
       desktop and 36px/700 on mobile, both far above the threshold.

       It would NOT pass the 4.5:1 required of body text, so this token must not
       be reused for running copy. Reaching 4.5:1 in this hue needs roughly
       #8A5A1F, which has gone brown and stopped reading as the brand amber. */
    --bh-accent-ink: #B8792A;
}

/* The counter figures. `bh-stats` is set on the grid by bh_stats() in
   bh-build.php — bh_header() gives the figure and its label the same widget and
   the same class, so the grid is the only place to get a handle on one and not
   the other. :first-child picks the figure; the label stays as it was. */
.bh-stats .e-con-inner .e-con-inner > .elementor-widget:first-child .elementor-heading-title {
    color: var(--bh-accent-ink);
}

/* ...and centred, like the rest of the section.
   Measured: the heading, the paragraph and the two buttons above these figures
   are all centre-aligned, while the figures inherited `text-align: start` from
   the donor. Each one is a full-cell-width heading, so "7" rendered hard against
   x=75 underneath a paragraph that starts at x=320 — two different alignments in
   one block, which is what reads as broken rather than as a deliberate ragged
   edge.

   Centred inside their own cells the pair comes out symmetric about the
   section's centre line (382 and 1057 against a 720 midpoint), and on mobile,
   where the cells stack full-width, they line up with the centred heading
   directly above them. */
.bh-stats .e-con-inner .elementor-widget .elementor-heading-title {
    text-align: center;
}

/* text-align alone was not enough, and the reason is worth recording. The two
   widgets in each cell are different widths: the figure fills the cell at
   615px, the label carries Elementor's `__width-initial` and is 431px. Centring
   the text inside each box therefore centred them on two different axes —
   measured 663 for the figure and 570 for its label, 93px apart, which is the
   misalignment you can see.

   Giving both widgets the full cell width puts their boxes on one centre line,
   and the text centring above then lands them on the same axis. */
.bh-stats .e-con-inner .elementor-widget {
    width: 100%;
    max-width: 100%;
}

/* A short rule under each section heading. Only the title: `.bh-sechead` wraps
   the heading AND the body column, and the same selector the typography block
   above uses for the title is reused here so the two cannot drift apart. */
.bh-sechead > .e-con-inner > .elementor-widget-heading .elementor-heading-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: var(--bh-s5);
    border-radius: 2px;
    background-color: var(--bh-accent);
}

/* The three proof cards under "One team, accountable end to end". They are a
   single column of text blocks separated only by their own rules, which is what
   made the section read as one grey paragraph from a distance. */
/* The proofs carried a 3px amber bar down their left edge and a 20px indent to
   clear it. Removed, not restyled — final review, item 22 asked for more
   colour, and a coloured tab down the side of a list item is the one shape this
   page has that belongs to no system on it: everything else separating content
   here is a 1px rule. The amber moves onto those rules instead, where it marks
   structure the section already had.

   Dropping the indent as well puts the proofs back on the same left edge as the
   heading above them. */
.bh-promise__proofs > .e-con-inner > * + *,
.bh-promise__proofs > * + * {
    border-top-color: rgba(252, 202, 115, 0.5);
}

/* Dark sections already carry the amber on their buttons, and the ink tone was
   mixed for a light background — on #141414 it goes muddy. Use the light tone
   there, which clears AA comfortably against the dark. */
[data-theme="dark"] .bh-stats .e-con-inner .e-con-inner > .elementor-widget:first-child .elementor-heading-title {
    color: var(--bh-accent);
}


/* Mobile & responsive review — final review, pages 13-14
   --------------------------------------------------------------------------

   Findings from a measured pass over 15 pages at 360 / 414 / 768px. Everything
   below is a real defect that pass turned up; the things it flagged and that
   turned out to be fine (carousel slides parked off-stage behind their own
   overflow:hidden, a decorative button clipped by its wrapper) are deliberately
   not "fixed", because clipping them is what makes the carousel work. */

/* 1. Horizontal scroll on tablet.
   The scattered photo row under "The work behind your work" lays six images at
   fixed widths. At 768px they span -3..772 in a 768px viewport, which pushed
   documentScrollWidth to 772 and gave the whole page a 4px horizontal scroll —
   exactly the "no unwanted horizontal scrolling" item.

   overflow-x: clip rather than hidden: clip does not create a scroll container,
   so it cannot trap the page's own scrolling, and unlike hidden it still allows
   overflow on the other axis — which this row needs, because each image carries
   a vertical transform that is the whole point of the effect. The row already
   bleeds off the left edge by design, so clipping the right is consistent. */
@media (max-width: 1023px) {

    .magnetic_hero {
        overflow-x: clip;
    }
}

/* 2. Tap targets.
   The search suggestion chips render 28px tall, and the drawer's nav links
   34px. Both are below the 44px that iOS and Android both recommend, and the
   chips sit in a row where a mis-tap lands on the neighbouring one.

   Keyed on pointer: coarse rather than a width breakpoint — what matters is
   whether the thing doing the pointing is a finger, not how wide the screen is.
   A touch laptop gets the larger targets; a narrow desktop window does not. */
@media (pointer: coarse) {

    .bh-search-sugg__item {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-top: var(--bh-s2);
        padding-bottom: var(--bh-s2);
    }

    .main-header__nav #primary-menu-button > .menu-item > a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    /* The drawer. The rule above has never reached it: the drawer's links are
       `.ms-menu-container .navbar-nav > .menu-item > a`, a different list from
       `#primary-menu-button`, and every one of them measured 153x38 on a phone.
       Found by the tap-target check added to bh-shoot.mjs for the final
       review's mobile pass, not by reading this block. */
    .ms-menu-container .navbar-nav > .menu-item > a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    /* 36x36. The visible disc stays the size it is — the box around it grows,
       which is the whole of the fix: a target is how big the finger's margin
       for error is, not how big the icon looks. */
    .header__search-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* The Services dropdown. Phones never see it — below 1023px the theme uses
       the drawer — but a touch laptop does, and 28px rows stacked directly on
       top of each other are a mis-tap waiting to happen. Same specificity as
       the theme's own rule for these links, so it wins on order alone. */
    .main-header__layout .main-header__nav .navbar-nav .sub-menu li > a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    /* Service card titles. The link is the card's only tap target and renders
       `display: inline` at 28px, so min-height does nothing to it — an inline
       box takes its height from the line, not from the property. inline-block
       plus symmetric vertical padding gets it to 44px without disturbing the
       text's own position in the card. */
    .ms-sb--title a {
        display: inline-block;
        padding-top: var(--bh-s2);
        padding-bottom: var(--bh-s2);
    }
}


/* The gap under a full-bleed banner
   --------------------------------------------------------------------------

   Every page opens on an edge-to-edge banner and the section after it carries
   the site's standard section margin — 115px at 1440, 154px at 1920, because
   the value is viewport-relative. That rhythm is right between two inset
   blocks, where the margin is the only thing separating them. Directly under a
   full-bleed dark image it is not separation, it is a void: on About the block
   that follows is 168px tall, so the page went banner, 154px of white, a thin
   strip of text, 77px of white.

   Zero, not a smaller margin. The section after a banner is the sheet that
   slides over it — see "Pinned cards receding under the next section" above,
   which gives that sheet a -20px box shadow so the overlap reads as depth. Any
   gap at all pushes the sheet off the banner and leaves that shadow smeared
   across bare white, which is worse than the spacing it was meant to fix. The
   two rules only work together.

   The banner is identified by the class bh_band() writes onto it rather than by
   position, so this cannot land on the wrong section if the page order changes.
   Browsers without :has() drop the rule and keep the theme's own spacing. */

.e-con.e-parent:has(.bh-photo-row) + .e-con.e-parent,
.e-con.e-parent:has(.bh-band--flat) + .e-con.e-parent {
    margin-top: 0;
}


/* "The work behind your work" — internal spacing
   --------------------------------------------------------------------------

   Measured on the built page, the five blocks in this section sat at:

     heading -> gallery      0px
     gallery -> paragraph    0px
     paragraph -> buttons   24px
     buttons -> counters    80px

   The first two are the bug. The gallery is the theme's `magnetic_hero`, whose
   whole effect is nudging each photograph a few pixels off its resting position
   — the images carry transforms of roughly +/-10px even at rest, and more while
   the pointer is near them. With no gap at all above or below, those pixels
   have nowhere to go but into the heading and the paragraph, which is what
   makes the photographs look like they are sitting on top of the type.

   The margin goes on .magnetic_hero rather than on its Elementor container, so
   it survives a rebuild: container ids are regenerated every time, this class
   is the theme's own. */

.magnetic_hero {
    margin-top: var(--bh-s7);
    margin-bottom: var(--bh-s7);

    /* Those same resting transforms push the rightmost photograph past the
       viewport at 1024px — measured 1029px against a 1024px client width, and
       the page really does scroll those 5px sideways (scrollTo(9999) lands on
       scrollX 5; the parent's html{overflow-x:hidden} is not in effect here).
       Clipping the gallery's own box is the fix rather than widening a
       container: the nudge is a transform, so its reach is not something a
       layout width can be sized against.

       `clip`, not `hidden` — hidden would make this a scroll container and
       change what the images inside it can do. The vertical nudge still shows
       because overflow-y is left visible, which only `clip` permits. */
    overflow-x: clip;
}

/* The counters grid asks for one row of 1fr and renders it 285px tall against a
   165px cell, leaving 140px of empty row under the figures. With the 80px
   margin above it that is 220px of nothing between the buttons and "7".

   min-content makes the row hug the cell. Three classes to match the
   specificity Elementor generates for per-element rules, rather than reaching
   for !important — and none of them is the element id, which is regenerated on
   every build. */

/* The row is 285px against a 165px cell, and the 120px difference is not the
   grid's doing at all: each counter cell carries the donor's own 40px top and
   80px bottom margin. The grid track is simply reporting them back. Nothing
   applied to grid-template-rows, align-content or height moved it, because
   none of those was ever the cause.

   Zeroed here rather than halved — the gap above the figures is already set by
   the 48px on the grid itself, and the gap below belongs to the section, not to
   the last line of text inside it. */
.bh-stats > .e-con-inner > .elementor-element {
    margin-top: 0;
    margin-bottom: 0;
}

.elementor .e-con.bh-stats {
    margin-top: var(--bh-s8);
}


/* Search results
   ==========================================================================

   Markup from search.php in this theme; see the note at the top of that file
   for why the parent's blog-archive layout was replaced rather than restyled.

   The whole screen is one idea: a search result and a service line are the same
   object, so they are set the same way. The rows below are the /bh-services/
   index — full measure, a hairline above each, name left and copy right, no
   card and no box — with the matched words marked. Nothing here is drawn except
   rules and type, which is the rule the rest of the site is built on.

   The three states share every selector. Only the headline copy and what fills
   the list change, so there is no second layout to keep in step with this one.
   -------------------------------------------------------------------------- */

.bh-search {
    /* Same rule colour as the services index. The two lists sit on the same
       field and a second near-black would read as a mistake, not a variation. */
    --bh-search-rule: rgba(18, 18, 18, 0.14);

    padding-block: var(--bh-s10) var(--bh-s10);
}

[data-theme="dark"] .bh-search {
    --bh-search-rule: rgba(255, 255, 255, 0.16);
}


/* The head
   --------------------------------------------------------------------------

   Query left, the field to change it right — the same 1.45fr/1fr split the
   section heads use, so the headline lands on the same left edge as every
   other title on the site and the form occupies the column a standfirst
   normally would.

   `align-items: end` rather than `start`: the form is one line tall and the
   headline is up to three, and hanging the field off the top left it floating
   beside a heading it is not related to. Sat on the same baseline as the count,
   it reads as the controls for the list below. */

.bh-search__head {
    padding-bottom: var(--bh-s8);
}

@media (min-width: 992px) {

    .bh-search__head {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        gap: 0 var(--bh-s9);
        align-items: end;
    }
}

.bh-search__title {
    margin: 0;

    /* Capped at 4.25rem rather than left to the viewport: the longest headline
       this page can produce is "Nothing matched" plus whatever the visitor
       typed, and a 24-character search term at 6rem is a wall. */
    font-size: clamp(2.125rem, 5vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;

    /* The headline contains whatever was typed into a text field. A 40-character
       unbroken string at 68px is 1400px wide, and without this it takes the
       page's horizontal scrollbar with it. */
    overflow-wrap: break-word;
}

/* The searched term, echoed back, marked the same way the matches in the rows
   below are marked — it is the same information: this is the word that did the
   matching. Deliberately not `white-space: nowrap`; keeping the quotes with the
   term is worth less than letting a long one wrap. */

.bh-search__lead {
    margin: var(--bh-s6) 0 0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 46ch;
    opacity: 0.68;
}

.bh-search__form {
    margin-top: var(--bh-s7);
}

@media (min-width: 992px) {

    .bh-search__form {
        margin-top: 0;
    }
}


/* The field
   --------------------------------------------------------------------------

   The parent ships this as a 48px white pill with a 1px grey border and the
   submit button floated inside it on the right. That is the modal's treatment,
   and in the modal — a dark sheet — it is right. On the page it is the only
   boxed element on a screen whose entire visual language is hairlines, so it
   is unboxed here: a ruled line with the term sitting on it.

   The button keeps its position and its icon; only the box around it goes. */

.bh-search .ms-search-widget {
    height: auto;
}

.bh-search .search-field {
    width: 100%;
    height: auto;

    /* Right padding clears the submit button, which the parent absolutely
       positions in that corner. */
    padding: 0 2.5rem var(--bh-s4) 0;
    border: 0;
    border-bottom: 1px solid var(--color-contrast-higher);
    border-radius: 0;
    background: none;
    color: var(--color-contrast-higher);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.3;
}

/* 0.7, not 0.5: the placeholder is text a person has to read to know what the
   field wants, so it is held to the 4.5:1 body-text floor rather than to
   whatever looked quiet. At 0.7 on this field it measures 6.1:1. */
.bh-search .search-field::placeholder {
    color: var(--color-contrast-higher);
    opacity: 0.7;
}

.bh-search .search-field:focus-visible {
    outline: 0;
    border-bottom-color: var(--bh-accent);
    border-bottom-width: 2px;
    padding-bottom: calc(var(--bh-s4) - 1px);
}

.bh-search .ms-search--btn {
    left: auto;
    right: 0;
    top: 0;
    bottom: auto;
    width: 2.5rem;
    height: calc(100% - var(--bh-s4));
    color: var(--color-contrast-higher);
}


/* The suggestions. Pills in the modal, plain ruled links here — a row of five
   outlined capsules under an unboxed field puts the chrome back that the field
   just lost. The underline is the affordance instead, and the touch-target
   padding set under `pointer: coarse` further down still applies. */

.bh-search .bh-search-sugg {
    margin-top: var(--bh-s5);
}

.bh-search .bh-search-sugg__item {
    padding: var(--bh-s1) 0;
    border: 0;
    border-radius: 0;
    opacity: 0.72;
    text-decoration: underline;
    text-decoration-color: var(--bh-search-rule);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

.bh-search .bh-search-sugg__item:hover,
.bh-search .bh-search-sugg__item:focus-visible {
    background-color: transparent;
    opacity: 1;
    text-decoration-color: var(--bh-accent);
    text-decoration-thickness: 2px;
}

/* The gap between items has to carry the separation now that the outlines are
   gone; the pill spacing was set for shapes that already had edges. */
.bh-search .bh-search-sugg {
    gap: var(--bh-s2) var(--bh-s6);
}


/* The marked term
   --------------------------------------------------------------------------

   An amber underline, not a highlighter block. #FCCA73 behind near-black text
   is legible, but a run of filled rectangles through a paragraph is the louder
   element on a screen that has no other fills — and the same mark has to work
   inside a 4rem headline, where a block of colour behind two words reads as a
   button. The underline scales with the type and stays quiet at every size. */

.bh-search mark,
.bh-search__term {
    background: none;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--bh-accent);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.16em;
}


/* The rows
   -------------------------------------------------------------------------- */

.bh-results {
    margin: 0;
    padding: 0;
    list-style: none;

    /* The theme's reset leaves `counter-reset` and list markers on <ol>; this
       is an ordered list because the first result is the best match, not
       because anyone should see numbers. */
}

.bh-result__row {
    position: relative;
    padding: var(--bh-s7) 0;
    border-top: 1px solid var(--bh-search-rule);
    transition: border-top-color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* The list closes on a rule, the same way the services index does, so the last
   row is bounded rather than trailing off into the page. */
.bh-result:last-child .bh-result__row {
    border-bottom: 1px solid var(--bh-search-rule);
}

@media (min-width: 992px) {

    .bh-result__row {
        display: grid;
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        gap: 0 var(--bh-s9);
        align-items: start;
    }
}

.bh-result__title {
    margin: 0;
    font-size: clamp(1.375rem, 2.1vw, 1.875rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

/* The whole row is the target, not just the four words of the title. The link
   stays a real link in the accessibility tree and in the tab order; the
   pseudo-element is what makes the rest of the row clickable. */
.bh-result__link {
    color: currentColor;
    text-decoration: none;
}

.bh-result__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* 0.72, not the 0.55 this started at: it is 12px type and it classifies the
   result, so it is read, not decoration. 0.55 composites to #838383 on the page
   and measures 3.5:1; 0.72 gives #606060 and 6.0:1. */
.bh-result__kind {
    margin: var(--bh-s3) 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.bh-result__body {
    margin-top: var(--bh-s4);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--bh-s4);
    align-items: start;
}

@media (min-width: 992px) {

    .bh-result__body {
        margin-top: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: var(--bh-s8);
    }
}

.bh-result__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 62ch;
}

/* Same affordance, same wording distance and same 4px travel as the CTA on the
   services index — a row that behaves identically should not announce itself
   differently. */
.bh-result__cta {
    justify-self: start;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: var(--bh-s2);
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 992px) {

    .bh-result__cta {
        justify-self: end;
    }
}

.bh-result__cta::after {
    content: "→";
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.bh-result__row:hover,
.bh-result__row:focus-within {
    border-top-color: var(--color-contrast-higher);
}

.bh-result__row:hover .bh-result__cta,
.bh-result__row:focus-within .bh-result__cta {
    opacity: 1;
}

.bh-result__row:hover .bh-result__cta::after,
.bh-result__row:focus-within .bh-result__cta::after {
    transform: translateX(4px);
}

/* The keyboard ring goes on the row, not on the stretched link — the link's own
   box is the title text, so a focus outline there would draw a rectangle round
   three words of a row the key press actually selects. */
.bh-result__row:focus-within {
    outline: 2px solid var(--bh-accent);
    outline-offset: var(--bh-s3);
}

.bh-result__link:focus-visible {
    outline: 0;
}


/* The entrance
   --------------------------------------------------------------------------

   One moment, on arrival, and only here: the rows rise as the list resolves.
   The stagger is capped at ten steps so a long list does not keep the last row
   waiting on an animation nobody is watching by then. */

@media (prefers-reduced-motion: no-preference) {

    .bh-result__row {
        animation: bh-result-in 0.5s cubic-bezier(0.25, 1, 0.5, 1) both;
        animation-delay: calc(40ms * min(var(--i, 0), 10));
    }
}

@keyframes bh-result-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}


/* Pagination
   --------------------------------------------------------------------------

   The theme renders page numbers as filled chips with the current one in
   amber. On a screen with no other filled shape they are three buttons that do
   not look like anything else on it, so they are set as the rules are: plain
   numerals, the current one underlined in the same amber. */

.bh-search .navigation.pagination {
    margin-top: var(--bh-s8);
}

.bh-search .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--bh-s3) var(--bh-s6);
}

.bh-search .page-numbers {
    min-width: 0;
    padding: var(--bh-s2) 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--color-contrast-higher);
    font-size: 0.9375rem;
    line-height: 1;
    opacity: 0.7;
}

.bh-search a.page-numbers:hover,
.bh-search a.page-numbers:focus-visible {
    background: none;
    opacity: 1;
}

.bh-search .page-numbers.current {
    opacity: 1;
    background: none;
    text-decoration: underline;
    text-decoration-color: var(--bh-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.4em;
}


/* Marquee — final review #3, item 9
   --------------------------------------------------------------------------

   "Identify and resolve the existing marquee functionality issues to ensure
   smooth, consistent scrolling, proper alignment, and seamless display across
   all devices and screen sizes."

   Measured on live before the fix (bh-ticker-probe.mjs):

       width   strips  inner    content   band    duration
       1440px    1     block     1215px   1440px   12.15s
        390px    1     block      503px    390px    5.03s

   The parent theme animates `.ms-tt` from translateX(0) to translateX(-100%)
   and styles `.ms-tt-wrap.ticker-active .ms-tt:nth-child(2)`, so it expects a
   duplicated strip. The helper plugin renders exactly one `<ul class="ms-tt">`,
   which walks off the left edge and snaps back once a cycle.

   The duplication is done in assets/bh-ticker.js — CSS cannot repeat content.
   These two rules are what make a duplicate work at all, so the two files are
   useless apart.

   Neither the plugin nor the parent theme is touched: both are overwritten on
   update. */

/* The strips have to queue, not stack. The wrapper's inner div has no class of
   its own in block_text_ticker.php, hence the structural selector. */
.ms-text-ticker .ms-tt-wrap > div {
    display: flex;
    flex: 0 0 auto;
}

/* `width: 100%` is the box, not the words — the strip is `white-space: nowrap`
   and overflows it. So translateX(-100%) travelled the container width and the
   strip never lined up with its own repeat. max-content makes -100% exactly one
   strip, which is the whole trick: copy 2 lands precisely where copy 1 began.

   It also fixes the speed. app.js derives --ticker-duration from
   `offsetWidth`, so with the box width it ran the same words at two different
   rates on desktop and mobile. */
.ms-text-ticker .ms-tt-wrap .ms-tt {
    width: max-content;
    flex: 0 0 auto;
}

/* `.ms-tt` carries a baseline `transform: translate(-10vw)`, and the keyframes
   run with `animation-composition: add` — so that offset is not replaced by the
   animation, it is added to it. The whole run of strips therefore sits 10vw to
   the left of where the arithmetic puts it, permanently. With one strip that is
   invisible (it was already leaving the band empty); with strips queued behind
   each other it eats 10vw off the right-hand end, which measured as a 5px hole
   at 768px once everything else was right. The offset buys nothing here — it
   was hiding the left seam of a strip that no longer has one. */
.ms-text-ticker .ms-tt-wrap.ticker-active .ms-tt {
    transform: none;
}

/* The theme's -2px on the second strip hides a seam between two boxes whose
   widths disagree. Here they cannot disagree — every copy is the same node at
   max-content — so the nudge is the only thing that would MAKE a 2px jump, once
   per cycle, on the one strip that carries it. */
.ms-text-ticker .ms-tt-wrap.ticker-active .ms-tt:nth-child(2) {
    margin-left: 0;
}

.ms-text-ticker .ms-tt-wrap.ticker-active[data-direction="right"] .ms-tt:nth-child(2) {
    margin-right: 0;
}

/* A marquee is decoration that never stops. Respect the OS setting rather than
   making someone who asked for stillness watch it. */
@media (prefers-reduced-motion: reduce) {

    .ms-text-ticker .ms-tt-wrap.ticker-active .ms-tt {
        animation: none;
        transform: none;
    }
}


/* Hero card gallery on mobile — final review #3, item 13
   --------------------------------------------------------------------------

   "The stacked image cards are currently not visible on mobile devices."

   They were hidden in the 05/10 round for a reason that later stopped being
   true — see the long note at the hide_mobile line in .devsite/bh-build.php.
   Unhiding them is done there, on the data. What is here is the part that makes
   six cards fit a phone, which is a breakpoint rule against stable theme
   classes and has nothing to do with the builder.

   The theme sizes each card `width: clamp(6rem, 100%, 14vw)`. Below about
   430px the 14vw MAXIMUM falls underneath the 6rem MINIMUM, and clamp resolves
   a crossed range to the minimum — so every card snaps to 96px exactly where
   there is least room for it. The `img` inside is `width: auto; height: 100%`,
   so a landscape frame paints about 1.5x its box: six cards measured ~550px of
   ink across a 390px band, clipped at both edges by the theme's global
   `overflow-x: hidden` rather than scrolling.

   Four cards, not six. Six at a width that fits 390px is 43px a card — present,
   but too small to read as photography, which defeats the point of showing them
   at all. The last two are dropped rather than wrapped: a second row of cards
   under the first is a grid, and this is meant to read as a loose stack. */

@media (max-width: 767px) {

    .magnetic_hero .hero__images .hero__image {
        width: clamp(3.5rem, 18vw, 6rem);
    }

    .magnetic_hero .hero__images .hero__image:nth-child(n+5) {
        display: none;
    }

    /* 40vh of a short phone viewport is most of what is left after the header.
       The cards are square, so the row only needs the card height plus the
       rotation and translateY the theme gives them room for. */
    .magnetic_hero .hero__images {
        height: auto;
        min-height: 0;
        padding: 2.5rem 0;
    }
}

/* ==========================================================================
   Theme switch — sun/moon pill (was an unlabeled dark dot)
   ========================================================================== */
/* Theme switch: a sun/moon pill. Light = knob left on the sun, dark = knob right on the moon.
   Markup and JS are the parent's (#switcher checkbox); only the look changes. !important is
   needed because the parent's :hover rules out-rank anything shorter and slide the knob. */
body .ms_theme_mode.ms-h_w{width:auto!important;height:36px;overflow:visible;border-radius:0}
body .ms_theme_mode .toggle-switch{width:60px;height:30px;flex:none}
body .ms_theme_mode .toggle-back{
  width:100%;height:100%;clip-path:none;border-radius:30px;
  background:#e8ebf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E") 7px center/16px no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E") right 7px center/15px no-repeat;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.18);
}
body[data-theme=dark] .ms_theme_mode .toggle-back{background-color:#2b3445;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
body .ms_theme_mode .toggle-label{width:24px;height:24px;left:3px;right:auto;margin:0;transform:translate(0,-50%)!important;transition:transform .35s cubic-bezier(.4,0,.2,1)}
body[data-theme=dark] .ms_theme_mode .toggle-label{transform:translate(30px,-50%)!important}
body .ms_theme_mode .toggle-label::before{
  width:24px;height:24px;transform:none!important;border-radius:50%;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23f59e0b'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E") center/16px no-repeat!important;
  box-shadow:0 1px 4px rgba(15,23,42,.35);
}
body[data-theme=dark] .ms_theme_mode .toggle-label::before{
  background:#111827 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fde68a'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E") center/15px no-repeat!important;
}
