/* ==========================
   HOMEPAGE HERO — compact
   Just headline + 2 CTAs, kept short on purpose so Top Picks of the Week
   still lands near the fold on typical viewport heights.
========================== */

.kape-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--section-spacing-sm);
  text-align: center;
}

/* Decorative coffee icons floating around the headline — aria-hidden,
   purely visual, sit behind the text/CTAs. */
.kape-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.kape-hero__float {
  position: absolute;
  display: block;
  color: var(--color-primary);
  opacity: 0.22;
  animation: kape-hero-float 6s ease-in-out infinite;
}

.kape-hero__float svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kape-hero__float--bean-lg {
  top: 12%;
  left: 8%;
  width: 3.25rem;
  height: 3.25rem;
  --float-rotate: -18deg;
  animation-delay: 0s;
}

.kape-hero__float--cup {
  top: 18%;
  right: 10%;
  width: 3rem;
  height: 3rem;
  color: var(--color-accent);
  opacity: 0.18;
  animation-delay: 1.2s;
  animation-duration: 7s;
}

.kape-hero__float--bean-sm {
  bottom: 10%;
  right: 16%;
  width: 1.75rem;
  height: 1.75rem;
  --float-rotate: 24deg;
  animation-delay: 2.4s;
  animation-duration: 5s;
}

.kape-hero__float--swirl {
  bottom: 14%;
  left: 12%;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-accent);
  opacity: 0.16;
  animation-delay: 0.6s;
  animation-duration: 8s;
}

@keyframes kape-hero-float {
  0%, 100% {
    transform: translateY(0) rotate(var(--float-rotate, 0deg));
  }
  50% {
    transform: translateY(-14px) rotate(var(--float-rotate, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .kape-hero__float {
    animation: none;
  }
}

@media (max-width: 768px) {
  .kape-hero__float {
    display: none;
  }
}

.kape-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 720px;
    height: calc(65vh - 115px);
    justify-content: center;
}

.kape-hero__eyebrow {
  margin: 0;
}

.kape-hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--color-text-dark);
}

.kape-hero__title .accent {
  color: var(--color-primary);
}

.kape-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.kape-hero__nearby {
  position: relative;
  display: inline-flex;
}

.kape-hero__nearby-status {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .kape-hero__break {
    display: none;
  }

  .kape-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .kape-hero__ctas .btn {
    width: 100%;
  }

  .kape-hero__nearby {
    display: flex;
  }
}
