/**
 * C-Persian — Services Page
 * Refined visual system inspired by modern consulting layouts
 * while preserving C-Persian brand colors and existing markup.
 *
 * @package C_Persian
 */


/* ==========================================================================
   Page
   ========================================================================== */

.cp-services-page {
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #f7f5f1 0%,
            #ffffff 22%,
            #f7f5f1 100%
        );
    color: var(--cp-text);
}

.cp-services-page .cp-shell {
    width: min(
        calc(100% - 28px),
        var(--cp-container, 1280px)
    );
    margin-inline: auto;
}


/* ==========================================================================
   Shared eyebrow / small labels
   ========================================================================== */

.cp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 18px;
    padding: 7px 12px;

    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(15, 23, 31, 0.04);

    color: var(--cp-red);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

.cp-eyebrow__index {
    flex: 0 0 auto;
}

.cp-eyebrow__line {
    display: none !important;
}

.cp-eyebrow__text {
    flex: 0 1 auto;
}


/* ==========================================================================
   Shared section heading
   ========================================================================== */

.cp-section-heading {
    margin-bottom: 32px;
}

.cp-section-heading__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 16px;
    padding: 7px 12px;

    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(15, 23, 31, 0.04);

    color: var(--cp-red);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

.cp-section-heading__line {
    display: none !important;
}

.cp-section-heading__row {
    display: grid;
    gap: 14px;
}

.cp-section-heading__row h2 {
    margin: 0;

    max-width: 760px;

    font-size: clamp(29px, 8vw, 52px);
    font-weight: 850;
    line-height: 1.28;

    letter-spacing: -0.04em;
    color: var(--cp-text);
}

.cp-section-heading__row p {
    margin: 0;

    max-width: 620px;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.95;

    color: var(--cp-muted);
}


/* ==========================================================================
   Shared buttons
   ========================================================================== */

.cp-services-page .cp-button {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 20px;

    border: 1px solid transparent;
    border-radius: 999px;

    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    transition:
        transform var(--cp-transition, 180ms ease),
        background-color var(--cp-transition, 180ms ease),
        border-color var(--cp-transition, 180ms ease),
        color var(--cp-transition, 180ms ease),
        box-shadow var(--cp-transition, 180ms ease);
}

.cp-services-page .cp-button svg {
    width: 18px;
    height: 18px;

    flex: 0 0 auto;
}

.cp-services-page .cp-button:hover {
    transform: translateY(-2px);
}

.cp-services-page .cp-button--primary {
    background: var(--cp-red);
    color: #fff;
    border-color: var(--cp-red);
    box-shadow: 0 14px 28px rgba(210, 52, 79, 0.18);
}

.cp-services-page .cp-button--primary:hover {
    background: var(--cp-red-dark);
    border-color: var(--cp-red-dark);
    box-shadow: 0 18px 34px rgba(210, 52, 79, 0.22);
}

.cp-services-page .cp-button--ghost {
    background: rgba(255, 255, 255, 0.92);
    color: var(--cp-text);
    border-color: rgba(23, 23, 23, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 31, 0.05);
}

.cp-services-page .cp-button--ghost:hover {
    background: #fff;
    border-color: rgba(23, 23, 23, 0.14);
}

.cp-services-page .cp-button--light {
    background: #fff;
    color: var(--cp-burgundy);
    border-color: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.cp-services-page .cp-button--light:hover {
    background: rgba(255, 255, 255, 0.94);
}

.cp-services-page .cp-button--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.26);
}

.cp-services-page .cp-button--outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}


/* ==========================================================================
   Hero
   ========================================================================== */

.cp-services-hero {
    position: relative;
    padding-block: 30px 72px;
    background: transparent;
    border-bottom: 0;
}

.cp-services-hero::before,
.cp-services-hero::after {
    display: none !important;
}

.cp-services-hero__grid {
    display: grid;
    gap: 18px;
    align-items: stretch;
}

.cp-services-hero__content {
    position: relative;
    overflow: hidden;

    max-width: none;
    padding: 30px 22px 28px;

    border: 1px solid rgba(23, 23, 23, 0.06);
    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(26, 42, 60, 0.98) 0%,
            rgba(35, 53, 72, 0.95) 58%,
            rgba(42, 78, 104, 0.92) 100%
        );

    box-shadow: 0 28px 72px rgba(17, 26, 36, 0.14);
}

