/* ==========================================================================
   BOOOM — global styles
   Ported from the source design's <helmet> block (BOOOM Website.dc.html),
   with brand tokens + a few additions (loading state, smooth scroll).
   ========================================================================== */

@font-face { font-family: 'Kanuba'; src: url('../assets/fonts/FBKANUBA-LIGHT.OTF')   format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Kanuba'; src: url('../assets/fonts/FBKANUBA-REGULAR.OTF') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kanuba'; src: url('../assets/fonts/FBKANUBA-BOLD.OTF')    format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Kanuba'; src: url('../assets/fonts/FBKANUBA-BLACK.OTF')   format('opentype'); font-weight: 900; font-display: swap; }

/* Rubik for Latin only (scoped by unicode-range) so English text isn't a system
   fallback; Hebrew still falls through to the Kanuba brand font. Variable weight. */
@font-face {
  font-family: 'Rubik'; src: url('../assets/fonts/rubik-latin.woff2') format('woff2');
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik'; src: url('../assets/fonts/rubik-latin-ext.woff2') format('woff2');
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --booom-red: #BB1824;
  --booom-red-hot: #E22335;
  --booom-red-dark: #8F101B;
  --booom-ink: #141414;
  --booom-paper: #FFFFFF;
  --booom-bg: #F7F5F2;
  --booom-green: #1F8A4C;
  --booom-muted: #6a6a6a; /* AA-compliant muted text on white (≈5:1) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rubik', 'Kanuba', 'Heebo', 'Arial Hebrew', sans-serif; color: var(--booom-ink);
  background:
    radial-gradient(130% 50% at 50% 0%, #FDFCFB 0%, rgba(253,252,251,0) 40%),
    radial-gradient(90% 60% at 100% 100%, #FBF3F3 0%, rgba(251,243,243,0) 46%),
    var(--booom-bg);
  background-attachment: fixed;
}
button, input, select, textarea { font-family: inherit; }

/* --- keyboard focus indicator (suppressed for mouse, shown for keyboard) --- */
:focus-visible { outline: 3px solid var(--booom-red); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
/* white ring on red/dark surfaces where the red outline would vanish */
#bm-hero :focus-visible,
.bm-locator :focus-visible,
.bm-darkcta :focus-visible,
footer :focus-visible,
.bm-close:focus-visible { outline-color: #fff; }
/* readable placeholder on the dark locator field, regardless of UA defaults */
[data-input="locatorCity"]::placeholder { color: #cfcfcf; opacity: 1; }

/* --- keyframes (transform-only, matching the source design) --- */
@keyframes booomHeroIn { 0% { transform: translateY(26px) scale(.98); } 100% { transform: none; } }
@keyframes booomPop { 0% { transform: scale(.6) rotate(-6deg); } 60% { transform: scale(1.12) rotate(3deg); } 100% { transform: scale(1) rotate(-3deg); } }
@keyframes booomModalIn { 0% { transform: translateY(18px); } 100% { transform: none; } }
@keyframes booomOverlay { 0% { transform: translateZ(0); } 100% { transform: translateZ(0); } }
@keyframes booomPopupIn { 0% { opacity: 0; transform: translateY(28px) scale(.9); } 55% { transform: translateY(0) scale(1.015); } 100% { opacity: 1; transform: none; } }
@keyframes booomMenuIn { 0% { opacity: 0; transform: translateX(40px); } 100% { opacity: 1; transform: none; } }
/* Top sheet menu: drops from above with a soft overshoot; items stagger in under it. */
@keyframes booomMenuDrop { 0% { opacity: 0; transform: translateY(-102%); } 70% { opacity: 1; transform: translateY(6px); } 100% { transform: translateY(0); } }
@keyframes booomMenuItem { 0% { opacity: 0; transform: translateY(-12px); } 100% { opacity: 1; transform: none; } }
@keyframes booomSpin { to { transform: rotate(360deg); } }
@keyframes booomSheetUp { 0% { transform: translateY(60px); } 100% { transform: none; } }

/* --- effects --- */
/* scroll-reveal: hidden until observeReveals() (app.js) adds .bm-in on viewport entry */
.bm-reveal { opacity: 0; transform: translateY(24px); }
.bm-reveal.bm-in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.bm-card { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.bm-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(187,24,36,.22) !important; }
.bm-prodcard:hover .bm-price { animation: booomPop .5s cubic-bezier(.2,.8,.2,1) both; }
.bm-navlink { position: relative; transition: color .2s; }
.bm-navlink::after { content: ''; position: absolute; bottom: -6px; right: 0; height: 3px; width: 0; background: var(--booom-red); transition: width .25s; border-radius: 3px; }
.bm-navlink:hover::after { width: 100%; }
.bm-btn { transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .2s; }
.bm-btn:hover { transform: translateY(-3px); }
.bm-btn:active { transform: translateY(0) scale(.97); }

/* --- promo popup ------------------------------------------------------- */
.bm-popup-backdrop {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(12, 3, 5, .55); backdrop-filter: blur(7px) saturate(1.05);
  animation: booomOverlay .25s both;
}
.bm-popup-card {
  position: relative; width: 100%; max-width: 392px; outline: none;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 34px 66px -26px rgba(187,24,36,.42),
    0 20px 46px -22px rgba(0,0,0,.5);
  animation: booomPopupIn .5s cubic-bezier(.18,.9,.28,1.18) both;
}
/* hero: content is bottom-anchored so a photo (when present) is the star */
.bm-popup-hero {
  position: relative; overflow: hidden; min-height: 168px;
  display: flex; align-items: flex-end; padding: 22px;
  background: radial-gradient(135% 120% at 78% 6%, #E4283A 0%, #C21A28 52%, #8F101B 100%);
}
/* one soft directional sheen — not confetti */
.bm-popup-fx {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(78% 92% at 84% 6%, rgba(255,255,255,.20), transparent 58%);
}
/* the wordmark ghost: a single oversized brand letterform, faint, bled off-corner */
.bm-popup-burst {
  position: absolute; top: -46px; inset-inline-start: -30px; width: 200px; height: 200px;
  pointer-events: none; opacity: .12;
  background: radial-gradient(circle at 50% 50%, #fff 0 30%, transparent 33%) center/34px 34px,
              radial-gradient(circle, rgba(255,255,255,.9), transparent 66%);
  -webkit-mask: radial-gradient(circle, #000 62%, transparent 63%);
          mask: radial-gradient(circle, #000 62%, transparent 63%);
}
.bm-popup-hero-in {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 11px;
  text-align: start;
}
/* photo-backed hero: the image reads clearly; text sits in a bottom scrim */
.bm-popup-hero--photo { min-height: 236px; padding: 22px; }
.bm-popup-photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.bm-popup-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16,3,5,.94) 3%, rgba(16,3,5,.52) 34%, rgba(16,3,5,.04) 64%, transparent 80%),
    linear-gradient(to top, rgba(187,24,36,.30), transparent 52%);
}
.bm-popup-hero--photo .bm-popup-fx { z-index: 1; opacity: .7; }
.bm-popup-hero--photo .bm-popup-burst { display: none; }
/* eyebrow + title */
.bm-popup-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 14px;
  border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .3px;
  color: #fff; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px);
}
.bm-popup-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.16);
}
.bm-popup-title { font-weight: 900; line-height: 1.02; letter-spacing: -.6px; text-align: start; }
.bm-popup-title--red { font-size: 33px; color: #fff; text-shadow: 0 6px 22px rgba(0,0,0,.42); }
.bm-popup-title--white { font-size: 28px; color: var(--booom-ink); margin-top: 12px; }
/* body */
.bm-popup-body { padding: 20px 24px 22px; text-align: start; }
.bm-popup-text { font-size: 15.5px; line-height: 1.6; color: var(--booom-muted); margin: 0; }
.bm-popup-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; height: 54px; margin-top: 18px; padding-inline: 8px 20px; border: none; cursor: pointer;
  border-radius: 14px; font-family: inherit; font-weight: 800; font-size: 17px; color: #fff;
  background: linear-gradient(180deg, #E4283A, #BB1824);
  box-shadow: 0 12px 24px -12px rgba(187,24,36,.75), 0 1px 0 rgba(255,255,255,.28) inset;
}
.bm-popup-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; font-size: 18px;
  background: rgba(255,255,255,.18);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s;
}
.bm-popup-cta:hover .bm-popup-arrow { transform: translateX(-5px); background: rgba(255,255,255,.3); }
.bm-popup-dismiss {
  display: block; width: 100%; margin-top: 10px; padding: 8px; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700; color: #adadad; transition: color .2s;
}
.bm-popup-dismiss:hover { color: var(--booom-ink); }
/* close */
.bm-popup-close {
  position: absolute; top: 13px; inset-inline-start: 13px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,4,6,.34); color: #fff; font-size: 19px; line-height: 1;
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
  box-shadow: none; transition: transform .2s, background .2s;
}
.bm-popup-close:hover { background: rgba(14,4,6,.58); transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) {
  .bm-popup-card { animation: none; }
  .bm-popup-cta:hover .bm-popup-arrow, .bm-popup-close:hover { transform: none; }
}

/* ===================== hero ===================== */
#bm-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
/* layered atmosphere: warm top light + ambient glow behind the product + deep base */
.bm-hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(50% 56% at 74% 22%, rgba(255,255,255,.09), transparent 60%),
    radial-gradient(60% 60% at 84% 0%, rgba(255,255,255,.16), transparent 52%),
    radial-gradient(64% 82% at 27% 44%, rgba(244,70,62,.34), transparent 62%),
    linear-gradient(158deg, #C9192C 0%, #9C121F 52%, #660A13 100%);
}
/* one branch storefront photo, extremely faint, as background texture */
.bm-hero-branch {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: .08; filter: grayscale(1) contrast(1.05);
  -webkit-mask: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 78%);
          mask: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 78%);
}
.bm-hero-grain {
  position: absolute; inset: 0; z-index: -2; opacity: .05; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 1.5px, transparent 2px),
    radial-gradient(circle at 70% 60%, #fff 1.5px, transparent 2px);
  background-size: 68px 68px;
}
.bm-hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 68% at 50% 124%, rgba(0,0,0,.44), transparent 58%),
    radial-gradient(100% 60% at 50% -12%, rgba(255,255,255,.07), transparent 60%);
}
.bm-herogrid { max-width: 760px; margin: 0 auto; padding: 90px 22px 20px; position: relative; }
.bm-hero-copy { animation: booomHeroIn .9s cubic-bezier(.2,.8,.2,1) both; text-align: center; }
.bm-hero-title {
  font-weight: 900; font-size: clamp(38px, 4.8vw, 64px); line-height: .98; letter-spacing: -1px;
  text-wrap: balance; text-shadow: 0 6px 26px rgba(0,0,0,.28);
}
.bm-hero-sub { font-size: clamp(20px, 2.1vw, 26px); font-weight: 800; margin: 16px 0 10px; opacity: .97; }
.bm-hero-lead { font-size: 17px; max-width: 440px; margin-inline: auto; opacity: .82; line-height: 1.6; }
.bm-heroctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin-top: 30px; }
.bm-hero-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: none; cursor: pointer;
  background: #fff; color: var(--booom-red); font-weight: 900; font-size: 18px; padding: 16px 30px; border-radius: 15px;
  box-shadow: 0 14px 30px -8px rgba(0,0,0,.42);
}
.bm-hero-ghost {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,.05); color: #fff; font-weight: 900; font-size: 17px; padding: 14px 28px;
  border: 2px solid rgba(255,255,255,.5); border-radius: 15px;
  transition: background .2s, border-color .2s;
}
.bm-hero-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
/* branch-network stat line */
.bm-hero-proof-txt { color: #fff; font-size: 14.5px; font-weight: 700; opacity: .82; margin-top: 30px; }
.bm-hero-proof-txt strong { font-weight: 900; opacity: 1; }

.bm-hero-wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; position: relative; z-index: 1; }

