/* ==========================================================================
   Islamabad Visa Services — Google Reviews section
   Self-contained stylesheet. Safe to delete this file + its <link> tag
   and the <section class="gr-section">…</section> markup to fully remove
   this feature with no effect on the rest of the site.
   ========================================================================== */

.gr-section,
.gr-cta-section {
  --gr-black: #0b0b0c;
  --gr-black-soft: #16161a;
  --gr-white: #ffffff;
  --gr-cream: #faf9f6;
  --gr-gold: #b8912f;
  --gr-gold-light: #e7d4a1;
  --gr-red: #d93025;
  --gr-text: #1b1b1d;
  --gr-text-muted: #6b6b70;
  --gr-border: #e7e3da;
  --gr-radius: 14px;
  --gr-shadow: 0 10px 30px rgba(11, 11, 12, 0.08);
  --gr-shadow-hover: 0 16px 40px rgba(11, 11, 12, 0.14);
  --gr-font: var(--font-primary, "Jost", sans-serif);
  font-family: var(--gr-font);
}

.gr-section {
  background: var(--gr-cream);
  padding: 90px 20px;
  position: relative;
}

.gr-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Header ---------- */

.gr-header {
  text-align: center;
  margin-bottom: 48px;
}

.gr-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gr-gold);
  margin-bottom: 14px;
}

.gr-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  color: var(--gr-black);
  margin: 0 0 22px;
  line-height: 1.25;
}

.gr-rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-height: 48px;
}

.gr-rating-number {
  font-size: 26px;
  font-weight: 700;
  color: var(--gr-black);
}

.gr-stars {
  display: inline-flex;
  gap: 3px;
  font-size: 18px;
  line-height: 1;
  color: var(--gr-gold);
  letter-spacing: 1px;
}

.gr-stars .gr-star-empty {
  color: var(--gr-border);
}

.gr-rating-count {
  font-size: 15px;
  color: var(--gr-text-muted);
}

.gr-rating-skeleton {
  width: 260px;
  max-width: 80vw;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(90deg, #efece3 25%, #f6f4ec 37%, #efece3 63%);
  background-size: 400% 100%;
  animation: gr-shimmer 1.6s ease-in-out infinite;
}

/* ---------- Status states (loading / error / not configured) ---------- */

.gr-status {
  text-align: center;
  padding: 50px 20px;
  color: var(--gr-text-muted);
  font-size: 15px;
}

.gr-status a {
  color: var(--gr-gold);
  font-weight: 600;
  text-decoration: underline;
}

.gr-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--gr-border);
  border-top-color: var(--gr-gold);
  animation: gr-spin 0.9s linear infinite;
}

@keyframes gr-spin {
  to { transform: rotate(360deg); }
}

@keyframes gr-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ---------- Carousel ---------- */

.gr-carousel {
  position: relative;
  min-height: 220px; /* reserves space to avoid layout shift while loading */
}

.gr-track-wrap {
  overflow: hidden;
}

.gr-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .gr-track {
    transition: none;
  }
}

.gr-card {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px;
}

@media (min-width: 720px) {
  .gr-card { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 1080px) {
  .gr-card { flex: 0 0 33.3334%; max-width: 33.3334%; }
}

.gr-card-inner {
  background: var(--gr-white);
  border: 1px solid var(--gr-border);
  border-radius: var(--gr-radius);
  box-shadow: var(--gr-shadow);
  padding: 26px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.gr-card-inner:hover,
.gr-card-inner:focus-within {
  box-shadow: var(--gr-shadow-hover);
  border-color: var(--gr-gold-light);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .gr-card-inner:hover,
  .gr-card-inner:focus-within {
    transform: none;
  }
}

.gr-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.gr-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gr-black);
  flex: none;
  aspect-ratio: 1 / 1;
}

.gr-avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gr-black);
  color: var(--gr-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  flex: none;
}

.gr-card-head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.gr-author {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gr-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gr-card-stars {
  font-size: 13px;
  color: var(--gr-gold);
  letter-spacing: 1px;
}

.gr-google-badge {
  flex: none;
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.gr-review-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gr-text);
  margin: 0 0 16px;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gr-review-date {
  margin: 0;
  font-size: 12.5px;
  color: var(--gr-text-muted);
}

/* ---------- Carousel controls ---------- */

.gr-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
}

.gr-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gr-border);
  background: var(--gr-white);
  color: var(--gr-black);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gr-nav-btn:hover,
.gr-nav-btn:focus-visible {
  background: var(--gr-black);
  border-color: var(--gr-black);
  color: var(--gr-gold);
}

.gr-nav-btn:focus-visible {
  outline: 2px solid var(--gr-gold);
  outline-offset: 2px;
}

.gr-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.gr-dots {
  display: flex;
  gap: 8px;
}

.gr-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--gr-border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gr-dot[aria-selected="true"] {
  background: var(--gr-gold);
  transform: scale(1.2);
}

.gr-dot:focus-visible {
  outline: 2px solid var(--gr-gold);
  outline-offset: 2px;
}

.gr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Action buttons under the carousel ---------- */

.gr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

.gr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.gr-btn:focus-visible {
  outline: 2px solid var(--gr-gold);
  outline-offset: 3px;
}

.gr-btn:active {
  transform: translateY(1px);
}

.gr-btn-gold {
  background: var(--gr-gold);
  color: var(--gr-black);
  border-color: var(--gr-gold);
}

.gr-btn-gold:hover {
  background: #a17f28;
  border-color: #a17f28;
  color: var(--gr-white);
}

.gr-btn-dark {
  background: var(--gr-black);
  color: var(--gr-white);
  border-color: var(--gr-black);
}

.gr-btn-dark:hover {
  background: var(--gr-black-soft);
  color: var(--gr-gold);
}

.gr-btn-outline {
  background: transparent;
  color: var(--gr-black);
  border-color: var(--gr-black);
}

.gr-btn-outline:hover {
  background: var(--gr-black);
  color: var(--gr-white);
}

/* ---------- Bottom conversion CTA ---------- */

.gr-cta-section {
  background: var(--gr-black);
  padding: 70px 20px;
  text-align: center;
}

.gr-cta-inner {
  max-width: 720px;
}

.gr-cta-title {
  color: var(--gr-white);
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 600;
  margin: 0 0 14px;
}

.gr-cta-text {
  color: #c9c9cc;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 32px;
}

.gr-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.gr-cta-buttons .gr-btn-outline {
  color: var(--gr-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.gr-cta-buttons .gr-btn-outline:hover {
  background: var(--gr-white);
  color: var(--gr-black);
}

.gr-cta-buttons .gr-btn-red {
  background: var(--gr-red);
  color: var(--gr-white);
  border-color: var(--gr-red);
}

.gr-cta-buttons .gr-btn-red:hover {
  background: #b8251c;
  border-color: #b8251c;
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .gr-section { padding: 60px 16px; }
  .gr-cta-section { padding: 50px 16px; }
  .gr-actions,
  .gr-cta-buttons { gap: 12px; }
  .gr-btn { width: 100%; }
}
