/* ============================================
   TESTIMONIALS PAGE — Divided Sky Roofing + Exteriors
   ============================================ */

/* --- Hide old Zephyr elements --- */
.ds-testimonials-page .l-header,
.ds-testimonials-page .w-header,
.ds-testimonials-page .l-footer,
.ds-testimonials-page .w-footer,
.ds-testimonials-page .l-titlebar,
.ds-testimonials-page .w-toplink,
.ds-testimonials-page .w-nav,
.ds-testimonials-page .us-footer,
.ds-testimonials-page .l-main,
.ds-testimonials-page .us-footer-terms,
.ds-testimonials-page .w-footer-terms,
.ds-testimonials-page [class*="footer-terms"],
.ds-testimonials-page .us_error_frame,
.ds-testimonials-page #us_error_frame,
.ds-testimonials-page [id*="us_error"],
.ds-testimonials-page .l-section {
  display: none !important;
}

/* Hide error badge and Zephyr footer terms */
div[style*="position: fixed"][style*="z-index"][style*="right"] {
  display: none !important;
}
.w-footer-terms, .us-footer-terms, footer.us-footer {
  display: none !important;
}


/* --- HERO --- */
.test-hero {
  position: relative;
  background: #1a1a1a;
  padding: 160px 0 80px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.test-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.test-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, 0.55);
  z-index: 1;
}

.test-hero .ds-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.test-hero-content {
  max-width: 600px;
}

.test-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 12px 0 20px;
  letter-spacing: -0.03em;
}

.test-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 500px;
}


/* --- HERO STATS --- */
.test-hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 36px;
  flex-shrink: 0;
}

.test-stat {
  text-align: center;
}

.test-stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #77E806;
  letter-spacing: -0.02em;
  line-height: 1;
}

.test-stat-star {
  font-size: 1.2rem;
  margin-left: 2px;
}

.test-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.test-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}


/* --- GOOGLE BADGE BAR --- */
.test-badge-bar {
  background: #1e1e1e;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.test-badge-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.test-google-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-google-icon {
  color: #77E806;
}

.test-google-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.test-google-stars {
  color: #FFC107;
  font-size: 1rem;
  letter-spacing: 1px;
}

.test-google-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #77E806;
  text-decoration: none;
  transition: color 0.2s;
}

.test-google-link:hover {
  color: #8fff2a;
}


/* --- REVIEWS SECTION --- */
.test-reviews {
  background: #222222;
  padding: 80px 0 60px;
}

.test-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 12px 0 48px;
  letter-spacing: -0.01em;
}


/* --- REVIEW GRID (masonry-style) --- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


/* --- REVIEW CARDS --- */
.test-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.test-card:hover {
  border-color: rgba(119, 232, 6, 0.2);
  background: rgba(119, 232, 6, 0.03);
  transform: translateY(-2px);
}

.test-card-featured {
  grid-column: span 2;
  background: rgba(119, 232, 6, 0.04);
  border-color: rgba(119, 232, 6, 0.15);
}

.test-card-stars {
  color: #FFC107;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.test-card-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px;
  font-style: normal;
}

.test-card-featured .test-card-text {
  font-size: 1.05rem;
}

.test-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #77E806, #5fb800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.test-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.test-card-source {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}


/* --- MORE CTA --- */
.test-more-cta {
  text-align: center;
  margin-top: 48px;
}

.test-more-cta .ds-btn-outline {
  display: inline-flex;
  align-items: center;
}


/* --- CTA SECTION --- */
.test-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2B2B2B 50%, #1e2a1e 100%);
  padding: 80px 0;
  position: relative;
}

.test-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119, 232, 6, 0.3), transparent);
}


/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .test-hero .ds-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .test-hero-stats {
    width: 100%;
    justify-content: center;
  }

  .test-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .test-card-featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .test-hero {
    padding: 120px 0 60px;
  }

  .test-hero h1 {
    font-size: 2.2rem;
  }

  .test-hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 24px;
  }

  .test-stat-divider {
    display: none;
  }

  .test-stat {
    flex: 1;
    min-width: 80px;
  }

  .test-stat-number {
    font-size: 1.6rem;
  }

  .test-badge-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .test-google-text {
    flex-direction: column;
    gap: 4px;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .test-card-featured {
    grid-column: span 1;
  }

  .test-reviews {
    padding: 60px 0 40px;
  }

  .test-section-title {
    font-size: 1.5rem;
  }

  .test-cta {
    padding: 60px 0;
  }

  .test-cta h2 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 480px) {
  .test-hero h1 {
    font-size: 1.8rem;
  }

  .test-card {
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .test-hero-overlay {
    background: rgba(25, 25, 25, 0.45);
  }
}
