/* index.html ONLY — Customer reviews under OUR SERVICES (unified single-layer morphism) */

html[data-index-page] .home-services-reviews {
  --reviews-tray-shadow: 0 28px 70px rgba(72, 27, 130, 0.14);
  --reviews-tray-shadow-hover: 0 36px 72px rgba(72, 27, 130, 0.18);
  --reviews-slab-shadow:
    0 14px 32px rgba(72, 27, 130, 0.12),
    0 6px 14px rgba(72, 27, 130, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -3px 0 rgba(72, 27, 130, 0.08);
  --reviews-slab-shadow-hover:
    0 18px 38px rgba(72, 27, 130, 0.15),
    0 8px 18px rgba(72, 27, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -2px 0 rgba(72, 27, 130, 0.1);
  --reviews-pill-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 0 rgba(46, 12, 94, 0.09) inset,
    0 22px 44px rgba(46, 12, 94, 0.2),
    0 12px 26px rgba(46, 12, 94, 0.14),
    0 5px 10px rgba(46, 12, 94, 0.1);
  --reviews-pill-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -2px 0 rgba(46, 12, 94, 0.1) inset,
    0 28px 52px rgba(46, 12, 94, 0.24),
    0 14px 30px rgba(46, 12, 94, 0.16),
    0 6px 12px rgba(46, 12, 94, 0.12);
  --reviews-faq-inset-accent: rgba(72, 27, 130, 0.08);
  margin-top: 200px;
  padding-top: 80px;
  border-top: 1px solid rgba(72, 27, 130, 0.12);
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

/* Reviews section header — tray → slab → pill */
html[data-index-page] .home-reviews-header-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 36px;
}

html[data-index-page] .home-reviews-header-stack.promise-card {
  padding: 14px 12px 18px;
  box-shadow:
    var(--reviews-tray-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -2px 0 var(--reviews-faq-inset-accent) !important;
  transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-index-page] .home-reviews-header-stack.promise-card:hover {
  transform: none !important;
  box-shadow:
    var(--reviews-tray-shadow-hover),
    0 14px 26px rgba(72, 27, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(72, 27, 130, 0.1) !important;
}

html[data-index-page] .home-reviews-header-stack .promise-card__media {
  line-height: normal !important;
  transform: none !important;
  padding: 12px 14px 10px !important;
  box-shadow: var(--reviews-slab-shadow) !important;
}

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

html[data-index-page] .home-reviews-header-stack__slab {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

html[data-index-page] .home-reviews-header-stack__pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 24px 18px;
  border-radius: 18px;
  text-align: center;
  background: #ffffff;
  border: none;
  position: relative;
  z-index: 2;
  transform: translateY(-8px);
  box-shadow: var(--reviews-pill-shadow);
  transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-index-page] .home-reviews-header-stack__pill:hover {
  box-shadow: var(--reviews-pill-shadow-hover);
}

html[data-index-page] .home-reviews-header-stack__eyebrow {
  margin: 0;
  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;
}

html[data-index-page] .home-reviews-header-stack__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.25;
  color: #2e0c5e !important;
}

html[data-index-page] .home-reviews-header-stack__text {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4a4a !important;
}

html[data-index-page] .home-services-reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
  align-items: stretch;
}

/* Review card — unified single layer: tray → slab → pill */
html[data-index-page] .home-review-card-stack.promise-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 8px 10px;
  height: 100%;
  min-height: 100%;
  overflow: visible;
  box-shadow:
    var(--reviews-tray-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -2px 0 var(--reviews-faq-inset-accent) !important;
  transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-index-page] .home-review-card-stack.promise-card:hover {
  transform: none !important;
  box-shadow:
    var(--reviews-tray-shadow-hover),
    0 14px 26px rgba(72, 27, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(72, 27, 130, 0.1) !important;
}

html[data-index-page] .home-review-card-stack .home-review-card-stack__slab {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 5px !important;
  line-height: normal !important;
  transform: none !important;
  box-shadow: var(--reviews-slab-shadow) !important;
  transition: box-shadow 0.28s ease;
}

html[data-index-page] .home-review-card-stack .home-review-card-stack__slab::before {
  display: none !important;
}

html[data-index-page] .home-review-card-stack:hover .home-review-card-stack__slab {
  box-shadow: var(--reviews-slab-shadow-hover) !important;
}

html[data-index-page] .home-review-card-stack .home-review-card-stack__pill {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 13px 11px;
  border-radius: 16px;
  background: #ffffff;
  border: none;
  position: relative;
  z-index: 2;
  transform: translateY(-3px);
  box-shadow: var(--reviews-pill-shadow);
  overflow: hidden;
  transition: box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-index-page] .home-review-card-stack:hover .home-review-card-stack__pill {
  box-shadow: var(--reviews-pill-shadow-hover);
}

html[data-index-page] .home-review-card-stack.is-expanded .home-review-card-stack__pill {
  overflow: visible;
}

html[data-index-page] .home-review-card-stack__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

html[data-index-page] .home-review-card-stack__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #2e0c5e;
  background: linear-gradient(145deg, #ffcc01 0%, #ffe566 100%);
  border: none;
  box-shadow: 0 10px 22px rgba(72, 27, 130, 0.14);
}

html[data-index-page] .home-review-card-stack__identity {
  min-width: 0;
  flex: 1;
}

html[data-index-page] .home-review-card-stack__identity h4,
html[data-index-page] .home-review-card-stack__identity h4 span {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2e0c5e !important;
  line-height: 1.3;
}

html[data-index-page] .home-review-card-stack__meta {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #6b5b7b !important;
}

html[data-index-page] .home-review-card-stack__stars {
  margin-bottom: 8px;
  flex-shrink: 0;
  color: #facc15;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

html[data-index-page] .home-review-card-stack__stars .fa-star {
  color: #facc15;
  text-shadow: 0 1px 0 rgba(72, 27, 130, 0.07);
}

html[data-index-page] .home-review-card-stack__quote {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  color: #000000 !important;
  font-style: normal !important;
}

html[data-index-page] .home-review-card-stack.is-expanded .home-review-card-stack__quote {
  overflow: auto;
}

html[data-index-page] .home-review-card-stack__excerpt {
  margin: 0;
  color: #000000 !important;
  overflow: visible;
  display: block;
}

html[data-index-page] .home-review-card-stack:not(.is-expanded) .home-review-card-stack__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

html[data-index-page] .home-review-card-stack__full {
  margin: 0;
  display: none;
}

html[data-index-page] .home-review-card-stack__full p {
  margin: 0 0 10px;
  color: #000000 !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
}

html[data-index-page] .home-review-card-stack__full p:last-child {
  margin-bottom: 0;
}

html[data-index-page] .home-review-card-stack.is-expanded .home-review-card-stack__excerpt {
  display: none;
}

html[data-index-page] .home-review-card-stack.is-expanded .home-review-card-stack__full {
  display: block;
}

html[data-index-page] .home-review-card-stack__footer {
  margin-top: auto;
  padding-top: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

html[data-index-page] .home-review-card-stack__toggle {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #481b82;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-index-page] .home-review-card-stack__toggle:hover {
  color: #2e0c5e;
}

html[data-index-page] .home-review-card-stack__google-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: #481b82;
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 27, 130, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

html[data-index-page] .home-review-card-stack__google-link:hover {
  color: #2e0c5e;
  border-bottom-color: #2e0c5e;
}

@media (max-width: 1199px) {
  html[data-index-page] .home-services-reviews {
    margin-top: 160px;
    padding-top: 64px;
  }

  html[data-index-page] .home-services-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  html[data-index-page] .home-services-reviews {
    margin-top: 120px;
    padding-top: 56px;
  }

  html[data-index-page] .home-services-reviews__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 18px;
  }

  html[data-index-page] .home-review-card-stack.promise-card {
    min-height: 0;
    height: auto;
  }
}

/* 2026-06-12 home reviews combined glass cleanup */
html[data-index-page] .home-services-reviews {
  margin-top: clamp(72px, 9vw, 128px) !important;
  padding-top: clamp(48px, 6vw, 72px) !important;
}

html[data-index-page] .home-reviews-header-stack__pill,
html[data-index-page] .home-review-card-stack .home-review-card-stack__pill {
  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;
}
