/* =============================================================
   Home — Brand hero carousel (4 brand slides, green/white theme)
   ============================================================= */

.home-cafe .hp-bhero {
  --bhero-h: clamp(460px, 74vh, 620px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d8efc9 0%, #ecf8e4 42%, #ffffff 100%);
}

.home-cafe .hp-bhero .carousel,
.home-cafe .hp-bhero .carousel-inner,
.home-cafe .hp-bhero .carousel-item {
  height: var(--bhero-h);
}

.home-cafe .hp-bhero .carousel-inner {
  position: relative;
}

/* Let Bootstrap carousel-fade own opacity timing — no blanket override */

/* ---- Slide shell ---- */
.home-cafe .hp-bhero__slide {
  --bhero-accent: var(--green);
  --bhero-accent-2: #6cb23f;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* decorative background — soft green wash */
.home-cafe .hp-bhero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 88% 60%, rgba(var(--green-rgb), 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 6% 4%, rgba(var(--text-primary-rgb), 0.10) 0%, transparent 55%);
}

.home-cafe .hp-bhero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23396D1B' fill-opacity='0.05'%3E%3Ccircle cx='24' cy='24' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

.home-cafe .hp-bhero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.home-cafe .hp-bhero__orb--1 {
  top: -70px;
  right: 6%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(var(--green-rgb), 0.16), transparent 70%);
  animation: hp-bhero-float 13s ease-in-out infinite;
}

.home-cafe .hp-bhero__orb--2 {
  bottom: -90px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(var(--text-primary-rgb), 0.10), transparent 70%);
  animation: hp-bhero-float 16s ease-in-out infinite reverse;
}

@keyframes hp-bhero-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -16px); }
}

/* giant faded brand word in the background */
.home-cafe .hp-bhero__bigmark {
  position: absolute;
  right: -2%;
  bottom: -6%;
  font-family: var(--font-primary);
  font-size: clamp(7rem, 22vw, 20rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px rgba(var(--green-rgb), 0.09);
  user-select: none;
  white-space: nowrap;
}

/* ---- Layout ---- */
.home-cafe .hp-bhero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  width: 100%;
}

/* ---- Copy ---- */
.home-cafe .hp-bhero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-cafe .hp-bhero__title {
  margin: 18px 0 0;
  font-family: var(--font-primary);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cafe-espresso);
  max-width: 16ch;
}

.home-cafe .hp-bhero__title em {
  font-style: normal;
  color: inherit;
}

.home-cafe .hp-bhero__lead {
  margin: 14px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 42ch;
}

.home-cafe .hp-bhero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.home-cafe .hp-bhero__perks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cafe-brown-mid);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(var(--green-rgb), 0.18);
  border-radius: 999px;
  box-shadow: 0 6px 16px -10px rgba(var(--green-rgb), 0.35);
}

.home-cafe .hp-bhero__perks .bi {
  font-size: 14px;
  color: var(--bhero-accent);
}

.home-cafe .hp-bhero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--bhero-accent) 0%, var(--bhero-accent-2) 100%);
  box-shadow: 0 14px 30px -12px var(--bhero-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.home-cafe .hp-bhero__cta:hover {
  color: var(--white);
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 20px 40px -14px var(--bhero-accent);
}

.home-cafe .hp-bhero__cta .bi {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.home-cafe .hp-bhero__cta:hover .bi {
  transform: translateX(4px);
}

/* ---- Visual — brand showcase stage ---- */
.home-cafe .hp-bhero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(300px, 44vw, 500px);
}

/* frameless floating product stage */
.home-cafe .hp-bhero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(320px, 42vw, 540px);
  aspect-ratio: 1;
}

/* grounding shadow ellipse under the floating product */
.home-cafe .hp-bhero__stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 56%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--green-rgb), 0.30) 0%, transparent 72%);
  filter: blur(4px);
  animation: hp-bhero-shadow 6s ease-in-out infinite;
}

@keyframes hp-bhero-shadow {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.85; }
  50% { transform: translateX(-50%) scaleX(0.84); opacity: 0.55; }
}

/* large soft brand-tinted glow halo behind the product */
.home-cafe .hp-bhero__arch {
  position: absolute;
  z-index: 0;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 50% 50%, rgba(var(--green-rgb), 0.16) 0%, transparent 68%);
}

/* rotating dashed accent ring removed */
.home-cafe .hp-bhero__ring {
  display: none;
}

.home-cafe .hp-bhero__product {
  position: relative;
  z-index: 1;
  max-width: 96%;
  max-height: 96%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: clamp(16px, 2vw, 26px);
  filter: drop-shadow(0 28px 30px rgba(var(--green-rgb), 0.30));
  animation: hp-bhero-bob 6s ease-in-out infinite;
}

