/* ============================================================
   13-crm-showcase.css — CRM features at a glance
   Module: <section id="crm-showcase">
   7 feature cards in a 3-column grid (3+3+1 centred last row)
   Light background to contrast with the dark #features section above.
   ============================================================ */

#crm-showcase {
  background: var(--c-bg);
}

#crm-showcase .section-head .eyebrow {
  color: var(--c-navy);
}

/* ---- Grid ---- */
.crm-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}

/* Last card spans full width on its row so it centres in a 3-col grid */
.crm-card--wide {
  grid-column: 1 / -1;
  max-width: calc((100% - var(--s-5) * 2) / 3);
  margin: 0 auto;
}

/* ---- Card ---- */
.crm-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
/* Lift handled centrally in 15-transitions.css under @media (hover: hover) */
@media (hover: hover) {
  .crm-card:hover {
    border-color: var(--c-navy-light);
  }
}

/* ---- Screenshot area ---- */
.crm-card-screenshot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-navy-dark);
}

/* When the real image loads it sits on top; placeholder is always present underneath */
.crm-card-screenshot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Placeholder — always rendered, hidden by the image when the image loads */
.screenshot-placeholder {
  position: absolute;
  inset: 0;
  background:
    /* subtle bear-paw dot-grid */
    radial-gradient(circle, rgba(255,215,0,0.12) 1px, transparent 1px),
    /* navy base gradient */
    linear-gradient(160deg, var(--c-navy-dark) 0%, var(--c-navy) 100%);
  background-size: 24px 24px, 100% 100%;
  border-bottom: 2px solid rgba(255, 215, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.screenshot-label {
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 215, 0, 0.10);
  border: 1px solid rgba(255, 215, 0, 0.30);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---- Card body ---- */
.crm-card-body {
  padding: var(--s-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.crm-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0;
}

.crm-card-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-muted);
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .crm-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .crm-card--wide {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .crm-showcase-grid {
    grid-template-columns: 1fr;
  }
  .crm-card--wide {
    grid-column: auto;
    max-width: 100%;
  }
}

/* ============================================================
   "What is a CRM" explainer section. 5 blocks in a 2-column
   grid; the wide block at the end spans both columns.
   Lives directly under the page hero on /crm.html.
   ============================================================ */
.crm-explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.crm-explainer-block {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: 0 2px 6px rgba(15, 59, 95, 0.04);
  transition: box-shadow 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
/* Only apply lift on devices with a real hover (mouse/trackpad).
   On a phone, tapping the block would leave it permanently elevated
   because there is no "mouse-out" event to restore it. */
@media (hover: hover) {
  .crm-explainer-block:hover {
    box-shadow: 0 8px 24px rgba(15, 59, 95, 0.10);
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .crm-explainer-block { transition: none; }
  .crm-explainer-block:hover { transform: none; }
}
.crm-explainer-block--wide {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-white) 100%);
  border-left: 4px solid var(--c-yellow);
}
.crm-explainer-block h3 {
  color: var(--c-navy);
  margin: 0 0 var(--s-3);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.crm-explainer-block p {
  color: var(--c-black-soft);
  line-height: 1.65;
  margin: 0 0 var(--s-3);
}
.crm-explainer-block p:last-child { margin-bottom: 0; }
.crm-explainer-block strong { color: var(--c-navy); }
.crm-explainer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.crm-explainer-list li {
  position: relative;
  padding-left: 22px;
  color: var(--c-black-soft);
  line-height: 1.55;
}
.crm-explainer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--c-yellow);
  border-radius: 50%;
}
.crm-explainer-block a {
  color: var(--c-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-yellow);
  text-underline-offset: 3px;
}
.crm-explainer-block a:hover {
  color: var(--c-yellow-dark, #b8860b);
}

/* Mobile: single column */
@media (max-width: 860px) {
  .crm-explainer-grid {
    grid-template-columns: 1fr;
  }
  .crm-explainer-block--wide {
    grid-column: auto;
  }
}