/* full-bleed infinite product ticker — bare cutouts (no card) with a price tag, never stopping
   (no hover-pause; it isn't a clickable control). The band is tall enough that the full rotated
   product always fits with no top/bottom clipping; only the rotation varies per item for
   visual rhythm, and the price sits beside the product like a tag, not on top of it. */
.bm-hero-marquee-band { position: relative; width: 100%; height: 270px; overflow: hidden; }
.bm-hero-marquee {
  position: relative; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.bm-hero-marquee-track {
  position: absolute; top: 50%; left: 0; display: flex; align-items: center; gap: 30px; width: max-content;
  animation: boooMarquee 120s linear infinite;
}
.bm-marquee-item {
  position: relative; flex: none; width: 210px; height: 210px;
  display: flex; align-items: center; justify-content: center;
}
.bm-marquee-item img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,.4));
}
.bm-marquee-price {
  position: absolute; top: 50%; right: -14px; background: #fff; color: #1A1A1A; border: 2.5px solid #1A1A1A;
  font-weight: 900; font-size: 18px; padding: 6px 13px; border-radius: 11px;
  box-shadow: 0 8px 16px rgba(0,0,0,.3);
}
@keyframes boooMarquee {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(-50%); }
}

/* ===================== shared component polish ===================== */
/* softer, layered card shadows + tactile hover lift (structure-safe: CSS only) */
.bm-card { transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1); }
.bm-prodcard { box-shadow: 0 1px 3px rgba(20,10,12,.05), 0 16px 32px -18px rgba(20,10,12,.2) !important; }
.bm-prodcard:hover { transform: translateY(-6px); box-shadow: 0 8px 16px rgba(20,10,12,.08), 0 28px 48px -20px rgba(187,24,36,.34) !important; }
/* The price mark hangs off the bottom of the photo, the way it sits on the printed flyer. */
.bm-pricewrap { margin: -20px 0 2px; position: relative; z-index: 2; }
.bm-price { transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.bm-prodcard:hover .bm-price { transform: rotate(-2deg) scale(1.05); }
/* departments: two rows of five square photo tiles */
.bm-deptgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
/* why-section stat cards: crisp elevation + a brand accent bar */
.bm-whygrid .bm-card {
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.4) !important; position: relative; overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.bm-whygrid .bm-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, #E22335, #FF6A54);
}
.bm-whygrid .bm-card:hover { transform: translateY(-4px); }
/* dark surfaces: warm near-black with a faint brand-tinted corner glow, not flat #1A1A1A.
   The store locator opts in via .bm-darkcta; .bm-locator itself is only a responsive grid. */
