/* Berger BI v2 — top. Owned by the top redesign; keep every rule scoped to its sections. */
/* navbar (header[data-top-header]) · hero (#main[data-top-hero]) · clients ([data-top-clients]) */

/* ================================================================= NAVBAR */
#dc-root header[data-top-header] { top: 16px !important; padding: 0 24px !important; }
#bbi-navbar[data-top-nav] {
  position: relative; width: 100%; max-width: 1120px; height: 56px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: 20px 8px;
  border-radius: 999px;
  /* the scroll handler writes inline background / shadow: the v2 pill keeps its own */
  background: rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(31, 69, 112, .10);
  box-shadow: none !important;
  transition: background-color 200ms var(--v2-ease), border-color 200ms var(--v2-ease), box-shadow 200ms var(--v2-ease);
}
html[data-top-scrolled] #bbi-navbar[data-top-nav] {
  background: rgba(255, 255, 255, .86) !important;
  border-color: rgba(31, 69, 112, .14);
  box-shadow: 0 1px 2px rgba(11, 22, 38, .04), 0 10px 28px -16px rgba(11, 22, 38, .22) !important;
}
[data-top-home] { display: flex; align-items: center; flex: none; border-radius: var(--v2-r-pill); }
#bbi-navbar img[data-main-logo] { display: block; height: 26px !important; width: auto; margin: 0 !important; object-fit: contain; }

/* links: 14px muted, the current section in ink with a navy hairline under it */
[data-top-links] { display: flex; align-items: center; gap: 2px; min-width: 0; }
#dc-root [data-top-links] a {
  position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 10px;
  font-size: 14px; font-weight: 500 !important; line-height: 1.3; white-space: nowrap;
  color: var(--v2-muted) !important; background: transparent !important; border-radius: var(--v2-r-pill);
  transition: color 160ms var(--v2-ease);
}
[data-top-links] a::after {
  content: ""; position: absolute; inset-inline: 10px; bottom: 6px; height: 1.5px; border-radius: 1px;
  background: var(--v2-navy); transform: scaleX(0); transition: transform 220ms var(--v2-ease);
}
#dc-root [data-top-links] a[data-top-on] { color: var(--v2-ink) !important; }
[data-top-links] a[data-top-on]::after { transform: scaleX(1); }

[data-top-end] { display: flex; align-items: center; gap: 4px; flex: none; }
/* language: a segmented pill, both languages visible, the current one filled. One button (two languages, one action:
   switch); the hit area is the whole pill, >= 44px wide and, in the compact bar, 44px tall */
[data-top-lang] {
  appearance: none; -webkit-appearance: none; cursor: pointer; flex: none;
  display: inline-flex; align-items: stretch; gap: 0; height: 36px; padding: 3px; box-sizing: border-box;
  border: 1px solid var(--v2-line-2); background: var(--v2-surface); border-radius: var(--v2-r-pill);
  font-family: 'Heebo', sans-serif; font-size: 13px; font-weight: 500; line-height: 1; color: var(--v2-muted);
  transition: border-color 160ms var(--v2-ease);
}
[data-top-seg] {
  display: grid; place-items: center; min-width: 30px; padding: 0 7px; box-sizing: border-box;
  border-radius: var(--v2-r-pill); transition: background-color 160ms var(--v2-ease), color 160ms var(--v2-ease);
}
[data-top-seg="en"] { font-family: 'DM Sans', 'Heebo', sans-serif; letter-spacing: .04em; }
#bbi-root[dir="rtl"] [data-top-seg="he"], #bbi-root[dir="ltr"] [data-top-seg="en"] { background: var(--v2-navy); color: #FFFFFF; font-weight: 600; }
/* the call button (compact bar only): an icon circle like the menu button */
#dc-root [data-top-call] {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; box-sizing: border-box;
  border-radius: var(--v2-r-pill); border: 1px solid var(--v2-line-2); background: transparent; color: var(--v2-navy) !important;
}
#dc-root [data-top-cta] {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; margin-inline-start: 4px;
  border-radius: var(--v2-r-pill); background: var(--v2-navy); border: 1px solid #2B5584;
  color: #FFFFFF !important; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color 160ms var(--v2-ease);
}
[data-top-long], [data-top-mid] { display: none; }
[data-top-burger] {
  appearance: none; -webkit-appearance: none; cursor: pointer; flex: none;
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border-radius: var(--v2-r-pill); border: 1px solid var(--v2-line-2); background: transparent; color: var(--v2-ink);
}
@media (hover: hover) and (pointer: fine) {
  #dc-root [data-top-links] a:hover { color: var(--v2-ink) !important; }
  [data-top-lang]:hover { border-color: rgba(11, 22, 38, .24); color: var(--v2-ink); }
  #dc-root [data-top-call]:hover { border-color: rgba(11, 22, 38, .24); }
  #dc-root [data-top-cta]:hover { background: var(--v2-ink); color: #FFFFFF !important; }
  [data-top-burger]:hover { border-color: rgba(11, 22, 38, .24); }
}

