/**
 * Services page — layout & detailed service cards
 */

body.page-services.services-page {
  background: #f6f8fc;
}

body.page-services .page-banner,
body.page-services .our-service-area {
  display: none !important;
}

body.page-services #main {
  overflow-x: hidden;
}

.services-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.services-hero__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 4.5rem) clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* Hero */
.services-hero {
  position: relative;
  min-height: min(48vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background-color: #0b0a88;
  background-image: url("../img/pages/services/services-hero.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.services-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

.services-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.services-hero__breadcrumb a:hover {
  color: #55d1cb;
}

.services-hero__breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
}

.services-hero__breadcrumb li:last-child {
  color: #55d1cb;
}

.services-hero__title {
  margin: 0 0 0.75rem;
  width: 100%;
  max-width: none;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
}

.services-hero__tagline {
  margin: 0 auto;
  max-width: 42rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-wrap: balance;
}

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.services-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-hero__btn--primary {
  background: #55d1cb;
  color: #0b0a88;
}

.services-hero__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(85, 209, 203, 0.35);
  color: #0b0a88;
}

.services-hero__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.services-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Trust strip */
.services-trust {
  padding-block: 1.25rem;
  background: #fff;
  border-bottom: 1px solid rgba(11, 10, 136, 0.08);
}

.services-trust__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 767px) {
  .services-trust__list {
    grid-template-columns: 1fr;
  }
}

.services-trust__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f6f8fc;
  border-radius: 12px;
  border: 1px solid rgba(11, 10, 136, 0.06);
}

.services-trust__item i {
  font-size: 1.35rem;
  color: #0b0a88;
}

.services-trust__item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: #0b0a88;
}

.services-trust__item span {
  font-size: 0.8125rem;
  color: #5c6370;
}

/* Services grid section */
.page-services .section--services {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-services .section__header--services {
  text-align: left;
  margin-inline: 0;
  max-width: none;
}

.page-services .services-head__label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 0.85rem;
}

.page-services .services-head__title,
.page-services .services-head__title span {
  color: #0b0a88;
}

.page-services .service-card--detail {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  padding: 1.35rem 1.15rem 1.15rem;
  text-align: left;
}

.page-services .service-card--detail .service-card__cta {
  align-self: flex-start;
  margin-top: 0.85rem;
  padding-top: 0;
  text-transform: uppercase;
}

.page-services .service-card--detail .service-card__icon {
  margin-bottom: 0.85rem;
}

.page-services .service-card--detail h3 {
  max-width: none;
  margin: 0 0 0.5rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  text-align: left;
}

.page-services .service-card--detail .service-card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
  line-height: 1.55;
  color: #5c6370;
  text-align: left;
}

.page-services .service-card--detail:hover .service-card__text {
  color: #5c6370;
}

.page-services .services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.page-services .section--services .service-card--detail:nth-child(n + 9) {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  padding: 1.15rem 1.25rem;
}

.page-services .section--services .service-card--detail:nth-child(n + 9) .service-card__icon {
  grid-row: 1 / 3;
  margin-bottom: 0;
  align-self: center;
}

.page-services .section--services .service-card--detail:nth-child(n + 9) h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.page-services .section--services .service-card--detail:nth-child(n + 9) .service-card__text {
  grid-column: 2;
  grid-row: 2;
}

.page-services .section--services .service-card--detail:nth-child(n + 9) .service-card__cta {
  grid-column: 3;
  grid-row: 1 / 3;
  margin-top: 0;
  align-self: center;
}

@media (max-width: 991px) {
  .page-services .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .page-services .section--services .service-card--detail:nth-child(n + 9) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .page-services .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-services .section--services .service-card--detail:nth-child(n + 9) {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .page-services .section--services .service-card--detail:nth-child(n + 9) .service-card__icon {
    margin-bottom: 0.85rem;
  }

  .page-services .section--services .service-card--detail:nth-child(n + 9) .service-card__cta {
    margin-top: 0.85rem;
    align-self: flex-start;
  }
}

@media (max-width: 520px) {
  .page-services .services-grid {
    grid-template-columns: 1fr;
  }

  .page-services .section--services .service-card--detail:nth-child(n + 9) {
    grid-column: span 1;
  }

  .page-services .services-panel {
    padding: 0.85rem;
  }

  .page-services .service-card--detail {
    padding: 1.1rem 1rem;
  }

  .page-services .section__header--services {
    margin-bottom: 1.25rem;
  }
}

/* CTA */
.services-cta-wrap {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.services-cta {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #0b0a88 center / cover no-repeat;
  background-image: var(
      --cta-photo-tint,
      linear-gradient(
        135deg,
        rgba(11, 10, 136, 0.58) 0%,
        rgba(11, 10, 136, 0.48) 50%,
        rgba(26, 107, 102, 0.54) 100%
      )
    ),
    url("https://firebasestorage.googleapis.com/v0/b/prarvi-consultancy.appspot.com/o/Img%2Faboutus-bg.avif?alt=media&token=1ab9c76e-39fb-4831-ac3b-63f41b14595a");
  background-size: cover;
  background-position: center;
}

.services-cta h2 {
  margin: 0 0 0.5rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
}

.services-cta p {
  margin: 0 auto 1.15rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.services-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

body.page-services .footer-area .container {
  width: min(1140px, 92vw);
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}
