/* static/components/bento/two-feature.css */
/* Reusable guided two-feature layout — premium, photography-first, Bootstrap-friendly */

.two-feature-bento-section {
    padding: 0 clamp(0.75rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4rem);
}

.two-feature-bento-section__inner {
    width: 100%;
    max-width: min(100%, 1400px);
    margin-inline: auto;
}

.two-feature-bento {
    --two-feature-gap: clamp(0.875rem, 1.8vw, 1.25rem);
    --two-feature-radius: clamp(1.125rem, 2vw, 1.75rem);
    --two-feature-card-height: clamp(17rem, 38vmin, 22rem);
    --two-feature-title: clamp(1.35rem, 2.8vw, 1.85rem);
    --two-feature-body-pad: clamp(1.25rem, 3vw, 1.75rem);
}

.two-feature-bento--hero {
    --two-feature-card-height: clamp(24rem, 56vmin, 40rem);
    --two-feature-title: clamp(1.75rem, 3.8vw, 2.75rem);
    --two-feature-body-pad: clamp(1.5rem, 4vw, 2.75rem);
}

.two-feature-bento__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--two-feature-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}

.two-feature-bento__card {
    position: relative;
    display: block;
    min-height: var(--two-feature-card-height);
    border: none;
    border-radius: var(--two-feature-radius);
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    text-decoration: none;
    transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.two-feature-bento__card:hover,
.two-feature-bento__card:focus-visible {
    color: #fff;
    filter: brightness(1.04);
}

.two-feature-bento__card:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 4px;
}

.two-feature-bento__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.two-feature-bento__img--placeholder {
    filter: saturate(0.9);
}

.two-feature-bento__card:hover .two-feature-bento__img,
.two-feature-bento__card:focus-visible .two-feature-bento__img {
    transform: scale(1.04);
}

.two-feature-bento__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 0%,
            rgba(0, 0, 0, 0.1) 42%,
            rgba(0, 0, 0, 0.55) 80%,
            rgba(0, 0, 0, 0.74) 100%
        );
    pointer-events: none;
}

.two-feature-bento__body {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: var(--two-feature-body-pad);
    text-align: left;
}

.two-feature-bento--align-center .two-feature-bento__body {
    align-items: center;
    text-align: center;
}

.two-feature-bento__eyebrow {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.two-feature-bento__title {
    font-size: var(--two-feature-title);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.two-feature-bento__desc {
    display: -webkit-box;
    overflow: hidden;
    max-width: 32rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.two-feature-bento__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    margin-top: 0.35rem;
    padding: 0.55rem 1.35rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #1d1d1f;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.two-feature-bento__card:hover .two-feature-bento__cta,
.two-feature-bento__card:focus-visible .two-feature-bento__cta {
    background: #fff;
    transform: scale(1.02);
}

/* Tablet+: equal twin columns — intentional guided pair */
@media (min-width: 768px) {
    .two-feature-bento__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .two-feature-bento__card {
        height: 100%;
    }
}

@media (max-width: 767.98px) {
    .two-feature-bento__card:first-child {
        min-height: clamp(20rem, 52vmin, 26rem);
    }

    .two-feature-bento__card:last-child {
        min-height: clamp(17rem, 46vmin, 22rem);
    }

    .two-feature-bento--align-center .two-feature-bento__body {
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .two-feature-bento__card,
    .two-feature-bento__img,
    .two-feature-bento__cta {
        transition: none;
    }

    .two-feature-bento__card:hover .two-feature-bento__img,
    .two-feature-bento__card:focus-visible .two-feature-bento__img,
    .two-feature-bento__card:hover .two-feature-bento__cta,
    .two-feature-bento__card:focus-visible .two-feature-bento__cta {
        transform: none;
    }
}
