﻿/* =========================================================
   YES I CAN ROOFING & EXTERIORS
   BLOCK 03 â€” SERVICES
   VERSION 2 â€” 6 CARDS CON IMÃGENES
   ========================================================= */

.services-strip {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: -128px;
  padding: 0 0 8px;
  background: transparent;
}

.services-strip__inner {
  width: min(calc(100% - 72px), var(--content-max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.service-card {
  min-width: 0;
  overflow: hidden;
  color: #0b1a2b;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e0e5ea;
  border-radius: 10px;
  box-shadow:
    0 8px 24px rgba(3, 23, 43, 0.07),
    0 2px 6px rgba(3, 23, 43, 0.04);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(227, 19, 27, 0.4);
  box-shadow:
    0 14px 30px rgba(3, 23, 43, 0.11),
    0 3px 9px rgba(3, 23, 43, 0.06);
}

.service-card__media {
  position: relative;
  height: 150px;
  background-color: #eef1f4;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #e5e9ed;
}

.service-card__media--siding {
  background-image: url("../../imagenes/service-siding.webp");
  background-position: center center;
}

.service-card__media--eavestrough {
  background-image: url("../../imagenes/service-eavestrough.webp");
  background-position: center 38%;
}

.service-card__media--fascia-soffit {
  background-image: url("../../imagenes/service-fascia-soffit.webp");
  background-position: center 48%;
}

.service-card__media--capping {
  background-image: url("../../imagenes/service-capping.webp");
  background-position: center 42%;
}

.service-card__media--shingles {
  background-image: url("../../imagenes/service-shingles.webp");
  background-position: center 35%;
}

.service-card__media--flat-roofing {
  background-image: url("../../imagenes/service-flat-roofing.webp");
  background-position: center 42%;
}

.service-card__body {
  min-height: 56px;
  padding: 15px 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card__title {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .services-strip__inner {
    width: min(calc(100% - 48px), var(--content-max-width));
    gap: 10px;
  }

  .service-card__media {
    height: 120px;
  }

  .service-card__body {
    min-height: 52px;
    padding: 13px 9px 12px;
  }

  .service-card__title {
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  .services-strip {
    margin-top: -76px;
  }

  .services-strip__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .service-card__media {
    height: 150px;
  }
}

@media (max-width: 640px) {
  .services-strip {
    margin-top: -40px;
    padding-top: 10px;
  }

  .services-strip__inner {
    width: calc(100% - 28px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-card__media {
    height: 96px;
  }

  .service-card__title {
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .services-strip__inner {
    grid-template-columns: 1fr;
  }

  .service-card__media {
    height: 116px;
  }
}

