:root {
    --hub-ink: #102a3c;
    --hub-heading: #173a52;
    --hub-copy: #5f7483;
    --hub-blue: #0066cc;
    --hub-azure: #3399ff;
    --hub-soft-blue: #edf6ff;
    --hub-surface: #f7fafc;
    --hub-line: #dbe6ed;
    --hub-white: #ffffff;
    --hub-shadow: 0 18px 48px rgba(18, 53, 76, .09);
}

body.service-hub-page main {
    color: var(--hub-copy);
    background: var(--hub-white);
}

body.service-hub-page main > .service-hub-hero {
    position: relative;
    left: 50% !important;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 0 !important;
    background-position: center 55% !important;
}

body.service-hub-page--testing main > .service-hub-hero {
    background-image: url('../images/testing/product-testing-overview-hero.png');
}

body.service-hub-page--certification main > .service-hub-hero {
    background-image: url('../images/services/certification-services-overview-hero.png');
}

body.service-hub-page main .service-hub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(7, 16, 24, .46) 0%, rgba(7, 16, 24, .08) 34%, transparent 52%),
        linear-gradient(90deg, rgba(8, 24, 36, .84) 0%, rgba(8, 24, 36, .68) 36%, rgba(8, 24, 36, .28) 63%, rgba(8, 24, 36, .06) 100%) !important;
}

.service-hub-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 76px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(4, 15, 24, .24));
}

body.service-hub-page main .service-hub-hero .hero-container {
    position: relative;
    z-index: 2;
    max-width: 720px !important;
}

.service-hub-hero__eyebrow,
.hub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--hub-blue);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.service-hub-hero__eyebrow { color: #9ed2ff; }

.service-hub-hero__eyebrow::before,
.hub-eyebrow::before {
    width: 24px;
    height: 1px;
    content: '';
    background: currentColor;
}

body.service-hub-page main .service-hub-hero .hero-heading {
    max-width: 700px;
    margin-bottom: 20px !important;
    font-size: clamp(1.95rem, 2.9vw, 2.75rem) !important;
}

body.service-hub-page main .service-hub-hero .hero-text {
    max-width: 650px !important;
    margin-bottom: 28px !important;
    color: rgba(255, 255, 255, .84) !important;
    font-size: clamp(.95rem, 1.35vw, 1.06rem) !important;
}

.service-hub-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hub-button {
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hub-button--light {
    color: var(--hub-blue);
    background: var(--hub-white);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.hub-button--light:hover {
    color: #004f9e;
    background: #f3f8fc;
    transform: translateY(-2px);
}

.hub-button--ghost {
    color: var(--hub-white);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .42);
    backdrop-filter: blur(8px);
}

.hub-button--ghost:hover {
    color: var(--hub-white);
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .7);
}

.hub-button--blue {
    color: var(--hub-white);
    background: var(--hub-blue);
    box-shadow: 0 12px 28px rgba(0, 102, 204, .2);
}

.hub-button--blue:hover {
    color: var(--hub-white);
    background: #0077e6;
    box-shadow: 0 15px 32px rgba(0, 102, 204, .26);
    transform: translateY(-2px);
}

.hub-button:focus-visible,
.hub-service-card:focus-visible {
    outline: 3px solid rgba(51, 153, 255, .38);
    outline-offset: 3px;
}

.hub-shell {
    width: min(calc(100% - 48px), 1180px);
    margin-inline: auto;
}

.hub-intro {
    padding: clamp(66px, 7vw, 92px) 0 clamp(62px, 7vw, 86px);
    background: var(--hub-white);
}

.hub-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(52px, 8vw, 112px);
    align-items: start;
}

.hub-intro h2,
.hub-section-heading h2,
.hub-workflow__heading h2,
.hub-contact h2 {
    margin: 0;
    color: var(--hub-heading);
    font-family: 'Manrope', sans-serif;
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.13;
}

.hub-intro h2 {
    max-width: 560px;
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
}

.hub-intro__lead {
    margin: 4px 0 22px;
    color: #345165;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 500;
    line-height: 1.75;
}

.hub-intro__copy {
    margin: 0;
    font-size: .96rem;
    line-height: 1.78;
}

