/* ============================================================
   Highmark Painters & Handymen — BBB Seal Styles
   Added: 2026-05-28
   Place at: /assets/bbb-seal.css
   ============================================================ */

/* ===== Header seal (200x42 desktop, scales down on mobile) ===== */
.header-bbb-seal {
  display: inline-flex;
  align-items: center;
  margin-right: 0.75rem;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.header-bbb-seal:hover {
  opacity: 0.85;
}

.header-bbb-seal img {
  display: block;
  max-height: 42px;
  width: auto;
}

/* Tablet — slightly smaller seal to share space with phone + hamburger */
@media (max-width: 900px) {
  .header-bbb-seal img {
    max-height: 36px;
  }
  .header-bbb-seal {
    margin-right: 0.5rem;
  }
}

/* Phone — compact seal, hide phone number text (keep icon as tap target) */
@media (max-width: 600px) {
  .header-bbb-seal img {
    max-height: 30px;
  }
  .header-bbb-seal {
    margin-right: 0.35rem;
  }
  .header-phone span {
    display: none;
  }
}

/* Very narrow phones — keep seal but trim margins */
@media (max-width: 360px) {
  .header-bbb-seal img {
    max-height: 26px;
  }
}

/* ===== Footer seal (293x61) ===== */
.footer-bbb-seal {
  display: inline-block;
  margin-top: 1rem;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.footer-bbb-seal:hover {
  opacity: 0.85;
}

.footer-bbb-seal img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Trust cluster — BBB item ===== */
/* Compact variant (inline next to other trust badges) */
.trust-cluster.trust-compact .trust-item--bbb {
  display: inline-flex;
  align-items: center;
  padding: 0;
  line-height: 0;
}

.trust-cluster.trust-compact .trust-item--bbb a {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.trust-cluster.trust-compact .trust-item--bbb a:hover {
  opacity: 0.85;
}

.trust-cluster.trust-compact .trust-item--bbb img {
  display: block;
  vertical-align: middle;
  max-height: 42px;
  width: auto;
}

/* Standard variant (card grid alongside Licensed/Insured/Years) */
.trust-cluster:not(.trust-compact) .trust-item--bbb {
  text-align: center;
  padding: 1rem;
}

.trust-cluster:not(.trust-compact) .trust-item--bbb a {
  display: block;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.trust-cluster:not(.trust-compact) .trust-item--bbb a:hover {
  opacity: 0.85;
}

.trust-cluster:not(.trust-compact) .trust-item--bbb img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* ===== Mobile nav seal (inside hamburger dropdown — larger backup placement) ===== */
.mobile-bbb-seal {
  display: none; /* hidden by default; only shown on small screens */
  padding: 1rem 1rem 0.75rem;
  line-height: 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 0.5rem;
}

.mobile-bbb-seal img {
  display: inline-block;
  max-width: 200px;
  height: auto;
}

/* Show mobile BBB seal in the dropdown on tablets/phones */
@media (max-width: 900px) {
  .mobile-bbb-seal {
    display: block;
  }
}

/* ===== Footer/trust mobile sizing ===== */
@media (max-width: 600px) {
  .footer-bbb-seal img,
  .trust-cluster .trust-item--bbb img {
    max-width: 250px;
  }
}
