/*
 * Customer Stories page — layout-only overrides.
 * Typography, badges, and trust use standard Webflow classes.
 */

.customer-stories-page.section.nobottom {
  padding-bottom: 64px;
}

.customer-stories-hero-heart {
  display: inline-block;
  margin-inline: 0.04em;
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji, sans-serif;
  font-size: 0.92em;
  line-height: 1;
  vertical-align: -0.02em;
  transform: rotate(8deg);
  transform-origin: center;
}

.customer-stories-hero-title:hover .customer-stories-hero-heart {
  animation: customer-stories-heartbeat 1.25s ease-in-out infinite;
}

@keyframes customer-stories-heartbeat {
  0%,
  100% {
    transform: rotate(8deg) scale(1);
  }

  8% {
    transform: rotate(8deg) scale(1.22);
  }

  16% {
    transform: rotate(8deg) scale(1);
  }

  24% {
    transform: rotate(8deg) scale(1.15);
  }

  32% {
    transform: rotate(8deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-stories-hero-title:hover .customer-stories-hero-heart {
    animation: none;
  }
}

.customer-stories-hero-reviews-fullbleed {
  width: 100%;
  margin-top: clamp(1rem, 3vw, 2rem);
}

.customer-stories-hero-grid-wrap {
  position: relative;
  max-height: clamp(28rem, 52vw, 36rem);
  overflow: hidden;
}

.customer-stories-hero-grid {
  --hero-review-column-min: 310px;

  display: grid;
  grid-template-columns: repeat(3, minmax(var(--hero-review-column-min), 1fr));
  gap: 1.25rem;
  align-items: start;
  width: min(100%, 1316px);
  padding-right: 5%;
  padding-left: 5%;
  margin-right: auto;
  margin-left: auto;
}

.customer-stories-hero-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: var(--hero-review-column-min);
}

.customer-stories-hero-column--flank {
  display: none;
}

.customer-stories-hero-grid-fade {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(250 250 250 / 0%) 0%,
    rgb(250 250 250 / 88%) 55%,
    var(--sidebar) 100%
  );
}

.customer-stories-hero-column--center:nth-child(3) {
  padding-top: 1.75rem;
}

.customer-stories-list-section.section {
  padding-top: clamp(1.5rem, 3vw, 2rem);
}

.customer-stories-list-heading.title-center-2 {
  width: 100%;
  max-width: none;
  margin-bottom: 3rem;
}

.customer-stories-list-heading .display-2 {
  width: 100%;
  text-align: center;
}

.customer-stories-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.customer-story-vertical-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid var(--marketing-card-border, #edeff3);
  border-radius: 20px;
  box-shadow: var(--marketing-card-shadow);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.customer-story-vertical-card:hover {
  box-shadow:
    0 2px 8px -2px #1a192514,
    0 4px 16px -4px #1a19251a;
  transform: translateY(-1px);
}

.customer-story-vertical-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.customer-story-vertical-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  padding: 28px 32px 32px;
}

.customer-story-vertical-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.customer-story-vertical-card-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: #1a1925;
}

.customer-story-vertical-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  font-size: 15px;
  line-height: 1.55;
  color: rgb(26 25 37 / 68%);
}

.customer-story-vertical-card-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 2px dashed #d8dbdf;
}

.customer-story-vertical-card-author {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.customer-story-vertical-card-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
}

.customer-story-vertical-card-author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.customer-story-vertical-card-author-name {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1925;
  white-space: nowrap;
}

.customer-story-vertical-card-author-role {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.35;
  color: rgb(26 25 37 / 62%);
  white-space: nowrap;
}

.customer-story-vertical-card .customer-story-card-chevron {
  width: 20px;
  height: 20px;
}

.customer-story-vertical-card:hover .customer-story-card-chevron {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .customer-story-vertical-card:hover {
    transform: none;
  }

  .customer-story-vertical-card:hover .customer-story-card-chevron {
    transform: none;
  }
}

@media screen and (max-width: 991px) {
  .customer-stories-list-grid {
    gap: 20px;
  }

  .customer-story-vertical-card-body {
    padding: 24px;
  }
}

@media screen and (max-width: 767px) {
  .customer-stories-list-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .customer-story-vertical-card-body {
    gap: 20px;
    padding: 20px;
  }

  .customer-story-vertical-card-footer {
    padding-top: 16px;
  }
}

@media screen and (min-width: 1280px) {
  .customer-stories-hero-reviews-fullbleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .customer-stories-hero-grid {
    grid-template-columns: repeat(
        5,
        minmax(var(--hero-review-column-min), 1fr)
      );
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    padding-right: clamp(1.25rem, 3vw, 2.5rem);
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
  }

  .customer-stories-hero-column--flank {
    display: flex;
  }

  .customer-stories-hero-column--flank-left {
    padding-top: 2.5rem;
  }

  .customer-stories-hero-column--flank-right {
    padding-top: 1.25rem;
  }

  .customer-stories-hero-column--center:nth-child(3) {
    padding-top: 1.75rem;
  }
}

@media screen and (max-width: 991px) {
  .customer-stories-hero-grid {
    grid-template-columns: repeat(
        2,
        minmax(var(--hero-review-column-min), 1fr)
      );
  }

  .customer-stories-hero-column--center:nth-child(4) {
    display: none;
  }

  .customer-stories-hero-column--center:nth-child(3) {
    padding-top: 0;
  }
}

@media screen and (max-width: 767px) {
  .customer-stories-hero-grid-wrap {
    max-height: 22rem;
  }

  .customer-stories-hero-grid {
    grid-template-columns: minmax(var(--hero-review-column-min), 1fr);
  }

  .customer-stories-hero-column--center:nth-child(3),
  .customer-stories-hero-column--center:nth-child(4) {
    display: none;
  }
}

@media screen and (max-width: 479px) {
  .customer-stories-page .display-1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .customer-stories-page .paragraph-large {
    font-size: 18px;
    line-height: 1.5;
  }
}
