/* Hero — Birthday Banner Studio (block "hero-birthdaybanner") */

.bb-hero {
  position: relative;
  /* Full-bleed: runs edge to edge and up to the very top of the page, under
     the floating pill nav (.bb-nav-spacer is 0 on pages with a hero). */
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  /* Full brand gradient (theme colours, top to bottom), no photo. A soft
     light behind the headline keeps it from looking flat. */
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%),
    var(--bb-gradient-180, linear-gradient(180deg, #4F82C3, #F15A55, #FCB830));
  padding-bottom: 56px;
}

.bb-hero-hill {
  /* Sits wholly inside the hero and ends exactly on its bottom edge (-1px
     against a sub-pixel seam), so the wave and the white section below are
     one surface. No shadow: a grey edge read as a separate layer. */
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(56px, 5.4vw, 84px);
  pointer-events: none;
}
.bb-hero-hill svg { display: block; width: 100%; height: 100%; }

.bb-hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 136px 64px 120px; /* 136 = clears the floating nav pill with room to breathe */
  max-width: 900px;
  margin: 0 auto;
}

.bb-hero-eyebrow {
  margin: 0;
  font-family: var(--bb-font-heading);
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .22em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.bb-hero-copy h1 {
  margin: 0;
  font-family: var(--bb-font-heading);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .38);
}

.bb-hero-sub {
  margin: 0;
  max-width: 660px;
  font-family: var(--bb-font-body);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .94);
  text-wrap: pretty;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}

/* Search: one white pill with the grey search button inside it. */
.bb-hero-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 520px;
  margin-top: 4px;
  padding: 4px 4px 4px 22px;
  border-radius: var(--bb-radius-pill, 999px);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}
.bb-hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  font-family: var(--bb-font-body);
  font-size: 15px;
  font-weight: 500;
  color: #333;
}
.bb-hero-search input::placeholder { color: #888; }
.bb-hero-search:focus-within { box-shadow: 0 14px 30px rgba(0, 0, 0, .18), 0 0 0 3px rgba(79, 130, 195, .55); }

/* Main action first (white pill, gradient arrow), then the glass one. */
.bb-hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.bb-hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--bb-font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.bb-hero-trust span > span:first-child { margin-right: 7px; }
.bb-hero-stars { color: var(--bb-yellow, #FCB830); letter-spacing: .05em; }

/* Two standing banners, left and right of the copy, that stand on the white
   hill. Each shows one template photo at a time and crossfades to the next
   (script.js). Below 1200px there is no room beside the copy, so they drop
   under it side by side. */
.bb-hero-rollups {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.bb-hero-rollup {
  position: absolute;
  bottom: 64px;
  width: clamp(190px, 18vw, 290px);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  /* On the stand, not the print: the print's clip-path would cut a box-shadow off. */
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .20));
  transition: transform .6s var(--bb-ease, cubic-bezier(.22, 1, .36, 1)), filter .6s ease;
}
/* Each stand is turned a little toward the copy, as one piece (rail, print
   and base together), so the print stays seated in the slot.
   Mouse (script.js, fine pointers only): over the hero both stands turn a
   few degrees after the cursor (--bb-mx). Over a stand it turns to face the
   visitor and tilts with the cursor (.is-tilting, --bb-tx / --bb-ty). */
.bb-hero-rollup.is-left  { left: clamp(24px, 4vw, 72px); --bb-rollup-turn: 12deg; }
.bb-hero-rollup.is-right { right: clamp(24px, 4vw, 72px); --bb-rollup-turn: -12deg; }
.bb-hero-rollup {
  transform:
    perspective(1000px)
    translateY(var(--bb-lift, 0px))
    rotateY(calc(var(--bb-rollup-turn, 0deg) + var(--bb-mx, 0) * 6deg))
    scale(var(--bb-grow, 1));
}
.bb-hero-rollup.is-tilting {
  --bb-lift: -10px;
  --bb-grow: 1.03;
  filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .26));
  transition: transform .35s var(--bb-ease, cubic-bezier(.22, 1, .36, 1)), filter .35s ease;
  transform:
    perspective(1000px)
    translateY(var(--bb-lift))
    rotateY(calc(var(--bb-tx, 0) * 16deg))
    rotateX(calc(var(--bb-ty, 0) * -8deg))
    scale(var(--bb-grow));
}
/* Soft light behind each stand so it lifts off the photo. */
.bb-hero-rollup::before {
  content: '';
  position: absolute;
  z-index: -2;
  left: -30%; right: -30%; top: 6%; bottom: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
  opacity: .7;
  transition: opacity .5s ease;
  pointer-events: none;
}
.bb-hero-rollup.is-tilting::before { opacity: 1; }
/* Soft floor shadow under the stand. */
.bb-hero-rollup::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 4%; right: 4%; bottom: -8px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 70%);
}
/* Real roll-up hardware. The top rail (535x16) clamps over the print's top
   edge. The base is the straight-on cassette (cassette-front.svg, 600x64):
   a level bar with a cap on each end, so it matches the flat print. The
   print drops into the slot in the middle of its top face (y=13.8) and is
   centred between the caps (x=20..580). Margins are % of the banner width:
   rail  16/535 x 104% = 3.11%, overlap 55% of that;
   base  width 600/560 = 107.14% (the flex column centres it);
   seat  13.8/600 x 107.14% = 2.46%. */