.cp-services-hero__content::before {
    content: "";

    position: absolute;
    inset-inline-end: 0;
    top: 0;

    width: min(38%, 220px);
    height: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0) 100%
        );

    clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.cp-services-hero__title {
    position: relative;
    z-index: 1;

    margin: 0;
    max-width: 820px;

    color: #fff;

    font-size: clamp(38px, 10vw, 72px);
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -0.05em;
}

.cp-services-hero__title span {
    display: block;
    color: var(--cp-coral, var(--cp-red));
}

.cp-services-hero__description {
    position: relative;
    z-index: 1;

    margin: 22px 0 0;
    max-width: 720px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;
    font-weight: 400;
    line-height: 2;
}

.cp-services-hero__actions {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 10px;

    margin-top: 26px;
}

.cp-services-hero__actions .cp-button {
    width: 100%;
}


/* ==========================================================================
   Hero meta cards
   ========================================================================== */

.cp-services-hero__meta {
    display: grid;
    gap: 14px;
}

.cp-services-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    min-height: 120px;
    padding: 22px 20px;

    border: 1px solid rgba(23, 23, 23, 0.06);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(15, 23, 31, 0.06);
}

.cp-services-stat__value {
    color: var(--cp-text);

    font-size: 28px;
    font-weight: 850;
    line-height: 1.1;
}

.cp-services-stat__label {
    max-width: 180px;

    color: var(--cp-muted);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
    text-align: start;
}


/* ==========================================================================
   Featured services
   ========================================================================== */

.cp-services-featured {
    padding-block: 74px;
    background: transparent;
}

.cp-featured-services {
    display: grid;
    gap: 16px;
    border-top: 0;
}

.cp-featured-service {
    position: relative;

    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;

    padding: 24px 20px;

    border: 1px solid rgba(23, 23, 23, 0.07);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(15, 23, 31, 0.05);

    transition:
        transform var(--cp-transition, 180ms ease),
        border-color var(--cp-transition, 180ms ease),
        box-shadow var(--cp-transition, 180ms ease),
        background-color var(--cp-transition, 180ms ease);
}

.cp-featured-service:hover {
    transform: translateY(-3px);
    border-color: rgba(28, 50, 72, 0.14);
    box-shadow: 0 22px 46px rgba(15, 23, 31, 0.08);
}

.cp-featured-service__number {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(210, 52, 79, 0.09);
    color: var(--cp-red);

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.cp-featured-service__content {
    min-width: 0;
}

.cp-featured-service__title {
    margin: 0;
}

.cp-featured-service__title,
.cp-featured-service__title a {
    color: var(--cp-text);

    font-size: 18px;
    font-weight: 850;
    line-height: 1.5;

    text-decoration: none;
}

.cp-featured-service__title a {
    transition: color var(--cp-transition, 180ms ease);
}

.cp-featured-service__title a:hover {
    color: var(--cp-red);
}

.cp-featured-service__content p {
    margin: 10px 0 0;

    max-width: 720px;

    color: var(--cp-muted);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.95;
}

.cp-featured-service__action {
    grid-column: 2;

    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 16px;
    padding: 9px 14px;

    border-radius: 999px;

    background: rgba(28, 50, 72, 0.05);
    color: var(--cp-blue);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color var(--cp-transition, 180ms ease),
        gap var(--cp-transition, 180ms ease),
        background-color var(--cp-transition, 180ms ease);
}

.cp-featured-service__action svg {
    width: 16px;
    height: 16px;
}

.cp-featured-service__action:hover {
    color: var(--cp-red);
    gap: 12px;
    background: rgba(210, 52, 79, 0.08);
}


/* ==========================================================================
   Directory
   ========================================================================== */

.cp-services-directory {
    padding-block: 74px;
    background: transparent;
}


/* ==========================================================================
   Toolbar
   ========================================================================== */

.cp-services-toolbar {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.cp-services-search {
    position: relative;
    display: flex;
    align-items: center;
}

.cp-services-search > svg {
    position: absolute;
    z-index: 1;

    inset-inline-start: 16px;

    width: 18px;
    height: 18px;

    color: var(--cp-muted);
    pointer-events: none;
}

.cp-services-search input {
    width: 100%;
    min-height: 54px;

    padding: 12px 46px 12px 16px;

    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 31, 0.04);

    color: var(--cp-text);

    font: inherit;
    font-size: 13px;
    line-height: 1.5;

    outline: none;

    transition:
        border-color var(--cp-transition, 180ms ease),
        box-shadow var(--cp-transition, 180ms ease),
        background-color var(--cp-transition, 180ms ease);
}

.cp-services-search input::placeholder {
    color: #91969c;
}

.cp-services-search input:focus {
    border-color: rgba(210, 52, 79, 0.35);
    box-shadow:
        0 0 0 4px rgba(210, 52, 79, 0.08),
        0 14px 34px rgba(15, 23, 31, 0.06);
    background: #fff;
}


/* ==========================================================================
   Filters
   ========================================================================== */

.cp-services-filters {
    display: flex;
    align-items: center;
    gap: 8px;

    overflow-x: auto;
    padding-bottom: 4px;

    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.cp-services-filter {
    min-height: 40px;

    flex: 0 0 auto;

    padding: 8px 14px;

    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);

    color: var(--cp-muted);

    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;

    white-space: nowrap;
    cursor: pointer;

    transition:
        background-color var(--cp-transition, 180ms ease),
        border-color var(--cp-transition, 180ms ease),
        color var(--cp-transition, 180ms ease),
        box-shadow var(--cp-transition, 180ms ease);
}

.cp-services-filter:hover {
    color: var(--cp-text);
    border-color: rgba(23, 23, 23, 0.14);
}

.cp-services-filter.is-active {
    background: var(--cp-text);
    border-color: var(--cp-text);
    color: #fff;
    box-shadow: 0 10px 22px rgba(23, 23, 23, 0.12);
}


/* ==========================================================================
   Services grid
   ========================================================================== */

.cp-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}


