/* ===== CityFurnish-Style Testimonials ===== */
.reels-section {
  padding: 90px 0 80px;
  background: #f7f8fc;
  overflow: hidden;
  position: relative;
}

/* Split Layout Container */
.cf-testimonials {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Left Stats Panel */
.cf-stats-panel {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.cf-rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cf-rating-svg {
  width: 88px;
  height: auto;
  display: block;
}

.cf-review-count {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: #8893a8;
  margin-top: 0;
}

.cf-big-number {
  font-family: 'Archivo', sans-serif;
  font-size: 3.8rem;
  font-weight: 900;
  color: #2b4a7b;
  line-height: 1;
  letter-spacing: -2px;
}

.cf-big-label {
  font-family: 'Archivo', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #2b4a7b;
  line-height: 1.2;
  border-bottom: 4px solid #FFC631;
  padding-bottom: 4px;
  width: fit-content;
  margin: 0 auto;
}

.cf-tagline {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  color: #FFC631;
  font-weight: 500;
  font-style: italic;
}

/* Right Cards Carousel */
.cf-cards-wrapper {
  flex: 1;
  position: relative;
  min-width: 0;
}

/* Navigation arrows */
.reels-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #2b4a7b;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.reels-nav:hover {
  background: #2b4a7b;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(43,74,123,0.25);
}

.reels-nav.prev { left: -23px; }
.reels-nav.next { right: -23px; }

.reels-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Scrollable track */
.reels-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 4px 20px;
  scrollbar-width: none;
}

.reels-track::-webkit-scrollbar {
  display: none;
}

/* Single Reel Card — portrait */
.reel-card {
  position: relative;
  min-width: 240px;
  width: 240px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
  box-shadow: 0 8px 30px rgba(43,74,123,0.12);
  border: 3px solid transparent;
}

.reel-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(43,74,123,0.2);
  border-color: #FFC631;
}

.reel-card.active {
  border-color: #FFC631;
  box-shadow: 0 16px 40px rgba(255,198,49,0.2);
}

/* Background image */
.reel-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}

.reel-card:hover .reel-bg {
  transform: scale(1.08);
}

/* Video inside card */
.reel-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.reel-bg video::-webkit-media-controls { display: none !important; }
.reel-bg video::-webkit-media-controls-start-playback-button { display: none !important; }
.reel-bg video::-webkit-media-controls-panel { display: none !important; }

/* Dark gradient overlay */
.reel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.03) 30%,
    rgba(43,74,123,0.85) 100%
  );
  transition: background 0.4s ease;
}

.reel-card:hover .reel-overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.02) 25%,
    rgba(43,74,123,0.9) 100%
  );
}

/* Content — quote + author at bottom */
.reel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reel-quote {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.reel-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reel-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC631, #e6a800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255,198,49,0.3);
}

.reel-author-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.reel-author-project {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 1px;
}

/* Hidden elements from old design */
.reel-progress,
.reel-pause-icon { display: none; }

/* Play icon overlay on cards */
.reel-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 52px;
  height: 52px;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpolygon points='0,0 20,12 0,24' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 55% center;
  background-size: 18px 22px;
}

.reel-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== Reel Modal (Fullscreen Overlay) ===== */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.reel-modal.open {
  opacity: 1;
  visibility: visible;
}

.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.reel-modal-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  max-height: 85vh;
}

.reel-modal-close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.2s ease;
  line-height: 1;
}

.reel-modal-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

/* Nav arrows in modal */
.reel-modal-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.reel-modal-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}

/* Phone-shaped frame */
.reel-modal-phone {
  position: relative;
  width: 340px;
  height: 600px;
  max-height: 75vh;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

.reel-modal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.reel-modal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: none;
}

.reel-modal-video.active {
  display: block;
}

/* Play button center overlay */
.reel-modal-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.reel-modal-phone.paused .reel-modal-play-btn {
  opacity: 1;
  pointer-events: auto;
}

.reel-modal-phone.playing .reel-modal-play-btn {
  opacity: 0;
  pointer-events: none;
}

.reel-modal-phone.playing .reel-modal-img {
  opacity: 0;
}

.reel-modal-phone.paused .reel-modal-play-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Bottom gradient */
.reel-modal-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none;
}

/* Bottom info */
.reel-modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 22px;
  z-index: 5;
}

.reel-modal-quote {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  margin: 0 0 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.reel-modal-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reel-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC631, #e6a800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.reel-modal-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  display: block;
}

.reel-modal-project {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* Thumbnail strip */
.reel-modal-thumbs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
  overflow-x: auto;
  max-width: 90vw;
  padding: 4px 8px;
  scrollbar-width: none;
}

.reel-modal-thumbs::-webkit-scrollbar { display: none; }

.reel-modal-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color 0.25s ease, transform 0.2s ease;
  opacity: 0.6;
}

.reel-modal-thumb:hover {
  opacity: 0.85;
  transform: scale(1.06);
}

.reel-modal-thumb.active {
  border-color: #FFC631;
  opacity: 1;
  transform: scale(1.08);
}

