/* ================================================================
   Orientações aos Pacientes
   Estilos exclusivos da página-índice e das páginas de orientação
   (hipertensão, diabetes, dislipidemia). Carregado JUNTO com
   styles.css — reaproveita as variáveis definidas em :root lá
   (--navy, --teal, --gold, --aqua etc.) e só define o que é
   específico destas páginas: breadcrumb, hero interna, ações de
   impressão/download, caixas de alerta, figuras/SVGs e o layout
   de impressão em A4.
   ================================================================ */

:root {
  --alert: #b5524a;
  --alert-bg: #f7e9e7;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  padding: 16px clamp(20px, 5vw, 72px) 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-body);
}

.breadcrumb a { color: var(--navy-2); font-weight: 650; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--muted); }

/* ---------- Hero interna ---------- */

.orientacoes-hero {
  max-width: 880px;
  padding: 32px clamp(20px, 5vw, 72px) 8px;
}

.orientacoes-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.015em;
}

.orientacoes-hero .lead { margin: 18px 0 0; }

.orientacoes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.orientacoes-disclaimer {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Índice (grid de condições) ---------- */

.orientacoes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0 clamp(20px, 5vw, 72px);
  max-width: 1100px;
  margin: 44px auto 90px;
}

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

.orientacoes-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.orientacoes-card p { min-height: 0; }

.orientacoes-card p.orientacoes-card-cta {
  margin-top: auto;
  padding-top: 16px;
  margin-bottom: 0;
}

/* ---------- Seções de conteúdo ---------- */

.orientacoes-section {
  max-width: 800px;
  margin: 56px auto 0;
  padding: 0 clamp(20px, 5vw, 72px);
}

.orientacoes-section:last-of-type { margin-bottom: 64px; }

.orientacoes-section h2 {
  font-size: clamp(25px, 3vw, 32px);
  margin: 0 0 18px;
}

.orientacoes-section h3 {
  font-size: 19px;
  margin: 24px 0 10px;
}

.orientacoes-section p {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.75;
  font-family: var(--font-body);
}

.orientacoes-section ul,
.orientacoes-section ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.75;
  font-family: var(--font-body);
}

.orientacoes-section li { margin-bottom: 8px; }

.orientacoes-section li:last-child { margin-bottom: 0; }

/* ---------- Figuras (SVGs ilustrativos) ---------- */

.orientacoes-figure {
  margin: 26px 0;
  padding: 26px clamp(16px, 4vw, 30px);
  background: var(--white);
  border: 1px solid rgba(15, 47, 58, 0.08);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(15, 47, 58, 0.06);
}

.orientacoes-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.orientacoes-figure figcaption {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.orientacoes-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 18px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
}

.orientacoes-legend li { display: flex; align-items: flex-start; gap: 9px; margin: 0; }

.legend-dot {
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border-radius: 4px;
}

/* Figura de comparação lado a lado (ex.: prato / artérias) */
.orientacoes-figure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.orientacoes-figure-row .orientacoes-figure-visual { flex: 1 1 260px; max-width: 320px; margin: 0 auto; }

.orientacoes-figure-row .orientacoes-figure-visual svg { width: 100%; height: auto; }

/* ---------- Linha de ícones (ex.: tipos de atividade física) ---------- */

.orientacoes-icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

.orientacoes-icon-row .icon-item { flex: 1 1 150px; max-width: 170px; }

.orientacoes-icon-row .icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
}

.orientacoes-icon-row .icon-badge svg { width: 32px; height: 32px; }

.orientacoes-icon-row .icon-item-label {
  display: block;
  font-weight: 750;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 4px;
}

.orientacoes-icon-row .icon-item-desc {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Caixa de alerta ---------- */

.alert-box {
  background: var(--alert-bg);
  border: 1.5px solid var(--alert);
  border-radius: 18px;
  padding: 24px 26px;
  margin: 20px 0;
}

.alert-box h3 {
  margin: 0 0 12px;
  color: var(--alert);
  font-size: 19px;
}

.alert-box ul { margin: 0; }
.alert-box p:last-child { margin-bottom: 0; }

/* ---------- Tabela de metas ---------- */

.orientacoes-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 15px;
  font-family: var(--font-body);
}

.orientacoes-table th,
.orientacoes-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 47, 58, 0.1);
}

.orientacoes-table th {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.orientacoes-table td { color: var(--text); }

/* ---------- Rodapé de impressão (só aparece no PDF/impressão) ---------- */

.orientacoes-print-footer { display: none; }

/* ---------- Responsivo ---------- */

@media (max-width: 620px) {
  .orientacoes-grid { margin-bottom: 60px; }
  .orientacoes-actions { flex-direction: column; }
  .orientacoes-actions .btn { width: 100%; }
}

/* ---------- Impressão em A4 ---------- */

@media print {
  @page { size: A4; margin: 1.6cm; }

  .site-header,
  .breadcrumb,
  .footer,
  .orientacoes-actions,
  .skip-link,
  .pulse-ambient { display: none !important; }

  body::before { display: none !important; }

  [data-reveal] { opacity: 1 !important; transform: none !important; }

  body { background: #fff; }

  .orientacoes-hero { padding-top: 0; }

  .orientacoes-section,
  .orientacoes-figure,
  .alert-box,
  table,
  tr { break-inside: avoid; }

  h1, h2, h3 { break-after: avoid; }

  a[href]::after { content: ""; }

  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .orientacoes-print-footer {
    display: block !important;
    margin-top: 40px;
    padding: 16px clamp(20px, 5vw, 72px) 0;
    border-top: 1px solid rgba(15, 47, 58, 0.2);
    font-size: 12px;
    color: var(--muted);
  }
}
