/* ============================================================================
   htm-compat.css: conversion layout and the legacy-page glue.
   Loaded after htm-brand.css and before htm-pages.css, so a page-family block
   in htm-pages.css can still refine anything here.

   Contents
     1. Legacy page classes (fact photo, trust strip, breadcrumb)
     2. Quote section: form column, "what happens next" aside, numbered steps
     3. CTA groups and hero actions
     4. Home offer dock: sticky credit chip, compact on phones
     5. Services hub and crane/removal pages: offer alignment
        (htm-services-hub.css loads after this file and uses !important in
        places, so these rules use ":root" and !important to hold their ground)

   The form and quiz skin is in htm-brand.css, the offer cards are in
   trust-offer.css. Spa tokens only: no new fonts or colours.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. LEGACY PAGE CLASSES
   ---------------------------------------------------------------------------- */
.fact-photo{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:16px;border:1px solid var(--htm-line)}
.fact-media picture{display:block;width:100%}
.btn-cta:hover,.btn-cta:focus-visible{box-shadow:0 0 0 2px rgba(212,137,58,.34)}
.trust-strip{background:var(--htm-ink);color:#fff}
.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;padding:22px 0}
.trust-item{display:flex;align-items:flex-start;gap:.75rem;min-width:0}
.trust-item svg{flex:0 0 28px;width:28px;height:28px;margin-top:2px;color:var(--htm-pool-bright)}
.trust-item>div{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.trust-item strong{display:block;color:#fff;font-size:1.0625rem;line-height:1.3}
.trust-item span{display:block;font-size:.9375rem;line-height:1.55;color:rgba(255,255,255,.85)}
@media (max-width:760px){.trust-grid{grid-template-columns:1fr}}
[aria-label="Breadcrumb"] ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:6px 0 0;color:var(--htm-muted)}
[aria-label="Breadcrumb"] li:not(:last-child)::after{content:"/";margin-left:8px;color:var(--htm-muted)}
[aria-label="Breadcrumb"] a{color:var(--htm-muted);text-decoration:none}
[aria-label="Breadcrumb"] a:hover{color:var(--htm-pool-deep);text-decoration:underline}
[aria-label="Breadcrumb"] [aria-current]{color:var(--htm-ink);font-weight:700}

/* ----------------------------------------------------------------------------
   2. QUOTE SECTION
   .quote-grid holds the form and the aside. The aside is "what happens after
   you send this": a short numbered list, never a stack of boxed cards.
   ---------------------------------------------------------------------------- */
.quote-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:40px;align-items:start}
@media (max-width:1100px){.quote-grid{grid-template-columns:1fr;gap:30px}}

/* The "Would you rather talk it through?" line sits under a centred heading. */
#quote .section__head+.section__lead{text-align:center;margin-inline:auto!important}

/* On the pages where the aside sits beside the form it is its own card. On the
   hub and crane pages it sits inside the form card, under a hairline. */
