/*
  ARKHION Advisors — casos.css
  CSS autossuficiente para todas as páginas de CASOS.
  Carrega junto com global.css — não duplica o que está lá
  (variáveis, reset, tipografia base, nav, footer, botões, seções, scan/diag).

  LINK NAS PÁGINAS DE CASOS:
  <link rel="stylesheet" href="/css/global.css">
  <link rel="stylesheet" href="/css/casos.css">
*/


/* ═══════════════════════════════════════════════════════
   1. HERO
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 48vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  background-color: #f7f5f2;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #f7f5f2; }
.hero-grid-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-grid-overlay img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 72%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 72%);
}
.col-left {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 72px 48px 72px; max-width: 680px;
}
.hero-title {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(1.75rem, 2.4vw, 2.2rem);
  font-weight: 400; line-height: 1.22; letter-spacing: -0.02em;
  color: var(--light-title); margin-bottom: 18px;
  animation: fadeUp .6s .25s ease both;
}
.hero-title em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-sub {
  font-size: 17px; color: var(--light-muted);
  line-height: 1.75; max-width: 520px; font-weight: 400;
  animation: fadeUp .6s .35s ease both;
}
.hero-fw-bar {
  position: relative; z-index: 3;
  padding: 14px 72px 20px;
  background: rgba(3,51,51,.05);
}
.hero-fw-bar::before {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, rgba(200,146,10,0), rgba(200,146,10,0.6), rgba(200,146,10,0.9), rgba(200,146,10,0.6), rgba(200,146,10,0));
}
.hero-frameworks {
  display: flex; align-items: center; flex-wrap: wrap;
  font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--light-muted); white-space: normal;
}
.fw-label-text { color: var(--light-muted); font-weight: 400; }
.hero-frameworks span:not(.fw-label-text):not(.fw-sep) { color: var(--gold); font-weight: 500; }
.fw-sep { color: rgba(3,51,51,.3); margin: 0 10px; }


/* ═══════════════════════════════════════════════════════
   2. LAYOUT 3 COLUNAS
═══════════════════════════════════════════════════════ */
.page-body {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 0; align-items: start;
}


/* ═══════════════════════════════════════════════════════
   3. COLUNA ESQUERDA — SIDEBAR DE CASOS
═══════════════════════════════════════════════════════ */
.col-index {
  padding: 40px 28px 40px 28px;
  border-right: 0.5px solid var(--light-border);
  background: var(--light-bg1);
}
.index-label {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 24px; padding: 0 15px;
  display: flex; flex-direction: column; gap: 8px;
}
.index-label::before { content: ""; display: block; width: 24px; height: 1px; background: var(--gold); }
.case-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.case-item {
  display: flex; flex-direction: column;
  padding: 11px 15px; cursor: pointer;
  transition: all .2s ease; position: relative;
}
.case-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform .25s ease;
}
.case-item:hover::before,
.case-item.active::before { transform: scaleY(1); }
.case-item:hover .case-title { color: var(--light-title); }
.case-item.active .case-title { color: var(--brand); font-weight: 600; }
.case-item.active .case-num { color: var(--gold); }
.case-num {
  font-family: "IBM Plex Serif", serif; font-size: 0.95rem;
  font-weight: 500; color: rgba(3,51,51,.45);
  line-height: 1; letter-spacing: .08em;
  align-self: flex-end; margin-bottom: 8px; transition: color .2s;
}
.case-info { display: flex; flex-direction: column; gap: 3px; padding-left: 5px; }
.case-title { font-size: 16px; font-weight: 500; color: var(--light-muted); line-height: 1.3; transition: color .2s; }
.case-meta { font-size: 13px; color: rgba(3,51,51,.55); letter-spacing: .03em; }


/* ═══════════════════════════════════════════════════════
   4. COLUNA CENTRAL — CONTEÚDO DO ARTIGO
═══════════════════════════════════════════════════════ */
.col-content {
  padding: 48px 52px 80px 52px;
  border-right: 1px solid var(--light-border);
  min-height: 80vh; min-width: 0;
}

/* Barra de compartilhamento */
.action-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: var(--light-muted); background: none;
  border: 1px solid rgba(3,51,51,.15); border-radius: 3px;
  cursor: pointer; text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
  position: relative;
}
.action-btn:hover { color: var(--brand); border-color: var(--gold); background: rgba(200,146,10,.05); }
.action-btn::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: #022222; color: #fff;
  font-size: 10px; letter-spacing: .06em; white-space: nowrap;
  padding: 4px 8px; border-radius: 3px;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.action-btn:hover::after { opacity: 1; }