/* ==========================================================================
   Service card
   ========================================================================== */

.cp-service-card {
    position: relative;

    min-width: 0;
    min-height: 290px;

    display: flex;
    flex-direction: column;

    padding: 22px;

    border: 1px solid rgba(23, 23, 23, 0.07);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 38px rgba(15, 23, 31, 0.05);

    transition:
        transform var(--cp-transition, 180ms ease),
        border-color var(--cp-transition, 180ms ease),
        box-shadow var(--cp-transition, 180ms ease),
        background-color var(--cp-transition, 180ms ease);
}

.cp-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(28, 50, 72, 0.14);
    box-shadow: 0 24px 50px rgba(15, 23, 31, 0.09);
}

.cp-service-card[hidden] {
    display: none !important;
}

.cp-service-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 26px;
}

.cp-service-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding-inline: 10px;

    border-radius: 12px;

    background: rgba(210, 52, 79, 0.08);
    color: var(--cp-red);

    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.cp-service-card__status {
    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(96, 138, 173, 0.11);
    color: var(--cp-blue);

    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
}

.cp-service-card__body {
    flex: 1 1 auto;
}

.cp-service-card__title {
    margin: 0;
}

.cp-service-card__title,
.cp-service-card__title a {
    color: var(--cp-text);

    font-size: 18px;
    font-weight: 850;
    line-height: 1.52;

    text-decoration: none;
}

.cp-service-card__title a {
    transition: color var(--cp-transition, 180ms ease);
}

.cp-service-card__title a:hover {
    color: var(--cp-red);
}

.cp-service-card__description {
    margin: 12px 0 0;

    color: var(--cp-muted);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.95;
}

.cp-service-card__footer {
    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid rgba(23, 23, 23, 0.07);
}

.cp-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;

    border-radius: 999px;

    background: rgba(28, 50, 72, 0.05);
    color: var(--cp-blue);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color var(--cp-transition, 180ms ease),
        gap var(--cp-transition, 180ms ease),
        background-color var(--cp-transition, 180ms ease);
}

.cp-service-card__link svg {
    width: 15px;
    height: 15px;
}

.cp-service-card__link:hover {
    color: var(--cp-red);
    gap: 11px;
    background: rgba(210, 52, 79, 0.08);
}

.cp-service-card__link--disabled {
    color: var(--cp-muted);
    opacity: 0.72;
    background: rgba(23, 23, 23, 0.04);
}


/* ==========================================================================
   Disabled / coming soon
   ========================================================================== */

.cp-service-card--disabled {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.88) 0%,
            rgba(246, 245, 242, 0.94) 100%
        );
}

.cp-service-card--disabled:hover {
    transform: none;
    box-shadow: 0 16px 38px rgba(15, 23, 31, 0.05);
}


/* ==========================================================================
   Empty state
   ========================================================================== */

.cp-services-empty {
    margin-top: 16px;

    padding: 32px 20px;

    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 24px;

    text-align: center;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 31, 0.04);
}

.cp-services-empty[hidden] {
    display: none !important;
}

.cp-services-empty strong {
    display: block;

    color: var(--cp-text);

    font-size: 15px;
    font-weight: 850;
}