.quote-grid>.quote-aside{padding:1.75rem;background:#fff;border:1px solid var(--htm-line);border-radius:18px}
@media (min-width:1101px){.quote-grid>.quote-aside{position:sticky;top:calc(var(--htm-nav-h) + 1.5rem);align-self:start}}
.quote-aside>h3{margin:0 0 1.25rem;font-family:var(--font-display);font-size:1.375rem;line-height:1.25;letter-spacing:-.01em;color:var(--htm-ink)}
.quote-aside>p{font-size:.9375rem;line-height:1.6}
.quote-aside>p.src{margin:1.25rem 0 0;padding-top:1.25rem;border-top:1px solid var(--htm-line);font-size:.875rem;color:var(--htm-muted)}

/* The coupon can sit at the top of the aside: a compact card above the list. */
.quote-aside .coupon-slot{margin:0 0 1.5rem}
.quote-aside .coupon{padding:1rem 1.125rem;gap:.75rem 1rem}
.quote-aside .coupon-amt{align-self:start}

/* Numbered steps, in the aside and wherever .htm-steps-list is used. The
   important flags beat htm-brand.css, which boxes every ol.steps item and
   moves it on hover. Scoped to .quote-aside so the other pages that use
   ol.steps outside the aside keep their own treatment. */
.quote-aside ol.steps,.quote-aside .htm-steps-list{list-style:none;counter-reset:s;display:grid;gap:0!important;margin:0!important;padding:0}
.quote-aside ol.steps li,.quote-aside ol.steps li:hover,
.quote-aside .htm-steps-list li,.quote-aside .htm-steps-list li:hover{counter-increment:s;position:relative;padding:0 0 1.125rem 2.75rem!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
.quote-aside ol.steps li:last-child,.quote-aside .htm-steps-list li:last-child{padding-bottom:0!important}
.quote-aside ol.steps li::before,.quote-aside .htm-steps-list li::before{content:counter(s);position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--htm-dusk);color:#fff;font-size:.9375rem;font-weight:700;line-height:1}
.quote-aside ol.steps li:not(:last-child)::after,.quote-aside .htm-steps-list li:not(:last-child)::after{content:"";position:absolute;left:calc(1rem - 1px);top:2.25rem;bottom:.25rem;width:2px;background:var(--htm-line)}
.quote-aside ol.steps li p,.quote-aside .htm-steps-list li p{margin:0!important;font-size:.9375rem!important;line-height:1.6!important;color:var(--text-secondary)!important}

/* The same list outside the aside (a process, a short sequence): a numbered
   column with a serif step title. */
.htm-steps-list{list-style:none;counter-reset:s;display:grid;gap:1.5rem;margin:1.5rem 0;padding:0}
.htm-steps-list>li{counter-increment:s;position:relative;padding:0 0 0 3.5rem}
.htm-steps-list>li::before{content:counter(s);position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:50%;background:var(--htm-dusk);color:#fff;font-size:1.0625rem;font-weight:700;line-height:1}
.htm-steps-list>li>h3{margin:0 0 .375rem;font-family:var(--font-display);font-size:1.25rem;line-height:1.3;color:var(--htm-ink)}
.htm-steps-list>li>p{margin:0;color:var(--text-secondary)}

/* ----------------------------------------------------------------------------
   3. CTA GROUPS AND HERO ACTIONS
   A call is never a second copper button: chrome.css draws a tel: button as a
   navy outline on light bands and a white outline on navy. Here: spacing,
   centring under centred headings, and full-width stacking on phones.
   ---------------------------------------------------------------------------- */
.hero-actions{display:flex;flex-wrap:wrap;gap:1rem}
.section__head~.htm-cta-group,.section__head~.hero-actions,.htm-section>.wrap>.htm-cta-group{justify-content:center}
/* A secondary-classed phone link reads as a call too, not as a second action
   of the same weight. */
:root a.btn-secondary[href^="tel:"]{background:transparent;color:var(--htm-dusk)!important;border-color:var(--htm-dusk);box-shadow:none}
:root a.btn-secondary[href^="tel:"]:hover{background:var(--htm-dusk);color:#fff!important;box-shadow:none}
@media (max-width:640px){
  .htm-cta-group,.hero-actions{flex-direction:column;align-items:stretch}
  .htm-cta-group>a,.hero-actions>a{width:100%}
}

/* ----------------------------------------------------------------------------
   4. OFFER DOCK
   The sticky chip is shared by the home and the services hub. The phone layout
   is scoped to body:not(.htm-mag): the hub reuses these class names with
   different children, and section 5 gives it its own compact card.
   ---------------------------------------------------------------------------- */
.htm-offer-dock{overflow:visible}
@media (min-width:1025px){
  /* The chip stays in view beside the form, including after the contact step
     has made the form card more than twice as tall. Home and services hub. */
  .htm-offer-dock .htm-credit-chip{position:sticky;top:calc(var(--htm-nav-h) + 1.5rem);align-self:start}
}
@media (max-width:1024px){
  /* One compact card above the form. The form card follows at once and carries
     the real button, so the chip's own button goes. */
  body:not(.htm-mag) .htm-credit-chip{display:grid;grid-template-columns:auto 1fr;column-gap:1rem;align-items:center;max-width:none;margin:0;padding:1.25rem;text-align:left}
  body:not(.htm-mag) .htm-credit-chip__badge{grid-column:1/-1;justify-self:start;margin-bottom:.75rem}
  body:not(.htm-mag) .htm-credit-chip__amount{font-size:3rem;margin:0}
  body:not(.htm-mag) .htm-credit-chip__label{margin:0;font-size:1.25rem}
  body:not(.htm-mag) .htm-credit-chip__terms{grid-column:1/-1;margin:.75rem 0 0;padding:.75rem 1rem;font-size:.875rem}
  body:not(.htm-mag) .htm-credit-chip .btn-copper{display:none}
}

/* ----------------------------------------------------------------------------
   5. SERVICES HUB AND CRANE / REMOVAL PAGES
   htm-services-hub.css carries a second skin for these pages. The offer and
   the quiz are brought in line with the rest of the site, so a visitor sees
   one offer card and one form wherever they land.
   ---------------------------------------------------------------------------- */

/* 5a. Coupon on the crane and removal pages. Same compact navy card as
   everywhere (trust-offer.css); their sheet paints a copper edge and a split
   amount column with !important, so each property is taken back here. */
:root .htm-mag.htm-lantern .coupon,:root .htm-lantern .coupon{background:linear-gradient(135deg,var(--htm-dusk) 0%,var(--htm-dusk-rich) 100%)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:var(--radius-card)!important;box-shadow:var(--shadow-soft)!important;color:#fff!important}
:root .htm-lantern .coupon-amt{background:#fff!important;border:0!important;border-radius:50%!important;min-width:0!important;padding:0!important;align-items:center!important;margin:0}
:root .htm-lantern .coupon-amt b{font-size:1.6rem!important;font-weight:700!important;color:var(--htm-dusk)!important}
:root .htm-lantern .coupon-amt span{color:var(--htm-pool-text)!important}
:root .htm-lantern .coupon-body h3{color:#fff!important}
:root .htm-lantern .coupon-body .sub{color:#8ee3ec!important}
:root .htm-lantern .coupon-terms,:root .htm-lantern .coupon-terms li{color:rgba(255,255,255,.88)!important}
:root .htm-lantern .coupon-terms li::before{background:#8ee3ec}
:root .htm-lantern .coupon-fine{color:rgba(255,255,255,.78)!important}
:root .htm-lantern .coupon-fine a{color:#8ee3ec!important}
@media (max-width:640px){
  :root .htm-lantern .coupon{grid-template-columns:56px minmax(0,1fr)!important}
  :root .htm-lantern .coupon-amt{border:0!important;padding:0!important;margin:0!important}
  :root .htm-lantern .coupon-amt b{font-size:1.25rem!important}
}

/* 5b. The services hub credit chip becomes the same compact card: a white
   disc with the amount, then the offer text. Its own button is a link to the
   form directly beside it, so it goes. */
:root .htm-mag .htm-credit-chip{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:1.25rem;row-gap:.25rem;align-items:start;padding:1.25rem 1.5rem;text-align:left;background:linear-gradient(135deg,var(--htm-dusk) 0%,var(--htm-dusk-rich) 100%);border:1px solid rgba(255,255,255,.18);border-radius:var(--radius-card);box-shadow:var(--shadow-soft)}
:root .htm-mag .htm-credit-chip>*{grid-column:2;margin:0}
:root .htm-mag .htm-credit-chip__amount{grid-column:1;grid-row:1/span 4;display:grid;place-content:center;width:72px;height:72px;background:#fff;border-radius:50%;color:var(--htm-dusk);font-size:1.6rem;letter-spacing:-.02em;text-shadow:none}
:root .htm-mag .htm-credit-chip__label{display:none}
:root .htm-mag .htm-mag-offer-title{font-size:1.375rem;line-height:1.25;color:#fff}
:root .htm-mag .htm-credit-chip__terms{padding:0;background:none;border:0;border-radius:0;font-size:.9375rem;font-weight:600;color:#8ee3ec}
:root .htm-mag .htm-credit-chip__terms~.htm-credit-chip__terms{display:none}
:root .htm-mag .htm-mag-offer-terms{display:flex;flex-wrap:wrap;gap:.125rem 1.25rem;margin-top:.5rem;padding:0;list-style:none;font-size:.8125rem;line-height:1.45;color:rgba(255,255,255,.88)}
:root .htm-mag .htm-mag-offer-terms li{position:relative;margin:0;padding-left:.95rem;color:rgba(255,255,255,.88)}
:root .htm-mag .htm-mag-offer-terms li::before{content:"";position:absolute;left:0;top:.55em;width:.4rem;height:.4rem;border-radius:50%;background:#8ee3ec}
:root .htm-mag .htm-credit-chip>.btn-copper{display:none}
:root .htm-mag .htm-mag-offer-fine{margin-top:.5rem;font-size:.8125rem;line-height:1.45;color:rgba(255,255,255,.78)}
:root .htm-mag .htm-mag-offer-fine a{color:#8ee3ec;text-decoration:underline}
@media (max-width:640px){
  :root .htm-mag .htm-credit-chip{grid-template-columns:56px minmax(0,1fr);column-gap:1rem;padding:1rem}
  :root .htm-mag .htm-credit-chip__amount{width:56px;height:56px;font-size:1.25rem}
  :root .htm-mag .htm-mag-offer-title{font-size:1.1875rem}
  :root .htm-mag .htm-mag-offer-terms{flex-direction:column;gap:.125rem}
}

/* 5c. The aside inside the hub and crane form cards: same numbered list, under
   a hairline instead of a card of its own (section 2 does the list). */
.htm-mag-aside{margin-top:1.75rem;padding-top:1.5rem;border-top:1px solid var(--htm-line)}
.htm-mag-aside ol,.htm-mag-aside p.src{max-width:46rem}

/* 5d. The form card is white even inside the navy dock. chrome.css paints
   unclassed links on navy bright teal; inside the card they go back to the
   spa link colours. */
:root .htm-offer-dock .htm-form-card a:not([class]){color:var(--htm-pool-deep)}
:root .htm-offer-dock .htm-form-card a:not([class]):hover{color:var(--htm-ink)}

/* 5e. The crane and removal pages carry the form in a card of their own. Keep it
   a readable width instead of letting the fields run 1,000px across. */
.htm-lantern-quote .coupon-slot,.htm-lantern-quote .htm-form-card{max-width:52rem}
.formbox.htm-mag-form{margin:0}
