/* ══════════════════════════════════════════════
  04 - Hero
══════════════════════════════════════════════ */

/* ── Estrutura & fundo ─────────────────────────── */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bege-claro);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bege-claro);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  scale: 1;
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  from { scale: 1; }
  to   { scale: 1.06; }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      92deg,
      rgba(var(--bege-claro-rgb), 0.98) 0%,
      rgba(var(--bege-claro-rgb), 0.9) 32%,
      rgba(var(--bege-claro-rgb), 0.42) 52%,
      rgba(var(--bege-claro-rgb), 0.06) 70%
    ),
    linear-gradient(
      0deg,
      rgba(var(--bege-claro-rgb), 0.55) 0%,
      transparent 22%
    );
}

/* Blobs decorativos — profundidade sutil, cores da marca */
.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow--a {
  top: -8%;
  left: -6%;
  width: clamp(16rem, 30vw, 26rem);
  height: clamp(16rem, 30vw, 26rem);
  background: radial-gradient(circle, rgba(var(--verde-agua-rgb), 0.28), transparent 70%);
  animation: hero-glow-drift 16s ease-in-out infinite;
}

.hero-glow--b {
  bottom: -12%;
  left: 18%;
  width: clamp(14rem, 24vw, 22rem);
  height: clamp(14rem, 24vw, 22rem);
  background: radial-gradient(circle, rgba(var(--terracota-medio-rgb), 0.16), transparent 70%);
  animation: hero-glow-drift 20s ease-in-out infinite reverse;
}

@keyframes hero-glow-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 2.5rem -1.5rem; }
}

/* Flor decorativa — canto inferior direito */
.hero-corner-flower {
  position: absolute;
  z-index: 1;
  right: -1%;
  bottom: -1%;
  width: clamp(150px, 15vw, 240px);
  height: auto;
  opacity: 0.85;
  pointer-events: none;
}

.hero-mobile-spacer {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  padding-top: clamp(7rem, 13vh, 9rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  width: 100%;
}

/* ── Coluna de texto ─────────────────────────── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 34rem;
}

.hero-eyebrow,
.hero-h1-line,
.hero-sub,
.hero-cta-row,
.hero-trust {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 0.85s var(--easing-expo),
    translate 0.85s var(--easing-expo);
}

#hero.is-visible .hero-eyebrow,
#hero.is-visible .hero-h1-line,
#hero.is-visible .hero-sub,
#hero.is-visible .hero-cta-row,
#hero.is-visible .hero-trust {
  opacity: 1;
  translate: 0 0;
}

@keyframes hero-fade-up {
  from { opacity: 0; translate: 0 20px; }
  to   { opacity: 1; translate: 0 0; }
}

.hero-h1-line:nth-child(1) { transition-delay: 0.06s; }
.hero-h1-line:nth-child(2) { transition-delay: 0.12s; }
.hero-sub { transition-delay: 0.18s; }
.hero-cta-row { transition-delay: 0.24s; }
.hero-trust { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-h1-line,
  .hero-sub,
  .hero-cta-row,
  .hero-trust {
    transition: none !important;
  }
}

.hero-eyebrow {
  margin-bottom: 0;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  color: var(--verde-profundo);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.hero-h1-line {
  display: block;
}

.hero-h1-accent {
  color: var(--terracota-medio);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42ch;
}

/* ── CTAs ────────────────────────────────────── */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  padding-top: 0.35rem;
}

.hero-tel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--verde-profundo);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease, translate 0.2s ease;
}

.hero-tel-link:hover {
  color: var(--terracota-medio);
  translate: 3px 0;
}