.hub-assurance {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--hub-line);
    border-bottom: 1px solid var(--hub-line);
}

.hub-assurance__item {
    min-height: 112px;
    padding: 22px 22px 20px 0;
}

.hub-assurance__item + .hub-assurance__item {
    padding-left: 22px;
    border-left: 1px solid var(--hub-line);
}

.hub-assurance__item i {
    margin-bottom: 13px;
    color: var(--hub-blue);
    font-size: 1rem;
}

.hub-assurance__item strong,
.hub-assurance__item span { display: block; }

.hub-assurance__item strong {
    margin-bottom: 4px;
    color: var(--hub-ink);
    font-size: .84rem;
}

.hub-assurance__item span {
    color: #738895;
    font-size: .76rem;
    line-height: 1.5;
}

.hub-services {
    padding: clamp(66px, 7vw, 88px) 0 clamp(72px, 8vw, 96px);
    background: var(--hub-surface);
    border-block: 1px solid #e8eff4;
}

.hub-section-heading {
    max-width: 730px;
    margin-bottom: 42px;
}

.hub-section-heading h2 {
    margin-bottom: 15px;
    font-size: clamp(1.6rem, 2.3vw, 2.1rem);
}

.hub-section-heading p {
    max-width: 660px;
    margin: 0;
    font-size: .95rem;
    line-height: 1.75;
}

.hub-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hub-service-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    background: var(--hub-white);
    border: 1px solid var(--hub-line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(25, 58, 80, .055);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.hub-service-card:hover {
    color: inherit;
    border-color: #bdd8ec;
    box-shadow: var(--hub-shadow);
    transform: translateY(-5px);
}

.hub-service-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfe9ef;
}

.hub-service-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(9, 29, 43, .2));
}

.hub-service-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .65, .25, 1);
}

.hub-service-card--crop-left .hub-service-card__media img {
    object-position: 32% center;
}

.hub-service-card--crop-left-more .hub-service-card__media img {
    object-position: 12% center;
}

.hub-service-card--crop-right-more .hub-service-card__media img {
    object-position: 75% center;
}

.hub-service-card--crop-right-one .hub-service-card__media img {
    object-position: 60% center;
}

.hub-service-card:hover .hub-service-card__media img { transform: scale(1.035); }

.hub-service-card__body {
    min-height: 202px;
    padding: 25px 26px 24px;
    display: flex;
    flex-direction: column;
}

.hub-service-card__code {
    margin-bottom: 12px;
    color: var(--hub-blue);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hub-service-card h3 {
    margin: 0 0 10px;
    color: var(--hub-ink);
    font-family: 'Manrope', sans-serif;
    font-size: 1.04rem;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.35;
}

.hub-service-card p {
    margin: 0 0 22px;
    font-size: .87rem;
    line-height: 1.68;
}

.hub-service-card__footer {
    margin-top: auto;
    padding-top: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #557080;
    border-top: 1px solid #e8eef2;
    font-size: .76rem;
    font-weight: 600;
}

.hub-service-card__footer i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hub-blue);
    background: var(--hub-soft-blue);
    border-radius: 50%;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.hub-service-card:hover .hub-service-card__footer i {
    color: var(--hub-white);
    background: var(--hub-blue);
    transform: translateX(2px);
}

.hub-workflow {
    padding: clamp(68px, 8vw, 94px) 0;
    background: var(--hub-white);
}

.hub-workflow__top {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 45px;
}

.hub-workflow__heading h2 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }

.hub-workflow__top > p {
    max-width: 620px;
    margin: 0;
    font-size: .94rem;
    line-height: 1.75;
}

.hub-workflow__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--hub-line);
}

.hub-step {
    position: relative;
    min-height: 195px;
    padding: 26px 28px 28px 0;
}

.hub-step + .hub-step {
    padding-left: 28px;
    border-left: 1px solid var(--hub-line);
}

