/* ===================================================
   Distribution Section
   Floor plan image (left) + content with feature list
   and CTAs (right). Mobile-first, stacks on small screens.
   =================================================== */

/* Base Styles */
body {
    font-family: polymath-display, sans-serif;
}

.distribution {
    background-color: #FAFAFA;
    padding: 40px 20px;
}

/* ===================================================
   Media (floor plan image)
   =================================================== */
.distribution__media-wrapper {
    position: relative;
    background-color: #f5f3f1;
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
}

.distribution__media {
    width: 100%;
    height: auto;
    display: block;
}

.distribution__media-caption {
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--color-secondary);
    opacity: 0.8;
}

/* ===================================================
   Content (right column)
   =================================================== */
.distribution__content-col {
    margin-top: 32px;
}

/* Eyebrow label */
.distribution__eyebrow {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

/* Title */
.distribution__title {
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 20px;
}

/* Description */
.distribution__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-secondary);
    margin-bottom: 28px;
    max-width: 520px;
}

/* ===================================================
   Feature List
   =================================================== */
/* Mobile: horizontal scroll view with 40px gap */
.distribution__features {
    list-style: none;
    padding: 0 0 12px;
    margin: 0 0 32px;
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.distribution__feature {
    font-size: 1.05rem;
    color: var(--color-secondary);
    padding: 12px 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ===================================================
   Actions (CTAs)
   =================================================== */
.distribution__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===================================================
   Responsive - Small phones and up (>= 576px)
   =================================================== */
@media (min-width: 576px) {
    .distribution__actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Reset full-width block CTAs to inline auto-width on larger screens */
    .distribution__actions .dv-cta--block {
        width: auto;
    }

    .distribution__actions .dv-cta--block .dv-cta__label {
        width: auto;
    }
}

/* ===================================================
   Responsive - Tablet and up (>= 768px)
   =================================================== */
@media (min-width: 768px) {
    .distribution {
        padding: 56px 40px;
    }

    .distribution__title {
        font-size: 2.5rem;
    }

    /* Content column: side-by-side layout */
    .distribution__content-col {
        margin-top: 0;
        padding-left: 40px;
    }

    /* Left pane matches the height of the right pane */
    .distribution__media-col {
        display: flex;
    }

    .distribution__media-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .distribution__media {
        flex: 1 1 auto;
        height: 100%;
        object-fit: cover;
    }

    /* Two-column feature list on wider screens (reset mobile scroll) */
    .distribution__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
        overflow-x: visible;
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    .distribution__feature {
        white-space: normal;
        border-bottom: 1px solid rgba(74, 44, 42, 0.12);
    }
}

/* ===================================================
   Responsive - Desktop and up (>= 992px)
   =================================================== */
@media (min-width: 992px) {
    .distribution {
        padding: 72px 52px;
    }

    .distribution__content-col {
        padding-left: 40px;
    }

    .distribution__title {
        font-size: 3rem;
    }
}

/* ===================================================
   Responsive - Large desktop (>= 1200px)
   =================================================== */
@media (min-width: 1200px) {
    .distribution__content-col {
        padding-left: 64px;
    }
}
