/* ==========================================================================
   CX Consult — page components
   File:     css/cxconsult-pages.css   (wp-content/themes/consulting-child/css/)
   Version:  1.0.3   (23 October 2026; v1.0.1 adds .cxc-grid--2; v1.0.2 section intros run the full content width; v1.0.3 h1 intro spacing, links in credential tiles)
   Owns:     The layout and components of the rebuilt pages (Health Check first).
             Everything is scoped under .cxc-page, so nothing here touches a page
             that hasn't been rebuilt.
   Enqueue:  After cxconsult-site.css. Loaded by mu-plugins/cxconsult-design-system.php.

   RULES
     1. Every colour, font, size and space comes from cxconsult-tokens.css.
        No hex, no rgb(), no var() fallbacks.
     2. Sections rotate surfaces (Brand Basics §10): no two neighbours share
        a ground, and every page has at least one warm one (Sand, Gold Tint).
     3. Body copy stays short: paragraphs of one to three sentences.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FRAME — full-width bands inside the theme's content column.
   -------------------------------------------------------------------------- */
body:has(.cxc-page) { overflow-x: clip; }
body:has(.cxc-page) #main { padding-top: 0; padding-bottom: 0; }
body:has(.cxc-page) .content-area > .vc_row,
body:has(.cxc-page) .content-area .wpb_raw_code { margin-bottom: 0; }

.cxc-page {
    font-family: var(--cxc-ds-font);
    color: var(--cxc-ds-text);
    font-size: var(--cxc-ds-text-body);
    line-height: var(--cxc-ds-leading-body);
}
.cxc-page *, .cxc-page *::before, .cxc-page *::after { box-sizing: border-box; }
.cxc-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: var(--cxc-ds-space-4xl) var(--cxc-ds-space-lg);
}
.cxc-band--tight { padding-top: var(--cxc-ds-space-2xl); padding-bottom: var(--cxc-ds-space-2xl); }
.cxc-wrap { max-width: var(--cxc-ds-content-max); margin: 0 auto; }

/* Surfaces */
.cxc-on-white    { background: var(--cxc-ds-white); }
.cxc-on-sand     { background: var(--cxc-ds-sand); }
.cxc-on-subtle   { background: var(--cxc-ds-bg-subtle); }
.cxc-on-gold     { background: var(--cxc-ds-gold-tint); }
.cxc-on-graphite { background: var(--cxc-ds-band); color: var(--cxc-ds-text-on-dark); }
.cxc-on-deep     { background: var(--cxc-ds-band-deep); color: var(--cxc-ds-text-on-dark); }

/* Theme resets: the theme styles every blockquote, list bullet, b and cite in
   its own way. Inside rebuilt pages those defaults are cleared here. */
.cxc-page b, .cxc-page strong, .cxc-page cite, .cxc-page li, .cxc-page summary,
.cxc-page blockquote, .cxc-page figcaption { font-family: var(--cxc-ds-font); }
.cxc-page blockquote { background: none; border: 0; box-shadow: none; }
.cxc-page ul { margin: 0; padding: 0; list-style: none; }
.cxc-page ul li { padding-left: 0; }
.cxc-page ul li::before { content: none; display: none; }

/* --------------------------------------------------------------------------
   2. TYPE
   -------------------------------------------------------------------------- */
.cxc-page h1, .cxc-page h2, .cxc-page h3 {
    font-family: var(--cxc-ds-font);
    font-weight: var(--cxc-ds-weight-bold);
    color: var(--cxc-ds-heading);
    margin: 0;
    text-transform: none;
}
.cxc-page h1 { font-size: var(--cxc-ds-text-display); line-height: var(--cxc-ds-leading-tight); letter-spacing: -0.02em; }
.cxc-page h2 { font-size: var(--cxc-ds-text-h2); line-height: var(--cxc-ds-leading-snug); letter-spacing: -0.01em; }
.cxc-page h3 { font-size: var(--cxc-ds-text-h4); line-height: var(--cxc-ds-leading-snug); }
.cxc-page p { margin: 0 0 var(--cxc-ds-space-md); font-size: var(--cxc-ds-text-body); line-height: var(--cxc-ds-leading-body); color: inherit; }
.cxc-page p:last-child { margin-bottom: 0; }
/* The theme's skin draws a 35px bar after every heading; rebuilt pages use their own marks. */
.cxc-page h1::after, .cxc-page h2::after, .cxc-page h3::after { content: none; display: none; }
.cxc-on-graphite h1, .cxc-on-graphite h2, .cxc-on-graphite h3,
.cxc-on-deep h1, .cxc-on-deep h2, .cxc-on-deep h3 { color: var(--cxc-ds-text-on-dark); }

