/* 0390 (Kyle 12/2): reviews carousel v2, right under the home-page hero. All approved customer reviews live here
   (the old bottom "Trusted by construction teams" grid was removed). Own file; landing_v2 tokens (dark page). */
.agent-reviews {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.agent-reviews::before {            /* soft orange glow behind the cards */
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(900px, 120vw);
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.13), rgba(249, 115, 22, 0) 68%);
  pointer-events: none;
}
.agent-reviews .v2-container { position: relative; }
.agent-reviews-head {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 640px;
}
.agent-reviews-head .v2-section-title { margin-bottom: 10px; }
.agent-reviews-head .v2-section-subtitle { margin: 0 auto; }

.agent-reviews-stage {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.agent-reviews-viewport {
  overflow: hidden;
  border-radius: 24px;
}
.agent-reviews-track {
  --gap: 20px;
  --per: 1;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 10px;
  outline: none;
}
.agent-reviews-track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .agent-reviews-track { --per: 2; }
}
.agent-review {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  display: flex;
}
.agent-review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: 34px 32px 28px;
  border-radius: 22px;
  /* gradient hairline border */
  background:
    linear-gradient(160deg, rgba(17, 24, 39, 0.96), rgba(8, 12, 23, 0.96)) padding-box,
    linear-gradient(140deg, rgba(249, 115, 22, 0.55), rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0.04) 70%, rgba(251, 191, 36, 0.35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.agent-review-card::before {          /* big quote mark */
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--v2-accent, #f97316);
  opacity: 0.16;
  pointer-events: none;
}
@media (hover: hover) {
  .agent-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -26px rgba(249, 115, 22, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  }
}
.agent-review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  margin-bottom: 18px;
}
.agent-review-stars { display: flex; gap: 3px; color: #fbbf24; font-size: 1.05rem; letter-spacing: 0; }
.agent-review-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-accent, #f97316);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
}
.agent-review-quote {
  flex: 1 1 auto;
  margin: 0 0 26px;
  color: var(--v2-text, #f8fafc);
  font-size: 1.02rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.agent-review-quote p { margin: 0 0 12px; }
.agent-review-quote p:last-child { margin-bottom: 0; }
.agent-review--short .agent-review-quote {
  display: flex;
  align-items: center;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.agent-review-who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.agent-review-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}
.agent-review-meta { display: flex; flex-direction: column; min-width: 0; }
.agent-review-name { color: var(--v2-text, #f8fafc); font-weight: 700; font-size: 0.98rem; }
.agent-review-role { color: var(--v2-text-muted, #94a3b8); font-size: 0.86rem; overflow-wrap: anywhere; }

/* arrows: on the sides on wide screens, under the cards on small ones */
.agent-reviews-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.85);
  color: var(--v2-text, #f8fafc);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.agent-reviews-btn:hover,
.agent-reviews-btn:focus-visible { border-color: var(--v2-accent, #f97316); background: rgba(249, 115, 22, 0.14); outline: none; }
.agent-reviews-btn:active { transform: scale(0.94); }
.agent-reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}
.agent-reviews-controls[hidden] { display: none !important; }
.agent-reviews-dots { display: flex; align-items: center; gap: 8px; }
.agent-reviews-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.agent-reviews-dot[aria-current="true"] { width: 28px; background: var(--v2-accent, #f97316); }
@media (min-width: 1180px) {
  .agent-reviews-controls .agent-reviews-btn { position: absolute; top: 50%; margin-top: -48px; }
  .agent-reviews-controls [data-reviews-prev] { left: -64px; }
  .agent-reviews-controls [data-reviews-next] { right: -64px; }
}
@media (max-width: 640px) {
  .agent-reviews { padding: 48px 0 28px; }
  .agent-reviews-head { margin-bottom: 24px; }
  .agent-review-card { padding: 26px 22px 22px; border-radius: 18px; }
  .agent-review-card::before { font-size: 5rem; right: 16px; }
  .agent-review-quote { font-size: 0.97rem; }
}
@media (prefers-reduced-motion: reduce) {
  .agent-reviews-track { scroll-behavior: auto; }
  .agent-review-card, .agent-reviews-dot { transition: none; }
}
/* phones/tablets: long reviews start clamped so short ones don't sit in a tall empty card */
.agent-review-more {
  align-self: flex-start;
  margin: -14px 0 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--v2-accent, #f97316);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.agent-review-more:hover, .agent-review-more:focus-visible { text-decoration: underline; outline: none; }
@media (max-width: 899px) {
  .agent-review--long .agent-review-quote {
    max-height: 13.5em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
  }
  .agent-review--long.is-open .agent-review-quote { max-height: none; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 900px) {
  .agent-review-more { display: none; }
}