/* compact bar (< 1150px: the runtime swaps the link row for the menu button) */
@media (max-width: 1149px) {
  #bbi-navbar[data-top-nav] { padding-inline: 20px 5px; }
  [data-top-end] { gap: 6px; }
  [data-top-lang] { height: 44px; }
  #dc-root [data-top-cta] { height: 44px; margin-inline-start: 0; padding: 0 16px; }
}
@media (min-width: 640px) and (max-width: 1149px) {
  [data-top-short] { display: none; }
  [data-top-long] { display: inline; }
}
@media (max-width: 639px) {
  #dc-root header[data-top-header] { top: 10px !important; padding: 0 12px !important; }
  #bbi-navbar[data-top-nav] { padding-inline: 14px 5px; gap: 6px; }
  [data-top-home] { padding-block: 11px; }
  #bbi-navbar img[data-main-logo] { height: 24px !important; }
  [data-top-end] { gap: 5px; }
  #dc-root [data-top-cta] { padding: 0 13px; }
  [data-top-seg] { min-width: 28px; padding: 0 6px; }
}
/* the CTA's middle label ("שיחת היכרות" / "Intro call"-length) wherever the bar has room for it */
@media (min-width: 440px) and (max-width: 639px) {
  [data-top-short] { display: none; }
  [data-top-mid] { display: inline; }
}
@media (max-width: 389px) {
  #bbi-navbar img[data-main-logo] { height: 22px !important; }
  #bbi-navbar[data-top-nav] { padding-inline: 12px 5px; }
  [data-top-end] { gap: 4px; }
  #dc-root [data-top-cta] { padding: 0 12px; }
}
/* under 360 (iPhone SE 1st gen, small Androids) five controls do not fit: the call button steps back (the number
   stays in the menu and in the hero) */
@media (max-width: 359px) {
  #dc-root [data-top-call] { display: none; }
}

/* the menu: a solid white sheet under the pill, links in hairline rows, then contact, then the CTA */
#dc-root #bbi-mobile-menu[data-top-menu] {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: min(380px, 100%); box-sizing: border-box;
  padding: 6px 8px 8px; background: var(--v2-surface); border: 1px solid var(--v2-line-2); border-radius: var(--v2-r-card);
  box-shadow: 0 2px 6px rgba(11, 22, 38, .05), 0 28px 56px -28px rgba(11, 22, 38, .32);
  display: flex; flex-direction: column;
  transform-origin: top; animation: v2TopMenuIn 200ms var(--v2-ease);
}
@keyframes v2TopMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
[data-top-menu-links] { display: flex; flex-direction: column; }
#dc-root [data-top-menu-links] a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  font-size: 18px; font-weight: 500 !important; color: var(--v2-ink) !important; background: transparent !important;
  border-bottom: 1px solid var(--v2-line);
}
#dc-root [data-top-menu-links] a[data-top-on] { color: var(--v2-navy) !important; box-shadow: inset -2px 0 0 var(--v2-navy); }
#bbi-root[dir="ltr"] [data-top-menu-links] a[data-top-on] { box-shadow: inset 2px 0 0 var(--v2-navy); }
[data-top-menu-contact] { padding: 14px 12px 12px; }
[data-top-menu-label] { font-size: 13px; font-weight: 500; color: var(--v2-muted); }
[data-top-menu-icons] { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#dc-root [data-top-menu-icons] a {
  width: 44px; height: 44px; display: grid; place-items: center; box-sizing: border-box;
  border-radius: var(--v2-r-pill); border: 1px solid var(--v2-line-2); color: var(--v2-navy) !important; background: var(--v2-surface);
}
#dc-root [data-top-menu-cta] {
  display: flex; align-items: center; justify-content: center; height: 48px; margin: 4px 4px 4px;
  border-radius: var(--v2-r-pill); background: var(--v2-navy); color: #FFFFFF !important; font-size: 16px; font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  #dc-root [data-top-menu-links] a:hover { color: var(--v2-navy) !important; }
  #dc-root [data-top-menu-icons] a:hover { border-color: var(--v2-navy); }
  #dc-root [data-top-menu-cta]:hover { background: var(--v2-ink); }
}

