/* ==========================================================================
   CAMERAS — catálogo de câmaras para o SafeForest® Cloud (cameras.html)
   19-11-2026 · página independente, ainda sem links a partir do site.
   Reaproveita do style.css: .page-header, .section, .product__media--unit
   (fundo "tecnologia" com grelha + emblema), .product__list e .btn.
   ÍNDICE
   1. Header: como funciona (3 passos compactos)
   2. Catálogo (cartões)
   3. Tabela de comparação
   4. Utilitário: texto só para leitores de ecrã
   ========================================================================== */

/* 1. HEADER — "como funciona" em 3 passos compactos, por baixo do lead */
.page-cameras .page-header .section__eyebrow { margin-bottom: 0.9rem; }
.cc-flow {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
}
.cc-flow__step {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: var(--fs-small);
}
.cc-flow__step strong { color: var(--heading); }
.cc-flow__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand-dim);
  border: 1.5px solid var(--brand);
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}
@media (min-width: 820px) {
  .cc-flow { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1100px; }
}

/* 2. CATÁLOGO — 1 coluna (telemóvel) · 2 (tablet) · 4 (desktop) */
.cc-grid {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  display: grid;
  gap: 1.4rem;
}
.container > .cc-grid:first-child { margin-top: 0; }   /* 20-11-2026: o catálogo já não tem título nem texto por cima */
@media (min-width: 680px)  { .cc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .cc-grid { grid-template-columns: repeat(4, 1fr); } }

.cc-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-margin-top: 6rem;                   /* âncoras #bispectral etc. não ficam sob a navbar */
}
.cc-card:nth-child(2) { transition-delay: 0.06s; }
.cc-card:nth-child(3) { transition-delay: 0.12s; }
.cc-card:nth-child(4) { transition-delay: 0.18s; }

/* caixa da imagem: o fundo "tecnologia" do style.css, sem moldura própria */
.cc-card__media.product__media--unit {
  min-height: 220px;
  padding: 1.4rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.cc-card__media.product__media--unit img { max-height: 180px; height: auto; }

.cc-card__body { flex: 1; padding: 1.2rem 1.3rem 0; }
.cc-card__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.cc-card__name {
  margin-top: 0.5rem;
  font-size: 1.18rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  color: var(--heading);
}
.cc-card__desc { margin-top: 0.55rem; color: var(--ink-2); font-size: var(--fs-small); }
.cc-card__list { margin-top: 0.95rem; gap: 0.45rem; }
.cc-card__ideal {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-2);
  font-size: var(--fs-small);
}
.cc-card__ideal-k {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* rodapé do cartão: "Buy" desativado + selo "Coming soon" */
.cc-card__foot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.3rem 1.3rem;
}
.cc-buy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.cc-soon {
  padding: 0.28em 0.7em;
  border-radius: 999px;
  background: rgba(var(--fire-rgb), 0.09);
  color: var(--fire);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cc-later {
  margin-top: 1.6rem;
  color: var(--ink-3);
  font-size: var(--fs-small);
  text-align: center;
}

/* 3. TABELA — desliza dentro da caixa em ecrãs estreitos; 1.ª coluna fixa */
.cc-table-wrap {
  position: relative;                        /* contém os .cc-sr (absolutos): sem isto escapam ao overflow e alargam a página no telemóvel */
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  overflow-x: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.cc-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.cc-table th,
.cc-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cc-table thead th {
  background: var(--bg-0);
  color: var(--heading);
  font-weight: 750;
}
.cc-table tbody th {
  width: 8.5rem;                             /* telemóvel: rótulo quebra linha, sobra espaço para ~1,5 câmaras */
  color: var(--heading);
  font-weight: 650;
}
@media (min-width: 820px) {
  .cc-table tbody th { width: auto; white-space: nowrap; }
}
.cc-table td { color: var(--ink-2); }
.cc-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-2);
  box-shadow: 1px 0 0 var(--line);
}
.cc-table thead tr > :first-child { background: var(--bg-0); }
.cc-table tbody tr:last-child > * { border-bottom: 0; }
.cc-yes { color: var(--brand-strong) !important; font-weight: 750; font-size: 1.05rem; }
.cc-no  { color: var(--ink-3) !important; }
.cc-table__cloud > * { background: rgba(var(--brand-rgb), 0.06); }
.cc-table__cloud > :first-child { background: #f3f4ea; }   /* = bg-2 + 6% brand, opaco por causa do sticky */

/* 4. só para leitores de ecrã (✓ / — da tabela, cabeçalho da 1.ª coluna) */
.cc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
