/* ---------------------------------------------------------------------------
 * home.css — homepage-only sections. Loaded via pageCss from home.ejs.
 * Tokens only, no literals. Shared pieces live in base.css / components.css.
 * ------------------------------------------------------------------------- */

/* ---- hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(var(--space-9), 10vw, 140px) clamp(var(--space-5), 4vw, var(--space-8)) clamp(var(--space-9), 8vw, var(--space-10));
}
.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  font-weight: var(--h1-weight);
  letter-spacing: var(--h1-tracking);
  margin: 0 0 var(--space-6);
}
.hero__sub {
  font-size: clamp(var(--body-size), 2vw, 19px);
  line-height: var(--body-lh);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 0 var(--space-8);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}
.hero__link {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.hero__link:hover { color: var(--text-primary); }

/* ---- shared section heading block ---- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(var(--space-8), 6vw, 72px);
}
.section-head h2 { margin: 0 0 var(--space-4); }
.section-head p {
  font-size: var(--body-size);
  line-height: var(--body-lh);
  font-weight: 300;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- services section ---- */
.svc-section { padding-bottom: clamp(80px, 8vw, 120px); }
.svc-empty { text-align: center; }

/* ---- service category groups ---- */
.svc-group { margin-bottom: clamp(var(--space-8), 6vw, 56px); }
.svc-group:last-child { margin-bottom: 0; }
.svc-group__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.svc-group__name {
  font-family: var(--font-display);
  font-size: var(--body-lg-size);
  font-weight: 600;
  color: var(--text-primary);
}
.svc-group__rule {
  flex: 1;
  height: 1px;
  background: var(--border-hairline);
}
.svc-group__count {
  font-family: var(--font-display);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- differentiators ---- */
/* These rows hold a FIXED four items, so explicit column counts are used rather
   than auto-fit: auto-fit sizes tracks to the container and produces a trailing
   empty column (4 items in 5 tracks) at wide viewports. The service grid below
   keeps auto-fit because its item count comes from the database. */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-bottom: clamp(var(--space-9), 7vw, var(--space-8));
}
@media (min-width: 600px)  { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .diff-grid { grid-template-columns: repeat(4, 1fr); } }
.diff {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.diff__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.diff__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-primary);
}
.diff__text {
  font-size: var(--body-sm-size);
  line-height: 1.55;
  font-weight: 300;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- stat tiles ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: clamp(var(--space-8), 6vw, var(--space-9));
}
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--elev-1), var(--elev-1-highlight);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.stat__label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ---- approach ---- */
.approach {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6) 0;
}
@media (min-width: 700px)  { .approach { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .approach { grid-template-columns: repeat(4, 1fr); } }
.approach__step {
  padding-inline: var(--space-5);
  border-left: 1px solid var(--border-hairline);
}
.approach__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--body-sm-size);
  margin-bottom: var(--space-4);
}
.approach__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--body-lg-size);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.approach__text {
  font-size: var(--body-sm-size);
  line-height: 1.55;
  font-weight: 300;
  color: var(--text-secondary);
  margin: 0;
}

/* ---- final gradient CTA band ---- */
.cta-band {
  border-radius: var(--radius-xl);
  background: var(--gradient-accent);
  padding: clamp(56px, 8vw, 88px) clamp(var(--space-6), 5vw, var(--space-9));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto clamp(var(--space-9), 8vw, var(--space-10));
}
.cta-band__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: var(--h1-weight);
  letter-spacing: var(--h2-tracking);
  color: #fff;
  margin: 0 0 var(--space-5);
  max-width: 640px;
}
.cta-band__text {
  font-size: 17px;
  line-height: var(--body-lh);
  font-weight: 400;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 var(--space-7);
  max-width: 520px;
}
.cta-band__btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--body-size);
  background: #fff;
  color: var(--bg-base);
  border: none;
  border-radius: var(--radius-md);
  padding: 15px var(--space-7);
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}
.cta-band__btn:hover { filter: brightness(.95); color: var(--bg-base); }
.cta-band__btn:active { transform: scale(.97); }

/* The vertical rules read as clutter once the grid collapses to one column. */
@media (max-width: 700px) {
  .approach__step {
    border-left: none;
    border-top: 1px solid var(--border-hairline);
    padding-inline: 0;
    padding-top: var(--space-5);
  }
}