.bb-hero-rollup-rail {
  position: relative;
  z-index: 2;
  display: block;
  width: 104%;
  max-width: none;
  height: auto;
  margin-bottom: -1.71%;
  /* The rail drawing starts at x=12 of 535 (empty strip on the left), so
     shift it back half of that to centre the visible bar over the print. */
  transform: translateX(-1.12%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}
.bb-hero-rollup-screen {
  position: relative;
  z-index: 1; /* over the back half of the base's top face, into the slot */
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16; /* matches the 9:16 banner artwork, no crop */
  overflow: hidden;
  background: #111;
}
.bb-hero-rollup-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.bb-hero-rollup-screen img.is-active { opacity: 1; }
/* Light sheen across the fabric so it reads as a printed banner, not a screen. */
.bb-hero-rollup-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 62%) no-repeat;
  background-size: 260% 100%;
  /* The light slides across the print as the stand tilts. */
  background-position: calc(50% - var(--bb-tx, 0) * 60%) 0;
  transition: background-position .35s ease;
  pointer-events: none;
}
.bb-hero-rollup-cassette {
  position: relative;
  z-index: 0;
  display: block;
  width: 107.14%;
  max-width: none;
  height: auto;
  margin-top: -2.46%;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .28));
}
@media (prefers-reduced-motion: reduce) {
  .bb-hero-rollup { transition: none; }
}
@media (max-width: 1200px) {
  .bb-hero-rollups {
    position: relative;
    inset: auto;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 56px);
    margin: -90px auto 0;
    padding: 0 24px;
  }
  .bb-hero-rollup { position: relative; bottom: auto; left: auto !important; right: auto !important; width: clamp(170px, 34vw, 290px); }
}
@media (max-width: 1080px) {
  .bb-hero-copy { padding: 124px 40px 150px; }
}

@media (max-width: 900px) {
  .bb-hero-copy { padding: 112px 24px 120px; }
}

@media (max-width: 620px) {
  .bb-hero-search { padding-left: 18px; }
  .bb-hero-search input { font-size: 14.5px; }
  /* Each cassette sticks out 6% past its print, so keep enough gap that the
     two bases don't touch. */
  .bb-hero-rollups { margin-top: -80px; gap: 28px; }
  .bb-hero-rollup { width: 43%; }
}

/* Fallback voor oudere render.php-markup die de server nog kan serveren:
   eyebrow, de doorschijnende tweede golf en de drie cirkels zijn uit het
   ontwerp gehaald. */
.bb-hero-eyebrow,
.bb-hero-deco,
.bb-hero-hill path[opacity] {
  display: none;
}
