/* ==========================================================================
   Central de Ajuda Comercial — Casa Caracol & Sonata (Domvs Care)
   Design System Oficial para Equipe (Recepção, Fonoaudiologia e Terapias)
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #ccfbf1;
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-light: #ede9fe;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --navy-dark: #0f172a;
  --navy-slate: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1220px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Cabeçalho Institucional & Navegação entre Áreas
   ========================================================================== */

.site-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-dark);
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 55%, #f59e0b 100%);
  color: #ffffff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-brand {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0.15rem;
}

/* Seletor das 3 Áreas */
.area-selector {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  padding: 0.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.84rem;
  gap: 0.2rem;
}

.area-btn {
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.area-btn:hover {
  color: var(--navy-dark);
  background-color: rgba(255, 255, 255, 0.6);
}

.area-btn.active {
  background-color: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.area-btn.active-teal {
  background-color: #ffffff;
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}

.area-btn.active-purple {
  background-color: #ffffff;
  color: var(--purple-dark);
  box-shadow: var(--shadow-sm);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.header-nav a {
  transition: color 0.15s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
}

.btn-system-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy-dark);
  color: #ffffff !important;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-system-link:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section & Busca Inteligente
   ========================================================================== */

.hero-section {
  background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #ffffff 55%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3.25rem 1.5rem 2.75rem;
  text-align: center;
}

.hero-section.hero-recepcao {
  background: radial-gradient(circle at 50% 0%, #e0f2fe 0%, #ffffff 60%, var(--bg-body) 100%);
}

.hero-section.hero-fono {
  background: radial-gradient(circle at 50% 0%, #ccfbf1 0%, #ffffff 60%, var(--bg-body) 100%);
}

.hero-section.hero-terapias {
  background: radial-gradient(circle at 50% 0%, #ede9fe 0%, #ffffff 60%, var(--bg-body) 100%);
}

.hero-container {
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  margin-bottom: 0.9rem;
}

.hero-eyebrow.teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.hero-eyebrow.purple {
  background: var(--purple-light);
  color: var(--purple-dark);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.95rem 1.25rem 0.95rem 3rem;
  font-size: 0.98rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  outline: none;
  transition: all 0.2s ease;
  color: var(--navy-dark);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 25px;
  transform: translateY(-50%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-live-results {
  max-width: 680px;
  margin: 0.85rem auto 0;
  background: #ffffff;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: left;
  overflow: hidden;
  display: none;
}

.search-live-results.active {
  display: block;
}

.search-live-header {
  padding: 0.55rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-live-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
  text-decoration: none;
}

.search-live-item:last-child {
  border-bottom: none;
}

.search-live-item:hover {
  background: #f0f9ff;
}

.search-live-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.search-live-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.search-live-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-live-item-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.78rem;
}

.search-tag {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.search-tag:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #ffffff;
}

/* ==========================================================================
   Seções da Home & Cards das 3 Áreas Principais
   ========================================================================== */

.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
  width: 100%;
}

.section-header {
  margin-bottom: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.area-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.area-card.card-fono::before {
  background: var(--teal);
}

.area-card.card-terapias::before {
  background: var(--purple);
}

.area-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.area-card.card-fono:hover {
  border-color: var(--teal);
}

.area-card.card-terapias:hover {
  border-color: var(--purple);
}

.area-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.area-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-card-icon.fono {
  background-color: var(--teal-light);
  color: var(--teal-dark);
}

.area-card-icon.terapias {
  background-color: var(--purple-light);
  color: var(--purple-dark);
}

.area-number {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.area-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.45rem;
}

.area-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.area-card-topics {
  list-style: none;
  margin-bottom: 1.4rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.area-card-topics li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: block;
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
}

.area-card-topics li::before {
  content: "•";
  color: var(--primary);
  font-weight: 800;
  position: absolute;
  left: 0;
  top: 0;
}

.area-card.card-fono .area-card-topics li::before {
  color: var(--teal);
}

.area-card.card-terapias .area-card-topics li::before {
  color: var(--purple);
}

.area-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.area-card.card-fono .area-card-link {
  color: var(--teal-dark);
}

.area-card.card-terapias .area-card-link {
  color: var(--purple-dark);
}

/* ==========================================================================
   Cards de Acesso Rápido & Fluxo Operacional
   ========================================================================== */

.start-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.start-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
}

.start-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.start-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.code-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  background: var(--primary-light);
  color: var(--primary-dark);
  letter-spacing: 0.03em;
}

.code-pill.fono {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.code-pill.terapias {
  background: var(--purple-light);
  color: var(--purple-dark);
}

.start-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.35;
}

.start-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Fluxo Operacional em 4 Etapas */
.workflow-strip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.workflow-step {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  position: relative;
}

.workflow-step-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: var(--navy-dark);
  color: #ffffff;
  margin-bottom: 0.55rem;
}

.workflow-step h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
}

.workflow-step p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Layout de Documentação das Áreas (Sidebar + Guia Passo a Passo)
   ========================================================================== */

.doc-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 2.25rem;
  width: 100%;
  flex: 1;
}

.doc-sidebar {
  position: sticky;
  top: 82px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.doc-sidebar-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-color);
}

