﻿.full-width-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.stfm-inspired-hero {
    background: linear-gradient(135deg, var(--stfm-primary) 0%, var(--stfm-primary) 70%, var(--stfm-tertiary) 100%);
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-inline: 1rem;
}

    /* was .stfm-inspired-hero .container */
    .stfm-inspired-hero .hero-inner {
        display: flex;
        align-items: center;
        gap: 2rem;
        width: min(1320px, 100%); /* mimic .container-xl without using it */
        margin-inline: auto;
        position: relative; /* keep content above ::before */
        z-index: 2;
    }

.stfm-main-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1.1;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
    flex: 0 0 320px;
}

.stfm-divider {
    width: 3px;
    min-height: 80px;
    align-self: stretch;
    background-color: #fff;
    opacity: 0.8;
    flex-shrink: 0;
}

.stfm-description {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    font-size: 1.07rem;
    color: #fff;
    opacity: 0.95;
    flex: 1;
}

    .stfm-description .cafm-highlight {
        color: var(--stfm-secondary);
        font-weight: 700;
    }

.stfm-inspired-hero::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 1.5px, rgba(255,255,255,.15) 1.5px, transparent 1.5px);
    background-size: 8px 8px;
    mask: radial-gradient(ellipse 200px 80px at 85% 30%, #000 40%, transparent 70%), radial-gradient(ellipse 150px 60px at 90% 60%, #000 40%, transparent 70%), radial-gradient(ellipse 180px 70px at 80% 80%, #000 40%, transparent 70%);
    -webkit-mask: radial-gradient(ellipse 200px 80px at 85% 30%, #000 40%, transparent 70%), radial-gradient(ellipse 150px 60px at 90% 60%, #000 40%, transparent 70%), radial-gradient(ellipse 180px 70px at 80% 80%, #000 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ≤ 991px */
@media (max-width: 991.98px) {
    .stfm-main-title {
        font-size: 1.5rem;
        flex: 0 0 150px;
        line-height: 1.2;
    }

    .stfm-description {
        font-size: .95rem;
    }

    .stfm-inspired-hero .hero-inner {
        gap: 1rem;
    }

    .stfm-divider {
        width: 2px;
    }
}

@media (min-width: 768px) {
    .stfm-inspired-hero {
        padding-inline: 2rem; /* a little more breathing room on tablets+ */
    }
}

/* ≤ 768px */
@media (max-width: 767.98px) {
    .stfm-inspired-hero .hero-inner {
        flex-direction: column;
        gap: 1.5rem; /* keep comfy spacing */
        align-items: flex-start;
        text-align: left;
    }

    .stfm-main-title {
        font-size: 1.4rem;
        flex: none;
        white-space: normal; /* allow wrapping on narrow screens */
    }

    .stfm-description {
        font-size: .9rem;
    }

    .stfm-divider {
        width: 60px;
        height: 3px;
        align-self: center;
        min-height: 0;
    }

    .stfm-inspired-hero {
        height: auto;
        padding: 2rem 0;
    }
}

/* ≤ 480px (optional fine-tune) */
@media (max-width: 480px) {
    .stfm-inspired-hero .hero-inner {
        text-align: center;
        align-items: center;
        gap: 1rem;
    }

    .stfm-main-title {
        font-size: 1.6rem;
        margin-bottom: .5rem;
    }

    .stfm-divider {
        width: 80px !important;
        height: 2px !important;
    }

    .stfm-description {
        padding-left: 0;
    }
}
