/* 2P Energia Solar — Hero da home com a foto do centro de distribuição
   Mesmo desenho do topo da LP Estruturas (/lp/estruturas-2p/), com prefixo hh-.
   Foto em /assets/images/lp-estruturas/hero-cd-*.webp.
   Tokens de marca, botões e .dark-section vêm de main.css. */

.hh-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-soft);
}

.hh-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 460px at 84% 18%, rgba(240, 104, 32, 0.17), transparent 70%);
  pointer-events: none;
}
.hh-hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px 24px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}
/* Foto da operação no topo: sangra à direita e se funde ao fundo azul */
.hh-hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(54%, 860px);
  margin: 0;
  z-index: 0;
}
.hh-hero__media picture,
.hh-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}
/* a foto some por transparência (máscara), então se funde ao próprio fundo
   do topo, com a grade por trás, sem emenda de cor */
.hh-hero__media picture {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 16%, rgba(0, 0, 0, 0.75) 34%, #000 52%), linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.6) 12%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 16%, rgba(0, 0, 0, 0.75) 34%, #000 52%), linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.6) 12%, #000 30%);
  mask-composite: intersect;
}
.hh-hero__inner { z-index: 1; }
.hh-hero__copy { position: relative; z-index: 1; }
.hh-hero__tag {
  position: absolute;
  right: 40px; bottom: 40px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 18, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}
.hh-hero__dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3DDC84;
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.22);
}
.hh-hero__badge {
  position: absolute;
  top: 116px; right: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--orange);
  color: #FFFFFF;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hh-hero__badge strong {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hh-hero__badge strong em { font-style: normal; font-size: 0.5em; margin-left: 2px; }
.hh-hero__badge span { font-size: 13px; font-weight: 700; line-height: 1.25; }
@media (prefers-reduced-motion: no-preference) {
  .hh-hero__badge { animation: hh-flutua 5s ease-in-out infinite; }
  @keyframes hh-flutua { 50% { transform: translateY(-6px); } }
}

.hh-hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  text-wrap: balance;
}
.hh-hero__title em { font-style: normal; color: var(--orange); }
.hh-hero__assina {
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
  font-family: var(--font-title);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #FFFFFF;
}
.hh-hero__lead {
  margin: 18px 0 0;
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.74);
  text-wrap: pretty;
}
.hh-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hh-hero__actions .btn-primary { box-shadow: 0 14px 38px rgba(240, 104, 32, 0.32); }
.hh-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.hh-trust__check {
  flex: none;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 6px;
}

@media (max-width: 980px) {
  .hh-hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 124px; padding-bottom: 64px; }
  /* no celular a foto vem no topo e o texto entra por cima do degradê */
  .hh-hero { display: flex; flex-direction: column; }
  .hh-hero__media { position: relative; order: -1; width: 100%; height: 400px; margin-top: 60px; }
  .hh-hero__media picture {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, #000 18%, #000 50%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, #000 18%, #000 50%, transparent 100%);
  }
  .hh-hero__inner { margin-top: -150px; padding-top: 0; }
  .hh-hero__badge { right: 16px; top: 18px; padding: 10px 14px; }
  .hh-hero__badge strong { font-size: 30px; }
  .hh-hero__tag { display: none; }
}

/* Selos abaixo do título (garantia e atendimento) */
.hh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.hh-pills li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}
.hh-pills li::before {
  content: '';
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.hh-hero__actions { margin-top: 44px; }
@media (max-width: 560px) {
  .hh-pills { gap: 8px; margin-top: 26px; }
  .hh-pills li { padding: 8px 14px; font-size: 14px; }
  .hh-hero__actions { margin-top: 30px; }
}
.hh-hero__title em { display: block; }
.hh-hero__actions .btn-primary span { margin-left: 8px; }
