/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-pastel-pink) 40%, transparent) 0%,
    color-mix(in srgb, var(--color-bg) 80%, transparent) 90%
  );
}

/* Fundo fotográfico desfocado — o túnel de cerejeiras real, com um véu na
   cor da marca por cima para integrar à paleta, e o galho nítido
   (.branch-decor--hero) por cima de tudo para dar contraste e profundidade */
.hero::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(247, 243, 232, 0.5) 0%,
      rgba(247, 243, 232, 0.1) 45%,
      rgba(247, 243, 232, 0.75) 100%
    ),
    url("../assets/hero-bg.webp");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: blur(10px) saturate(1.15);
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero::before {
    background-image:
      linear-gradient(
        180deg,
        rgba(247, 243, 232, 0.5) 0%,
        rgba(247, 243, 232, 0.1) 45%,
        rgba(247, 243, 232, 0.75) 100%
      ),
      url("../assets/hero-bg-sm.webp");
  }
}

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-copy .eyebrow {
  color: var(--color-accent-dark);
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  margin-bottom: var(--space-sm);
}

.hero-title .accent {
  color: var(--color-primary);
  position: relative;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-brown-900);
  max-width: 46ch;
  margin-bottom: var(--space-md);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary-dark);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* Composição geométrica */
.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-frame {
  position: relative;
  /* Largura e altura explícitas (em vez de aspect-ratio) — no iOS Safari,
     aspect-ratio combinado com display:flex às vezes não resolve a altura
     a tempo do layout do filho, e a imagem acaba esticando com base no
     tamanho intrínseco do arquivo em vez do container. */
  width: min(340px, 78vw);
  height: min(340px, 78vw);
  border-radius: 50%;
  /* background: var(--color-surface); */
  /* box-shadow: var(--shadow-lg); */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  transform: scale(1.4);
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 3;
}

.hero-chip svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.hero-chip--top {
  top: 4%;
  right: 4%;
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.4s;
}

.hero-chip--bottom {
  bottom: 6%;
  left: -2%;
  animation: float 7s ease-in-out infinite;
  animation-delay: 0.8s;
  background: var(--color-primary-dark);
  color: var(--color-cream);
}

.hero-chip--bottom svg {
  color: var(--color-accent);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}
