/* ============================================================
   Our Services page â€” center content styles
   Top hero + footer shared via inner-page.css + our-homes.css
   ============================================================ */

.page-services [id^="sec-"] { scroll-margin-top: 172px; }

.page-services .section-wrapper > .hero-our-homes { margin: 0; }
.page-services .section-wrapper > .ip-page-subnav { margin: 0; padding: 0; }

.page-services .section-wrapper > .sv-lead { padding: 56px 0 64px; background: #fff; }
.page-services .section-wrapper > .sv-intro { padding: 72px 0; background: #FAFAF8; }
.page-services .section-wrapper > .sv-core-pathways { padding: 72px 0; background: #FAFAF8; border-top: 1px solid #EEF0F2; }
.page-services .section-wrapper > .sd-coverage { padding: 72px 0; background: #fff; border-top: 1px solid #EEF0F2; }
.page-services .section-wrapper > .sv-services-blocks { padding: 72px 0; background: #fff; }
.page-services .section-wrapper > .sv-daily-life { padding: 80px 0; background: #002B49; }
.page-services .section-wrapper > .sv-personalized { padding: 72px 0; background: #fff; }
.page-services .section-wrapper > .sv-process { padding: 72px 0; background: #FAFAF8; }

/* Coverage grid (was missing on services page â€” cards collapsed) */
.page-services .sd-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.page-services .sd-section-lead {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin: 16px auto 0;
    max-width: 640px;
}
.page-services .sd-coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.page-services .sd-coverage-grid--count-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.page-services .sd-coverage-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #EEF0F2;
    box-shadow: 0 4px 24px rgba(0, 43, 73, 0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}
.page-services .sd-coverage-card:hover {
    box-shadow: 0 8px 32px rgba(0, 43, 73, 0.08);
    transform: translateY(-2px);
}
.page-services .sd-coverage-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(230, 138, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #E68A00;
}
.page-services .sd-coverage-icon svg { stroke: #E68A00; }
.page-services .sd-coverage-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #002B49;
    margin: 0 0 8px;
    line-height: 1.35;
}
.page-services .sd-coverage-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.65;
    margin: 0;
}

/* Core care pathways */
.page-services .sv-core-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.page-services .sv-core-card {
    background: #fff;
    border: 1px solid #EEF0F2;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0, 43, 73, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.page-services .sv-core-card:hover {
    box-shadow: 0 10px 36px rgba(0, 43, 73, 0.1);
    transform: translateY(-2px);
}
.page-services .sv-core-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 600;
    color: #002B49;
    margin: 0;
    line-height: 1.25;
}
.page-services .sv-core-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}
.page-services .sv-core-card ul {
    list-style: none;
    margin: 4px 0 8px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.page-services .sv-core-card li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    font-weight: 500;
    color: #002B49;
    line-height: 1.45;
}
.page-services .sv-core-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E68A00;
}
.page-services .sv-core-card .hp-link {
    margin-top: auto;
    font-weight: 600;
    color: #4A9BC7;
}

/* --- Shared --- */
.sv-section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sv-section-title-center { text-align: center; margin-left: auto; margin-right: auto; }
.sv-section-intro {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.75;
    margin: 16px auto 0;
    max-width: 640px;
}
.oh-eyebrow-light { color: #E68A00; }

/* --- Lead intro (below hero) --- */
.sv-lead-inner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.sv-lead-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.sv-lead-text {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.75;
    margin: 16px auto 0;
    max-width: 640px;
}
.sv-lead-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.sv-lead-highlights {
    list-style: none;
    margin: 32px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
    max-width: 560px;
    text-align: left;
}
.sv-lead-highlights li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    font-weight: 600;
    color: #002B49;
    line-height: 1.45;
}
.sv-lead-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E68A00;
}

/* --- Intro --- */
.page-services .sv-intro .hp-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.page-services .sv-intro .hp-about-grid--reverse .hp-about-image { order: -1; }
.page-services .sv-intro .hp-about-text { margin-bottom: 16px; }
.page-services .sv-intro .hp-about-image {
    aspect-ratio: 16 / 10;
    max-height: 360px;
    width: 100%;
    border-radius: 16px;
    background-size: cover;
    background-position: center 35%;
}

/* --- Service blocks --- */
.sv-service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0;
    border-bottom: 1px solid #EEF0F2;
    scroll-margin-top: 172px;
}
.sv-service-block:first-of-type { padding-top: 0; }
.sv-service-block:last-of-type { border-bottom: none; padding-bottom: 0; }
.sv-service-block-image {
    aspect-ratio: 16/10;
    border-radius: 12px;
    background-color: #E8DDD0;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 24px rgba(0,43,73,0.08);
}
.sv-service-block--reverse .sv-service-block-image { order: 2; }
.sv-service-block--reverse .sv-service-block-content { order: 1; }
.sv-service-label { margin-bottom: 8px; }
.sv-service-block-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    color: #002B49;
    margin: 0 0 12px;
    line-height: 1.2;
}
.sv-service-block-text {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.75;
    margin: 0 0 20px;
}
.sv-service-features { margin-bottom: 20px; }

/* Feature pills (same as Our Homes oh-tag system) */
.page-services .oh-tag {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 9999px;
    white-space: nowrap;
}
.page-services .oh-tag-gold {
    background: rgba(230,138,0,0.1);
    border: 1px solid rgba(230,138,0,0.35);
    color: #E68A00;
}
.page-services .oh-tag-blue {
    background: #E8F4FC;
    color: #002B49;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid rgba(74,155,199,0.25);
}
.page-services .oh-feature-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
}
.page-services .oh-feature-tags li {
    margin: 0;
    padding: 0;
}
.page-services .oh-feature-tags li::before {
    content: none;
}
.page-services .sv-core-card .oh-feature-tags {
    margin: 4px 0 8px;
}
.sv-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4A9BC7;
    text-decoration: none;
}
.sv-service-link:hover { color: #002B49; }

/* --- Daily life --- */
.sv-daily-life-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.sv-daily-life-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
}
.sv-daily-life-lead {
    font-size: 16px;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin: 0;
}
.sv-daily-life-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.sv-daily-life-col h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sv-daily-life-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sv-daily-life-col li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
}
.sv-daily-life-col li::before {
    content: 'â€¢';
    position: absolute;
    left: 0;
    color: #E68A00;
}

