/* ============================================================
   Progressive Association Management — Yelp Landing Page
   Brand tokens (matched to progressivepartnersinc.com /
   association-management page + progressive-am.com red-building
   equity).
   ============================================================ */

:root {
  /* Progressive red-building brand */
  --pam-red:         #c41e2a;
  --pam-red-dark:    #a01822;
  --pam-red-tint:    #fbeaeb;
  --pam-black:       #1a1a1a;
  --pam-ink:         #26262c;
  --pam-steel:       #3d4654;
  --pam-mortar:      #d8d3cc;
  --pam-paper:       #fefcf9;
  --pam-cloud:       #f4f1ec;
  --pam-line:        #e4dfd8;
  --pam-muted:       #6b6f78;

  /* Yelp accent — used only in the "Saw us on Yelp?" chip */
  --yelp-red:        #d32323;

  /* Type */
  --f-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --wrap:      min(1140px, 100% - 2rem);
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(26,26,26,.06), 0 1px 3px rgba(26,26,26,.04);
  --shadow:    0 4px 12px rgba(26,26,26,.08), 0 2px 4px rgba(26,26,26,.04);
  --shadow-lg: 0 12px 32px rgba(26,26,26,.12), 0 4px 12px rgba(26,26,26,.06);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--pam-ink);
  background: var(--pam-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pam-red); text-decoration: none; }
a:hover { color: var(--pam-red-dark); }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--pam-black);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(1.75rem, 7.6vw, 3.3rem); font-weight: 700; overflow-wrap: break-word; word-wrap: break-word; }
h2 { font-size: clamp(1.4rem, 5.4vw, 2.15rem); font-weight: 700; overflow-wrap: break-word; }
h3 { font-size: clamp(1.05rem, 3.2vw, 1.35rem); font-weight: 600; overflow-wrap: break-word; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 1em; overflow-wrap: break-word; }

.wrap { width: var(--wrap); margin-inline: auto; max-width: 100%; }

/* ── Sticky top bar ── */
.topnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(254, 252, 249, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--pam-line);
}
.topnav-inner {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 0;
  min-width: 0;
  max-width: 100%;
}
.topnav-logo {
  display: inline-flex; align-items: center;
  min-width: 0; flex: 0 1 auto;
  color: var(--pam-black);
  padding: .2rem 0;
}
.topnav-logo img {
  height: 44px; width: auto; max-width: 220px;
  object-fit: contain; display: block;
}
.topnav-cta {
  margin-left: auto; display: flex; gap: .35rem; align-items: center;
  flex: 0 0 auto;
}
.topnav-tel {
  font-weight: 600; color: var(--pam-black);
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .45rem .55rem; border-radius: var(--radius-sm);
  font-size: .9rem;
  min-width: 40px; min-height: 40px;
  background: transparent; border: 0;
  text-decoration: none;
}
.topnav-tel svg { width: 20px; height: 20px; stroke: var(--pam-red); flex: 0 0 auto; }
.topnav-tel span { display: none; }
.topnav-tel:hover { background: var(--pam-cloud); color: var(--pam-black); }
.topnav-cta .btn {
  display: none;
  cursor: pointer; font: inherit;
}

