.services-hero,
.service-detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 82% 20%, rgb(37 134 182 / 30%), transparent 26rem),
        linear-gradient(118deg, var(--color-navy-950), var(--color-navy) 68%, #10466f);
}

.services-hero-inner {
    max-width: 59rem;
    padding-block: clamp(5rem, 10vw, 8rem);
}

.services-hero h1 {
    max-width: 17ch;
    color: white;
}

.services-hero-inner > p:not(.eyebrow) {
    max-width: 46rem;
    margin-bottom: var(--space-6);
    color: rgb(255 255 255 / 72%);
    font-size: var(--step-1);
}

.service-decision {
    background: var(--color-surface-muted);
}

.service-decision-heading {
    max-width: 58rem;
    margin-inline: auto;
}

.service-decision-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.service-decision-grid > a {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-height: 21rem;
    padding: var(--space-6);
    color: var(--color-text);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-decision-grid > a:hover {
    border-color: var(--color-orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-decision-grid svg {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--space-6);
    padding: 0.8rem;
    color: var(--color-navy);
    background: var(--color-sky);
    border-radius: var(--radius-sm);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.service-decision-grid strong {
    color: var(--color-navy);
    font-family: var(--font-display);
    font-size: var(--step-1);
    line-height: 1.15;
}

.service-decision-grid small {
    margin-top: auto;
    padding-top: var(--space-5);
    color: var(--color-text-muted);
    font-size: var(--step--1);
}

.service-journey-list {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-7);
}

.service-journey {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.service-journey-icon {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    color: var(--color-navy);
    background: var(--color-sky);
    border-radius: var(--radius-md);
    place-items: center;
}

.service-journey-icon svg {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.service-journey h2 {
    margin-bottom: var(--space-2);
    font-size: var(--step-1);
}

.service-journey p:not(.card-kicker) {
    max-width: 46rem;
    margin: 0;
}

.complementary-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 8vw, 7rem);
}

.complementary-grid > div > p:not(.eyebrow) {
    max-width: 36rem;
}

.complementary-grid .whatsapp-cta {
    margin-top: var(--space-4);
}

.complementary-grid .whatsapp-cta svg,
.service-hub-closing .whatsapp-cta svg,
.service-detail-hero .whatsapp-cta svg,
.service-detail-closing .whatsapp-cta svg {
    width: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.complementary-list {
    margin: 0;
    padding: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    list-style: none;
}

.complementary-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-4);
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.complementary-list li:last-child {
    border-bottom: 0;
}

.complementary-list svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-orange-dark);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.complementary-list strong,
.complementary-list span {
    display: block;
}

.complementary-list strong {
    color: var(--color-navy);
}

.service-scope {
    border-top: 1px solid var(--color-border);
}

.service-scope-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
    gap: clamp(3rem, 8vw, 7rem);
}

.service-scope-grid > div:first-child > p:not(.eyebrow) {
    color: var(--color-text-muted);
}

.service-scope-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.service-scope-panels article {
    padding: var(--space-6);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.service-scope-panels article:last-child {
    color: white;
    background: var(--color-navy);
    border-color: var(--color-navy);
}

.service-scope-panels article:last-child h3 {
    color: white;
}

.service-scope-panels ul {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-5) 0 0;
    padding-left: 1.1rem;
}

.service-scope-panels article:last-child li {
    color: rgb(255 255 255 / 72%);
}

.complementary-list span {
    margin-top: var(--space-1);
    color: var(--color-text-muted);
    font-size: var(--step--1);
}

.service-hub-closing,
.service-detail-closing {
    color: white;
    background: var(--color-navy);
}

.service-hub-closing-inner,
.service-detail-closing-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
    gap: var(--space-7);
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.service-hub-closing h2,
.service-detail-closing h2 {
    color: white;
}

.service-hub-closing p:not(.eyebrow),
.service-detail-closing p:not(.eyebrow) {
    max-width: 46rem;
    margin-bottom: 0;
    color: rgb(255 255 255 / 68%);
}

.service-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.72fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
    min-height: 41rem;
    padding-block: clamp(3.5rem, 8vw, 7rem);
}

.service-back-link {
    display: inline-flex;
    gap: var(--space-2);
    margin-bottom: var(--space-7);
    color: rgb(255 255 255 / 70%);
    font-size: var(--step--1);
    font-weight: 800;
    text-underline-offset: 0.25em;
}

.service-detail-hero h1 {
    max-width: 15ch;
    color: white;
}

.service-detail-lead {
    max-width: 43rem;
    margin-bottom: var(--space-6);
    color: rgb(255 255 255 / 72%);
    font-size: var(--step-1);
}

.service-detail-media {
    position: relative;
    margin: 0;
}

.service-detail-media img {
    display: block;
    width: 100%;
    height: 31rem;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.service-detail-media figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: var(--space-3) var(--space-4);
    color: var(--color-navy);
    background: rgb(255 255 255 / 92%);
    border-radius: var(--radius-sm);
    font-size: var(--step--1);
    font-weight: 800;
}

.service-detail-heading {
    max-width: 52rem;
    margin-inline: auto;
}

.service-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-7);
}

.service-problem-grid article {
    min-height: 18rem;
    padding: var(--space-6);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.service-problem-grid span {
    display: block;
    margin-bottom: var(--space-7);
    color: var(--color-orange-dark);
    font-size: var(--step--1);
    font-weight: 900;
}

.service-problem-grid p {
    margin: 0;
}

.service-examples-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(3rem, 8vw, 7rem);
}