.bm-darkcta { background: radial-gradient(130% 190% at 90% -30%, #2a1517 0%, #171314 40%, #141212 100%) !important; box-shadow: 0 20px 44px -22px rgba(0,0,0,.5); }

/* --- sticky condensed header --- */
#bm-header { position: sticky; top: 0; z-index: 60; }
#bm-strong { scroll-margin-top: 90px; } /* in-page scroll target must clear the sticky header */
#bm-header header { transition: box-shadow .25s ease; }
.bm-header-inner { transition: padding .25s ease; }
#bm-header.bm-header-scrolled .bm-header-inner { padding-top: 7px !important; padding-bottom: 7px !important; }
#bm-header.bm-header-scrolled header { box-shadow: 0 6px 24px rgba(0,0,0,.08) !important; }

/* --- strong-products coverflow carousel --- */
.bm-carousel { position: relative; }
.bm-carousel-viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  perspective: 1400px;
  padding: 30px 0 38px;
  scrollbar-width: none;
  cursor: grab;
  -ms-overflow-style: none;
}
.bm-carousel-viewport::-webkit-scrollbar { display: none; }
.bm-carousel-viewport.bm-grabbing { cursor: grabbing; }
.bm-carousel-track {
  display: flex; align-items: center; gap: 18px;
  width: max-content;
  transform-style: preserve-3d;
  padding-inline: max(16px, calc(50% - 150px));
}
.bm-slide {
  flex: 0 0 300px;
  scroll-snap-align: center;
  transform-style: preserve-3d; /* pass the inner's 3D transform through to the viewport perspective */
}
/* The coverflow transform is applied to this inner wrapper, NOT the slide itself, so the
   slide's box stays a stable measurement target (no transform-feedback). No CSS transition:
   the transform is driven per-frame by scroll, so a transition would lag and stutter. */
.bm-slide-inner {
  height: 100%;
  transform-origin: center center;
  backface-visibility: hidden;
}
.bm-slide-inner .bm-card { height: 100%; }
.bm-carousel-arrow {
  position: absolute; top: 46%; transform: translateY(-50%); z-index: 30;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.95); color: var(--booom-red);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s, box-shadow .18s, background .2s, color .2s;
}
.bm-carousel-arrow:hover { transform: translateY(-50%) scale(1.1); background: var(--booom-red); color: #fff; box-shadow: 0 14px 30px rgba(187,24,36,.34); }
.bm-carousel-next { left: -4px; }
.bm-carousel-prev { right: -4px; }
.bm-carousel-prev svg { transform: scaleX(-1); }
.bm-carousel-dots { display: flex; gap: 9px; justify-content: center; margin-top: 6px; }
.bm-dot {
  width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: #d6d6d6; transition: width .25s, background .25s, border-radius .25s;
}
.bm-dot[aria-selected="true"] { width: 30px; border-radius: 6px; background: var(--booom-red); }

@media (max-width: 680px) {
  .bm-slide { flex-basis: 250px; }
  .bm-carousel-track { padding-inline: max(12px, calc(50% - 125px)); }
  .bm-carousel-arrow { width: 40px; height: 40px; }
}

/* --- locator radar visual --- */
.bm-radar-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.10); border-radius: 50%; }
@keyframes booomRadarPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}
.bm-radar-pulse { animation: booomRadarPulse 3.2s ease-out infinite; }

