/* ═══════════════════════════════════════════════════════════
   hero.css — Estilos do hero da home (Seção 1), incluindo o
   gradiente de fundo do body (efeito visual do hero, não um
   token global — por isso não fica em global.css). Antes ficava
   inline no <style> de hero-template-v2.html; extraído pra cá na
   reorganização em /site (mesmo tratamento já dado a home.css,
   footer.css etc.).
═══════════════════════════════════════════════════════════ */

/* Gradiente sutil no desktop — fica atrás da nav transparente */
body {
  background-image: linear-gradient(180deg,
      rgba(178, 232, 224, .42) 0%,
      rgba(178, 232, 224, .16) 20%,
      transparent 44%);
  background-repeat: no-repeat;
  background-size: 100% 100vh;
}

/* ══════════ HERO ══════════ */
.hero {
  margin-top: var(--nav);
  min-height: calc(100vh - var(--nav));
  display: flex;
  flex-direction: column;
}

/*
 * hero-c: container de max-width + grid no desktop.
 * É também o contexto de posicionamento (position:relative) para
 * o label vertical e os ícones de rodapé — ambos position:absolute.
 *
 * grid-template-rows: 1fr auto
 *   → linha 1 (bloco-texto) cresce para preencher o espaço
 *   → linha 2 (bloco-ctas) ocupa só o necessário, no fundo
 * bloco-imagem ocupa as duas linhas via grid-area.
 */
.hero-c {
  flex: 1;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  display: grid;
  grid-template-columns: 54% 46%;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "texto imagem"
    "ctas  imagem";
}

/* ── Label vertical (desktop, decoration) ── */
.hero-vl {
  position: absolute;
  left: var(--pad);
  top: 0;
  bottom: 56px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-vl span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--muted);
  white-space: nowrap;
  user-select: none;
  text-transform: uppercase;
}

/* ── Ícones de rodapé (desktop, decoration) ── */
.hero-foot {
  position: absolute;
  bottom: 24px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-foot a {
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 6px;
}

.foot-r {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ══════════ BLOCO TEXTO ══════════ */
.bloco-texto {
  grid-area: texto;
  /* 120px esquerda: clearance do label vertical */
  padding: 48px 0 28px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Badge: só no mobile */
.badge {
  display: none;
}

h1 {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -.034em;
  line-height: 1.06;
  margin-bottom: 20px;
  text-wrap: balance;
}

h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text2);
  max-width: 440px;
}

/* ══════════ BLOCO CTAS ══════════ */
.bloco-ctas {
  grid-area: ctas;
  /* 64px bottom: clearance dos ícones de rodapé (position:absolute, bottom:24px) */
  padding: 0 0 64px 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Selo de avaliação do Google: pílula de contorno fino (sem sombra), único
   ponto de cor além do accent — G multicolor e estrelas amarelas do Google.
   Só o texto "5,0 no Google" é o link (sublinhado = sinal de clique). */
.social-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  line-height: 1;
}

.google-g {
  flex-shrink: 0;
  display: block;
}

.google-stars {
  flex-shrink: 0;
  display: block;
}

.google-badge a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 26, 26, .3);
  transition: color .15s, text-decoration-color .15s;
}
.google-badge a:hover,
.google-badge a:focus-visible {
  color: var(--green);
  text-decoration-color: currentColor;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.av-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  margin-left: -9px;
  flex-shrink: 0;
  position: relative;
  object-fit: cover; /* fotos reais (img.av); as letras antigas eram div */
}

.av:first-child {
  margin-left: 0;
}

.av-1 {
  background: #D1FAE5;
  color: #065F46;
  z-index: 4;
}

.av-2 {
  background: #DBEAFE;
  color: #1E40AF;
  z-index: 3;
}

.av-3 {
  background: #FEF3C7;
  color: #92400E;
  z-index: 2;
}

.av-4 {
  background: #FCE7F3;
  color: #9D174D;
  z-index: 1;
}

.hero-social p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.hero-social strong {
  color: var(--text);
  font-weight: 600;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.btn {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(14, 129, 123, .28), 0 1px 3px rgba(14, 129, 123, .18);
  transition: background .15s, transform .15s, box-shadow .15s;
}

.btn:hover {
  background: var(--grn-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(14, 129, 123, .36), 0 2px 6px rgba(14, 129, 123, .20);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, .30);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-color .15s;
}

.btn-ghost:hover {
  border-color: var(--text);
}

/* ══════════ BLOCO IMAGEM ══════════ */
.bloco-imagem {
  grid-area: imagem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 48px 24px;
}

.bloco-imagem img {
  width: 88%;
  max-width: 490px;
  height: auto;
  display: block;
}

/* ══════════ ANIMAÇÕES DE ENTRADA (CSS, sem GSAP) ══════════ */
@media (prefers-reduced-motion: no-preference) {
  h1 {
    animation: fadeUp .6s .15s both;
  }

  .hero-sub {
    animation: fadeUp .5s .27s both;
  }

  .google-badge,
  .hero-social {
    animation: fadeUp .45s .10s both;
  }

  .cta-row {
    animation: fadeUp .4s .35s both;
  }

  .bloco-imagem img {
    animation: fadeIn .75s .12s both;
  }

  .hero-vl {
    animation: fadeIn .5s .50s both;
  }

  .hero-foot {
    animation: fadeIn .5s .55s both;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ══════════ RESPONSIVO — HERO ══════════ */
@media (max-width: 860px) {
  /* Gradiente mais intenso no mobile */
  body {
    background-image: linear-gradient(180deg,
        #B2E8E0 0%,
        #C8F0EB 18%,
        #DDF8F3 42%,
        #F0FAF8 65%,
        var(--bg) 88%);
  }

  .hero {
    min-height: calc(100vh - var(--nav));
    /* fallback */
    min-height: calc(100svh - var(--nav));
    /* browsers modernos: exclui barra do browser */
  }

  /*
   * hero-c vira flex column com space-between:
   * os 3 blocos se distribuem automaticamente pela altura disponível,
   * independente do tamanho da tela (SE, XR, etc).
   */
  .hero-c {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  .hero-vl,
  .hero-foot {
    display: none;
  }

  /* ── Bloco texto: topo ── */
  .bloco-texto {
    order: 1;
    padding: 28px var(--pad) 0;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
  }

  .badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 24, 22, .84);
    border-radius: 100px;
    padding: 6px 14px 6px 10px;
    margin-bottom: 16px;
    width: fit-content;
  }

  .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
  }

  .badge span {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    letter-spacing: .25px;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(28px, 8vw, 38px);
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 15px;
    max-width: 100%;
  }

  /* ── Bloco imagem: meio ── */
  .bloco-imagem {
    order: 2;
    padding: 0;
  }

  .bloco-imagem img {
    width: 60%;
    max-width: 230px;
  }

  /* ── Bloco CTAs: base ── */
  .bloco-ctas {
    order: 3;
    padding: 0 var(--pad) 40px;
    gap: 12px;
  }

  /* Grupo (selo + avatares) centralizado como bloco; dentro dele o selo
     e os avatares compartilham a mesma margem esquerda. */
  .social-group {
    align-self: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-social p {
    text-align: center;
  }

  .av {
    border-color: #DDF8F3;
  }

  .cta-row {
    gap: 10%;
    justify-content: center;
  }

  .btn {
    flex: 1;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
    padding: 15px 20px;
    max-width: 200px;
  }

  .btn-ghost {
    padding: 0 0 0 20px;
    border-bottom: none;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 14.5px;
  }

  .bloco-imagem img {
    width: 55%;
    max-width: 200px;
  }
}
