/* =====================================================================
   Buffalo Property Inspections — Website Build 2
   Brand design system. Warm beige/cream + brand gold (#DCB23E) + ink.
   Hand-authored CSS, no build step — edit HTML directly, host anywhere.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --gold: #dcb23e;
  --gold-deep: #c2942a;
  --gold-soft: #f3e4bc;

  /* Ink / neutrals */
  --ink: #20242b;
  --ink-soft: #4a4f57;
  --muted: #6b7178;
  --line: #e7ddca;

  /* Warm surfaces (beige + cream) */
  --beige: #f3ecdd; /* page base */
  --cream: #fcf9f1; /* cards / header */
  --cream-2: #faf5e8;
  --white: #ffffff;

  /* Accents */
  --green: #2e7d57;
  --green-soft: #e4f1ea;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(32, 36, 43, 0.06), 0 1px 3px rgba(32, 36, 43, 0.05);
  --shadow: 0 6px 20px rgba(32, 36, 43, 0.08);
  --shadow-lg: 0 18px 50px rgba(32, 36, 43, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;

  --font-head: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--beige);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* never allow accidental horizontal scroll */
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  overflow-wrap: break-word; /* long verbatim headings never overflow on mobile */
}
p {
  margin: 0 0 1em;
}
ul {
  margin: 0;
  padding: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.section {
  padding: clamp(54px, 8vw, 100px) 0;
}
.section--tight {
  padding: clamp(40px, 6vw, 70px) 0;
}
.section--cream {
  background: var(--cream);
}
.section--gold {
  background: linear-gradient(135deg, #2a2d33, #20242b);
  color: var(--cream);
}
.section--gold h2,
.section--gold h3 {
  color: var(--white);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7em;
}
.section--gold .eyebrow {
  color: var(--gold);
}
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(34px, 5vw, 56px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin: 0;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(220, 178, 62, 0.35);
}
.btn--gold:hover {
  background: var(--gold-deep);
  box-shadow: 0 10px 24px rgba(220, 178, 62, 0.45);
}
.btn--ink {
  background: var(--ink);
  color: var(--cream);
}
.btn--ink:hover {
  background: #2c313a;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--gold);
  background: var(--cream-2);
}
.btn--lg {
  padding: 1em 1.9em;
  font-size: 1.05rem;
}
.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- Top accent + Header ---------- */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.86rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a {
  color: var(--gold);
  font-weight: 600;
}
.topbar .topbar__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #cfd2d6;
}
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 249, 241, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 72px;
  height: 72px;
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.1;
  color: var(--ink);
}
.brand__name span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(
      1100px 480px at 78% -10%,
      rgba(220, 178, 62, 0.18),
      transparent 60%
    ),
    var(--beige);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(48px, 7vw, 86px);
}
.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  margin-bottom: 0.4em;
}
.hero h1 .hl {
  color: var(--gold-deep);
}
.hero__sub {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 36ch;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 22px;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero__media {
  position: relative;
}
.hero__media img.hero-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.hero__seal {
  position: absolute;
  bottom: -22px;
  left: -22px;
  width: 116px;
  height: 116px;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  box-shadow: var(--shadow);
}
.hero__badge {
  position: absolute;
  top: 18px;
  right: -10px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__badge .stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 1px;
}
.hero__badge strong {
  display: block;
  font-family: var(--font-head);
}
.hero__badge small {
  color: var(--muted);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--ink);
  color: var(--cream);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 22px;
  flex-wrap: wrap;
  padding: 22px;
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
}
.trust-strip .item svg {
  color: var(--gold);
  flex: none;
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card .icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.18rem;
}
.card p {
  color: var(--ink-soft);
  margin: 0;
}

/* feature list */
.checklist li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex: none;
  margin-top: 1px;
}

/* steps */
.steps {
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 64px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  line-height: 1;
}
.stat span {
  color: #cfd2d6;
  font-size: 0.95rem;
}

/* testimonials */
.quote {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.quote .stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.quote p {
  font-size: 1.02rem;
  color: var(--ink);
}
.quote .who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}
.quote .who .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
}

/* pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Widget slot (for the owner to drop embeds) ---------- */
.widget-slot {
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    45deg,
    rgba(220, 178, 62, 0.05),
    rgba(220, 178, 62, 0.05) 12px,
    transparent 12px,
    transparent 24px
  );
  padding: 30px;
  text-align: center;
  color: var(--ink-soft);
}
.widget-slot .pill {
  margin-bottom: 10px;
}
.widget-slot code {
  font-size: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 54px);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 {
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.cta-band p {
  color: #4a3f1c;
  max-width: 560px;
  margin: 0 auto 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9cdd2;
  padding-top: 56px;
}
.site-footer a {
  color: #c9cdd2;
}
.site-footer a:hover {
  color: var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul li {
  list-style: none;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.footer-brand img {
  width: 58px;
  margin-bottom: 12px;
}
.footer-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.footer-badges img {
  height: 54px;
  width: auto;
  background: var(--cream);
  border-radius: 10px;
  padding: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #9aa0a7;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.hide {
  display: none !important;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Promo bar (SAVE25) ---------- */
.promo {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
  color: var(--ink);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 16px;
}
.promo a {
  color: var(--ink);
  text-decoration: underline;
}
.promo code {
  background: rgba(32, 36, 43, 0.12);
  border-radius: 6px;
  padding: 1px 7px;
  letter-spacing: 0.05em;
}

/* ---------- Sub-hero (inner page banner) ---------- */
.subhero {
  background: radial-gradient(900px 380px at 80% -10%, rgba(220, 178, 62, 0.16), transparent 60%), var(--beige);
  border-bottom: 1px solid var(--line);
}
.subhero .container {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(30px, 4vw, 44px);
  text-align: center;
}
.subhero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  margin-bottom: 0.35em;
}
.subhero p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a:hover {
  color: var(--gold-deep);
}
.breadcrumb span {
  color: var(--line);
  margin: 0 6px;
}

/* ---------- Two-column content + sidebar ---------- */
.twocol {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 40px;
  align-items: start;
}
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-top: 1.2em;
}
.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.1em;
}
.prose p,
.prose li {
  color: var(--ink-soft);
}
.sidebar {
  position: sticky;
  top: 96px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar h3 {
  font-size: 1.1rem;
}
.sidebar .btn {
  margin-top: 6px;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: "+";
  color: var(--gold-deep);
  font-size: 1.4rem;
  flex: none;
}
.accordion details[open] summary::after {
  content: "–";
}
.accordion details p {
  color: var(--ink-soft);
  padding-bottom: 18px;
  margin: 0;
}

/* ---------- PDF / resource cards ---------- */
.pdf-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}
.pdf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.pdf-card .pdf-ico {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 11px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
}
.pdf-card h3 {
  font-size: 1.05rem;
  margin: 0 0 2px;
}
.pdf-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Scheduler iframe wrapper ---------- */
.embed-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream);
}
.embed-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ---------- Compliance / fine print note ---------- */
.note {
  background: var(--green-soft);
  border: 1px solid #cfe6da;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.note strong {
  color: var(--ink);
}

