/* =========================================================
   Home v2 — decisão, jornada e indicadores | 2026-09-11
   Arquivo carregado somente pela home para sobrescrever a
   composição anterior sem afetar dashboards internos.
   ========================================================= */

.home-container {
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
}

.home-section { padding: 54px 0; }

.home-section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.home-section-heading h2 {
  margin: 0;
  color: #1b4d46;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.home-section-heading > p:not(.home-kicker) {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Hero */
.home-hero-decision {
  padding: 54px 0 46px;
  background:
    radial-gradient(circle at 9% 20%, rgba(15,118,110,.055), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fcfefd 100%);
}

.home-hero-decision .home-hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  gap: 54px;
}

.home-hero-decision .home-hero-copy h1 {
  max-width: 760px;
  color: #173f39;
  font-size: clamp(3rem, 4.8vw, 4.85rem);
  line-height: 1.01;
}

.home-hero-decision .home-hero-copy > p:not(.home-kicker) {
  max-width: 720px;
  font-size: 1.12rem;
  line-height: 1.68;
}

.home-hero-decision .home-hero-image-wrap {
  min-height: 455px;
}

/* Jornadas */
.home-decision-section {
  background: #f5f8f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-decision-heading { max-width: 900px; }

.home-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-decision-card {
  position: relative;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #d8e5e1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18,40,36,.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-decision-card:not(.home-decision-card-soon):hover {
  transform: translateY(-3px);
  border-color: #a9c7c0;
  box-shadow: 0 16px 36px rgba(18,40,36,.09);
}

.home-decision-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  border-radius: 9px;
  background: #e7f4f1;
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.home-decision-card h3 {
  margin: 0;
  color: #183e39;
  font-size: 1.12rem;
  line-height: 1.3;
}

.home-decision-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.home-decision-card > strong {
  margin-top: auto;
  color: var(--primary-dark);
  font-size: .84rem;
}

.home-decision-card-soon {
  border-style: dashed;
  background: #fbfcfc;
}

.home-decision-card-soon > strong { color: #74827e; }

/* 3 passos */
.home-how-section { background: #fff; }

.home-how-shell {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fbfdfc, #f4f9f7);
  box-shadow: 0 14px 38px rgba(24,41,37,.055);
}

.home-how-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-how-card {
  min-height: 185px;
  padding: 20px;
  border: 1px solid #dce7e3;
  border-radius: 14px;
  background: #fff;
}

.home-how-card > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #1b4d46;
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
}

.home-how-card h3 { margin: 0 0 8px; color: #183e39; }
.home-how-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.58; }
.home-how-action { margin-top: 20px; }

/* Indicadores — 6 cards */
.home-products-v2 { background: #f8faf9; border-top: 1px solid #edf2f0; border-bottom: 1px solid #edf2f0; }

.home-products-heading { max-width: 900px; }

.home-product-grid-v2 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-product-grid-v2 .home-product-card {
  min-height: 300px;
  gap: 12px;
  padding: 22px;
}

.home-product-grid-v2 .home-product-card h3 {
  margin: 0;
  color: #183e39;
  font-size: 1.16rem;
  line-height: 1.25;
}

.home-product-grid-v2 .home-product-card p {
  line-height: 1.55;
  font-size: .91rem;
}

.home-product-grid-v2 .home-product-icon {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.home-product-card-soon {
  border-style: dashed;
  box-shadow: none;
}

/* Entenda */
.home-understand-section { background: #fff; }

.home-understand-shell {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: center;
  padding: 32px;
  border: 1px solid #d7e5e1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 5% 18%, rgba(199,154,53,.08), transparent 24%),
    linear-gradient(135deg, #f9fcfb, #f3f8f6);
}

.home-understand-copy h2 {
  margin: 0;
  color: #173f39;
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  line-height: 1.12;
}

.home-understand-copy > p:not(.home-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-understand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-understand-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid #dce7e3;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  transition: border-color 150ms ease, transform 150ms ease;
}

.home-understand-card:hover {
  transform: translateY(-2px);
  border-color: #abc9c1;
}

.home-understand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #e7f4f1;
  color: var(--primary-dark);
  font-weight: 850;
}

.home-understand-card h3 {
  margin: 0 0 6px;
  color: #183e39;
  font-size: 1rem;
}

.home-understand-card p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

/* Transparência */
.home-trust-section { padding-top: 24px; padding-bottom: 68px; }

.home-trust-panel {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.35fr) auto;
  gap: 30px;
  align-items: center;
  padding: 30px 32px;
  border-radius: 18px;
  background: #1b4d46;
  color: #fff;
}

.home-trust-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.home-trust-panel > p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

.home-trust-panel .home-kicker { color: #d8b871; }
.home-trust-panel .btn-outline { color: #fff; border-color: rgba(255,255,255,.58); background: transparent; }
.home-trust-panel .btn-outline:hover { background: #fff; color: #1b4d46; }

@media (max-width: 1180px) {
  .home-hero-decision .home-hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .home-decision-grid,
  .home-product-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-trust-panel { grid-template-columns: 1fr 1fr; }
  .home-trust-panel .btn { justify-self: start; }
}

@media (max-width: 980px) {
  .home-hero-decision .home-hero-grid,
  .home-understand-shell { grid-template-columns: 1fr; }
  .home-hero-decision .home-hero-image-wrap { min-height: 390px; }
  .home-how-grid { grid-template-columns: 1fr; }
  .home-how-card { min-height: 0; }
}

@media (max-width: 720px) {
  .home-container { width: min(100% - 28px, 1480px); }
  .home-section { padding: 42px 0; }
  .home-hero-decision { padding: 42px 0 34px; }
  .home-hero-decision .home-hero-copy h1 { font-size: clamp(2.35rem, 11vw, 3.45rem); }
  .home-hero-decision .home-hero-image-wrap { min-height: 315px; }
  .home-decision-grid,
  .home-product-grid-v2,
  .home-understand-grid,
  .home-trust-panel { grid-template-columns: 1fr; }
  .home-decision-card { min-height: 0; }
  .home-how-shell,
  .home-understand-shell { padding: 22px; }
  .home-trust-panel { gap: 18px; padding: 24px; }
  .home-trust-panel .btn { width: 100%; }
}

/* =========================================================
   Home · acabamento fino | 2026-09-11 · v4
   ========================================================= */

.home-container {
  width: min(1360px, calc(100% - 48px));
}

.home-hero-decision {
  padding-top: 48px;
  padding-bottom: 42px;
}

.home-hero-decision .home-hero-grid {
  grid-template-columns: minmax(0, .96fr) minmax(480px, 1.04fr);
  gap: 48px;
}

.home-hero-decision .home-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.9rem, 4.55vw, 4.55rem);
  letter-spacing: -.038em;
}

.home-hero-decision .home-hero-copy > p:not(.home-kicker) {
  max-width: 680px;
  margin-top: 18px;
}

.home-hero-decision .hero-actions {
  margin-top: 26px;
}

.home-hero-decision .home-trust-row {
  margin-top: 18px;
}

.home-hero-decision .home-hero-image-wrap {
  min-height: 440px;
  border: 1px solid rgba(27,77,70,.08);
  box-shadow: 0 18px 48px rgba(18,40,36,.055);
  isolation: isolate;
}

.home-hero-decision .home-hero-shape {
  z-index: 0;
}

.home-hero-decision .home-hero-image-wrap img {
  object-fit: contain;
  object-position: center bottom;
}

/* A primeira seção deve aparecer rapidamente depois do hero; reduzimos
   espaço sem perder respiro visual. */
.home-decision-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.home-decision-grid {
  gap: 14px;
}

.home-decision-card {
  min-height: 210px;
  padding: 21px;
}

.home-decision-card::after {
  content: "";
  position: absolute;
  left: 21px;
  right: 21px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--primary), #d8b871);
  opacity: 0;
  transform: scaleX(.55);
  transform-origin: left center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.home-decision-card:not(.home-decision-card-soon):hover::after,
.home-decision-card:not(.home-decision-card-soon):focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-decision-card:focus-visible,
.home-product-card a:focus-visible,
.home-understand-card:focus-visible {
  outline: 3px solid rgba(15,118,110,.22);
  outline-offset: 3px;
}

.home-decision-card > strong {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
}

.home-decision-card-soon {
  background: linear-gradient(180deg, #fcfdfd, #f8faf9);
}

.home-how-shell {
  padding: 30px;
}

.home-how-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
}

.home-how-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #d8b871;
  opacity: .72;
}

.home-how-card > span {
  margin-bottom: 14px;
}

.home-products-v2 {
  padding-top: 50px;
  padding-bottom: 50px;
}

.home-product-grid-v2 {
  gap: 15px;
}

.home-product-grid-v2 .home-product-card {
  min-height: 288px;
  padding: 21px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-product-grid-v2 .home-product-card:not(.home-product-card-soon):hover {
  transform: translateY(-2px);
  border-color: #b5cec8;
  box-shadow: 0 15px 34px rgba(24,41,37,.075);
}

.home-product-grid-v2 .home-product-icon,
.home-understand-icon {
  overflow: hidden;
}

.home-product-grid-v2 .home-product-icon > img,
.home-understand-icon > img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center;
}

.home-product-grid-v2 .home-product-card h3 {
  max-width: 30ch;
}

.home-product-card-soon {
  background: #fafcfb;
}

.home-product-card-soon .home-product-icon {
  background: #f2f4f3;
  color: #76837f;
}

.home-understand-shell {
  gap: 32px;
  padding: 30px;
}

.home-understand-card {
  position: relative;
  padding-right: 42px;
}

.home-understand-card::after {
  content: "→";
  position: absolute;
  right: 16px;
  top: 17px;
  color: #84a29b;
  font-size: 1rem;
  transition: transform 150ms ease, color 150ms ease;
}

.home-understand-card:hover::after,
.home-understand-card:focus-visible::after {
  color: var(--primary-dark);
  transform: translateX(3px);
}

/* Mantém os cards editoriais equilibrados mesmo quando a publicação
   não possui capa. */
.home-insight-card:not(:has(.home-insight-image-link)) .home-insight-content {
  padding-top: 24px;
}

.home-trust-panel {
  box-shadow: 0 16px 38px rgba(18,40,36,.13);
}

@media (max-width: 1180px) {
  .home-container {
    width: min(100% - 40px, 1360px);
  }

  .home-hero-decision .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
    gap: 34px;
  }

  .home-hero-decision .home-hero-copy h1 {
    font-size: clamp(2.7rem, 5vw, 4rem);
  }
}

@media (max-width: 980px) {
  .home-hero-decision .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-decision .home-hero-copy,
  .home-hero-decision .home-hero-copy > p:not(.home-kicker) {
    max-width: 820px;
  }

  .home-hero-decision .home-hero-image-wrap {
    min-height: 360px;
    max-width: 760px;
    width: 100%;
  }

  .home-understand-shell {
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .home-container {
    width: min(100% - 28px, 1360px);
  }

  .home-hero-decision {
    padding-top: 36px;
    padding-bottom: 30px;
  }

  .home-hero-decision .home-hero-copy h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.25rem);
    line-height: 1.02;
  }

  .home-hero-decision .home-hero-copy > p:not(.home-kicker) {
    font-size: 1rem;
    line-height: 1.62;
  }

  .home-hero-decision .home-hero-image-wrap {
    min-height: 290px;
  }

  .home-decision-section,
  .home-products-v2 {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .home-decision-card,
  .home-product-grid-v2 .home-product-card,
  .home-understand-card {
    padding: 19px;
  }

  .home-understand-card {
    padding-right: 40px;
  }

  .home-how-shell,
  .home-understand-shell {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-decision-card,
  .home-decision-card::after,
  .home-product-grid-v2 .home-product-card,
  .home-understand-card,
  .home-understand-card::after {
    transition: none;
  }
}

/* =========================================================
   Home · revisão visual a partir dos prints | 2026-09-11 · v5
   ========================================================= */

/* Hero mais compacto e com melhor equilíbrio texto/visual em desktop. */
.home-hero-decision .home-hero-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(470px, .97fr);
  gap: 44px;
}

.home-hero-decision .home-hero-copy h1 {
  max-width: 790px;
  font-size: clamp(2.85rem, 4.1vw, 4.15rem);
  line-height: 1.015;
}

.home-hero-decision .home-hero-image-wrap {
  min-height: 412px;
}

/* Os cards de escolha devem funcionar como atalhos rápidos, não como painéis. */
.home-decision-card {
  min-height: 194px;
  gap: 11px;
  padding: 19px 20px;
}

.home-decision-card p {
  margin-top: 5px;
}

.home-decision-number {
  width: 36px;
  height: 29px;
}

/* Ícones temporários consistentes até a produção dos assets H02-H07. */
.home-product-grid-v2 .home-product-icon {
  color: #1b4d46;
}

.home-product-grid-v2 .home-product-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-product-grid-v2 .home-product-icon-gold {
  color: #6f5519;
}

.home-product-card-soon .home-product-icon svg {
  color: #6f7f7a;
}

/* Compacta ligeiramente a grade de ferramentas sem retirar informação. */
.home-product-grid-v2 .home-product-card {
  min-height: 274px;
}

@media (max-width: 1180px) {
  .home-hero-decision .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(405px, .9fr);
    gap: 32px;
  }

  .home-hero-decision .home-hero-copy h1 {
    font-size: clamp(2.65rem, 4.7vw, 3.8rem);
  }
}

@media (max-width: 980px) {
  .home-hero-decision .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-hero-decision .home-hero-image-wrap {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  /* A Home precisa chegar mais cedo aos atalhos de decisão no celular. */
  .home-hero-decision {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .home-hero-decision .home-hero-grid {
    gap: 22px;
  }

  .home-hero-decision .home-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.035;
    letter-spacing: -.032em;
  }

  .home-hero-decision .home-hero-copy > p:not(.home-kicker) {
    margin-top: 15px;
    font-size: .96rem;
    line-height: 1.56;
  }

  .home-hero-decision .hero-actions {
    gap: 9px;
    margin-top: 20px;
  }

  .home-hero-decision .home-trust-row {
    gap: 9px 16px;
    margin-top: 16px;
    font-size: .82rem;
  }

  .home-hero-decision .home-hero-image-wrap {
    min-height: 238px;
    border-radius: 18px;
  }

  .home-section-heading {
    margin-bottom: 20px;
  }

  .home-section-heading h2 {
    font-size: clamp(1.72rem, 8vw, 2.18rem);
  }

  .home-decision-section,
  .home-products-v2 {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .home-decision-grid {
    gap: 11px;
  }

  .home-decision-card {
    min-height: 0;
    gap: 9px;
    padding: 16px;
    border-radius: 14px;
  }

  .home-decision-number {
    width: 34px;
    height: 28px;
  }

  .home-decision-card h3 {
    font-size: 1.02rem;
    line-height: 1.27;
  }

  .home-decision-card p {
    margin-top: 4px;
    font-size: .86rem;
    line-height: 1.47;
  }

  .home-decision-card > strong {
    font-size: .8rem;
  }

  .home-how-shell,
  .home-understand-shell {
    padding: 18px;
  }

  .home-how-card {
    padding: 17px;
  }

  .home-product-grid-v2 .home-product-card {
    min-height: 0;
  }
}

/* =========================================================
   Home · micro acabamento final | 2026-09-11 · v6
   Ajustes mínimos aprovados antes da produção das imagens.
   ========================================================= */

/* Grade de indicadores: um pouco mais densa, preservando alinhamento
   dos CTAs e área suficiente para a futura família H02-H07. */
.home-product-grid-v2 .home-product-card {
  min-height: 258px;
  padding: 19px 20px;
  gap: 10px;
}

.home-product-grid-v2 .home-product-icon {
  width: 56px;
  height: 56px;
}

.home-product-grid-v2 .home-product-icon svg {
  width: 29px;
  height: 29px;
}

.home-product-grid-v2 .home-product-card p {
  line-height: 1.5;
}

@media (max-width: 720px) {
  /* O visual continua presente, mas deixa a próxima decisão aparecer
     mais cedo na rolagem. A imagem final H01 deve respeitar esta caixa. */
  .home-hero-decision .home-hero-image-wrap {
    min-height: 216px;
  }

  .home-hero-decision .home-hero-image-wrap img {
    left: 50%;
    width: min(84%, 560px);
    transform: translateX(-50%);
  }

  .home-hero-decision .home-hero-shape {
    right: 10%;
    width: 68%;
    height: 80%;
  }

  .home-product-grid-v2 .home-product-card {
    min-height: 0;
    padding: 17px 18px;
  }
}
