/* Hi-Res Homes — Team page "Shooting since 2017" rotating badge. Preview only. */
/* 1125p91 — visible on first paint (no opacity:0, no delay). Size reserved to avoid CLS. */
.hrh-since-badge {
  opacity: 1;
  visibility: visible;

  position: absolute;
  top: clamp(1.25rem, 3vh, 1.85rem);
  right: clamp(0.85rem, 2.2vw, 2rem);
  z-index: 30;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
  color: #111;
  background: rgba(253, 252, 248, 0.96);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(29, 47, 85, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 28px rgba(11, 16, 32, 0.16);
}
.hrh-since-badge .hrh-since-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  line-height: 1.15;
}
.hrh-since-badge .hrh-since-core small {
  display: block;
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.625rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}
.hrh-since-badge .hrh-since-core b {
  display: block;
  margin-top: 0.15rem;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 2.65rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #111;
  font-style: italic;
}
.hrh-since-badge .hrh-since-ring {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  animation: hrh-since-spin 26s linear infinite;
}
@keyframes hrh-since-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 767px) {
  /* 1125p91 — visible on first paint (no opacity:0, no delay). Size reserved to avoid CLS. */
.hrh-since-badge {
  opacity: 1;
  visibility: visible;

    width: 110px;
    height: 110px;
    /* Sit in the right cream beside the house, below the heading and above the CTAs. */
    top: 8.75rem;
    right: 0.7rem;
  }
  .hrh-since-badge .hrh-since-core b { font-size: 2rem; }
  .hrh-since-badge .hrh-since-core small { font-size: 0.5rem; letter-spacing: 0.05em; }
}
@media (prefers-reduced-motion: reduce) {
  .hrh-since-badge .hrh-since-ring {
    animation: none;
  }
}


/* Team page: sit by the heading / "Shooting since 2017" line.
   Do not set position:relative on the Realtors homepage hero pin (.sticky).
   That host also gets data-hrh-since-host, and position:relative was
   overriding Tailwind's position:sticky (same specificity, later file),
   so the day-to-night reveal scrolled away instead of staying pinned. */
[data-hrh-since-host]:not(.sticky) {
  position: relative;
}
[data-hrh-since-host] > /* 1125p91 — visible on first paint (no opacity:0, no delay). Size reserved to avoid CLS. */
.hrh-since-badge {
  opacity: 1;
  visibility: visible;

  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
}
@media (max-width: 767px) {
  [data-hrh-since-host] > /* 1125p91 — visible on first paint (no opacity:0, no delay). Size reserved to avoid CLS. */
.hrh-since-badge {
  opacity: 1;
  visibility: visible;

    position: relative;
    top: auto;
    right: auto;
    margin: 1rem 0 0.65rem;
    width: 110px;
    height: 110px;
  }
  [data-hrh-since-host] > .hrh-since-badge .hrh-since-core b { font-size: 2rem; }
  [data-hrh-since-host] > .hrh-since-badge .hrh-since-core small { font-size: 0.5rem; letter-spacing: 0.05em; }
}


/* Realtors homepage hero: sit in the cream beside the house, reserved box so it
   does not shift the LCP photo. */
section#top[data-hrh-audience="realtors"] .hrh-since-badge,
#hrh-lcp-frame .hrh-since-badge,
#top .sticky .hrh-since-badge,
section#top .hrh-since-badge {
  position: absolute;
  top: clamp(1.25rem, 3vh, 1.85rem);
  right: clamp(0.85rem, 2.2vw, 2rem);
  z-index: 30;
  opacity: 1;
}
@media (max-width: 767px) {
  section#top[data-hrh-audience="realtors"] .hrh-since-badge,
  #hrh-lcp-frame .hrh-since-badge,
  section#top .hrh-since-badge {
    top: 8.75rem;
    right: 0.7rem;
  }
}
.hrh-since-badge .hrh-since-core b {
  font-display: swap;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
}

/* Early badge on body (before React hero mounts): same slot as the in-hero badge. */
body > .hrh-since-badge[data-hrh-since-early] {
  position: fixed;
  top: calc(var(--header-h, 4.5rem) + clamp(1.25rem, 3vh, 1.85rem));
  right: clamp(0.85rem, 2.2vw, 2rem);
  z-index: 30;
  opacity: 1;
  pointer-events: none;
}
@media (max-width: 767px) {
  body > .hrh-since-badge[data-hrh-since-early] {
    top: calc(var(--header-h, 4.5rem) + 8.75rem);
    right: 0.7rem;
  }
}


/* 1125p104 — Team page: same badge as the Realtors homepage, to the right of
   the heading so it does not overlap "Meet the Team" or leave a hole in the grid.
   Host is #team-heading's parent (not .sticky), so position:relative still applies. */
#team-page [data-hrh-since-host] > .hrh-since-badge {
  z-index: 5;
}
@media (min-width: 768px) {
  #team-page [data-hrh-since-host] > .eyebrow,
  #team-page [data-hrh-since-host] > #team-heading,
  #team-page [data-hrh-since-host] > p.mt-4 {
    padding-right: 11rem;
  }
  #team-page [data-hrh-since-host] > .hrh-since-badge {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }
}
@media (max-width: 767px) {
  #team-page [data-hrh-since-host] > .hrh-since-badge {
    position: relative;
    top: auto;
    right: auto;
    margin: 1rem 0 0.85rem;
  }
}
