/* SAFE ESCAPE — Safety & Testing page only. Load after style.css */
.safety-hero {
    padding: 74px 0 105px;
    color: #fff;
    background: #0d1820;
}

.safety-hero__grid {
    display: grid;
    grid-template-columns: .94fr 1.06fr;
    gap: clamp(55px, 9vw, 160px);
    align-items: start;
}

.safety-intro .bread {
    margin: 0 0 43px;
    color: #80929c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.safety-intro .bread span {
    margin: 0 8px;
    color: #ff625a;
}

.safety-intro .kicker {
    color: #ff716a;
}

.safety-intro h1 {
    max-width: 640px;
    margin: 30px 0 0;
    font-size: 52px;
    line-height: 1.09;
    letter-spacing: -3px;
}

.safety-intro__copy {
    max-width: 570px;
    margin: 29px 0 0;
    color: #b9c7ce;
    font-size: 18px;
    line-height: 1.75;
}

.safety-request {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-top: 36px;
    padding: 20px 27px;
    color: #0d1820;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
}

.safety-request:hover {
    color: #fff;
    background: #ed433b;
}

.safety-request span {
    font-size: 23px;
    line-height: .6;
}

.documentation-index {
    margin-top: 56px;
    border-top: 1px solid #40505a;
}

.documentation-index__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    color: #8ea2ac;
    border-bottom: 1px solid #40505a;
    font-size: 10px;
    letter-spacing: 1.35px;
}

.documentation-index__header small {
    color: #ff958f;
    font-size: 10px;
    letter-spacing: 1.2px;
}

.doc-item {
    border-bottom: 1px solid #40505a;
}

.doc-trigger {
    width: 100%;
    padding: 26px 0;
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    gap: 16px;
    align-items: center;
    text-align: left;
    color: #fff;
    border: 0;
    background: transparent;
}

.doc-number {
    color: #ff6158;
    font-size: 12px;
}

.doc-title strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.doc-title small {
    display: block;
    margin-top: 6px;
    color: #9cafb8;
    font-size: 13px;
}

.doc-chevron {
    font-size: 25px;
    line-height: 1;
    text-align: right;
    transition: transform .2s ease;
}

.doc-item.is-open .doc-chevron {
    transform: rotate(180deg);
}

.doc-panel {
    padding: 0 0 25px 44px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.doc-panel>div {
    max-width: 460px;
}

.doc-panel span {
    color: #ff958f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.doc-panel p {
    margin: 7px 0 0;
    color: #aebec5;
    font-size: 14px;
    line-height: 1.65;
}

.doc-panel a {
    align-self: end;
    flex: 0 0 auto;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .5px;
}

.doc-panel a b {
    margin-left: 5px;
    color: #ff716a;
    font-size: 18px;
}

.evidence-section {
    padding: 100px 0;
    background: #f2f5f6;
}

.evidence-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: 42px;
}

.evidence-heading h2 {
    margin: 0;
    color: #0d1820;
    font-size: clamp(36px, 4vw, 58px);
    letter-spacing: -2px;
    line-height: 1.05;
}

.evidence-heading>p {
    max-width: 405px;
    margin: 0;
    color: #60707b;
    font-size: 16px;
    line-height: 1.65;
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.evidence-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce3e6;
}

