/* REVIEWS v3 — Google-review slider. Classes prefixed .rev3-.
   Compacte cards (t.o.v. rev1's ene featured card), native scroll-snap +
   arrow-buttons uit block.js. Zelfde gedocumenteerde brand-kleur-uitzondering
   als rev1: ster-goud #FBBC04, Google-G, Local-Guide-blauw #4285F4 blijven
   hardcoded (herkenbare third-party kleuren, geen merkkleur van de klant). */

.rev3 {
  background: var(--c-bg-alt);
  padding-block: var(--space-5);
}

.rev3-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.rev3-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.rev3-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: var(--space-1);
}

.rev3-header-text h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--c-text);
  margin-bottom: var(--space-1);
}

.rev3-header-text p {
  font-family: var(--font-body);
  color: var(--c-text-muted);
}

.rev3-nav {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

.rev3-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-bg);
  color: var(--c-text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.rev3-arrow:hover:not(:disabled) {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-contrast, #fff);
}

.rev3-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.rev3-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-1);
  scrollbar-width: none;
}

.rev3-track::-webkit-scrollbar {
  display: none;
}

.rev3-track:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.rev3-card {
  flex: 0 0 calc((100% - 2 * var(--space-3)) / 3);
  min-width: 300px;
  scroll-snap-align: start;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
}

.rev3-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.rev3-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--c-primary);
  color: var(--c-primary-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.rev3-author {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rev3-author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--c-primary);
  font-size: 0.95rem;
}

.rev3-author-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  color: var(--c-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.rev3-g {
  margin-left: auto;
  flex-shrink: 0;
}

.rev3-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-2);
}

.rev3-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--c-text);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rev3-track {
    scroll-behavior: auto;
  }
}

@media (max-width: 900px) {
  .rev3-card {
    flex-basis: calc((100% - var(--space-3)) / 2);
  }
}

@media (max-width: 640px) {
  .rev3-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rev3-card {
    flex-basis: 85%;
    min-width: 0;
  }
}
