/* ============================================
   PAGE: Our Centers (list) — deploy-v6 redesign
   Hero uses shared .get-in-touch styles (home).
   Closing banner uses shared .approach-cta.
   This file styles the center cards + page tweaks.
   ============================================ */

/* Hero grid: allow the photo column to shrink on mid widths.
   Must include .page-centers in the stack query or this selector
   beats home get_in_touch.css and stays two-column at 768. */
.page-centers .get-in-touch__inner {
    grid-template-columns: 1fr minmax(0, 632px);
}

@media (max-width: 1024px) {
    .page-centers .get-in-touch__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        justify-items: center;
    }

    .page-centers .get-in-touch__content {
        padding-top: 0;
        max-width: none;
        width: 100%;
    }

    .page-centers .get-in-touch__photo {
        margin: 0 auto;
    }
}

.centers-balance {
    text-wrap: balance;
}

/* ----- Center list ----- */
.centers-list {
    max-width: calc(var(--container-max) + 2 * var(--section-side-padding));
    margin: 0 auto;
    padding: 72px var(--section-side-padding);
}

.centers-list__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 760px;
}

.centers-list__heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: var(--font-weight-normal);
    line-height: 50px;
    letter-spacing: -1px;
    color: var(--color-text-heading);
    margin: 0;
}

.centers-list__intro {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text-body);
    text-wrap: pretty;
}

.centers-list__hours {
    white-space: nowrap;
}

.centers-list__intro a {
    color: var(--color-primary-text);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.centers-list__grid {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 24px;
}

.centers-list__item {
    min-width: 0;
    display: flex;
}

.centers-list__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.centers-list__media {
    position: relative;
    display: block;
}

.centers-list__photo {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--color-primary-light);
}

.centers-list__photo--logo {
    object-fit: contain;
    padding: 20px;
    background: var(--color-white);
    border: 2px solid var(--color-surface-line-soft);
}

.centers-list__name {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    line-height: 28px;
    margin: 12px 0 4px;
    color: var(--color-text-heading);
    transition: color var(--transition-fast);
}

.centers-list__link:hover .centers-list__name {
    color: var(--color-primary-text);
}

.centers-list__address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    color: #776d79;
    font-size: 15px;
    line-height: 22px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.centers-list__address img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.centers-list__address address {
    font-style: normal;
}

.centers-list__more {
    margin-top: auto;
    padding-top: 12px;
}

/* Closing banner width matches list */
.approach-cta {
    max-width: calc(var(--container-max) + 2 * var(--section-side-padding));
}

@media (max-width: 768px) {
    .centers-list {
        padding: 56px var(--section-side-padding);
    }

    .centers-list__heading {
        font-size: 32px;
        line-height: 40px;
    }

    .centers-list__photo {
        height: 180px;
    }
}