.hub-step__number {
    margin-bottom: 32px;
    display: block;
    color: var(--hub-blue);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.hub-step h3 {
    margin: 0 0 9px;
    color: var(--hub-ink);
    font-size: .97rem;
    font-weight: 650;
}

.hub-step p {
    margin: 0;
    font-size: .79rem;
    line-height: 1.65;
}

.hub-contact-wrap {
    padding: 0 0 clamp(76px, 9vw, 112px);
    background: var(--hub-white);
}

.hub-contact {
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 5vw, 60px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
    background: radial-gradient(circle at 90% 12%, rgba(51, 153, 255, .12), transparent 20rem), #f2f8fd;
    border: 1px solid #d7e7f2;
    border-radius: 12px;
}

.hub-contact h2 {
    margin-bottom: 10px;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.hub-contact p {
    max-width: 680px;
    margin: 0;
    font-size: .9rem;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .hub-intro__grid,
    .hub-workflow__top { grid-template-columns: 1fr; gap: 30px; }
    .hub-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hub-workflow__steps { grid-template-columns: repeat(2, 1fr); }
    .hub-step:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--hub-line); }
    .hub-step:nth-child(4) { border-top: 1px solid var(--hub-line); }
}

@media (max-width: 760px) {
    body.service-hub-page main > .service-hub-hero {
        min-height: clamp(420px, 56svh, 500px) !important;
        padding: 114px 24px 32px !important;
        background-position: 58% 54% !important;
    }
    body.service-hub-page--certification main > .service-hub-hero { background-position: 42% 52% !important; }
    body.service-hub-page main .service-hub-hero::before {
        background:
            linear-gradient(180deg, rgba(7, 16, 24, .54) 0%, rgba(7, 16, 24, .14) 29%, transparent 43%),
            linear-gradient(90deg, rgba(8, 24, 36, .82) 0%, rgba(8, 24, 36, .6) 72%, rgba(8, 24, 36, .26) 100%) !important;
    }
    body.service-hub-page main .service-hub-hero .hero-heading { font-size: clamp(1.9rem, 8vw, 2.5rem) !important; }
    body.service-hub-page main .service-hub-hero .hero-heading { margin-bottom: 14px !important; }
    body.service-hub-page main .service-hub-hero .hero-text { margin-bottom: 20px !important; }
    .service-hub-hero__eyebrow { margin-bottom: 13px; font-size: .65rem; }
    .service-hub-hero__actions { gap: 9px; }
    .hub-button { min-height: 43px; padding-inline: 16px; font-size: .8rem; }
    .hub-shell { width: min(calc(100% - 32px), 1180px); }
    .hub-intro { padding-top: 62px; }
    .hub-assurance { grid-template-columns: 1fr; }
    .hub-assurance__item { min-height: 0; padding: 18px 0; }
    .hub-assurance__item + .hub-assurance__item { padding-left: 0; border-top: 1px solid var(--hub-line); border-left: 0; }
    .hub-service-grid,
    .hub-workflow__steps { grid-template-columns: 1fr; }
    .hub-service-card__body { min-height: 0; padding: 22px; }
    .hub-step,
    .hub-step + .hub-step,
    .hub-step:nth-child(3) { min-height: 0; padding: 23px 0; border-top: 1px solid var(--hub-line); border-left: 0; }
    .hub-step:first-child { border-top: 0; }
    .hub-step__number { margin-bottom: 16px; }
    .hub-contact { padding: 32px 25px; grid-template-columns: 1fr; gap: 24px; }
    .hub-contact .hub-button { width: max-content; }
}

@media (prefers-reduced-motion: reduce) {
    .hub-service-card,
    .hub-service-card__media img,
    .hub-service-card__footer i,
    .hub-button { transition: none; }
}

/* Readability pass for supporting labels and card copy. */
.service-hub-hero__eyebrow,
.hub-eyebrow { font-size: .81rem; }
.hub-button { font-size: .9rem; }
.hub-assurance__item strong { font-size: .92rem; }
.hub-assurance__item span { font-size: .86rem; }
.hub-service-card__code { font-size: .77rem; }
.hub-service-card p { font-size: .95rem; line-height: 1.72; }
.hub-service-card__footer { font-size: .86rem; }
.hub-step__number { font-size: .8rem; }
.hub-step p { font-size: .89rem; line-height: 1.68; }