/* --- branch card photo: the whole photo opens the full-details sheet --- */
.bm-branchphoto-hint {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); color: #fff; font-weight: 900; font-size: 16px;
  opacity: 0; transition: opacity .2s ease;
}
.bm-branchphoto:hover .bm-branchphoto-hint,
.bm-branchphoto:focus-visible .bm-branchphoto-hint { opacity: 1; }

/* --- department tile: the photo itself IS the card, with only the name over a scrim --- */
.bm-depttile {
  position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 1 / 1;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(150deg, #E22335 0%, #931019 100%);
  box-shadow: 0 1px 3px rgba(20,10,12,.06), 0 12px 26px -16px rgba(20,10,12,.3) !important;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.bm-depttile:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -16px rgba(187,24,36,.4) !important; }
.bm-depttile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.bm-depttile:hover img { transform: scale(1.06); }
/* bottom scrim so the name stays legible over a busy photo or the plain fallback alike */
.bm-depttile::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 55%; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.28) 45%, transparent);
}
.bm-depttile:not(.is-photo)::after { background: linear-gradient(to top, rgba(0,0,0,.3), transparent); }
.bm-deptname {
  position: relative; z-index: 2; width: 100%; text-align: center; padding: 0 10px 14px;
  font-weight: 900; font-size: 17px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

/* ===================== about: the story page =====================
   One spacing scale drives the whole page, so chapters breathe consistently instead of each
   section inventing its own margins. Body copy is capped at a readable measure and every
   chapter shares the same two-column head/body rhythm; the red promise is the one break. */
.bm-story {
  --gap-section: clamp(88px, 11vw, 168px);   /* between chapters */
  --gap-block: 28px;                          /* between blocks inside a chapter */
  --pad-x: clamp(22px, 5vw, 64px);
  --wide: 1240px;
  --measure: 60ch;
  padding-bottom: clamp(80px, 9vw, 130px);
  overflow-x: clip;
}
.bm-story > section { max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad-x); }
.bm-story > section + section { margin-top: var(--gap-section); }

/* a short red rule above every chapter label, tying the chapters together */
.bm-story .bm-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 13px; letter-spacing: .18em; color: var(--booom-red);
  margin-bottom: 20px;
}
.bm-story .bm-eyebrow span { width: 30px; height: 3px; background: currentColor; border-radius: 3px; }

.bm-story h1 {
  font-weight: 900; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04;
  letter-spacing: -.015em; text-wrap: balance; color: var(--booom-red);
}
.bm-story h2 {
  font-weight: 900; font-size: clamp(29px, 3.5vw, 44px); line-height: 1.12;
  letter-spacing: -.01em; text-wrap: balance; color: var(--booom-red);
}
/* the promise chapter sits on red, so its headline stays white */
.bm-promise h1, .bm-promise h2 { color: #fff; }
.bm-story p { font-size: 18px; line-height: 1.8; color: #43403f; max-width: var(--measure); }
.bm-story p + p { margin-top: 18px; }

/* --- hero: photo on the left, white copy panel on the right --- */
.bm-story-hero {
  max-width: none !important; padding-inline: 0 !important;
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: stretch;
  background: #fff;
}
.bm-story-hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 7vw, 96px) var(--pad-x);
  max-width: 660px; margin-inline-start: auto;   /* hug the centre gutter */
}
.bm-story-hero-copy p { color: var(--booom-muted); margin-top: 22px; font-size: 19px; }
/* The panel carries the photo's own 4:3, so the whole shot shows with no crop and no
   letterbox bars - the photo's red vignette never has to be matched by a flat colour. */
.bm-story-hero-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.bm-story-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}

