/* Homepage polish — 2026-11-18. Loaded last; remove this file's <link> to roll back.
   Nothing here touches booking field ids, names or behaviour. Tokens come from home-v2.css.

   1. Hero composition (wide desktop)   4. Press feedback on tappable cards
   2. Call box rests as a tab           5. FAQ answer opening (motion lives in home-polish JS)
   3. Phone fixes: band gutter, 44px    6. Reduced motion
      chips                                                                                   */

/* ── 1. Hero composition ────────────────────────────────────────────────────────────────
   The photograph is an Escalade on the right half of a frame whose left half is black, and
   the booking card sits on the right — exactly on top of the car. At 1440px only the car's
   left edge was visible, so the hero read as a black rectangle with a form on it.
   From 1280px up the frame is slid left by 26% of the hero so the car stands in the open
   space between the headline and the card, and the frame's right edge is feathered into the
   black so no hard edge shows above or below the card. Below 1280px there is no open space
   to stand it in, so the hero is left exactly as it was. */
@media (min-width: 1280px) {
  .l4h-hero__media {
    inset: 0 26% 0 -26%;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 85%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 85%, transparent 100%);
  }
  .l4h-hero__media img { object-position: 62% 50%; }
  /* Scrim: still heavy under the copy on the left and along the foot; clear through the
     middle where the car now is. The card is opaque, so the right needs nothing. */
  .l4h-hero__scrim {
    background:
      linear-gradient(180deg, rgba(8,8,8,.68) 0%, rgba(8,8,8,.14) 22%, rgba(8,8,8,.04) 58%, rgba(8,8,8,.70) 100%),
      linear-gradient(90deg,  rgba(8,8,8,.84) 0%, rgba(8,8,8,.58) 22%, rgba(8,8,8,.14) 42%, rgba(8,8,8,0) 60%);
  }
  /* The headline and paragraph now cross the car's dark flank: a soft shadow keeps their
     edges crisp without a visible plate behind them. */
  .l4h-hero h1, .l4h-hero__sub { text-shadow: 0 1px 22px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.35); }
  /* The small-caps line above the headline runs out over the bonnet, the brightest thing in the frame. */
  .l4h-hero__eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.6); }
}

/* Depth on scroll: the photograph falls behind the page a little slower than the copy.
   Tied to the scrollbar, not to a clock, so it never plays on its own. Only where the
   browser can do it natively and the visitor has not asked for less motion. */
