/* ================================================================
   VJKM - RESTORATION VISUALS & GOOGLE REVIEW SYSTEM
   ================================================================ */

/* Section wrapper */
.restoration-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(230, 57, 70, 0.08), transparent 70%), var(--darker, #07090e);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 0;
}

.restoration-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 24px auto 36px;
  flex-wrap: wrap;
}

.restoration-btn {
  background: var(--card-bg, #141a24);
  color: var(--silver, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.restoration-btn:hover {
  background: var(--card-hover, #1c2432);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.restoration-btn.active {
  background: linear-gradient(135deg, var(--accent-gold-bright, #fbbf24), #d97706);
  color: #07090e;
  border-color: var(--accent-gold-bright, #fbbf24);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}

.restoration-wrapper {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 950px) {
  .restoration-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Split Viewer Box */
.split-viewer-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  aspect-ratio: 4/3;
  user-select: none;
}

.split-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.split-layer-before {
  background-image: url('../images/shocker-new.jpeg');
  filter: grayscale(85%) contrast(1.2) brightness(0.65) sepia(20%);
}

.split-layer-before::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.25) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.split-layer-after {
  background-image: url('../images/shocker-new.jpeg');
  filter: contrast(1.15) brightness(1.05) saturate(1.2);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  transition: clip-path 0.05s ease-out;
}

.split-layer-after::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(37, 211, 102, 0.1) 100%);
}

/* Badges on split viewer */
.layer-badge {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease;
}

.badge-before {
  left: 18px;
  background: rgba(230, 57, 70, 0.9);
  color: #fff;
}

.badge-after {
  right: 18px;
  background: rgba(37, 211, 102, 0.95);
  color: #07090e;
}

/* Draggable divider handle */
.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  z-index: 10;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 10px #fbbf24;
  pointer-events: none;
  transition: left 0.05s ease-out;
}

.split-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #07090e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 0 4px 15px rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: grab;
  border: 3px solid #fbbf24;
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Range input over split viewer for smooth drag & touch */
.split-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 15;
  margin: 0;
}

/* Hotspots with motion */
.hotspot {
  position: absolute;
  z-index: 8;
  cursor: pointer;
}

.hotspot-point {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #25d366;
  border: 3px solid #fff;
  box-shadow: 0 0 15px #25d366;
  animation: hotspot-pulse 2s infinite;
}

@keyframes hotspot-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hotspot-tooltip {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(15, 20, 28, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Restoration Comparison Specs Card */
.restoration-specs-card {
  background: var(--card-bg, #141a24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.specs-header {
  margin-bottom: 20px;
}

.specs-header h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.specs-header p {
  color: var(--silver, #94a3b8);
  font-size: 0.9rem;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.spec-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
}

.spec-before {
  color: #ff6b6b;
  font-weight: 600;
}

.spec-divider-arrow {
  color: var(--silver, #94a3b8);
  font-size: 0.9rem;
  text-align: center;
}

.spec-after {
  color: #25d366;
  font-weight: 700;
  text-align: right;
}

/* ================================================================
   DIRECT "REVIEW US ON GOOGLE" FLOATING PILL & MODAL
   ================================================================ */
.google-review-pill {
  position: fixed;
  bottom: 85px;
  left: 20px;
  z-index: 998;
  background: rgba(15, 20, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 183, 3, 0.25);
  transition: all 0.3s ease;
  animation: pill-glow 3s infinite alternate;
  max-width: 260px;
  width: auto;
  height: auto;
}

@keyframes pill-glow {
  0% { border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
  100% { border-color: rgba(255, 183, 3, 0.5); box-shadow: 0 8px 28px rgba(255, 183, 3, 0.35); }
}

.google-review-pill:hover {
  transform: translateY(-4px) scale(1.03);
  background: #1c2432;
  border-color: #ffb703;
}

.google-review-pill .g-icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  display: block !important;
  flex-shrink: 0;
}

.google-review-pill .stars-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.google-review-pill .stars {
  color: #ffb703;
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.google-review-pill .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .google-review-pill {
    bottom: 80px;
    left: 12px;
    padding: 6px 12px;
  }
  .google-review-pill .label {
    font-size: 0.68rem;
  }
}

/* Review CTA Card inside Reviews Section */
.review-cta-card {
  margin-top: 36px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.08), rgba(230, 57, 70, 0.08)), var(--card-bg, #141a24);
  border: 1px solid rgba(255, 183, 3, 0.3);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.review-cta-text h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.review-cta-text p {
  color: var(--silver, #94a3b8);
  font-size: 0.88rem;
}

.btn-google-review {
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #07090e;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.35);
  transition: all 0.3s ease;
}

.btn-google-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 183, 3, 0.5);
  color: #000;
}

/* Review Modal Popup */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.review-modal-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.review-modal-box {
  background: #141a24;
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 183, 3, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-modal-overlay.open .review-modal-box {
  transform: translateY(0) scale(1);
}

.review-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--silver, #94a3b8);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.review-modal-close:hover {
  color: #fff;
}
