/* ============================================================
   geo-local.css  ·  v2.9.0 (design tokens adoption)
   UX/CX comercial das 3 páginas geo-locais Fortaleza/CE.
   Aplicado em: data-page-type^="geo-local"
   ------------------------------------------------------------
   Estratégia:
   - Hero comercial com gradient sutil e badges acima da dobra
   - Breadcrumb visual (schema já existe, faltava no DOM visível)
   - Cidades em grid de chips (era UL densa)
   - Setores em grid 3-col com ícones FA contextuais
   - FAQ accordion (era duplicação visual schema+HTML)
   - CTAs intermediários + sticky CTA mobile
   - Tipografia comercial (left-align, line-height confortável)
   ------------------------------------------------------------
   v2.9.0: cores de marca migradas para tokens (var(--color-brand)).
   Demais hex (cinzas neutros do tema) preservados — refator gradual.
   ============================================================ */

/* ---------- Reset escopado pra geo-local ---------- */
[data-page-type^="geo-local"] main {
  background: #fff;
}

/* Texto base — left align (era justify herdado do tema) */
[data-page-type^="geo-local"] main p {
  text-align: left;
  line-height: 1.7;
  color: #2c3e50;
}

[data-page-type^="geo-local"] main ul,
[data-page-type^="geo-local"] main ol {
  line-height: 1.8;
  color: #2c3e50;
}

[data-page-type^="geo-local"] main h2 {
  color: var(--color-text);
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 20px;
  line-height: 1.3;
}

[data-page-type^="geo-local"] main h3 {
  color: var(--color-text);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.3;
}

/* ---------- Breadcrumb visual ---------- */
.geo-breadcrumb {
  padding: 14px 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.geo-breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.geo-breadcrumb-list li {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.geo-breadcrumb-list li + li::before {
  content: "›";
  margin-right: 8px;
  color: #adb5bd;
  font-size: 16px;
}

.geo-breadcrumb-list a {
  color: var(--color-brand);
  text-decoration: none;
}

.geo-breadcrumb-list a:hover {
  text-decoration: underline;
}

.geo-breadcrumb-list li[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- Hero comercial ---------- */
.geo-hero {
  background: linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--color-border);
}

.geo-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.geo-hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand);
  margin-bottom: 14px;
}

.geo-hero h1 {
  font-size: 38px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
}

.geo-hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 28px;
  max-width: 720px;
}

.geo-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.geo-badge i,
.geo-badge .fa {
  color: var(--color-brand);
  font-size: 14px;
}

.geo-badge-rating {
  background: #fff8e6;
  border-color: #ffe5a0;
  color: #6b4f00;
}

.geo-badge-rating i {
  color: #f5a623;
}

/* ──────────────────────────────────────────────────────────────────────────
 * .cta-row — Componente padrão para linha de CTAs (v2.8.16)
 *
 * Escopo: substitui as classes ad-hoc .geo-hero-cta e .geo-final-cta-actions
 * com um componente reutilizável que pode ser usado em qualquer linha de
 * CTAs cross-site.
 *
 * Por que existe: o tema RD Rocketdash projetou .button como inline-block +
 * white-space:nowrap + min-width:140-200px — comportamento incompatível com
 * layout flex 50/50. Após 7 tentativas (v2.8.8 → v2.8.15) usando !important,
 * fica claro que o caminho certo é ISOLAR o componente CTA do tema, ao invés
 * de lutar com !important.
 *
 * Uso semântico (recomendado):
 *   <div class="cta-row">
 *     <a class="button button-primary button-md button-ujarak">...</a>
 *     <a class="button button-default-outline button-md button-ujarak">...</a>
 *   </div>
 *
 * O seletor `.cta-row > .button` tem specificity 0,2,0 — vence sem !important
 * o `.button` (0,1,0) e `.button-md` (0,1,0) do tema.
 *
 * Backward-compat: as classes legadas .geo-hero-cta e .geo-final-cta-actions
 * agora aplicam a classe .cta-row em paralelo (no HTML). Não precisa mais
 * de regras CSS separadas duplicando o comportamento.
 * ──────────────────────────────────────────────────────────────────────── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);            /* 12px — token */
  align-items: stretch;
  width: 100%;
}