/* ================================================================= HERO */
#main[data-top-hero] { padding: 52px 0 calc(var(--v2-sec-y) * .72); } /* the process band opens with its own full padding */
[data-top-wrap] { max-width: 1140px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
[data-top-eyebrow] { margin: 0 0 22px; }
[data-top-eyebrow] span {
  unicode-bidi: isolate; font-family: var(--v2-mono); font-size: 12px; font-weight: 500; line-height: 1.4;
  letter-spacing: .08em; color: var(--v2-muted);
}
#dc-root [data-top-h1] {
  margin: 0; font-family: 'Heebo', sans-serif; font-size: clamp(34px, 4.45vw, 64px); font-weight: 600;
  line-height: 1.08; letter-spacing: -.018em; color: var(--v2-ink); text-wrap: balance;
  padding-bottom: .2em; /* Heebo's descenders sit below a 1.08 line box: keep them inside the element */
}
/* English: the second line ("connected to the data you already have.") is a little longer than the Hebrew; one size step
   down keeps the claim on two lines per sentence instead of orphaning its last word */
#dc-root [dir="ltr"] [data-top-h1] { font-size: clamp(32px, 4.15vw, 60px); }
/* statement hero (owner pick, Oct 2026): eyebrow, the claim, one line, two actions; nothing else competes. From tablet up
   it is centred, the claim set on two even lines (each kept whole) and the answer under it in navy; on phones the claim
   wraps on its own and stays right-aligned */
#dc-root [dir="rtl"] [data-top-h1] { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.1; }
#dc-root [data-top-h1] [data-top-ans] { display: block; color: var(--v2-navy); }
#dc-root [data-top-sub] { margin-top: 20px; }
[data-top-clients-count] { font-weight: 400; color: var(--v2-muted); }
#dc-root [data-top-wrap] [data-top-proof] { margin-top: 16px; color: var(--v2-navy); }
@media (min-width: 768px) {
  #main[data-top-hero] { padding-top: 72px; }
  #dc-root [data-top-wrap] { text-align: center; }
  #dc-root [data-top-h1] [data-top-ln] { display: block; white-space: nowrap; }
  #dc-root [data-top-h1] { font-size: clamp(40px, 4.2vw, 60px) !important; }
  #dc-root [data-top-sub] { margin: 22px auto 0; max-width: 820px; font-size: 19px; text-wrap: balance; }
  #dc-root [data-top-ctas] { justify-content: center; margin-top: 36px; }
  #dc-root [data-top-clients] { margin-top: 80px; }
}
[data-top-split] {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px; align-items: start; margin-top: 28px;
}
[data-top-sub] { margin: 0; max-width: 40ch; font-size: 18px; font-weight: 400; line-height: 1.6; color: var(--v2-muted); text-wrap: balance; }
[data-top-tagline] { display: block; margin-top: 8px; font-weight: 500; color: var(--v2-ink); }

[data-top-ctas] { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
#dc-root [data-top-btn] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; box-sizing: border-box;
  border-radius: var(--v2-r-pill); font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background-color 160ms var(--v2-ease), border-color 160ms var(--v2-ease);
}
#dc-root [data-top-btn="primary"] { background: var(--v2-navy); border: 1px solid #2B5584; color: #FFFFFF !important; }
#dc-root [data-top-btn="secondary"] { background: var(--v2-surface); border: 1px solid var(--v2-line-2); color: var(--v2-ink) !important; font-weight: 500; }
#bbi-root[dir="ltr"] [data-top-arrow] { transform: scaleX(-1); }

