/* ====================================================================
   Odyssey Systems · Extra styles (complementa sales.css)
   Usado em: /sobre, /casos, /insights, páginas funcionais
   ==================================================================== */

/* ── Mobile hamburger nav ──────────────────────────────────────────── */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(247,250,248,.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ice);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .sticky-bar { grid-template-columns: auto 1fr auto auto; }
  .sticky-bar nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 13, 16, 0.98);
    padding: 8px 0;
    border-bottom: 1px solid var(--line-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .sticky-bar nav.open {
    max-height: 400px;
  }
  .sticky-bar nav a {
    padding: 14px 28px;
    border-bottom: 1px solid rgba(247,250,248,.06);
  }
  .sticky-bar .cta-primary { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  /* descongestiona o header mobile: CTA em 1 linha, sem a seta decorativa */
  .sticky-bar .cta-primary svg:last-of-type { display: none; }
}

/* ── Manifesto grid (sobre) ────────────────────────────────────────── */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.manifesto-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.manifesto-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}
.manifesto-num {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 12px;
}
.manifesto-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}
.manifesto-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ── Two column layout (sobre - por que existimos) ────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.two-col h2 { font-size: clamp(28px, 3.4vw, 44px); }
.prose p {
  color: var(--steel);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.prose p strong { color: var(--ice); font-weight: 700; }
.prose p em { color: var(--cyan); font-style: normal; font-weight: 600; }

/* ── Team grid ─────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.team-photo {
  aspect-ratio: 1/1;
  background: var(--ice);
  position: relative;
  overflow: hidden;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 900;
  color: var(--cyan);
  background: var(--ink);
  opacity: .35;
}
.team-info { padding: 18px; }
.team-info h3 { font-size: 18px; margin-bottom: 2px; }
.team-role {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.team-info p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.team-card.placeholder .team-info h3 { color: var(--muted); }
.team-foot {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.team-foot a { color: var(--cyan); }

/* ── Commitments (sobre) ───────────────────────────────────────────── */
.commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.commit-card {
  padding: 24px;
  background: var(--graphite);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.commit-card strong {
  font-size: 22px;
  color: var(--cyan);
  font-weight: 800;
}
.commit-card span {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.5;
}

/* ── Timeline (sobre) ──────────────────────────────────────────────── */
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  padding-left: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 60px;
  top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), transparent);
}
.timeline > li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}
.timeline-year {
  color: var(--cyan);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 8px 0;
  position: relative;
}
.timeline-year::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 16px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0,230,176,.6);
}
.timeline > li > div {
  padding: 14px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--cyan);
}
.timeline > li.future > div { border-left-color: var(--muted); }
.timeline > li.future .timeline-year { color: var(--muted); }
.timeline > li.future .timeline-year::after { background: var(--muted); box-shadow: none; }
.timeline h3 { font-size: 18px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── Filter bar (casos) ─────────────────────────────────────────────── */
.filter-bar {
  background: var(--graphite);
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--ice);
}
.filter-bar .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 13px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(247,250,248,.2);
  color: var(--steel);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color .15s ease,
    border-color .15s ease,
    background-color .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
  font-family: inherit;
}
.filter-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.filter-pill.active {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
}

/* ── Cases grid full (página /casos) ──────────────────────────────── */
.cases-grid-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.case-full {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-full-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--graphite);
}
.case-full-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.case-pill {
  position: absolute;
  bottom: 12px; left: 12px;
  padding: 6px 12px;
  background: rgba(9,13,16,0.88);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.case-full-body { padding: 28px; }
.case-full-body h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.case-summary {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.case-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
}
.case-stats-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.case-stats-row strong {
  font-size: 22px;
  color: var(--cyan);
  font-weight: 800;
  line-height: 1;
}
.case-stats-row span {
  font-size: 11px;
  color: var(--muted);
}
.case-detail summary {
  list-style: none;
  cursor: pointer;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
}
.case-detail summary::-webkit-details-marker { display: none; }
.case-detail[open] summary { color: var(--ink); }
.case-detail > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.case-detail p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.case-detail p strong { color: var(--ink); }

/* ── Transparency section ─────────────────────────────────────────── */
.transparency .container {
  max-width: 760px;
  text-align: center;
}
.transparency h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 16px; }
.transparency p {
  color: var(--steel);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Insights / blog ───────────────────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.insight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}