.cta-row > .button {
  /* sobrescreve apenas o necessário do tema RD (sem !important) */
  flex: 1 1 240px;
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: var(--btn-min-height);    /* 52px — token semântico */
  margin: 0;                            /* zera margens herdadas (ver bloco abaixo) */
  padding: var(--btn-padding-y) var(--btn-padding-x);  /* 14px 20px — tokens */
  line-height: var(--btn-line-height);  /* 1.35 — token */
  white-space: normal;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  vertical-align: middle;
  font-weight: var(--btn-font-weight);  /* 600 — token */
}

/* O gap do flex cuida do espaçamento. O `margin: 0` acima já zera tudo, mas
 * mantemos este bloco (specificity 0,3,0) como defesa explícita contra o owl
 * do tema RD `* + .button { margin-top: 30px }` (0,1,0): no conteúdo do blog
 * ele aplicava 30px de margin-top SÓ no 2º botão, inflando a linha flex e
 * fazendo os botões renderizarem com alturas diferentes (1º esticava, 2º não). */
.cta-row > .button + .button {
  margin-top: 0;
  margin-left: 0;
}

@media (max-width: 575.98px) {        /* --bp-xs-max — canônico */
  .cta-row {
    flex-direction: column;
  }
  .cta-row > .button {
    flex-basis: auto;
  }
}

/* v2.15.2: removidas regras .geo-hero-cta + .geo-hero-cta-meta — bloco
 * HTML inteiro removido das 3 geo-locais. WhatsApp floating + header CTA
 * "Falar com especialista" + .geo-final-cta no fim cobrem a conversão.
 * .geo-final-cta-actions continua usando .cta-row diretamente. */

@media (max-width: 767px) {
  .geo-hero {
    padding: 36px 0 32px;
  }
  .geo-hero h1 {
    font-size: 26px;
    line-height: 1.25;
  }
  .geo-hero-lead {
    font-size: 16px;
  }
}

/* ---------- Grid de cidades ---------- */
.geo-cities {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.geo-cities-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.geo-cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.geo-cities-list li {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 14px;
  color: #2c3e50;
  font-weight: 500;
  transition: all .15s ease;
}

.geo-cities-list li.geo-cities-list-primary {
  background: #fff5f5;
  border-color: #ffd6d6;
  color: var(--color-brand);
  font-weight: 600;
}

/* ---------- Grid de setores ---------- */
.geo-sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.geo-sector-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .15s ease;
}

.geo-sector-card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 2px 8px rgba(204, 22, 22, 0.08);
}

.geo-sector-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fff5f5;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.geo-sector-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  margin: 0;
}

.geo-sector-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ---------- CTA intermediário inline (REMOVIDO em v2.8.7) ----------
 * Removido após feedback do usuário: contraste ruim na produção (texto que
 * deveria ser branco aparecia em cinza por cascata CSS imprevisível) +
 * redundância com hero CTA + WhatsApp floating + final CTA card.
 * UX simplificada: hero CTA acima da dobra + final CTA no fim da página +
 * WhatsApp floating cobrem todas as situações sem intermediário. */

/* ---------- FAQ Accordion ---------- */
.geo-faq {
  margin: 24px 0 36px;
}

.geo-faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.geo-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.4;
  font-family: inherit;
  transition: background .15s ease;
}

.geo-faq-question:hover {
  background: var(--color-bg-soft);
}

.geo-faq-question:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: -2px;
}

/* v2.13.0: `.geo-faq-icon` removida do HTML (era <span>+</span>).
 * Agora o `+` vem de `.accordion__trigger::after` (em components.css).
 * Rotação em `[open]` aplicada por `.accordion__item[open] .accordion__trigger::after`.
 * Regras `.geo-faq-icon` + `[data-open="true"]` removidas — eram dead code. */