[data-top-proof] { margin: 14px 0 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--v2-ink); }
[data-top-direct] { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin-top: 18px; font-size: 14px; color: var(--v2-muted); }
[data-top-direct-label] { color: var(--v2-muted); }
#dc-root [data-top-direct] a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--v2-muted) !important; transition: color 160ms var(--v2-ease); }
[data-top-direct] a svg { color: var(--v2-navy); flex: none; }

[data-top-stats] { display: flex; align-items: stretch; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--v2-line-2); }
[data-top-stat] { padding-inline-end: 32px; }
[data-top-stat] + [data-top-stat] { padding-inline-start: 32px; border-inline-start: 1px solid var(--v2-line-2); }
[data-top-num] { font-family: 'DM Sans', sans-serif; font-size: 44px; font-weight: 300; line-height: 1.3; letter-spacing: -.02em; color: var(--v2-ink); }
[data-top-num] [data-num] { display: inline-block; }
[data-top-plus] { color: var(--v2-navy); margin-inline-start: 1px; }
[data-top-cap] { margin-top: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--v2-muted); }

@media (hover: hover) and (pointer: fine) {
  #dc-root [data-top-btn="primary"]:hover { background: var(--v2-ink); }
  #dc-root [data-top-btn="secondary"]:hover { border-color: rgba(11, 22, 38, .3); color: var(--v2-ink) !important; }
  #dc-root [data-top-direct] a:hover { color: var(--v2-ink) !important; }
}

/* the video: a product frame. Poster = the film's closing card (logo on navy, no copy, so nothing Hebrew in EN and no
   second headline next to the h1); the <video> is always mounted under it so the first tap can play it */
[data-top-frame] {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--v2-r-card); overflow: hidden;
  background: var(--v2-ink); border: 1px solid var(--v2-line-2); box-shadow: var(--v2-shadow);
}
[data-top-poster] { position: absolute; inset: 0; z-index: 1; cursor: pointer; outline: none; container-type: inline-size; }
#bbi-hero-video:focus-visible { outline: 2px solid var(--v2-navy); outline-offset: -2px; }
[data-top-poster] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
[data-top-poster]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 22, 38, .42), rgba(11, 22, 38, 0) 38%);
}
[data-top-poster]:focus-visible { box-shadow: inset 0 0 0 3px #FFFFFF, inset 0 0 0 5px var(--v2-navy); }
[data-top-play] {
  position: absolute; left: 20px; bottom: 18px; z-index: 1; direction: ltr;
  display: flex; align-items: center; gap: 12px; color: #FFFFFF; font-size: 14px; font-weight: 500;
}
[data-top-ring] {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box;
  border: 1.5px solid rgba(255, 255, 255, .92); background: rgba(11, 22, 38, .22);
  transition: background-color 200ms var(--v2-ease), transform 200ms var(--v2-ease);
}
[data-top-ring] svg { margin-left: 2px; }
[data-top-play-label] { font-family: 'Heebo', sans-serif; }
[data-top-play-dur] { font-family: 'DM Sans', sans-serif; color: rgba(255, 255, 255, .78); padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .35); }
/* a narrow frame keeps only ring + duration, so the control stays clear of the card's URL line */
@container (max-width: 520px) { [data-top-play-label] { display: none; } [data-top-play-dur] { padding-left: 0; border-left: 0; } }
@media (hover: hover) and (pointer: fine) {
  [data-top-poster]:hover [data-top-ring] { background: rgba(255, 255, 255, .16); transform: scale(1.05); }
}

/* ================================================================= CLIENTS */
[data-top-clients] { max-width: 1140px; margin: 56px auto 0; padding: 0 32px; box-sizing: border-box; }
[data-top-clients-head] { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 14px; }
[data-top-clients-title] { font-size: 16px; font-weight: 600; color: var(--v2-ink); }
[data-top-sectors] { font-size: 14px; color: var(--v2-muted); }

/* all logos at once, in full brand colour: each mark sits on its own white tile (hairline, inner radius) so twenty
   different palettes read as one calm set on the ground. Marks are sized per logo (clients[].gh) so they share one
   optical weight; the WebP files are trimmed colour at 2x that height (prototypes/tools/logo_color.py). */