.cxc-eyebrow {
    display: block;
    font-size: var(--cxc-ds-text-eyebrow);
    font-weight: var(--cxc-ds-weight-bold);
    letter-spacing: var(--cxc-ds-tracking-eyebrow);
    text-transform: uppercase;
    color: var(--cxc-ds-gold-deep);
    margin-bottom: var(--cxc-ds-space-sm);
}
.cxc-on-graphite .cxc-eyebrow, .cxc-on-deep .cxc-eyebrow { color: var(--cxc-ds-accent-on-dark); }
.cxc-page p.cxc-lead { font-size: var(--cxc-ds-text-lead); line-height: 1.55; }
.cxc-muted { color: var(--cxc-ds-text-muted); }
.cxc-on-graphite .cxc-muted, .cxc-on-deep .cxc-muted { color: var(--cxc-ds-text-muted-on-dark); }

.cxc-head { margin-bottom: var(--cxc-ds-space-2xl); }
.cxc-head h2 + p { margin-top: var(--cxc-ds-space-sm); }
.cxc-head h1 + p { margin-top: var(--cxc-ds-space-md); }
.cxc-split h2 { margin-bottom: var(--cxc-ds-space-md); }
.cxc-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */
.cxc-btns { display: flex; flex-wrap: wrap; gap: var(--cxc-ds-space-sm); margin-top: var(--cxc-ds-space-xl); }
.cxc-page a.cxc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px;
    padding: var(--cxc-ds-space-sm) var(--cxc-ds-space-lg);
    border-radius: var(--cxc-ds-radius-md);
    font-family: var(--cxc-ds-font);
    font-size: var(--cxc-ds-text-body);
    font-weight: var(--cxc-ds-weight-bold);
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cxc-page a.cxc-btn--primary { background: var(--cxc-ds-btn-primary-bg); color: var(--cxc-ds-btn-primary-text); }
.cxc-page a.cxc-btn--primary:hover { background: var(--cxc-ds-btn-primary-bg-hover); color: var(--cxc-ds-btn-primary-text); }
.cxc-page a.cxc-btn--ghost { background: transparent; color: var(--cxc-ds-text-on-dark); border-color: var(--cxc-ds-border-on-dark); }
.cxc-page a.cxc-btn--ghost:hover { border-color: var(--cxc-ds-gold); color: var(--cxc-ds-text-on-dark); }
.cxc-page a.cxc-btn--dark { background: var(--cxc-ds-btn-secondary-bg); color: var(--cxc-ds-btn-secondary-text); }
.cxc-page a.cxc-btn--dark:hover { background: var(--cxc-ds-btn-secondary-bg-hover); color: var(--cxc-ds-btn-secondary-text); }
.cxc-page a.cxc-btn:focus-visible { outline: 3px solid var(--cxc-ds-focus-on-dark); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   4. HERO
   -------------------------------------------------------------------------- */
.cxc-hero { padding-top: var(--cxc-ds-space-3xl); padding-bottom: var(--cxc-ds-space-3xl); }
.cxc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--cxc-ds-space-3xl); align-items: center; }
.cxc-hero .cxc-lead { margin-top: var(--cxc-ds-space-lg); color: var(--cxc-ds-text-muted-on-dark); max-width: 620px; }
.cxc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cxc-ds-space-md); margin-top: var(--cxc-ds-space-2xl); padding-top: var(--cxc-ds-space-lg); border-top: 1px solid var(--cxc-ds-border-on-dark); max-width: 620px; }
.cxc-facts b { display: block; font-size: var(--cxc-ds-text-h4); color: var(--cxc-ds-accent-on-dark); line-height: 1.3; }
.cxc-facts span { display: block; font-size: var(--cxc-ds-text-small); color: var(--cxc-ds-text-muted-on-dark); margin-top: var(--cxc-ds-space-2xs); }
.cxc-portrait { background: var(--cxc-ds-white); border-radius: var(--cxc-ds-radius-xl); overflow: hidden; box-shadow: var(--cxc-ds-shadow-lg); max-width: 380px; justify-self: end; width: 100%; }
.cxc-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.cxc-portrait figcaption { padding: var(--cxc-ds-space-md) var(--cxc-ds-space-lg); color: var(--cxc-ds-text); font-size: var(--cxc-ds-text-small); line-height: 1.5; }
.cxc-portrait figcaption b { display: block; font-size: var(--cxc-ds-text-body); color: var(--cxc-ds-heading); }

