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

/* .bb-hero is a max-width:1440px card, so it's only inset from the true
   browser edge on very wide monitors -- at every ordinary laptop/desktop
   width (<=1440px, which is most of them) its own edges ARE the page
   edges. The deco circles live inside it (not in a separate full-bleed
   wrapper) so .bb-hero's own overflow:hidden crops each one flush against
   that edge and it reads as bled exactly half off it, the same way
   .bb-pagehead-orb-1 already does on secondary-page headers. */
.bb-hero {
  position: relative;
  max-width: 1440px;
  margin: 24px auto 0;
  border-radius: var(--bb-radius-hero, 32px);
  overflow: hidden;
  /* Signature gradient stays the same 4 stops/hues (theme colours unchanged)
     but drops to partial alpha so the hero photo (--bb-hero-photo, set
     inline by render.php) reads through as depth behind it rather than
     replacing it. */
  background:
    linear-gradient(180deg, rgba(78, 129, 193, .86), rgba(242, 90, 85, .80), rgba(252, 184, 48, .72), rgba(252, 184, 48, .78)),
    var(--bb-hero-photo) center 12% / cover no-repeat;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
  padding-bottom: 56px;
}

.bb-hero-hill {
  position: absolute;
  left: -12%; right: -12%; bottom: -20%;
  height: 66%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #FBFBFB, #FFFFFF, #F9F9F9);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .10);
}

.bb-hero-deco {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
/* Half the circle's own width/height sits past .bb-hero's edge (left/top
   negative by exactly that radius), so overflow:hidden crops it clean in
   half instead of an arbitrary sliver. */
.bb-hero-deco-1 { width: 250px; height: 244px; left: -125px; top: -122px; background: rgba(255, 255, 255, .10); }
.bb-hero-deco-2 { width: 300px; height: 300px; right: -150px; top: 30%; background: rgba(255, 255, 255, .16); }
/* Bottom-left, clear of the hill (its curve only reaches this far up the
   left edge past ~80% of the hero's height), so the circle sits cleanly
   on the gradient, half-bled off the left wall. */
.bb-hero-deco-3 { width: 260px; height: 260px; left: -130px; bottom: 18%; background: rgba(255, 255, 255, .14); }

@media (max-width: 900px) {
  .bb-hero-deco { display: none; }
}

.bb-hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 60px 64px 190px;
  max-width: 900px;
  margin: 0 auto;
}

.bb-hero-eyebrow {
  margin: 0;
  font-family: var(--bb-font-heading);
  font-size: 11.5px;
  font-weight: 700;
  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: 800;
  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: 620px;
  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);
}

.bb-hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin-top: 4px;
}
.bb-hero-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.bb-hero-search-field svg { position: absolute; left: 18px; pointer-events: none; }
.bb-hero-search-field input {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, .10);
  border-radius: var(--bb-radius-pill, 999px);
  padding: 16px 20px 16px 46px;
  font-family: var(--bb-font-body);
  font-size: 15px;
  font-weight: 600;
  color: #000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}
.bb-hero-search-submit {
  flex: none;
  background-color: #7BA1D2;
  color: #fff;
  padding: 16px 26px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.bb-hero-search-submit:hover { border-color: rgba(255, 255, 255, .6); }

.bb-hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
/* .bb-btn-primary's coral fill sits in the gradient's own coral band here,
   so it reads with less edge contrast than the plain white
   .bb-btn-secondary next to it -- the opposite of the intended emphasis.
   A soft white ring restores separation without touching the shared
   component (used elsewhere on plain white/light panels, where it
   already has enough contrast on its own). */
.bb-hero-ctas .bb-btn-primary { border-color: rgba(255, 255, 255, .55); }

/* Draw the eye to the primary "Create Banner" CTA specifically in the hero
   (scoped here, not on the shared .bb-btn-primary used site-wide) with a
   soft breathing ring in the accent yellow -- the button itself keeps its
   normal coral fill/colour. */
.bb-hero-ctas .bb-btn-primary {
  animation: bb-hero-cta-pulse 2.6s ease-in-out infinite;
}
@keyframes bb-hero-cta-pulse {
  0%, 100% { box-shadow: var(--sh-cta, 0 14px 34px rgba(0, 0, 0, .22)), 0 0 0 0 rgba(252, 184, 48, 0); }
  50% { box-shadow: var(--sh-cta, 0 14px 34px rgba(0, 0, 0, .22)), 0 0 0 9px rgba(252, 184, 48, .30); }
}
@media (prefers-reduced-motion: reduce) {
  .bb-hero-ctas .bb-btn-primary { animation: none; }
}

.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: 700;
  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; }

.bb-hero-scatter {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1240px;
  margin: -150px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Soft warm glow behind the banner-preview carousel so it reads as the
   focal point at the bottom of the hero, per request -- doesn't touch the
   cards' own styling. */
.bb-hero-scatter::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 52%;
  left: 50%;
  width: 85%;
  max-width: 620px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(252, 184, 48, .38), rgba(252, 184, 48, 0) 70%);
  pointer-events: none;
}

.bb-hero-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 5px solid #fff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .28);
  transition: transform .5s var(--bb-ease, cubic-bezier(.22, 1, .36, 1)), opacity .5s var(--bb-ease, cubic-bezier(.22, 1, .36, 1));
}
.bb-hero-card:hover { transform: translateY(-8px); }
.bb-hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  aspect-ratio: 4 / 5;
}
.bb-hero-card.is-center {
  width: 37%;
  z-index: 3;
  border-width: 6px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .30);
}
.bb-hero-card.is-left {
  width: 31%;
  z-index: 2;
  transform: rotate(-7deg) translateY(26px);
  margin-right: -34px;
}
.bb-hero-card.is-left:hover { transform: rotate(-7deg) translateY(18px); }
.bb-hero-card.is-right {
  width: 31%;
  z-index: 2;
  transform: rotate(7deg) translateY(26px);
  margin-left: -34px;
}
.bb-hero-card.is-right:hover { transform: rotate(7deg) translateY(18px); }

.bb-hero-chip {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--bb-font-heading);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .bb-hero-copy { padding: 48px 40px 150px; }
}

@media (max-width: 900px) {
  .bb-hero { border-radius: var(--bb-radius-hero-mobile, 18px); }
  .bb-hero-copy { padding: 40px 24px 120px; }
  .bb-hero-scatter { margin-top: -110px; }
}

@media (max-width: 620px) {
  .bb-hero-search { flex-wrap: wrap; }
  .bb-hero-search-field { width: 100%; }
  .bb-hero-search-submit { width: 100%; }
  .bb-hero-card.is-left,
  .bb-hero-card.is-right { display: none; }
  .bb-hero-card.is-center { width: 78%; }
  .bb-hero-scatter { margin-top: -90px; }
  /* At this width the H1 wraps to 3-4 lines instead of 1-2, so the copy
     block (and with it the trust row) is much taller than on desktop. The
     hill is positioned as a % of the whole .bb-hero box, so its top edge
     was landing mid-way through the copy block instead of below it —
     the trust row ("4.9/5 from 12,000+ celebrations…") rendered as
     near-white text on the near-white hill with no usable contrast.
     Push the hill further down (bigger negative bottom offset) so its top
     stays below the trust row at mobile text heights. */
  .bb-hero-hill { bottom: -32%; }
}
