/* ==========================================================================
   pages/services.css — Services page styles
   ========================================================================== */

/* --- Services Page Hero --- */

.services-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services-hero__bg picture {
  width: 100%;
  height: 100%;
}

.services-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.services-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(26, 37, 48, 0.5) 0%,
    rgba(26, 37, 48, 0.8) 100%
  );
}

.services-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--container-pad);
}

.services-hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  text-transform: uppercase;
}

/* --- Service Cards Grid --- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

.service-card:active {
  transform: scale(0.98);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.service-card__text {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.7;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: color var(--transition-fast);
}

@media (hover: hover) {
  .service-card__link:hover {
    color: var(--accent-hover);
  }
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

@media (hover: hover) {
  .service-card__link:hover svg {
    transform: translateX(4px);
  }
}

/* --- Service Detail Blocks --- */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}

.service-detail:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.service-detail:nth-child(even) .service-detail__image {
  order: 2;
}

.service-detail:nth-child(even) .service-detail__content {
  order: 1;
}

.service-detail__image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-detail__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--light-bg);
}

.service-detail__image svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
}

.service-detail__content h3 {
  margin-bottom: 16px;
}

.service-detail__content p {
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.service-detail__list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.service-detail__list-item::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background-color: var(--brand-blue);
}

/* --- Services CTA Section --- */

.services-cta {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--dark-bg) 100%);
  border-radius: var(--radius-lg);
}

.services-cta__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.services-cta__text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  max-width: 520px;
  margin-inline: auto;
}

/* --- Responsive: Services Page --- */

@media (max-width: 768px) {
  .services-hero {
    height: 30vh;
    min-height: 220px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .service-detail:nth-child(even) .service-detail__image,
  .service-detail:nth-child(even) .service-detail__content {
    order: unset;
  }

  .services-cta {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .services-hero {
    min-height: 180px;
  }

  .service-card {
    padding: 24px 20px;
  }
}
