/* ============================================================
   blocks.css — blocos reutilizados por mais de uma página
   Depende de css/d3.css
   ============================================================ */

/* ── NAVEGADOR (screenshot de site) ─────────────────────── */
.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-raise);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.browser__dots { display: flex; gap: 5px; flex: none; }
.browser__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.browser__url {
  overflow: hidden;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--tx-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .6px;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.browser__view { overflow: hidden; background: var(--bg-soft); }
.browser__view img { width: 100%; }

/* ── SERVIÇOS COM PREÇO (lista) ─────────────────────────── */
.offers { border-top: 1px solid var(--line); }
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.offer h3 { grid-column: 1; font-size: 20px; font-weight: 800; letter-spacing: -.038em; line-height: 1.2; }
.offer__price { grid-area: 1 / 2; text-align: right; white-space: nowrap; }
.offer__price span {
  display: block;
  color: var(--tx-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.offer__price strong { font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.offer > p { grid-column: 1 / -1; max-width: 60ch; color: var(--tx-2); font-size: 14px; line-height: 1.66; }
.offer .tag-row { grid-column: 1 / -1; margin-top: 6px; }
.offers__note { margin-top: 22px; max-width: 62ch; color: var(--tx-3); font-size: 12.5px; line-height: 1.6; }

/* ── GRADE DE MÓDULOS / RECURSOS ────────────────────────── */
.modules {
  display: grid;
  grid-template-columns: repeat(var(--module-cols, 5), minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.module {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 20px 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.module:hover { background: var(--blue-soft); }
.module .icon { width: 18px; height: 18px; color: var(--blue); }
.module strong { font-size: 13.5px; font-weight: 700; letter-spacing: -.022em; }
.module span { color: var(--tx-3); font-size: 12px; line-height: 1.5; }

/* ── PLANOS / PACOTES ───────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(var(--plan-cols, 3), minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.plan--featured { background: var(--blue-soft); }
.plan__tag {
  display: block;
  min-height: 14px;
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.plan h3 { margin-bottom: 14px; font-size: 19px; font-weight: 800; letter-spacing: -.038em; }
.plan__price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 6px; }
.plan__price strong { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.plan__price span { color: var(--tx-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .8px; }
.plan__note { margin-bottom: 22px; color: var(--tx-3); font-size: 12.5px; line-height: 1.55; }
.plan .checks { margin-bottom: 26px; }
.plan .checks li { font-size: 13px; }
.plan .button, .plan .link { margin-top: auto; }
.plan .link { align-self: start; }

/* ── PROJETOS ───────────────────────────────────────────── */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.work__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: scale .7s var(--ease); }
.work:hover .work__media img { scale: 1.045; }
.work__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 15px; }
.work__meta h3 { font-size: 16px; font-weight: 700; letter-spacing: -.028em; }
.work__meta p { margin-top: 4px; color: var(--tx-3); font-size: 12.5px; line-height: 1.5; }
.work__meta .icon { width: 15px; height: 15px; color: var(--tx-3); transition: transform .3s var(--ease), color .3s ease; }
.work:hover .work__meta .icon { color: var(--blue); transform: translate(2px, -2px); }
.work__note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--tx-3);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ── DEPOIMENTOS ────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
/* Coluna flexível: o autor fica sempre na base, alinhado entre os cards. */
.quote {
  display: flex;
  flex-direction: column;
  padding: 32px clamp(20px, 3vw, 38px) 30px;
  border-right: 1px solid var(--line);
}
.quote:first-child { padding-left: 0; }
.quote:last-child { padding-right: 0; border-right: 0; }
.stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--blue); }
.stars .icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.quote blockquote { font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; letter-spacing: -.028em; line-height: 1.48; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 26px; }
.quote__who img, .quote__initials {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
  flex: none;
}
.quote__initials {
  display: grid;
  color: var(--tx-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .6px;
  place-items: center;
}
.quote__who strong { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.02em; }
.quote__who div span { display: block; color: var(--tx-3); font-size: 12px; line-height: 1.4; }
.quote__who a { margin-left: auto; color: var(--tx-3); transition: color .25s ease; }
.quote__who a:hover { color: var(--blue); }
.quote__who a .icon { width: 15px; height: 15px; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.028em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 15px; height: 15px; color: var(--tx-3); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { max-width: 72ch; margin: 0 0 24px; color: var(--tx-2); font-size: 14.5px; line-height: 1.72; }

/* ── COMPARATIVO ────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.compare__col { padding: 30px clamp(24px, 4vw, 50px) 8px 0; }
.compare__col + .compare__col { border-left: 1px solid var(--line); padding: 30px 0 8px clamp(24px, 4vw, 50px); }
.compare__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--tx-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.compare__chip .icon { width: 13px; height: 13px; }
.compare__col--good .compare__chip { border-color: color-mix(in srgb, var(--blue) 45%, transparent); color: var(--blue); }
.compare__item { padding: 20px 0; border-top: 1px solid var(--line-2); }
.compare__item:first-of-type { border-top: 0; }
.compare__item strong { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; letter-spacing: -.03em; }
.compare__item span { display: block; max-width: 46ch; color: var(--tx-2); font-size: 13.5px; line-height: 1.62; }
.compare__col--bad .compare__item strong { color: var(--tx-2); }

/* ── ROTAS DE CONTATO ───────────────────────────────────── */
.route {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 14px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.route:first-of-type { border-top: 1px solid var(--line); }
.route:hover { padding-left: 6px; }
/* Mesmo selo de ícone do menu Soluções (.nav__panel-ico): 34px, ícone 17px. */
.route__ico { display: grid; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--r); place-items: center; }
.route__ico .icon { width: 17px; height: 17px; color: var(--blue); }
.route strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.route strong + span { display: block; margin-top: 3px; color: var(--tx-3); font-size: 12.5px; line-height: 1.45; }
.route > .icon { width: 15px; height: 15px; color: var(--tx-3); transition: transform .3s var(--ease); }
.route:hover > .icon { color: var(--blue); transform: translateX(3px); }

/* ── PAINEL DE FORMULÁRIO ───────────────────────────────── */
.form-panel {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.form-panel h3 { margin-bottom: 6px; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.form-panel > p { margin-bottom: 24px; color: var(--tx-3); font-size: 13.5px; }
.form-grid { display: grid; gap: 16px; }
.form-grid__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-panel .field input, .form-panel .field textarea, .form-panel .field select { background: var(--bg-raise); }
.field select {
  width: 100%;
  padding: 13px 38px 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236E7C93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 6.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-repeat: no-repeat;
  background-size: 15px;
  color: var(--tx);
  font-size: 14.5px;
  outline: 0;
  appearance: none;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }

/* ── RESPONSIVO ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .modules { grid-template-columns: repeat(min(var(--module-cols, 5), 3), minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works > .work--wide { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; gap: 6px; }
  .offer__price { grid-area: auto; text-align: left; }
  .offer__price span { display: inline; }
  .offer__price strong { margin-left: 6px; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
  .works > .work--wide { grid-column: auto; }
  .quotes { grid-template-columns: 1fr; }
  .quote, .quote:first-child, .quote:last-child { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .quote:last-child { border-bottom: 0; }
  .compare { grid-template-columns: 1fr; }
  .compare__col { padding: 26px 0 8px; }
  .compare__col + .compare__col { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 8px; }
  .form-grid__row { grid-template-columns: 1fr; }
  .faq summary { font-size: 15px; gap: 16px; }
}

@media (max-width: 420px) {
  .modules { grid-template-columns: 1fr; }
}
