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

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

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

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.cew-sites-header {
    text-align: center;
    margin-bottom: 56px;
}

.cew-sites-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1c1c;
    margin: 0 0 8px 0;
}

.cew-sites-subheading {
    font-size: 16px;
    line-height: 1.6;
    color: #404943;
    max-width: 640px;
    margin: 0 auto;
}

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

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

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

.cew-site-card {
    background-color: #ffffff;
    border: 1px solid #bfc9c1;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

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

/*
|--------------------------------------------------------------------------
| Image
|--------------------------------------------------------------------------
*/

.cew-site-image {
    height: 224px;
    overflow: hidden;
    background-color: #e2e2e2;
}

.cew-site-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cew-site-card:hover .cew-site-image img {
    transform: scale(1.1);
}

/*
|--------------------------------------------------------------------------
| Body
|--------------------------------------------------------------------------
*/

.cew-site-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cew-site-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cew-site-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #1A2F23;
    margin: 0;
}

.cew-site-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.cew-site-description {
    font-size: 16px;
    line-height: 1.6;
    color: #404943;
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Link
|--------------------------------------------------------------------------
*/

.cew-site-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #2D6A4F;

    transition: gap 0.3s ease;
}

.cew-site-link:hover {
    gap: 10px;
}

.cew-site-link .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 18px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

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

@media (max-width: 1024px) {

    .cew-sites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {

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

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

    .cew-sites-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}
