/* ==========================================================================
   Connect Penha - New Hero Banner
   Specialized Styles for the Premium Responsive Hero Component
   ========================================================================== */

.new-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("banner/room.png") center center / cover no-repeat;
  padding: 120px 0 160px 0; /* Bottom padding accommodates bottom wood bar */
  overflow: hidden;
  color: #ffffff;
  --color-accent: #b7830b;
}

/* Background overlay with refined lighter gradient for optimal warmth and clarity */
.new-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
}

.new-hero__container {
  position: relative;
  z-index: 3; /* Placed above overlay and bottom wood-bar */
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* Wood panel aligned to the bottom (100% width) */
.new-hero__wood-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: url("banner/wood-panel.png") center center / cover no-repeat;
  border-top: 3px solid var(--color-accent);
  z-index: 2; /* Sits behind text container but on top of room background and overlay */
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

/* --- Content Side --- */
.new-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: heroFadeInLeft 1s var(--ease-out) forwards;
}

/* Mude Este Ano Badge */
.new-hero__badge {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 12px 18px 8px 18px;
  border-radius: 50px;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 15px rgba(139, 105, 20, 0.3);
}

/* Headline */
.new-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: var(--space-md);
}

.new-hero__title .text-highlight {
  color: var(--color-accent);
  font-weight: inherit;
}

/* Product Specifications / Bullets */
.new-hero__specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: 0;
}

.new-hero__specs-item {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.new-hero__specs-item:not(:last-child)::after {
  content: "•";
  color: var(--color-accent);
  margin-left: var(--space-md);
  font-size: 1.2rem;
  line-height: 1;
}

/* Renda Familiar Card (Glassmorphism) */
.new-hero__renda-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--space-md) var(--space-lg);
  border-radius: 12px;
  margin-bottom: var(--space-xl);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  align-self: flex-start;
}

.new-hero__renda-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.new-hero__renda-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.2;
}

.new-hero__renda-value .text-highlight {
  color: var(--color-accent);
  font-weight: 500;
}

/* CTA */
.new-hero__cta {
  width: auto;
}

.new-hero__cta .btn {
  box-shadow: 0 8px 25px rgba(139, 105, 20, 0.25);
  transition: all var(--duration) var(--ease-out);
}

.new-hero__cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 105, 20, 0.4);
}

/* --- Visual Side (Woman Alignment - Aligned to bottom right) --- */
.new-hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
}

.new-hero__woman-wrapper {
  position: absolute;
  bottom: 0;
  right: 8%;
  width: 440px;
  height: 440px;
  z-index: 3; /* Placed in the same plane as the text container */
  display: flex;
  align-items: flex-end;
  pointer-events: none; /* Allows clicks to pass through */
  animation: heroFadeInRight 1.2s var(--ease-out) forwards;
}

.new-hero__woman-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen; /* Seamlessly dissolves solid black background */
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1200px) {
  .new-hero__woman-wrapper {
    width: 380px;
    height: 380px;
    right: 5%;
  }
}

@media (max-width: 991px) {
  .new-hero {
    min-height: auto;
    padding: 120px 0 100px 0; /* Adjust padding */
  }

  .new-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.6) 60%,
      rgba(0, 0, 0, 0.85) 100%
    );
  }

  .new-hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .new-hero__content {
    align-items: center;
  }

  .new-hero__specs {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .new-hero__specs-item:not(:last-child)::after {
    display: none;
  }

  .new-hero__renda-card {
    align-self: center;
    text-align: center;
    align-items: center;
    max-width: 320px;
    width: 100%;
  }

  /* Position woman centered at the bottom on mobile */
  .new-hero__woman-wrapper {
    position: relative;
    bottom: auto;
    right: auto;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    margin-top: var(--space-lg);
    margin-bottom: -40px; /* Overlaps bottom padding and sits on wood bar */
  }
}

@media (max-width: 480px) {
  .new-hero {
    padding: 100px 0 80px 0;
  }

  .new-hero__wood-bar {
    height: 100px;
  }

  .new-hero__title {
    font-size: 2.1rem;
  }

  .new-hero__woman-wrapper {
    width: 220px;
    height: 220px;
    margin-bottom: -20px;
  }

  .new-hero__renda-value {
    font-size: 1.45rem;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes heroFadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroFadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
