/*
|--------------------------------------------------------------------------
| PAV Directory & CQC
|--------------------------------------------------------------------------
*/

.cew-pav-dir {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: rgba(218, 218, 217, 0.30);
}

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

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

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

.cew-pav-dir-card {
    padding: 32px;

    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(191, 201, 193, 0.30);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/*
|--------------------------------------------------------------------------
| Contact card
|--------------------------------------------------------------------------
*/

.cew-pav-dir-heading {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #2D6A4F;
    margin: 0 0 32px 0;
}

.cew-pav-dir-rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cew-pav-dir-row {
    --cew-accent: #2D6A4F;

    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cew-pav-dir-row--divided {
    padding-top: 16px;
    border-top: 1px solid rgba(191, 201, 193, 0.30);
}

/* the plain rows sit tighter — they carry no avatar to align against */
.cew-pav-dir-row--plain {
    align-items: center;
}

.cew-pav-dir-row-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background-color: var(--cew-accent);
}

.cew-pav-dir-row-avatar .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
}

.cew-pav-dir-row-icon {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1;
    color: #404943;
}

.cew-pav-dir-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.05em;
    color: var(--cew-accent);
    margin: 0;
}

.cew-pav-dir-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    color: #1a1c1c;
    margin: 0;
}

/* a plain row's value is body copy, not a name */
.cew-pav-dir-row--plain .cew-pav-dir-value {
    font-weight: 400;
}

.cew-pav-dir-link {
    display: inline-block;

    font-size: 16px;
    line-height: 26px;
    color: #16677a;
    text-decoration: none;
    word-break: break-word;
}

a.cew-pav-dir-link:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| CQC card
|--------------------------------------------------------------------------
*/

.cew-pav-dir-cqc {
    --cew-rating: #F4A261;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cew-pav-dir-cqc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;

    margin-bottom: 16px;
}

.cew-pav-dir-cqc-provider {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #1A2F23;
    margin: 0;
}

.cew-pav-dir-cqc-badge {
    flex-shrink: 0;

    padding: 4px 16px;
    border-radius: 4px;

    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.05em;

    background-color: #FFCC00;
    color: #000000;
}

.cew-pav-dir-cqc-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cew-pav-dir-cqc-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #404943;
    margin: 0;
}

.cew-pav-dir-cqc-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cew-pav-dir-cqc-dot {
    width: 16px;
    height: 16px;
    flex-shrink: 0;

    border-radius: 999px;
    background-color: var(--cew-rating);
}

.cew-pav-dir-cqc-rating p {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: var(--cew-rating);
    margin: 0;
}

.cew-pav-dir-cqc-date {
    font-size: 16px;
    line-height: 26px;
    color: #404943;
    margin: 0;
}

.cew-pav-dir-cqc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    margin-top: 32px;
    padding: 12px 24px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;

    background-color: #e8e8e7;
    color: #1a1c1c;
    text-decoration: none;

    transition: background-color 0.3s ease;
}

.cew-pav-dir-cqc-btn:hover {
    background-color: #dadad9;
}

.cew-pav-dir-cqc-btn .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

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

@media (max-width: 900px) {

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

}

@media (max-width: 768px) {

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

    .cew-pav-dir-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cew-pav-dir-card {
        padding: 24px;
    }

    .cew-pav-dir-heading {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 24px;
    }

    .cew-pav-dir-cqc-provider {
        font-size: 20px;
        line-height: 28px;
    }

    .cew-pav-dir-cqc-rating p {
        font-size: 20px;
        line-height: 28px;
    }

}
