/* ============================================================
   testimonials.css — Brick-Anew Reviews & Before/After Page
   Brand: Red #b01733 | Teal #1a6b5a | Font: Manrope
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Manrope', sans-serif;
  color: #1a1a1a;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Shared section header ────────────────────────────────── */
.section-header-testi {
  text-align: center;
  margin-bottom: 48px;
}

.section-header-testi h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-header-testi p {
  font-size: 1rem;
  color: #666;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   1. HERO
   ============================================================ */
.testi-hero {
  background: linear-gradient(135deg, #1a0a0e 0%, #2d1017 60%, #1a0a0e 100%);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative overlay */
.testi-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(176, 23, 51, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(26, 107, 90, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.testi-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.testi-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8a0ae;
  background: rgba(176, 23, 51, 0.18);
  border: 1px solid rgba(176, 23, 51, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.testi-hero-headline {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.testi-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  margin-bottom: 36px;
}

/* ── Overall score display ────────────────────────────────── */
.testi-overall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.testi-overall-stars {
  display: flex;
  gap: 4px;
}

.testi-overall-stars i {
  font-size: 2rem;
  color: #f5c518;
  text-shadow: 0 0 12px rgba(245, 197, 24, 0.4);
}

.testi-overall-score {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.testi-overall-score span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.testi-overall-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 14px;
}

/* ── Rating bars ──────────────────────────────────────────── */
.testi-stats {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.testi-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  min-width: 32px;
  text-align: right;
  white-space: nowrap;
}

.testi-stat-label i {
  color: #f5c518;
  font-size: 0.7rem;
}

.testi-stat-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.testi-stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b01733 0%, #d42045 100%);
  border-radius: 50px;
  transition: width 0.4s ease;
}

.testi-stat-pct {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  min-width: 30px;
  text-align: left;
}

/* ============================================================
   2. FILTER TABS
   ============================================================ */
.testi-filter-wrap {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.testi-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.testi-filter-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.testi-filter-btn:hover {
  border-color: #b01733;
  color: #b01733;
  background: rgba(176, 23, 51, 0.04);
}

.testi-filter-btn.active {
  background: #b01733;
  border-color: #b01733;
  color: #fff;
  box-shadow: 0 4px 14px rgba(176, 23, 51, 0.3);
}

/* ============================================================
   3. TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  background: #fff;
  padding: 72px 0;
}

/* ── Grid ─────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card ─────────────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border: 1.5px solid #efefef;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-color: #ddd;
}

/* Opening quote mark decoration */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(176, 23, 51, 0.07);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Stars ────────────────────────────────────────────────── */
.testi-stars {
  display: flex;
  gap: 3px;
}

.testi-stars i {
  color: #f5c518;
  font-size: 0.9rem;
}

/* ── Quote ────────────────────────────────────────────────── */
.testi-quote {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #3a3a3a;
  font-style: italic;
  flex: 1;
}

/* ── Card footer ──────────────────────────────────────────── */
.testi-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.testi-customer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b01733 0%, #d42045 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testi-customer {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
}

.testi-location {
  font-size: 0.78rem;
  color: #888;
  margin-top: 1px;
}

.testi-location i {
  font-size: 0.7rem;
  color: #b01733;
}

/* ── Badges ───────────────────────────────────────────────── */
.testi-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.testi-badge.paint {
  background: rgba(176, 23, 51, 0.1);
  color: #b01733;
  border: 1px solid rgba(176, 23, 51, 0.25);
}

.testi-badge.doors {
  background: rgba(26, 107, 90, 0.1);
  color: #1a6b5a;
  border: 1px solid rgba(26, 107, 90, 0.25);
}

/* ── Verified ─────────────────────────────────────────────── */
.testi-verified {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a6b5a;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.testi-verified i {
  font-size: 0.8rem;
}

/* ============================================================
   4. CASE STUDIES SECTION
   ============================================================ */
.cases-section {
  background: #f7f7f8;
  padding: 72px 0;
}

/* ── Grid ─────────────────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ── Card ─────────────────────────────────────────────────── */
.case-card {
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.case-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* ── Images row ───────────────────────────────────────────── */
.case-images {
  display: flex;
  width: 100%;
}

.case-image-wrap {
  flex: 1;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.case-card:hover .case-image-wrap img {
  transform: scale(1.04);
}

/* Divider between images */
.case-image-wrap:first-child {
  border-right: 2px solid #fff;
}

/* ── Labels ───────────────────────────────────────────────── */
.case-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 2;
}

.case-label.before {
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.case-label.after {
  background: rgba(26, 107, 90, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* ── Body ─────────────────────────────────────────────────── */
.case-body {
  padding: 20px 24px 24px;
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.case-stars i {
  font-size: 0.82rem;
}

.case-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.case-name span {
  font-weight: 500;
  color: #666;
}

.case-story {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #4a4a4a;
}

/* ============================================================
   5. CTA SECTION
   ============================================================ */
.testi-cta {
  background: linear-gradient(135deg, #6b0019 0%, #b01733 60%, #6b0019 100%);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.testi-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.testi-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.testi-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.testi-cta-eyebrow i {
  color: #f5c518;
}

.testi-cta-headline {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.testi-cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 36px;
}

.testi-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.testi-cta-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.testi-cta-btn.primary {
  background: #fff;
  color: #b01733;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.testi-cta-btn.primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.testi-cta-btn.ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.testi-cta-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ============================================================
   6. RESPONSIVE — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {

  /* Hero */
  .testi-hero {
    padding: 60px 0 52px;
  }

  .testi-hero-headline {
    font-size: 2rem;
  }

  .testi-hero-sub {
    font-size: 0.95rem;
  }

  .testi-overall-stars i {
    font-size: 1.6rem;
  }

  .testi-overall-score {
    font-size: 1.6rem;
  }

  .testi-overall-count {
    display: none;
  }

  .testi-stats {
    max-width: 100%;
    padding: 0 8px;
  }

  /* Filter */
  .testi-filter-wrap {
    padding: 14px 16px;
    position: static;
  }

  .testi-filter-btn {
    font-size: 0.82rem;
    padding: 8px 16px;
  }

  /* Testimonials grid → 1 col */
  .testimonials-section {
    padding: 52px 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-header-testi h2 {
    font-size: 1.6rem;
  }

  /* Cases grid → 1 col */
  .cases-section {
    padding: 52px 0;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* CTA */
  .testi-cta {
    padding: 60px 0;
  }

  .testi-cta-headline {
    font-size: 1.8rem;
  }

  .testi-cta-btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }

  .testi-cta-btn {
    justify-content: center;
  }

}

/* Narrow mobile */
@media (max-width: 480px) {
  .testi-hero-headline {
    font-size: 1.65rem;
  }

  .testi-overall {
    flex-direction: column;
    gap: 8px;
  }

  .testi-overall-count {
    display: none;
  }

  .case-image-wrap {
    aspect-ratio: 5 / 4;
  }

  .case-body {
    padding: 16px 18px 20px;
  }
}

/* ===== Customer photos on testimonial cards ===== */
.testi-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}
.testi-photo {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #eee;
  flex-shrink: 0;
  transition: border-color .15s, transform .15s;
}
.testi-photo:hover {
  border-color: #b01733;
  transform: translateY(-2px);
}
.testi-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Photo lightbox modal ===== */
.testi-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-photo-modal[hidden] { display: none; }
.testi-photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}
.testi-photo-modal-frame {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-photo-modal-frame img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.5);
  display: block;
}
.testi-photo-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.testi-photo-modal-close:hover { background: rgba(255,255,255,0.25); }
.testi-photo-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.testi-photo-modal-nav:hover { background: rgba(255,255,255,0.25); }
.testi-photo-modal-prev { left: 24px; }
.testi-photo-modal-next { right: 24px; }
.testi-photo-modal-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .testi-photo-modal-prev { left: 8px; }
  .testi-photo-modal-next { right: 8px; }
  .testi-photo-modal-nav { width: 40px; height: 40px; }
}

/* Make the photo thumbnails feel clickable. */
.testi-photo { cursor: zoom-in; }

/* ===== Load more button ===== */
.testi-load-more {
  background: #fff;
  color: #b01733;
  border: 1.5px solid #b01733;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.testi-load-more:hover {
  background: #b01733;
  color: #fff;
}
