/* app/assets/stylesheets/immo/hero.css */

#immo-page .hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(196,149,106,.25) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(181,98,46,.15) 0%, transparent 50%),
    #1a1a1a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

#immo-page .hero__content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 6vw 40px;
}

#immo-page .hero__photo {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  margin: 40px;
  border-radius: 16px;
  align-self: center;
  justify-self: center;
  max-height: 70vh;
  aspect-ratio: 3/4;
}

#immo-page .hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .85;
  transition: opacity .4s;
}

#immo-page .hero__photo:hover img { opacity: 1; }

#immo-page .hero__scroll {
  grid-column: 1;
  grid-row: 2;
  padding: 24px 6vw;
  font-size: .78rem;
  color: rgba(253,250,245,.3);
  text-transform: uppercase;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

#immo-page .hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,149,106,.15);
  border: 1px solid rgba(196,149,106,.35);
  color: var(--clay);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 32px;
  width: fit-content;
}

#immo-page .hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--clay);
  border-radius: 50%;
}

#immo-page .hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 8px;
}

#immo-page .hero h1 em {
  color: #f59e0b;
  font-style: italic;
}

#immo-page .hero__sub {
  font-size: 1.1rem;
  color: rgba(253,250,245,.55);
  margin-top: 16px;
  font-weight: 300;
  letter-spacing: .02em;
}

#immo-page .hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 32px;
}

#immo-page .hero__stats li {
  flex: 1;
  min-width: 110px;
  padding-right: 24px;
}

#immo-page .hero__stats strong {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--white);
  display: block;
}

#immo-page .hero__stats span {
  font-size: .72rem;
  color: rgba(253,250,245,.4);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Animations ── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

#immo-page .hero__badge  { animation: fadeUp .6s .1s ease both; }
#immo-page .hero h1      { animation: fadeUp .6s .25s ease both; }
#immo-page .hero__sub    { animation: fadeUp .6s .4s ease both; }
#immo-page .hero__stats  { animation: fadeUp .6s .5s ease both; }

/* ── Responsive ── */
@media (max-width: 900px) {
  #immo-page .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  #immo-page .hero__content {
    padding: 60px 6vw 24px;
  }

  #immo-page .hero__photo {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    margin: 0 6vw;
    aspect-ratio: 4/3;
    border-radius: 12px;
    max-height: none;
  }

  #immo-page .hero__scroll {
    grid-column: 1;
    grid-row: 3;
  }
}