/* --------------------------------------------------------------------------
   5. LOGO STRIP
   -------------------------------------------------------------------------- */
.cxc-logos__label { text-align: center; font-size: var(--cxc-ds-text-small); font-weight: var(--cxc-ds-weight-semibold); color: var(--cxc-ds-text-muted); margin-bottom: var(--cxc-ds-space-lg); }
.cxc-logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--cxc-ds-space-lg); align-items: center; }
.cxc-logos img { display: block; width: 100%; height: 56px; object-fit: contain; filter: grayscale(1); opacity: .8; }

/* --------------------------------------------------------------------------
   6. CARDS AND GRIDS
   -------------------------------------------------------------------------- */
.cxc-grid { display: grid; gap: var(--cxc-ds-space-lg); }
.cxc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cxc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cxc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cxc-card {
    background: var(--cxc-ds-white);
    border: 1px solid var(--cxc-ds-border);
    border-radius: var(--cxc-ds-radius-lg);
    padding: var(--cxc-ds-space-xl);
    box-shadow: var(--cxc-ds-shadow-sm);
}
.cxc-on-sand .cxc-card { border-color: var(--cxc-ds-border-warm); }
.cxc-card h3 { margin-bottom: var(--cxc-ds-space-xs); }
.cxc-card p { color: var(--cxc-ds-text-muted); }
.cxc-card--accent { background: var(--cxc-ds-gold-tint); border-color: var(--cxc-ds-gold); display: flex; flex-direction: column; }
.cxc-card--accent p { color: var(--cxc-ds-text); }
.cxc-card--accent .cxc-link { margin-top: auto; padding-top: var(--cxc-ds-space-md); }
.cxc-card__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--cxc-ds-radius-pill);
    background: var(--cxc-ds-graphite-700); color: var(--cxc-ds-white);
    font-weight: var(--cxc-ds-weight-bold); margin-bottom: var(--cxc-ds-space-md);
}
.cxc-card__mark { display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--cxc-ds-gold); margin-bottom: var(--cxc-ds-space-md); }
.cxc-page a.cxc-link {
    font-weight: var(--cxc-ds-weight-semibold);
    color: var(--cxc-ds-link);
    text-decoration: underline;
    text-decoration-color: var(--cxc-ds-link-underline);
    text-decoration-thickness: var(--cxc-ds-link-underline-thickness);
    text-underline-offset: var(--cxc-ds-link-underline-offset);
}
.cxc-page a.cxc-link:hover { color: var(--cxc-ds-link-hover); text-decoration-color: var(--cxc-ds-gold); }
.cxc-page p.cxc-more { margin-top: var(--cxc-ds-space-xl); text-align: center; }

