/* =========================================================
   testimonials.css — page-specific styles for testimonials.html
   ========================================================= */

/* Hero */
.testimonials-hero {
  background: var(--navy);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.testimonials-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}

.testimonials-hero p {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.80);
  margin: 0;
  max-width: 600px;
}

/* ── Scrolling photo grid ─────────────────────────────── */
.scroll-grid {
  position: relative;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 0;
}

/* Tronia logo centred over the strip */
.scroll-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,1) 20%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0) 75%);
  padding: 48px 80px;
}

.scroll-logo img {
  height: 144px;
  width: auto;
  display: block;
}

/* Each row */
.scroll-row {
  overflow: hidden;
  white-space: nowrap;
  line-height: 0;
}

.scroll-track {
  display: inline-flex;
  will-change: transform;
}

.scroll-track img {
  height: 160px;
  width: auto;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 40px;
  object-fit: cover;
}

/* Animations — single duration so all rows move at identical speed */
.scroll-left {
  animation: marquee-left 100s linear infinite;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Featured customer ────────────────────────────────── */
.featured-customer {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 520px;
  border-bottom: 1px solid var(--border);
}

.featured-photo {
  overflow: hidden;
  position: relative;
}

.featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* subtle right-edge fade to blend into the content panel */
.featured-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, var(--light-bg) 100%);
  pointer-events: none;
}

.featured-content {
  padding: 64px 56px 64px 48px;
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* large decorative quote mark */
.featured-content::before {
  content: '\201C';
  position: absolute;
  bottom: -20px;
  right: 24px;
  font-size: 200px;
  line-height: 1;
  color: var(--navy);
  opacity: 0.05;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

.featured-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 18px;
}

.featured-logo {
  max-height: 60px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
  display: block;
}

.featured-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.featured-content p {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0 0 12px;
  position: relative;
}

.featured-content p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--teal);
  font-weight: 600;
}

/* ── Testimonials grid section ────────────────────────── */
.testimonials-section {
  padding: 72px 64px;
  background: #fff;
}

.testimonials-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin: 0 0 48px;
}

.testimonials-grid {
  columns: 3;
  column-gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  background: #fff;
  break-inside: avoid;
  margin-bottom: 32px;
  display: block;
}

.testimonial-card .logo {
  display: block;
  max-height: 48px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 20px;
}

.testimonial-card blockquote {
  font-family: 'Open Sans', sans-serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0 0 20px;
  padding: 0;
}

.testimonial-card .name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-card .company {
  font-size: 13px;
  color: #767676;
  margin-top: 4px;
}

.no-logo-placeholder {
  height: 48px;
  margin-bottom: 20px;
  display: block;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .testimonials-grid {
    columns: 2;
  }
  .testimonials-section {
    padding: 56px 32px;
  }
  .featured-customer {
    grid-template-columns: 1fr;
  }
  .featured-photo {
    height: 300px;
  }
  .featured-photo::after {
    background: linear-gradient(to bottom, transparent 70%, var(--light-bg) 100%);
  }
  .featured-content {
    padding: 40px 32px;
  }
}

@media (max-width: 640px) {
  .testimonials-section {
    padding: 40px 0;
  }
  .testimonials-section h2 {
    padding: 0 20px;
  }
  .testimonials-grid {
    columns: unset !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 4px 20px 12px !important;
    margin: 0 !important;
    scrollbar-width: none !important;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonial-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    scroll-snap-align: start;
    break-inside: unset !important;
    margin-bottom: 0 !important;
  }
  .testimonial-card.hide-mobile {
    display: none !important;
  }
  .testimonials-grid + .card-scroll-nav .csn-counter {
    display: none;
  }
  .testimonials-hero h1 {
    font-size: 26px;
  }
  .testimonials-hero p {
    font-size: 15px;
  }
  .scroll-track img {
    height: 110px;
  }
  .scroll-logo img {
    height: 52px;
  }
  .scroll-logo {
    padding: 10px 18px;
  }
  .scroll-grid {
    gap: 24px;
    padding: 24px 0;
  }
}
