/* James Woolford Design — no-haze secondary pages v51
   Final removal of React Bits ray/fallback layers and all pale animated haze
   outside the homepage. Uses solid chapter surfaces with explicit text colours. */

:root{
  --jw51-ink:#0d0f14;
  --jw51-muted:#62666f;
  --jw51-paper:#f4f1ea;
  --jw51-pale:#edf0f6;
  --jw51-white:#fff;
  --jw51-dark:#090c13;
  --jw51-dark-2:#111827;
  --jw51-blue:#2458ff;
  --jw51-line:rgba(13,15,20,.14);
  --jw51-light-line:rgba(255,255,255,.15);
}

/* -------------------------------------------------------------------------- */
/* Nuclear removal of the actual source of the haze on every non-home route. */
/* -------------------------------------------------------------------------- */
body:not(.home),
body:not(.home) #root,
body:not(.home) #root > main{
  background-color:var(--jw51-paper)!important;
  background-image:none!important;
}

body:not(.home) .jw-rays-layer,
body:not(.home) .jw-rays-layer__fallback,
body:not(.home) .light-rays-container,
body:not(.home) .jw-light-rays,
body:not(.home) .jw-page-rays,
body:not(.home) .site-motion-background,
body:not(.home) .site-background-motion,
body:not(.home) .ambient-background,
html.jw51-secondary .jw-rays-layer,
html.jw51-secondary .jw-rays-layer__fallback,
html.jw51-secondary .light-rays-container{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

body:not(.home) .site-ambient,
body:not(.home) .ambient-section,
body:not(.home) .jw-ray-surface,
body:not(.home) .jw-section-motion,
body:not(.home) .jw-motion-dark,
html.jw51-secondary .site-ambient,
html.jw51-secondary .ambient-section,
html.jw51-secondary .jw-ray-surface,
html.jw51-secondary .jw-section-motion{
  background-image:none!important;
  animation:none!important;
}

body:not(.home) .site-ambient::before,
body:not(.home) .site-ambient::after,
body:not(.home) .ambient-section::before,
body:not(.home) .ambient-section::after,
body:not(.home) .jw-ray-surface::before,
body:not(.home) .jw-ray-surface::after,
body:not(.home) .jw-section-motion::before,
body:not(.home) .jw-section-motion::after,
html.jw51-secondary .site-ambient::before,
html.jw51-secondary .site-ambient::after,
html.jw51-secondary .ambient-section::before,
html.jw51-secondary .ambient-section::after,
html.jw51-secondary .jw-ray-surface::before,
html.jw51-secondary .jw-ray-surface::after{
  content:none!important;
  display:none!important;
  background:none!important;
  animation:none!important;
}

body:not(.home) .site-reveal,
html.jw51-secondary .site-reveal{
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}

/* -------------------------------------------------------------------------- */
/* Individual service pages: retain video hero, use solid chapters beneath.  */
/* -------------------------------------------------------------------------- */
body:not(.home) .service-detail-page{
  background:var(--jw51-paper)!important;
  color:var(--jw51-ink)!important;
}

/* Video hero is intentional — only its ray portal is removed. */
body:not(.home) .service-detail-page .service-detail-hero.jw43-video-hero{
  background:#080b12!important;
  background-image:none!important;
}
body:not(.home) .service-detail-page .service-detail-hero.jw43-video-hero::before{
  display:block!important;
  content:""!important;
  background:linear-gradient(90deg,rgba(4,6,11,.93) 0%,rgba(4,6,11,.8) 43%,rgba(4,6,11,.5) 72%,rgba(4,6,11,.7) 100%),linear-gradient(180deg,rgba(3,4,9,.18),rgba(3,4,9,.62))!important;
}

body:not(.home) .service-detail-page .service-capabilities{
  background:var(--jw51-dark)!important;
  background-image:none!important;
  color:#fff!important;
}
body:not(.home) .service-detail-page .service-capabilities::before,
body:not(.home) .service-detail-page .service-capabilities::after{display:none!important;content:none!important}
body:not(.home) .service-detail-page .service-capabilities h2,
body:not(.home) .service-detail-page .service-capabilities h3{color:#fff!important}
body:not(.home) .service-detail-page .service-capabilities p{color:rgba(255,255,255,.64)!important}
body:not(.home) .service-detail-page .service-capabilities__grid article{
  background:#141822!important;
  background-image:none!important;
  border-color:rgba(255,255,255,.14)!important;
}
body:not(.home) .service-detail-page .service-capabilities__grid article:nth-child(even){background:#171d2d!important}

body:not(.home) .service-detail-page .service-process{
  background:var(--jw51-pale)!important;
  background-image:none!important;
  color:var(--jw51-ink)!important;
}
body:not(.home) .service-detail-page .service-process::before,
body:not(.home) .service-detail-page .service-process::after{display:none!important;content:none!important}
body:not(.home) .service-detail-page .service-process h2,
body:not(.home) .service-detail-page .service-process h3,
body:not(.home) .service-detail-page .service-process strong{color:var(--jw51-ink)!important}
body:not(.home) .service-detail-page .service-process p{color:var(--jw51-muted)!important}
body:not(.home) .service-detail-page .service-process__steps article{
  background:#fff!important;
  background-image:none!important;
  border-color:var(--jw51-line)!important;
  box-shadow:0 18px 42px rgba(26,32,50,.07)!important;
}

body:not(.home) .service-detail-page .service-related{
  background:var(--jw51-paper)!important;
  background-image:none!important;
  color:var(--jw51-ink)!important;
}
body:not(.home) .service-detail-page .service-related h2,
body:not(.home) .service-detail-page .service-related h3{color:var(--jw51-ink)!important}
body:not(.home) .service-detail-page .service-related p{color:var(--jw51-muted)!important}

/* -------------------------------------------------------------------------- */
/* App Design: explicit solid chapters.                                       */
/* -------------------------------------------------------------------------- */
body:not(.home) .jw45-app-design-page,
html.jw51-secondary .jw45-app-design-page{
  background:var(--jw51-paper)!important;
  background-image:none!important;
}
body:not(.home) .jw45-app-design-page .jw45-app-hero{
  background:#080b12!important;
  background-image:none!important;
}
body:not(.home) .jw45-app-design-page .jw45-app-capabilities{
  background:var(--jw51-dark)!important;
  background-image:none!important;
  color:#fff!important;
}
body:not(.home) .jw45-app-design-page .jw45-app-card-grid article{
  background:#141822!important;
  background-image:none!important;
  border-color:var(--jw51-light-line)!important;
}
body:not(.home) .jw45-app-design-page .jw45-app-card-grid article:nth-child(even){background:#171d2d!important}
body:not(.home) .jw45-app-design-page .jw45-app-card-grid h3{color:#fff!important}
body:not(.home) .jw45-app-design-page .jw45-app-card-grid p{color:rgba(255,255,255,.64)!important}
body:not(.home) .jw45-app-design-page .jw45-app-process{
  background:var(--jw51-pale)!important;
  background-image:none!important;
  color:var(--jw51-ink)!important;
}
body:not(.home) .jw45-app-design-page .jw45-app-process::before,
body:not(.home) .jw45-app-design-page .jw45-app-process::after{display:none!important;content:none!important}
body:not(.home) .jw45-app-design-page .jw45-app-process h2,
body:not(.home) .jw45-app-design-page .jw45-app-process h3{color:var(--jw51-ink)!important}
body:not(.home) .jw45-app-design-page .jw45-app-process p{color:var(--jw51-muted)!important}
body:not(.home) .jw45-app-design-page .jw45-app-process-grid article{
  background:#fff!important;
  background-image:none!important;
  border-color:var(--jw51-line)!important;
  box-shadow:0 18px 42px rgba(26,32,50,.07)!important;
}
body:not(.home) .jw45-app-design-page .jw45-app-local{
  background:var(--jw51-blue)!important;
  background-image:none!important;
  color:#fff!important;
}

/* -------------------------------------------------------------------------- */
/* Areas and local pages: solid surfaces and explicit readable text.          */
/* -------------------------------------------------------------------------- */
body:not(.home) .areas-page,
body:not(.home) .location-page,
body:not(.home) .local-service-page{
  background:var(--jw51-paper)!important;
  background-image:none!important;
}

body:not(.home) .areas-page .areas-directory,
body:not(.home) .location-page .location-context,
body:not(.home) .location-page .location-pricing,
body:not(.home) .location-page .location-faq,
body:not(.home) .local-service-page .local-service-context,
body:not(.home) .local-service-page .local-service-links,
body:not(.home) .local-service-page .location-faq{
  background:var(--jw51-paper)!important;
  background-image:none!important;
  color:var(--jw51-ink)!important;
}
body:not(.home) .location-page .location-pricing{background:var(--jw51-pale)!important}
body:not(.home) .areas-page .areas-directory h2,
body:not(.home) .areas-page .areas-directory h3,
body:not(.home) .location-page .location-context h2,
body:not(.home) .location-page .location-context h3,
body:not(.home) .location-page .location-pricing h2,
body:not(.home) .location-page .location-pricing h3,
body:not(.home) .location-page .location-faq h2,
body:not(.home) .location-page .location-faq h3,
body:not(.home) .local-service-page .local-service-context h2,
body:not(.home) .local-service-page .local-service-context h3,
body:not(.home) .local-service-page .local-service-links h2,
body:not(.home) .local-service-page .local-service-links h3,
body:not(.home) .local-service-page .location-faq h2,
body:not(.home) .local-service-page .location-faq h3{
  color:var(--jw51-ink)!important;
}
body:not(.home) .areas-page .areas-directory p,
body:not(.home) .location-page .location-context p,
body:not(.home) .location-page .location-pricing p,
body:not(.home) .location-page .location-faq p,
body:not(.home) .local-service-page .local-service-context p,
body:not(.home) .local-service-page .local-service-links p,
body:not(.home) .local-service-page .location-faq p{
  color:var(--jw51-muted)!important;
}

body:not(.home) .location-page .location-benefits,
body:not(.home) .local-service-page .local-service-capabilities{
  background:var(--jw51-dark)!important;
  background-image:none!important;
  color:#fff!important;
}
body:not(.home) .location-page .location-benefits h2,
body:not(.home) .location-page .location-benefits h3,
body:not(.home) .local-service-page .local-service-capabilities h2,
body:not(.home) .local-service-page .local-service-capabilities h3{color:#fff!important}
body:not(.home) .location-page .location-benefits p,
body:not(.home) .local-service-page .local-service-capabilities p{color:rgba(255,255,255,.64)!important}

body:not(.home) .location-page .location-coverage,
body:not(.home) .local-service-page .local-service-coverage{
  background:var(--jw51-blue)!important;
  background-image:none!important;
  color:#fff!important;
}
body:not(.home) .location-page .location-coverage *,
body:not(.home) .local-service-page .local-service-coverage *{color:#fff!important}

/* Generic insurance for all non-home sections that had a ray backdrop. */
body:not(.home) section.jw-ray-surface,
body:not(.home) section.site-ambient,
body:not(.home) section.ambient-section{
  background-image:none!important;
}

@media(max-width:760px){
  body:not(.home) .service-detail-page .service-capabilities,
  body:not(.home) .service-detail-page .service-process,
  body:not(.home) .jw45-app-design-page .jw45-app-capabilities,
  body:not(.home) .jw45-app-design-page .jw45-app-process{
    padding-top:76px!important;
    padding-bottom:76px!important;
  }
}