.cp-services-empty p {
    margin: 8px 0 0;

    color: var(--cp-muted);

    font-size: 12px;
    line-height: 1.9;
}


/* ==========================================================================
   Process
   ========================================================================== */

.cp-services-process {
    padding-block: 74px;
    background:
        linear-gradient(
            180deg,
            rgba(236, 241, 245, 0.72) 0%,
            rgba(247, 249, 251, 0.88) 100%
        );
    color: var(--cp-text);
}

.cp-services-process .cp-section-heading__meta {
    color: var(--cp-red);
    background: rgba(255, 255, 255, 0.88);
}

.cp-services-process .cp-section-heading__row h2 {
    color: var(--cp-text);
}

.cp-services-process .cp-section-heading__row p {
    color: var(--cp-muted);
}

.cp-process-list {
    display: grid;
    gap: 16px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.cp-process-item {
    position: relative;

    display: block;
    min-width: 0;

    padding: 24px 20px;

    border: 1px solid rgba(23, 23, 23, 0.07);
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 38px rgba(15, 23, 31, 0.05);
}

.cp-process-item::before {
    display: none !important;
}

.cp-process-item__number {
    width: fit-content;
    min-width: 42px;
    height: 42px;
    padding-inline: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border: 0;
    border-radius: 14px;

    background: rgba(210, 52, 79, 0.08);
    color: var(--cp-red);

    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.cp-process-item h3 {
    margin: 0;

    color: var(--cp-text);

    font-size: 18px;
    font-weight: 850;
    line-height: 1.55;
}

.cp-process-item p {
    margin: 10px 0 0;
    max-width: 520px;

    color: var(--cp-muted);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.95;
}


/* ==========================================================================
   CTA
   ========================================================================== */

.cp-services-cta {
    padding-block: 58px 80px;
    background: transparent;
}

.cp-services-cta__inner {
    position: relative;
    overflow: hidden;

    display: grid;
    gap: 26px;

    padding: 30px 22px;

    border: 1px solid rgba(23, 23, 23, 0.04);
    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            var(--cp-burgundy) 0%,
            var(--cp-red) 56%,
            #8a1231 100%
        );

    color: #fff;
    box-shadow: 0 28px 68px rgba(69, 14, 29, 0.18);
}

.cp-services-cta__inner::before,
.cp-services-cta__inner::after {
    display: none !important;
}

.cp-services-cta__content,
.cp-services-cta__actions {
    position: relative;
    z-index: 1;
}

.cp-services-cta__label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 14px;
    padding: 7px 12px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);

    color: rgba(255, 255, 255, 0.92);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

.cp-services-cta h2 {
    margin: 0;
    max-width: 720px;

    color: #fff;

    font-size: clamp(28px, 8vw, 46px);
    font-weight: 850;
    line-height: 1.28;
    letter-spacing: -0.04em;
}

.cp-services-cta__content p {
    margin: 14px 0 0;
    max-width: 680px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.95;
}

.cp-services-cta__actions {
    display: grid;
    gap: 10px;
}

.cp-services-cta__actions .cp-button {
    width: 100%;
}


/* ==========================================================================
   >= 480px
   ========================================================================== */

@media (min-width: 480px) {

    .cp-services-hero__actions,
    .cp-services-cta__actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .cp-services-hero__actions .cp-button,
    .cp-services-cta__actions .cp-button {
        width: auto;
    }

}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {

    .cp-services-page .cp-shell {
        width: min(
            calc(100% - 44px),
            var(--cp-container, 1280px)
        );
    }

    .cp-section-heading {
        margin-bottom: 40px;
    }

    .cp-section-heading__row {
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(260px, 0.85fr);
        align-items: end;
        gap: 28px;
    }

    .cp-section-heading__row p {
        justify-self: end;
        font-size: 15px;
    }

    .cp-services-hero {
        padding-block: 44px 84px;
    }

    .cp-services-hero__grid {
        gap: 18px;
    }

    .cp-services-hero__content {
        padding: 42px 34px 40px;
        border-radius: 34px;
    }

    .cp-services-hero__description {
        font-size: 15px;
    }

    .cp-services-hero__meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cp-services-stat {
        min-height: 150px;
        padding: 24px;
    }

    .cp-services-featured {
        padding-block: 86px;
    }

    .cp-featured-service {
        grid-template-columns:
            44px
            minmax(0, 1fr)
            auto;
        align-items: start;
        gap: 22px;
        padding: 28px 24px;
    }

    .cp-featured-service__title,
    .cp-featured-service__title a {
        font-size: 20px;
    }

    .cp-featured-service__content p {
        font-size: 14px;
    }

    .cp-featured-service__action {
        grid-column: auto;
        align-self: center;
        margin-top: 0;
    }

    .cp-services-directory {
        padding-block: 86px;
    }

    .cp-services-toolbar {
        gap: 22px;
        margin-bottom: 34px;
    }

    .cp-services-search {
        max-width: 540px;
    }

    .cp-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .cp-service-card {
        min-height: 320px;
        padding: 24px;
    }

    .cp-service-card__title,
    .cp-service-card__title a {
        font-size: 19px;
    }

    .cp-service-card__description {
        font-size: 13px;
    }

    .cp-services-process {
        padding-block: 86px;
    }

    .cp-process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .cp-process-item {
        padding: 28px 24px;
    }

    .cp-process-item p {
        font-size: 13px;
    }

    .cp-services-cta {
        padding-block: 68px 92px;
    }

    .cp-services-cta__inner {
        padding: 40px 34px;
        border-radius: 34px;
    }

    .cp-services-cta__content p {
        font-size: 14px;
    }

}


