/* =============================================================================
   SERVICES component — default theme
   Generated by ffs-css-audit refactor (v0.40.0)
   ============================================================================= */

.service-card {
  padding: 28px 24px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.service-card:hover {
  border-color: #111;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.page-services {
  min-height: 0vh;
}

.service-icon      { font-size: 2rem; display: block; margin-bottom: 12px; }
.service-icon-img  { display: block; width: 48px; height: 48px; object-fit: contain; margin: 0 0 12px; }
.service-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; color: #111; }
.service-desc  { font-size: 0.9rem; color: #555; line-height: 1.6; }

/* ── Component-specific overrides ────────────────────────────────────────── */
.services-grid {
  display: grid;
  /* flexible default — overridden by inline style when card_min/max_width set */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}

/* ── Service card link ── */
.service-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}
.service-card-link:hover,
.service-card-link:visited,
.service-card-link:active,
.service-card-link:focus {
  text-decoration: none !important;
  color: inherit;
  outline: none;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

/* ── Responsive: mobile card sizing ──────────────────────────────────────── */
/* !important needed to override inline style from ServicesPage::buildGrid() */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    max-width: none !important;
    gap: 14px;
  }
  .service-card {
    padding: 20px 16px;
  }
}
@media (min-width: 481px) and (max-width: 640px) {
  .services-grid {
    gap: 14px;
  }
}

/* ── Full-width mode: grid max-width intentionally kept ─────────────────────
   The inline max-width (cols×maxW + gaps) limits column count to the
   configured value in both restricted and full modes.
   margin:0 auto centres the grid in both modes.                           */
.page-full .portfolio-grid,
.page-full .services-grid,
.page-full .follow-grid {
  /* max-width kept — column count controlled by C++ inline style */
}
