/* ============================================================
   14-comparison.css — Why Big Bear vs the big players
   Module: <section id="vs-comparison">
   Desktop: full-width table with highlighted Big Bear column.
   Mobile (<768px): table hidden, card stack shown instead.
   ============================================================ */

#vs-comparison {
  background:
    radial-gradient(ellipse at 20% 100%, rgba(21, 97, 45, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-white) 100%);
}

#vs-comparison .section-head .eyebrow {
  color: var(--c-green);
}

/* ---- Positioning paragraph ---- */
.vs-positioning {
  max-width: 740px;
  margin: var(--s-4) auto 0;
  text-align: center;
  color: var(--c-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ---- Table wrapper — horizontal scroll on mid sizes ---- */
.vs-table-wrap {
  margin-top: var(--s-6);
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---- Table ---- */
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--c-white);
}

.vs-table th,
.vs-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: middle;
}

.vs-table thead th {
  background: var(--c-navy-dark);
  color: var(--c-white);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: none;
}

.vs-table thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}
.vs-table thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

/* First column — feature names */
.vs-table td:first-child {
  font-weight: 600;
  color: var(--c-black);
  min-width: 220px;
}

/* Competitor columns — muted */
.vs-table td:not(:first-child):not(.vs-col-bbm) {
  color: var(--c-muted);
}

/* Big Bear CRM column — highlighted */
.vs-col-bbm {
  background: rgba(15, 59, 95, 0.06);
  border-left: 2px solid var(--c-navy);
  border-right: 2px solid var(--c-navy);
  font-weight: 700;
  color: var(--c-navy) !important;
}

.vs-table thead .vs-col-bbm {
  background: var(--c-navy);
  border-left: 2px solid var(--c-yellow);
  border-right: 2px solid var(--c-yellow);
  color: var(--c-yellow) !important;
  /* Keep the column header visually tied to the yellow accent */
  box-shadow: inset 0 -3px 0 var(--c-yellow);
}

/* Zebra rows */
.vs-table tbody tr:nth-child(even) td {
  background: rgba(244, 246, 249, 0.6);
}
.vs-table tbody tr:nth-child(even) .vs-col-bbm {
  background: rgba(15, 59, 95, 0.07);
}

/* Last row — rounded corners on table bottom */
.vs-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-lg);
}
.vs-table tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-lg) 0;
}
.vs-table tbody tr:last-child td {
  border-bottom: none;
}

/* small text inside cells */
.vs-table td small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--c-muted);
  margin-top: 2px;
}
.vs-col-bbm small {
  color: rgba(15, 59, 95, 0.6);
}

/* ---- Mobile card stack ---- */
/* Hidden by default; shown via media query below at <768px */
.vs-cards {
  display: none;
  margin-top: var(--s-5);
  flex-direction: column;
  gap: var(--s-3);
}

.vs-mobile-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
}

.vs-mobile-feature {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-navy);
  margin-bottom: var(--s-3);
}

.vs-mobile-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
}
.vs-mobile-card dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-muted);
  white-space: nowrap;
}
.vs-mobile-card dd {
  font-size: 0.85rem;
  color: var(--c-black);
  margin: 0;
}
.vs-mobile-card dd.vs-highlight {
  color: var(--c-navy);
  font-weight: 700;
}

/* ---- Responsive ---- */

/* Above 768px: show table, hide cards */
@media (min-width: 769px) {
  .vs-cards {
    display: none !important;
  }
  .vs-table-wrap {
    display: block;
  }
}

/* Below 768px: hide table, show cards */
@media (max-width: 768px) {
  .vs-table-wrap {
    display: none;
  }
  .vs-cards {
    display: flex !important;
  }
}
