/* Hero — full-bleed background image with dim overlay, left-aligned content.
   Heading/buttons use shared .circla-* classes (see style.css). */

.hero-block {
    position: relative;
    padding: 140px 0 100px;
    background-color: #233129;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

/* Background image is supplied inline as the --hero-bg custom property so the
   mobile variant (--hero-bg-mobile) can override it via media query. */
.hero-block--has-bg {
    background-image: var(--hero-bg);
}

.hero-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.hero-block__inner {
    position: relative;
    max-width: 1264px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero-block__subtag {
    display: inline-block;
    margin-bottom: 28px;
    padding: 7px 16px;
    background-color: #233129;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    font-family: "Neue Augenblick";
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap; /* keep the subtag pill on one line */
}

.hero-block__heading {
    max-width: 734px;
    margin: 0 0 16px;
}

.hero-block__subheading {
    color: rgba(255, 255, 255, 0.90);
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 600;
    line-height: 24px; /* 150% */
    max-width: 686px;
    margin-bottom: 28px;
}

.hero-block__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.hero-block__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-block__check {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    font-family: "Neue Augenblick";
    font-weight: 700;
}

.hero-block__check::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 23px;
    height: 23px;
    transform: translateY(-50%);
    background-image: url("../../dist/graphics/circla_checkbox.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

@media (max-width: 900px) {
    .hero-block {
        padding: 100px 0 72px;
    }
    .hero-block__checks {
        gap: 16px 24px;
    }
}

@media (max-width: 768px) {
    /* Use the dedicated mobile image when one was set (class only present then). */
    .hero-block--has-mobile-bg {
        background-image: var(--hero-bg-mobile);
    }

    /* More top room for the overlapping header; tight bottom. */
    .hero-block {
        padding-top: 128px;
        padding-bottom: 24px;
    }

    /* Flex column lets us reorder; on mobile the checks sit ABOVE the buttons.
       Uniform gap handles spacing, so zero out the children's own margins. */
    .hero-block__inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 0 16px;
    }
    .hero-block__subtag,
    .hero-block__heading,
    .hero-block__subheading,
    .hero-block__ctas,
    .hero-block__checks {
        margin: 0;
    }
    .hero-block__heading,
    .hero-block__subheading,
    .hero-block__ctas,
    .hero-block__checks {
        width: 100%;
    }
    .hero-block__ctas {
        order: 1; /* pushed below the checks (which keep default order 0) */
        gap: 8px;
    }
    /* Heading scales down to 40px on phones. */
    .hero-block__heading.circla-heading--lg {
        font-size: 40px !important;
        line-height: 1.1 !important;
    }
    /* Checkboxes stack vertically. */
    .hero-block__checks {
        flex-direction: column;
    }
}