/* --- chapter: one centred column, so nothing floats in a half-empty grid --- */
.bm-chapter { text-align: center; max-width: 900px !important; }
.bm-chapter .bm-eyebrow { justify-content: center; }
.bm-story .bm-chapter p { max-width: 58ch; margin-inline: auto; }
.bm-chapter h2 { margin-bottom: 26px; }

/* --- the promise: the page's one loud moment, given real air --- */
.bm-promise {
  max-width: none !important; padding-inline: 0 !important;
  background: radial-gradient(120% 150% at 50% 0%, #E4283A 0%, #C21A28 48%, #8F101B 100%);
  color: #fff; text-align: center;
}
.bm-promise-inner { padding: clamp(84px, 11vw, 150px) var(--pad-x); }
.bm-story .bm-promise-line {
  font-weight: 900; font-size: clamp(52px, 9.5vw, 128px); line-height: .98; color: #fff;
  max-width: none; margin-inline: auto; letter-spacing: -.02em;
}
.bm-strike { position: relative; display: inline-block; }
.bm-strike::after {
  content: ''; position: absolute; inset-inline: -.05em; top: 53%; height: .085em;
  background: #fff; border-radius: 99px;
  transform: scaleX(0); transform-origin: 100% 50%;   /* RTL: wipes right to left */
  transition: transform .8s cubic-bezier(.2,.8,.2,1) .35s;
}
.bm-in .bm-strike::after { transform: scaleX(1); }
.bm-story .bm-promise-punch {
  font-weight: 900; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.15; color: #fff;
  max-width: none; margin-top: 22px;
}
.bm-story .bm-promise-sub {
  color: rgba(255,255,255,.82); max-width: 46ch; margin: 26px auto 0; font-size: 17.5px;
}

/* --- feature: image and copy, image lifted off the ground --- */
.bm-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5.5vw, 84px);
  align-items: center;
}
.bm-feature-media {
  border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 40px 70px -34px rgba(20,10,12,.55);
}
.bm-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-story .bm-feature-note {
  margin-top: 22px; padding-inline-start: 18px; border-inline-start: 3px solid var(--booom-red);
  font-weight: 700; color: var(--booom-ink);
}

/* --- expansion: copy beside a single oversized figure --- */
.bm-expand {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5.5vw, 80px);
  align-items: center;
}
.bm-expand-figure {
  text-align: center; padding: clamp(38px, 5vw, 60px) 24px;
  background: #fff; border-radius: 26px;
  box-shadow: 0 1px 3px rgba(20,10,12,.05), 0 30px 60px -34px rgba(20,10,12,.35);
}
.bm-expand-num {
  display: block; font-weight: 900; font-size: clamp(120px, 16vw, 220px); line-height: .88;
  color: var(--booom-red); letter-spacing: -.03em;
}
.bm-expand-cap {
  display: block; margin-top: 18px; font-weight: 900; font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: .02em; color: var(--booom-ink);
}
.bm-expand-cta {
  margin-top: 30px; border: none; cursor: pointer; background: var(--booom-ink); color: #fff;
  font-weight: 900; font-size: 17px; padding: 17px 32px; border-radius: 15px;
}
.bm-expand-cta:hover { background: var(--booom-red); }

