/* Homepage shell, 0.1.154. This is the sole owner of homepage header/hero
 * geometry. Generic Builder and Brief styles remain in investigation-builder.css.
 * Important declarations are limited to the theme's important rules and shared
 * Builder controls. No measured widths, offsets, or resize handlers are needed. */
body.home {
    --cdse-header: var(--cdse-mountain-base);
    --cdse-header-height: 54px;
    --cdse-admin-offset: 0px;
    /* Sampled dominant opaque foreground of the static hero artwork. */
    --cdse-mountain-base: #02082d;
    --cdse-home-action: #1268ff;
}
body.home #main {
    container-type: inline-size;
}
/* Match the actual two-ID theme selector forcing 54px of top padding. */
body.home #main #content-wrap { padding-top: 0 !important; }
/* Live DOM: this old image widget is empty because mountainsun is hidden,
 * but its 20px widget margin still creates a white strip before the hero. */
body.home .elementor-widget-image:has(img[src*="mountainsun"]):has(+ .elementor-widget-html .cd-home) {
    display: none;
}
body.home .elementor-widget-wrap:has(> .elementor-widget-html .cd-home) {
    padding-top: 0;
}
/* OceanWP's actual outer header wrapper owns stickiness. */
body.home.admin-bar { --cdse-admin-offset: 32px; }
body.home #transparent-header-wrap,
body.home:not(:has(#transparent-header-wrap)) #site-header {
    position: sticky;
    top: var(--cdse-admin-offset);
    z-index: 1000;
}
body.home .cd-home [id],
body.home #clarity-investigation-builder {
    scroll-margin-top: calc(var(--cdse-header-height) + var(--cdse-admin-offset) + 12px);
}
body.home.admin-bar #wpadminbar { position: fixed; }
@media (max-width: 959px) {
    body.home { --cdse-header-height: 54px; }
}
@media (max-width: 782px) {
    body.home.admin-bar { --cdse-admin-offset: 46px; }
}
body.home #site-header {
    position: relative;
    top: auto;
    background: var(--cdse-header);
    border: 0;
    box-shadow: none;
    overflow: visible;
}
body.home #site-header #site-header-inner {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    width: min(1180px, calc(100% - 48px));
    min-height: 54px;
    margin: 0 auto;
    padding: 0;
    background: var(--cdse-header);
}
body.home #site-header #site-header-inner::after { content: none; }
body.home #site-header #site-logo {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}
body.home #site-header #site-logo-inner {
    display: block;
    height: auto;
    line-height: 1;
}
body.home #site-header #site-logo-inner > .custom-logo-link {
    display: block;
}
/* The exact duplicate is also removed once by simplifyHomepageHeader().
 * This rule prevents a duplicate frame before that initializer runs. */
body.home #site-header #site-logo-inner > .responsive-logo-link { display: none; }
body.home #site-header #site-logo-inner .custom-logo {
    display: block;
    width: 158px;
    height: auto;
    max-height: none;
}
body.home #site-header #site-navigation-wrap {
    float: none;
    right: auto;
    margin: 0;
}
body.home #site-header #menu-header {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 40px);
    margin: 0;
}
body.home #site-header #menu-header > li { float: none; }
body.home #site-header #menu-header > li > a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
}
body.home #site-header .cdse-home-header-hidden,
body.home #site-header #mobile-dropdown .cdse-home-header-hidden {
    display: none !important;
}
body.home #site-header a:focus-visible,
body.home #site-header button.mobile-menu:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}
body.home #site-header #menu-header > li > a:hover { color: #9edfff; }
body.home #site-header .oceanwp-mobile-menu-icon { display: none; }
/* Preserve OceanWP's display/animation and aria-expanded controller. The panel
 * is a short navigation dropdown with visible links, not a second overlay. */
