/* =============================================================================
   SECTION — WHY BOOK DIRECT
   Cream again, three reasons on hairline dividers — the same device the
   amenities row and the OTA trust row already use, so the page does not
   invent a fourth way of showing three things.
   ========================================================================== */
.ab-direct{
  background:var(--cream-warm);
  color:var(--ink);
  padding-block:clamp(54px,6.2vw,96px);
  text-align:center;
}
.ab-direct .ab-kicker{
  font-family:var(--font-body);
  font-size:clamp(11px,.85vw,12px);font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--rust-deep);
  margin:0 0 clamp(12px,1.4vw,18px);
}
.ab-direct h2{
  margin:0 auto;
  max-width:18ch;
  font-family:var(--font-display);
  font-size:clamp(28px,3.1vw,46px);
  line-height:1.1;
  font-weight:var(--fw-medium);
  letter-spacing:-.012em;
  color:#153d31;
}
.ab-direct-sub{
  margin:clamp(14px,1.6vw,20px) auto 0;
  max-width:56ch;
  font-family:var(--font-body);
  font-size:clamp(16px,1.2vw,19px);
  font-weight:var(--fw-medium);
  line-height:1.55;
  color:#49543f;
}

.ab-reasons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:min(1100px,100%);
  margin:clamp(34px,4vw,58px) auto 0;
  row-gap:clamp(28px,3.4vw,46px);
}
.ab-reason{
  padding:0 clamp(16px,2.4vw,40px);
  border-right:1px solid rgba(40,52,38,.18);
}
/* Six reasons, three to a row. The divider rule used to be "every one but the
   last", which with six leaves a line hanging off the end of the first row.
   Every third, and the second row gets a hairline over it instead. */
.ab-reason:nth-child(3n){border-right:0}
.ab-reason:nth-child(n+4){
  padding-top:clamp(28px,3.4vw,46px);
  border-top:1px solid rgba(40,52,38,.18);
}
.ab-reason svg{
  width:30px;height:30px;margin:0 auto var(--space-md);
  stroke:var(--rust-deep);stroke-width:1.35;fill:none;
  stroke-linecap:round;stroke-linejoin:round;
}
.ab-reason h3{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(18px,1.5vw,23px);
  line-height:1.22;
  font-weight:var(--fw-medium);
  color:#14231a;
}
.ab-reason i{
  display:block;width:40px;height:1px;
  background:var(--rust-deep);
  margin:var(--space-sm) auto;
}
.ab-reason p{
  margin:0;
  font-family:var(--font-body);
  font-size:clamp(13px,.98vw,14.5px);
  line-height:1.55;
  color:var(--ink-soft);
}

