/* ==========================================================================
    RFOSites — Programmatic SEO (niche landing + hubs)

    DEVE ser carregado DEPOIS de style.css: aqui só entram os componentes
    exclusivos das páginas pSEO, sempre consumindo os tokens da marca
    definidos em style.css (:root). Nenhuma cor, fonte ou raio é escrito
    literalmente — se a marca mudar, style.css propaga sozinho.

    Contexto: estas páginas não têm o header fixo do site principal, então
    o .hero herdado (min-height:90vh + offset de --header-h) é sobrescrito
    abaixo para o layout sem navegação.
   ========================================================================== */

/* ---------- Hero sem header ---------- */
.hero {
  min-height: 0;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  text-align: center;
  background:
    radial-gradient(120% 100% at 50% 0%, var(--hero-b) 0%, transparent 60%),
    radial-gradient(100% 80% at 50% 100%, var(--hero-a) 0%, transparent 65%),
    var(--bg);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}
.hero .lead {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0 auto 2rem;
}
.hero .breadcrumb { margin-bottom: 1.25rem; }
.hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 2.5rem auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* ---------- Botões ---------- */
.btn-whatsapp {
  background: #25D366;
  color: #0F1115;
  font-weight: 600;
}
.btn-whatsapp:hover { background: #1ebd5a; color: #0F1115; }
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Cabeçalho de seção ---------- */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.625rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- Introdução ---------- */
.intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 78ch;
  margin: 0 auto 3rem;
  text-align: center;
}
.intro-narrow {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}
.center-top { text-align: center; margin-top: 2rem; }
.center-block { text-align: center; }

/* Botão secundário com contorno — usado em "Mostrar mais cidades" */
.btn--ghost-alt {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--line-glow);
}
.btn--ghost-alt:hover {
  background: var(--grad-soft);
  border-color: var(--cyan);
  color: var(--text);
}

/* ---------- Cartões de conteúdo ---------- */
.features-grid,
.related-grid,
.investimento-prazo,
.categories-grid,
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}
.feature-card,
.ip-card,
.related-card,
.cat-card,
.city-card {
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-card:hover,
.ip-card:hover,
.related-card:hover,
.cat-card:hover,
.city-card:hover {
  border-color: var(--line-glow);
  transform: translateY(-3px);
}
.feature-card h3,
.ip-card h3,
.related-card h3,
.cat-card h3,
.city-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.feature-card p,
.cat-card p,
.city-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.cat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.875rem;
  border-radius: var(--radius);
  background: var(--grad-soft);
  border: 1px solid var(--line-glow);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
}
.city-card .state {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Dores ---------- */
.dores {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.dores-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.dor-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
}
.dor-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4375rem;
}
.dor-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- Processo ---------- */
.processo { background: var(--bg-alt); }
.processo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: pstep;
}
.step {
  position: relative;
  text-align: center;
  padding: 2.25rem 1.5rem 1.75rem;
  background: var(--card-grad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step::before {
  content: attr(data-num);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--grad);
  color: #FFFFFF;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4375rem;
}
.step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---------- Investimento & prazo ---------- */
.ip-card { text-align: center; }
.ip-card .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ip-card ul {
  list-style: none;
  text-align: left;
  margin-top: 1.125rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.9;
}
.ip-card li::before {
  content: "\2713";
  color: #25D366;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 0; }
.faq-question {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.625rem;
}
.faq-question::before {
  content: "Q";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--grad);
  color: #FFFFFF;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.faq-answer {
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 2.25rem;
}

/* ---------- Depoimento ---------- */
.testimonial {
  background: var(--grad-soft);
  border: 1px solid var(--line-glow);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  margin-block: 2rem;
}
.testimonial blockquote {
  font-size: clamp(1.0625rem, 2.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--text);
  margin: 0 auto 1.25rem;
  max-width: 74ch;
}
.testimonial cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ---------- Relacionados ---------- */
.related { background: var(--bg-alt); }
.related-card ul { list-style: none; }
.related-card li { line-height: 2; }
.related-card a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.related-card a:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(110% 100% at 50% 0%, var(--hero-b) 0%, transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.cta p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 auto 2rem;
}

/* ---------- Rodapé ---------- */
.pseo-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.875rem;
}
.pseo-footer .brand {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.pseo-footer nav { margin-bottom: 1.25rem; }
.pseo-footer a {
  color: var(--text-dim);
  text-decoration: none;
  margin-inline: 0.25rem;
  transition: color 0.2s var(--ease);
}
.pseo-footer a:hover { color: var(--cyan); }

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
  .hero { padding-top: 2.5rem; padding-bottom: 3rem; }
  .section-header { margin-bottom: 2rem; }
  .faq-answer { padding-left: 0; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { width: 100%; text-align: center; }
}