.insight-cover {
  aspect-ratio: 16/9;
  background: var(--ink);
  overflow: hidden;
}
.insight-cover img { width: 100%; height: 100%; object-fit: cover; }
.insight-body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.insight-tag {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.insight-body h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}
.insight-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.insight-meta {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.insight-meta .read-time { color: var(--cyan); font-weight: 600; }

/* ── Article (single insight) ─────────────────────────────────────── */
.article-hero {
  padding: 168px 32px 64px;
  background: var(--ink);
  color: var(--ice);
}
.article-hero .container { max-width: 820px; margin: 0 auto; }
.article-hero .tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0,230,176,.15);
  color: var(--cyan);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.article-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.article-hero .article-sub {
  color: var(--steel);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 660px;
}
.article-meta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-meta-row .author {
  display: flex; align-items: center; gap: 8px;
}
.article-meta-row .author-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}
.article-body {
  background: var(--ice);
  padding: 64px 32px;
  position: relative;
}
.article-body .container { max-width: 760px; margin: 0 auto; }
.article-body h2 {
  font-size: 28px;
  margin: 40px 0 16px;
  font-weight: 800;
  line-height: 1.2;
}
.article-body h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  font-weight: 700;
}
.article-body p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.article-body p strong { font-weight: 700; }
.article-body p em { color: var(--cyan); font-style: normal; font-weight: 600; }
.article-body ul, .article-body ol {
  margin: 12px 0 20px 24px;
  color: var(--ink);
}
.article-body li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.article-body blockquote {
  margin: 24px 0;
  padding: 20px 28px;
  background: var(--white);
  border-left: 4px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-style: italic;
}
.article-body code {
  background: var(--graphite);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.article-callout {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--ink);
  color: var(--ice);
  border-radius: 12px;
  border-left: 4px solid var(--cyan);
}
.article-callout strong {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.article-callout p { color: var(--ice); font-size: 16px; line-height: 1.6; margin: 0; }

.article-telemetry {
  position: fixed;
  top: 96px;
  right: max(24px, calc((100vw - 1180px) / 2));
  z-index: 30;
  width: 238px;
  padding: 16px;
  border: 1px solid rgba(0, 230, 176, 0.2);
  border-radius: 12px;
  background: rgba(9, 13, 16, 0.86);
  color: var(--ice);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translate3d(16px, 0, 0);
  transition:
    opacity 360ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.article-telemetry.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.article-telemetry__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-telemetry__bar {
  height: 2px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(247, 250, 248, 0.14);
  overflow: hidden;
}

.article-telemetry__bar span {
  display: block;
  width: calc(var(--article-progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #55ffd7);
  box-shadow: 0 0 14px rgba(0, 230, 176, 0.54);
}

.article-telemetry nav {
  display: grid;
  gap: 7px;
}

.article-telemetry a {
  display: block;
  color: rgba(247, 250, 248, 0.64);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  padding-left: 13px;
  position: relative;
}

.article-telemetry a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(247, 250, 248, 0.28);
}

.article-telemetry a.is-active,
.article-telemetry a:hover {
  color: var(--cyan);
}

.article-telemetry a.is-active::before {
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 230, 176, 0.7);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .article-telemetry {
    position: sticky;
    top: 78px;
    right: auto;
    width: min(760px, calc(100% - 32px));
    margin: -26px auto 28px;
  }
}

@media (max-width: 1024px) {
  .manifesto-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .commitments-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid-full { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article-telemetry { display: none; }
  .manifesto-grid, .team-grid, .commitments-grid, .insights-grid { grid-template-columns: 1fr; }
  .case-stats-row { grid-template-columns: 1fr; gap: 16px; }
  .timeline > li { grid-template-columns: 70px 1fr; gap: 16px; }
  .timeline::before { left: 38px; }
  .timeline-year::after { right: -16px; }
}

/* ── WCAG 2.4.7 · Foco visível em todos interativos ──────────────── */
*:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.cta-primary:focus-visible,
.cta-secondary:focus-visible {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
/* Remove default focus quando focus-visible está disponível */
*:focus:not(:focus-visible) { outline: none; }

/* Skip link para teclado (a11y) */
.skip-link {
  position: absolute;
  top: -80px; left: 8px;
  background: var(--ink);
  color: var(--cyan);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ── P0.8 · Touch targets 44px mín (Apple HIG) ───────────────────── */
@media (hover: none), (pointer: coarse) {
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 11px 8px;
  }
  .sticky-bar .cta-primary {
    min-height: 44px;
    padding: 11px 18px;
  }
  .cta-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .case-detail summary {
    padding: 14px 0;
    min-height: 44px;
  }
  .check .opt {
    min-width: 32px;
    min-height: 32px;
    margin: 6px;
  }
  /* Tap area expandida via ::before invisível */
  .check .opt::before {
    content: "";
    position: absolute;
    inset: -8px;
  }
  /* Anchor links inline mais espaço */
  .article-body a,
  .insight-meta a,
  .footer-grid a {
    padding: 4px 0;
    display: inline-block;
  }
}