/* ---- closing call to action ---- */
.ab-cta{margin-top:clamp(34px,4vw,56px)}
.ab-cta .btn{
  background:var(--rust-deep);border-color:var(--rust-deep);color:var(--white);
  min-height:58px;padding:0 36px;
}
.ab-cta .btn:hover{background:#762e17;border-color:#762e17}
.ab-cta .btn svg{transition:transform .35s var(--ease-out)}
.ab-cta .btn:hover svg{transform:translateX(5px)}
.ab-cta-note{
  margin:var(--space-md) 0 0;
  font-family:var(--font-body);
  font-size:clamp(12.5px,.95vw,14px);
  color:var(--ink-soft);
}
.ab-cta-note a{border-bottom:1px solid rgba(40,52,38,.3)}
.ab-cta-note a:hover{color:var(--rust-deep);border-bottom-color:currentColor}

@media (max-width:980px){
  .ab-reasons{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ab-reason:nth-child(3n){border-right:1px solid rgba(40,52,38,.18)}
  .ab-reason:nth-child(2n){border-right:0}
  .ab-reason:nth-child(n+3){
    padding-top:clamp(26px,3.4vw,38px);
    border-top:1px solid rgba(40,52,38,.18);
  }
}
@media (max-width:620px){
  .ab-reasons{grid-template-columns:minmax(0,1fr);row-gap:0}
  .ab-reason{border-right:0;padding:0}
  .ab-reason:nth-child(3n){border-right:0}
  .ab-reason:nth-child(n+3),
  .ab-reason:nth-child(n+4){padding-top:0;border-top:0}
  .ab-reason + .ab-reason{
    margin-top:clamp(24px,4.4vw,30px);
    padding-top:clamp(24px,4.4vw,30px);
    border-top:1px solid rgba(40,52,38,.16);
  }
}
@media (prefers-reduced-motion:reduce){
  .ab-cta .btn:hover svg{transform:none}
}

/* =============================================================================
   THE ICONS MOVE

   The home page's amenities row is the model: what must not move is welded
   into a .bd-still group, and exactly one part of each icon carries the
   animation. Six icons, six different motions, each one illustrating the
   thing it sits above rather than decorating it:

     the dollar sign draws itself          (one shot)
     the padlock's shackle clicks shut     (one shot) and the keyhole pulses
     a light comes on in the house window  (loop)
     the price tag swings once as if hung  (one shot)
     the paw's toes press in sequence      (one shot)
     the reply arrow goes and comes back   (loop)

   GATED TWICE, like the amenities row. html.has-anim is only on the document
   when the motion layer found an IntersectionObserver and nobody asked for
   reduced motion; .is-in is added by book-direct.js when the section arrives.
   Without either, all six icons are simply drawn and still - no part is
   hidden or displaced in the base styles, which is the rule that keeps this
   safe with scripting off.
   ========================================================================== */
.ab-reason svg *{transform-box:fill-box;transform-origin:50% 50%}

@keyframes bdKey   {0%,100%{opacity:1} 45%{opacity:.25}}
@keyframes bdGlow  {0%,100%{opacity:.35} 50%{opacity:1}}
@keyframes bdShut  {0%{transform:translateY(-2.2px)} 60%{transform:translateY(.4px)} 100%{transform:translateY(0)}}
@keyframes bdSwing {0%{transform:rotate(-9deg)} 55%{transform:rotate(4deg)} 80%{transform:rotate(-1.5deg)} 100%{transform:rotate(0)}}
@keyframes bdPress {0%,100%{transform:scale(1)} 45%{transform:scale(.82)}}
@keyframes bdSend  {0%,70%,100%{transform:translateX(0)} 35%{transform:translateX(2.4px)}}

/* ---- 1. the dollar sign draws itself ----
   The same device as the handwritten swashes on the home page, but the length
   is a constant here rather than measured in script: this path never changes,
   and 46 is a little over its real length so the wipe clears the end. */
html.has-anim .ab-reason .bd-draw{stroke-dasharray:46;stroke-dashoffset:46}
html.has-anim .ab-direct.is-in .bd-draw{
  stroke-dashoffset:0;
  transition:stroke-dashoffset 1.1s cubic-bezier(.33,.06,.22,1) .25s;
}

/* ---- 2. the padlock ---- */
html.has-anim .ab-reason .bd-shackle{transform-origin:50% 100%}
html.has-anim .ab-direct.is-in .bd-shackle{animation:bdShut .7s var(--ease-out) .35s both}
html.has-anim .ab-direct.is-in .bd-keyhole{animation:bdKey 2.6s ease-in-out 1.2s infinite}

/* ---- 3. the window ----
   The fill is NOT gated on has-anim: the window should look the same whether
   or not it glows, and gating it left a stroked outline under reduced motion
   where every other state had a solid pane. Only the glow is gated. */
.ab-reason .bd-window{fill:var(--rust-deep);stroke:none;opacity:.55}
html.has-anim .ab-reason .bd-window{opacity:.35}
html.has-anim .ab-direct.is-in .bd-window{animation:bdGlow 3.4s ease-in-out .9s infinite}

/* ---- 4. the price tag ---- */
html.has-anim .ab-reason .bd-tag{transform-origin:14% 14%}
html.has-anim .ab-direct.is-in .bd-tag{animation:bdSwing 1.1s var(--ease-out) .45s both}

/* ---- 5. the paw ----
   Four toes, pressed left to right. 90ms apart is close enough to read as one
   movement rather than four. */
html.has-anim .ab-direct.is-in .bd-t1{animation:bdPress .5s var(--ease-out) .50s both}
html.has-anim .ab-direct.is-in .bd-t2{animation:bdPress .5s var(--ease-out) .59s both}
html.has-anim .ab-direct.is-in .bd-t3{animation:bdPress .5s var(--ease-out) .68s both}
html.has-anim .ab-direct.is-in .bd-t4{animation:bdPress .5s var(--ease-out) .77s both}

/* ---- 6. the reply ---- */
html.has-anim .ab-direct.is-in .bd-send{animation:bdSend 3.6s ease-in-out 1.1s infinite}

@media (prefers-reduced-motion:reduce){
  /* Belt and braces: html.has-anim never lands under reduced motion, but if
     a stylesheet above ever stops gating on it, nothing here should move. */
  .ab-reason svg *{animation:none !important;transition:none !important}
  .ab-reason .bd-draw{stroke-dasharray:none !important;stroke-dashoffset:0 !important}
}