/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1024px) {

    .cp-services-hero {
        padding-block: 54px 98px;
    }

    .cp-services-hero__grid {
        grid-template-columns:
            minmax(0, 1.4fr)
            minmax(310px, 0.6fr);
        gap: 20px;
        align-items: stretch;
    }

    .cp-services-hero__content {
        min-height: 520px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;

        padding: 54px 48px;
        border-radius: 36px;
    }

    .cp-services-hero__title {
        font-size: clamp(56px, 5.2vw, 76px);
    }

    .cp-services-hero__description {
        margin-top: 24px;
        max-width: 700px;
        font-size: 16px;
    }

    .cp-services-hero__actions {
        margin-top: 30px;
    }

    .cp-services-hero__meta {
        grid-template-columns: 1fr;
    }

    .cp-services-stat {
        min-height: 160px;
        padding: 26px 24px;
        border-radius: 26px;
    }

    .cp-services-stat__value {
        font-size: 30px;
    }

    .cp-services-featured {
        padding-block: 98px;
    }

    .cp-featured-services {
        gap: 18px;
    }

    .cp-featured-service {
        grid-template-columns:
            56px
            minmax(0, 1fr)
            150px;
        gap: 26px;
        padding: 30px 28px;
        border-radius: 26px;
    }

    .cp-featured-service__number {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .cp-featured-service__title,
    .cp-featured-service__title a {
        font-size: 22px;
    }

    .cp-services-directory {
        padding-block: 98px;
    }

    .cp-services-toolbar {
        grid-template-columns:
            minmax(310px, 430px)
            minmax(0, 1fr);
        align-items: center;
        justify-content: space-between;
    }

    .cp-services-search {
        max-width: none;
    }

    .cp-services-filters {
        justify-content: flex-end;
    }

    .cp-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .cp-service-card {
        min-height: 340px;
        padding: 26px;
        border-radius: 26px;
    }

    .cp-service-card__number {
        min-width: 40px;
        height: 40px;
    }

    .cp-services-process {
        padding-block: 98px;
    }

    .cp-process-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .cp-process-item {
        padding: 30px 26px;
        border-radius: 26px;
    }

    .cp-process-item h3 {
        font-size: 19px;
    }

    .cp-services-cta {
        padding-block: 76px 104px;
    }

    .cp-services-cta__inner {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(280px, 0.7fr);
        align-items: center;
        gap: 52px;

        padding: 50px 52px;
        border-radius: 36px;
    }

    .cp-services-cta__actions {
        justify-content: flex-end;
    }

}


/* ==========================================================================
   Wide desktop
   ========================================================================== */

@media (min-width: 1280px) {

    .cp-services-page .cp-shell {
        width: min(
            calc(100% - 60px),
            var(--cp-container, 1280px)
        );
    }

    .cp-services-grid {
        gap: 22px;
    }

}


/* ==========================================================================
   Very small mobile
   ========================================================================== */

@media (max-width: 389px) {

    .cp-services-page .cp-shell {
        width: min(
            calc(100% - 22px),
            var(--cp-container, 1280px)
        );
    }

    .cp-services-hero__title {
        font-size: 34px;
    }

    .cp-services-hero__description {
        font-size: 13px;
    }

    .cp-featured-service,
    .cp-service-card,
    .cp-process-item,
    .cp-services-cta__inner {
        border-radius: 22px;
    }

}