/* ── Delivery & trust ───────────────────────────────────────
   Figma: desktop 2729:5515, tablet 3112:41988, mobile 2243:1980.
   ─────────────────────────────────────────────────────────── */

.delivery-trust {
    padding: 80px var(--pad-x) 40px;
    background: var(--color-grey-light);
}

.delivery-trust__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.delivery-trust__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

.delivery-trust__copy {
    display: flex;
    flex: 0 1 574px;
    flex-direction: column;
    gap: 20px;
}

.delivery-trust__subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.delivery-trust__text {
    font-family: var(--font-heading);
    line-height: 25px;
}

.delivery-trust__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.delivery-trust__buttons .button--primary {
    min-width: 223px;
}

.delivery-trust__media {
    flex: 0 1 664px;
    aspect-ratio: 664 / 443;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 0 12px rgb(0 0 0 / 0.12);
}

.delivery-trust__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The white strip */
.delivery-trust__strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 0 0 12px rgb(0 0 0 / 0.12);
}

.delivery-trust__strip-text,
.delivery-trust__contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 20px;
}

.delivery-trust__strip-text span {
    font-weight: 600;
    font-size: 20px;
}

/* A thin divider between the two parts of each side */
.delivery-trust__strip-link,
.delivery-trust__hours {
    padding-left: 12px;
    border-left: 1px solid var(--color-border);
    font-weight: 700;
}

.delivery-trust__strip-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.delivery-trust__contact {
    gap: 8px;
}

/* The mobile copy of the link (in the contact side) */
.delivery-trust__strip-link--mobile {
    display: none;
}

.delivery-trust__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    white-space: nowrap;
}

.delivery-trust__hours {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 20.8px;
    color: var(--color-text);
}

/* Deep Green (Gravel Calculator page, 3606:17413): white words, the strip
   a see-through Mid Green */
.delivery-trust--dark {
    padding-bottom: 80px;
    background: var(--color-secondary);
    color: var(--color-white);
}

.delivery-trust--dark .delivery-trust__strip {
    background: rgb(23 106 56 / 0.4);
}

.delivery-trust--dark .delivery-trust__strip-link,
.delivery-trust--dark .delivery-trust__phone {
    color: var(--color-white);
}

.delivery-trust--dark .delivery-trust__strip-link,
.delivery-trust--dark .delivery-trust__hours {
    border-left-color: #F3F3F3;
}

.delivery-trust--dark .delivery-trust__hours {
    color: var(--color-grey);
}

/* ── Tablet: photo on top, full-width button ────────────────── */
@media (max-width: 1024px) {
    .delivery-trust {
        padding: 48px var(--pad-x) 24px;
    }

    .delivery-trust--dark {
        padding-bottom: 48px;
    }

    .delivery-trust__main {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 32px;
    }

    .delivery-trust__copy {
        flex-basis: auto;
        gap: 12px;
    }

    .delivery-trust__text {
        font-family: var(--font-body);
        line-height: 20.8px;
    }

    .delivery-trust__media {
        flex-basis: auto;
    }

    .delivery-trust__buttons {
        flex-direction: column;
        gap: 16px;
        margin-top: 28px;
    }

    .delivery-trust__buttons .button--primary {
        width: 100%;
    }

    .delivery-trust__strip {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .delivery-trust__strip-text {
        justify-content: space-between;
    }

    .delivery-trust__strip-link {
        padding-left: 0;
        border-left: 0;
    }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .delivery-trust {
        padding: 40px var(--pad-x) 20px;
    }

    .delivery-trust--dark {
        padding-bottom: 40px;
    }

    .delivery-trust__inner {
        gap: 25px;
    }

    .delivery-trust__main {
        gap: 25px;
    }

    .delivery-trust__copy {
        gap: 20px;
    }

    .delivery-trust__text {
        font-family: var(--font-heading);
        line-height: 25px;
    }

    .delivery-trust__buttons {
        gap: 12px;
        margin-top: 0;
    }

    .delivery-trust__strip {
        gap: 16px;
        padding: 16px 20px;
        box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
    }

    .delivery-trust__strip-text {
        align-items: flex-end;
        font-size: 15px;
    }

    .delivery-trust__strip-text .delivery-trust__strip-link {
        display: none;
    }

    .delivery-trust__strip-link {
        font-size: 14px;
        line-height: 18px;
    }

    /* Phone over hours on the left; Learn more on the right, at the bottom */
    .delivery-trust__contact {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 4px 12px;
        font-size: 14px;
        line-height: 18px;
    }

    .delivery-trust__contact .delivery-trust__strip-link--mobile {
        display: block;
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: end;
    }

    .delivery-trust__hours {
        padding-left: 0;
        border-left: 0;
        font-size: 12px;
        line-height: 16px;
    }
}
