/* All Services listing — public website */
.all-services-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.all-services-hero {
    position: relative;
    min-height: clamp(220px, 32vw, 320px);
    background-color: color-mix(in srgb, var(--primary, #16a34a) 88%, #0f172a);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.all-services-hero--fallback {
    background-image: linear-gradient(120deg, var(--primary, #16a34a), var(--secondary, #15803d));
}

.all-services-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--primary, #16a34a) 58%, #0f172a) 0%,
        color-mix(in srgb, var(--secondary, #15803d) 42%, #0f172a) 100%
    );
    opacity: 0.88;
}

/* Banner image: theme-tinted scrim. Plain gradient hero: light vignette only */
.all-services-hero--fallback .all-services-hero__overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.35) 100%);
    opacity: 1;
}

.all-services-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(28px, 5vw, 48px) 0 clamp(32px, 5vw, 52px);
}

.all-services-hero__title {
    margin: 0;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.all-services-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.all-services-breadcrumb a {
    color: var(--button, #16a34a);
    text-decoration: none;
}

.all-services-breadcrumb a:hover {
    text-decoration: underline;
}

.all-services-breadcrumb span[aria-hidden="true"] {
    color: #94a3b8;
    font-weight: 500;
}

.all-services-breadcrumb__current {
    color: #0f172a;
}

.all-services-main {
    flex: 1;
    padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
}

.all-services-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.all-services-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(20px, 2.5vw, 28px) 16px 22px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 100%;
}

.all-services-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border-color: color-mix(in srgb, var(--button, #16a34a) 35%, #e2e8f0);
}

.all-services-card__icon {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.all-services-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.all-services-card__mono {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
    color: #047857;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.all-services-card__label {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.all-services-empty {
    margin: 0;
    padding: 40px 24px;
    text-align: center;
    color: #64748b;
    font-size: 17px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
}

@media (max-width: 1024px) {
    .all-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .all-services-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .all-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .all-services-card__icon {
        width: 96px;
        height: 96px;
    }
}

/* Floating chat / help (same behaviour as service detail page) */
.service-float {
    position: fixed;
    z-index: 60;
    font-family: 'Barlow', sans-serif;
}

.service-float--chat {
    left: max(16px, calc((100vw - 1180px) / 2 + 8px));
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 14px;
    border-radius: 10px;
    background: #16a34a;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.45);
}

.service-float--chat:hover {
    filter: brightness(1.05);
}

.service-float--chat-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.service-float--help {
    right: max(16px, calc((100vw - 1180px) / 2 + 8px));
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 0;
    background: #1f2937;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.service-float--help:hover {
    background: #111827;
}

@media (max-width: 600px) {
    .service-float--chat {
        left: 12px;
        bottom: 16px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .service-float--help {
        right: 12px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}
