/* ==========================================================================
   Services Page Styles
   Dependencies: css/global.css (page-hero, cta-band, reveal-on-scroll, eyebrow)
   Purpose: Service card layout, dual-image swiper, card typography.
   All tokens inherited from global.css — zero hardcoded values.
   ========================================================================== */


/* ==========================================================================
   Services Grid Layout
   ========================================================================== */

.services-grid-section {
  /* background: linear-gradient(180deg, var(--color-background) 0%, var(--color-surface) 100%); */
   background:linear-gradient(135deg, rgba(15, 23, 39, 0.85) 0%, rgba(18, 27, 46, 0.95) 100%), linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}


/* ==========================================================================
   Service Card
   ========================================================================== */

.service-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background-color: var(--color-background);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-slow) var(--ease-standard),
              box-shadow var(--duration-slow) var(--ease-standard),
              border-color var(--duration-slow) var(--ease-standard);
}

@media (min-width: 900px) {
  .service-card {
    grid-template-columns: 1fr 1fr;
  }

  /* Alternate layout for even cards */
  .service-card:nth-child(even) .service-card__visuals {
    order: 2;
  }
  .service-card:nth-child(even) .service-card__content {
    order: 1;
  }
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(184, 134, 11, 0.15);
}


/* ==========================================================================
   Card Visuals (Image Area)
   ========================================================================== */

.service-card__visuals {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-background);
}

@media (min-width: 900px) {
  .service-card__visuals {
    aspect-ratio: auto;
    height: 100%;
    min-height: 380px;
  }
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-standard);
}

.service-card:hover .service-card__img {
  transform: scale(1.03);
}


/* ==========================================================================
   Swiper / Auto-Slide Layout
   ========================================================================== */

.service-card__swiper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.service-card__swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Utility to disable transition for seamless rewind */
.service-card__swiper-wrapper.no-transition {
  transition: none;
}

.service-card__swiper-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


/* ==========================================================================
   Card Content
   ========================================================================== */

.service-card__content {
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 480px) {
  .service-card__content {
    padding: var(--space-8);
  }
}

@media (min-width: 900px) {
  .service-card__content {
    padding: var(--space-12);
  }
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

@media (min-width: 640px) {
  .service-card__title {
    margin-bottom: var(--space-4);
  }
}

/* Accent underline on title */
.service-card__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  margin-top: var(--space-3);
  border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
  .service-card__title::after {
    width: 56px;
    margin-top: var(--space-4);
  }
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondry);
  line-height: var(--line-height-base);
}

@media (min-width: 640px) {
  .service-card__desc {
    font-size: var(--text-base);
  }
}


/* ==========================================================================
   Responsive Refinements
   ========================================================================== */

.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-wrapper {
    gap: var(--space-8);
  }
}

@media (min-width: 900px) {
  .services-wrapper {
    gap: var(--space-12);
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  .service-card__visuals {
    aspect-ratio: auto;
    min-height: 300px;
  }
}