/* --- closing figures: the same cards the home page uses, so the numbers match everywhere --- */
.bm-figures {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.bm-figures .bm-card { box-shadow: 0 1px 3px rgba(20,10,12,.05), 0 18px 40px -28px rgba(20,10,12,.35) !important; }

@media (max-width: 980px) {
  .bm-story-hero { grid-template-columns: 1fr; min-height: 0; }
  .bm-story-hero-copy { max-width: none; margin-inline: 0; padding-block: clamp(48px, 9vw, 72px); }
  .bm-story-hero-media { aspect-ratio: 4 / 3; }
  .bm-feature, .bm-expand { grid-template-columns: 1fr; gap: var(--gap-block); }
  .bm-feature-media, .bm-expand-figure { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-strike::after { transition: none; transform: scaleX(1); }
}

/* --- form field error state --- */
.bm-field-error { border-color: var(--booom-red) !important; }
.bm-error-msg { color: var(--booom-red); font-size: 13px; font-weight: 700; margin-top: -4px; }

/* --- submit-success check: circle + mark draw in --- */
@keyframes booomCheckDraw { to { stroke-dashoffset: 0; } }
.bm-check-circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: booomCheckDraw .6s ease-out forwards; }
.bm-check-mark { stroke-dasharray: 34; stroke-dashoffset: 34; animation: booomCheckDraw .35s ease-out .45s forwards; }

/* --- CV upload dropzone --- */
.bm-upload {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed #ccc; border-radius: 12px; padding: 14px;
  color: var(--booom-muted); cursor: pointer; font-size: 14px; font-weight: 700;
  transition: border-color .2s, background .2s, color .2s;
}
.bm-upload:hover, .bm-upload.bm-dragover { border-color: var(--booom-red); background: #FCEBEC; color: var(--booom-red); }

/* --- application form: role picker (up to two) + CV state --- */
.bm-rolegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bm-rolebox {
  display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  border: 2px solid #eee; border-radius: 12px; padding: 11px 12px; font-size: 14px; font-weight: 700;
  background: #fff; transition: border-color .18s, background .18s, color .18s;
}
.bm-rolebox input { accent-color: var(--booom-red); width: 17px; height: 17px; cursor: pointer; flex: none; }
.bm-rolebox:hover { border-color: #ddd; }
.bm-rolebox.is-on { border-color: var(--booom-red); background: #FCEBEC; color: var(--booom-red); }
.bm-rolebox.is-off { opacity: .45; cursor: not-allowed; }
.bm-rolebox.is-off input { cursor: not-allowed; }
.bm-cv-status { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--booom-muted); }
.bm-cv-status.is-done { color: #1F8A4C; }
.bm-cv-clear {
  margin-inline-start: 8px; border: none; background: #f2f2f2; width: 24px; height: 24px;
  border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1; color: #666;
}
.bm-cv-clear:hover { background: #FCEBEC; color: var(--booom-red); }
@media (max-width: 430px) { .bm-rolegrid { grid-template-columns: 1fr; } }

/* --- contact mini-FAQ --- */
.bm-faq { border-bottom: 1px solid #f0f0f0; }
.bm-faq:last-of-type { border-bottom: none; }
.bm-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; font-size: 15px; font-weight: 800; padding: 14px 0; list-style: none;
}
.bm-faq summary::-webkit-details-marker { display: none; }
.bm-faq summary::after {
  content: ''; flex: none; width: 9px; height: 9px; margin-inline-end: 3px;
  border-left: 2.5px solid var(--booom-red); border-bottom: 2.5px solid var(--booom-red);
  transform: rotate(-45deg); transition: transform .2s;
}
.bm-faq[open] summary::after { transform: rotate(135deg); }
.bm-faq p { font-size: 14px; color: #666; line-height: 1.5; padding-bottom: 14px; }


/* --- branch actions: Waze mark + icon-only dial button --- */
.bm-wazebtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 2px solid #eee; background: #fff; color: #1A1A1A; font-weight: 900; font-size: 14px;
  padding: 9px 14px; border-radius: 11px; text-decoration: none; white-space: nowrap; }
.bm-wazebtn:hover { border-color: #33CCFF; }
.bm-callbtn { display: inline-flex; align-items: center; justify-content: center; border: none;
  cursor: pointer; background: #1A1A1A; color: #fff; padding: 0 15px; border-radius: 11px; }
.bm-callbtn:hover { background: var(--booom-red); }

/* --- footer --------------------------------------------------------------
   Every piece of footer text is white on the near-black ground (the old grey
   #999/#777 was unreadable on a phone), and every line is a real link. */
.bm-foot { background: #1A1A1A; color: #fff; padding: 54px 0 26px; }
.bm-footer {
  max-width: 1280px; margin: 0 auto; padding: 0 22px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px;
}
.bm-footlogo { height: 122px; display: block; }
.bm-foottag {
  color: #fff; font-weight: 900; font-size: 24px; line-height: 1.25;
  margin-top: 16px; max-width: 300px;
}
.bm-foothead {
  font-weight: 900; font-size: 17px; color: #fff; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--booom-red); display: inline-block;
}
.bm-footcol { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bm-footlink {
  color: #fff; font-size: 15.5px; cursor: pointer; text-decoration: none;
  transition: color .2s, opacity .2s; background: none; border: none; padding: 0;
}
.bm-footlink:hover, .bm-footlink:focus-visible { color: #fff; text-decoration: underline; }
.bm-footphone {
  display: flex; width: fit-content; align-items: center; gap: 8px;
  background: var(--booom-red); color: #fff; font-weight: 900; font-size: 16px;
  padding: 11px 20px; border-radius: 13px; text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.bm-footphone:hover, .bm-footphone:focus-visible { background: #E22335; }
.bm-socialrow { display: flex; gap: 12px; flex-wrap: wrap; }
.bm-social {
  width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center;
  justify-content: center; text-decoration: none; background: #fff; overflow: hidden;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s;
}
.bm-social svg { width: 44px; height: 44px; display: block; }
.bm-social:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.4); }
.bm-footbar {
  max-width: 1280px; margin: 30px auto 0; padding: 18px 86px 0;
  border-top: 1px solid #3a3a3a; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; color: #fff; font-size: 14px;
}
.bm-footbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.bm-footbar .bm-footlink { font-size: 14px; }

@media (max-width: 680px) {
  /* One centred column on a phone: the five-column grid squeezed the links into
     two-word wraps, and the sticky a11y/chat buttons sat on top of the last row. */
  .bm-foot { padding: 40px 0 96px; text-align: center; }
  .bm-footer { grid-template-columns: 1fr; gap: 30px; justify-items: center; }
  .bm-footbrand { display: flex; flex-direction: column; align-items: center; }
  .bm-footlogo { height: 132px; }
  .bm-foottag { font-size: 26px; max-width: 320px; }
  .bm-footcol { align-items: center; gap: 12px; }
  .bm-footlink { font-size: 17px; }
  .bm-foothead { font-size: 19px; }
  .bm-footphone { margin-inline: auto; font-size: 17px; }
  .bm-socialrow { justify-content: center; }
  .bm-social { width: 60px; height: 60px; }
  .bm-social svg { width: 50px; height: 50px; }
  .bm-footbar { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .bm-footbar-links { justify-content: center; }
}

/* --- scrollbar --- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--booom-red); border-radius: 8px; border: 3px solid var(--booom-bg); }

/* --- app loading state --- */
#app-loading { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
#app-loading .spin { width: 52px; height: 52px; border: 6px solid #e3e3e3; border-top-color: var(--booom-red); border-radius: 50%; animation: booomSpin 1s linear infinite; }

/* --- responsive (ported verbatim) --- */
@media (max-width: 980px) {
  .bm-herogrid { padding: 60px 22px 16px !important; }
  .bm-prodgrid { grid-template-columns: repeat(2, 1fr) !important; }
  .bm-deptgrid { grid-template-columns: repeat(3, 1fr) !important; }
  .bm-whygrid { grid-template-columns: repeat(2, 1fr) !important; }
  .bm-locator { grid-template-columns: 1fr !important; }
  .bm-about-cards { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 680px) {
  .bm-desktopnav { display: none !important; }
  .bm-mobmenu { display: flex !important; }
  .bm-headercta { display: none !important; }
  .bm-branchgrid { grid-template-columns: 1fr !important; }
  .bm-about-cards { grid-template-columns: 1fr !important; }
  h1 { font-size: 46px !important; }
  .bm-heroctas { flex-direction: column; align-items: stretch; }
  .bm-heroctas .bm-btn { width: 100%; justify-content: center; }
  .bm-hero-marquee-band { height: 195px; }
  .bm-hero-marquee { transform: scale(.72); }
  .bm-darkcta { padding: 28px 22px !important; }
  .bm-darkcta h2 { font-size: 30px !important; line-height: 1.06 !important; }
  .bm-sheet { position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; max-width: 100% !important; max-height: 92vh !important; border-radius: 22px 22px 0 0 !important; animation: booomSheetUp .35s cubic-bezier(.2,.8,.2,1) both !important; }
}
@media (max-width: 430px) {
  .bm-prodgrid { grid-template-columns: 1fr !important; }
  .bm-deptgrid { grid-template-columns: repeat(2, 1fr) !important; }
  .bm-deptname { font-size: 15px; }
  .bm-whygrid { grid-template-columns: 1fr !important; }
}

/* --- reduced motion: consolidated overrides ---
   Continuous animations stop; entrance effects settle to their final state.
   (!important beats the hero's inline animation styles.)
   JS counterparts: carousel autoplay, hero parallax, count-up and observeReveals
   all check prefers-reduced-motion before animating. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #bm-hero *, .bm-herogrid > div { animation: none !important; }
  .bm-radar-pulse { animation: none; }
  .bm-carousel-viewport { scroll-behavior: auto; }
  .bm-check-circle, .bm-check-mark { animation: none; stroke-dashoffset: 0; }
  .bm-reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== floating widgets: a11y + assistant ===================== */
#bm-fab { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
#bm-fab > * { pointer-events: auto; }
.bm-fab-launch {
  position: fixed; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  border: none; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,.32); transition: transform .18s ease, box-shadow .18s ease;
}
.bm-fab-launch:hover { transform: translateY(-3px) scale(1.05); }
.bm-fab-launch:active { transform: scale(.96); }
.bm-fab-a11y { inset-inline-start: 22px; background: #1D65C1; }
.bm-fab-chat { inset-inline-end: 22px; background: var(--booom-red); }
.bm-fab-ping { position: absolute; top: 10px; inset-inline-end: 10px; width: 11px; height: 11px; border-radius: 50%; background: #FFD43B; box-shadow: 0 0 0 3px rgba(255,212,59,.35); animation: booomPing 1.8s ease-in-out infinite; }
@keyframes booomPing { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } }
.bm-fab-x { border: none; background: rgba(255,255,255,.18); color: #fff; width: 32px; height: 32px; border-radius: 9px; font-size: 20px; cursor: pointer; line-height: 1; flex: none; }

/* accessibility panel */
.bm-a11y-panel {
  position: fixed; bottom: 92px; inset-inline-start: 22px; width: 268px; background: #fff; color: #1A1A1A;
  border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); overflow: hidden;
  animation: booomFabIn .22s cubic-bezier(.2,.8,.2,1) both;
}
.bm-a11y-head { display: flex; align-items: center; justify-content: space-between; background: #1D65C1; color: #fff; font-weight: 900; font-size: 17px; padding: 13px 16px; }
.bm-a11y-grid { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.bm-a11y-font { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; text-align: center; font-weight: 800; font-size: 14px; color: #555; }
.bm-a11y-btn {
  border: 2px solid #eee; background: #fafafa; color: #1A1A1A; font-family: inherit; font-weight: 800; font-size: 15px;
  padding: 12px 14px; border-radius: 12px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.bm-a11y-btn:hover { border-color: #1D65C1; }
.bm-a11y-font .bm-a11y-btn { padding: 10px 0; }
.bm-a11y-btn.is-on { background: #1D65C1; color: #fff; border-color: #1D65C1; }
.bm-a11y-reset { background: #fff; color: var(--booom-red); border-color: #f0dada; margin-top: 2px; }

/* chat panel */
.bm-chat-panel {
  position: fixed; bottom: 92px; inset-inline-end: 22px; width: 360px; max-width: calc(100vw - 44px); height: 520px; max-height: calc(100vh - 130px);
  background: #F7F5F2; border-radius: 20px; box-shadow: 0 22px 54px rgba(0,0,0,.34); overflow: hidden;
  display: flex; flex-direction: column; animation: booomFabIn .24s cubic-bezier(.2,.8,.2,1) both;
}
.bm-chat-head { display: flex; align-items: center; gap: 11px; background: linear-gradient(135deg, #E4283A, #BB1824); color: #fff; padding: 14px 16px; }
.bm-chat-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--booom-red); font-weight: 900; font-size: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.bm-chat-id { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.bm-chat-id strong { font-size: 17px; font-weight: 900; }
.bm-chat-id span { font-size: 12px; opacity: .9; }
.bm-chat-scroll { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.bm-msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: normal; word-break: break-word; }
.bm-msg--bot { background: #fff; color: #1A1A1A; border-bottom-inline-start-radius: 5px; align-self: flex-start; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.bm-msg--me { background: var(--booom-red); color: #fff; border-bottom-inline-end-radius: 5px; align-self: flex-end; }
.bm-chips { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; max-width: 92%; margin-bottom: 2px; }
.bm-chip { border: 2px solid var(--booom-red); background: #fff; color: var(--booom-red); font-family: inherit; font-weight: 800; font-size: 13px; padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.bm-chip:hover { background: var(--booom-red); color: #fff; }
.bm-typing { display: inline-flex; gap: 4px; align-items: center; }
.bm-typing span { width: 7px; height: 7px; border-radius: 50%; background: #bbb; animation: booomBlink 1.2s infinite; }
.bm-typing span:nth-child(2) { animation-delay: .2s; }
.bm-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes booomBlink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
.bm-chat-input { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid #eee; }
.bm-chat-input input { flex: 1; border: 2px solid #eee; border-radius: 12px; padding: 12px 14px; font-family: inherit; font-size: 15px; outline: none; }
.bm-chat-input input:focus { border-color: var(--booom-red); }
.bm-chat-input button { flex: none; width: 46px; border: none; border-radius: 12px; background: var(--booom-red); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bm-chat-input button svg { transform: rotate(180deg); }
@keyframes booomFabIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

/* accessibility effects applied to #app */
html.a11y-contrast #app img, html.a11y-contrast #app video,
html.a11y-contrast #app [style*="background-image"] { filter: invert(1) hue-rotate(180deg); }
html.a11y-links #app a, html.a11y-links #app [data-nav], html.a11y-links #app button { text-decoration: underline !important; }
html.a11y-readable #app, html.a11y-readable #app * { font-family: Arial, "Segoe UI", sans-serif !important; }
/* WCAG 2.2.2: the hero marquee auto-scrolls indefinitely, so a user-controlled stop is
   required. Deliberately a toggle in the accessibility menu rather than pause-on-hover,
   which would make the strip feel clickable. */
html.a11y-nomotion #app *, html.a11y-nomotion #app *::before, html.a11y-nomotion #app *::after {
  animation-play-state: paused !important;
  animation-iteration-count: 1 !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* WCAG 2.4.1: bypass the header and go straight to the page content. Visible only on focus. */
.bm-skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--booom-red); color: #fff; font-weight: 900; font-size: 15px;
  padding: 12px 20px; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top .18s ease;
}
.bm-skip:focus { top: 0; }
/* Link out of the accessibility panel to the full statement. */
.bm-a11y-link {
  grid-column: 1 / -1; text-align: center; font-size: 13.5px; font-weight: 800;
  color: var(--booom-red); text-decoration: underline; padding: 4px 2px 2px;
}

@media (max-width: 520px) {
  .bm-chat-panel { inset-inline: auto 12px; width: calc(100vw - 24px); }
}

/* ===================== בום בסושיאל — TikTok gallery ===================== */
.bm-social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.bm-social-card {
  position: relative; display: block; width: 100%; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden;
  background: #111; text-decoration: none; padding: 0; border: 0; cursor: pointer; font-family: inherit;
  box-shadow: 0 10px 26px -12px rgba(0,0,0,.4);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
}
.bm-social-card:not(.is-playing):hover { transform: translateY(-6px); box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); }
.bm-social-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.bm-social-card.is-playing { cursor: default; }
.bm-social-card.is-playing::after { display: none; }
.bm-social-cover { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .35s; }
.bm-social-card:hover .bm-social-cover { transform: scale(1.06); }
.bm-social-cover--empty { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-weight: 900; font-size: 22px; background: linear-gradient(150deg, #E22335, #8F101B); }
.bm-social-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 42%, transparent 62%); }
.bm-social-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 58px; height: 58px; border-radius: 50%; padding-inline-start: 3px;
  background: rgba(0,0,0,.42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.75); transition: transform .2s, background .2s;
}
.bm-social-card:hover .bm-social-play { transform: translate(-50%, -50%) scale(1.12); background: var(--booom-red); }
.bm-social-meta { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 6px; color: #fff; }
.bm-social-meta svg { flex: none; opacity: .95; margin-bottom: 1px; }
.bm-social-cap {
  font-size: 12.5px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bm-social-skel { aspect-ratio: 9/16; border-radius: 18px; background: linear-gradient(100deg, #efece8 30%, #f7f5f2 50%, #efece8 70%); background-size: 200% 100%; animation: booomShimmer 1.3s infinite; }
@keyframes booomShimmer { to { background-position: -200% 0; } }
/* "follow us" label + one branded icon per connected network */
.bm-follow-block { text-align: center; margin-top: 36px; }
.bm-follow-label { font-weight: 900; font-size: 21px; color: #1A1A1A; margin-bottom: 14px; }
.bm-follow-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; }
.bm-follow-icon {
  width: 54px; height: 54px; border-radius: 16px; color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.45);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s;
}
.bm-follow-icon:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 30px -10px rgba(0,0,0,.5); }
@media (max-width: 1024px) { .bm-social-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .bm-social-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
