/* LawHub Exams 10.13.19 — Public Motion Polish
 * Built on 10.13.17. No public IA/routing changes; motion and interaction only.
 */

/* ===== LIVE HERO BACKGROUND — same visual family as auth ===== */
body.lhp-home-page .lh15-showcase{
  --lh19-mx:0px;
  --lh19-my:0px;
  --lh19-spot-x:78%;
  --lh19-spot-y:18%;
  background:
    radial-gradient(circle at var(--lh19-spot-x) var(--lh19-spot-y),rgba(116,157,196,.18),transparent 31%),
    radial-gradient(circle at 16% 92%,rgba(76,111,148,.12),transparent 35%),
    linear-gradient(135deg,#182c49 0%,#203a58 58%,#294a68 100%)!important;
  box-shadow:0 26px 70px rgba(18,42,66,.18),inset 0 1px 0 rgba(255,255,255,.045)!important;
}
body.lhp-home-page .lh15-showcase:before{
  content:""!important;
  position:absolute!important;
  inset:-28%!important;
  z-index:0!important;
  pointer-events:none!important;
  background:
    radial-gradient(circle at 32% 38%,rgba(136,175,211,.16) 0 5%,transparent 25%),
    radial-gradient(circle at 70% 62%,rgba(102,142,180,.13) 0 8%,transparent 29%),
    conic-gradient(from 210deg at 50% 50%,transparent 0 30%,rgba(138,171,202,.06) 38%,transparent 48% 100%)!important;
  filter:blur(8px);
  opacity:.95;
  transform:translate3d(var(--lh19-mx),var(--lh19-my),0) rotate(-2deg) scale(1.03);
  animation:lh19HeroAura 14s ease-in-out infinite alternate;
  will-change:transform,opacity;
}
body.lhp-home-page .lh15-showcase:after{
  content:""!important;
  position:absolute!important;
  inset:1px!important;
  z-index:0!important;
  pointer-events:none!important;
  border-radius:15px!important;
  background:
    linear-gradient(115deg,transparent 0 34%,rgba(255,255,255,.035) 43%,transparent 52% 100%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.018) 0 1px,transparent 1px 74px)!important;
  background-position:-36% 0,0 0!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055)!important;
  animation:lh19HeroScan 11s ease-in-out infinite;
}
body.lhp-home-page .lh15-showcase-track,
body.lhp-home-page .lh15-slider-bar{position:relative;z-index:3!important}
body.lhp-home-page .lh15-slide.lhg-showcase-slide{z-index:2!important}

/* Subtle slide-specific atmosphere, still one palette. */
body.lhp-home-page .lh15-slide.lhg-showcase-slide:before{
  content:"";
  position:absolute;
  width:430px;height:430px;
  right:-130px;top:-170px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(132,169,201,.095),transparent 67%);
  pointer-events:none;
  opacity:.76;
}
body.lhp-home-page .lh15-slide.lhg-showcase-slide:nth-child(2):before{background:radial-gradient(circle,rgba(116,161,185,.09),transparent 67%)}
body.lhp-home-page .lh15-slide.lhg-showcase-slide:nth-child(3):before{background:radial-gradient(circle,rgba(104,139,181,.10),transparent 67%)}

/* ===== HERO CONTENT MOTION ===== */
body.lhp-home-page .lh15-slide-copy,
body.lhp-home-page .lh15-visual{will-change:transform,opacity}
body.lhp-home-page .lh15-slide.is-active .lh15-slide-copy{animation:lh19CopyIn .56s cubic-bezier(.2,.72,.2,1) both}
body.lhp-home-page .lh15-slide.is-active .lh15-visual{animation:lh19VisualIn .68s cubic-bezier(.2,.72,.2,1) both}
body.lhp-home-page .lh15-visual{
  transform:translate3d(calc(var(--lh19-mx) * -.18),calc(var(--lh19-my) * -.18),0);
  transition:transform .26s ease,box-shadow .26s ease,border-color .26s ease!important;
}
body.lhp-home-page .lh15-visual:hover{
  transform:translate3d(calc(var(--lh19-mx) * -.18),calc(var(--lh19-my) * -.18 - 2px),0);
  box-shadow:0 34px 78px rgba(7,20,35,.27)!important;
}