@keyframes hp-bhero-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- Content exit (hp-story style) ---- */
.home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__title,
.home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__lead,
.home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__perks,
.home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__cta {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.48s ease, transform 0.48s ease;
  animation: none;
}

/* ---- Image fade out on slide leave / hide while entering ---- */
.home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__product,
.home-cafe .hp-bhero .carousel-item.carousel-item-end .hp-bhero__product {
  opacity: 0;
  transform: none;
  transition: opacity 0.48s ease;
  animation: none;
}

/* ---- Hold incoming content until reveal ---- */
.home-cafe .hp-bhero .carousel-item.carousel-item-end .hp-bhero__title,
.home-cafe .hp-bhero .carousel-item.carousel-item-end .hp-bhero__lead,
.home-cafe .hp-bhero .carousel-item.carousel-item-end .hp-bhero__perks,
.home-cafe .hp-bhero .carousel-item.carousel-item-end .hp-bhero__cta {
  opacity: 0;
  transform: translateY(16px);
  animation: none;
}

/* ---- Reset inactive slides ---- */
.home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__title,
.home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__lead,
.home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__perks,
.home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__cta {
  opacity: 0;
  animation: none;
  transform: translateY(16px);
}

.home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__product {
  opacity: 0;
  animation: none;
  transform: none;
}

/* ---- Content reveal after crossfade (hp-story style) ---- */
.home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__title,
.home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__lead,
.home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__perks,
.home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__cta {
  animation: hp-bhero-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__title { animation-delay: 0.08s; }
.home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__lead { animation-delay: 0.18s; }
.home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__perks { animation-delay: 0.28s; }
.home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__cta { animation-delay: 0.38s; }

/* ---- Image fade in after crossfade ---- */
.home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__product {
  animation: hp-bhero-fade-in 0.6s ease both;
  animation-delay: 0.12s;
}

/* Keep decorative motion on the visible slide only */
.home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__orb,
.home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__ring,
.home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__product,
.home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__stage::after {
  animation-play-state: paused;
}

@keyframes hp-bhero-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hp-bhero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Indicators ---- */
.home-cafe .hp-bhero .carousel-indicators {
  margin: 0;
  bottom: 22px;
  gap: 8px;
  z-index: 3;
}

.home-cafe .hp-bhero .carousel-indicators [data-bs-target] {
  width: 26px;
  height: 5px;
  border: none;
  border-radius: 999px;
  background: rgba(var(--green-rgb), 0.28);
  opacity: 1;
  transition: width 0.3s ease, background 0.3s ease;
}

.home-cafe .hp-bhero .carousel-indicators .active {
  width: 44px;
  background: var(--green);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .home-cafe .hp-bhero {
    --bhero-h: auto;
  }

  .home-cafe .hp-bhero .carousel,
  .home-cafe .hp-bhero .carousel-inner,
  .home-cafe .hp-bhero .carousel-item {
    height: auto;
  }

  .home-cafe .hp-bhero__slide {
    padding: clamp(36px, 7vw, 56px) 0 clamp(56px, 9vw, 72px);
  }

  .home-cafe .hp-bhero__layout {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .home-cafe .hp-bhero__copy {
    order: 2;
    align-items: center;
  }

  .home-cafe .hp-bhero__visual {
    order: 1;
    min-height: clamp(320px, 78vw, 480px);
  }

  .home-cafe .hp-bhero__stage {
    width: clamp(300px, 78vw, 480px);
  }

  .home-cafe .hp-bhero__bigmark {
    bottom: auto;
    top: 2%;
    font-size: clamp(6rem, 30vw, 12rem);
  }

  .home-cafe .hp-bhero__title,
  .home-cafe .hp-bhero__lead {
    max-width: 100%;
  }

  .home-cafe .hp-bhero__perks {
    justify-content: center;
  }
}


@media (prefers-reduced-motion: reduce) {
  .home-cafe .hp-bhero__orb,
  .home-cafe .hp-bhero__ring,
  .home-cafe .hp-bhero__product,
  .home-cafe .hp-bhero__stage::after {
    animation: none;
  }

  .home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__title,
  .home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__lead,
  .home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__perks,
  .home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__cta,
  .home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__title,
  .home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__lead,
  .home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__perks,
  .home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__cta,
  .home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__title,
  .home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__lead,
  .home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__perks,
  .home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__cta,
  .home-cafe .hp-bhero .carousel-item.active:not(.carousel-item-start):not(.carousel-item-end) .hp-bhero__product,
  .home-cafe .hp-bhero .carousel-item:not(.active) .hp-bhero__product,
  .home-cafe .hp-bhero .carousel-item.carousel-item-start .hp-bhero__product {
    opacity: 1;
    animation: none;
    transform: none;
    transition: none;
  }
}