@media (min-width: 640px) {
  .topnav-inner { padding: .55rem 0; }
  .topnav-logo img { height: 52px; max-width: 260px; }
  .topnav-tel { padding: .4rem .7rem; font-size: .95rem; }
  .topnav-tel span { display: inline; }
  .topnav-cta .btn { display: inline-flex; padding: .6rem .95rem; font-size: .95rem; }
}
@media (min-width: 960px) {
  .topnav-logo img { height: 56px; max-width: 300px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.15rem;
  font-family: var(--f-body); font-weight: 600; font-size: .98rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--pam-red); color: #fff;
  box-shadow: 0 1px 0 var(--pam-red-dark), 0 6px 14px rgba(196,30,42,.22);
}
.btn--primary:hover { background: var(--pam-red-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--pam-black); border-color: var(--pam-line);
}
.btn--ghost:hover { background: var(--pam-cloud); }
.btn--lg { padding: 1rem 1.4rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ── Yelp origin chip ── */
.yelp-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .65rem .35rem .55rem;
  background: #fff; color: var(--yelp-red);
  border: 1px solid #f2c9c9;
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: .82rem;
  letter-spacing: .01em;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.yelp-chip svg { width: 14px; height: 14px; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 2.4rem 0 2.8rem;
  background:
    radial-gradient(1000px 400px at 88% -12%, rgba(196,30,42,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--pam-paper) 100%);
}
.hero-inner {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
.hero-inner > * { min-width: 0; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
  .hero { padding: 3.6rem 0 3.6rem; }
}

/* ── Hero: image-background variant ─────────────────────────
   Full-bleed community photo with a dark gradient overlay for
   text contrast. All copy sits over the darker left/bottom area.
   ------------------------------------------------------------ */
.hero.hero--image-bg {
  padding: 3.2rem 0 3.4rem;
  background: var(--pam-black);
  color: #fff;
  isolation: isolate;
}
@media (min-width: 720px) { .hero.hero--image-bg { padding: 4.4rem 0 4.6rem; min-height: 620px; } }
@media (min-width: 1080px) { .hero.hero--image-bg { padding: 5.6rem 0 5.6rem; min-height: 680px; } }

.hero--image-bg .hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero--image-bg .hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  /* Give the image warmth to blend with the brand paper tone */
  filter: saturate(1.05) contrast(1.02);
}
.hero--image-bg .hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      rgba(20,18,15,.92) 0%,
      rgba(20,18,15,.78) 32%,
      rgba(20,18,15,.42) 62%,
      rgba(20,18,15,.15) 100%),
    linear-gradient(180deg, rgba(20,18,15,.35) 0%, rgba(20,18,15,.55) 100%);
}
.hero--image-bg .hero-inner {
  position: relative; z-index: 1;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 900px) {
  .hero--image-bg .hero-inner { grid-template-columns: minmax(0, 640px); gap: 1.8rem; }
}
.hero--image-bg .hero-copy { color: #fff; }
.hero--image-bg h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero--image-bg h1 em { color: #ffb8bd; }  /* soft red on dark reads better than pure red */
.hero--image-bg .hero-lead {
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
  max-width: 40rem;
}
.hero--image-bg .rating-pill { background: rgba(255,255,255,.96); }
.hero--image-bg .yelp-chip   { background: rgba(255,255,255,.96); }

/* Secondary meta strip (phone + license + memberships) */
.hero-secondary {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .35rem .8rem;
  margin-top: 1.4rem;
  font-size: .9rem;
  color: rgba(255,255,255,.82);
}
.hero-tel-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: #fff; font-weight: 500;
  padding: .35rem .55rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  transition: background .15s ease;
}
.hero-tel-link:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-tel-link svg  { color: #ffb8bd; }
.hero-tel-link b    { color: #fff; font-weight: 700; letter-spacing: .01em; }
.hero-meta-inline   { color: rgba(255,255,255,.72); }
.hero-meta-dot      { color: rgba(255,255,255,.35); }
.hero h1 { max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; text-wrap: balance; }
.hero h1 em {
  font-style: normal; color: var(--pam-red);
  display: block; margin-top: .1em;
}
.hero-lead { max-width: 100%; overflow-wrap: break-word; }
.hero-copy { min-width: 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center; }
.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--pam-steel);
  max-width: 34rem;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.2rem;
}
.hero-cta-row .btn { flex: 1 1 auto; min-width: 0; }
@media (min-width: 600px) {
  .hero-cta-row .btn { flex: 0 0 auto; }
}
.hero-meta {
  margin-top: 1.4rem;
  font-size: .88rem; color: var(--pam-muted);
  display: flex; flex-wrap: wrap; gap: .6rem 1rem;
}
.hero-meta strong { color: var(--pam-black); font-weight: 600; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--pam-cloud);
  max-width: 100%;
  width: 100%;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 -60px 80px -30px rgba(26,26,26,.35);
}
.hero-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(255,255,255,.95);
  border-radius: 999px; padding: .35rem .7rem;
  font-family: var(--f-body); font-weight: 600; font-size: .82rem;
  color: var(--pam-black);
  display: inline-flex; align-items: center; gap: .4rem;
}
.hero-badge b { color: var(--pam-red); }

