/* Live Google review carousel – Reviews page only. */
.ir {
  --ir-navy: #07142f;
  --ir-gold: #b88d32;
  --ir-gold-soft: #efcc7f;
  --ir-line: #e4dccb;
  --ir-paper: #fffdf8;
  --ir-ink: #2c3446;
  --ir-gap: 24px;
  --ir-per: 3;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
}
.ir-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ir-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.ir-summary { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.ir-g { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: #fff; border: 1px solid var(--ir-line); box-shadow: 0 6px 18px -10px rgba(7,20,47,.35); }
.ir-g svg { width: 24px; height: 24px; }
.ir-sum-line { display: flex; align-items: center; gap: 10px; }
.ir-score { font-size: 1.75rem; line-height: 1; color: var(--ir-navy); font-weight: 600; }
.ir-sum-sub { display: block; margin-top: 4px; font-size: .9rem; color: #5b6476; letter-spacing: .02em; }

.ir-controls { display: flex; gap: 10px; }
.ir-controls[hidden] { display: none; }
.ir-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--ir-navy); background: #fff; color: var(--ir-navy); cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.ir-btn[hidden] { display: none; }
.ir-btn:hover { background: var(--ir-navy); color: #fff; }
.ir-btn:active { transform: scale(.94); }
.ir-btn:focus-visible, .ir-more:focus-visible, .ir-name:focus-visible, .ir-source:focus-visible, .ir-all:focus-visible, .ir-retry:focus-visible {
  outline: 3px solid var(--ir-gold); outline-offset: 3px;
}

.ir-region { position: relative; }
.ir-viewport { overflow: hidden; margin: -16px -12px; padding: 16px 12px 22px; touch-action: pan-y; }
.ir-track {
  display: flex; list-style: none; margin: 0 calc(var(--ir-gap) / -2); padding: 0;
  transition: transform 900ms cubic-bezier(.65, .02, .25, 1);
  will-change: transform;
}
.ir-slide { flex: 0 0 calc(100% / var(--ir-per)); padding: 0 calc(var(--ir-gap) / 2); display: flex; min-width: 0; }
.ir-slide:not(.is-visible) .ir-card { opacity: .55; }
.ir-slide.is-visible .ir-card, .ir-skel { opacity: 1; }

.ir-card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: var(--ir-paper); border: 1px solid var(--ir-line); border-top: 3px solid var(--ir-gold);
  border-radius: 18px; padding: 30px 28px 24px;
  box-shadow: 0 1px 0 rgba(7,20,47,.04), 0 18px 40px -26px rgba(7,20,47,.38);
  transition: opacity .7s ease, transform .4s ease;
  min-height: 360px;
}
.ir-slide.is-visible .ir-card:hover { transform: translateY(-3px); }
.ir-quote {
  position: absolute; top: 6px; right: 22px; font-size: 5.5rem; line-height: 1;
  color: var(--ir-gold-soft); opacity: .55; pointer-events: none;
}
.ir-stars { display: inline-flex; gap: 2px; color: #d9d4c8; }
.ir-star.is-on { color: #e0a526; }
.ir-text {
  margin: 16px 0 0; color: var(--ir-ink); font-size: 1.04rem; line-height: 1.7;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden;
  white-space: pre-line; overflow-wrap: anywhere;
}
.ir-card.is-open .ir-text { -webkit-line-clamp: unset; display: block; }
.ir-text.ir-no-comment { font-style: italic; color: #64748b; }
.ir-more {
  align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--ir-navy); font-size: .92rem; font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--ir-gold); text-underline-offset: 4px;
}
.ir-more[hidden] { display: none; }
.ir-author {
  display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px;
  border-top: 1px solid var(--ir-line);
}
.ir-card .ir-text + .ir-author, .ir-more + .ir-author { margin-top: auto; }
.ir-card > .ir-author { margin-top: auto; }
.ir-card .ir-text { margin-bottom: 22px; }
.ir-avatar {
  position: relative; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 999px; overflow: hidden;
  background: var(--ir-navy); color: var(--ir-gold-soft); display: grid; place-items: center;
}
.ir-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ir-initials { font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.ir-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ir-name { color: var(--ir-navy); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ir-name:hover { text-decoration: underline; text-decoration-color: var(--ir-gold); }
.ir-meta { font-size: .84rem; color: #6a7284; }
.ir-source { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; flex: 0 0 34px; }
a.ir-source:hover { background: #f3eee2; }

.ir-foot { display: flex; justify-content: center; margin-top: 32px; }
.ir-all {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 6px;
  background: var(--ir-navy); color: #fff !important; font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: background-color .25s ease;
}
.ir-all:hover { background: #142a55; }

/* Loading */
.ir-skel { gap: 14px; }
.ir-bar { display: block; height: 12px; border-radius: 6px; width: 100%;
  background: linear-gradient(90deg, #efe9dc 0%, #f8f4ea 50%, #efe9dc 100%); background-size: 200% 100%;
  animation: ir-shimmer 1.4s ease-in-out infinite; }
.ir-bar.w40 { width: 40%; } .ir-bar.w50 { width: 50%; } .ir-bar.w60 { width: 60%; } .ir-bar.w80 { width: 80%; }
.ir-bar.ir-bottom { margin-top: auto; height: 40px; }
@keyframes ir-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Error */
.ir-error {
  flex: 1; list-style: none; text-align: center; padding: 44px 24px; border-radius: 18px;
  background: var(--ir-paper); border: 1px dashed var(--ir-gold);
}
.ir-error-title { font-size: 1.4rem; color: var(--ir-navy); margin: 0 0 10px; }
.ir-error-text { color: #5b6476; max-width: 34rem; margin: 0 auto 22px; line-height: 1.6; }
.ir-error-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ir-retry {
  padding: 13px 24px; border-radius: 6px; border: 1px solid var(--ir-navy); background: #fff;
  color: var(--ir-navy); font-weight: 700; cursor: pointer;
}

@media (max-width: 1199px) { .ir-card { padding: 26px 22px 20px; min-height: 340px; } .ir { --ir-gap: 18px; } }
@media (max-width: 767px) {
  .ir-head { justify-content: center; }
  .ir-card { min-height: 0; }
  .ir-quote { font-size: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ir-track, .ir-card, .ir-btn { transition: none !important; }
  .ir-bar { animation: none; }
}
