/* ============================================================
   Faroll BR — Hero panorâmico (arte + overlays sutis)
   ============================================================ */

.hero-brasil {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cor-texto);
  background: var(--cor-fundo);
}

.hero-brasil__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
  transition: transform 0.35s ease-out;
}

.hero-brasil__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-brasil__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(243, 239, 230, 0.78) 0%,
    rgba(243, 239, 230, 0.32) 22%,
    rgba(243, 239, 230, 0) 52%
  );
}

.hero-brasil__content {
  position: relative;
  z-index: 3;
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 16px;
  text-align: center;
  animation: hero-content-in 0.9s ease-out both;
  background: none;
  border-radius: 0;
}

.hero-brand {
  font-family: var(--fonte-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cor-texto);
  margin-bottom: 10px;
  text-shadow: 0 1px 0 rgba(255, 252, 247, 0.55);
}

.hero-brasil__content h1 {
  font-family: var(--fonte-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--cor-texto);
  text-shadow: 0 1px 0 rgba(255, 252, 247, 0.45);
}

.hero-lead {
  color: var(--cor-texto-suave);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  max-width: 34rem;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.hero-brasil .search-bar {
  background: rgba(255, 252, 247, 0.94);
  border-color: rgba(44, 33, 24, 0.12);
  backdrop-filter: blur(6px);
}

/* ---------- Araras ---------- */
.fx-macaw {
  position: absolute;
  width: clamp(42px, 5vw, 68px);
  height: auto;
  color: var(--cor-arara);
  opacity: 0.55;
  filter: drop-shadow(0 1px 0 rgba(44, 33, 24, 0.15));
}

.fx-macaw--1 {
  top: 12%;
  left: -8%;
  animation: macaw-drift 42s linear infinite;
}

.fx-macaw--2 {
  top: 22%;
  left: -10%;
  width: clamp(34px, 4vw, 52px);
  opacity: 0.42;
  animation: macaw-drift 54s linear infinite;
  animation-delay: -18s;
}

.fx-macaw--3 {
  top: 8%;
  left: -12%;
  width: clamp(28px, 3.4vw, 44px);
  opacity: 0.35;
  animation: macaw-drift 48s linear infinite;
  animation-delay: -30s;
}

@keyframes macaw-drift {
  0% {
    transform: translate3d(0, 0, 0) scaleX(-1);
  }
  45% {
    transform: translate3d(115vw, 6vh, 0) scaleX(-1);
  }
  50% {
    transform: translate3d(115vw, 6vh, 0) scaleX(1);
  }
  95% {
    transform: translate3d(-10vw, -4vh, 0) scaleX(1);
  }
  100% {
    transform: translate3d(-10vw, -4vh, 0) scaleX(-1);
  }
}

/* ---------- Folhas ---------- */
.fx-leaf {
  position: absolute;
  width: clamp(14px, 1.8vw, 22px);
  height: auto;
  opacity: 0.45;
  color: #6b7a45;
}

.fx-leaf--1 {
  left: 18%;
  top: -8%;
  color: #8a6a3a;
  animation: leaf-fall 18s linear infinite;
}

.fx-leaf--2 {
  left: 42%;
  top: -10%;
  color: #5f6e3d;
  animation: leaf-fall 22s linear infinite;
  animation-delay: -6s;
}

.fx-leaf--3 {
  left: 68%;
  top: -12%;
  color: #a07440;
  opacity: 0.38;
  animation: leaf-fall 26s linear infinite;
  animation-delay: -12s;
}

.fx-leaf--4 {
  left: 86%;
  top: -9%;
  color: #6f5a32;
  opacity: 0.34;
  animation: leaf-fall 20s linear infinite;
  animation-delay: -3s;
}

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.45;
  }
  100% {
    transform: translate3d(-40px, 110vh, 0) rotate(260deg);
    opacity: 0;
  }
}

@keyframes hero-content-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-below {
  padding-top: 8px;
}

@media (max-width: 720px) {
  .hero-brasil {
    height: calc(100vh - 64px);
    min-height: 360px;
    align-items: center;
  }

  .hero-brasil__bg {
    background-position: center center;
    background-size: cover;
  }

  .hero-lead {
    display: none;
  }

  .fx-macaw--3,
  .fx-leaf--4 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brasil__content {
    animation: none;
  }

  .fx-macaw,
  .fx-leaf {
    animation: none !important;
    display: none;
  }

  .hero-brasil__bg {
    transition: none;
    transform: none;
    inset: 0;
  }
}
