/* Lemon Daddy motion (Rev 6, 2026-10-23). Methodology and orchestration: Nilu Solutions LLC.
   Quiet, premium motion: colour fades 200 ms, hovers and panels 240 to 300 ms, reveals 500 to 600 ms. Arrivals
   decelerate, exits are quicker, nothing loops or overshoots. Nothing here hides content: the reveal states below are
   set only by ld-motion.js, only for elements below the fold, and never with reduced motion. Without JavaScript, or for
   a crawler, every element renders in its final state. Loaded on Home only until the feel is approved
   (build spec rule 13). */

:root{--ld-ease:cubic-bezier(.2,.7,.2,1)}

/* 1. Every link and button fades its colours instead of snapping. !important because many buttons carry an inline
   "all:unset", which would otherwise reset the transition. */
a,button{transition:color .2s ease,background-color .2s ease,border-color .2s ease,text-decoration-color .2s ease,box-shadow .24s var(--ld-ease),transform .24s var(--ld-ease)!important}

@media (hover:hover){
  /* Primary yellow buttons: a 1 px lift and a soft shadow. Pressing settles it back. */
  a[style*="background: rgb(249, 239, 0)"]:hover,a[style*="background:#F9EF00"]:hover,a.rs-call-btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.18)}
  a[style*="background: rgb(249, 239, 0)"]:active,a[style*="background:#F9EF00"]:active,a.rs-call-btn:active{transform:none;box-shadow:none;transition-duration:.12s!important}
  /* Cards lift 2 px with a soft shadow. */
  a[data-track="free_tool_click"]:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(26,8,40,.12)}
  /* Result photos ease in slightly inside their rounded frame. */
  #results article a[aria-hidden="true"] img{transition:transform .5s var(--ld-ease)}
  #results article:hover a[aria-hidden="true"] img{transform:scale(1.03)}
  /* Brand list: the arrow leans toward its link. */
  #manufacturers li a > span[aria-hidden="true"]{display:inline-block;transition:transform .24s var(--ld-ease)}
  #manufacturers li a:hover > span[aria-hidden="true"]{transform:translateX(4px)}
  /* FAQ: the plus/minus circle fills on hover. */
  #faq h3 > button:hover > span[aria-hidden="true"]{background:#1A0828;color:#FFFFFF}
}

/* 3. Scroll reveals (state set by ld-motion.js on below-the-fold blocks only). */
[data-ld-rv="hide"]{opacity:0;transform:translate3d(0,14px,0)}
[data-ld-rv="in"]{opacity:1;transform:none;transition:opacity .5s var(--ld-ease),transform .5s var(--ld-ease);transition-delay:var(--ld-rv-d,0ms)}

/* 4. Interface transitions. FAQ answers fade in as they open; the sign turns half a circle. */
#faq h3 + div{animation:ldPanelIn .26s var(--ld-ease)}
#faq h3 > button > span[aria-hidden="true"]{transition:transform .24s var(--ld-ease),background-color .2s ease,color .2s ease}
#faq h3 > button[aria-expanded="true"] > span[aria-hidden="true"]{transform:rotate(180deg)}
/* Header dropdowns drop in 4 px; the chevron turns. The mobile menu fades. */
header nav [id^="ld-menu-"]{animation:ldDropIn .18s var(--ld-ease)}
header nav button[aria-controls^="ld-menu-"] > span{display:inline-block;transition:transform .2s var(--ld-ease)}
#ld-mobile-nav{animation:ldFadeIn .18s ease-out}
@keyframes ldPanelIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes ldDropIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes ldFadeIn{from{opacity:0}to{opacity:1}}

/* 5. Header scroll state: past the first few pixels the bar deepens and gains a hairline shadow. Height never
   changes (no layout shift). The attribute is set by ld-motion.js. */
header{transition:background-color .24s var(--ld-ease),box-shadow .24s var(--ld-ease)}
header[data-ld-scrolled="1"]{background:rgba(26,8,40,.98)!important;box-shadow:0 1px 0 rgba(255,255,255,.06),0 8px 24px rgba(0,0,0,.28)}

/* Reduced motion: colour changes stay; nothing moves, nothing waits hidden. */
@media (prefers-reduced-motion:reduce){
  a,button{transition:color .2s ease,background-color .2s ease,border-color .2s ease!important}
  a:hover,a:active,#results article:hover a[aria-hidden="true"] img,#manufacturers li a:hover > span[aria-hidden="true"]{transform:none!important}
  #faq h3 > button > span[aria-hidden="true"]{transition:none}
  #faq h3 + div,header nav [id^="ld-menu-"],#ld-mobile-nav{animation:none}
  [data-ld-rv]{opacity:1!important;transform:none!important;transition:none!important}
}
