/* ═══════════════════════════════════════════
   Confident Coatings, Home Page Styles
   Service cards, hero refinements
   ═══════════════════════════════════════════ */

/* Service cards on home, editorial layout */
.home-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 3rem;
}
@media (min-width: 720px) { .home-services { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; } }
@media (min-width: 1080px) { .home-services { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--clay);
}
.service-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--parchment);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,16,31, 0.35) 100%);
  pointer-events: none;
}
.service-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px; height: 44px;
  background: var(--clay);
  color: var(--parchment);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 22px -6px rgba(237,26,3, 0.55);
}
.service-card-body {
  padding: 1.6rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}
.service-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.service-card-title a { color: inherit; }
.service-card-title a:hover { color: var(--clay); }
.service-card-desc {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.65;
  flex-grow: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--clay);
  margin-top: 0.4rem;
  transition: gap 0.25s ease;
}
.service-card-link:hover { gap: 0.7rem; }

[data-target] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}
