/* ==========================================================================
   Recovery page (2026-10-24, Valgorithm "Recovery page redesign" notes)
   Video hero with no text that fades into the page, a "Ready to recover?"
   block, and the nine-card amenity grid. Hero, block and cards read as one
   section on --ink-900 with no divider lines. Loaded only by pages/recovery.html.
   ========================================================================== */

/* ---- Hero: video only, bottom 60% fades to the page colour ---- */
.hero--recovery { min-height: 64vh; min-height: 64svh; padding: 0; }
.hero--recovery .hero__bg::before {
  background: linear-gradient(180deg, rgba(10,14,26,0) 0%, rgba(10,14,26,0) 40%, #0A0E1A 100%);
}
/* The film-grain layer fades out with the video, or its edge shows as a seam against the plain navy below. */
.hero--recovery .hero__bg::after {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
}

/* ---- One dark section under the hero ---- */
/* margin-top -1px: the hero's height is a fraction of the screen (e.g. 373.5px), and at a half-pixel
   edge the cream page background shows through as a hairline. Overlapping by 1px removes it. */
/* flow-root (2026-10-28): without it the block's -120px top margin dragged this solid navy background up over
   the bottom 120px of the video on computers, which showed as a hard line. Phones have no overlap. */
.recover { display: flow-root; position: relative; margin-top: -1px; background: var(--ink-900); color: var(--paper); padding: 0 0 120px; }

.recover__cta { position: relative; z-index: 3; margin: -120px auto 0; padding: 0 20px 150px; text-align: center; }
/* Title in the middle of the video (2026-10-29): the block is laid over the video, from the nav down to the
   video's bottom edge, and centred in it; the cards start right where the video ends. So the space between
   the nav and the title equals the space between the buttons and the cards. */
.recover__cta {
  position: absolute; left: 0; right: 0; bottom: 100%; margin: 0;
  height: calc(64vh - var(--nav-h)); height: calc(64svh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 20px;
}
.recover__title {
  font-family: 'Libre Caslon Display', Georgia, serif; font-style: normal; font-weight: 400;
  font-size: clamp(40px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -0.01em;
  color: var(--paper); margin: 0 0 30px;
}
.recover__cta .pill { height: auto; min-height: 0; padding: 15px 32px; font-size: 12px; }

/* ---- Amenity photo cards ---- */
.rgrid {
  list-style: none; margin: 0 auto; padding: 0 40px; max-width: 1240px; box-sizing: content-box;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px;
}
.rcard { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--ink-700); isolation: isolate; }
.rcard__media, .rcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rcard__media img { object-fit: cover; display: block; filter: saturate(.85) brightness(.9); }
/* Tint: navy colour blend at 22% (keeps the wood and red light warm)… */
.rcard__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: #1E3358; mix-blend-mode: color; opacity: .22;
}
/* …then a light darkening layer plus the text-legibility gradient. */
.rcard__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(0deg, rgba(10,14,26,.88) 0%, rgba(10,14,26,.45) 32%, rgba(10,14,26,0) 58%),
    linear-gradient(rgba(10,14,26,.12), rgba(10,14,26,.12));
}
.rcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 28px 28px; }
.rcard__name {
  font-family: 'Libre Caslon Display', Georgia, serif; font-weight: 400; font-style: normal;
  font-size: 32px; line-height: 1.1; color: var(--paper); margin: 0 0 10px;
}
.rcard__where {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 11px; line-height: 1.5;
  letter-spacing: .22em; text-transform: uppercase; color: #B7DAF9; margin: 0;
}

/* ---- Tablet ---- */
@media (max-width: 1100px) {
  .rgrid { gap: 28px; }
  .rcard__name { font-size: 26px; }
  .rcard__body { padding: 0 22px 22px; }
}

/* ---- Phone (≤700px): no overlap, thin alternating strips ---- */
@media (max-width: 700px) {
  .hero--recovery { min-height: 46vh; min-height: 46svh; }
  .recover { padding-bottom: 80px; }
  .recover__cta { margin-top: 0; padding: 0 20px 50px; }
  .recover__cta { margin: 0; padding: 0 20px; height: calc(46vh - var(--nav-h)); height: calc(46svh - var(--nav-h)); }
  .recover__title { font-size: clamp(34px, 9vw, 40px); margin-bottom: 24px; }
  /* Phone buttons hug their text (Nick 2026-10-24: full-width ones read too big); side by side when they fit. */
  /* The sitewide phone rule caps .hero__pills at 320px with no auto margins, which parked the buttons left of centre. */
  .recover__cta .hero__pills { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: none; margin: 0 auto; }
  .recover__cta .pill { width: auto; height: 40px; padding: 0 20px; font-size: 11px; gap: 8px; }

  .rgrid { grid-template-columns: 1fr; gap: 10px; padding: 0 20px; box-sizing: border-box; }
  .rcard { aspect-ratio: 2.35 / 1; }
  .rcard__body { top: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 16px 14px; }
  .rcard__name { font-size: 24px; margin-bottom: 6px; }
  .rcard__where { font-weight: 500; font-size: 9.5px; letter-spacing: .14em; white-space: nowrap; }
  /* Odd cards: text and dark gradient on the left. Even cards: on the right. */
  .rcard__media::after {
    background:
      linear-gradient(90deg, rgba(10,14,26,.85) 0%, rgba(10,14,26,.4) 45%, rgba(10,14,26,0) 75%),
      linear-gradient(rgba(10,14,26,.12), rgba(10,14,26,.12));
  }
  .rcard:nth-child(even) .rcard__body { align-items: flex-end; text-align: right; }
  .rcard:nth-child(even) .rcard__media::after {
    background:
      linear-gradient(270deg, rgba(10,14,26,.85) 0%, rgba(10,14,26,.4) 45%, rgba(10,14,26,0) 75%),
      linear-gradient(rgba(10,14,26,.12), rgba(10,14,26,.12));
  }
}
/* 2026-11-09 (width sweep): on 320–330px phones the longest location line ("Yorktown · Somers · Pelham · Port
   Chester") was 22px wider than its card and was cut off mid-word. Tighter tracking there keeps it on one line,
   and it may wrap rather than be cut if a longer list is ever added. */
@media (max-width: 345px) {
  .rcard__where { letter-spacing: .08em; white-space: normal; }
}
/* 2026-11-09 (WCAG 1.4.3): the small location line runs past the dark side of the card's gradient on phones and
   measured 2.9:1 over the lighter photos (4.5:1 is the floor). A dark halo keeps it readable on any picture. */
.rcard__where {
  text-shadow: 0 0 1px rgba(10,14,26,.95), 0 0 3px rgba(10,14,26,.95), 0 0 7px rgba(10,14,26,.9),
               0 0 14px rgba(10,14,26,.8), 0 0 26px rgba(10,14,26,.6);
}
.rcard__name { text-shadow: 0 1px 2px rgba(10,14,26,.45), 0 0 18px rgba(10,14,26,.5); }
