/* ============================================================
   Páginas de marketing no padrão da home: ControleChapas,
   OrcamentosParaMarmoraria, Marmoraria, LandingMarmoraria,
   LandingAppMarmoraria, DepoimentoGranimar, DownloadApp e
   PrestacaoServicos
   Complementa o home.css: usa as mesmas variáveis e classes gw-,
   aqui ficam só os blocos que a home não tem.
   ============================================================ */

/* ------------------------------------------------------------
   Topo com foto ao fundo (imagem em --gw-hero-img, no HTML)
   ------------------------------------------------------------ */
/* Sem position aqui (igual ao .gw-hero da home): senão o topo cobre o header absoluto.
   O fundo de baixo fica maior porque a faixa de benefícios sobe por cima dele. */
.gw-hero--foto {
  padding-bottom: 140px; background-color: var(--gw-navy);
  background-image:
    linear-gradient(100deg, rgba(11, 29, 63, .95) 0%, rgba(11, 29, 63, .86) 45%, rgba(11, 29, 63, .62) 100%),
    var(--gw-hero-img);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.gw-hero .gw-kicker { color: var(--gw-teal); }
/* Topo liso (sem foto) e topo baixo, para páginas sem a faixa de benefícios */
.gw-hero--navy { padding-bottom: 140px; background: var(--gw-navy); }
.gw-hero--compact { padding-bottom: 72px; }
.gw-hero .gw-browser { border-color: rgba(255, 255, 255, .14); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.gw-hero .gw-video-fig figcaption { color: rgba(255, 255, 255, .65); }
.gw-hero .gw-device figcaption { color: rgba(255, 255, 255, .65); }

/* ------------------------------------------------------------
   Benefícios (faixa de 4 cartões logo abaixo do topo)
   ------------------------------------------------------------ */
.gw-benefits { position: relative; z-index: 2; margin-top: -56px; }
.gw-benefit-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--gw-radius-lg); box-shadow: var(--gw-shadow-lg);
  border: 1px solid var(--gw-line); overflow: hidden;
}
.gw-benefit { padding: 28px 24px; border-left: 1px solid var(--gw-line); }
.gw-benefit:first-child { border-left: 0; }
.gw-benefit i {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gw-blue-soft); color: var(--gw-blue); font-size: 1.1rem; margin-bottom: 14px;
}
.gw-benefit h2, .gw-benefit h3 { font-size: 1.05rem; margin-bottom: 6px; }
.gw-benefit p { margin: 0; color: var(--gw-muted); font-size: .94rem; }

/* ------------------------------------------------------------
   Captura de tela com legenda. A imagem fica num .gw-shot com
   data-zoom (home.css/home.js), que abre a lightbox no clique.
   ------------------------------------------------------------ */
.gw-shot-fig { margin: 0; }
.gw-shot-fig figcaption { margin-top: 12px; font-size: .9rem; color: var(--gw-muted); }
.gw-section--dark .gw-shot-fig figcaption, .gw-hero .gw-shot-fig figcaption { color: rgba(255, 255, 255, .65); }

/* Galeria de telas do sistema */
.gw-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gw-gallery-item { margin: 0; }
.gw-gallery-item .gw-shot {
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--gw-radius);
  border: 1px solid var(--gw-line); background: #fff; box-shadow: var(--gw-shadow);
}
.gw-gallery-item .gw-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block;
  transition: transform .4s ease;
}
.gw-gallery-item .gw-shot:hover img { transform: scale(1.03); }
.gw-gallery-item figcaption { margin-top: 14px; }
.gw-gallery-item figcaption strong { display: block; color: var(--gw-ink); font-size: 1rem; }
.gw-gallery-item figcaption span { display: block; margin-top: 4px; color: var(--gw-muted); font-size: .92rem; }

/* Celulares com telas do app (topo da página do app) */
.gw-phones { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; margin: 0; }
.gw-phones .gw-shot { width: 46%; max-width: 250px; }
.gw-phones .gw-shot + .gw-shot { margin-left: -6%; margin-bottom: -28px; }
.gw-phones img { width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 36px rgba(0, 0, 0, .45)); }
.gw-phones .gw-shot.gw-zoomable::after { right: 14px; bottom: 30px; }
.gw-phones figcaption { flex-basis: 100%; margin-top: 46px; text-align: center; font-size: .9rem; color: rgba(255, 255, 255, .65); }
.gw-app-shot { margin: 0; text-align: center; }
.gw-app-shot .gw-shot { display: inline-block; max-width: 460px; }
.gw-app-shot img { width: 100%; height: auto; display: block; }
.gw-app-shot figcaption { margin-top: 12px; font-size: .9rem; color: var(--gw-muted); }

/* Botão da Google Play em fundo escuro */
.gw-play-store--light { background: #fff; color: var(--gw-navy); }
.gw-play-store--light:hover, .gw-play-store--light:focus { background: var(--gw-teal-soft); color: var(--gw-navy); }

/* Destaque em números/itens curtos ao lado do texto */
.gw-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.gw-pills li {
  font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--gw-teal-soft); color: var(--gw-teal-deep);
}
.gw-section--dark .gw-pills li { background: rgba(58, 188, 175, .16); color: var(--gw-teal); }

/* ------------------------------------------------------------
   Chamada para outro módulo (ex.: orçamento -> CRM)
   ------------------------------------------------------------ */
