/* ============================================================================
   Homeboss Theme — FIXED ROLE PAGES (page-about / page-contact / page-reviews)
   ----------------------------------------------------------------------------
   Consumes tokens.css and reuses the shared section rhythm + contact-band +
   button classes from front-page.css (loaded before this sheet). The ONLY new
   scope here is the About-page "Meet the Team" roster (.hb-team*), so this sheet
   is inert on every other page. The contact + reviews templates carry no new
   selectors — they reuse .hb-section, .hb-contact-band__*, .hb-mapband and the
   .hb-btn family from front-page.css.

   Agent brand COLORS never enter here; only the token palette + the gold accent
   are used. A team member's PHOTO is the only agent asset shown — a member with
   no photo renders a token-painted monogram (their initial), never a stock image.
   ============================================================================ */

/* --- Contact page: body left, contact panel (actions + booking) right ------ */
.hb-contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: 3rem;
  align-items: start;
}

.hb-contact-page__grid--single {
  grid-template-columns: 1fr;
}

@media (max-width: 780px) {
  .hb-contact-page__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hb-contact-page__panel {
  padding: 1.5rem;
  border: 1px solid var(--surface-alt);
  border-radius: 12px;
  background-color: var(--surface-alt);
}

/* In the narrow rail the reach-out buttons stack full-width rather than wrap. */
.hb-contact-page__panel .hb-contact-band__actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
}

.hb-contact-page__panel .hb-contact-band__actions .hb-btn {
  text-align: center;
}

.hb-contact-page__panel .hb-contact-band__calendar {
  margin-top: 1.25rem;
}

/* --- About: "Meet the Team" roster ---------------------------------------- */
.hb-team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1080px) {
  .hb-team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hb-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hb-team-card {
  text-align: center;
}

/* The face: a fixed 1:1 circle, object-fit cover — never the photo's native size
   (the standing image rule). The token surface backs it while the image lazy-loads. */
.hb-team-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 180px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--surface-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-team-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The no-photo fallback: the member's initial on the token surface — never stock art. */
.hb-team-card__monogram {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: var(--fs-h1);
  line-height: 1;
  color: var(--action);
}

.hb-team-card__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-h3);
  color: var(--text-heading);
  margin: 0 0 0.25rem;
}

.hb-team-card__role {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-body);
  margin: 0 0 0.25rem;
}

.hb-team-card__license {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--action);
  margin: 0;
}

/* --- Reviews page: the plugin's [homeboss_reviews] header + card grid -------
   The plugin owns the MARKUP + escaping; the theme owns the LOOK here. All color
   comes from the token palette + the gold accent (no agent brand hex). The design:
   a centered header (eyebrow, headline, the aggregate rating in large type, count,
   and a "Read our reviews on Google" link) over a grid of bordered cards — each with
   a gold star row, a bolded headline excerpt, the full review text, the reviewer
   name and a "View Google Review" link. No avatar and no relative-time are rendered. */
.hb-reviews__wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.homeboss-reviews-head {
  text-align: center;
  max-width: var(--measure);
  margin: 0 auto 2.5rem;
}

.homeboss-reviews-eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--fw-eyebrow);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--action);
  margin: 0 0 0.5rem;
}

.homeboss-reviews-headline {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  margin: 0 0 1rem;
}

.homeboss-review-aggregate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.homeboss-review-aggregate__score {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: var(--fs-h1);
  line-height: 1;
  color: var(--text-heading);
}

.homeboss-review-aggregate__count {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-body);
}

.homeboss-reviews-gbp {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--action);
  text-decoration: underline;
}

.homeboss-reviews-gbp:hover {
  color: var(--action-hover);
}

/* Each titled band (Google Reviews, More Testimonials) — the testimonial band is simply
   absent from the markup when empty, so no empty-state rule is needed here. */
.homeboss-reviews-band {
  margin: 0 0 3rem;
}

.homeboss-reviews-band:last-child {
  margin-bottom: 0;
}

.homeboss-reviews-band__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  margin: 0 0 1.5rem;
}

/* The card grid. Cards flow into as many columns as fit at a REAL per-card minimum width
   (320px), so the row can never pin cards down to a couple of words per line regardless of how
   wide the monitor is. At the 1200px container this yields at most 3 across (a 4th 320px track +
   gap overflows 1200), stepping to 2 then 1 as the viewport narrows. min(100%, 320px) keeps a
   single card from overflowing a phone. The .homeboss-cols-N shortcode hint is no longer used to
   FIX a track count — the width drives it — so those brittle overrides are gone. */
.homeboss-review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

/* A bordered card (the Katrina Barrett reference) — token surface, token border. */
.homeboss-review-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--surface-alt);
  border-radius: 12px;
  background-color: var(--surface-base);
}

.homeboss-review-stars {
  font-size: 1.05rem;
  line-height: 1;
  color: var(--accent-gold);
}

.homeboss-review-card__headline {
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  margin: 0;
}

/* The full verbatim review stays in the DOM UNCHANGED (Google's terms forbid altering the words);
   we only visually CLAMP it to 6 lines so cards in a row match height. The "View Google Review"
   link below is the path to the untouched original. */
.homeboss-review-card__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.homeboss-review-card__name {
  font-family: var(--font-heading);
  font-weight: var(--fw-h3);
  font-size: var(--fs-small);
  color: var(--text-heading);
  margin: 0.25rem 0 0;
}

.homeboss-review-card__name a {
  color: var(--text-heading);
  text-decoration: none;
}

.homeboss-review-card__name a:hover {
  text-decoration: underline;
}

.homeboss-review-card__link {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--action);
  text-decoration: none;
}

.homeboss-review-card__link:hover {
  color: var(--action-hover);
  text-decoration: underline;
}

.homeboss-review-powered {
  margin: 1.5rem 0 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-body);
  opacity: 0.75;
}
