/*
|--------------------------------------------------------------------------
| RAV Residential Sites
|--------------------------------------------------------------------------
*/

.cew-rav-sites {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #f9f9f8;
}

.cew-rav-sites-container {
    max-width: 1200px;
    margin: auto;
    padding-left: 48px;
    padding-right: 48px;
}

.cew-rav-sites-heading {
    text-align: center;

    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    color: #0f5238;
    margin: 0 0 32px 0;
}

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

.cew-rav-sites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/

.cew-rav-sites-card {
    position: relative;
    display: block;
    height: 300px;
    overflow: hidden;

    border-radius: 16px;
    border: 1px solid #bfc9c1;
    background-color: #e2e2e2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

    text-decoration: none;

    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.cew-rav-sites-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
}

.cew-rav-sites-media {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    transition: transform 0.5s ease;
}

.cew-rav-sites-card:hover .cew-rav-sites-media {
    transform: scale(1.1);
}

.cew-rav-sites-scrim {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 24px;

    background-image: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.80) 0%,
        transparent 100%
    );
}

.cew-rav-sites-card-eyebrow {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    color: #b1ecff;
    margin-bottom: 4px;
}

.cew-rav-sites-card-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #ffffff;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .cew-rav-sites {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .cew-rav-sites-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cew-rav-sites-heading {
        font-size: 28px;
        line-height: 36px;
    }

}
