/* ChB Consultants: photos, depth and parallax in the spirit of the Dietecom design. Text and structure of the pages are unchanged. */
.chb-page .wp-block-cover{overflow:hidden}
.chb-page .is-px>.wp-block-cover__image-background{will-change:transform;transform:scale(1.22)}
.wp-block-cover.chb-hero .wp-block-cover__background{background:linear-gradient(100deg,rgba(0,31,66,.95) 0%,rgba(0,31,66,.8) 42%,rgba(0,51,102,.2) 100%)!important}
.chb-page .chb-hero-title{text-shadow:0 2px 24px rgba(0,16,40,.25)}
/* figures: Dietecom gradient band */
.chb-figures{background:linear-gradient(110deg,#001f42 0%,#003366 55%,#0a5fb4 100%)!important;position:relative;overflow:hidden}
.chb-figures::after{content:"";position:absolute;right:-120px;top:-160px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(91,155,224,.35),transparent 70%);pointer-events:none}
/* sections with a photo behind them (moves slowly with --pxy set by parallax.js) */
.chb-dark{background:linear-gradient(180deg,rgba(5,16,30,.9),rgba(5,16,30,.86)),url(/wp-content/uploads/chb/values.jpg) center var(--pxy,50%)/cover no-repeat!important}
.chb-cta{background:linear-gradient(110deg,rgba(0,31,66,.95),rgba(0,51,102,.85) 60%,rgba(13,79,143,.7)),url(/wp-content/uploads/chb/band-network.jpg) center var(--pxy,50%)/cover no-repeat!important}
.chb-pagehead{background:linear-gradient(110deg,rgba(0,31,66,.95),rgba(0,51,102,.86) 60%,rgba(13,79,143,.72)),url(/wp-content/uploads/chb/office.jpg) center var(--pxy,50%)/cover no-repeat!important}
@media(max-width:781px){.chb-dark,.chb-cta,.chb-pagehead{background-position:center!important}}
/* home expertise cards: a photo on top of each card */
.chb-page .chb-cards>.chb-card:has(.chb-more a){padding-top:0!important;overflow:hidden}
.chb-page .chb-cards>.chb-card:has(.chb-more a)::before{content:"";display:block;height:170px;margin:0 -28px 24px;background:#003366 center/cover no-repeat;transition:transform .6s ease}
.chb-page .chb-card:has(a[href*="life-sciences"])::before{background-image:url(/wp-content/uploads/chb/card-life-sciences.jpg)!important}
.chb-page .chb-card:has(a[href*="innovation-risk"])::before{background-image:url(/wp-content/uploads/chb/card-innovation-risk.jpg)!important}
.chb-page .chb-card:has(a[href*="financial-advisory"])::before{background-image:url(/wp-content/uploads/chb/card-financial-advisory.jpg)!important}
.chb-page .chb-cards>.chb-card:has(.chb-more a):hover::before{transform:scale(1.04)}
.chb-card{box-shadow:0 1px 0 var(--line),0 22px 44px -32px rgba(0,31,66,.4)}
/* photos: rounded, with depth; the mission photo drifts inside its frame */
.chb-page .px-img{overflow:hidden;border-radius:var(--r);box-shadow:0 30px 60px rgba(0,31,66,.18)}
.chb-page .px-img img{box-shadow:none!important;will-change:transform;transform:scale(1.22)}
.chb-person-img{overflow:hidden;border-radius:var(--r)}
.chb-person-img img{transition:transform .6s ease}.chb-person:hover .chb-person-img img{transform:scale(1.04)}
html:not([data-chb-theme="dark"]) .chb-tint{background:linear-gradient(180deg,#f5f8fb,#eef3f9)!important}
/* built-in contact form (shown only if Contact Form 7 is missing) */
.site-cf .site-cf-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.site-cf-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}.site-cf-grid p{margin:0!important}.site-cf-grid .w-full{grid-column:1/-1}
.site-cf label{display:block;font-size:.9rem;font-weight:700;color:var(--n2);margin-bottom:6px}.site-cf label span{color:var(--warm)}
.site-cf input,.site-cf select,.site-cf textarea{width:100%;box-sizing:border-box;border:1px solid var(--line)!important;background:var(--tint)!important;border-radius:12px!important;padding:13px 16px!important;font-size:1rem!important;color:var(--ink)!important;min-height:48px}
.site-cf textarea{min-height:150px}
.site-cf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:18px}
.site-cf-submit{background:var(--n3);color:#fff;border:0;border-radius:999px;padding:14px 30px;font-weight:700;cursor:pointer}.site-cf-submit:hover{background:var(--a)}
.site-cf-note{margin:0!important;font-size:.85rem!important;color:var(--muted)!important}
.site-cf-ok,.site-cf-err{border-radius:12px;padding:12px 16px;margin:0 0 16px!important;font-weight:600}.site-cf-ok{background:#e9f6ef;color:#0b6b3a}.site-cf-err{background:#fdecec;color:#9b1c1c}
@media(max-width:600px){.site-cf-grid{grid-template-columns:1fr}}
.site-stats-notice{margin-top:36px;padding-top:8px;border-top:1px solid var(--line)}
@media(prefers-reduced-motion:reduce){.chb-page .is-px>.wp-block-cover__image-background,.chb-page .px-img img{transform:none!important}}


/* ---------- header: solid, compact, aligned with the page width ---------- */
header#header [data-row]{min-height:0}
header#header [data-row*="middle"]{--height:76px!important;--sticky-shrink:85!important}
header#header [data-row*="middle"]>div{max-width:1240px!important;width:100%;margin-inline:auto!important;padding-inline:24px!important;box-sizing:border-box}
header#header [data-id="logo"]{--logo-max-height:60px!important;align-self:center}
header#header [data-id="logo"] .site-logo-container{display:flex;align-items:center}
header#header .site-logo-container img{max-height:60px!important;width:auto!important;height:auto!important}
header#header [data-sticky*="yes"] .site-logo-container img,header#header .ct-sticky-container [data-sticky] .site-logo-container img{max-height:44px!important}
header#header [data-sticky] [data-row],header#header .ct-sticky-container [data-row]{background:rgba(255,255,255,.98)!important;box-shadow:0 6px 24px -14px rgba(0,31,66,.35);-webkit-backdrop-filter:saturate(1.4) blur(8px);backdrop-filter:saturate(1.4) blur(8px)}
header#header [data-id="menu"]>ul>li>a.ct-menu-link{color:#001f42!important}
header#header [data-id="menu"]>ul>li>a.ct-menu-link:hover{color:#0a5fb4!important}
header#header [data-id="menu"]>ul>li.current-menu-item>a.ct-menu-link,header#header [data-id="menu"]>ul>li.current_page_item>a.ct-menu-link{color:#003366!important;box-shadow:inset 0 -2px 0 #d4521e}
html[data-chb-theme="dark"] header#header [data-sticky] [data-row],html[data-chb-theme="dark"] header#header .ct-sticky-container [data-row]{background:rgba(5,16,30,.98)!important}
html[data-chb-theme="dark"] header#header [data-id="menu"]>ul>li>a.ct-menu-link{color:#d8e2ee!important}
html[data-chb-theme="dark"] header#header [data-id="menu"]>ul>li>a.ct-menu-link:hover,html[data-chb-theme="dark"] header#header [data-id="menu"]>ul>li.current-menu-item>a.ct-menu-link{color:#fff!important}
html[data-chb-theme="dark"] header#header .site-logo-container img{padding:3px 6px!important;border-radius:8px!important;max-height:44px!important}
header#header .ct-header-socials svg,header#header [data-id="search"] svg{width:16px!important;height:16px!important}
/* ---------- dark theme: every light surface gets a dark counterpart ---------- */
html[data-chb-theme="dark"] .chb-tint{background:#081627!important}
html[data-chb-theme="dark"] .chb-page :is(.chb-tint,.chb-section) :is(h1,h2,h3,h4,p,li,strong){color:#e6edf5}
html[data-chb-theme="dark"] .chb-page :is(.chb-tint,.chb-section) p:not(.chb-eyebrow):not(.chb-num):not(.chb-num-t){color:#b9c7d8}
html[data-chb-theme="dark"] .chb-card,html[data-chb-theme="dark"] .chb-card-sm{background:#0c1d33!important;border-color:#1f3049!important}
html[data-chb-theme="dark"] .chb-person,html[data-chb-theme="dark"] .chb-bio,html[data-chb-theme="dark"] .chb-profile{background:transparent!important}
html[data-chb-theme="dark"] .chb-page a:not(.wp-block-button__link){color:#8cc0ff}
html[data-chb-theme="dark"] .chb-legal :is(h1,h2,p){color:#e6edf5}
html[data-chb-theme="dark"] .site-cf label{color:#e6edf5}
html[data-chb-theme="dark"] .site-cf input,html[data-chb-theme="dark"] .site-cf select,html[data-chb-theme="dark"] .site-cf textarea,html[data-chb-theme="dark"] .wpcf7 :is(input,select,textarea){background:#081627!important;border-color:#24395a!important;color:#e6edf5!important}
html[data-chb-theme="dark"] .wpcf7 label{color:#e6edf5}
/* ---------- legal page ---------- */
.chb-legal{max-width:820px;margin:0 auto;padding:110px 24px 80px!important}
.chb-legal h1{font-size:clamp(34px,4.4vw,52px)!important;margin:0 0 8px!important}
.chb-legal h2{font-size:22px!important;margin:36px 0 10px!important}
.chb-legal p{line-height:1.7;margin:0 0 12px!important}
.chb-legal p.chb-legal-date{color:var(--muted)}
.chb-legal mark{background:#fff3cd;color:#7a4b00;padding:0 4px;border-radius:4px}
header#header [data-row*="middle"]>div{height:76px!important;min-height:0!important}
header#header [data-row*="middle"] [data-id="menu"],header#header [data-row*="middle"] [data-id="menu"]>ul,header#header [data-row*="middle"] [data-id="menu"]>ul>li{height:auto!important}
header#header [data-id="menu"]>ul>li>a.ct-menu-link{height:auto!important;padding-block:8px!important}
@media(max-width:999px){header#header [data-row*="middle"]>div{height:64px!important}}
.chb-page .chb-card:has(a[href*="financial-advisory"])::before{background-position:center 62%!important}
.site-stats-notice{max-width:820px;margin:0 auto!important;padding:0 24px 70px!important;box-sizing:border-box}
.site-stats-notice h2{font-size:22px!important;margin:24px 0 10px!important}
html[data-chb-theme="dark"] .site-stats-notice :is(h2,p,label){color:#e6edf5}
html[data-chb-theme="dark"] .chb-page :is(.chb-tint,.chb-section) :is(.chb-tags,.chb-meta,small){color:#9fb3c8!important}
@media(max-width:600px){.chb-page a[href^="mailto:"]{overflow-wrap:anywhere;font-size:.95em}}
/* 4th area of expertise: same card with its own illustration */
.chb-page .chb-card:has(a[href*="it-digital"])::before{background-image:url(/wp-content/uploads/chb/card-it-digital.jpg)!important}
.chb-figures .chb-num-t{max-width:22ch;line-height:1.35}
/* footer: one centred line on every site */
footer#footer [data-row] [data-column]{justify-content:center!important}
footer#footer .ct-footer-copyright,footer#footer .ct-footer-copyright p{text-align:center!important;margin-inline:auto!important;width:100%}
footer#footer .ct-footer-copyright p{display:block!important}
.chb-page .chb-figures p.chb-num{font-size:clamp(30px,3.2vw,46px)!important;line-height:1.1!important;white-space:nowrap!important}
.chb-page .chb-figures p.chb-num-t{max-width:24ch}

/* contact header: eyebrow, title and text aligned on the same column as every other page */


/* contact header: eyebrow, title and text start on the same column as the rest of the site (1160 px, centred) */
.chb-page .chb-pagehead{padding-left:max(24px,calc((100% - 1160px) / 2))!important;padding-right:max(24px,calc((100% - 1160px) / 2))!important}
.chb-page .chb-pagehead>*{margin-left:0!important;margin-right:0!important;max-width:none!important;width:auto!important}
.chb-page .chb-pagehead>p.chb-hero-lead{max-width:640px!important;padding:0!important}