/* ── Trust bar ── */
.trustbar {
  background: var(--pam-black); color: #fff;
  padding: .95rem 0;
  border-top: 3px solid var(--pam-red);
}
.trustbar ul {
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; margin: 0; padding: 0 1rem; list-style: none;
  font-size: .85rem; color: #eae7e3;
  text-align: center;
  width: 100%;
}
.trustbar li {
  display: inline-flex; align-items: center; gap: .4rem;
  max-width: 100%;
}
.trustbar svg { width: 14px; height: 14px; color: var(--pam-red); flex: 0 0 auto; }
/* Mobile: keep vertical stack. Hide the break element there. */
.trustbar .tb-break { display: none; }

@media (min-width: 720px) {
  .trustbar ul {
    flex-direction: row; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: .55rem 1.5rem;
  }
  .trustbar li { white-space: nowrap; }
  /* Break: forces items 4 and 5 onto a new row that is also centered. */
  .trustbar .tb-break {
    display: block;
    flex-basis: 100%; width: 100%; height: 0;
    padding: 0; margin: 0;
    list-style: none;
  }
}

/* ── Section base ── */
section.pad { padding: 3rem 0; }
section.pad-lg { padding: 4rem 0; }
section.alt { background: var(--pam-cloud); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .74rem; font-weight: 700; color: var(--pam-red);
  padding: .25rem .55rem; background: var(--pam-red-tint);
  border-radius: 999px; margin-bottom: .8rem;
}
.sec-head { max-width: 44rem; margin-bottom: 1.8rem; }
.sec-head.ctr { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--pam-steel); font-size: 1.02rem; }

