/* ============================================================================
   SOPHYA — ESTILOS DAS PÁGINAS DE FUNCIONALIDADES (SEO & GEO / AI SEARCH)
   Design System: Bootstrap 5 + CSS Puro (Zero TailwindCSS)
   ============================================================================ */

:root {
  --sophya-primary: #667eea;
  --sophya-primary-dark: #764ba2;
  --sophya-indigo: #4f46e5;
  --sophya-dark: #0f172a;
  --sophya-slate: #334155;
  --sophya-muted: #475569;
  --sophya-bg: #f8fafc;
  --sophya-border: #e2e8f0;
  --sophya-success: #16a34a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: #1e293b;
  background-color: var(--sophya-bg);
  overflow-x: hidden;
  margin: 0;
}

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.sticky-header .nav-link {
  color: #334155;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  transition: color 0.2s ease;
}

.sticky-header .nav-link:hover,
.sticky-header .nav-link.active {
  color: var(--sophya-indigo);
}

/* Hero Section */
.seo-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #667eea 45%, #764ba2 100%);
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.seo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.seo-hero-content {
  position: relative;
  z-index: 2;
}

.seo-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.65);
}

.seo-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.seo-hero .breadcrumb-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.seo-hero .breadcrumb-item.active {
  color: #ffffff;
  font-weight: 600;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-radius: 50px;
  padding: 0.35rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.seo-hero h1 {
  font-size: clamp(1.95rem, 3.3vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.seo-hero .lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
}

.hero-summary-card {
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 1.75rem;
  color: #ffffff;
}

.hero-summary-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.9rem 0.75rem;
  text-align: center;
  height: 100%;
}

.hero-summary-stat .stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.hero-summary-stat .stat-lbl {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.2rem;
  display: block;
}

/* Botões Hero & CTA */
.btn-cta {
  background: #ffffff;
  color: var(--sophya-indigo);
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  color: #312e81;
}

.btn-secondary-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: 0.85rem 1.85rem;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 50px;
  transition: background-color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Bloco Resposta Direta (GEO / AI Overviews Ready) */
.geo-answer-box {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-left: 5px solid var(--sophya-indigo);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.08);
}

.geo-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sophya-indigo);
  margin-bottom: 0.4rem;
}

/* Seções de conteúdo */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(79, 70, 229, 0.1);
  color: var(--sophya-indigo);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.95rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}

.problem-section {
  background: #ffffff;
  border: 1px solid var(--sophya-border);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.problem-section p {
  color: var(--sophya-slate);
  font-size: 1.03rem;
  margin-bottom: 1rem;
}

.problem-section p:last-child {
  margin-bottom: 0;
}

/* Lista numerada de como resolver na prática */
.practice-list {
  display: grid;
  gap: 1rem;
}

.practice-step-card {
  background: #ffffff;
  border: 1px solid var(--sophya-border);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.step-number {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sophya-primary), var(--sophya-primary-dark));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Conformidade e Leis */
.compliance-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--sophya-primary);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  height: 100%;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.compliance-card .legal-norma {
  font-weight: 700;
  color: #312e81;
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.28);
  color: #4338ca;
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Cards de solução do Sophya */
.solution-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.85rem;
  border: 1px solid var(--sophya-border);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.12);
  border-color: #a5b4fc;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sophya-primary), var(--sophya-primary-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.28);
  margin-bottom: 1.1rem;
}

/* Tabela comparativa */
.comparison-table-wrap {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--sophya-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.comparison-table th {
  background-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 1.25rem;
  border: none;
  font-size: 0.95rem;
}

.comparison-table td {
  padding: 1rem 1.25rem;
  vertical-align: top;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.95rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Transparência de Planos */
.plan-transparency-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-left: 5px solid var(--sophya-success);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
  border: 1px solid var(--sophya-border);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 0.9rem;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  padding: 1.15rem 1.35rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: #eef2ff;
  color: #312e81;
  box-shadow: none;
}

.faq-accordion .accordion-body {
  color: #334155;
  padding: 1.1rem 1.35rem 1.35rem;
}

/* Links relacionados & Hub */
.related-card {
  background: #ffffff;
  border: 1px solid var(--sophya-border);
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--sophya-primary);
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.12);
}

/* CTA Final */
.cta-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 55%, #764ba2 100%);
  padding: 4.5rem 0;
  color: #ffffff;
}

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  z-index: 1020;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  color: #ffffff;
}

/* Footer */
.seo-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  padding: 3.5rem 0 2rem;
}

.seo-footer a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Hub de Funcionalidades (/funcionalidades) */
.hub-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  border-radius: 50px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hub-filter-pill:hover {
  border-color: var(--sophya-indigo);
  color: var(--sophya-indigo);
  background: #eef2ff;
}

@media (max-width: 768px) {
  .seo-hero {
    padding: 2.75rem 0 3rem;
  }
  .problem-section {
    padding: 1.35rem 1.25rem;
  }
  .cta-section {
    padding: 3.25rem 0;
  }
}
