/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-600) 100%);
  min-height: clamp(500px, 80vh, 680px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: 0; /* zera o padding genérico de section */
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,107,53,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 40%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,.02) 40px,
      rgba(255,255,255,.02) 41px
    );
  pointer-events: none;
}

.hero .container {
  display: grid;
  /* Coluna visual maior + gap menor: foto em destaque sem quebrar o h1
     (3 linhas) nem empurrar os CTAs para fora da dobra */
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: clamp(2rem, 3.5vw, 3rem);
  /* Compacto: CTAs precisam caber na primeira dobra (~950px) */
  padding-block: clamp(1.75rem, 3.5vw, 2.25rem);
  position: relative;
  z-index: 1;
}

/* ── Breadcrumb ── */
.hero__breadcrumb { margin-bottom: .5rem; }
.hero__breadcrumb ol { display: flex; align-items: center; gap: .4rem; }
.hero__breadcrumb a {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.hero__breadcrumb a:hover { color: #fff; }

/* ── Trust badge ── */
.hero__trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

/* ── Headline ── */
.hero h1 {
  color: #fff;
  margin-bottom: .875rem;
  /* Menor que o h1 global: garante 3 linhas na coluna do hero
     e mantém os CTAs acima da dobra. Teto 2.2rem: acima disso a
     linha "Ar Condicionado Instalado," quebra na coluna de 473px */
  font-size: clamp(1.9rem, 2.6vw, 2.2rem);
}
.hero__highlight { color: var(--orange); }

.hero__sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(.95rem, 2vw, 1.1rem);
  max-width: 500px;
  margin-bottom: 1.25rem;
}

/* ── Checklist ── */
.hero__checks {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.hero__checks li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.88);
  font-size: .92rem;
}
.hero__checks svg { color: var(--green); flex-shrink: 0; }

/* ── CTAs ── */
.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .875rem;
  margin-bottom: 1.75rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.75rem;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(255,107,53,.45);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-hero-primary:hover, .btn-hero-primary:focus-visible {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,107,53,.55);
}

/* ── Stats bar ── */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; gap: .15rem; }
.hero__stat strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.hero__stat span { font-size: .78rem; color: rgba(255,255,255,.65); }
.hero__stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* ── Visual side ── */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image {
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.hero__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Floating cards ── */
.hero__card {
  position: absolute;
  background: rgba(255,255,255,.95);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  min-width: 200px;
  z-index: 2;
}
.hero__card > div { display: flex; flex-direction: column; gap: .1rem; }
.hero__card strong { font-size: .85rem; color: var(--text); font-weight: 700; }
.hero__card span   { font-size: .75rem; color: var(--text-muted); }

.hero__card--top    { top: 10%;    left: -10%; animation: floatUp 4s ease-in-out infinite; }
.hero__card--bottom { bottom: 12%; right: -8%; animation: floatDown 4.5s ease-in-out infinite .5s; }

.hero__stars { color: #FBBF24; font-size: 1rem; letter-spacing: 1px; }

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes floatDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── Responsive ── */
/* Viewports de 721–800px de altura: o botão secundário ficava ~13px
   abaixo da dobra; reduzir respiros verticais resolve sem mudar o visual */
@media (max-height: 800px) and (min-width: 901px) {
  .hero .container  { padding-block: 1.25rem; }
  .hero__breadcrumb { margin-bottom: .25rem; }
}

/* Telas baixas (notebooks 768p): modo compacto para manter os
   CTAs do hero acima da dobra — prioridade nº 1 de conversão */
@media (max-height: 720px) and (min-width: 901px) {
  .hero .container  { padding-block: 1rem; }
  .hero__breadcrumb { display: none; }
  .hero h1          { font-size: clamp(1.7rem, 2.2vw, 2.1rem); }
  .hero__sub        { margin-bottom: 1rem; }
  .hero__checks     { gap: .4rem; margin-bottom: 1.25rem; }
  .hero__ctas       { margin-bottom: 1.25rem; }
  /* Elementos secundários saem para os 2 CTAs caberem na dobra:
     o badge repete a ideia do checklist e "todas as marcas" já
     aparece na faixa de marcas logo abaixo do hero */
  .hero__trust-badge { display: none; }
  .hero__checks li:last-child { display: none; }
}

@media (max-width: 900px) {
  /* Coluna única com reordenação: a foto entra depois dos CTAs e antes
     das estatísticas. display:contents promove os filhos do content a
     itens do flex para permitir o order na .hero__visual */
  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* anula o center da regra base (alinharia tudo ao centro) */
    gap: 0; /* espaçamento vem das margens próprias de cada bloco */
  }
  .hero__content { display: contents; }
  .hero__visual  { order: 1; margin-bottom: 1.75rem; }
  .hero__stats   { order: 2; }
  /* Cards flutuantes cobririam a foto pequena */
  .hero__card { display: none; }
}
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .btn-hero-primary,
  .btn-ghost  { width: 100%; justify-content: center; }
  .hero__stat-divider { display: none; }
}