/* ── Review cards ── */
.reviews {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.reviews > * { min-width: 0; }
@media (min-width: 720px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.rcard {
  background: #fff; border: 1px solid var(--pam-line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.rcard::before {
  content: "\201C"; position: absolute; top: -14px; left: 14px;
  font-family: var(--f-display); font-size: 3.2rem; color: var(--pam-red);
  line-height: 1;
}
.rcard blockquote { margin: 0; font-size: .98rem; color: var(--pam-ink); overflow-wrap: break-word; word-wrap: break-word; }
.rcard figcaption { margin-top: .8rem; font-size: .84rem; color: var(--pam-muted); overflow-wrap: break-word; }
.rcard figcaption b { display: block; color: var(--pam-black); font-weight: 600; font-size: .92rem; }
.rstars { color: #e7a92e; letter-spacing: 1px; font-size: .88rem; margin-bottom: .4rem; }

/* ── Tiles ── */
.tiles {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.tiles > * { min-width: 0; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: #fff; border: 1px solid var(--pam-line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--pam-red-tint); color: var(--pam-red);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: .8rem;
}
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 { margin-bottom: .35rem; }
.tile p { color: var(--pam-steel); margin: 0; font-size: .95rem; }

/* ── Differentiators list ── */
.diff-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .9rem;
  grid-template-columns: 1fr;
}
.diff-list > * { min-width: 0; }
@media (min-width: 720px) { .diff-list { grid-template-columns: repeat(2, 1fr); } }
.diff-list li {
  display: flex; gap: .8rem;
  padding: 1rem 1.1rem;
  background: #fff; border: 1px solid var(--pam-line); border-radius: var(--radius);
}
.diff-check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--pam-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.diff-check svg { width: 14px; height: 14px; }
.diff-list b { display: block; color: var(--pam-black); font-weight: 600; margin-bottom: .15rem; }
.diff-list p { margin: 0; color: var(--pam-steel); font-size: .93rem; }

/* ── Service area ── */
.svc-area .wrap { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.svc-area .wrap > * { min-width: 0; }
@media (min-width: 900px) {
  .svc-area .wrap { grid-template-columns: 1fr 1.3fr; align-items: center; }
}
.svc-list {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; padding: 0; margin: 0;
}
.svc-list li {
  padding: .45rem .8rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--pam-line);
  font-size: .9rem; color: var(--pam-black); font-weight: 500;
}
.svc-list li b { color: var(--pam-red); font-weight: 600; }

/* ── Form ── */
.form-wrap {
  background: #fff;
  border: 1px solid var(--pam-line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: 0 8px 32px rgba(26,26,26,.08), 0 2px 8px rgba(26,26,26,.04);
}
@media (min-width: 720px) { .form-wrap { padding: 2.4rem 2.4rem; } }
.form-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
.form-grid > * { min-width: 0; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 1.4rem; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}
.field label {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem;
  color: var(--pam-black); margin-bottom: .35rem;
  letter-spacing: -.005em;
}
.field label .req { color: var(--pam-red); }
.field-optional {
  font-weight: 500; font-size: .78rem;
  color: var(--pam-muted); letter-spacing: 0;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem .95rem;
  font: inherit; font-size: 1rem;
  color: var(--pam-ink);
  background: #fff; border: 1.5px solid var(--pam-line);
  border-radius: var(--radius);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9ca0a9; }
.field input:hover:not(:focus),
.field select:hover:not(:focus),
.field textarea:hover:not(:focus) { border-color: #c9c3ba; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pam-red);
  box-shadow: 0 0 0 4px rgba(196,30,42,.14);
  background: #fffdfd;
}
.field textarea { min-height: 100px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236b6f78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  padding-right: 2.2rem;
}
.field-hint { font-size: .8rem; color: var(--pam-muted); margin-top: .3rem; }
.honeypot {
  position: absolute !important;
  left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}
.form-legal {
  font-size: .8rem; color: var(--pam-muted); margin: 1rem 0 0;
}
.form-error {
  display: none;
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: var(--pam-red-tint); color: var(--pam-red-dark);
  border: 1px solid #f2c9c9;
  font-size: .9rem;
  margin-top: .8rem;
}
.form-error.show { display: block; }

/* ── Thank-you ── */
.thankyou {
  display: none;
  text-align: center;
  padding: 1.5rem .5rem 1rem;
}
.thankyou.show { display: block; }
.thankyou-check {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--pam-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.thankyou-check svg { width: 32px; height: 32px; }
.thankyou h2 { margin-bottom: .4rem; }
.thankyou ol {
  text-align: left; margin: 1.4rem auto 0; padding: 0;
  max-width: 30rem; list-style: none; counter-reset: step;
}
.thankyou li {
  counter-increment: step;
  padding: .8rem 1rem .8rem 3rem; position: relative;
  border: 1px solid var(--pam-line); border-radius: var(--radius-sm);
  margin-bottom: .6rem; background: #fff;
  font-size: .96rem; color: var(--pam-ink);
}
.thankyou li::before {
  content: counter(step);
  position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pam-red); color: #fff;
  font-family: var(--f-display); font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Footer ── */
footer.pam {
  background: var(--pam-black); color: #cfcfd3;
  padding: 2.4rem 0 1.4rem;
  font-size: .9rem;
}
footer.pam .wrap { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
footer.pam .wrap > * { min-width: 0; }
@media (min-width: 720px) { footer.pam .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer.pam h4 { color: #fff; margin-bottom: .5rem; font-size: 1rem; }
footer.pam a { color: #f2dfe0; }
footer.pam a:hover { color: #fff; }
.badges { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; align-items: center; }
.badges img { height: 34px; width: auto; background: #fff; padding: 4px; border-radius: 4px; }
.footer-bottom {
  border-top: 1px solid #2a2a2f;
  margin-top: 1.6rem; padding-top: 1rem;
  font-size: .8rem; color: #9a9aa2;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* ── Utility ── */
.center { text-align: center; }
.tel-strong { font-weight: 600; color: var(--pam-black); }

/* ============================================================
   Star rating pill (4.8 / 311 Google reviews)
   ============================================================ */
.rating-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .7rem .35rem .5rem;
  background: #fff; border: 1px solid var(--pam-line);
  border-radius: 999px;
  font-family: var(--f-body); font-size: .82rem; color: var(--pam-ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  max-width: 100%;
}
.rating-pill b { color: var(--pam-black); font-weight: 700; font-size: .92rem; }
.rating-pill .rating-count { color: var(--pam-muted); font-weight: 500; }
.rating-stars {
  position: relative;
  display: inline-block;
  width: 76px; height: 14px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M7 1.2l1.85 3.75 4.15.6-3 2.92.7 4.13L7 10.7 3.3 12.6l.7-4.13-3-2.92 4.15-.6z' fill='%23dedbd5'/></svg>");
  background-size: 15.2px 14px;
  background-repeat: repeat-x;
}
.rating-stars-fill {
  position: absolute; inset: 0;
  overflow: hidden;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M7 1.2l1.85 3.75 4.15.6-3 2.92.7 4.13L7 10.7 3.3 12.6l.7-4.13-3-2.92 4.15-.6z' fill='%23e7a92e'/></svg>");
  background-size: 15.2px 14px;
  background-repeat: repeat-x;
}

/* ============================================================
   Hero form starter (1 input + primary CTA → opens modal)
   ============================================================ */
.hero-starter {
  margin-top: 1.6rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.28), 0 3px 10px rgba(0,0,0,.15);
  max-width: 100%;
  backdrop-filter: none;
}
.hero-starter--onphoto { /* stronger shadow when floating on a dark image */
  box-shadow: 0 22px 60px rgba(0,0,0,.42), 0 6px 16px rgba(0,0,0,.22);
}
.hero-starter-head { margin-bottom: .9rem; }
.hero-starter-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pam-red);
  background: var(--pam-red-tint); padding: .2rem .55rem;
  border-radius: 999px; margin-bottom: .55rem;
}
.hero-starter-title {
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 700;
  color: var(--pam-black); margin: 0; letter-spacing: -.01em; line-height: 1.2;
}
.hero-starter-label { display: none; } /* legacy — replaced by title */
.hero-starter-row {
  display: flex; gap: .55rem; align-items: stretch;
  flex-wrap: wrap;
}
.hero-starter-row input {
  flex: 1 1 220px; min-width: 0;
  padding: .95rem 1rem;
  font: inherit; font-size: 1rem;
  color: var(--pam-ink);
  background: var(--pam-paper);
  border: 1.5px solid var(--pam-line);
  border-radius: var(--radius);
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.hero-starter-row input::placeholder { color: #9ca0a9; }
.hero-starter-row input:focus {
  outline: none; border-color: var(--pam-red);
  box-shadow: 0 0 0 4px rgba(196,30,42,.18);
  background: #fff;
}
.hero-starter-row .btn { flex: 0 0 auto; padding: 1rem 1.35rem; }
.hero-starter-hint {
  margin: .8rem 0 0; font-size: .8rem; color: var(--pam-muted);
  display: flex; align-items: center; gap: .4rem;
}
.hero-starter-hint::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #37b34a; box-shadow: 0 0 0 3px rgba(55,179,74,.18);
  display: inline-block;
}

/* ============================================================
   Modal (multi-step overlay form)
   ============================================================ */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,18,15,.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modal-fade .18s ease-out;
}
.modal-panel {
  position: relative; z-index: 1;
  background: #fff;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.3rem 1.3rem;
  animation: modal-rise .22s cubic-bezier(.2,.7,.3,1);
}
@media (min-width: 640px) {
  .modal-panel { padding: 2rem 2rem 1.8rem; }
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-panel { animation: none; }
}
.modal-close {
  position: absolute; top: .6rem; right: .6rem;
  width: 38px; height: 38px;
  background: transparent; border: 0; border-radius: 50%;
  cursor: pointer; color: var(--pam-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--pam-cloud); color: var(--pam-black); }
.modal-close svg { width: 20px; height: 20px; }
.modal-head { margin-bottom: 1.2rem; }
.modal-head .eyebrow { margin-bottom: .6rem; }
.modal-head h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.stepdots {
  display: flex; gap: .4rem; margin: .5rem 0 0; padding: 0; list-style: none;
}
.stepdots li {
  flex: 1 1 0; height: 4px; border-radius: 2px;
  background: var(--pam-line);
  transition: background .18s ease;
}
.stepdots li.active { background: var(--pam-red); }
.stepdots li.done   { background: var(--pam-red-tint); border: 1px solid var(--pam-red); box-sizing: border-box; }

.modal-form .step { display: none; }
.modal-form .step.active { display: block; }
.modal-form .field { margin-bottom: 1rem; }
.modal-form .two-col {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 480px) {
  .modal-form .two-col { grid-template-columns: 1fr 1fr; }
}
.modal-form input, .modal-form select, .modal-form textarea {
  width: 100%; padding: .85rem .95rem;
  font: inherit; font-size: 1rem;
  color: var(--pam-ink);
  background: #fff; border: 1.5px solid var(--pam-line);
  border-radius: var(--radius);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.modal-form input::placeholder, .modal-form textarea::placeholder { color: #9ca0a9; }
.modal-form input:hover:not(:focus),
.modal-form select:hover:not(:focus),
.modal-form textarea:hover:not(:focus) { border-color: #c9c3ba; }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus {
  outline: none; border-color: var(--pam-red);
  box-shadow: 0 0 0 4px rgba(196,30,42,.14);
  background: #fffdfd;
}
.modal-form textarea { min-height: 96px; resize: vertical; }
.modal-form label {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem;
  color: var(--pam-black); margin-bottom: .35rem;
  letter-spacing: -.005em;
}
.modal-form label .req { color: var(--pam-red); }
.modal-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236b6f78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  padding-right: 2.2rem;
}
.role-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem;
}
.role-opt {
  position: relative; cursor: pointer;
  border: 1px solid var(--pam-line); border-radius: var(--radius-sm);
  padding: .55rem .7rem;
  font-weight: 500; font-size: .92rem; color: var(--pam-ink);
  transition: border-color .12s ease, background .12s ease;
  text-align: left;
}
.role-opt input {
  position: absolute !important; opacity: 0; pointer-events: none;
}
.role-opt:hover { background: var(--pam-cloud); }
.role-opt input:checked + span,
.role-opt:has(input:checked) {
  background: var(--pam-red-tint); border-color: var(--pam-red); color: var(--pam-black); font-weight: 600;
}
.modal-nav {
  display: flex; justify-content: space-between; gap: .5rem;
  margin-top: 1rem;
}
.modal-nav-sp { flex: 0 0 auto; }
.modal-error {
  display: none; padding: .55rem .7rem; margin-top: .6rem;
  border-radius: var(--radius-sm);
  background: var(--pam-red-tint); color: var(--pam-red-dark);
  border: 1px solid #f2c9c9;
  font-size: .88rem;
}
.modal-error.show { display: block; }
.modal-thankyou { text-align: center; padding: 1rem .4rem; }
.modal-thankyou[hidden] { display: none; }
.modal-thankyou h2 { margin-bottom: .4rem; }
.modal-thankyou ol {
  text-align: left; margin: 1.2rem auto 0; padding: 0;
  max-width: 30rem; list-style: none; counter-reset: step;
}
.modal-thankyou li {
  counter-increment: step;
  padding: .7rem 1rem .7rem 2.8rem; position: relative;
  border: 1px solid var(--pam-line); border-radius: var(--radius-sm);
  margin-bottom: .55rem; background: #fff;
  font-size: .92rem;
}
.modal-thankyou li::before {
  content: counter(step);
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pam-red); color: #fff;
  font-family: var(--f-display); font-weight: 700; font-size: .84rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-thankyou .btn { margin-top: 1rem; }

/* ============================================================
   Review scroller — auto-scrolls, user can override with scroll/drag,
   arrow buttons for click nav, cards grow on hover.
   ============================================================ */
.reviews-scroller {
  position: relative;
  padding: 1.6rem 0 2rem; /* room for card scale-up on hover */
}
.reviews-marquee-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  /* NO scroll-behavior: smooth here — it turns every rAF write into a
     smooth animation and effectively stalls the auto-scroll. Arrow
     buttons call scrollBy({behavior:'smooth'}) explicitly instead. */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1.6rem 0 1.8rem; /* room for card scale-up on hover */
}
.reviews-marquee-wrap::-webkit-scrollbar { display: none; }

.reviews-marquee-wrap::before,
.reviews-marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 3;
  pointer-events: none;
}
.reviews-marquee-wrap::before { left: 0;  background: linear-gradient(90deg, var(--pam-paper), transparent); }
.reviews-marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--pam-paper), transparent); }

.reviews-track {
  display: flex; gap: 1rem;
  width: max-content;
  padding: 0 1rem;
}
.reviews-track.dragging { cursor: grabbing; user-select: none; }

/* Prev/Next arrow buttons — bold, red, obvious */
.rvs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--pam-red); color: #fff;
  border: 3px solid #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(196,30,42,.35), 0 2px 6px rgba(26,26,26,.15);
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
  animation: rvs-arrow-pulse 2.4s ease-in-out 1s 3;
}
.rvs-arrow:hover {
  background: var(--pam-red-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 22px rgba(196,30,42,.45), 0 4px 8px rgba(26,26,26,.15);
  animation: none;
}
.rvs-arrow:active { transform: translateY(-50%) scale(.95); }
.rvs-arrow:focus-visible { outline: 3px solid var(--pam-red-tint); outline-offset: 2px; }
.rvs-arrow svg { width: 26px; height: 26px; stroke-width: 3; }
.rvs-arrow[data-dir="prev"] { left: .6rem; }
.rvs-arrow[data-dir="next"] { right: .6rem; }
@media (min-width: 720px) {
  .rvs-arrow { width: 60px; height: 60px; }
  .rvs-arrow[data-dir="prev"] { left: 1.4rem; }
  .rvs-arrow[data-dir="next"] { right: 1.4rem; }
  .rvs-arrow svg { width: 28px; height: 28px; }
}
@keyframes rvs-arrow-pulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(196,30,42,.35), 0 2px 6px rgba(26,26,26,.15), 0 0 0 0 rgba(196,30,42,.4); }
  50%      { box-shadow: 0 6px 16px rgba(196,30,42,.35), 0 2px 6px rgba(26,26,26,.15), 0 0 0 12px rgba(196,30,42,0); }
}
@media (prefers-reduced-motion: reduce) {
  .rvs-arrow { animation: none; }
}

/* Discoverability hint under the carousel */
.rvs-hint {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin: .6rem auto 0;
  font-size: .84rem; color: var(--pam-muted);
  text-align: center; padding: 0 1rem;
}
.rvs-hint svg { width: 16px; height: 16px; color: var(--pam-red); }

.rcard--mq {
  flex: 0 0 auto;
  width: 320px; max-width: 90vw;
  background: #fff; border: 1px solid var(--pam-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
  cursor: pointer;
  position: relative;
}
.rcard--mq:hover,
.rcard--mq:focus-visible {
  transform: translateY(-8px) scale(1.045);
  box-shadow: var(--shadow-lg);
  border-color: var(--pam-red-tint);
  z-index: 2;
  outline: none;
}
.rcard--mq:active { transform: translateY(-4px) scale(1.02); }
@media (prefers-reduced-motion: reduce) {
  .rcard--mq { transition: none; }
  .reviews-marquee-wrap { scroll-behavior: auto; }
}
.rcard--mq .rstars { font-size: .82rem; margin: 0; letter-spacing: .5px; }
.rcard--mq blockquote {
  margin: 0; font-size: .93rem; color: var(--pam-ink);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: break-word;
}
.rcard--mq figcaption { margin-top: .3rem; font-size: .82rem; color: var(--pam-muted); }
.rcard--mq figcaption b { display: block; color: var(--pam-black); font-weight: 600; font-size: .9rem; }
.rcard--mq .g-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; color: var(--pam-muted); margin-top: .1rem;
}
.rcard--mq .g-badge svg { width: 14px; height: 14px; }
.marquee-legend {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1rem;
  font-size: .84rem; color: var(--pam-muted);
}
.marquee-legend .rating-pill { padding: .25rem .55rem .25rem .45rem; font-size: .78rem; }
.marquee-legend .rating-pill b { font-size: .84rem; }

/* Review modal (click card → full quote) */
.review-modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.review-modal[hidden] { display: none; }
.review-modal-backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.65); }
.review-modal-panel {
  position: relative; z-index: 1; background: #fff;
  width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-lg);
}
.review-modal-close {
  position: absolute; top: .5rem; right: .5rem;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; color: var(--pam-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.review-modal-close:hover { background: var(--pam-cloud); color: var(--pam-black); }
.review-modal blockquote {
  margin: .8rem 0 0; font-size: 1.02rem; color: var(--pam-ink); line-height: 1.55;
  overflow-wrap: break-word;
}
.review-modal figcaption { margin-top: 1rem; font-size: .88rem; color: var(--pam-muted); }
.review-modal figcaption b { display: block; color: var(--pam-black); font-weight: 700; font-size: 1rem; }
