/* IPS Buyer's Agents — reviews page styles
   Same palette and type as the FAQ page, so the two authored pages match the
   live site: navy #09193b, cyan #35daf9, Sora + Inter. */

:root {
  --navy: #09193b;
  --navy-mid: #0c214c;
  --cyan: #35daf9;
  --cyan-dark: #0797b9;
  --ink: #0c214c;
  --body: #35405c;
  --muted: #6a7898;
  --line: #e2e8f2;
  --wash: #f5f8fc;
}

.rv-hero {
  background: var(--navy);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
/* Text and photo side by side once there is room for both; stacked and
   centred below that, which is also how it reads with images turned off. */
.rv-hero-in {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.25rem 3rem;
  align-items: center;
}
.rv-hero-photo { margin: 0; }
.rv-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}
.rv-hero-photo figcaption {
  margin-top: 0.7rem;
  color: #9fb6d6;
  font-size: 0.85rem;
}
@media (min-width: 900px) {
  .rv-hero { padding: 4.5rem 1.5rem; text-align: left; }
  .rv-hero-in { grid-template-columns: 1.15fr 0.85fr; }
  .rv-hero h1,
  .rv-hero p { margin-left: 0; margin-right: 0; }
}
.rv-hero h1 {
  font-family: Sora, system-ui, sans-serif;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 auto 1rem;
  max-width: 54ch;
}
.rv-hero p {
  margin: 0 auto;
  max-width: 62ch;
  color: #cfe0f5;
  font-size: 1.05rem;
  line-height: 1.6;
}
.rv-count {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(53, 218, 249, 0.45);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 600;
}

.rv-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 0;
}
.rv-section:last-of-type { padding-bottom: 3.5rem; }
.rv-section h2 {
  font-family: Sora, system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.rv-intro {
  margin: 0 0 2rem;
  max-width: 72ch;
  color: var(--body);
  line-height: 1.65;
}

.rv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.rv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rv-card::before {
  content: "★★★★★";
  color: var(--cyan-dark);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  line-height: 1;
}
.rv-quote {
  margin: 0;
  color: var(--body);
  line-height: 1.65;
  font-size: 0.985rem;
}
.rv-by {
  margin: auto 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  font-size: 0.88rem;
}
.rv-name { font-weight: 700; color: var(--ink); }
.rv-role,
.rv-guide {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  color: var(--navy-mid);
  font-size: 0.78rem;
  font-weight: 600;
}
.rv-meta { color: var(--muted); }
.rv-src { color: var(--muted); margin-left: auto; font-size: 0.8rem; }

/* Photo tiles: the suburbs these purchases happened in, and the eight property
   reviews that keep their own pages. One shape for both. */
.rv-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
/* The six suburb tiles sit three across rather than four, so two full rows. */
.rv-tiles-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rv-tiles a {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.rv-tiles a:hover,
.rv-tiles a:focus-visible {
  border-color: var(--cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(9, 25, 59, 0.12);
}
.rv-shot { display: block; }
.rv-tiles img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--wash);
}
.rv-tile-name {
  display: block;
  padding: 0.85rem 1rem 0.15rem;
  font-family: Sora, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink);
}
.rv-tile-note {
  display: block;
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .rv-tiles a { transition: none; }
  .rv-tiles a:hover,
  .rv-tiles a:focus-visible { transform: none; }
}

@media (max-width: 640px) {
  .rv-hero { padding: 3.25rem 1.25rem 2.5rem; }
  .rv-section { padding: 2.5rem 1.25rem 0; }
  .rv-card { padding: 1.25rem; }
  .rv-src { margin-left: 0; }
  /* Eight property tiles two across, so the list stays a list; the six
     suburb tiles keep the full width and read as the band they are. */
  .rv-tiles:not(.rv-tiles-wide) { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .rv-tiles:not(.rv-tiles-wide) .rv-tile-name { padding: 0.7rem 0.75rem 0.1rem; font-size: 0.88rem; }
  .rv-tiles:not(.rv-tiles-wide) .rv-tile-note { padding: 0 0.75rem 0.8rem; font-size: 0.78rem; }
}
