/* hero.css — Hero fullscreen com parallax */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + var(--topbar-h));
  overflow: hidden;
}

/* Camada de fundo com parallax */
.hero-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(192,57,43,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(192,57,43,0.06) 0%, transparent 60%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.02) 39px,
      rgba(255,255,255,0.02) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.02) 39px,
      rgba(255,255,255,0.02) 40px
    );
}

[data-theme="light"] .hero-bg::before {
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(192,57,43,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(192,57,43,0.04) 0%, transparent 60%);
}

[data-theme="light"] .hero-bg::after {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(0,0,0,0.03) 39px,
      rgba(0,0,0,0.03) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(0,0,0,0.03) 39px,
      rgba(0,0,0,0.03) 40px
    );
}

/* Gradiente de fade na base */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  z-index: 1;
  pointer-events: none;
}

/* Imagem de fundo hero */
.hero-tattoo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.28;
  z-index: 1;
  pointer-events: none;
  will-change: opacity;
}

/* Conteúdo */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: clamp(16px, 3vw, 24px);
  padding-block: clamp(48px, 8vw, 96px);
  max-width: 780px;
  margin-left: auto;
  margin-right: 0;
}

.hero-badge {
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.15); }
  50%       { box-shadow: 0 0 0 8px rgba(192,57,43,0); }
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.hero-title .line-2 {
  display: block;
  margin-top: 4px;
}

/* Gradiente animado no título accent */
.hero-title .text-accent {
  background: linear-gradient(135deg, #C0392B 0%, #E74C3C 50%, #C0392B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s linear infinite;
}

@keyframes gradient-flow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 520px;
}

/* Botões */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero-buttons .btn-ghost .ti {
  font-size: 1.1em;
}

/* Métricas */
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding-top: clamp(20px, 4vw, 32px);
  border-top: 1px solid var(--border);
  width: 100%;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 0 8px 20px;
}

.metric:not(:first-child) {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}

.metric-label {
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-flat-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(192,57,43,0.35);
  border-radius: var(--radius-lg);
}

.hero-flat-price .ti {
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-flat-price > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.hero-flat-price-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-flat-price-desc {
  font-size: var(--text-xs);
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO PAGE (páginas internas) === */
.page-hero {
  padding-top: calc(var(--navbar-height) + var(--topbar-h) + clamp(40px, 8vw, 80px));
  padding-bottom: clamp(40px, 8vw, 80px);
  text-align: center;
}

.page-hero .section-title {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 16px;
}

.page-hero .section-subtitle {
  max-width: 520px;
  margin-inline: auto;
}

/* === TABLET+ === */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    width: auto;
  }

  .hero-buttons .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 840px;
  }
}
