/**
 * Services listing — full-width catalog, 3-column grid on desktop.
 */

/* No heavy drop shadow on hero / breadcrumb chrome (this page only) */
.fh-page-hero.fh-page-hero--flat {
    box-shadow: none;
}

.fh-page-hero.fh-page-hero--flat .page-breadcrumb.page-breadcrumb--hero {
    box-shadow: none;
}

.fh-page-hero.fh-page-hero--flat .fh-page-hero__title::after {
    box-shadow: none;
}

.services-page--catalog {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    background: transparent;
}

@media (min-width: 768px) {
    .services-page--catalog {
        padding-top: 2rem;
        padding-bottom: 3.5rem;
    }
}

.services-page__inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 2rem);
    border-radius: 12px;
    border: 1px solid rgb(226 232 240);
    background: #ffffff;
    box-shadow: none;
}

.services-page__inner--wide {
    max-width: 100%;
}

.services-page__summary {
    margin: 0 0 1rem;
    font-family: var(--font-sans, "Montserrat", system-ui, sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgb(100 116 139);
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .services-page__summary {
        margin-bottom: 1.35rem;
        font-size: 0.85rem;
    }
}

/* ——— Grid: mobile → tablet → desktop 3-up ——— */
.services-showcase {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: stretch;
}

@media (min-width: 520px) {
    .services-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .services-showcase {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.services-showcase__item {
    margin: 0;
    display: flex;
    min-width: 0;
    min-height: 0;
}

/* ——— Card: vertical stack, equal height ——— */
.services-showcase__card {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    padding: 1rem 1rem 0.95rem;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgb(226 232 240);
    border-radius: 14px;
    box-shadow: none;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

@media (min-width: 520px) {
    .services-showcase__card {
        padding: 1.1rem 1.1rem 1rem;
        border-radius: 16px;
    }
}

.services-showcase__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #337ab7 0%, #5eb0f8 50%, #1e5a94 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.services-showcase__card:hover,
.services-showcase__card:focus-visible {
    border-color: rgb(51 122 183 / 0.28);
    box-shadow: none;
    transform: translateY(-2px);
}

.services-showcase__card:hover::before,
.services-showcase__card:focus-visible::before {
    opacity: 1;
}

.services-showcase__card:focus-visible {
    outline: 2px solid #337ab7;
    outline-offset: 2px;
}

.services-showcase__card--featured {
    border-color: rgb(51 122 183 / 0.22);
    background: linear-gradient(180deg, rgb(255 255 255) 0%, rgb(248 252 255) 100%);
}

.services-showcase__card--featured::before {
    opacity: 1;
}

.services-showcase__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 0.75rem;
}

.services-showcase__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgb(239 246 255) 0%, rgb(248 250 252) 100%);
    border: 1px solid rgb(226 232 240);
}

@media (min-width: 520px) {
    .services-showcase__icon-wrap {
        width: 60px;
        height: 60px;
    }
}

.services-showcase__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.services-showcase__ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.2rem 0.45rem;
    border-radius: 0 10px 0 10px;
    font-family: var(--font-sans, "Montserrat", system-ui, sans-serif);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #713f12;
    background: rgb(254 249 195);
    border: 1px solid rgb(250 204 21 / 0.45);
    border-top: none;
    border-right: none;
}

.services-showcase__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.services-showcase__category {
    margin: 0;
    font-family: var(--font-sans, "Montserrat", system-ui, sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #337ab7;
}

.services-showcase__title {
    margin: 0;
    font-family: var(--font-sans, "Montserrat", system-ui, sans-serif);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: #0f172a;
    transition: color 0.2s ease;
}

@media (min-width: 1024px) {
    .services-showcase__title {
        font-size: 1.05rem;
    }
}

.services-showcase__card:hover .services-showcase__title,
.services-showcase__card:focus-visible .services-showcase__title {
    color: #337ab7;
}

.services-showcase__meta-line {
    margin: 0;
    font-family: var(--font-sans, "Montserrat", system-ui, sans-serif);
    font-size: 0.74rem;
    font-weight: 500;
    color: rgb(100 116 139);
    line-height: 1.35;
}

.services-showcase__summary {
    margin: 0.2rem 0 0;
    font-family: var(--font-sans, "Montserrat", system-ui, sans-serif);
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgb(71 85 105);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

@media (max-width: 519px) {
    .services-showcase__summary {
        font-size: 0.84rem;
        line-height: 1.55;
        -webkit-line-clamp: 5;
    }
}

.services-showcase__aside {
    margin-top: auto;
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border-top: 1px solid rgb(241 245 249);
}

.services-showcase__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgb(226 232 240);
    background: rgb(255 255 255);
    font-family: var(--font-sans, "Montserrat", system-ui, sans-serif);
    width: 100%;
    box-sizing: border-box;
}

.services-showcase__price-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgb(100 116 139);
}

.services-showcase__price-value {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    word-break: break-word;
}

.services-showcase__price-hint {
    font-size: 0.62rem;
    font-weight: 500;
    color: rgb(100 116 139);
    line-height: 1.35;
}

.services-showcase__price--quote {
    border-style: dashed;
    border-color: rgb(51 122 183 / 0.35);
    background: rgb(239 246 255);
}

.services-showcase__price--quote .services-showcase__price-value {
    color: #1e4a7a;
}

.services-showcase__price--free {
    border-color: rgb(16 185 129 / 0.35);
    background: rgb(236 253 245);
}

.services-showcase__price--free .services-showcase__price-value {
    color: rgb(4 120 87);
}

.services-showcase__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    margin: 0 -0.25rem -0.25rem;
    border-radius: 10px;
    font-family: var(--font-sans, "Montserrat", system-ui, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #337ab7 0%, #2a6599 100%);
    box-shadow: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.services-showcase__card:hover .services-showcase__cta,
.services-showcase__card:focus-visible .services-showcase__cta {
    filter: brightness(1.05);
}

.services-showcase__cta-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

@media (min-width: 520px) {
    .services-showcase__cta {
        margin: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-showcase__card {
        transition: none;
    }

    .services-showcase__card:hover,
    .services-showcase__card:focus-visible {
        transform: none;
    }

    .services-showcase__card:hover .services-showcase__cta,
    .services-showcase__card:focus-visible .services-showcase__cta {
        filter: none;
    }
}
