/* ==========================================================================
   Roofing Services Photo Cards Styles (roofing-services.css)
   ========================================================================== */

.roofing-services-section {
  background-color: #ffffff;
  padding: 5rem 0 4.5rem 0;
  position: relative;
}
.roofing-services-header {
  margin-bottom: 2.75rem;
}
.roofing-services-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fqrs-gold);
  margin-bottom: 0.85rem;
}
.roofing-services-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
  margin: 0;
}
.roofing-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.service-photo-card {
  position: relative;
  height: 380px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}
.service-photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
.service-card-overlay {
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(5, 7, 10, 0.96) 0%,
    rgba(5, 7, 10, 0.88) 55%,
    rgba(5, 7, 10, 0.4) 85%,
    transparent 100%
  );
  padding: 1.5rem 1.15rem 1.25rem 1.15rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background var(--trans-fast);
}
.service-photo-card:hover .service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 7, 10, 0.98) 0%,
    rgba(5, 7, 10, 0.92) 65%,
    rgba(5, 7, 10, 0.55) 90%,
    transparent 100%
  );
}
.service-card-text-wrap {
  flex: 1;
}
.service-photo-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
}
.service-photo-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}
.service-photo-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: transform var(--trans-fast);
}
.service-photo-card:hover .service-photo-arrow {
  transform: translateX(4px);
}
.roofing-services-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.75rem;
}
.link-view-all-services {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 2px solid #d97706;
  padding-bottom: 2px;
  transition: color var(--trans-fast), border-color var(--trans-fast);
}
.link-view-all-services:hover {
  color: #b45309;
  border-color: #b45309;
}

@media (max-width: 1024px) {
  .roofing-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .roofing-services-grid {
    grid-template-columns: 1fr;
  }
  .roofing-services-bottom {
    justify-content: center;
  }
}