.service-examples-grid ul,
.service-assessment ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-examples-grid li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    color: var(--color-navy);
    border-bottom: 1px solid var(--color-border);
    font-weight: 800;
}

.service-examples-grid svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-orange-dark);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.service-assessment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

.service-assessment-grid > article {
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--radius-lg);
}

.service-assessment-grid > article:first-child {
    background: var(--color-surface-muted);
}

.service-assessment li {
    position: relative;
    margin-top: var(--space-3);
    padding-left: var(--space-5);
    color: var(--color-navy);
    font-weight: 700;
}

.service-assessment li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--color-orange);
    border-radius: 50%;
    content: "";
}

.service-visit-card {
    color: white;
    background: var(--color-navy);
}

.service-visit-card > svg {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: var(--space-7);
    color: var(--color-orange);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.service-visit-card h2 {
    color: white;
}

.service-visit-card p:last-child {
    color: rgb(255 255 255 / 70%);
}

.service-evidence {
    border-top: 1px solid var(--color-border);
}

.service-evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-7);
}

.service-evidence-card {
    display: grid;
    grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1fr);
    overflow: hidden;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.service-evidence-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 20rem;
    object-fit: cover;
}

.service-evidence-card > div {
    align-self: center;
    padding: var(--space-6);
}

.service-evidence-card p:last-child {
    margin: 0;
}

@media (max-width: 64rem) {
    .service-evidence-card {
        grid-template-columns: 1fr;
    }

    .service-evidence-card img {
        height: 18rem;
        min-height: 0;
    }
}

@media (max-width: 48rem) {
    .service-journey,
    .service-scope-grid,
    .complementary-grid,
    .service-hub-closing-inner,
    .service-detail-hero-grid,
    .service-examples-grid,
    .service-assessment-grid,
    .service-detail-closing-inner {
        grid-template-columns: 1fr;
    }

    .service-journey {
        align-items: start;
    }

    .service-journey .button {
        justify-self: start;
    }

    .service-problem-grid,
    .service-decision-grid,
    .service-evidence-grid {
        grid-template-columns: 1fr;
    }

    .service-problem-grid article {
        min-height: 0;
    }

    .service-problem-grid span {
        margin-bottom: var(--space-5);
    }

    .service-detail-media {
        width: min(100%, 30rem);
    }

    .service-scope-panels {
        grid-template-columns: 1fr;
    }

    .service-hub-closing-inner,
    .service-detail-closing-inner {
        justify-items: start;
    }
}

@media (max-width: 30rem) {
    .service-journey {
        padding: var(--space-5);
    }

    .service-journey .button {
        width: 100%;
    }

    .service-detail-media img {
        height: 26rem;
    }
}

.service-search{max-width:680px;margin:0 auto 32px}.service-search label{display:block;font-weight:800;margin-bottom:10px}.service-search>div{display:flex;gap:10px}.service-search input{flex:1;min-width:0;width:100%;min-height:48px;font-size:16px;padding:12px;border:1px solid #8298aa;border-radius:8px}.service-search button{min-height:48px;padding:10px 16px;border:1px solid #8298aa;border-radius:8px;background:#fff;color:#082b4c;font-weight:700;cursor:pointer}.service-search p{font-size:.9rem;margin:10px 0}
.service-category-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 40px}.service-category-nav a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px;min-height:64px;border:1px solid #b9cbd8;border-radius:10px;text-decoration:none;font-weight:700;background:#f4f8fa}.service-category-nav span{background:#082b4c;color:#fff;border-radius:20px;min-width:28px;text-align:center;padding:3px}
.service-category{margin-top:48px;scroll-margin-top:125px}.service-category>p{max-width:900px;margin-bottom:24px}.service-category h2{font-size:clamp(1.4rem,3vw,2rem)}.service-category .service-card{height:100%}[data-service-catalog] [hidden]{display:none!important}
@media(max-width:64rem){.service-category-nav{grid-template-columns:repeat(2,1fr)}.service-category{scroll-margin-top:100px}}
@media(max-width:48rem){.service-category-nav{gap:8px}.service-category-nav a{padding:12px;font-size:.9rem}.service-card a,.service-risk-grid a{display:inline-flex;align-items:center;min-height:44px}.service-category .services-grid{gap:16px}}

/* Search must not leave links to hidden categories. */
.service-category-nav[hidden],
.service-category-nav a[hidden] {
    display: none !important;
}

/* Compact the desktop catalog without changing the mobile layout. */
@media (min-width: 64.001rem) {
    .services-hero-inner {
        max-width: var(--container);
        padding-block: clamp(3rem, 5vw, 4.5rem);
    }

    .services-hero h1 { max-width: 23ch; }

    .services-hero-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem 1.5rem;
    }

    .services-hero-actions .business-light-link { max-width: 100%; }

    .service-risk-grid article { display: flex; flex-direction: column; }
    .service-risk-grid article a { margin-top: auto; padding-top: 0.5rem; }

    .service-category .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .service-category .services-grid:has(> .service-card:nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-category .service-card {
        min-width: 0;
        min-height: 0;
        padding: 1.5rem;
    }

    .service-category .service-icon { margin-bottom: 1.25rem; }
    .service-category .service-card h3 { font-size: 1.25rem; line-height: 1.35; }
    .service-category .service-card p { font-size: 1rem; line-height: 1.6; }
    .service-category .service-card a { padding-top: 0.5rem; min-height: 2.75rem; }
    .service-category-nav a { min-width: 0; }
    .service-category-nav span { flex-shrink: 0; }
}
