/* ==========================================================================
   Inner page shell
   --------------------------------------------------------------------------
   Shared furniture for redesigned inner pages: the page hero that sits under
   the .bread-top-bar breadcrumb, the standard section heading, and the closing
   call-to-action band. Colour tokens come from the :root block in
   mega-menu.css, which the header loads on every page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Page hero
   --------------------------------------------------------------------------
   Type scale deliberately matches .wms-hero-content on the solutions pages,
   so the two newest page headers read as one family. Those pages carry a
   photographic background; there is no contact equivalent, so this uses the
   same pale blue the WMS hero overlay washes over its image with.
   -------------------------------------------------------------------------- */

.sd-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 54px;
    background: linear-gradient(120deg, #EBF5FF 0%, #F6FAFF 55%, #FFFFFF 100%);
    border-bottom: 1px solid #E3E9F3;
}

/* Soft brand wash on the right, standing in for the photo the solutions
   heroes use. Decorative only. */
.sd-hero::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 74, 154, .09) 0%, rgba(18, 74, 154, 0) 70%);
    pointer-events: none;
}

.sd-hero .container {
    position: relative;
    z-index: 2;
}

.sd-hero__inner {
    max-width: 800px;
}

.sd-hero__inner h1 {
    margin: 0 0 14px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #E86A38;
}

.sd-hero__inner h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 16px;
    background: #124A9A;
}

.sd-hero__inner strong {
    display: block;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #124A9A;
}

.sd-hero__inner p {
    margin: 0;
    max-width: 68ch;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    color: #333;
}

.sd-heading {
    margin-bottom: 38px;
    text-align: center;
}

.sd-heading h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    color: var(--sd-navy);
    line-height: 1.2;
}

.sd-heading p {
    margin: 12px auto 0;
    max-width: 60ch;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--sd-muted);
}

.sd-heading::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin: 16px auto 0;
    background: var(--sd-orange);
}



/* --------------------------------------------------------------------------
   Font safety net
   --------------------------------------------------------------------------
   default.css assigns Manrope by naming elements (body, div, h1-h6, p, input,
   button, select, textarea) rather than relying on inheritance. Semantic
   elements the redesigned pages use are not in that list, and browsers treat
   some of them (summary especially) inconsistently. Name them here. Deliberately
   NOT a universal selector, which would clobber the icon fonts.
   -------------------------------------------------------------------------- */

details,
summary,
article,
section,
dl, dt, dd,
figure, figcaption,
label,
blockquote {
    font-family: "Manrope", sans-serif;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.sd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease,
                box-shadow .25s ease, transform .2s ease;
}

.sd-btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}

.sd-btn--primary {
    background: var(--sd-orange);
    color: #fff;
    border: 1px solid var(--sd-orange);
}

.sd-btn--primary:hover {
    background: #d65b2d;
    border-color: #d65b2d;
    color: #fff;
    box-shadow: 0 10px 22px rgba(232, 106, 56, .3);
    transform: translateY(-2px);
}

.sd-btn--ghost {
    background: transparent;
    color: var(--sd-blue);
    border: 1px solid var(--sd-blue);
}

.sd-btn--ghost:hover {
    background: var(--sd-blue);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Filter chips
   --------------------------------------------------------------------------
   Shared by the products finder, the news & events index and anything else
   that filters a list. Generic furniture, so it lives here rather than in one
   page's stylesheet.
   -------------------------------------------------------------------------- */

.sd-chip {
    padding: 10px 18px;
    border: 1px solid var(--sd-line);
    border-radius: 50px;
    background: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--sd-navy);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.sd-chip:hover {
    border-color: var(--sd-blue);
    color: var(--sd-blue);
}

.sd-chip.is-active {
    background: var(--sd-blue);
    border-color: var(--sd-blue);
    color: #fff;
}

@media (max-width: 767.98px) {
    .sd-chip {
        padding: 9px 15px;
        font-size: 13.5px;
    }
}

/* --------------------------------------------------------------------------
   Article body
   --------------------------------------------------------------------------
   The description is rich text from the admin editor, so these style whatever
   tags it happens to contain rather than classed markup.
   -------------------------------------------------------------------------- */

.sd-article__body {
    max-width: 76ch;
    font-size: 16.5px;
    line-height: 1.8;
    color: #37485F;
}

.sd-article__body > *:first-child {
    margin-top: 0;
}

.sd-article__body p {
    margin: 0 0 22px;
}

.sd-article__body h2 {
    margin: 44px 0 16px;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--sd-navy);
    scroll-margin-top: 26px;
}

.sd-article__body h3 {
    margin: 34px 0 12px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--sd-navy);
    scroll-margin-top: 26px;
}

/* The editor uses h5 as a top-level section heading on job descriptions, so
   these need real separation from the text above rather than body-size bold. */
.sd-article__body h4,
.sd-article__body h5,
.sd-article__body h6 {
    margin: 36px 0 12px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--sd-navy);
    scroll-margin-top: 26px;
}

