/* 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: 64px;
    --cdse-admin-offset: 0px;
    /* Sampled dominant opaque foreground of the existing mountain PNG. */
    --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: 64px;
    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: 180px;
    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: 48px;
    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 26px !important;
    border: 0;
    background: var(--cdse-mountain-base);
}
.cd-home .cd-hero-investigation-builder > .cd-ib {
    --cdse-sky-space: 4px;
    --cdse-art-height: clamp(64px, 18svh, 150px);
    position: relative;
    isolation: isolate;
    background: #d6eafb;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    border: 0;
}
/* Sky is the back layer. Existing artwork sits above it. The opaque navy
 * foreground covers the image's lower edge; interactive content sits above both. */
.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 {
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: var(--cdse-sky-space);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 13% 70%, rgba(255,255,255,.5), transparent 24%),
        radial-gradient(ellipse at 86% 69%, rgba(255,255,255,.5), transparent 24%);
}
.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;
}
/* Intrinsic artwork coordinate system shared by the static sun and mountains.
 * A CSS disk restores the hidden part of the existing sun behind the summit.
 * Its fill is sampled from the original disk, RGB(250,180,60). */
.cd-home .cd-ib .cd-ib-scenery {
    position: relative;
    width: min(100%, calc(var(--cdse-art-height) * 1680 / 345));
    height: var(--cdse-art-height);
    margin: 0 auto;
}
.cd-home .cd-ib .cd-ib-scenery::before {
    content: "";
    position: absolute;
    left: 45.5655%;
    top: 2.8986%;
    width: 12.0833%;
    height: 58.8406%;
    border-radius: 50%;
    background: #fab43c;
    z-index: 0;
}
.cd-home .cd-ib .cd-ib-hero-art img {
    display: block;
    width: auto;
    height: var(--cdse-art-height);
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: center bottom;
    aspect-ratio: 1680 / 345;
    position: relative;
    /* Points follow the original ridge and flag in the 1680 x 345 asset. */
    clip-path: polygon(0 0, 46.9% 0, 46.9% 44.2%,
        51.19% 27.25%, 51.43% 27.25%, 51.43% 18.26%,
        53.63% 21.45%, 51.43% 25.22%, 51.43% 27.25%,
        56.1% 47.25%, 56.1% 0, 100% 0, 100% 100%, 0 100%);
}
/* A solid vector follows only the front ridge. The original lower trail
 * is restored with circles; only the vertical climb stays on the midground. */
.cd-home .cd-ib .cd-ib-hero-art .cd-ib-mountains-mid { z-index: 1; }
.cd-home .cd-ib .cd-ib-hero-art .cd-ib-mountains-front {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 2;
    clip-path: none;
    display: block;
    height: 100%;
    pointer-events: none;
}
.cd-home .cd-ib .cd-ib-intro {
    width: calc(100% - 32px);
    max-width: 1240px;
    margin: 0 auto 6px;
    padding: 12px 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;
    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: min(68px, 17cqw);
        --cdse-sky-space: 4px;
    }
    .cd-home .cd-hero-investigation-builder { padding-bottom: 22px !important; }
    .cd-home .cd-ib .cd-ib-intro { margin-bottom: 8px; }
    .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;
}
