/* ---- Section ---- */

.showroom-section {
    background-color: #75805e;
}

/* Same vertical rhythm as the other frontpage sections (40px mobile / 64px desktop).
   The extra .container specificity beats the global container padding-block variable. */
section.showroom-section.container {
    padding-block: 40px;
}

@media (min-width: 770px) {
    section.showroom-section.container {
        padding-block: 64px;
    }
}

/* ---- Hero image ---- */

.showroom-section__hero {
    position: relative;
    overflow: hidden;
    aspect-ratio: 32 / 15;
    min-height: 300px;
}

.showroom-section__hero-image-link {
    position: absolute;
    inset: 0;
}

.showroom-section__hero-image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.showroom-section__hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 32px;
    gap: 16px;
    pointer-events: none;
}

.showroom-section__hero-title {
    margin: 0;
    color: inherit;
}

.showroom-section__hero-link {
    display: inline-block;
    padding: 12px 32px;
    background-color: #8c4d15;
    border: 1px solid #8c4d15;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    pointer-events: auto;
}

.showroom-section__hero-link:hover {
    background-color: #6f3c0f;
    border-color: #6f3c0f;
    color: #fff;
}

/* ---- Grid ---- */

/* No bottom padding - the section's own padding-block provides the bottom space */
.showroom-section__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 24px 16px 0;
    max-width: var(--hs-container-width);
    margin-inline: auto;
}

.showroom-section__grid-item {
    width: calc(50% - 8px);
}

.showroom-section__grid-link {
    display: block;
}

.showroom-section__grid-image {
    display: block;
    width: 100%;
    /* !important: the Image component sets an inline aspect-ratio per upload */
    aspect-ratio: 7 / 10 !important;
    object-fit: cover;
    margin: 0;
}

/* ---- Desktop ---- */

@media (min-width: 960px) {
    .showroom-section__hero {
        min-height: 500px;
    }

    .showroom-section__grid {
        margin-top: -100px;
        gap: 32px;
        padding-inline: 32px;
    }

    .showroom-section__grid-item {
        width: 28%;
        position: relative;
        z-index: 1;
    }
}

@media (min-width: 1280px) {
    .showroom-section__hero {
        min-height: 600px;
    }

    .showroom-section__grid {
        margin-top: -125px;
    }
}