body.home #site-header #mobile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: min(400px, 75vh);
    overflow-y: auto;
    background: var(--cdse-header);
    border-top: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 8px 16px rgba(0,0,0,.16);
}
body.home #site-header #mobile-dropdown nav {
    background: transparent;
    padding: 8px 0;
}
body.home #site-header #menu-header-1 { margin: 0; }
body.home #site-header #menu-header-1 > li {
    margin: 0;
    border-color: rgba(255,255,255,.12);
}
body.home #site-header #menu-header-1 > li > a {
    display: block;
    min-height: 48px;
    padding: 14px 24px;
    color: #fff;
    background: transparent;
    font-size: 15px;
    line-height: 1.4;
}
body.home #site-header #menu-header-1 > li > a:hover,
body.home #site-header #menu-header-1 > li > a:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.1);
    outline-offset: -4px;
}
@media (max-width: 959px) {
    body.home #site-header #site-header-inner {
        justify-content: space-between;
        width: calc(100% - 32px);
        min-height: 54px;
        gap: 16px;
    }
    body.home #site-header #site-logo-inner .custom-logo { width: 128px; }
    body.home #site-header #site-navigation-wrap { display: none; }
    body.home #site-header .oceanwp-mobile-menu-icon {
        display: flex;
        align-items: center;
        float: none;
        margin: 0;
    }
    body.home #site-header button.mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        line-height: 1;
    }
    body.home #site-header button.mobile-menu .oceanwp-text,
    body.home #site-header button.mobile-menu .oceanwp-close-text { display: none; }
    body.home #site-header button.mobile-menu .hamburger { padding: 8px; }
    body.home #site-header button.mobile-menu .hamburger-box { width: 24px; height: 20px; }
    body.home #site-header button.mobile-menu .hamburger-inner,
    body.home #site-header button.mobile-menu .hamburger-inner::before,
    body.home #site-header button.mobile-menu .hamburger-inner::after {
        width: 24px;
        height: 2px;
        background-color: #fff;
    }
}
@media (min-width: 960px) {
    body.home #site-header #mobile-dropdown { display: none !important; }
}

/* Full width relative to #main's content box, excluding the desktop scrollbar.
 * The fallback is for older browsers without container units. */
.cd-home .cd-hero-investigation-builder {
    width: 100vw;
    width: 100cqw;
    max-width: none;
    margin: 0 calc((100% - 100vw) / 2);
    margin-inline: calc((100% - 100cqw) / 2);
    padding: 0 0 10px !important;
    border: 0;
    background: var(--cdse-mountain-base);
}
.cd-home .cd-hero-investigation-builder > .cd-ib {
    --cdse-sky-space: 0px;
    --cdse-art-height: clamp(88px, 10.3cqw, 132px);
    position: relative;
    isolation: isolate;
    background: #d6eafb;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    border: 0;
}
/* The static artwork ends directly at the foreground base. Interactive content
 * sits above the continuing navy background. */
