﻿/* ============================================================
   SERVICES PAGE
   HUDCO / DBIM DIGITAL COLOUR SYSTEM
============================================================ */

.services-page {
    padding: 36px 0 56px;
    background: var(--surface-primary);
}


/* ============================================================
   HEADER
============================================================ */

.services-header {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}


.services-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 6px 16px;
    border-radius: 18px;
    background: var(--brand-900);
    color: var(--surface-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .7px;
    text-transform: uppercase;
}


.services-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}


.services-subtitle {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}


/* ============================================================
   SERVICES LIST
============================================================ */

.services-list {
    max-width: 1120px;
    margin: 0 auto;
    border-top: 1px solid var(--border-light);
}


/* ============================================================
   GROUP
============================================================ */

.service-group {
    border-bottom: 1px solid var(--border-light);
}


/* ============================================================
   GROUP TOGGLE / DIRECT LINK
============================================================ */

.service-group-toggle,
.service-group-direct {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 8px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}


    .service-group-toggle:hover,
    .service-group-toggle:focus-visible,
    .service-group-direct:hover,
    .service-group-direct:focus-visible {
        background: var(--brand-100);
        color: var(--brand-900);
        text-decoration: none;
    }


/* ============================================================
   GROUP TITLE
============================================================ */

.service-group-title {
    min-width: 0;
}


/* ============================================================
   PLUS / MINUS ICON
============================================================ */

.service-group-icon {
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-900);
    font-size: 12px;
    transition: background .2s ease, color .2s ease;
}


.service-group-toggle[aria-expanded="true"] {
    color: var(--brand-900);
}


    .service-group-toggle[aria-expanded="true"]
    .service-group-icon {
        background: var(--brand-900);
        color: var(--surface-primary);
    }


/* ============================================================
   GROUP CONTENT
============================================================ */

.service-group-content {
    padding: 0 8px 20px;
}


/* ============================================================
   CHILD LINKS
============================================================ */

.service-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
}


.service-link {
    position: relative;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px 11px 30px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--surface-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}


    /* small brand marker */

    .service-link::before {
        content: "";
        position: absolute;
        left: 14px;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--brand-900);
    }


    .service-link:hover,
    .service-link:focus-visible {
        border-color: var(--brand-300);
        background: var(--brand-100);
        color: var(--brand-900);
        text-decoration: none;
    }


.service-link-external {
    flex: 0 0 auto;
    color: var(--brand-900);
    font-size: 10px;
}


/* ============================================================
   EMPTY STATE
============================================================ */

.services-empty {
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}


/* ============================================================
   ACCESSIBILITY
============================================================ */

.service-group-toggle:focus-visible,
.service-group-direct:focus-visible,
.service-link:focus-visible {
    outline: 3px solid color-mix( in srgb, var(--brand-900) 28%, transparent );
    outline-offset: 2px;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991px) {

    .services-page {
        padding: 32px 0 48px;
    }

    .service-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 576px) {

    .services-page {
        padding: 26px 0 38px;
    }

    .services-header {
        margin-bottom: 22px;
    }

    .services-title {
        font-size: 24px;
    }

    .services-subtitle {
        font-size: 14px;
    }

    .service-group-toggle,
    .service-group-direct {
        padding: 16px 4px;
        font-size: 16px;
    }

    .service-group-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .service-group-content {
        padding-right: 4px;
        padding-left: 4px;
    }

    .service-links-grid {
        grid-template-columns: 1fr;
    }

    .service-link {
        min-height: 44px;
        font-size: 14px;
    }
}