[data-top-logos="grid"] {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px;
}
#dc-root [data-top-logo], #dc-root [data-phone-tile] {
  display: grid; place-items: center; min-width: 0; box-sizing: border-box;
  background: var(--v2-surface); border: 1px solid var(--v2-line);
  border-radius: var(--v2-r-inner, 16px);
}
[data-top-logo] { height: 84px; padding: 0 10px; }
[data-top-logo] img { display: block; width: auto; max-width: 100%; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
  #dc-root [data-top-logo] { transition: border-color 240ms var(--v2-ease), box-shadow 240ms var(--v2-ease); }
  #dc-root [data-top-logo]:hover { border-color: var(--v2-line-2); box-shadow: 0 1px 2px rgba(11, 22, 38, .04), 0 6px 16px -10px rgba(11, 22, 38, .18); }
}
/* small laptops / landscape tablets: ten in a row makes wide marks tiny, so 7 + 7 + 6 with the last row centred */
@media (min-width: 1024px) and (max-width: 1199px) {
  [data-top-logos="grid"] { display: flex; flex-wrap: wrap; justify-content: center; }
  [data-top-logos="grid"] > * { flex: 0 0 calc((100% - 6 * 8px) / 7); }
}
@media (max-width: 1023px) {
  [data-top-logos="grid"] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
}

[data-top-logos="phone"] { display: none; }
[data-top-phone-grid] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#dc-root [data-phone-tile] { height: 76px; padding: 0 12px; }
[data-phone-tile] [role="img"] {
  width: 100%; height: calc(var(--gh, 28) * .86px); max-height: 40px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
[data-top-clients-note] { display: none; margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--v2-muted); }

/* ================================================================= responsive */
@media (max-width: 1023px) {
  [data-top-split] { gap: 40px; }
}
@media (max-width: 899px) {
  #main[data-top-hero] { padding-top: 48px; }
  [data-top-split] { grid-template-columns: minmax(0, 1fr); gap: 44px; margin-top: 20px; }
  [data-top-sub] { max-width: 52ch; }
}
@media (max-width: 639px) {
  #main[data-top-hero] { padding-top: 36px; padding-bottom: 56px; }
  [data-top-wrap], [data-top-clients] { padding: 0 20px; }
  [data-top-eyebrow] { margin-bottom: 16px; }
  [data-top-eyebrow] span { letter-spacing: .06em; }
  [data-top-split] { margin-top: 12px; gap: 36px; }
  [data-top-ctas] { margin-top: 24px; }
  #dc-root [data-top-btn] { flex: 1 1 auto; padding: 0 16px; }
  [data-top-proof] { margin-top: 12px; }
  [data-top-direct] { gap: 0 16px; margin-top: 12px; }
  #dc-root [data-top-direct] a { min-height: 44px; }
  [data-top-stats] { margin-top: 20px; padding-top: 20px; }
  [data-top-stat] { flex: 1 1 0; padding-inline-end: 20px; }
  [data-top-stat] + [data-top-stat] { padding-inline-start: 20px; }
  [data-top-num] { font-size: 40px; }
  [data-top-play] { left: 12px; bottom: 12px; gap: 10px; font-size: 13px; }
  [data-top-clients] { margin-top: 56px; }
  [data-top-clients-head] { margin-bottom: 12px; }
  [data-top-sectors] { font-size: 13px; }
  [data-top-logos="grid"] { display: none; }
  [data-top-logos="phone"] { display: block; }
  [data-top-clients-note] { display: block; }
}

/* ================================================================= motion off */
@media (prefers-reduced-motion: reduce) {
  #dc-root #bbi-mobile-menu[data-top-menu] { animation: none; }
  [data-top-links] a::after, [data-top-ring], #dc-root [data-top-logo] { transition: none; }
}
html.a11y-no-motion #dc-root #bbi-mobile-menu[data-top-menu] { animation: none; }
html.a11y-no-motion [data-top-links] a::after, html.a11y-no-motion [data-top-ring], html.a11y-no-motion #dc-root [data-top-logo] { transition: none; }

/* poster per language: the Hebrew frame carries Hebrew titles from the film, English uses the film's closing card */
html[lang="en"] [data-poster="he"], html:not([lang="en"]) [data-poster="en"] { display: none !important; }