.hero-tel-link [data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ── Diferenciais rápidos ─────────────────────── */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  margin-top: 0.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(var(--verde-profundo-rgb), 0.14);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-trust [data-lucide] {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  color: var(--verde-agua-escuro);
}

/* ── Botão WhatsApp — seta e círculo animados ─── */
.btn-hero-wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 32px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-color: var(--terracota-medio);
  border-radius: 100px;
  color: var(--white);
  box-shadow: 0 14px 28px -16px rgba(var(--terracota-medio-rgb), 0.75);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
  transition: border-radius 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-hero-wa svg.arr-1,
.btn-hero-wa svg.arr-2 {
  position: absolute;
  width: 20px;
  fill: var(--white);
  z-index: 9;
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-hero-wa .arr-1 {
  right: 14px;
}
.btn-hero-wa .arr-2 {
  left: -25%;
}

.btn-hero-wa .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 80px;
  height: 80px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-hero-wa .text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  translate: -12px 0;
  transition: translate 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-hero-wa:hover {
  border-radius: 12px;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(var(--terracota-medio-rgb), 0.85);
}

.btn-hero-wa:hover .arr-1 {
  right: -25%;
}
.btn-hero-wa:hover .arr-2 {
  left: 14px;
}
.btn-hero-wa:hover .text {
  translate: 12px 0;
}

.btn-hero-wa:hover .circle {
  transform: translate(-50%, -50%) scale(4);
}

.btn-hero-wa:active {
  scale: 0.96;
}

/* ── Selo flutuante "20 anos" ─────────────────── */
.hero-badge {
  position: absolute;
  z-index: 2;
  bottom: clamp(1.75rem, 5vh, 3.25rem);
  right: clamp(1.5rem, 5vw, 4.5rem);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--terracota-medio);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 40px -14px rgba(var(--verde-profundo-rgb), 0.45);
  opacity: 0;
  scale: 0.6;
  animation:
    hero-badge-in 0.8s var(--easing-back) 0.45s forwards,
    hero-badge-bob 4.5s ease-in-out 1.3s infinite;
}

@keyframes hero-badge-in {
  to { opacity: 1; scale: 1; }
}

@keyframes hero-badge-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.hero-badge-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
}

.hero-badge-label {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0.25rem;
}

/* ── Convite para rolar ───────────────────────── */
.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1.25rem, 3.5vh, 2rem);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--verde-profundo);
  text-decoration: none;
  opacity: 0;
  animation: hero-fade-up 0.8s var(--easing-expo) 0.6s forwards;
}

.hero-scroll-cue-track {
  position: relative;
  width: 1px;
  height: 34px;
  background: rgba(var(--verde-profundo-rgb), 0.25);
  overflow: hidden;
}

.hero-scroll-cue-dot {
  position: absolute;
  top: -8px;
  left: -1.5px;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--terracota-medio);
  animation: hero-scroll-dot 1.8s ease-in-out infinite;
}

@keyframes hero-scroll-dot {
  0% { top: -8px; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: 34px; opacity: 0; }
}

.hero-scroll-cue-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Responsivo ────────────────────────────────── */
@media (max-width: 706px) {
  #hero {
    min-height: 100dvh;
  }

  .hero-inner {
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-content {
    align-items: center;
    gap: 1.85rem;
    text-align: center;
  }

  .hero-bg-img {
    object-position: 70% center;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(
        195deg,
        rgba(var(--bege-claro-rgb), 0.18) 0%,
        rgba(var(--bege-claro-rgb), 0.35) 46%,
        rgba(var(--bege-claro-rgb), 0.55) 100%
      );
  }

  .hero-eyebrow {
    letter-spacing: 0.18em;
  }

  .hero-h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
  }

  .hero-sub {
    max-width: 34rem;
  }

  .hero-cta-row {
    width: 100%;
    justify-content: center;
    gap: 1.1rem;
  }

  .hero-cta-row a.btn-hero-wa {
    width: 100%;
    justify-content: center;
  }

  .hero-tel-link {
    width: 100%;
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero-trust {
    justify-content: center;
    gap: 0.85rem 1.5rem;
    margin-top: 0.5rem;
    padding-top: 1.4rem;
  }

  .hero-trust li {
    justify-content: center;
  }

  .hero-badge {
    position: static;
    align-self: center;
    margin-top: 2rem;
    width: 92px;
    height: 92px;
  }

  .hero-corner-flower {
    width: 110px;
    opacity: 0.7;
  }

  .hero-badge-num {
    font-size: 1.5rem;
  }

  .hero-scroll-cue {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-corner-flower {
    display: none;
  }

  .hero-mobile-spacer {
    display: block;
    height: clamp(4rem, 22vh, 8rem);
  }
}