/* Conteúdo editorial */
.content-micro {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.content-micro::before {
  content: ""; width: 18px; height: 1px;
  background: var(--gold); opacity: .7; flex-shrink: 0;
}
.content-title {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500; color: var(--light-title);
  line-height: 1.28; margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-border);
}
.content-title em { font-style: italic; color: var(--gold); }
.content-section { margin-bottom: 0; }
.content-section p {
  font-size: 17px; color: var(--light-body);
  line-height: 1.78; font-weight: 400; margin-bottom: 14px;
}
.content-section p:last-child { margin-bottom: 0; }
.content-section-title {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.content-divider { margin: 28px 0; height: 1px; background: var(--light-border); }
.content-sources {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--light-border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.content-sources-label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--light-muted); font-weight: 600; margin-right: 4px;
}
.content-sources a {
  font-size: 13px; color: var(--light-muted);
  text-decoration: none; border-bottom: 1px solid rgba(3,51,51,.15);
  transition: color .2s, border-color .2s;
}
.content-sources a:hover { color: var(--gold); border-color: var(--gold); }
.src-sep { color: rgba(3,51,51,.25); font-size: 13px; }


/* ═══════════════════════════════════════════════════════
   5. COLUNA DIREITA — IMPACTO
═══════════════════════════════════════════════════════ */
.col-impact { padding: 40px 24px 48px 28px; background: var(--light-bg1); }
.impact-box { display: flex; flex-direction: column; gap: 0; }
.impact-box-title {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--gold);
}
.impact-row {
  padding: 14px 0; border-bottom: 1px solid var(--light-border);
  display: flex; flex-direction: column; gap: 4px;
}
.impact-row:last-child { border-bottom: none; }
.impact-row-label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--light-muted); font-weight: 600;
}
.impact-row-value { font-size: 14px; color: var(--light-body); line-height: 1.6; font-weight: 400; }


/* ═══════════════════════════════════════════════════════
   6. SCAN WRAP
═══════════════════════════════════════════════════════ */
.casos-scan-wrap {
  padding: 48px 72px;
  background: var(--light-bg2);
  border-top: 2px solid var(--gold);
}


/* ═══════════════════════════════════════════════════════
   7. PRINT
═══════════════════════════════════════════════════════ */
.print-footer { display: none; }
@media print {
  .print-footer { display: block; margin-top: 32pt; padding-top: 8pt; border-top: 0.5pt solid #ccc; font-size: 8pt; color: #888; line-height: 1.6; }
  nav, .hero, .col-index, .col-impact, .action-bar, .casos-scan-wrap, footer { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .page-body { display: block; }
  .col-content { padding: 0; border: none; }
  .content-section p { font-size: 11pt; line-height: 1.7; }
  .content-title { font-size: 14pt; border-bottom: 1pt solid #ccc; }
  .content-sources { border-top: 1pt solid #ccc; font-size: 9pt; }
  .content-sources a { color: #000; text-decoration: none; }
}


/* ═══════════════════════════════════════════════════════
   8. RESPONSIVO
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .col-left { padding: 104px 32px 48px; }
  .hero-fw-bar { padding: 14px 32px 18px; }
  .page-body { grid-template-columns: 1fr; }
  .col-index { padding: 24px 32px; border-right: none; border-bottom: 0.5px solid var(--light-border); }
  .case-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .case-item { min-width: 140px; flex-shrink: 0; border-bottom: none; border-right: 0.5px solid rgba(3,51,51,.06); padding: 10px 16px; }
  .case-item::before { top: auto; left: 0; right: 0; bottom: -1px; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; }
  .case-item:hover::before, .case-item.active::before { transform: scaleX(1); }
  .col-content { padding: 36px 32px 60px; border-right: none; }
  .col-impact { padding: 28px 32px 48px; }
  .casos-scan-wrap { padding: 40px 32px; }
}
@media (max-width: 640px) {
  .col-left { padding: 100px 20px 40px; }
  .hero-title { font-size: clamp(1.4rem, 7vw, 1.8rem); }
  .hero-sub { font-size: 15px; }
  .hero-fw-bar { padding: 12px 20px 14px; }
  .col-index { padding: 20px; }
  .col-content { padding: 28px 20px 48px; }
  .col-impact { padding: 20px; }
  .casos-scan-wrap { padding: 32px 20px; }
}
