/* =============================================================
   Scan Pro Child — home.css
   ============================================================= */

/* ---------------------------------------------------------------
   Animações de entrada
   --------------------------------------------------------------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroDividerGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* Remove o offset do header fixo na home — o hero começa em y=0
   e o header branco (z-index 9000) cobre os primeiros 120px */
body.home .site-content-wrapper,
body.front-page .site-content-wrapper {
  padding-top: 0 !important;
}

/* ---------------------------------------------------------------
   HERO — container flex sem imagem própria.
   --------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------------------------------------------------------------
   Corpo do hero — contém a imagem de fundo.
   padding-top: 140px afasta o texto do header (120px) + margem.
   --------------------------------------------------------------- */
.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 64px;
  background-color: #eef4f5;
  overflow: hidden;
}

/* Overlay duplo:
   1. Tint suave do topo → profundidade atrás do header transparente
   2. Fade branco da esquerda → área legível para o texto */
.hero-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(200, 232, 236, 0.50) 0%,
      rgba(200, 232, 236, 0.12) 18%,
      transparent 38%
    ),
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.80) 30%,
      rgba(255, 255, 255, 0.28) 56%,
      rgba(255, 255, 255, 0.00) 76%
    );
  pointer-events: none;
  z-index: 1;
}

/* Conteúdo acima do overlay — exclui a imagem */
.hero-body > *:not(.hero-img) {
  position: relative;
  z-index: 2;
}

/* Imagem do hero — camada base, atrás do overlay e do conteúdo */
.hero-img {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Garante que o container ocupe toda a largura do flex pai,
   permitindo que max-width + margin: auto funcione como em
   contexto de bloco — necessário para alinhar com os stats */
.hero-body > .container {
  width: 100%;
}

/* Bloco de texto — alinhado com o conteúdo do primeiro card numérico.
   padding-left: 44px = mesmo valor do padding-left do .stat-item */
.hero-text {
  max-width: min(600px, 50vw);
  padding-left: 44px;
}

/* ---------------------------------------------------------------
   Tipografia — texto escuro sobre área clara da imagem
   --------------------------------------------------------------- */

/* Eyebrow: linha teal + label em caps */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.hero-eyebrow-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Título principal */
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.09;
  letter-spacing: -0.5px;
  margin-bottom: 0;
  animation: heroFadeUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
  display: block;
}

/* Divisor teal */
.hero-divider {
  width: 44px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 28px 0;
  transform-origin: left center;
  animation: heroDividerGrow 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Parágrafo */
.hero p {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(26, 26, 26, 0.65);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 44px;
  animation: heroFadeUp 0.6s ease 0.46s both;
}

/* CTAs */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.6s ease 0.56s both;
}

/* ---------------------------------------------------------------
   Barra de estatísticas — aparece APÓS o final da imagem
   --------------------------------------------------------------- */
.hero-stats {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  animation: heroFadeUp 0.6s ease 0.68s both;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 32px 44px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--color-border);
}

/* Número — Roboto Slab, teal */
.stat-number {
  font-family: var(--font-slab);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.3px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 9px;
  line-height: 1.4;
}

/* ---------------------------------------------------------------
   Seções seguintes
   --------------------------------------------------------------- */
.about-section    { background: var(--color-white); }
.products-section { background: var(--color-secondary); }

/* ---------------------------------------------------------------
   Responsivo — 960px
   --------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-text { max-width: 60vw; }
}

/* ---------------------------------------------------------------
   Responsivo — 768px
   --------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-body {
    padding: 84px 0 44px;
    background-position: right 35%;
  }

  /* Overlay mais sólido no mobile: texto sempre legível */
  .hero-body::before {
    background: rgba(255, 255, 255, 0.88);
  }

  .hero h1 { font-size: clamp(28px, 8vw, 42px); }
  .hero p  { font-size: 15px; }

  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { text-align: center; }

  .hero-text {
    max-width: 100%;
    padding-left: 0;
  }
}

/* ---------------------------------------------------------------
   Responsivo — 600px (stats)
   --------------------------------------------------------------- */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }

  .stat-item {
    padding: 22px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .stat-item:last-child { border-bottom: none; }
  .stat-item + .stat-item::before { display: none; }
}
