/* Wave Hero — full-width, LCP-friendly <img> with overlay and centered content */

.cainco-wave-hero {
    position: relative;
    width: 100%;
    height:100vh;
    overflow: hidden;
    align-content:center;
}

/* the real hero image (LCP target) */
.cainco-wave-hero .cwh-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* optional dim overlay */
.cainco-wave-hero .cwh-overlay {
    position: absolute;
    inset: 0;
    background: var(--cwh-overlay, rgba(0,0,0,0.35));
    pointer-events: none;
    z-index: 1;
}

/* content layer */
.cainco-wave-hero .cwh-inner {
    position: relative;
    z-index: 2;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
    color: #fff;
}

.cainco-wave-hero .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cainco-wave-hero.content-left  .container { align-items: flex-start; text-align: left; }
.cainco-wave-hero.content-right .container { align-items: flex-end;   text-align: right; }
.cainco-wave-hero.content-center .container { align-items: center;     text-align: center; }

/* typography */
.cainco-wave-hero .cwh-heading {
    margin: 0;
    font-weight: 700;
    line-height: 1.1;
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

.cainco-wave-hero .cwh-subtext {
    font-size: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
    opacity: .95;
    max-width: 800px;
}

/* button */
.cainco-wave-hero .cwh-actions { margin-top: 1rem; }
.cainco-wave-hero .cwh-btn {
    display: inline-block;
    text-decoration: none;
    padding: .6rem 1.5rem;
    border-radius: 999px;
    background: #000;
    color: #fff !important;
    font-weight: 700;
    transition: opacity .2s ease;
}
.cainco-wave-hero .cwh-btn:hover { opacity: .9; }