.cd-home .cd-hero-investigation-builder > .cd-ib::before {
    content: "";
    position: absolute;
    inset: calc(var(--cdse-sky-space) + var(--cdse-art-height) - 1px) 0 0;
    z-index: 1;
    background: var(--cdse-mountain-base);
    pointer-events: none;
}
.cd-home .cd-ib .cd-ib-hero-art {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    background: #d8ecfa;
}
.cd-home .cd-ib > .cd-ib-intro,
.cd-home .cd-ib > .cd-ib-form,
.cd-home .cd-ib > .cd-ib-lead-below,
.cd-home .cd-ib > .cd-ib-loading,
.cd-home .cd-ib > .cd-ib-error,
.cd-home .cd-ib > .cd-ib-results {
    position: relative;
    z-index: 2;
}
.cd-home .cd-ib .cd-ib-hero-static {
    display: block;
    width: min(100%, 1168px);
    max-width: 1168px;
    height: var(--cdse-art-height);
    margin: 0 auto;
    object-fit: contain;
    object-position: center bottom;
    aspect-ratio: 1680 / 345;
}
.cd-home .cd-ib .cd-ib-intro {
    width: calc(100% - 32px);
    max-width: 1240px;
    margin: 0 auto 18px;
    padding: 14px 0 0;
    text-align: center;
}
.cd-home .cd-ib .cd-ib-intro h1 {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(22px, 2.6vw, 36px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.035em;
    white-space: normal;
    text-align: center !important;
    text-wrap: balance;
    overflow-wrap: break-word;
}
.cd-home .cd-ib .cd-ib-headline-accent { color: #16a9fa; }
.cd-home .cd-ib .cd-ib-form,
.cd-home .cd-ib .cd-ib-loading,
.cd-home .cd-ib .cd-ib-error {
    box-sizing: border-box;
    width: min(76%, 1060px);
    max-width: 1060px;
    margin: 0 auto;
}
.cd-home .cd-ib .cd-ib-form {
    min-height: 0;
    padding: 16px 22px 18px;
    border: 2px solid #1774ff;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 16px rgba(23,116,255,.18), 0 10px 26px rgba(0,20,70,.2);
}
.cd-home .cd-ib .cd-ib-mobile-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 8px;
    color: #1268ff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}
.cd-home .cd-ib .cd-ib-mobile-progress i { flex: 1; height: 6px; }
.cd-home .cd-ib .cd-ib-mobile-progress b { background: #1268ff; }
.cd-home .cd-ib .cd-ib-step-promise {
    margin: 0 0 14px !important;
    color: #5f6e86;
    font-size: 13px !important;
    line-height: 1.4;
}
.cd-home .cd-ib .cd-ib-field label {
    margin: 0 0 6px;
    color: #111b36;
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.15;
    letter-spacing: -.025em;
}
.cd-home .cd-ib .cd-ib-helper {
    margin: 0 0 12px !important;
    color: #5f6e86;
    font-size: 16px !important;
    line-height: 1.4;
}
.cd-home .cd-ib .cd-ib-field input,
.cd-home .cd-ib .cd-ib-field textarea {
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cdd8e9;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    line-height: 1.4;
}
.cd-home .cd-ib .cd-ib-coach-toggle {
    min-height: 44px;
    padding: 8px 0;
    color: #1268ff;
    font-size: 14px;
    font-weight: 700;
}
.cd-home .cd-ib .cd-ib-coach { margin-top: 4px; }
.cd-home .cd-ib .cd-ib-step-actions { margin: 6px 0 0 !important; }
.cd-home .cd-ib .cd-ib-step-actions .cd-ib-next,
.cd-home .cd-ib .cd-ib-step-actions-final .cd-ib-submit {
    min-height: 50px !important;
    margin-top: 0 !important;
    padding: 12px 16px !important;
    border-color: var(--cdse-home-action) !important;
    border-radius: 9px !important;
    background: var(--cdse-home-action) !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    white-space: normal;
    overflow-wrap: break-word;
    box-shadow: 0 4px 12px rgba(18,104,255,.2);
}
.cd-home .cd-ib .cd-ib-step-actions .cd-ib-next:hover,
.cd-home .cd-ib .cd-ib-step-actions-final .cd-ib-submit:hover {
    background: #0754de !important;
    border-color: #0754de !important;
}
.cd-home .cd-ib .cd-ib-micro {
    margin: 10px 0 0 !important;
    padding-top: 10px;
    border-top: 1px solid #d5dfee;
    color: #5f6e86;
    font-size: 12px !important;
    line-height: 1.45;
    text-align: center;
}
.cd-home .cd-ib .cd-ib-trust {
    max-width: 820px;
    margin: 8px auto 0;
    color: #5f6e86;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}
.cd-home .cd-ib .cd-ib-lead-below {
    width: calc(100% - 40px);
    max-width: 1000px;
    margin: 22px auto 0;
    padding: 0;
    color: #fff;
    font-size: clamp(16px, 1.6vw, 21px);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
}
@media (max-width: 959px) {
    .cd-home .cd-ib .cd-ib-form,
    .cd-home .cd-ib .cd-ib-loading,
    .cd-home .cd-ib .cd-ib-error { width: calc(100% - 32px); }
}
@media (max-width: 600px) {
    .cd-home .cd-hero-investigation-builder > .cd-ib {
        --cdse-art-height: 96px;
        --cdse-sky-space: 0px;
    }
    .cd-home .cd-hero-investigation-builder { padding-bottom: 10px !important; }
    .cd-home .cd-ib .cd-ib-intro { margin-bottom: 16px; }
    .cd-home .cd-ib .cd-ib-intro h1 {
        max-width: 390px;
        font-size: clamp(21px, 5.6vw, 24px);
        line-height: 1.12;
    }
    .cd-home .cd-ib .cd-ib-form,
    .cd-home .cd-ib .cd-ib-loading,
    .cd-home .cd-ib .cd-ib-error { width: calc(100% - 24px); }
    .cd-home .cd-ib .cd-ib-form { padding: 12px; border-radius: 13px; }
    .cd-home .cd-ib .cd-ib-mobile-progress { font-size: 13px; gap: 12px; margin-bottom: 6px; }
    .cd-home .cd-ib .cd-ib-step-promise { font-size: 12px !important; margin-bottom: 12px !important; }
    .cd-home .cd-ib .cd-ib-field label { font-size: 20px; }
    .cd-home .cd-ib .cd-ib-helper { font-size: 14px !important; margin-bottom: 10px !important; }
    /* Keep inputs at 16px to avoid iOS focus zoom. */
    .cd-home .cd-ib .cd-ib-field input,
    .cd-home .cd-ib .cd-ib-field textarea { padding: 10px 12px; }
    .cd-home .cd-ib .cd-ib-coach-toggle { font-size: 13px; }
    .cd-home .cd-ib .cd-ib-step-actions .cd-ib-next,
    .cd-home .cd-ib .cd-ib-step-actions-final .cd-ib-submit { font-size: 14px !important; }
    .cd-home .cd-ib .cd-ib-micro,
    .cd-home .cd-ib .cd-ib-trust { font-size: 12px !important; }
    .cd-home .cd-ib .cd-ib-lead-below { margin-top: 18px; font-size: 16px; }
}
/* Existing post-Build focus/hiding rules stay in investigation-builder.css. */
.cd-home.cdse-result-focus .cd-hero-investigation-builder { background: #fff; }

.cd-home.cdse-result-focus .cd-hero-investigation-builder > .cd-ib {
    background: #fff;
}
.cd-home.cdse-result-focus .cd-hero-investigation-builder > .cd-ib::before {
    content: none;
}

/* 0.1.216 final desktop density overrides. */
@media (min-width:960px){
    body.home #site-header,
    body.home #site-header #site-header-inner{
        min-height:54px!important;
        height:54px!important;
        max-height:54px!important;
    }
    body.home #site-header #site-logo-inner,
    body.home #site-header #site-logo-inner > .custom-logo-link{
        line-height:1!important;
        height:auto!important;
    }
    body.home #site-header #menu-header > li > a{min-height:40px!important}
}
.cd-home .cdse-how-goal-wrap{display:none!important}

/* 0.1.217: keep the desktop brand optically centered inside the compact header. */
body.home #site-header #site-logo{
    display:flex!important;
    align-items:center!important;
    align-self:stretch!important;
}
body.home #site-header #site-logo-inner,
body.home #site-header #site-logo-inner > .custom-logo-link{
    display:flex!important;
    align-items:center!important;
    height:54px!important;
    line-height:1!important;
}
body.home #site-header #site-logo-inner .custom-logo{
    width:158px!important;
    max-height:34px!important;
    object-fit:contain!important;
}
@media(max-width:959px){
    body.home #site-header #site-logo-inner .custom-logo{width:128px!important;max-height:30px!important}
}

/* 0.1.218: center the visible brand mark within the compact header. */
body.home #site-header #site-logo-inner .custom-logo{
    position:relative!important;
    top:2px!important;
}

/* 0.1.230: anchor the brand left and utility navigation right on wide screens. */
@media (min-width:960px){
    body.home #site-header #site-header-inner{
        width:min(1280px,calc(100% - 64px));
        gap:32px;
    }
    body.home #site-header #site-navigation-wrap{margin-left:auto}
    body.home #site-header #menu-header{justify-content:flex-end;gap:clamp(20px,2vw,34px)}
}
