/* index.html — OUR SERVICES: triple-stacked glass morphism (matches OUR PROMISE pattern) */

html[data-index-page] .home-services-showcase {
  overflow: visible !important;
}

/* OUR SERVICES — compact unified header pill (eyebrow + title together) */
html[data-index-page] .home-services-header-column {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 0 32px;
  padding: 0;
}

html[data-index-page] .home-services-header-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

html[data-index-page] .home-services-header-column .home-services-header-stack.promise-card {
  width: 100%;
  max-width: 560px;
}

html[data-index-page] .home-services-header-stack__slab {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px 10px;
  text-align: center;
  line-height: 1;
}

html[data-index-page] .home-services-header-stack__pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 18px 12px;
  border-radius: 14px;
  text-align: center;
  background: #ffffff;
  border: 3px solid #2c0e53;
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 0 rgba(46, 12, 94, 0.07) inset,
    0 16px 32px rgba(46, 12, 94, 0.22),
    0 8px 16px rgba(46, 12, 94, 0.14),
    0 3px 6px rgba(46, 12, 94, 0.1);
}

html[data-index-page] .home-services-showcase .home-services-header-stack__eyebrow {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  transform: none;
  text-align: center;
  font-size: clamp(0.68rem, 1.5vw, 0.82rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #facc15 !important;
  text-shadow: 0 1px 6px rgba(46, 12, 94, 0.14);
}

html[data-index-page] .home-services-showcase .home-services-header-stack__title {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  transform: none;
  text-align: center;
  line-height: 1.2;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  text-transform: capitalize;
  color: #2e0c5e !important;
  text-shadow: 0 1px 4px rgba(46, 12, 94, 0.1);
}

/* Slim tray overrides — header only; service cards unchanged */
html[data-index-page] .home-services-header-stack {
  --stack-tray-radius: 14px;
  --stack-gap: 0;
  padding: 8px 10px 10px;
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-index-page] .home-services-header-stack::before,
html[data-index-page] .home-services-header-stack::after {
  display: none;
}

html[data-index-page] .home-services-header-stack:hover {
  transform: none;
  box-shadow: none;
}

html[data-index-page] .home-services-header-stack .promise-card__media {
  padding: 0;
  line-height: normal;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
}

html[data-index-page] .home-services-header-stack .promise-card__media::before {
  display: none;
}

html[data-index-page] .home-services-header-stack:hover .promise-card__media {
  transform: none;
  box-shadow: none;
}

html[data-index-page] .home-services-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  max-width: 1140px;
  margin: 8px auto 0;
  padding: 4px 8px 0;
}

/* 3D stack shell + slabs: see home-card-stack-3d.css */
html[data-index-page] .home-service-card {
  width: 94%;
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
}