/* v2.13.0: removida animação max-height-based em `.geo-faq-answer`.
 * Estrutura migrada para <details>/<summary> nativo (zero JS), que
 * usa display: none/block em filhos. Mantendo `max-height: 0` faria
 * o answer ficar invisível mesmo com <details open>. Show/hide é
 * instantâneo (UX trade-off aceito em troca de zero JS + a11y nativa). */

.geo-faq-answer-inner {
  padding: 4px 22px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.geo-faq-answer-inner p {
  margin: 0;
  text-align: left;
}

/* ---------- Sticky CTA mobile (REMOVIDO em v2.8.5) ----------
 * Decisão UX: WhatsApp floating cumpre o papel de CTA sempre acessível.
 * Sticky CTA mobile causava conflito visual com WA floating + inconsistência
 * (HTML/JS só funcionavam em geo-local/hub, mas HTML foi expandido em
 * products + blog na v2.8.3). Removido em v2.8.5. */

/* ---------- Final CTA card (refinamento do já existente) ---------- */
[data-page-type^="geo-local"] .geo-final-cta {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand);
  border-radius: 8px;
  padding: 32px;
  margin: 40px 0 20px;
}

[data-page-type^="geo-local"] .geo-final-cta h3 {
  margin-top: 0;
  font-size: 22px;
  color: var(--color-text);
}

[data-page-type^="geo-local"] .geo-final-cta p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 0 18px;
}

/* .geo-final-cta-actions delega 100% o layout dos botões pra .cta-row
 * (v2.8.16+). O espaçamento entre botões é o `gap` do flex; a igualdade
 * de largura vem do `flex: 1 1 240px`; a igualdade de altura vem do
 * `align-items: stretch`. Mantém só `margin: 0` pra anular o margin
 * default do elemento <p> que carrega as classes.
 *
 * NOTA (v2.15.x): removida a regra legada
 *   `.geo-final-cta .button + .button { margin-left: 10px }`
 * que tinha specificity 0,3,0 e vencia o `.cta-row > .button + .button
 * { margin-left: 0 }` (0,2,0) — ela injetava 10px assimétricos só no 2º
 * botão (outline), encolhendo-o e desalinhando os tamanhos. O mesmo vale
 * pras regras mobile de width/margin, agora cobertas pelo cta-row
 * (flex-direction: column em <=575.98px). */
[data-page-type^="geo-local"] .geo-final-cta-actions {
  margin: 0;
}

@media (max-width: 575px) {
  [data-page-type^="geo-local"] .geo-final-cta {
    padding: 24px;
  }
}

/* ---------- Related links polish ---------- */
[data-page-type^="geo-local"] .geo-related {
  background: var(--color-bg-soft);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 24px 0;
}

[data-page-type^="geo-local"] .geo-related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

[data-page-type^="geo-local"] .geo-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 24px;
}

[data-page-type^="geo-local"] .geo-related ul li {
  padding: 6px 0;
}

[data-page-type^="geo-local"] .geo-related a {
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 500;
}

[data-page-type^="geo-local"] .geo-related a:hover {
  text-decoration: underline;
}

/* v2.15.1: removidas regras .geo-mini-faq* (54 linhas) — feature P2-1
 * entregue em v2.6.0 e revertida em v2.6.1 (preços públicos não desejáveis).
 * HTML foi removido em v2.6.1 mas CSS ficou. Caso seja reintroduzido
 * (sem preços), recuperar via git history: git show v2.15.0:css/geo-local.css */

/* ---------- Dropdown "Soluções" divider (v2.8.6) ----------
 * Separador visual entre os 3 hubs verticais e as 3 geo-locais no dropdown
 * "Soluções" do header global. Usado em todas as 31 páginas. */
.rd-dropdown-divider {
  list-style: none;
  height: 1px;
  margin: 8px 14px;
  padding: 0;
  background-color: var(--color-border);
  pointer-events: none;
}
/* Mobile (rd-navbar-fixed colapsa o dropdown verticalmente) */
.rd-navbar-fixed .rd-dropdown-divider {
  margin: 6px 24px;
}
