/* Wave Hero — full-width, image-height via aspect-ratio */

.cainco-wave-hero {
    position: relative;
    width: 100%;
    aspect-ratio: var(--cwh-ratio, 16 / 6);
    overflow: hidden;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Dim overlay (optional) */
.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;
}

/* Inner wrapper aligns content vertically/horizontally */
.cainco-wave-hero .cwh-inner {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;   /* vertical center */
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem 1rem;
}

.cainco-wave-hero.content-left  .cwh-inner { justify-content: flex-start; text-align: left; }
.cainco-wave-hero.content-right .cwh-inner { justify-content: flex-end;   text-align: right; }

/* Bootstrap container ensures max-width breakpoints */
.cainco-wave-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cainco-wave-hero.content-left .container  { align-items: flex-start; }
.cainco-wave-hero.content-right .container { align-items: flex-end; }

/* Typography */
.cainco-wave-hero .cwh-heading {
    margin: 0;
    font-weight: 600; /* updated */
    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: 0.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: 0.65rem 1.5rem;
    border-radius: 999px;
    background: #000;
    color: #fff !important;
    font-weight: 700;
    transition: opacity .2s ease;
}
.cainco-wave-hero .cwh-btn:hover { opacity: 0.9; }
