/* Hi-Res Homes 1125p20 — "How it works" (#process, Rentals homepage only):
   premium step cards. This file is the STATIC look (loaded from the head,
   no JS needed, content always visible). Motion lives in process-lively.*. */
#process ol { position: relative; }
#process ol > li { position: relative; }
#process ol > li > div {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  padding: 30px 26px 32px;
  border-radius: 22px;
  background: linear-gradient(165deg, #ffffff 0%, #fbf8f1 100%);
  border: 1px solid rgba(35, 71, 134, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 44px -26px rgba(35, 71, 134, 0.38),
    0 6px 14px -8px rgba(35, 71, 134, 0.14);
  overflow: hidden;
  isolation: isolate;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
}
/* Gold-to-navy accent across the top edge. */
#process ol > li > div::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, #DDA315, #f1c75a 45%, #234786);
  transform-origin: 0 50%;
  transform: scaleX(var(--hrh-acc, 1));
  transition: transform 0.7s cubic-bezier(.2, .8, .2, 1);
  z-index: 1;
  pointer-events: none;
}
/* Soft light sheen that follows the pointer (shown by process-lively). */
#process ol > li > div::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(380px circle at var(--hrh-mx, 50%) var(--hrh-my, 0%), rgba(221, 163, 21, 0.16), transparent 46%),
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, var(--hrh-sweep, 140%) 0;
  opacity: var(--hrh-sheen, 0);
  transition: opacity 0.35s ease;
  z-index: -1;
  pointer-events: none;
}
#process ol > li > div > span:first-child {
  display: inline-block;
  color: rgba(35, 71, 134, 0.30);
  transition: color 0.5s ease;
  transform-origin: 40% 55%;
}
#process ol > li > div > h3 { position: relative; }

/* Progress rail + step dots, desktop 4-up only (sits in the existing gap). */
@media (min-width: 1024px) {
  #process ol::before,
  #process ol::after {
    content: "";
    position: absolute;
    left: 12.5%; right: 12.5%;
    top: -30px;
    height: 2px;
    border-radius: 2px;
    pointer-events: none;
  }
  #process ol::before { background: rgba(35, 71, 134, 0.12); }
  #process ol::after {
    background: linear-gradient(90deg, #DDA315, #f1c75a 60%, #234786);
    transform-origin: 0 50%;
    transform: scaleX(var(--hrh-prog, 1));
  }
  #process ol > li::before {
    content: "";
    position: absolute;
    left: 50%; top: -37px;
    width: 16px; height: 16px;
    margin-left: -8px;
    border-radius: 50%;
    box-sizing: border-box;
    background: #fffdf8;
    border: 2px solid #DDA315;
    z-index: 1;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
  }
}

/* Dark mode */
html[data-theme="dark"] #process ol > li > div {
  background: linear-gradient(165deg, #1b2636 0%, #141c28 100%);
  border-color: rgba(158, 182, 224, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 44px -24px rgba(0, 0, 0, 0.75),
    0 6px 14px -8px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] #process ol > li > div::after {
  background:
    radial-gradient(380px circle at var(--hrh-mx, 50%) var(--hrh-my, 0%), rgba(221, 163, 21, 0.20), transparent 46%),
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.10) 50%, transparent 65%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, var(--hrh-sweep, 140%) 0;
}
html[data-theme="dark"] #process ol > li > div > span:first-child { color: rgba(158, 182, 224, 0.38); }
html[data-theme="dark"] #process ol::before { background: rgba(158, 182, 224, 0.16); }
html[data-theme="dark"] #process ol > li::before { background: #121821; }


/* 1125p23 — tighter section padding (match map/stats/reviews density).
   Before: Tailwind py-24 (6rem) mobile, md:py-32 (8rem) desktop.
   After: 2.25rem mobile, 3rem from 768px up. #process specificity beats the utilities. */
#process {
  padding-top: 2.25rem;
  padding-bottom: 0; /* 1125p31: was 2.25rem / 36px; gap below Book now is coverage pad-top */
}
#process ol + div {
  margin-top: 1.75rem; /* 28px; was utility mt-6 (24px), measured gap 28px */
}
@media (min-width: 768px) {
  #process {
    padding-top: 3rem;
    padding-bottom: 0; /* was 3rem / 48px */
  }
  #process ol + div {
    margin-top: 2.25rem; /* 36px desktop */
  }
}
