/* ============================================================
   rcairreviews.com — styles.css
   Mobile-first. System fonts only. Zero render-blocking fonts.
   CWV targets: LCP < 2.0s, INP < 200ms, CLS < 0.1
   ============================================================ */

:root {
  --navy:  #0b2545;
  --blue:  #1d6fb8;
  --sky:   #2f9be0;
  --ink:   #13243b;
  --slate: #5b6b80;
  --bg:    #f4f8fc;
  --card:  #ffffff;
  --gold:  #f6a821;
  --line:  #e2ebf3;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none }
address { font-style: normal }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px }

/* ── Header ── */
header { background: var(--navy) }
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 960px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; letter-spacing: -.01em; font-size: 15px;
}
.mark {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
}
.nav-link { color: #cfe2f4; font-size: 14px; font-weight: 600 }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #3a2600;
  font-weight: 800; font-size: 16px;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .12s ease, box-shadow .12s ease;
  min-height: 52px; /* tap target */
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246,168,33,.35);
  color: #3a2600;
}
.btn-secondary {
  display: inline-flex; align-items: center;
  border: 2px solid rgba(255,255,255,.4); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 999px;
  min-height: 52px;
  transition: background .12s, border-color .12s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff }
.btn-large { font-size: 18px; padding: 16px 36px; min-height: 58px }

/* ── Hero ── */
.hero {
  background: linear-gradient(175deg, var(--navy) 0%, #103a63 100%);
  color: #fff; text-align: center;
  padding: 60px 0 68px;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center }
.hero-photo {
  width: 100%; max-width: 340px; height: auto;
  border-radius: 16px; margin: 0 auto;
  border: 3px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr .75fr; text-align: left }
  .hero-ctas { justify-content: flex-start }
  .hero-photo { max-width: 380px; justify-self: end }
}
.hero h1 {
  font-size: clamp(26px, 5vw, 42px);
  letter-spacing: -.02em; line-height: 1.15;
  margin: 0 0 .4em; font-weight: 800;
}
.tagline { color: #cfe2f4; font-size: clamp(15px, 2.2vw, 18px); margin: 0 0 28px }
.rating-summary { margin: 0 auto 36px; display: inline-block }
.big-stars { color: var(--gold); font-size: 36px; letter-spacing: 4px; line-height: 1 }
.big-score {
  font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  margin: .1em 0 .05em;
}
.big-score span { font-size: 20px; font-weight: 500; color: #9fc1de; letter-spacing: 0 }
.review-count { font-size: 15px; color: #9fc1de; margin: 0 }
.review-count strong { color: #fff }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px }

/* ── Sections ── */
section { padding: 52px 0 }
h2 {
  font-size: clamp(20px, 3.2vw, 26px);
  letter-spacing: -.015em; text-align: center;
  margin: 0 0 8px; font-weight: 700;
}
.section-lead {
  text-align: center; color: var(--slate);
  max-width: 560px; margin: 0 auto 32px; font-size: 16px;
}

/* ── Review grid ── */
.reviews-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  min-height: 280px; /* reserves space before JS renders — prevents CLS */
}
@media (max-width: 720px) { .review-grid { grid-template-columns: 1fr } }

.review-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex; flex-direction: column;
  min-height: 220px; /* explicit height for CLS */
}
.rev-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px }
.rev-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; display: block;
}
.rev-avatar--init {
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 17px;
}
.rev-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; margin-bottom: 10px }
.rev-text {
  font-size: 14.5px; color: var(--ink); line-height: 1.65;
  flex: 1; margin: 0 0 14px;
}
.rev-meta {
  display: flex; align-items: center; justify-content: flex-end;
  border-top: 1px solid var(--line); padding-top: 12px;
  margin-top: auto;
}
.rev-author { font-size: 14px; font-weight: 700; color: var(--ink); display: block; line-height: 1.3 }
.rev-date   { font-size: 12.5px; color: var(--slate); display: block }
.rev-source { font-size: 12px; color: var(--slate); font-weight: 600 }

.reviews-placeholder {
  grid-column: 1 / -1;
  text-align: center; color: var(--slate);
  padding: 48px 20px; font-size: 15px;
}

.all-reviews-link { text-align: center; margin-top: 24px }
.all-reviews-link a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--blue);
  border: 1px solid var(--line); padding: 10px 22px; border-radius: 999px;
  background: #fff; transition: border-color .12s;
}
.all-reviews-link a:hover { border-color: var(--blue) }

/* ── Platform links ── */
.platforms { background: var(--bg) }
.platform-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.platform-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 22px; font-size: 14px; font-weight: 600;
  min-height: 46px; transition: border-color .12s, box-shadow .12s;
}
.platform-btn:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(29,111,184,.12); color: var(--ink) }

/* ── Service area chips ── */
.areas { background: #fff; border-top: 1px solid var(--line) }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; margin: 0 auto }
.chip {
  background: var(--bg); color: #26537e;
  border: 1px solid #d6e6f4; border-radius: 999px;
  padding: 7px 16px; font-size: 14px; font-weight: 600;
}

/* ── About ── */
.about { background: var(--bg) }
.about h2 { text-align: left }
.about p { color: var(--slate); font-size: 16px; max-width: 700px; margin: 0 0 16px }
.about-link { font-size: 15px; font-weight: 600; color: var(--blue) }

/* ── Contact CTA ── */
.contact-cta {
  background: linear-gradient(175deg, var(--navy) 0%, #103a63 100%);
  color: #fff;
}
.contact-cta h2 { color: #fff; text-align: left }
.contact-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 32px; align-items: start;
  margin-top: 24px;
}
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr } }
.nap { font-size: 14px; color: #cfe2f4; display: flex; flex-direction: column; gap: 4px; line-height: 1.7 }
.nap a { color: #fff; font-weight: 600 }
.nap-name { font-weight: 700; color: #fff }
.hours { font-size: 14px; color: #cfe2f4; line-height: 1.8; display: flex; flex-direction: column }
.hours strong { color: #fff }

/* ── Footer ──
   Scoped to .site-footer: the old bare `footer` selector bled navy
   background into the <footer> inside every review card (the date and
   via-Google strip went dark and unreadable). Never style the bare
   footer tag here. */
.site-footer {
  background: var(--navy); color: #b9d2e8;
  padding: 28px 20px; font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; line-height: 1.8;
}
.site-footer a { color: #cfe2f4 }
.site-footer strong { color: #fff }
