/* ==========================================================================
   CRRA Hero Module
   ========================================================================== */

.crra-hero-module {
    position: relative;
    width: 100%;
    margin: 0;
}

.crra-hero-module .crra-hero-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 1600 / 610;
    min-height: var(--crra-hero-canvas-min, 0px);
    max-height: 610px;
    overflow: hidden;
}

.crra-hero-module .crra-hero-photo {
    position: absolute;
    top: 0;
    height: 100%;
    object-fit: cover;
}

.crra-hero-module .crra-hero-photo-left {
    left: 0;
    width: 65.261875%;
}

.crra-hero-module .crra-hero-photo-right {
    left: 54.625%;
    width: 45.375%;
}

.crra-hero-module .crra-hero-overlay {
    position: absolute;
    top: 0;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.crra-hero-module .crra-hero-overlay-brown {
    left: 0;
    width: 65.261875%;
    background-image: url("../images/hero-overlay-brown.svg");
}

.crra-hero-module .crra-hero-overlay-dark {
    left: 55.375%;
    width: 44.5625%;
    background-image: url("../images/hero-dark-overlay.svg");
}

.crra-hero-module .crra-hero-overlay-yellow {
    left: 56.0625%;
    width: 14.0625%;
    background-image: url("../images/hero-strip-yellow.svg");
}

.crra-hero-module .crra-hero-overlay-red {
    left: 64.0625%;
    width: 11%;
    background-image: url("../images/hero-strip-red.svg");
}

.crra-hero-module .crra-hero-content {
    position: absolute;
    --crra-hero-left: max(clamp(20px, 3.3125vw, 53px), calc((100% - var(--crra-content-width)) / 2));
    top: var(--crra-hero-content-top, clamp(150px, 14.6vw, 210px));
    bottom: auto;
    left: var(--crra-hero-left);
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.crra-hero-module .crra-hero-title p {
    margin: 0;
    padding-bottom: 0;
}

.crra-hero-module .crra-hero-title p:empty {
    display: none;
}

.crra-hero-module .crra-hero-title {
    margin: 0;
    padding-bottom: 0;
    max-width: min(835px, calc(54% - var(--crra-hero-left) * 0.46));
    font-family: "Segoe UI", sans-serif;
    font-size: var(--crra-h1-size);
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
}

.crra-hero-module .crra-gradient {
    background: linear-gradient(90deg, var(--crra-yellow) 0%, var(--crra-mint) 99%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crra-hero-module .crra-hero-accent-wrap {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.25vw, 20px);
    margin-top: clamp(14px, 1.75vw, 28px);
}

.crra-hero-module .crra-hero-accent {
    flex: 0 0 4px;
    height: clamp(40px, 4vw, 64px);
    background: var(--crra-coral);
}

.crra-hero-module .crra-hero-subtitle {
    margin: 0 0 var(--crra-hero-subtitle-bottom, 0px);
    max-width: calc(50% - var(--crra-hero-left) * 0.5);
    font-family: "Segoe UI", sans-serif;
    font-size: var(--crra-body-size);
    font-weight: 400;
    line-height: 1.33;
    color: #FFFFFF;
}

.crra-hero-module .crra-hero-buttons {
    display: flex;
    gap: clamp(12px, 1.125vw, 18px);
    margin-top: clamp(24px, 2.5vw, 40px);
}

.crra-hero-module .crra-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: var(--crra-btn-height);
    padding: 0 var(--crra-btn-padding-inline);
    font-family: "Segoe UI", sans-serif;
    font-size: var(--crra-btn-font-size);
    font-weight: 700;
    letter-spacing: 0.094444em;
    text-decoration: none;
    text-transform: uppercase;
    clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
    transition: background 0.25s ease;
}

.crra-hero-module .crra-hero-btn-primary {
    min-width: clamp(220px, 19.575vw, 313px);
    color: #FFFFFF;
    background: var(--crra-coral);
}

.crra-hero-module .crra-hero-btn-secondary {
    min-width: clamp(240px, 21.125vw, 338px);
    color: var(--crra-green);
    background: var(--crra-beige);
}

.crra-hero-module .crra-hero-btn-primary:hover {
    background: #E5503F;
}

.crra-hero-module .crra-hero-btn-secondary:hover {
    background: #D8D7C4;
}

.crra-hero-module .crra-hero-btn-icon {
    transition: transform 0.2s ease;
}

.crra-hero-module .crra-hero-btn:hover .crra-hero-btn-icon {
    transform: translateX(4px);
}

.crra-hero-module .crra-hero-btn-label {
    white-space: nowrap;
}

.crra-hero-module .crra-hero-btn-icon {
    flex: 0 0 auto;
    margin-left: 10px;
}

.crra-hero-module .crra-hero-btn-icon-right {
    width: 14px;
    height: 14px;
}

.crra-hero-module .crra-hero-btn-icon-download {
    width: 17px;
    height: 17px;
}

.crra-hero-module .crra-hero-colorbar {
    display: flex;
    width: 100%;
    height: 12px;
}

.crra-hero-module .crra-hero-colorbar span {
    flex: 1;
}

@media (min-width: 981px) {
    .crra-hero-module .crra-hero-canvas {
        aspect-ratio: auto;
        height: calc(var(--crra-hero-height) - 12px);
        min-height: 0;
        max-height: none;
    }

    .crra-hero-module .crra-hero-content {
        top: auto !important;
        bottom: 56px !important;
    }
}

@media (max-width: 1024px) {
    .crra-hero-module .crra-hero-subtitle {
        font-size: var(--crra-body-size);
        padding-left: var(--crra-hero-sub-pad-sm, 20px) !important;
    }
}

@media (max-width: 980px) {
    .crra-hero-module .crra-hero-canvas {
        display: flex;
        flex-direction: column;
        justify-content: center;
        aspect-ratio: auto;
        max-height: none;
        padding: 160px 0 60px;
    }

    .crra-hero-module .crra-hero-content {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        padding-left: clamp(20px, 3.3125vw, 53px);
    }

    .crra-hero-module .crra-hero-title {
        max-width: 68%;
    }

    .crra-hero-module .crra-hero-subtitle {
        max-width: 58%;
    }

    .crra-hero-module .crra-hero-buttons {
        flex-wrap: wrap;
        margin-top: 30px;
        gap: 12px;
    }

    .crra-hero-module .crra-hero-btn {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .crra-hero-module .crra-hero-canvas {
        aspect-ratio: auto;
        max-height: none;
        padding: 160px 0 40px;
    }

    .crra-hero-module .crra-hero-content {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        width: auto;
        padding-top: 0;
        padding-left: 20px;
    }

    .crra-hero-module .crra-hero-title,
    .crra-hero-module .crra-hero-subtitle {
        max-width: 88%;
    }

    .crra-hero-module .crra-hero-accent-wrap {
        margin-top: 22px;
    }

    .crra-hero-module .crra-hero-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 24px;
        padding: 10px 25px 10px 0;
        gap: 12px;
    }

    .crra-hero-module .crra-hero-btn {
        min-width: 0;
        width: 100%;
        max-width: 300px;
        justify-content: center !important;
    }
}
