/* Crash Agency, design-critique pass (v2.7.0). Loads after cax.css. Roll back by removing this file's enqueue (ROLLBACK.md section 13). */

/* ---- 1. No blank sections: nothing on the homepage depends on an animation or on a compositing trick to be visible ---------------
   There are no scroll-reveal or fade-in effects in the theme (the only opacity:0 states are the two background videos, which sit on top of a
   static image). The hero used to rely on negative z-index children inside an isolated stacking context; if a browser dropped that composited
   layer (fast jump to the top, GPU pressure, two autoplay videos) the dark section could paint as an empty white screen.
   Now the poster is the section's own CSS background, nothing uses a negative z-index, and the video is an enhancement on top. */
.cxh-hero{isolation:auto;background:#14141A url("/wp-content/uploads/cax-video/hero-poster-1600.webp") 30% 70%/cover no-repeat}
.cxh-hero-img{z-index:0}
.cxh-hero-video{z-index:0}
.cxh-hero:after{z-index:1}
.cxh-hero>.cax-wrap{position:relative;z-index:2}
@media (max-width:760px){.cxh-hero{background-image:url("/wp-content/uploads/cax-video/hero-poster-900.webp");background-position:50% 50%}}

/* Closing section: the dark video band is now a direct child of the section and covers all of it (no magic offsets that depended on the iframe height). */
.cxh-book{isolation:auto}
.cxh-book-media{top:0;bottom:0;left:0;width:auto;margin-left:0;z-index:0}
.cxh-book>.cxh-split{position:relative;z-index:1}
/* Darker flat overlay behind the checklist and copy: white text stays AA on the brightest video frame. */
.cxh-book-media:after{background:rgba(8,10,14,.8)}
@media (max-width:1060px){.cxh-book-media{top:0;bottom:0}}
@media (max-width:760px){.cxh-book-media{top:0;bottom:0}.cxh-book-media:after{background:rgba(8,10,14,.84)}}

/* ---- 3. Booking embed: height follows the calendar (GoHighLevel resizer sets it inline); these are only the no-script fallbacks ------ */
.cxh-cal iframe{height:720px}
@media (max-width:760px){.cxh-cal iframe{height:670px}}
.cxh-cal{padding-bottom:6px}
.cxh-book .cxh-cal p{margin:6px 10px 4px!important;font-size:13px;line-height:1.5;color:#5B5566;text-align:center}
.cxh-book .cxh-cal p a{color:#5B5566!important;text-decoration:underline;text-underline-offset:3px}
.cxh-book .cxh-cal p a:hover{color:#16131C!important}

/* ---- 4. Services: four featured dark tiles, the rest in a quiet light "Also available" row (no checkerboard) ------------------------ */
#services.cxh-sec{padding-bottom:88px}
.cxh-core{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.cxh-feat{display:flex;flex-direction:column;justify-content:flex-end;min-height:270px;padding:36px 34px 32px;border-radius:16px;background:#1E1E24;color:#fff!important;text-decoration:none!important;transition:transform .2s,box-shadow .2s}
.cxh-feat:hover{transform:translateY(-3px);box-shadow:0 28px 48px -30px rgba(0,0,0,.6)}
.cxh .cxh-feat h3{font-family:var(--cax-serif)!important;font-weight:400!important;font-size:clamp(30px,3.2vw,42px);letter-spacing:-.03em!important;line-height:1.08;margin:0 0 12px;color:#fff}
.cxh-feat p{max-width:42ch;margin:0 0 22px!important;font-size:16.5px;line-height:1.55;color:#ECECF0}
.cxh-feat .cxh-more{color:#fff}
.cxh .cxh-also-h{margin:48px 0 14px;font:600 13px/1.4 var(--cax-sans)!important;letter-spacing:.14em!important;text-transform:uppercase;color:#4B4458}
.cxh-also{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cxh-also li{margin:0}
.cxh-also a{display:flex;flex-direction:column;gap:3px;height:100%;padding:15px 18px;background:#fff;border:1px solid #E4E4E8;border-radius:12px;color:#16131C!important;text-decoration:none!important;transition:border-color .2s,transform .2s}
.cxh-also a:hover{border-color:#5B3FD1;transform:translateY(-2px)}
.cxh-also b{font:600 15px/1.3 var(--cax-sans)}
.cxh-also span{font-size:13.5px;line-height:1.45;color:#4B4458}
@media (max-width:1060px){.cxh-also{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.cxh-core{grid-template-columns:1fr}.cxh-feat{min-height:210px;padding:28px 24px 26px}.cxh-also{grid-template-columns:1fr}}

/* ---- 7. Practice-area strip: small chips so it stops competing with the section headings ---------------------------------------- */
.cxh-areas .cax-wrap{gap:12px 18px;padding-top:20px;padding-bottom:20px}
.cxh-areas p{font-size:13px}
.cxh-areas ul{gap:8px}
.cxh-areas li{padding:8px 14px;border:1px solid #D4D4DA;border-radius:999px;background:#fff;font:500 13.5px/1 var(--cax-sans);letter-spacing:.01em;color:#2A2533}
@media (max-width:760px){.cxh-areas li{font-size:13px;padding:7px 12px}}

/* Facts bar: keep each figure on one line ("Senior-led" and "From $1,500" used to break across two lines). */
.cxh-facts strong{font-size:clamp(30px,3.3vw,46px);white-space:nowrap}
@media (max-width:760px){.cxh-facts strong{font-size:28px;white-space:normal}}
