/* Service & Support — /service-support/ */
.service-support-page {
    --ss-navy: #1a2b4c;
    --ss-teal: #7f1d1d;
    --ss-teal-light: #b91c1c;
    --ss-green: #cc0000;
    --ss-green-ring: #fca5a5;
    --ss-btn: #cc0000;
    --ss-btn-hover: #a30000;
    --ss-grey: #f5f6f8;
    --ss-green-bg: #ffe4e4;
    --ss-hero-overlay: 0.55;
}

.ss-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .ss-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Hero */
.ss-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background-color: #cc0000;
    background-image: linear-gradient(90deg, #cc0000 0%, #d93636 30%, #f5b4b4 65%, #fff5f5 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ss-hero {
        min-height: 340px;
    }
}

.ss-hero__bg {
    display: none;
}

.ss-hero__overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.ss-hero__pattern {
    display: none;
}

.ss-hero__inner {
    position: relative;
    z-index: 3;
    padding: 4rem 0;
}

.ss-hero__title {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Service rows */
.ss-service {
    padding: 3.5rem 0;
    background: #fff;
}

.ss-service--alt-bg {
    background: var(--ss-green-bg);
}

.ss-service__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .ss-service__grid {
        grid-template-columns: 1fr 320px;
        gap: 4rem;
    }

    .ss-service--reverse .ss-service__grid {
        grid-template-columns: 320px 1fr;
    }

    .ss-service--reverse .ss-service__content {
        order: 2;
    }

    .ss-service--reverse .ss-service__aside {
        order: 1;
    }
}

.ss-service__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.2;
    color: var(--ss-navy);
    font-weight: 700;
}

.ss-service__desc {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.75;
}

.ss-service__desc p {
    margin: 0 0 1rem;
}

.ss-service__desc p:last-child {
    margin-bottom: 0;
}

.ss-service__aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ss-service__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.ss-service__icon {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 768px) {
    .ss-service__icon-wrap {
        width: 180px;
        height: 180px;
    }
}

.ss-service__btn {
    display: inline-block;
    padding: 0.65rem 2rem;
    border-radius: 999px;
    background: var(--ss-btn);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.ss-service__btn:hover,
.ss-service__btn:focus {
    background: var(--ss-btn-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* Help CTA */
.ss-help {
    padding: 4rem 0;
    background: var(--ss-grey);
}

.ss-help__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .ss-help__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.ss-help__media {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ss-help__media img {
    width: auto;
    max-width: min(100%, 400px);
    height: auto;
    display: block;
    object-fit: contain;
}

.ss-help__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.2;
    color: var(--ss-navy);
    font-weight: 700;
}

.ss-help__text {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.ss-help__text p {
    margin: 0 0 0.75rem;
}

.ss-help__text p:last-child {
    margin-bottom: 0;
}

.ss-help__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: var(--ss-btn);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: background-color 0.25s ease;
}

.ss-help__btn:hover,
.ss-help__btn:focus {
    background: var(--ss-btn-hover);
    color: #fff;
}

.ss-help__btn-icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* Pre-footer: Net Zero + Quick Links + Accreditations */
.ss-prefooter {
    background: #fff;
}

.ss-prefooter__intro {
    padding: 3.5rem 0 2.5rem;
}

.ss-prefooter__intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .ss-prefooter__intro-grid {
        grid-template-columns: 1fr auto;
        gap: 3rem;
    }
}

.ss-prefooter__heading {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.35;
    color: var(--ss-navy);
    font-weight: 700;
    max-width: 720px;
}

.ss-prefooter__logo img {
    display: block;
    max-width: 180px;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .ss-prefooter__logo img {
        max-width: 220px;
        margin: 0;
    }
}

.ss-prefooter__links-bar {
    background: #e9ebec;
    padding: 0;
    overflow: hidden;
}

.ss-prefooter__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.ss-prefooter__link-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.35rem 1rem;
    text-decoration: none;
    color: var(--ss-navy);
    background: #fff1f2;
    transition: opacity 0.2s ease;
}

.ss-prefooter__link-item:nth-child(even) {
    background: #e9ebec;
}

.ss-prefooter__link-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    transform: translateY(50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(107, 114, 128, 0.22) 45%,
        rgba(107, 114, 128, 0.32) 50%,
        rgba(107, 114, 128, 0.22) 55%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 640px) {
    .ss-prefooter__links {
        grid-template-columns: repeat(2, 1fr);
    }

    .ss-prefooter__link-item {
        padding: 1.35rem 1.25rem;
    }

    .ss-prefooter__link-item:not(:last-child)::after {
        right: 0;
        top: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 20px;
        transform: translateY(50%);
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(107, 114, 128, 0.22) 45%,
            rgba(107, 114, 128, 0.32) 50%,
            rgba(107, 114, 128, 0.22) 55%,
            transparent 100%
        );
    }

    .ss-prefooter__link-item:nth-child(odd):not(:nth-last-child(-n + 1))::after {
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        width: 20px;
        height: auto;
        transform: translateX(50%);
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(107, 114, 128, 0.22) 45%,
            rgba(107, 114, 128, 0.32) 50%,
            rgba(107, 114, 128, 0.22) 55%,
            transparent 100%
        );
    }

    .ss-prefooter__link-item:nth-child(2n)::after {
        display: none;
    }

    .ss-prefooter__link-item:nth-child(-n + 2):not(:nth-last-child(-n + 2))::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 20px;
        transform: translateY(50%);
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(107, 114, 128, 0.22) 45%,
            rgba(107, 114, 128, 0.32) 50%,
            rgba(107, 114, 128, 0.22) 55%,
            transparent 100%
        );
        pointer-events: none;
        z-index: 2;
    }
}

@media (min-width: 992px) {
    .ss-prefooter__links {
        grid-template-columns: repeat(4, 1fr);
    }

    .ss-prefooter__link-item {
        padding: 1.5rem 1.25rem;
    }

    .ss-prefooter__link-item::before {
        display: none;
    }

    .ss-prefooter__link-item:nth-child(2n)::after {
        display: block;
    }

    .ss-prefooter__link-item:not(:last-child)::after {
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        width: 24px;
        height: auto;
        transform: translateX(50%);
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(107, 114, 128, 0.18) 40%,
            rgba(107, 114, 128, 0.38) 50%,
            rgba(107, 114, 128, 0.18) 60%,
            transparent 100%
        );
    }
}

a.ss-prefooter__link-item:hover,
a.ss-prefooter__link-item:focus {
    opacity: 0.8;
}

.ss-prefooter__link-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-prefooter__link-icon img {
    width: auto;
    height: auto;
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
}

.ss-prefooter__link-label {
    font-size: 0.9375rem;
    line-height: 1.35;
    font-weight: 600;
}

.ss-prefooter__accreditations {
    padding: 2.5rem 0 3.5rem;
}

.ss-prefooter__acc-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ss-prefooter__acc-grid {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

.ss-prefooter__acc-label {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ss-navy);
    white-space: nowrap;
}

.ss-prefooter__acc-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
}

.ss-prefooter__acc-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ss-prefooter__acc-logo img {
    display: block;
    max-height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 767px) {
    .ss-prefooter__acc-logos {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.25rem;
        width: 100%;
    }

    .ss-prefooter__acc-logo {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
    }

    .ss-prefooter__acc-logo img {
        max-height: 30px;
        max-width: 100%;
        width: auto;
        margin: 0 auto;
    }
}

a.ss-prefooter__acc-logo:hover img,
a.ss-prefooter__acc-logo:focus img {
    filter: grayscale(0%);
    opacity: 1;
}