/* --- Personalized care --- */
.sv-personalized-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}
.sv-personalized-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid #EEF0F2;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,43,73,0.05);
}
.sv-personalized-check {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(230,138,0,0.12);
    color: #E68A00;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sv-personalized-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #002B49;
    margin: 6px 0 0;
    line-height: 1.35;
}

/* --- Process --- */
.page-services .sv-process .hp-process-header { margin-bottom: 48px; }
.page-services .hp-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.page-services .hp-process-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: rgba(0,43,73,0.12);
    line-height: 1;
    margin-bottom: 12px;
}
.page-services .hp-process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: #002B49;
    margin: 0 0 8px;
}
.page-services .hp-process-step p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.65;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .page-services .sd-coverage-grid--count-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .sv-lead-highlights { grid-template-columns: 1fr; max-width: 320px; }
    .sv-service-block,
    .sv-service-block--reverse {
        grid-template-columns: 1fr;
    }
    .sv-service-block--reverse .sv-service-block-image,
    .sv-service-block--reverse .sv-service-block-content { order: unset; }
    .sv-daily-life-columns { grid-template-columns: 1fr; gap: 28px; }
    .page-services .hp-process-grid { grid-template-columns: repeat(2, 1fr); }
    .page-services .sv-core-grid { grid-template-columns: 1fr; }
    .page-services .sd-coverage-grid,
    .page-services .sd-coverage-grid--count-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-services .section-wrapper > .sv-lead,
    .page-services .section-wrapper > .sv-intro,
    .page-services .section-wrapper > .sv-core-pathways,
    .page-services .section-wrapper > .sd-coverage,
    .page-services .section-wrapper > .sv-services-blocks,
    .page-services .section-wrapper > .sv-daily-life,
    .page-services .section-wrapper > .sv-personalized,
    .page-services .section-wrapper > .sv-process { padding: 48px 0; }
    .page-services .sd-coverage-grid,
    .page-services .sd-coverage-grid--count-5 {
        grid-template-columns: 1fr;
    }
    .sv-lead-actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
    .sv-lead-actions .btn { width: 100%; }
    .page-services .sv-intro .hp-about-grid { grid-template-columns: 1fr; gap: 32px; }
    .page-services .sv-intro .hp-about-grid--reverse .hp-about-image { order: unset; }
    .page-services .sv-intro .hp-about-image { max-height: 280px; aspect-ratio: 16 / 10; }
    .sv-personalized-grid { grid-template-columns: 1fr; }
    .page-services .hp-process-grid { grid-template-columns: 1fr; }
    .sv-service-block { padding: 32px 0; gap: 24px; }
}

@media (max-width: 480px) {
    .page-services .section-wrapper > .sv-lead,
    .page-services .section-wrapper > .sv-intro,
    .page-services .section-wrapper > .sv-services-blocks,
    .page-services .section-wrapper > .sv-daily-life,
    .page-services .section-wrapper > .sv-personalized,
    .page-services .section-wrapper > .sv-process { padding: 40px 0; }
    .sv-personalized-card { padding: 20px; }
}
