/* ════════════════════════════════════════════════════════════
   Freedom Discovery — Testimonials & Gallery (extends home.css)
   ════════════════════════════════════════════════════════════ */

/* ─── Google rating summary badge ─── */
.gr-summary {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 24px; max-width: 760px; margin: 0 auto 44px;
  padding: 24px 30px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(8,26,77,0.1);
}
.gr-summary-left { display: flex; align-items: center; gap: 20px; }
.gr-summary-g { font-size: 34px; line-height: 1; }
.gr-summary-g .fa-google {
  background: conic-gradient(from -45deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gr-summary-score { font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1; }
.gr-summary-meta .gr-summary-stars { color: #fbbc05; font-size: 16px; letter-spacing: 2px; }
.gr-summary-meta p { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.gr-summary-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: #fff; background: var(--blue);
  box-shadow: 0 12px 28px rgba(47,100,224,0.32); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.gr-summary-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(47,100,224,0.42); }

/* ─── Review cards ─── */
.gr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gr-card {
  display: flex; flex-direction: column; padding: 28px 26px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.gr-card:hover {
  transform: translateY(-6px); border-color: rgba(47,100,224,0.3);
  box-shadow: 0 26px 56px rgba(8,26,77,0.13);
}
.gr-card-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.gr-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; color: #fff;
}
.gr-info { flex: 1; min-width: 0; }
.gr-info .gr-name { display: block; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.gr-info .gr-date { font-size: 12px; color: var(--muted); }
.gr-card-top .fa-google {
  font-size: 19px;
  background: conic-gradient(from -45deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gr-stars { color: #fbbc05; font-size: 14px; letter-spacing: 1.5px; margin-bottom: 12px; }
.gr-text { font-size: 14px; color: var(--body); line-height: 1.75; }
@media (max-width: 980px) { .gr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .gr-grid { grid-template-columns: 1fr; } .gr-summary { flex-direction: column; text-align: center; } .gr-summary-left { flex-direction: column; } }

/* ─── Gallery marquee ─── */
.gallery-marquee {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  /* fade the left & right edges so pics flow in/out softly */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee-row { display: flex; overflow: hidden; }
.marquee-track {
  display: flex; gap: 20px; flex: none;
  width: max-content; padding-right: 20px; /* keeps gap consistent at the seam */
  animation: marquee-left 78s linear infinite;
}
.marquee-row.reverse .marquee-track { animation: marquee-right 108s linear infinite; }
.gallery-marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-left  { to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.g-pic {
  flex: none; width: clamp(220px, 26vw, 320px); aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(8,26,77,0.12);
  background: var(--soft); position: relative;
}
.g-pic img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease), filter 0.3s ease;
}
.g-pic::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 24px; background: rgba(8,26,77,0.32);
  opacity: 0; transition: opacity 0.3s ease;
}
.g-pic:hover img { transform: scale(1.08); }
.g-pic:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* ─── Gallery lightbox ─── */
.g-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(8,26,77,0.88); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.g-lightbox.open { opacity: 1; visibility: visible; }
.g-lightbox img {
  max-width: 92vw; max-height: 86vh; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(0.94); transition: transform 0.3s var(--ease);
}
.g-lightbox.open img { transform: scale(1); }
.g-lb-close {
  position: absolute; top: 22px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 20px;
  display: grid; place-items: center; transition: background 0.2s ease;
}
.g-lb-close:hover { background: rgba(255,255,255,0.28); }
.g-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 20px;
  display: grid; place-items: center; transition: background 0.2s ease;
}
.g-lb-nav:hover { background: rgba(255,255,255,0.28); }
.g-lb-prev { left: 22px; }
.g-lb-next { right: 22px; }
@media (max-width: 560px) { .g-lb-nav { width: 42px; height: 42px; } .g-lb-prev { left: 10px; } .g-lb-next { right: 10px; } }