.doc-nav-group {
  margin-bottom: 1.1rem;
}

.doc-nav-group:last-child {
  margin-bottom: 0;
}

.doc-nav-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  padding-left: 0.5rem;
}

.doc-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.doc-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s ease;
  line-height: 1.3;
}

.doc-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.doc-nav-link.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.doc-nav-code {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  background: #e2e8f0;
  color: var(--navy-slate);
  flex-shrink: 0;
}

.doc-nav-link:hover .doc-nav-code,
.doc-nav-link.active .doc-nav-code {
  background: var(--primary);
  color: #ffffff;
}

.doc-main {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  min-width: 0;
}

/* ==========================================================================
   Cards de Artigo / Procedimento Operacional (.guide-card)
   ========================================================================== */

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: 90px;
}

.guide-card-header {
  padding: 1.35rem 1.75rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.guide-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.guide-code {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  letter-spacing: 0.03em;
}

.guide-code.fono {
  background: var(--teal);
}

.guide-code.terapias {
  background: var(--purple);
}

.guide-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.3;
}

.guide-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-critico {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-essencial {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-rotina {
  background: var(--success-light);
  color: var(--success);
}

.badge-atencao {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-clinico {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.badge-terapia {
  background: var(--purple-light);
  color: var(--purple-dark);
}

.guide-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.guide-summary {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.65;
}

/* Listas de Passo a Passo Numeradas */
.step-list {
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  color: var(--text-main);
  line-height: 1.55;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list.fono li::before {
  background: var(--teal);
}

.step-list.terapias li::before {
  background: var(--purple);
}

/* ==========================================================================
   Callouts / Regras de Ouro da Casa Caracol
   ========================================================================== */

.callout-box {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  border-left-width: 5px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.callout-title {
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  display: block;
}

.callout-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  border-left-color: #e11d48;
  color: #881337;
}

.callout-danger .callout-title {
  color: #9f1239;
}

.callout-warning {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
  color: #78350f;
}

.callout-warning .callout-title {
  color: #92400e;
}

.callout-info {
  background: #f0f9ff;
  border-color: #bae6fd;
  border-left-color: #0284c7;
  color: #0c4a6e;
}

.callout-info .callout-title {
  color: #0369a1;
}

.callout-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #16a34a;
  color: #14532d;
}

.callout-success .callout-title {
  color: #166534;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-tile {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.info-tile h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
}

.info-tile p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Screenshots Reais do Domus Care & Mockups Interativos
   ========================================================================== */

.screenshot-frame {
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-dark);
  box-shadow: var(--shadow-md);
}

.screenshot-topbar {
  background: var(--navy-slate);
  color: #cbd5e1;
  padding: 0.55rem 1rem;
  font-size: 0.76rem;
  font-family: monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.screenshot-topbar .status-dot {
  color: #4ade80;
  font-weight: 700;
}

.screenshot-img-wrap {
  background: #ffffff;
  padding: 0.5rem;
  text-align: center;
  cursor: zoom-in;
}

.screenshot-img-wrap img {
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.screenshot-caption {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* Mockup de Interface do Sistema */
.ui-mockup {
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  background: #f8fafc;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ui-mockup-header {
  background: var(--navy-slate);
  color: #e2e8f0;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-mockup-body {
  padding: 1.25rem;
  background: #ffffff;
}

.ui-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.ui-tab-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  background: #f1f5f9;
}

.ui-tab-pill.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #7dd3fc;
}

/* Tabelas Operacionais */
.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #ffffff;
}

.doc-table th {
  background: #f1f5f9;
  color: var(--navy-dark);
  font-weight: 800;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.doc-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: top;
}

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

/* ==========================================================================
   FAQ Accordion & Lightbox de Imagens
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.2rem;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.9rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Modal Lightbox para ampliar prints */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: #ffffff;
}

/* ==========================================================================
   Rodapé Institucional
   ========================================================================== */

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 2.25rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */

@media (max-width: 980px) {
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
    max-height: none;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .area-selector {
    width: 100%;
    overflow-x: auto;
  }
}