/* Coverage list (eight areas) */
.cxc-area { background: var(--cxc-ds-white); border-radius: var(--cxc-ds-radius-lg); padding: var(--cxc-ds-space-lg); border-top: 4px solid var(--cxc-ds-graphite-700); }
.cxc-area h3 { font-size: var(--cxc-ds-text-body); margin-bottom: var(--cxc-ds-space-2xs); }
.cxc-area p { font-size: var(--cxc-ds-text-small); color: var(--cxc-ds-text-muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   7. QUOTES
   -------------------------------------------------------------------------- */
.cxc-bigquote { max-width: 900px; margin: 0 auto; text-align: center; }
.cxc-bigquote blockquote { margin: 0; padding: 0; border: 0; font-size: var(--cxc-ds-text-h3); line-height: 1.5; font-weight: var(--cxc-ds-weight-medium); color: var(--cxc-ds-text-on-dark); font-style: normal; }
.cxc-bigquote blockquote::before { content: none; }
.cxc-bigquote cite { display: block; margin-top: var(--cxc-ds-space-lg); font-style: normal; font-size: var(--cxc-ds-text-small); color: var(--cxc-ds-text-muted-on-dark); }
.cxc-bigquote cite b { color: var(--cxc-ds-accent-on-dark); font-weight: var(--cxc-ds-weight-semibold); }
.cxc-quote { display: flex; flex-direction: column; }
.cxc-quote blockquote { margin: 0 0 var(--cxc-ds-space-lg); padding: 0; border: 0; font-size: var(--cxc-ds-text-body); line-height: 1.65; color: var(--cxc-ds-text); font-style: normal; }
.cxc-quote blockquote::before { content: none; }
.cxc-quote__who { margin-top: auto; display: flex; gap: var(--cxc-ds-space-sm); align-items: center; padding-top: var(--cxc-ds-space-md); border-top: 1px solid var(--cxc-ds-border); }
.cxc-quote__who img { width: 48px; height: 48px; border-radius: var(--cxc-ds-radius-pill); object-fit: cover; flex: none; }
.cxc-quote__who span { font-size: var(--cxc-ds-text-small); line-height: 1.4; color: var(--cxc-ds-text-muted); }
.cxc-quote__who b { display: block; color: var(--cxc-ds-heading); }

/* --------------------------------------------------------------------------
   8. PRICE AND CREDENTIALS
   -------------------------------------------------------------------------- */
.cxc-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--cxc-ds-space-3xl); align-items: start; }
.cxc-page p.cxc-price { font-size: var(--cxc-ds-text-h1); font-weight: var(--cxc-ds-weight-bold); color: var(--cxc-ds-heading); line-height: 1.1; margin: var(--cxc-ds-space-md) 0 var(--cxc-ds-space-lg); }
.cxc-price small { display: block; margin-top: var(--cxc-ds-space-2xs); font-size: var(--cxc-ds-text-body); font-weight: var(--cxc-ds-weight-medium); color: var(--cxc-ds-text-muted); }
.cxc-aside { background: var(--cxc-ds-white); border-radius: var(--cxc-ds-radius-lg); padding: var(--cxc-ds-space-xl); border-left: 4px solid var(--cxc-ds-gold); }
.cxc-aside h3 { margin-bottom: var(--cxc-ds-space-sm); }
.cxc-aside p { color: var(--cxc-ds-text-muted); }
.cxc-ticks { margin-top: var(--cxc-ds-space-lg); }
.cxc-page .cxc-ticks p { position: relative; padding-left: 32px; margin: 0 0 var(--cxc-ds-space-sm); }
.cxc-page .cxc-ticks p::before {
    content: ""; display: block; position: absolute; left: 2px; top: .45em;
    width: 16px; height: 8px; margin: 0; font-size: 0;
    border: 0; border-left: 3px solid var(--cxc-ds-gold-deep); border-bottom: 3px solid var(--cxc-ds-gold-deep);
    transform: rotate(-45deg); background: none; border-radius: 0;
}
.cxc-creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cxc-ds-space-md); }
.cxc-cred { background: var(--cxc-ds-white); border: 1px solid var(--cxc-ds-border-warm); border-radius: var(--cxc-ds-radius-lg); padding: var(--cxc-ds-space-lg); }
.cxc-cred b { display: block; color: var(--cxc-ds-heading); font-size: var(--cxc-ds-text-body); line-height: 1.35; margin-bottom: var(--cxc-ds-space-2xs); }
.cxc-cred span { font-size: var(--cxc-ds-text-small); color: var(--cxc-ds-text-muted); line-height: 1.5; display: block; }
.cxc-cred .cxc-link { display: inline-block; margin-top: var(--cxc-ds-space-sm); }

