/* ============================================================
   page-home.css — blocos exclusivos da home
   Depende de css/d3.css e css/blocks.css
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .96fr) minmax(400px, 1.04fr);
  gap: clamp(30px, 4vw, 68px);
  align-items: center;
  min-height: min(92svh, 820px);
  padding: calc(var(--nav-h) + clamp(36px, 6vw, 72px)) var(--gutter) clamp(56px, 7vw, 96px);
  overflow: clip;
}
.hero__glow { top: -34%; right: -22%; width: min(74vw, 980px); aspect-ratio: 1; }
.hero__copy { position: relative; z-index: 2; }
.hero__copy .h1 { margin-bottom: 24px; }
.hero__copy .lede { margin-bottom: 34px; }

.hero__visual { position: relative; z-index: 1; padding-bottom: 17%; }
.hero__screen .frame { border-radius: var(--r-md); }
.hero__screen .hero__cap { justify-content: flex-end; }
.hero__site { position: absolute; bottom: 0; left: -7%; width: 44%; }
.hero__site .frame { border-radius: var(--r); }
.hero__nfc {
  position: absolute;
  top: -16%;
  /* Avança sobre a margem lateral, mas nunca além dela (legenda não é cortada). */
  right: calc(-1 * min(14%, var(--gutter) - 16px));
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 32%;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .45));
}
.hero__nfc img { display: block; width: 56%; flex: none; }
/* Legenda empilhada e no topo: cabe na coluna estreita e fica fora do dashboard. */
.hero__nfc .hero__cap { flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; margin-top: 4px; line-height: 1.5; }
.hero__cap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--tx-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.hero__cap b { color: var(--blue); font-weight: 500; }
.hero__cap::before { width: 14px; height: 1px; background: var(--line); content: ''; flex: none; }
.hero__screen .hero__cap::before { order: 2; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero__site { animation: float 7s ease-in-out infinite; }
  .hero__nfc { animation: float 8s ease-in-out infinite -3s; }
  @keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
  }
}

/* Faixa de credibilidade */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: clamp(18px, 3vw, 40px);
  color: var(--tx-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.trust .icon { width: 14px; height: 14px; color: var(--blue); }

/* ── FRENTES DE ATUAÇÃO ─────────────────────────────────── */
.frentes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.frentes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frente { padding: 36px clamp(26px, 4vw, 54px) 0 0; }
.frente + .frente { border-left: 1px solid var(--line); padding: 36px 0 0 clamp(26px, 4vw, 54px); }
.frente__num {
  display: block;
  margin-bottom: 20px;
  color: var(--tx-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
}
.frente h3 { margin-bottom: 12px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.frente > p { max-width: 46ch; margin-bottom: 26px; color: var(--tx-2); font-size: 14.5px; line-height: 1.68; }
.frente .checks { margin-bottom: 30px; }

/* ── MISSÃO / VISÃO / VALORES ───────────────────────────── */
.mvv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); }
.mvv > div { padding: 28px 24px 6px 0; border-right: 1px solid var(--line); }
.mvv > div + div { padding-left: 24px; }
.mvv > div:last-child { padding-right: 0; border-right: 0; }
.mvv strong {
  display: block;
  margin-bottom: 12px;
  color: var(--tx-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.mvv p { color: var(--tx-2); font-size: 14px; line-height: 1.65; }

/* ── D3 CORE ────────────────────────────────────────────── */
.core__shot { position: relative; margin: clamp(38px, 5vw, 62px) 0 clamp(30px, 4vw, 48px); }
.core__shot .frame { border-radius: var(--r-md); }
.core__phone {
  position: absolute;
  right: -1.5%;
  bottom: -9%;
  width: clamp(88px, 11%, 132px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-3);
}

/* ── CONTATO ────────────────────────────────────────────── */
.contact { align-items: start; }

/* ── RESPONSIVO ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(280px, 1fr) minmax(340px, 1fr); }
}

@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 42px;
    min-height: 0;
    padding-top: calc(var(--nav-h) + 40px);
  }
  .hero__visual { padding-bottom: 0; }
  .hero__site { position: static; width: 68%; margin: -6% 0 0 auto; }
  .hero__nfc { top: -12%; right: 2%; width: 26%; }
  .hero__nfc .hero__cap { display: none; }
  .frentes { grid-template-columns: 1fr; }
  .frente { padding: 30px 0 34px; }
  .frente + .frente { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
  .mvv { grid-template-columns: 1fr; }
  .mvv > div, .mvv > div + div { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .mvv > div:last-child { border-bottom: 0; }
  .core__phone { display: none; }
}

@media (max-width: 420px) {
  .hero__site { width: 78%; }
}