.reel-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body scroll lock */
body.reel-modal-open {
  overflow: hidden;
}

/* ===== Modal Responsive ===== */
@media (max-width: 768px) {
  .reel-modal-phone {
    width: 280px;
    height: 500px;
  }
  .reel-modal-arrow {
    width: 38px;
    height: 38px;
  }
  .reel-modal-body { gap: 10px; }
  .reel-modal-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
  .reel-modal-quote { font-size: 13px; }
  .reel-modal-info { padding: 20px 16px; }
  .reel-modal-thumb { width: 46px; height: 46px; border-radius: 10px; }
  .reel-modal-thumbs { gap: 8px; margin-top: 14px; }
}

@media (max-width: 480px) {
  .reel-modal-body { gap: 6px; }
  .reel-modal-phone {
    width: 260px;
    height: 460px;
    border-radius: 20px;
  }
  .reel-modal-arrow {
    width: 32px;
    height: 32px;
  }
  .reel-modal-arrow svg { width: 18px; height: 18px; }
  .reel-modal-close { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 20px; }
  .reel-modal-quote { font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
  .reel-modal-name { font-size: 13px; }
  .reel-modal-project { font-size: 11px; }
  .reel-modal-avatar { width: 34px; height: 34px; font-size: 12px; }
  .reel-modal-info { padding: 16px 14px; }
  .reel-modal-thumb { width: 40px; height: 40px; border-radius: 8px; }
  .reel-modal-thumbs { gap: 6px; margin-top: 12px; }
}

@media (max-width: 360px) {
  .reel-modal-phone {
    width: 230px;
    height: 410px;
    border-radius: 16px;
  }
  .reel-modal-arrow { width: 28px; height: 28px; }
  .reel-modal-thumb { width: 36px; height: 36px; }
}

/* ===== Responsive — Tablet landscape ===== */
@media (max-width: 1100px) {
  .cf-testimonials { gap: 40px; }
  .cf-stats-panel { flex: 0 0 280px; }
  .cf-big-number { font-size: 3.2rem; }
  .cf-big-label { font-size: 1.5rem; }
  .reel-card {
    min-width: 220px;
    width: 220px;
    height: 350px;
  }
  .reels-track { gap: 16px; }
}

/* ===== Responsive — Tablet portrait ===== */
@media (max-width: 991px) {
  .cf-testimonials {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .cf-stats-panel {
    flex: none;
    width: 100%;
    align-items: center;
    gap: 16px;
  }
  .cf-big-label { margin: 0 auto; }
  .cf-cards-wrapper { width: 100%; }
  .reels-nav.prev { left: 4px; }
  .reels-nav.next { right: 4px; }
}

@media (max-width: 768px) {
  .reels-section { padding: 60px 0 50px; }
  .cf-testimonials { padding: 0 20px; gap: 32px; }
  .cf-big-number { font-size: 2.8rem; }
  .cf-big-label { font-size: 1.3rem; }
  .cf-tagline { font-size: 1rem; }
  .reel-card {
    min-width: 200px;
    width: 200px;
    height: 320px;
    border-radius: 16px;
  }
  .reels-track { gap: 14px; }
  .reel-quote { font-size: 13px; }
  .reel-author-name { font-size: 13px; }
  .reel-author-avatar { width: 32px; height: 32px; font-size: 12px; }
  .reel-content { padding: 18px 16px; gap: 10px; }
  .reels-nav { width: 40px; height: 40px; font-size: 16px; }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 480px) {
  .reels-section { padding: 48px 0 40px; }
  .cf-testimonials { padding: 0 14px; gap: 24px; }
  .cf-rating-svg { width: 72px; }
  .cf-big-number { font-size: 2.4rem; }
  .cf-big-label { font-size: 1.15rem; }
  .cf-tagline { font-size: 0.9rem; }
  .reel-card {
    min-width: 180px;
    width: 180px;
    height: 290px;
    border-radius: 14px;
    border-width: 2px;
  }
  .reels-track { gap: 12px; padding: 10px 2px 16px; }
  .reel-quote { font-size: 12px; line-height: 1.5; }
  .reel-author-name { font-size: 12px; }
  .reel-author-avatar { width: 28px; height: 28px; font-size: 10px; }
  .reel-content { padding: 14px 12px; gap: 8px; }
  .reels-nav { width: 36px; height: 36px; font-size: 14px; }
  .reels-nav.prev { left: 2px; }
  .reels-nav.next { right: 2px; }
}

/* ===== Responsive — Very small phones ===== */
@media (max-width: 360px) {
  .reels-section { padding: 36px 0 30px; }
  .cf-testimonials { padding: 0 10px; }
  .cf-big-number { font-size: 2rem; }
  .cf-big-label { font-size: 1rem; }
  .reel-card {
    min-width: 160px;
    width: 160px;
    height: 260px;
    border-radius: 12px;
  }
  .reels-track { gap: 10px; }
  .reel-quote { font-size: 11px; }
  .reel-content { padding: 12px 10px; }
  .reels-nav { display: none; }
}