/* --------------------------------------------------------------------------
   9. FAQ
   -------------------------------------------------------------------------- */
.cxc-faq { max-width: 860px; margin: 0 auto; }
.cxc-faq details { background: var(--cxc-ds-white); border: 1px solid var(--cxc-ds-border); border-radius: var(--cxc-ds-radius-lg); margin-bottom: var(--cxc-ds-space-sm); }
.cxc-faq summary {
    cursor: pointer; list-style: none; padding: var(--cxc-ds-space-lg) var(--cxc-ds-space-3xl) var(--cxc-ds-space-lg) var(--cxc-ds-space-lg);
    font-weight: var(--cxc-ds-weight-semibold); color: var(--cxc-ds-heading); position: relative; font-size: var(--cxc-ds-text-body);
}
.cxc-faq summary::-webkit-details-marker { display: none; }
.cxc-faq summary::after {
    content: "+"; position: absolute; right: var(--cxc-ds-space-lg); top: 50%; transform: translateY(-50%);
    font-size: 24px; font-weight: var(--cxc-ds-weight-regular); color: var(--cxc-ds-gold-deep);
}
.cxc-faq details[open] summary::after { content: "\2212"; }
.cxc-faq details > div { padding: 0 var(--cxc-ds-space-lg) var(--cxc-ds-space-lg); color: var(--cxc-ds-text-muted); }

/* --------------------------------------------------------------------------
   10. BOOKING
   -------------------------------------------------------------------------- */
.cxc-book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--cxc-ds-space-3xl); align-items: start; }
.cxc-book .cxc-lead { color: var(--cxc-ds-text-muted-on-dark); margin-top: var(--cxc-ds-space-md); }
.cxc-contact { margin: var(--cxc-ds-space-xl) 0 0; padding: var(--cxc-ds-space-lg) 0 0; border-top: 1px solid var(--cxc-ds-border-on-dark); }
.cxc-page .cxc-contact p { margin: 0 0 var(--cxc-ds-space-sm); color: var(--cxc-ds-text-muted-on-dark); }
.cxc-page .cxc-contact a { color: var(--cxc-ds-text-on-dark); font-weight: var(--cxc-ds-weight-semibold); text-decoration: underline; text-decoration-color: var(--cxc-ds-gold); text-underline-offset: var(--cxc-ds-link-underline-offset); }
.cxc-calendar { background: var(--cxc-ds-white); border-radius: var(--cxc-ds-radius-xl); overflow: hidden; min-height: 680px; }
.cxc-calendar .calendly-inline-widget { min-width: 300px; height: 680px; }

/* Mobile booking bar */
.cxc-stickybar { display: none; }

/* --------------------------------------------------------------------------
   11. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .cxc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cxc-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .cxc-band { padding: var(--cxc-ds-space-3xl) var(--cxc-ds-space-md); }
    .cxc-hero__grid, .cxc-split, .cxc-book { grid-template-columns: 1fr; gap: var(--cxc-ds-space-2xl); }
    .cxc-portrait { justify-self: start; max-width: 320px; }
    .cxc-grid--2, .cxc-grid--3 { grid-template-columns: 1fr; }
    .cxc-facts { grid-template-columns: 1fr; }
    .cxc-creds { grid-template-columns: 1fr; }
    .cxc-stickybar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
        padding: var(--cxc-ds-space-sm) var(--cxc-ds-space-md); background: var(--cxc-ds-band-deep);
        box-shadow: var(--cxc-ds-shadow-lg);
    }
    .cxc-stickybar a.cxc-btn { flex: 1; }
    .cxc-page { padding-bottom: 72px; }
}
@media (max-width: 560px) {
    .cxc-grid--4 { grid-template-columns: 1fr; }
    .cxc-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
