/* Homepage client feedback — reuses Groundsafe card/typography patterns */

#client-feedback .header.is-align-center {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

#client-feedback .home-testimonials-intro {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: color-mix(in srgb, currentColor 72%, transparent);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

#client-feedback .home-testimonials-grid {
  margin-top: 2rem;
}

.home-testimonial-card .card_body {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
}

.home-testimonial-headline {
  margin: 0 0 0.85rem;
  font-family: var(--_typography---blockquote--blockquote-font, "DM Sans", sans-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.45;
  font-weight: 600;
  color: #1a2332;
}

.home-testimonial-excerpt {
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.home-testimonial-attribution {
  margin-bottom: 1rem;
}

.home-testimonial-read-more {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.home-testimonial-read-more:focus-visible {
  outline: 2px solid #1a6470;
  outline-offset: 3px;
}

#gs-testimonial-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(19, 30, 45, 0.75);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#gs-testimonial-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#gs-testimonial-modal-overlay[hidden] {
  display: none !important;
}

#gs-testimonial-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}

#gs-testimonial-modal-overlay.visible #gs-testimonial-modal {
  transform: translateY(0) scale(1);
}

#gs-testimonial-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 35, 50, 0.06);
  color: #1a2332;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

#gs-testimonial-modal-close:hover {
  background: rgba(26, 35, 50, 0.12);
}

#gs-testimonial-modal-close:focus-visible {
  outline: 2px solid #1a6470;
  outline-offset: 2px;
}

.gs-testimonial-modal-body {
  padding: 2rem 1.75rem 1.75rem;
}

.gs-testimonial-modal-quote {
  margin: 0 0 1.5rem;
  font-family: var(--_typography---blockquote--blockquote-font, "DM Sans", sans-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1a2332;
}

.gs-testimonial-modal-attribution .author_name {
  display: block;
}

.gs-testimonial-modal-attribution .author_info {
  display: block;
  margin-top: 0.15rem;
}

body.gs-testimonial-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  #client-feedback .home-testimonials-grid {
    margin-top: 1.5rem;
  }

  .home-testimonial-card .card_body {
    padding: 1.25rem;
  }

  .gs-testimonial-modal-body {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  #gs-testimonial-modal-close {
    top: 10px;
    right: 10px;
  }
}