/* ---------- Team cards ---------- */
.team-card {
  text-align: center;
}
.team-card .avatar-lg {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .twocol {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sidebar {
    position: static;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero__media {
    max-width: 460px;
    margin: 0 auto;
  }
  /* On the stacked (mobile/tablet) layout, drop the decorative overlapping seal
     so it doesn't collide with the rating badge; the header logo covers branding. */
  .hero__seal {
    display: none;
  }
  .hero__badge {
    right: 6px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .nav,
  .header-cta .btn--ghost {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px;
    box-shadow: var(--shadow);
  }
  .nav.is-open a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .stats {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    text-align: left;
    padding-bottom: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-brand > img {
    width: 66px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-social {
    justify-content: center;
  }
  .site-footer {
    padding-top: 36px;
  }
  .site-footer ul li {
    margin-bottom: 8px;
  }
  .footer-badges {
    justify-content: center;
  }
  .topbar .topbar__meta {
    display: none;
  }
  .topbar .container {
    justify-content: center;
    text-align: center;
  }
  /* full-width, thumb-friendly primary actions */
  .hero__actions,
  .subhero div {
    width: 100%;
  }
  .hero__actions .btn,
  .subhero .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .breadcrumb {
    line-height: 1.8;
  }
  .embed-frame iframe {
    height: 1400px;
  }
}
/* Small phones */
@media (max-width: 480px) {
  /* Keep the header to logo + menu only so it never overflows the screen. */
  .header-cta .btn--gold {
    display: none;
  }
  .brand__name {
    font-size: 0.85rem;
  }
  .brand img {
    width: 64px;
    height: 64px;
  }
  .site-header .container {
    min-height: 64px;
  }
  /* Review badge sits centered under the photo instead of floating off-screen. */
  .hero__badge {
    position: static;
    display: flex;
    width: fit-content;
    margin: 16px auto 0;
    right: auto;
    top: auto;
  }
  .container {
    padding: 0 16px;
  }
  .promo {
    font-size: 0.8rem;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }
  .hero__sub {
    font-size: 1.06rem;
  }
  .card,
  .quote,
  .sidebar {
    padding: 20px;
  }
  .pdf-card {
    flex-wrap: wrap;
  }
  .cta-band {
    padding: 26px 20px;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Custom Google reviews widget ---------- */
.gr-summary {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.gr-score {
  text-align: center;
  min-width: 110px;
}
.gr-score .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
}
.gr-stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 1.05rem;
  white-space: nowrap;
}
.gr-stars .empty {
  color: var(--line);
}
.gr-summary .meta {
  flex: 1;
  min-width: 220px;
}
.gr-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
}
.gr-google .g,
.gr-card .gicon .g {
  display: inline-block;
  vertical-align: middle;
}
.gr-summary .total {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 2px 0 12px;
}
.gr-summary .cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.gr-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.gr-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gr-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.gr-card .name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.gr-card .date {
  color: var(--muted);
  font-size: 0.82rem;
}
.gr-card .gicon {
  margin-left: auto;
}
.gr-card .text {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}
.gr-card .text.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gr-more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--gold-deep);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}
.gr-footer {
  text-align: center;
  margin-top: 24px;
}
.gr-loading,
.gr-error {
  text-align: center;
  color: var(--muted);
  padding: 26px;
}
@media (max-width: 560px) {
  .gr-summary {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .gr-summary .meta {
    text-align: center;
  }
  .gr-summary .cta {
    justify-content: center;
  }
}

/* ---------- Reviews carousel ---------- */
.gr-carousel {
  position: relative;
  margin-top: 24px;
  padding: 0 44px;
}
.gr-viewport {
  overflow: hidden;
}
.gr-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.gr-slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 9px;
  box-sizing: border-box;
  display: flex;
}
.gr-slide .gr-card {
  width: 100%;
}
.gr-carousel .gr-card .text.clamp {
  -webkit-line-clamp: 5;
}
.gr-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}
.gr-nav:hover {
  border-color: var(--gold);
  background: var(--cream-2);
}
.gr-nav.prev {
  left: 0;
}
.gr-nav.next {
  right: 0;
}
@media (max-width: 560px) {
  .gr-carousel {
    padding: 0 36px;
  }
}

/* Trustindex widget container */
.ti-widget { min-height: 200px; }

/* ---------- Reviews widget polish (Trustindex-style) ---------- */
.gr-rateword {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 0.95rem;
  margin-top: 6px;
}
.gr-summary .gr-google .g {
  width: 20px;
  height: 20px;
}
.gr-summary .total strong {
  color: var(--ink);
}
.gr-card {
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}
.gr-card:hover {
  box-shadow: var(--shadow);
}
.gr-nav {
  box-shadow: var(--shadow);
}

/* Floated prose photos (bios, service pages) stack full-width on small screens */
@media (max-width: 640px) {
  .prose img {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
  }
}

/* Blog single-post template: breadcrumb, meta line, readable body typography. */
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { opacity: 0.6; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.post-body { line-height: 1.75; }
.post-body h2 { margin-top: 1.7em; margin-bottom: 0.5em; }
.post-body h3 { margin-top: 1.3em; margin-bottom: 0.4em; }
.post-body p { margin: 0 0 1.1em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em 1.2em; }
.post-body li { margin-bottom: 0.5em; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1em 0; }

/* Mobile: never let a floated prose image squeeze the body text into awkward
   narrow columns — go full width and let text flow beneath. */
@media (max-width: 760px) {
  .prose img {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
  }
  .breadcrumb {
    font-size: 0.78rem;
  }
}

/* Sticky mobile call/book bar - a persistent conversion CTA on phones. */
.mobile-cta-bar { display: none; }
@media (max-width: 760px) {
  .mobile-cta-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(252, 249, 241, 0.97);
    backdrop-filter: saturate(140%) blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(32, 36, 43, 0.1);
  }
  .mobile-cta-bar .btn { flex: 1; justify-content: center; padding: 0.8em 1em; white-space: nowrap; }
  body { padding-bottom: 66px; }
}

/* BPI Home Hub feature rows: text + phone screenshot, side by side. */
.hh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; max-width: 1000px; margin: 0 auto; }
.hh-row .hh-img { text-align: center; }
.hh-row .hh-img img { max-width: 270px; width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg); display: inline-block; }
@media (max-width: 760px) {
  .hh-row { grid-template-columns: 1fr; gap: 22px; }
  .hh-row .hh-img { order: -1; }
}
