/* ============================================================
   crm.css — CRM / client-portal spotlight (light feature section)
   Pairs with the .color-scheme-3 (light) section. Loaded after main.css.
   ============================================================ */

.fd-crm__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2.5rem;
}

.fd-crm__copy .heading-style-h2 { margin-bottom: 1.25rem; }

/* Force light-context colors regardless of utility class inheritance. */
.fd-crm,
.fd-crm .fd-crm__copy,
.fd-crm .fd-crm__copy p,
.fd-crm .fd-crm__lead { color: #2a2622; }

.fd-crm .text-color-accent { color: var(--_primitives---colors--primary-light, #c4886a); }

.fd-crm__lead {
  color: #4a423b;
  max-width: 38rem;
  line-height: 1.65;
}

.fd-crm__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
}
.fd-crm__list li {
  position: relative;
  padding-left: 1.5rem;
  color: #1a1815;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.55;
}
.fd-crm__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--_primitives---colors--primary-light, #c4886a);
}

/* CTA button — light-section terracotta pill matching the hero CTAs. */
.fd-crm .button.fd-crm__cta {
  background-color: var(--_primitives---colors--primary-light, #c4886a);
  color: var(--_primitives---colors--cream, #f2ede6);
  border: 1px solid var(--_primitives---colors--primary-light, #c4886a);
  box-shadow: 0 10px 24px rgba(196, 136, 106, 0.22);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.fd-crm .button.fd-crm__cta:hover {
  background-color: #b3795c;
  box-shadow: 0 14px 30px rgba(196, 136, 106, 0.30);
  transform: translateY(-2px);
  color: var(--_primitives---colors--cream, #f2ede6);
}

.fd-crm__visual {
  border-radius: 18px;
  overflow: hidden;
  background: var(--_primitives---colors--cream-lightest, #fcfaf7);
  box-shadow: 0 24px 50px rgba(26, 24, 21, 0.10);
  border: 1px solid rgba(26, 24, 21, 0.08);
}
.fd-crm__visual img { display: block; width: 100%; height: auto; }

/* Custom animated dashboard visual — anchored top-left, bleeds off the
   bottom-right edge of the card (no gap there) for a cleaner cut-off. */
.fd-crm__visual { padding: clamp(1.5rem, 3.5vw, 2.5rem) 0 0 clamp(1.5rem, 3.5vw, 2.5rem); }
.fd-dash { display: block; width: 106%; height: auto; }

/* Line "draws" via a clip-path wipe (robust: no stroke-dasharray, so it can
   keep a true non-scaling 2px and never fragments). */
.fd-dash .dash-line {
  animation: fd-line-wipe 5s ease-in-out infinite;
}
@keyframes fd-line-wipe {
  0%   { clip-path: inset(-40% 100% -40% -4%); }  /* hidden (clipped from right) */
  40%  { clip-path: inset(-40% -4% -40% -4%); }   /* fully revealed L→R */
  70%  { clip-path: inset(-40% -4% -40% -4%); }   /* hold */
  100% { clip-path: inset(-40% -4% -40% 100%); }  /* clears L→R */
}
/* Donut: a clean STATIC arc (~65%). Static dash + pathLength is stable. */
.fd-dash .dash-donut {
  stroke-dasharray: 65 35;
  transform: rotate(-90deg);
  transform-origin: center;
  transform-box: fill-box;
}
/* bars gently breathe */
.fd-dash .dash-bar {
  transform-origin: bottom;
  transform-box: fill-box;
  animation: fd-dash-bar 3s ease-in-out infinite;
}
.fd-dash .b2 { animation-delay: 0.2s; }
.fd-dash .b3 { animation-delay: 0.4s; }
.fd-dash .b4 { animation-delay: 0.6s; }
.fd-dash .b5 { animation-delay: 0.8s; }
@keyframes fd-dash-bar {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.78); }
}
/* the highlighted "booked" calendar day gently pulses */
.fd-dash .booked {
  transform-box: fill-box;
  transform-origin: center;
  animation: fd-booked 2.4s ease-in-out infinite;
}
@keyframes fd-booked {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .fd-dash .dash-line { animation: none; clip-path: none; }
  .fd-dash .dash-bar, .fd-dash .booked { animation: none; }
}

@media (max-width: 991px) {
  .fd-crm__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 767px) {
  .fd-crm__list { grid-template-columns: 1fr; }
}
