/* Only the opening section on the front page; desktop retains its Divi layout. */
@media (max-width: 767px) {
    body.home #page-container .et_pb_section_0:has(.hero-actions) {
        --rsb-home-title-height: clamp(180px, 48vw, 240px);
        isolation: isolate;
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 0 24px !important;
        gap: 0 !important;
        background-color: #000 !important;
        background-size: 0 0 !important;
        background-repeat: no-repeat !important;
    }
    body.home #page-container .et_pb_section_0:has(.hero-actions)::before {
        content: "";
        display: block;
        position: absolute;
        top: 14px;
        left: 16px;
        right: 16px;
        bottom: auto;
        z-index: 0;
        width: auto;
        height: var(--rsb-home-title-height);
        background-image: inherit;
        background-size: cover;
        background-position: right center;
        background-repeat: no-repeat;
        pointer-events: none;
    }
    body.home #page-container .et_pb_section_0:has(.hero-actions) > .et_pb_row {
        position: relative;
        z-index: 1;
        width: calc(100% - 32px) !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 14px 0 0 !important;
        gap: 0 !important;
    }
    body.home #page-container .et_pb_section_0:has(.hero-actions) .et_pb_column,
    body.home #page-container .et_pb_section_0:has(.hero-actions) .et_pb_code {
        margin: 0 !important;
        padding: 0 !important;
    }
    body.home #page-container .hero-copy:has(.hero-actions) {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    body.home #page-container .hero-copy:has(.hero-actions) .hero-title {
        order: 0;
        box-sizing: border-box;
        min-height: var(--rsb-home-title-height);
        background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .25));
        text-shadow: 0 2px 5px #000;
        font-size: clamp(27px, 7.7vw, 36px) !important;
        line-height: 1.06 !important;
        margin: 0 !important;
        padding: 16px 10px !important;
    }
    body.home #page-container .hero-copy:has(.hero-actions) .hero-line {
        order: 1;
        margin: 12px 0 !important;
    }
    body.home #page-container .hero-actions {
        order: 2;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
        width: 100%;
        margin: 0 !important;
    }
    body.home #page-container .hero-actions .hero-action {
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
    }
    body.home #page-container .hero-actions .hero-separator { display: none !important; }
    body.home #page-container .hero-actions .hero-action-label {
        font-size: 11px !important;
        line-height: 1.3 !important;
        min-height: 29px;
        margin: 0 0 6px !important;
    }
    body.home #page-container .hero-actions .hero-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 48px;
        padding: 10px 6px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        text-align-last: center !important;
        white-space: normal;
    }
    body.home #page-container .hero-actions .hero-action-desc {
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin: 6px 0 0 !important;
    }
    body.home #page-container .hero-copy:has(.hero-actions) .hero-desc {
        order: 3;
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 18px 0 0 !important;
    }
    body.home #page-container .hero-copy:has(.hero-actions) .hero-desc p { padding-bottom: 0; }

    /* About us: match the standard 15px Divi row gutter on phones. */
    body.home #page-container .et_pb_section_6 .et_pb_column_9 {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 32px 0 !important;
        border: 0 !important;
    }
}