/* ===== TEST PREVIEW EDGE LIGHT — hover/focus only ===== */
body.lhp-home-page .lh15-test-visual{overflow:visible!important;isolation:isolate}
body.lhp-home-page .lh15-test-visual>*{position:relative;z-index:2}
/* overflow:visible above stops the card from clipping its header to the rounded corner curve — restate the curve on the header itself so the top corners stay rounded instead of square. */
body.lhp-home-page .lh15-test-visual>header{border-top-left-radius:13px;border-top-right-radius:13px}
body.lhp-home-page .lh15-test-visual:after{
  content:"";
  position:absolute;
  inset:-2px;
  z-index:1;
  padding:1.5px;
  border-radius:16px;
  pointer-events:none;
  opacity:0;
  background:conic-gradient(from var(--lh19-edge-angle,0deg),transparent 0 70%,rgba(151,190,225,.15) 77%,#d7e9f8 84%,rgba(88,139,187,.82) 89%,transparent 96% 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  filter:drop-shadow(0 0 9px rgba(105,159,206,.32));
  transition:opacity .18s ease;
}
body.lhp-home-page .lh15-test-visual:hover:after,
body.lhp-home-page .lh15-test-visual:focus-within:after{
  opacity:1;
  animation:lh19EdgeOrbit 7.8s linear infinite;
}
body.lhp-home-page .lh15-test-visual:hover{border-color:#dce6ee!important}

/* ===== CTA: subtle light sweep, only on hover ===== */
body.lhp-home-page .lh15-actions a,
body.lhp-home-page .lh15-actions button{position:relative!important;overflow:hidden!important;isolation:isolate}
body.lhp-home-page .lh15-actions a:after,
body.lhp-home-page .lh15-actions button:after{
  content:"";position:absolute;inset:-40% auto -40% -55%;width:34%;z-index:-1;
  transform:skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent);opacity:0
}
body.lhp-home-page .lh15-actions a:hover:after,
body.lhp-home-page .lh15-actions button:hover:after{opacity:1;animation:lh19ButtonSweep .72s ease-out}
body.lhp-home-page .lh15-actions .is-primary:after{background:linear-gradient(90deg,transparent,rgba(39,70,104,.12),transparent)}

/* ===== LIVE SLIDER PROGRESS ===== */
body.lhp-home-page .lh15-slider-dots button{position:relative!important;overflow:hidden!important}
body.lhp-home-page .lh15-slider-dots button i{display:block!important;position:absolute!important;inset:0!important;background:#fff!important;transform:scaleX(0);transform-origin:left}
body.lhp-home-page .lh15-slider-dots button.is-active i{animation:lh19DotProgress 6.4s linear forwards!important}
body.lhp-home-page .lh15-slider-dots button.is-active{background:rgba(255,255,255,.22)!important}

/* ===== MICRO-SPOTLIGHTS ===== */
.lh15-service-strip>a,.lh15-service-strip>button,
.lhp-home-lawyer-card,.lhp-demo-test-card,.lhp-catalog-card,.lh137-lawyer-card{
  position:relative;
  overflow:hidden;
  --lh19-card-x:50%;--lh19-card-y:50%;
}
.lh15-service-strip>a:before,.lh15-service-strip>button:before,
.lhp-home-lawyer-card:before,.lhp-demo-test-card:before,.lhp-catalog-card:before,.lh137-lawyer-card:before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;
  background:radial-gradient(260px circle at var(--lh19-card-x) var(--lh19-card-y),rgba(65,105,145,.075),transparent 66%);
  transition:opacity .18s ease
}
.lh15-service-strip>a:hover:before,.lh15-service-strip>button:hover:before,
.lhp-home-lawyer-card:hover:before,.lhp-demo-test-card:hover:before,.lhp-catalog-card:hover:before,.lh137-lawyer-card:hover:before{opacity:1}
.lh15-service-strip>a>*,.lh15-service-strip>button>*,.lhp-home-lawyer-card>*,.lhp-demo-test-card>*,.lhp-catalog-card>*,.lh137-lawyer-card>*{position:relative;z-index:1}

/* ===== SCROLL REVEAL ===== */
html.lh19-motion-ready .lh19-reveal{opacity:0;transform:translateY(16px);transition:opacity .54s ease,transform .54s cubic-bezier(.2,.72,.2,1)}
html.lh19-motion-ready .lh19-reveal.is-visible{opacity:1;transform:none}

/* ===== COMPACT LOGO STATE POLISH ===== */
.lhp-site-header.is-logo-only .lhp-brand,
body.lh137-directory-page .lh137-topbar.lhp-site-header.is-logo-only .lhp-brand{
  filter:drop-shadow(0 8px 20px rgba(8,24,42,.17));
  transform:translateZ(0) scale(.985);
}

@keyframes lh19HeroAura{
  0%{transform:translate3d(calc(var(--lh19-mx) - 10px),calc(var(--lh19-my) + 7px),0) rotate(-3deg) scale(1.01);opacity:.72}
  50%{transform:translate3d(calc(var(--lh19-mx) + 12px),calc(var(--lh19-my) - 8px),0) rotate(2deg) scale(1.06);opacity:1}
  100%{transform:translate3d(calc(var(--lh19-mx) - 2px),calc(var(--lh19-my) + 2px),0) rotate(-1deg) scale(1.03);opacity:.86}
}
@keyframes lh19HeroScan{0%,30%{background-position:-42% 0,0 0}65%,100%{background-position:142% 0,22px 0}}
@keyframes lh19CopyIn{from{opacity:.25;transform:translate3d(-12px,8px,0)}to{opacity:1;transform:none}}
@keyframes lh19VisualIn{from{opacity:.2;transform:translate3d(16px,6px,0) scale(.992)}to{opacity:1;transform:translate3d(calc(var(--lh19-mx) * -.18),calc(var(--lh19-my) * -.18),0) scale(1)}}
@property --lh19-edge-angle{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes lh19EdgeOrbit{to{--lh19-edge-angle:360deg}}
@keyframes lh19ButtonSweep{from{left:-55%}to{left:128%}}
@keyframes lh19DotProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}

@media(max-width:980px){
  body.lhp-home-page .lh15-showcase:before{inset:-20%;filter:blur(10px)}
  body.lhp-home-page .lh15-visual{transform:none!important}
}
@media(max-width:680px){
  body.lhp-home-page .lh15-showcase:before{animation-duration:18s;opacity:.72}
  body.lhp-home-page .lh15-showcase:after{animation:none!important;background:linear-gradient(115deg,transparent 0 42%,rgba(255,255,255,.026) 51%,transparent 60%)!important}
  .lh15-service-strip>a:before,.lh15-service-strip>button:before,.lhp-home-lawyer-card:before,.lhp-demo-test-card:before,.lhp-catalog-card:before,.lh137-lawyer-card:before{display:none}
}
@media(prefers-reduced-motion:reduce){
  body.lhp-home-page .lh15-showcase:before,body.lhp-home-page .lh15-showcase:after,
  body.lhp-home-page .lh15-slide.is-active .lh15-slide-copy,body.lhp-home-page .lh15-slide.is-active .lh15-visual,
  body.lhp-home-page .lh15-test-visual:hover:after,body.lhp-home-page .lh15-test-visual:focus-within:after,
  body.lhp-home-page .lh15-actions a:hover:after,body.lhp-home-page .lh15-actions button:hover:after,
  body.lhp-home-page .lh15-slider-dots button.is-active i{animation:none!important}
  html.lh19-motion-ready .lh19-reveal{opacity:1!important;transform:none!important;transition:none!important}
}
