/* Hi-Res Homes 1125p108 — Realtor package cards (homepage + /realtor-pricing/).
   1) Title icon row (camera / plus / drone / video / AI chip): single-colour masks
      that follow the title colour in light and dark mode. They pulse with the
      footer socials' own keyframes (@keyframes pulseIcon, social-icons.css:
      2s ease-in-out infinite, scale 1 -> 1.1). Nothing is forked or redefined.
   2) The How-it-works glow/entrance (process-lively.css / process-cards.css) is
      shared by selector list, so every value lives in one place. This file only
      adds the structural bits the package cards need. No coin-flip: the package
      cards have no number to spin and the text/prices are never rotated away. */

/* ---- title row ---- */
.hrh-pkg-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.85rem;
  row-gap: 0.4rem;
}
.hrh-pkg-name { min-width: 0; }
.hrh-pkg-icons {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  line-height: 0;
}
.hrh-pkg-icon {
  --hrh-ic-h: 26px;
  --hrh-ic-ar: 1;
  display: block;
  flex: 0 0 auto;
  height: var(--hrh-ic-h);
  aspect-ratio: var(--hrh-ic-ar);
  background-color: currentColor;
  -webkit-mask: var(--hrh-ic-src) center / contain no-repeat;
  mask: var(--hrh-ic-src) center / contain no-repeat;
  animation: pulseIcon 2s ease-in-out infinite;
}
.hrh-pkg-icon--camera { --hrh-ic-src: url(/assets/pkg-icons/camera.png?v=1125p108); --hrh-ic-ar: 1.574; --hrh-ic-h: 26px; }
.hrh-pkg-icon--drone  { --hrh-ic-src: url(/assets/pkg-icons/drone.png?v=1125p108);  --hrh-ic-ar: 2.087; --hrh-ic-h: 24px; }
.hrh-pkg-icon--video  { --hrh-ic-src: url(/assets/pkg-icons/video.svg?v=1125p108);  --hrh-ic-ar: 1.015; --hrh-ic-h: 28px; }
.hrh-pkg-icon--plus   { --hrh-ic-src: url(/assets/pkg-icons/plus.svg?v=1125p108);   --hrh-ic-ar: 1;     --hrh-ic-h: 14px; }
.hrh-pkg-icon--ai     { --hrh-ic-src: url(/assets/pkg-icons/ai.svg?v=1125p108);     --hrh-ic-ar: 1;     --hrh-ic-h: 22px; } /* small, next to the video camera */

/* Same offscreen pause as the footer: pkg-lively.js toggles .is-offscreen. */
.hrh-pkg-grid.is-offscreen .hrh-pkg-icon { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hrh-pkg-icon { animation: none !important; transform: none; }
}

/* ---- card structure for the shared How-it-works glow ---- */
.hrh-pkg-grid[data-hrh-cards] > li > div { perspective: 1200px; }
.hrh-pkg-grid > li > div > article {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
}
.hrh-pkg-grid > li > div > article > * { position: relative; }

/* Two-column cards between 768px and 1139px are too narrow for "MLS Creative
   Luxury" + four icons on one line. Stack the icon row under the title on
   EVERY card there so the card headers stay level across each row. */
@media (min-width: 768px) and (max-width: 1139px) {
  .hrh-pkg-title { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hrh-pkg-icon { --hrh-ic-scale: .86; height: calc(var(--hrh-ic-h) * .86); }
  .hrh-pkg-icons { gap: 0.45rem; }
}
