/**
 * Homepage / presentation UX Polish V2 — spacing, surfaces, bands, empty states.
 */

.site-home--presentation .home-pres {
    --home-pres-gap: clamp(2.75rem, 5.5vw, 4.75rem);
}

.site-home--presentation .home-pres__section {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-home--presentation .home-pres__section + .home-pres__section {
    margin-top: 0;
}

/* Smoother band edges between surface modes */
.site-home--presentation .home-pres__section.rj-surface--dark + .home-pres__section.rj-surface--light,
.site-home--presentation .home-pres__section.rj-surface--light + .home-pres__section.rj-surface--dark,
.site-home--presentation .home-pres__section.rj-surface--accent + .home-pres__section:not(.rj-surface--accent) {
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04);
}

.home-pres__section-title {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

/* Split / media bands — consistent image ratio */
.home-pres__split-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
}

.home-pres__split-media img {
    min-height: 100%;
    height: 100%;
}

/* Promo cards row */
.home-pres__promo-cards {
    padding-top: calc(var(--home-pres-gap) * 0.95);
    padding-bottom: calc(var(--home-pres-gap) * 0.95);
}

.home-pres__promo-grid {
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.home-pres__promo-card-media {
    aspect-ratio: 16 / 10;
}

.home-pres__promo-card-panel {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-pres__promo-cta,
.home-pres__link-cta {
    transition: opacity 0.15s ease, color 0.15s ease;
}

/* Testimonial */
.home-pres__testimonial {
    padding-top: calc(var(--home-pres-gap) * 0.9);
    padding-bottom: calc(var(--home-pres-gap) * 0.9);
}

.home-pres__testimonial-quote {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

/* Logos strip */
.home-pres__logos {
    padding-top: calc(var(--home-pres-gap) * 0.65);
    padding-bottom: calc(var(--home-pres-gap) * 0.65);
}

.home-pres__logos-list {
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
    justify-content: center;
}

.home-pres__logos-link img {
    max-height: 2.75rem;
    width: auto;
    object-fit: contain;
    opacity: 0.82;
    transition: opacity 0.15s ease;
}

.home-pres__logos-link:hover img {
    opacity: 1;
}

/* Stats band */
.home-pres__stats-band {
    padding-top: calc(var(--home-pres-gap) * 0.75);
    padding-bottom: calc(var(--home-pres-gap) * 0.75);
}

/* Empty / weak content */
.home-pres__empty {
    padding: clamp(2rem, 5vw, 3.5rem) var(--home-pres-pad-x);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.02);
    margin: 0 var(--home-pres-pad-x) var(--home-pres-gap);
}

.rj-surface--dark .home-pres__empty {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.home-pres__empty-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Card-grid fallback inside presentation shell — vertical rhythm */
.home-pres--composer .home-pres__composer-fallback .rj-card__panel,
.home-pres--composer .home-pres__composer-fallback .rj-card__link {
    padding-top: clamp(1.35rem, 3vw, 2.1rem);
    padding-bottom: clamp(1.35rem, 3vw, 2.1rem);
}

.home-pres--composer .home-pres__composer-fallback .rj-card__media {
    aspect-ratio: 4 / 3;
}

@media (max-width: 720px) {
    .site-home--presentation .home-pres {
        --home-pres-gap: clamp(2rem, 6vw, 3rem);
    }

    .home-pres__promo-grid {
        grid-template-columns: 1fr;
    }
}