.gw-crosslink {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 24px 28px; border-radius: var(--gw-radius); background: #fff;
  border: 1px solid var(--gw-line); box-shadow: var(--gw-shadow);
}
.gw-crosslink .gw-mod-ic { margin: 0; background: var(--gw-teal-soft); color: var(--gw-teal-deep); }
.gw-crosslink h2 { font-size: 1.1rem; margin: 0 0 4px; }
.gw-crosslink p { margin: 0; color: var(--gw-muted); font-size: .95rem; }

/* ------------------------------------------------------------
   Artigos e tutoriais
   ------------------------------------------------------------ */
.gw-post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gw-post a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--gw-line); border-radius: var(--gw-radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gw-post a:hover, .gw-post a:focus-visible { transform: translateY(-3px); box-shadow: var(--gw-shadow); border-color: #cfd8e6; }
.gw-post a:focus-visible { outline: 3px solid var(--gw-teal); outline-offset: 2px; }
.gw-post-img { display: block; aspect-ratio: 16 / 9; background: var(--gw-bg); overflow: hidden; }
.gw-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gw-post a:hover .gw-post-img img { transform: scale(1.04); }
.gw-post-tipo {
  margin: 16px 18px 0; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gw-teal-deep);
}
.gw-post h3 { font-size: 1rem; line-height: 1.4; margin: 6px 18px 20px; color: var(--gw-ink); }
.gw-post a:hover h3 { color: var(--gw-blue); }

/* Grade de módulos com 2 colunas (ex.: versões Windows e Web) */
.gw-mod-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin: 0 auto; }

/* ------------------------------------------------------------
   Depoimentos
   ------------------------------------------------------------ */
.gw-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gw-testi {
  display: flex; flex-direction: column; margin: 0; padding: 26px; border-radius: var(--gw-radius);
  background: #fff; border: 1px solid var(--gw-line);
}
.gw-testi blockquote { margin: 0 0 20px; color: var(--gw-muted); font-size: .96rem; }
.gw-testi blockquote p { margin: 0; }
.gw-testi figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.gw-testi figcaption img, .gw-testi-ini {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.gw-testi-ini {
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: var(--gw-teal-soft); color: var(--gw-teal-deep);
}
.gw-testi figcaption strong { display: block; color: var(--gw-ink); line-height: 1.3; }
.gw-testi figcaption span { font-size: .88rem; color: var(--gw-muted); }
.gw-photo { margin: 0; }
.gw-photo img { width: 100%; height: auto; display: block; border-radius: var(--gw-radius-lg); box-shadow: var(--gw-shadow-lg); }
.gw-photo figcaption { margin-top: 12px; font-size: .9rem; color: var(--gw-muted); }

/* ------------------------------------------------------------
   Documento (contrato): sumário fixo ao lado do texto
   ------------------------------------------------------------ */
.gw-doc { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.gw-doc-toc {
  position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto;
  padding: 22px; border-radius: var(--gw-radius); background: var(--gw-bg); border: 1px solid var(--gw-line);
}
.gw-doc-toc h2 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gw-teal-deep); margin-bottom: 12px; }
.gw-doc-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.gw-doc-toc a {
  display: block; padding: 6px 8px; border-radius: 8px; font-size: .88rem; line-height: 1.35;
  color: var(--gw-ink); text-decoration: none;
}
.gw-doc-toc a:hover, .gw-doc-toc a:focus-visible { background: #fff; color: var(--gw-blue); }
.gw-doc-body { max-width: 820px; color: #3c4a60; font-size: 1rem; line-height: 1.75; }
.gw-doc-body > p:first-child { font-size: 1.05rem; }
.gw-doc-body section { scroll-margin-top: 110px; padding-top: 12px; }
.gw-doc-body h2 { font-size: 1.15rem; line-height: 1.4; margin: 28px 0 12px; color: var(--gw-ink); }
.gw-doc-body ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gw-doc-sign { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--gw-line); }
.gw-doc-sign strong { display: block; color: var(--gw-ink); }
.gw-doc-sign span { color: var(--gw-muted); font-size: .92rem; }

/* Aviso (ex.: arquivo não encontrado no download) */
.gw-alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 24px;
  background: #fdecee; color: #8f1d2c; border: 1px solid #f6c8cf; font-size: .95rem;
}

/* ------------------------------------------------------------
   Responsivo
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .gw-hero--foto { padding-bottom: 120px; }
  .gw-hero--navy { padding-bottom: 120px; }
  .gw-hero--compact { padding-bottom: 60px; }
  .gw-benefit-grid, .gw-post-grid, .gw-gallery, .gw-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-doc { grid-template-columns: 1fr; }
  .gw-doc-toc { position: static; max-height: none; }
  .gw-benefit:nth-child(3) { border-left: 0; }
  .gw-benefit:nth-child(n+3) { border-top: 1px solid var(--gw-line); }
  .gw-crosslink { grid-template-columns: auto 1fr; }
  .gw-crosslink .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 575.98px) {
  .gw-benefits { margin-top: -40px; }
  .gw-benefit-grid, .gw-post-grid, .gw-gallery, .gw-testi-grid, .gw-mod-grid--2 { grid-template-columns: 1fr; }
  .gw-benefit { border-left: 0; }
  .gw-benefit:nth-child(n+2) { border-top: 1px solid var(--gw-line); }
  .gw-crosslink { grid-template-columns: 1fr; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-post a, .gw-post-img img, .gw-gallery-item .gw-shot img { transition: none; }
}