.sd-article__body h4:first-child,
.sd-article__body h5:first-child,
.sd-article__body h6:first-child {
    margin-top: 0;
}

/* A heading straight after a list needs the same air as one after a paragraph. */
.sd-article__body ul + h4,
.sd-article__body ul + h5,
.sd-article__body ol + h4,
.sd-article__body ol + h5 {
    margin-top: 38px;
}

.sd-article__body a {
    color: var(--sd-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.sd-article__body a:hover {
    color: var(--sd-orange);
}

.sd-article__body ul,
.sd-article__body ol {
    margin: 0 0 22px;
    padding-left: 22px;
}

.sd-article__body ul {
    list-style: none;
    padding-left: 4px;
}

.sd-article__body ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}

.sd-article__body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sd-orange);
}

.sd-article__body ol {
    list-style: decimal;
}

.sd-article__body ol li {
    margin-bottom: 10px;
    padding-left: 6px;
}

.sd-article__body ol li::marker {
    color: var(--sd-orange);
    font-weight: 700;
}

.sd-article__body img {
    max-width: 100%;
    height: auto;
    margin: 26px 0;
    border-radius: 12px;
}

.sd-article__body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--sd-orange);
    border-radius: 0 12px 12px 0;
    background: var(--sd-tint);
    font-size: 17px;
    font-style: normal;
    color: var(--sd-navy);
}

.sd-article__body blockquote p:last-child {
    margin-bottom: 0;
}

/* Editor tables are frequently wider than the column. */
.sd-article__body table {
    width: 100%;
    margin: 26px 0;
    border-collapse: collapse;
    font-size: 15px;
}

.sd-article__body table th,
.sd-article__body table td {
    padding: 12px 16px;
    border: 1px solid var(--sd-line);
    text-align: left;
    vertical-align: top;
}

.sd-article__body table th {
    background: var(--sd-tint);
    font-weight: 700;
    color: var(--sd-navy);
}

.sd-article__body strong {
    color: var(--sd-navy);
    font-weight: 700;
}

.sd-article__body hr {
    margin: 34px 0;
    border: 0;
    border-top: 1px dashed var(--sd-line);
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */

.sd-cta {
    padding: 0 0 66px;
}

.sd-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    padding: 30px 36px;
    border-radius: 16px;
    background: linear-gradient(120deg, #124A9A 0%, #18345C 100%);
    box-shadow: 0 14px 36px rgba(16, 38, 73, .18);
}

.sd-cta__text h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.sd-cta__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #C9D8EC;
}

.sd-cta__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.sd-cta__tel {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.sd-cta__tel i {
    font-size: 13px;
    color: var(--sd-orange);
}

.sd-cta__tel:hover {
    color: var(--sd-orange);
}

.sd-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 50px;
    background: var(--sd-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}

.sd-cta__btn:hover {
    background: #d65b2d;
    color: #fff;
    box-shadow: 0 10px 24px rgba(232, 106, 56, .3);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {

    .sd-hero {
        padding: 44px 0 42px;
    }

    .sd-hero__inner h1 {
        font-size: 34px;
    }

    .sd-hero__inner strong {
        font-size: 18px;
    }

    .sd-heading h2 {
        font-size: 29px;
    }
}

@media (max-width: 767.98px) {

    .sd-hero {
        padding: 32px 0 30px;
    }

    .sd-hero__inner h1 {
        font-size: 27px;
    }

    .sd-hero__inner strong {
        font-size: 16.5px;
    }

    .sd-hero__inner p {
        font-size: 15px;
    }

    .sd-hero::after {
        display: none;
    }

    .sd-heading h2 {
        font-size: 25px;
    }

    .sd-cta {
        padding: 0 0 46px;
    }

    .sd-cta__inner {
        padding: 24px 20px;
    }

    .sd-cta__text h2 {
        font-size: 20px;
    }

    .sd-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sd-cta__btn,
    .sd-btn,
    .sd-chip {
        transition: none !important;
    }

    .sd-cta__btn:hover,
    .sd-btn--primary:hover,
    .sd-btn--ghost:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Category hero modifier
   --------------------------------------------------------------------------
   This lived in category-page.css, which five pages that use the modifier do
   not load: the enquiry form, the quote form, the blog listing, the sitemap
   and the certifications page. It belongs beside .sd-hero itself, which every
   one of them does load. Fourth time a shared class has had to move here, so
   check this file first when a new page looks half styled.
   -------------------------------------------------------------------------- */

.sd-hero--cat .sd-hero__inner {
    max-width: 860px;
}

.sd-hero--cat .sd-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

@media (max-width: 575.98px) {
    .sd-hero--cat .sd-hero__cta .sd-btn {
        width: 100%;
    }
}

/* The padded variant of the closing CTA. It was in category-page.css, which
   the blog listing and the certifications page do not load, so their CTA sat
   flush against the section above it. */
.sd-cta--pad {
    padding-top: 58px;
}

@media (max-width: 767.98px) {
    .sd-cta--pad {
        padding-top: 38px;
    }
}