.evidence-card__scan {
    min-height: 260px;
    position: relative;
    padding: 23px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #233944;
    background: repeating-linear-gradient(0deg, #f9fbfb 0 30px, #f2f5f6 30px 31px);
    border-bottom: 1px solid #dce3e6;
}

.evidence-card__scan::before {
    content: "";
    position: absolute;
    inset: 17px;
    border: 1px solid #b6c4ca;
}

.evidence-card__scan span {
    position: absolute;
    top: 26px;
    left: 28px;
    color: #ed433b;
    font-size: 12px;
    font-weight: 900;
}

.evidence-card__scan small,
.evidence-card__scan b {
    position: relative;
    z-index: 1;
}

.evidence-card__scan small {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.evidence-card__scan b {
    margin-top: 10px;
    font-size: 14px;
}

.evidence-card__content {
    padding: 23px;
}

.evidence-card__content h3 {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.2;
}

.evidence-card__content p {
    margin: 6px 0;
    color: #667784;
    font-size: 13px;
}

.evidence-card__content a {
    display: inline-block;
    margin-top: 16px;
    color: #d5302a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .6px;
}

.evidence-card__content a span {
    margin-left: 5px;
    font-size: 16px;
}

@media (max-width: 1000px) {
    .safety-hero__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .documentation-index {
        margin-top: 15px;
    }

    .evidence-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .safety-hero {
        padding: 65px 0 75px;
    }

    .safety-intro h1 {
        letter-spacing: -2px;
    }

    .safety-intro__copy {
        font-size: 16px;
    }

    .documentation-index__header {
        font-size: 9px;
    }

    .documentation-index__header small {
        font-size: 9px;
    }

    .doc-trigger {
        padding: 21px 0;
        gap: 11px;
        grid-template-columns: 26px 1fr 23px;
    }

    .doc-title strong {
        font-size: 16px;
    }

    .doc-title small {
        font-size: 12px;
    }

    .doc-panel {
        padding-left: 37px;
        display: block;
    }

    .doc-panel a {
        display: inline-block;
        margin-top: 16px;
    }

    .evidence-section {
        padding: 70px 0;
    }

    .evidence-heading {
        display: block;
    }

    .evidence-heading>p {
        margin-top: 18px;
    }

    .evidence-grid {
        grid-template-columns: 1fr;
    }

    .evidence-card__scan {
        min-height: 220px;
    }
}

/* =========================================================
   SAFETY HERO — CLIENT REVISION
========================================================= */


/* UPDATED PARAGRAPH */

.safety-updated-copy {

    max-width: 640px;

}


.safety-updated-copy p {

    margin: 0 0 22px;

    color: #b8c4cc;

    font-size: 16px;

    line-height: 1.8;

}


.safety-updated-copy strong {

    color: #ffffff;

    font-weight: 800;

}



/* =========================================================
   RIGHT REFERENCE IMAGE
========================================================= */

.safety-reference-image {

    display: flex;

    align-items: center;

    justify-content: center;

}


.safety-reference-image__box {

    position: relative;

    width: 100%;

    min-height: 520px;

    overflow: hidden;

    background: #111e27;

    border: 1px solid rgba(255, 255, 255, .12);

}


.safety-reference-image__box img {

    width: 100%;

    height: 100%;

    min-height: 520px;

    display: block;

    object-fit: cover;

    object-position: center;

}



/* TEMP PLACEHOLDER */

.safety-image-placeholder {

    position: absolute;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 40px;

    text-align: center;

    background:
        linear-gradient(135deg,
            #12232e,
            #08131c);

}


.safety-image-placeholder div {

    max-width: 320px;

}


.safety-image-placeholder span {

    display: block;

    margin-bottom: 14px;

    color: #ee372f;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;

}


.safety-image-placeholder strong {

    display: block;

    color: #ffffff;

    font-size: 30px;

    line-height: 1.1;

}


.safety-image-placeholder p {

    margin: 12px 0 0;

    color: #8fa0aa;

    font-size: 14px;

}



/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 900px) {

    .safety-hero__grid {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .safety-reference-image__box,
    .safety-reference-image__box img {

        min-height: 420px;

    }

}


@media(max-width: 600px) {

    .safety-reference-image__box,
    .safety-reference-image__box img {

        min-height: 320px;

    }


    .safety-updated-copy p {

        font-size: 15px;

        line-height: 1.7;

    }

}

/* =========================================
DOCUMENT IMAGE POPUP MODAL
========================================= */


.document-modal {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.85);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

    z-index: 99999;

}



.document-modal.active {

    display: flex;

}



.document-modal-box {


    position: relative;

    max-width: 900px;

    max-height: 90vh;

    background: #fff;

    padding: 20px;

    border-radius: 12px;

    overflow: auto;


}



.document-modal-box img {


    display: block;

    max-width: 100%;

    max-height: 80vh;

    object-fit: contain;


}



.document-close {


    position: absolute;

    top: -15px;

    right: -15px;


    width: 42px;

    height: 42px;


    border-radius: 50%;


    border: none;


    background: #ee372f;


    color: #fff;


    font-size: 28px;


    cursor: pointer;


    z-index: 10;


}

/* =====================================================
SAFE ESCAPE GLOBAL RESPONSIVE PATCH
===================================================== */

html, body { overflow-x: hidden; }

.container, .shell, .wrap, main, section {
    max-width: 100%;
}

img, video, iframe, canvas {
    max-width: 100%;
    height: auto;
}

iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.grid, .cards, .card-grid, .steps-grid, .product-grid, 
.gallery-grid, .resource-grid, .feature-grid {
    width: 100%;
}

@media (max-width: 1024px) {
    .hero, .hero-grid, .two-col, .split, .about-grid,
    .product-layout, .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .hero {
        padding-left: 24px;
        padding-right: 24px;
    }

    h1 { font-size: clamp(32px, 6vw, 54px); }
    h2 { font-size: clamp(26px, 5vw, 40px); }
}

@media (max-width: 768px) {

    .shell, .container {
        width: calc(100% - 32px) !important;
        margin: auto;
    }

    section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-links,
    .menu,
    .desktop-menu {
        display: none !important;
    }

    .steps-grid,
    .card-grid,
    .product-grid,
    .gallery-grid,
    .resource-grid,
    .feature-grid {
        grid-template-columns: 1fr !important;
    }

    .hero,
    .page-hero,
    .policy-hero {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .btn, button {
        max-width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .modal,
    .video-modal {
        padding: 15px;
    }

    .video-box {
        width: 100% !important;
    }
}

@media (max-width: 480px) {

    h1 { font-size: 30px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 20px !important; }

    p, li {
        font-size: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}


/* =====================================================
   DOCUMENT VIEWER
===================================================== */

.document-modal-box {
    position: relative;
    overflow: auto;
}


/* DOCUMENT IMAGE */

#documentPreview {
    display: block;

    max-width: 100%;
    max-height: 78vh;

    margin: auto;

    object-fit: contain;

    transform: scale(1);
    transform-origin: center center;

    transition: transform 0.25s ease;

    cursor: zoom-in;

    user-select: none;
    -webkit-user-select: none;

    -webkit-user-drag: none;
}


/* =====================================================
   VIEWER CONTROLS
===================================================== */

.document-controls {

    position: fixed;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 8px 12px;

    background: rgba(5, 25, 34, 0.95);

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 50px;

    z-index: 99999;

    box-shadow:
        0 10px 40px rgba(0,0,0,.3);
}


.document-controls button {

    border: 0;

    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border-radius: 50px;

    background: #ffffff;

    color: #061b24;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}


.document-controls button:hover {

    transform: translateY(-2px);

}


.document-prev,
.document-next {

    background: #ffc400 !important;

}


.document-zoom-value {

    color: #ffffff;

    min-width: 55px;

    text-align: center;

    font-size: 13px;

    font-weight: 700;

}


/* =====================================================
   PREVENT TEXT SELECTION
===================================================== */

body {

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;

}


/* Images cannot be dragged */

img {

    -webkit-user-drag: none;

    user-select: none;
    -webkit-user-select: none;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .document-controls {

        bottom: 15px;

        width: calc(100% - 30px);

        padding: 7px;

        gap: 5px;

    }


    .document-controls button {

        min-width: 36px;
        height: 36px;

        padding: 0 9px;

        font-size: 16px;

    }


    .document-zoom-value {

        min-width: 45px;

        font-size: 12px;

    }


    #documentPreview {

        max-height: 72vh;

    }

}

/* ==========================================
   CERTIFICATE TECHNICAL DETAILS
========================================== */

.certificate-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 20px;

    margin: 18px 0 22px;
    padding: 18px;

    background: #f6f8f8;
    border: 1px solid #e0e5e7;
    border-radius: 10px;
}


/* INFORMATION */

.certificate-info {
    min-width: 0;
}


.certificate-info p {
    margin: 0;
    padding: 8px 0;

    border-bottom: 1px solid #e1e5e6;

    font-size: 13px;
    line-height: 1.5;

    color: #5b676c;
}


.certificate-info p:first-child {
    padding-top: 0;
}


.certificate-info p:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}


.certificate-info strong {
    color: #071d26;
    font-weight: 700;
}


.certificate-info span {
    color: #68767c;
}


/* PRODUCT IMAGE */

.certificate-product {
    display: flex;
    align-items: center;
    justify-content: center;
}


.certificate-product img {
    width: 80px;
    max-height: 120px;

    object-fit: contain;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .certificate-details {
        grid-template-columns: 1fr;
    }


    .certificate-product {
        justify-content: flex-start;
    }


    .certificate-product img {
        width: 70px;
    }

}
/* =====================================================
   FINAL DOCUMENT VIEWER FIX
   Full Scroll + Zoom + Slideshow
===================================================== */

.document-modal {
    position: fixed;
    inset: 0;

    display: none;

    background: rgba(0, 0, 0, 0.88);

    z-index: 99999;

    padding: 20px;
}

.document-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* MAIN SCROLLABLE VIEWER */

.document-modal-box {
    position: relative;

    width: min(1100px, calc(100vw - 40px));
    height: calc(100vh - 100px);

    max-width: none;
    max-height: none;

    padding: 20px;

    background: #fff;
    border-radius: 12px;

    /* IMPORTANT */
    overflow: auto;

    box-sizing: border-box;

    scrollbar-gutter: stable;
}


/* DOCUMENT */

#documentPreview {
    display: block;

    width: 100%;
    max-width: none !important;
    max-height: none !important;
    height: auto;

    margin: 0;

    object-fit: initial;

    /* REMOVE SCALE */
    transform: none !important;
    transform-origin: top left;

    transition: width .2s ease;

    cursor: zoom-in;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}


/* CLOSE */

.document-close {
    position: fixed;

    top: 18px;
    right: 22px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #ee372f;
    color: #fff;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    z-index: 100002;
}


/* =====================================================
   CONTROLS — TOP CENTER
===================================================== */

.document-controls {
    position: fixed;

    top: 18px;
    bottom: auto;

    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 7px 12px;

    background: rgba(5, 25, 34, .96);

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;

    box-shadow: 0 10px 35px rgba(0,0,0,.35);

    z-index: 100001;
}


.document-controls button {
    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border: 0;
    border-radius: 50px;

    background: #fff;
    color: #061b24;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;
}


.document-prev,
.document-next {
    background: #ffc400 !important;
}


.document-zoom-value {
    min-width: 55px;

    color: #fff;

    text-align: center;
    font-size: 13px;
    font-weight: 700;
}


/* =====================================================
   SCROLLBAR
===================================================== */

.document-modal-box::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.document-modal-box::-webkit-scrollbar-track {
    background: #e5e5e5;
}

.document-modal-box::-webkit-scrollbar-thumb {
    background: #6b7378;
    border-radius: 10px;
    border: 3px solid #e5e5e5;
}

.document-modal-box::-webkit-scrollbar-corner {
    background: #e5e5e5;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .document-modal {
        padding: 10px;
    }

    .document-modal-box {
        width: calc(100vw - 20px);
        height: calc(100vh - 90px);

        margin-top: 50px;
        padding: 10px;
    }

    .document-controls {
        top: 10px;

        width: auto;
        max-width: calc(100vw - 70px);

        gap: 4px;
        padding: 5px 7px;
    }

    .document-controls button {
        min-width: 32px;
        height: 34px;

        padding: 0 7px;

        font-size: 15px;
    }

    .document-zoom-value {
        min-width: 42px;
        font-size: 11px;
    }

    .document-close {
        top: 10px;
        right: 10px;

        width: 38px;
        height: 38px;

        font-size: 23px;
    }

}