/* Homepage enhancements: testimonials, package comparison matrix,
   desktop sticky CTA. Uses existing design tokens from styles.css.
   Isolated to avoid touching the main stylesheet. */

/* ---- Testimonials ---- */
.testimonials {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.testimonials .section-heading {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.testimonials .section-heading .eyebrow {
  color: var(--teal);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
  max-width: 1120px;
  margin: 0 auto;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.testimonial-card .quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--coral);
  margin-bottom: 0.4rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper);
}

.testimonial-author .ta-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.testimonial-author .ta-role {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.testimonial-author .ta-role a {
  color: var(--teal);
  text-decoration: none;
}

.testimonial-author .ta-role a:hover {
  text-decoration: underline;
}

.testimonials-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  max-width: 640px;
}

/* ---- Logo wall ---- */
.logo-wall {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.logo-wall-heading {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.logo-wall-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .logo-wall-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 460px) {
  .logo-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.logo-wall-grid li {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  min-height: 64px;
}

.logo-wall-grid img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.logo-wall-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

/* ---- Package comparison matrix ---- */
.pricing-compare {
  max-width: 980px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.pricing-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.pricing-compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.pricing-compare caption {
  caption-side: top;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.pricing-compare th,
.pricing-compare td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.pricing-compare thead th {
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  vertical-align: top;
  position: sticky;
  top: 0;
}

.pricing-compare thead th .pc-price {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
}

.pricing-compare thead th.pc-feature-head {
  background: transparent;
}

.pricing-compare th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.pricing-compare tbody tr:nth-child(even) td,
.pricing-compare tbody tr:nth-child(even) th[scope="row"] {
  background: rgba(15, 118, 110, 0.03);
}

.pricing-compare .pc-emph {
  background: rgba(239, 106, 90, 0.06);
}

.pricing-compare thead th.pc-emph {
  background: rgba(239, 106, 90, 0.12);
}

.pricing-compare .pc-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  padding: 2px 9px;
}

.pricing-compare .pc-yes {
  color: var(--teal);
  font-weight: 700;
}

.pricing-compare .pc-no {
  color: rgba(17, 24, 39, 0.28);
}

.pricing-compare tfoot td {
  padding-top: 1.1rem;
}

.pricing-compare .pc-cta {
  border-bottom: none;
}

/* ---- Desktop sticky CTA ---- */
.desktop-sticky-cta {
  display: none;
}

@media (min-width: 861px) {
  .desktop-sticky-cta {
    position: fixed;
    z-index: 35;
    right: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(239, 106, 90, 0.4);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s ease;
  }

  /* Reveal once the hero is scrolled past; hide again near the brief/footer. */
  body.scrolled-past-hero .desktop-sticky-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.brief-in-view .desktop-sticky-cta,
  body.footer-in-view .desktop-sticky-cta {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
  }

  .desktop-sticky-cta:hover {
    background: #e15848;
  }

  .desktop-sticky-cta::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
  }
}