html[data-index-page] .home-service-card__media {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

html[data-index-page] .home-service-card__body h3 {
  margin: 0 0 8px;
  font-size: 1.23rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-transform: capitalize;
}

html[data-index-page] .home-service-card__body h3 a {
  color: #2e0c5e !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

html[data-index-page] .home-service-card__body h3 a:hover {
  color: #6311de !important;
}

html[data-index-page] .home-service-card__text {
  margin: 0 0 15px;
  flex: 1;
  font-size: 0.89rem !important;
  line-height: 1.42 !important;
  color: #444444 !important;
}

html[data-index-page] .home-service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.89rem !important;
  font-weight: 700 !important;
  color: #6311de !important;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(99, 17, 222, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 248, 255, 0.78));
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    0 10px 22px rgba(46, 12, 94, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  width: fit-content;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    color 0.2s ease,
    background 0.28s ease;
}

html[data-index-page] .home-service-card__link:hover {
  color: #ffffff !important;
  background: linear-gradient(180deg, #7a2cf0 0%, #6311de 48%, #4f0eb8 100%);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  box-shadow:
    0 16px 28px rgba(46, 12, 94, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@media (max-width: 991px) {
  html[data-index-page] .home-services-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    gap: 14px 10px;
  }
}

@media (max-width: 575px) {
  html[data-index-page] .home-services-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    max-width: none;
    padding: 4px 12px 12px;
    margin: 8px -4px 0;
    scrollbar-width: none;
  }

  html[data-index-page] .home-services-cards::-webkit-scrollbar {
    display: none;
  }

  html[data-index-page] .home-service-card {
    flex: 0 0 min(88%, 300px);
    width: min(88%, 300px);
    max-width: 300px;
    scroll-snap-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  html[data-index-page] .home-service-card__link {
    transition: none !important;
  }
}

/* 2026-06-12 home services combined build pass */
html[data-index-page] .home-services-showcase {
  background:
    radial-gradient(circle at 88% 10%, rgba(72, 27, 130, 0.08), transparent 30%),
    radial-gradient(circle at 12% 16%, rgba(46, 12, 94, 0.05), transparent 26%),
    #ffffff !important;
  padding-top: clamp(72px, 8vw, 104px) !important;
  padding-bottom: clamp(72px, 8vw, 104px) !important;
}

html[data-index-page] .home-services-cards {
  gap: 22px;
}

html[data-index-page] .home-services-showcase .home-service-card {
  width: 100%;
  padding: clamp(18px, 2.6vw, 28px) !important;
  gap: 12.6px !important;
  border-radius: 26px !important;
}

html[data-index-page] .home-services-showcase .home-service-card__media {
  border-radius: 20px !important;
  padding: 12px !important;
}

html[data-index-page] .home-services-showcase .home-service-card__media img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 16px !important;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
}

html[data-index-page] .home-services-showcase .home-service-card:hover .home-service-card__media img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}

html[data-index-page] .home-services-showcase .home-service-card__body {
  gap: 10px !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
}

html[data-index-page] .home-services-header-stack__pill,
html[data-index-page] .home-service-card__body h3,
html[data-index-page] .home-service-card__text {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 240, 252, 0.46)),
    rgba(255, 255, 255, 0.38) !important;
  box-shadow:
    0 18px 36px rgba(72, 27, 130, 0.12),
    0 8px 18px rgba(72, 27, 130, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(72, 27, 130, 0.08) !important;
  backdrop-filter: blur(18px) saturate(142%);
  -webkit-backdrop-filter: blur(18px) saturate(142%);
}

html[data-index-page] .home-service-card__body h3,
html[data-index-page] .home-service-card__text {
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
}

html[data-index-page] .home-service-card__body h3 {
  width: fit-content;
  max-width: 100%;
  border-radius: 24px !important;
  font-weight: 800 !important;
}

html[data-index-page] .home-service-card__link {
  margin-top: auto !important;
  padding: 10px 14px !important;
  border-radius: 18px !important;
  color: #2e0c5e !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 240, 252, 0.68)),
    rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 18px 34px rgba(72, 27, 130, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

html[data-index-page] .home-service-card__link:hover {
  color: #ffffff !important;
  background: linear-gradient(180deg, #7a2cf0 0%, #6311de 48%, #4f0eb8 100%) !important;
}


/* 2026-06-12 home services one-row proportion alignment */
html[data-index-page] .home-services-showcase .home-services-cards {
  align-items: stretch;
}

html[data-index-page] .home-services-showcase .home-service-card {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  height: 100% !important;
  min-height: 0;
  align-self: stretch;
}

html[data-index-page] .home-services-showcase .home-service-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto !important;
  min-height: 0;
  box-sizing: border-box;
  flex: 0 0 auto;
}

html[data-index-page] .home-services-showcase .home-service-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

html[data-index-page] .home-services-showcase .home-service-card__body {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 270px;
  height: auto;
  box-sizing: border-box;
}

html[data-index-page] .home-services-showcase .home-service-card__text {
  flex: 0 0 auto;
}

html[data-index-page] .home-services-showcase .home-service-card__link {
  align-self: flex-start;
  margin-top: auto !important;
}

@media (min-width: 992px) {
  html[data-index-page] .home-services-showcase .home-services-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 1320px;
    gap: 18px;
    padding-left: 0;
    padding-right: 0;
  }

  html[data-index-page] .home-services-showcase .home-service-card {
    padding: 16px !important;
    gap: 12px !important;
  }

  html[data-index-page] .home-services-showcase .home-service-card__media {
    aspect-ratio: 2 / 3;
    height: auto !important;
    padding: 0 !important;
  }

  html[data-index-page] .home-services-showcase .home-service-card__body {
    min-height: 270px;
    padding: 10px !important;
  }

  html[data-index-page] .home-services-showcase .home-service-card__body h3,
  html[data-index-page] .home-services-showcase .home-service-card__text {
    padding: 8px 10px !important;
  }
}

@media (max-width: 991px) {
  html[data-index-page] .home-services-showcase .home-service-card__media {
    aspect-ratio: 2 / 3;
    height: auto !important;
  }

  html[data-index-page] .home-services-showcase .home-service-card__body {
    min-height: 300px;
  }
}

@media (max-width: 575px) {
  html[data-index-page] .home-services-showcase .home-service-card__media {
    aspect-ratio: 2 / 3;
    height: auto !important;
  }

  html[data-index-page] .home-services-showcase .home-service-card__body {
    min-height: 305px;
  }
}