@supports (animation-timeline: scroll()) {
  @media (min-width: 1280px) and (prefers-reduced-motion: no-preference) {
    .l4h-hero__media {
      animation: l4hHeroDepth linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    @keyframes l4hHeroDepth { to { transform: translate3d(0, 8%, 0); } }
  }
}

/* ── 2. Call box rests as a tab ─────────────────────────────────────────────────────────
   On desktop the box slid in and stayed open, 234px wide, on top of the content column:
   it covered "Visit Beverly Hills Lux Ride", the last route chip and two city cards. It now
   makes the same entrance, then after five seconds rests as its round icon at the edge
   (home-polish JS adds .is-rest). Hover or keyboard focus opens it again. */
@media (min-width: 1024px) {
  .l4h-callbox__text { transition: opacity 200ms ease; }
  .l4h-callbox.is-in.is-rest { transform: translate3d(calc(100% - 62px), 0, 0); }
  .l4h-callbox.is-in.is-rest .l4h-callbox__text { opacity: 0; }
  .l4h-callbox.is-in.is-rest:hover,
  .l4h-callbox.is-in.is-rest:focus-visible { transform: translate3d(0, 0, 0); }
  .l4h-callbox.is-in.is-rest:hover .l4h-callbox__text,
  .l4h-callbox.is-in.is-rest:focus-visible .l4h-callbox__text { opacity: 1; }
}

/* ── 3. Phone fixes ─────────────────────────────────────────────────────────────────────
   The holiday band set `padding: 14px 0`, which also zeroed the page gutter that .l4h-wrap
   provides. On a wide screen the wrap's max-width hid that; on a phone the pill, the
   sentence and the link all started at the glass edge. */
.l4h-season__in { padding-inline: clamp(20px, 5vw, 44px); }

/* Chips were 34–36px tall. On a touch screen they are now 44px, the size a thumb needs. */
@media (pointer: coarse) {
  .l4h-also a,
  .l4h-routes__more a,
  .l4h-areas__also a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .l4h-season__link { min-height: 44px; }
}

/* ── 4. Press feedback ──────────────────────────────────────────────────────────────────
   Buttons already answer a press; the tappable cards and chips did not, so on a phone a
   tap gave no sign it had landed until the next page arrived. */
.l4h .l4h-route:active,
.l4h .l4h-areas__grid a:active,
.l4h .l4h-journey:active,
.l4h .l4h-plan__links a:active,
.l4h .l4h-also a:active,
.l4h .l4h-routes__more a:active { transform: scale(.985); transition-duration: 120ms; }

/* ── 5. FAQ answers ─────────────────────────────────────────────────────────────────────
   Answers used to appear at full height in one frame. home-polish JS opens them over 260ms;
   this keeps the text clipped to the box while it grows. */
.l4h-faq__a.is-opening { overflow: hidden; }

/* ── 6. Reduced motion ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .l4h-callbox__text { transition: none; }
  .l4h .l4h-route:active,
  .l4h .l4h-areas__grid a:active,
  .l4h .l4h-journey:active,
  .l4h .l4h-plan__links a:active,
  .l4h .l4h-also a:active,
  .l4h .l4h-routes__more a:active { transform: none; }
}

/* ════════════════════════════════════════════════════════════════════
   2026-11-19 — phone clean-up. Everything below is new in this file;
   everything above is home-polish-20261118.css unchanged.
   ════════════════════════════════════════════════════════════════════ */

/* 1. One dock row instead of two floating layers.
      home-eta re-opens the full "Call Reservations" box on every 120px of scroll, so on a
      phone it sat over the right half of the text almost permanently, with the See Prices
      pill underneath it. It now introduces itself once, then stays a phone tab in the same
      row as the pill. The tab is still the tel: link; its label stays in the accessibility
      tree (opacity, not display). .is-quiet is added by home-polish-20261119.js. */
@media (max-width: 1023px) {
  .l4h-callbox.is-quiet.is-in,
  .l4h-callbox.is-quiet.is-tab { transform: translate3d(calc(100% - 54px), 80px, 0); }
  .l4h-callbox.is-quiet .l4h-callbox__text { opacity: 0; }

  /* The closing section and the footer carry their own Book and Call buttons:
     the dock steps aside there instead of doubling them and covering footer links. */
  .l4h-dock-off .l4h-quotebar,
  .l4h-dock-off .l4h-callbox {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
    transition: opacity 200ms ease, transform 340ms var(--l4h-ease-out, ease), visibility 0s linear 200ms;
  }
}

/* 2. Headings that sit outside .l4h-head had no space under them (the reset zeroes it and
      only .l4h-head h2 gets padding), so a three-line heading touched its paragraph. */
.l4h .l4h-plan__copy > .l4h-h2,
.l4h .l4h-final .l4h-h2 { margin-bottom: 16px; }

/* 3. Guides: six on a phone, the rest behind one button (added by the script, so without
      script all twelve simply show). The links stay in the document either way. */
.l4h-guides__more { display: none; }
@media (max-width: 639px) {
  .l4h-journeys__grid.is-clipped > .l4h-journey:nth-child(n+7) { display: none; }
  .l4h-guides__more {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 52px; margin-top: 14px; padding: 0 20px;
    border: 1px solid rgba(122, 95, 34, .45); border-radius: 14px;
    background: transparent; color: #151410;
    font: 600 15px/1.2 var(--l4h-body, inherit); letter-spacing: .01em;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
  }
  .l4h-guides__more svg { width: 16px; height: 16px; flex: 0 0 auto; }
  .l4h-guides__more:active { transform: scale(.985); background: rgba(122, 95, 34, .07); }
  .l4h-guides__more:focus-visible { outline: 3px solid #7A5F22; outline-offset: 3px; }
}

/* 4. Footer on a phone (this page only): the three link lists run two-up.
      The directory groups are closed by the script; they open on a tap as before. */
@media (max-width: 639px) {
  .l4h-page .lux-footer-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
  .l4h-page .lux-footer-links li { margin-bottom: 0; }
  .l4h-page .lux-footer-links a { display: block; padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .l4h-dock-off .l4h-quotebar, .l4h-dock-off .l4h-callbox { transition: none; }
  .l4h-guides__more { transition: none; }
  .l4h-guides__more:active { transform: none; }
}
