/* web/themes/techprosolutions/css/components/svc-blocks.css */
/**
 * Content blocks: alternating feature splits, benefit bento grid,
 * eligibility/documents checklist, "how it works" steps rail.
 */

/* ---- Hero trust stat band ---- */
/* The band's own section shell is flat; the card inside overlaps the hero
   above it. z-index lifts the card over the hero's photo/ellipse. */
.svc-stat-band.svc-section {
  position: relative;
  z-index: 2;
  padding-block: 0 var(--et-space-10);
  background: transparent;
}
.svc-statband {
  display: grid;
  grid-template-columns: 1fr;                      /* grid-cols-1 */
  gap: var(--et-space-4);
  background: #ffffff;
  border-radius: var(--et-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: var(--et-space-6);
  margin-top: calc(-1 * var(--et-space-10));       /* overlap the hero bottom */
}
@media (min-width: 48rem) {
  .svc-statband { grid-template-columns: repeat(2, 1fr); }   /* md:grid-cols-2 */
}
@media (min-width: 62rem) {
  .svc-statband { grid-template-columns: repeat(4, 1fr); gap: 0; }  /* lg:grid-cols-4 */
}
.svc-stat {
  display: flex;
  align-items: center;
  gap: var(--et-space-4);
  padding-inline: var(--et-space-6);
}
@media (min-width: 62rem) {
  .svc-stat:not(:last-child) { border-right: 1px solid rgba(15, 23, 42, 0.08); }
}
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .svc-stat:nth-child(odd) { border-right: 1px solid rgba(15, 23, 42, 0.08); }
}
.svc-stat__chip {
  width: var(--et-space-12);
  height: var(--et-space-12);
  border-radius: var(--et-radius-pill);
  background: var(--et-wash);
  display: grid;
  place-items: center;
  color: var(--et-green-2);
  flex: none;
}
.svc-stat__chip svg { width: 1.5rem; height: 1.5rem; }
.svc-stat__chip img { border-radius: var(--et-radius-pill); }
.svc-stat__text { display: block; min-width: 0; }
.svc-stat__title {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.svc-stat__sub {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: var(--et-space-1);
}

/* ---- Feature split (alternating) ---- */
.svc-split__grid {
  display: grid;
  gap: var(--et-space-10);
  align-items: center;
}
@media (min-width: 62rem) {
  .svc-split__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-split--media-left .svc-split__copy { order: 2; }
  .svc-split--media-left .svc-split__media { order: 1; }
}
/* Clean media panel: the WHOLE uploaded image always shows — no crop, no
   mint/green frame, no border. The box height follows the image's natural
   aspect ratio (no fixed height / aspect-ratio), so any dimensions the admin
   uploads scale to the column width intact. Vertically centred beside the copy
   via the grid's align-items:center. A max-height letterboxes (never crops)
   unusually tall uploads. Only a subtle neutral shadow for separation. */
.svc-split__media {
  width: 100%;
  border-radius: var(--et-radius-lg);
  overflow: hidden;
  background: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.svc-split__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40rem;      /* safety for very tall portraits only — letterbox, never crop; wide/square/4:3 show full at the ~566px column */
  object-fit: contain;
  border-radius: inherit;
}
.svc-split .svc-head { margin-bottom: var(--et-space-4); }

/* ---- Benefit bento grid ---- */
.svc-bento {
  display: grid;
  gap: var(--et-space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .svc-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(11rem, auto);  /* 176px rows on the 4px grid */
  }
  .svc-card          { grid-column: span 4; }
  .svc-card--wide    { grid-column: span 8; }
  .svc-card--tall    { grid-column: span 4; grid-row: span 2; }
}
/* Compact tile mode (7+ cards, e.g. an 8-service "Plan your taxes" wall):
   2 columns from small screens, 4 from 768px, uniform tiles — spans ignored. */
.svc-bento--compact {
  grid-template-columns: repeat(2, 1fr);   /* grid-cols-2 */
  grid-auto-rows: auto;
}
@media (min-width: 48rem) {
  .svc-bento--compact { grid-template-columns: repeat(4, 1fr); }  /* md:grid-cols-4 */
  .svc-bento--compact .svc-card,
  .svc-bento--compact .svc-card--wide,
  .svc-bento--compact .svc-card--tall { grid-column: span 1; grid-row: auto; }
}
.svc-bento--compact .svc-card { padding: var(--et-space-6); }
.svc-bento--compact .svc-card__icon {
  width: var(--et-space-10);
  height: var(--et-space-10);
  margin-bottom: var(--et-space-3);
}
.svc-bento--compact .svc-card__title { font-size: 1rem; }
.svc-bento--compact .svc-card__body { font-size: 0.875rem; }

.svc-card {
  background: #fff;
  border-radius: var(--et-radius-lg);
  padding: var(--et-space-8);
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.1);
}
.svc-theme--navy .svc-card {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.svc-card__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--et-space-4);
}
.svc-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #1C3557;
  margin: 0 0 var(--et-space-2);
}
.svc-theme--navy .svc-card__title { color: #fff; }
.svc-card__body { line-height: 1.6; font-size: 1rem; }
.svc-card__body p { margin: 0; }

/* ---- Checklist (eligibility / documents) ---- */
.svc-checklist__grid { display: grid; gap: var(--et-space-12); align-items: center; }
@media (min-width: 62rem) {
  .svc-checklist--split .svc-checklist__grid { grid-template-columns: 7fr 5fr; }
}
.svc-checklist__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--et-radius-lg);
}
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--et-space-8);
  display: grid;
  gap: var(--et-space-4);
}
.svc-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--et-space-3);
  line-height: 1.5;
}
.svc-list__ic {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--et-green-2);
  margin-top: var(--et-space-1);
}
.svc-theme--navy .svc-list__ic { color: var(--et-green); }

/* ---- Steps rail ---- */
.svc-steps__rail {
  list-style: none;
  counter-reset: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--et-space-8);
}
@media (min-width: 48rem) {
  .svc-steps__rail { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}
.svc-step { position: relative; }
.svc-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--et-space-12);
  height: var(--et-space-12);
  border-radius: var(--et-radius-pill);
  background: var(--et-wash);
  color: var(--et-green-2);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--et-space-4);
}
.svc-theme--wash .svc-step__num { background: #fff; }
.svc-theme--navy .svc-step__num {
  background: rgba(255, 255, 255, 0.1);
  color: var(--et-green);
}
.svc-step__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #1C3557;
  margin: 0 0 var(--et-space-2);
}
.svc-theme--navy .svc-step__title { color: #fff; }
.svc-step__body { line-height: 1.6; }
.svc-step__body p { margin: 0; }
.svc-steps__actions {
  margin-top: var(--et-space-12);
  text-align: center;
}
