/* ============================================================
   SERVICES PAGE STYLES (services.css)
   Supplemental styles for services.html – imports shared
   design tokens from style.css.
   ============================================================ */

/* ============================================================
   1. PAGE HERO
   ============================================================ */
.srv-hero {
  margin-top: 85px;
  /* offset for fixed navbar */
  background-color: var(--color-white);
}

.srv-hero__intro {
  padding: 70px var(--section-pad-x);
  max-width: 1512px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.srv-hero__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.3;
  /* flex: 0 1 800px; */
}

.srv-hero__heading .text-blue {
  color: var(--color-primary);
}

.srv-hero__divider {
  flex-shrink: 0;
  width: 2px;
  height: 155px;
  background-color: var(--color-border);
  margin: 0 10px;
}

.srv-hero__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-text);
  line-height: 1.6;
  flex: 1 0 280px;
  max-width: 500px;
}

.srv-hero__banner {
  width: 100%;
  aspect-ratio: 1512 / 486;
  overflow: hidden;
}

.srv-hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(80px);
  animation: slideUpHeroImage 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

/* ============================================================
   2. SERVICES OVERVIEW GRID
   ============================================================ */
.srv-overview {
  background-color: var(--color-bg-light);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.srv-overview__inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

.srv-overview__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.srv-overview__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.srv-overview__desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.4;
}

/* Card grid: rows of 4 */
.srv-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.srv-grid__row {
  display: flex;
  gap: 30px;
}

/* Last row is a single card but stays same width as col-4 item */
.srv-grid__row--single .srv-card {
  flex: 0 0 calc(25% - 22.5px);
}

.srv-card {
  flex: 1;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.srv-card:hover {
  box-shadow: 0 8px 32px rgba(14, 117, 187, 0.12);
  transform: translateY(-4px);
}

.srv-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.srv-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter var(--trans-med);
}

.srv-card:hover .srv-card__title {
  color: var(--color-primary);
}

.srv-card:hover .srv-card__icon img {
  filter: brightness(0) saturate(100%) invert(34%) sepia(90%) saturate(1476%) hue-rotate(182deg) brightness(87%) contrast(93%);
}

.srv-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--color-dark-2);
  line-height: 1.3;
}

/* ============================================================
   3. DETAILED SERVICE BLOCKS
   ============================================================ */
.srv-details {
  background-color: var(--color-white);
}

.srv-detail-block {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 60px var(--section-pad-x);
  max-width: 1512px;
  margin-inline: auto;
}

/* Even blocks flip image left, text right */
.srv-detail-block--reverse {
  flex-direction: row-reverse;
}

.srv-detail-block__img {
  flex: 0 0 684px;
  max-width: 684px;
  height: 500px;
  overflow: hidden;
}

.srv-detail-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.srv-detail-block__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.srv-detail-block__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.3;
}

.srv-detail-block__body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.srv-detail-block__services-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 25px;
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.3;
}

.srv-detail-block__list {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.srv-detail-block__list li {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.8;
}



/* ============================================================
   4. CTA BANNER (re-used from style.css; minor tweak)
   ============================================================ */
/* The cta-banner styles already exist in style.css. */

/* ============================================================
   5. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .srv-detail-block__img {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

@media (max-width: 1024px) {
  .srv-hero__divider {
    display: none;
  }

  .srv-hero__desc {
    flex: none;
    max-width: 100%;
  }

  .srv-grid__row {
    flex-wrap: wrap;
  }

  .srv-card {
    flex: 0 0 calc(50% - 15px);
  }

  .srv-grid__row--single .srv-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .srv-hero__intro {
    flex-direction: column;
    padding: 50px 24px;
    gap: 24px;
  }

  .srv-hero__heading {
    font-size: 34px;
  }

  .srv-hero__divider {
    display: none;
  }

  .srv-overview {
    padding: 60px 24px;
  }

  .srv-overview__title {
    font-size: 34px;
  }

  .srv-card {
    flex: 0 0 calc(50% - 12px);
  }

  .srv-grid__row--single .srv-card {
    flex: 0 0 calc(50% - 12px);
  }

  /* Detail blocks stack vertically */
  .srv-detail-block,
  .srv-detail-block--reverse {
    flex-direction: column;
    padding: 40px 24px;
  }

  .srv-detail-block__img {
    flex: none;
    max-width: 100%;
  }

  .srv-detail-block__img img {
    min-height: 280px;
  }

  .srv-detail-block__title {
    font-size: 30px;
  }

  .srv-detail-block__services-heading {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .srv-grid__row {
    flex-direction: column;
  }

  .srv-card {
    flex: none;
    width: 100%;
  }

  .srv-grid__row--single .srv-card {
    flex: none;
    width: 100%;
  }
}