/* =========================================
   1. ROOT VARIABLES
========================================= */

:root {
    --entrax-navy: #263d4f;
    --entrax-orange: #d56634;
    --entrax-bright-orange: #f45116;
    --entrax-text: #53616a;
    --entrax-background: #f8f8f7;
    --entrax-border: #d9dddf;

}





/* =========================================
   2. RESET / GLOBAL STYLES
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background: var(--entrax-background);
    color: var(--entrax-navy);
}











/* ====================================================================================
   1. DESKTOP STYLES
======================================================================================= */


/* ---------------------------------------------------------
   SECTION 1 — TOP BAR
--------------------------------------------------------- */

.approach-page .top-bar {
    /* Desktop styles */
}


.main-navigation a.active {
    color: var(--entrax-orange);
    position: relative;
}

.main-navigation a.active::after {
    content: "";

    position: absolute;

    width: 24px;
    height: 2px;

    left: 50%;
    bottom: -20px;

    transform: translateX(-50%);

    background: var(--entrax-orange);
}


/* ---------------------------------------------------------
   SECTION 2 — HEADER
--------------------------------------------------------- */


.approach-header {

    position: relative;
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    background: var(--color-background-light);

}

/* -- background image --  */
.approach-header-background {

    position: absolute;
    inset: 0;
    z-index: 1;

}


.approach-building-image {

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;

}

/* -- blueprint overlay --  */
.approach-blueprint-overlay {

    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

}


.approach-blueprint-overlay img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.50;

}

/* -- left side fade --  */

.approach-header-fade {

    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.98) 22%,
            rgba(255, 255, 255, 0.82) 34%,
            rgba(255, 255, 255, 0.38) 46%,
            rgba(255, 255, 255, 0.05) 62%,
            rgba(255, 255, 255, 0) 100%
        );

}

/* -- content container --  */

.approach-header-content {

    position: relative;
    z-index: 4;
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;

}


/* -- Section indicator --  */
.approach-section-indicator {

    position: absolute;
    top: 50%;
    left: 3.5%;
    transform: translateY(-45%);
    display: flex;
    flex-direction: column;
    align-items: center;

}

.indicator-number {

    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;

}


.indicator-line {

    display: block;
    width: 1px;
    height: 102px;
    margin-top: 14px;
    background:
        rgba(32, 54, 74, 0.45);

}

/* -- indicator marks --  */
.indicator-marks {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;

}


.indicator-marks span {

    display: block;
    width: 10px;
    height: 1px;
    background:
        rgba(32, 54, 74, 0.28);

}


.indicator-marks span.active {

    width: 18px;
    background: var(--entrax-orange);

}

/* -- text content  --  */
.approach-header-text {

    width: 100%;
    max-width: 540px;
    margin-left: 9%;
    padding: 35px 0;

}


/* -- section label  --  */
.approach-header .section-label {

    margin-bottom: 15px;

}



/* -- main heading  --  */
.approach-header h1 {

    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(38px, 3.3vw, 58px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 1px;

}


.heading-primary {

    color: var(--color-text-primary);

}


.heading-highlight {

    color: var(--entrax-orange);

}


/* -- description  --  */
.approach-header-description {

    max-width: 455px;
    margin-top: 20px;
    color:
        var(--color-text-primary);
    font-family:
        var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;

}


/* ---------------------------------------------------------
   SECTION 3 — APPROACH STEPS
--------------------------------------------------------- */
    .approach-steps {

        width: 100%;
        position: relative;
        background:
            var(--entrax-white);
        overflow: hidden;

    }


    .approach-steps-grid {

        width: 100%;
        display: grid;
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

    }

    /* -- INDIVIDUAL STEP  --  */
    .approach-step {

        position: relative;
        min-height: 390px;
        overflow: hidden;
        border-right:
            1px solid var(--color-border);

    }


    .approach-step:last-child {

        border-right: none;

    }

    /* -- STEP CONTENT  --  */
    .approach-step-content {

        position: relative;
        z-index: 2;
        height: 100%;
        padding:
            30px
            3.6vw
            120px;

    }

    /* -- STEP TOP  --  */
    .approach-step-top {

        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        min-height: 60px;

    }


    .approach-step-number {

        display: flex;
        flex-direction: column;
        align-items: flex-start;

    }


    .approach-step-number > span:first-child {

        color: var(--color-text-primary);
        font-family: var(--font-primary);
        font-size: clamp(28px, 2vw, 36px);
        font-weight: 600;
        line-height: 1;

    }


    .step-number-line {

        display: block;
        width: 24px;
        height: 1px;
        margin-top: 12px;
        background:
            var(--entrax-orange);

    }

    /* -- STEP ICON  --  */
    .approach-step-icon {

        position: absolute;
        top: 28px;
        left: 50%;
        transform:
            translateX(-50%);

    }


    .approach-step-icon svg {

        width: 52px;
        height: 52px;
        fill: none;
        stroke:
            var(--entrax-orange);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;

    }

    /* -- ARROWS  --  */
    .approach-arrow {

        position: absolute;
        top: 34px;
        right: 16px;
        color:
            var(--color-text-primary);

        font-size: 28px;
        font-weight: 300;
        line-height: 1;

    }


    /* Hide arrow from last step */

    .approach-step-last .approach-arrow {

        display: none;

    }

    /* -- STEP TEXT  --  */
    .approach-step-text {

        margin-top: 20px;

    }


    .approach-step-text h3 {

        color:
            var(--color-text-primary);
        font-family:
            var(--font-heading);
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.3px;

    }


    .step-title-line {

        display: block;
        width: 24px;
        height: 1px;
        margin-top: 12px;
        background:
            var(--entrax-orange);

    }


    .approach-step-text p {

        max-width: 290px;
        margin-top: 14px;
        color:
            var(--color-text-secondary);
        font-family:
            var(--font-body);
        font-size: 14px;
        line-height: 1.65;

    }

    /* -- STEP IMAGE  --  */
    .approach-step-image {

        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 42%;
        z-index: 1;
        overflow: hidden;

    }


    /* Image */

    .approach-step-image img {

        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center bottom;

    }


    /* -- IMAGE FADE  --  */
    .approach-step-image::before {

        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background:

            linear-gradient(
                180deg,
                var(--entrax-white) 0%,
                rgba(255, 255, 255, 0.92) 15%,
                rgba(255, 255, 255, 0.45) 38%,
                rgba(255, 255, 255, 0.05) 65%,
                rgba(255, 255, 255, 0) 100%
            );

    }


/* ---------------------------------------------------------
   SECTION 4 — ENGINEERING STANDARDS
--------------------------------------------------------- */

/* =========================================================
   MAIN SECTION
========================================================= */

.engineering-standards {
    width: 100%;
    background: var(--entrax-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}


/* =========================================================
   INTRODUCTION
========================================================= */

.standards-intro {
    width: 100%;
    padding: 42px 6vw 34px;
    border-bottom: 1px solid var(--color-border);
}

.standards-intro-content {
    max-width: 760px;
}

.standards-intro .section-label {
    display: block;
    margin-bottom: 14px;
}

.standards-intro h2 {
    margin: 0;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: clamp(26px, 2.1vw, 34px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.3px;
}

.standards-intro p {
    max-width: 620px;
    margin-top: 14px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   STANDARDS GRID
========================================================= */

.standards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}


/* =========================================================
   ENGINEERING STANDARDS
========================================================= */

.standard-item {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 28px 20px 20px;
    border-right: 1px solid var(--color-border);
}

.standard-item:last-child {
    border-right: none;
}


/* ---------------------------------------------------------
   STANDARD LOGO CONTAINER
--------------------------------------------------------- */

.standard-logo {
    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


/* ---------------------------------------------------------
   SVG IMAGE
--------------------------------------------------------- */

.standard-logo img {
    display: block;

    width: auto;
    height: 52px;
    max-width: 140px;

    object-fit: contain;
}


/* ---------------------------------------------------------
   INDIVIDUAL LOGO SIZES
--------------------------------------------------------- */

/* IEC
   The IEC SVG contains some internal whitespace,
   therefore it needs to be slightly larger.
--------------------------------------------------------- */

.standard-logo-iec img {
    height: 66px;
    max-width: 115px;
}


/* IEEE
--------------------------------------------------------- */

.standard-logo-ieee img {
    height: 48px;
    max-width: 170px;
}


/* ISO
--------------------------------------------------------- */

.standard-logo-iso img {
    height: 58px;
    max-width: 125px;
}


/* NFPA
--------------------------------------------------------- */

.standard-logo-nfpa img {
    height: 58px;
    max-width: 120px;
}


/* SBC
--------------------------------------------------------- */

.standard-logo-sbc img {
    height: 58px;
    max-width: 110px;
}


/* SD / LOCAL & INTERNATIONAL
   The SD artwork also has significant whitespace
   inside its SVG viewBox.
--------------------------------------------------------- */

.standard-logo-local img {
    height: 68px;
    max-width: 105px;
}


/* ---------------------------------------------------------
   STANDARD DESCRIPTION
--------------------------------------------------------- */



/* =========================================================
   STANDARD DESCRIPTION
========================================================= */

.standard-item p {
    width: 100%;
    max-width: 260px;

    margin: 12px auto 0;

    color: var(--color-text-primary);
    font-family: var(--font-body);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;

    text-align: center;

    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

/* ---------------------------------------------------------
   SECTION 5 — FOOTER
--------------------------------------------------------- */

.approach-page .site-footer {
    /* Desktop styles */
}




/* ====================================================================================
   2. TABLET STYLES
======================================================================================= */

@media (max-width: 1100px) {


    /* -----------------------------------------------------
       SECTION 1 — TOP BAR
    ----------------------------------------------------- */

    .approach-page .top-bar {
        /* Tablet styles */
    }

    

    /* -----------------------------------------------------
       SECTION 2 — HEADER
    ----------------------------------------------------- */


@media (max-width: 1100px) {


    .approach-header {

        min-height: 500px;

    }

    /* -- BACKGROUND  --  */

    .approach-building-image {

        object-position:
            62% center;

    }

    /* -- BLUEPRINT --  */
    .approach-blueprint-overlay img {

        opacity: 0.42;

    }

    /* -- FADE --  */
    .approach-header-fade {

        background:

            linear-gradient(
                90deg,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 0.98) 35%,
                rgba(255, 255, 255, 0.72) 52%,
                rgba(255, 255, 255, 0.25) 72%,
                rgba(255, 255, 255, 0) 100%
            );

    }

    /* -- CONTENT  --  */
    .approach-header-content {

        min-height: 500px;

    }


    .approach-section-indicator {

        left: 4%;

    }


    .approach-header-text {

        max-width: 500px;
        margin-left: 12%;
        padding:
            50px
            0;

    }

    /* -- HEADING  --  */
    .approach-header h1 {

        font-size: clamp(38px, 5vw, 52px);

    }

    /* -- DESCRIPTION  --  */
    .approach-header-description {

        max-width: 420px;
        font-size: 14px;

    }

}



    /* -----------------------------------------------------
       SECTION 3 — APPROACH STEPS - TABLET
    ----------------------------------------------------- */
    @media (max-width: 1100px) {


        .approach-step {

            min-height: 440px;

        }


        .approach-step-content {

            padding:
                28px
                28px
                135px;

        }

        /* -- STEP TOP  --  */
        .approach-step-top {

            min-height: 65px;

        }

        .approach-step-icon {

            position: static;
            margin-left: auto;
            margin-right: 30px;
            transform: none;

        }


        .approach-step-icon svg {

            width: 44px;
            height: 44px;

        }


        .approach-arrow {

            top: 33px;
            right: 12px;
            font-size: 22px;

        }

        /* -- TEXT  --  */
        .approach-step-text {

            margin-top: 22px;

        }

        .approach-step-text h3 {

            font-size: 15px;

        }

        .approach-step-text p {

            font-size: 13px;
            line-height: 1.7;

        }


        /* -- IMAGE  --  */
        .approach-step-image {

            height: 38%;

        }

    }

/* =========================================================
   ENGINEERING STANDARDS — TABLET
========================================================= */
.standards-intro {
        padding: 36px 28px 30px;
    }
  .standards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .standard-item {
        min-height: 175px;
        padding: 24px 18px 20px;
    }

    .standard-item:nth-child(3n) {
        border-right: none;
    }

    .standard-logo {
        height: 66px;
    }

    .standard-logo img {
        height: 48px;
        max-width: 125px;
    }

    .standard-logo-iec img {
        height: 58px;
    }

    .standard-logo-ieee img {
        height: 44px;
    }

    .standard-logo-iso img {
        height: 52px;
    }

    .standard-logo-nfpa img {
        height: 52px;
    }

    .standard-logo-sbc img {
        height: 52px;
    }

    .standard-logo-local img {
        height: 60px;
    }

    .standard-item p {
        font-size: 10px;
    }

    /* -----------------------------------------------------
       SECTION 5 — FOOTER
    ----------------------------------------------------- */

    .approach-page .site-footer {
        /* Tablet styles */
    }

}




/* =================================================================================
   3. SMARTPHONE STYLES
================================================================================== */

    @media (max-width: 700px) {


        /* -----------------------------------------------------
        SECTION 1 — TOP BAR
        ----------------------------------------------------- */

        .approach-page .top-bar {
            /* Smartphone styles */
        }


        /* -----------------------------------------------------
        SECTION 2 — HEADER
        ----------------------------------------------------- */

        .approach-header {

            min-height: 700px;
            display: flex;
            flex-direction: column;

        }

        /* ----------  BACKGROUND IMAGE ---------- */
        .approach-header-background {

            top: auto;
            height: 48%;

        }


        .approach-building-image {

            object-position:
                62% center;

        }

        /* ---------- BLUEPRINT ---------- */
        .approach-blueprint-overlay {

            top: auto;

            height: 48%;

        }


        .approach-blueprint-overlay img {

            object-fit: cover;

            object-position:
                center center;

            opacity: 0.50;

        }

        /* ---------- MOBILE FADE ---------- */
        .approach-header-fade {

            background:

                linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 1) 0%,
                    rgba(255, 255, 255, 1) 42%,
                    rgba(255, 255, 255, 0.92) 55%,
                    rgba(255, 255, 255, 0.25) 72%,
                    rgba(255, 255, 255, 0) 100%
                );

        }

        /* ---------- CONTENT ---------- */
        .approach-header-content {

            min-height: 700px;
            align-items: flex-start;
            padding:
                58px
                var(--content-padding-mobile)
                0;

        }

        /* ---------- HIDE SIDE INDICATOR ---------- */
        .approach-section-indicator {

            display: none;

        }

        /* ---------- TEXT ---------- */
        .approach-header-text {

            width: 100%;
            max-width: none;
            margin-left: 0;
            padding: 0;

        }

        /* ---------- LABEL ---------- */
        .approach-header .section-label {

            margin-bottom: 18px;

        }


        /* ---------- HEADING ---------- */
        .approach-header h1 {

            font-size: clamp(36px, 10vw, 48px);
            line-height: 1.08;
            letter-spacing: 0.5px;

        }


        /* ---------- DESCRIPTION ---------- */
        .approach-header-description {

            max-width: 100%;
            margin-top: 22px;
            font-size: 14px;
            line-height: 1.75;

        }


        /* -----------------------------------------------------
        SECTION 3 — APPROACH STEPS - SMARTPHONE
        ----------------------------------------------------- */

        @media (max-width: 700px) {

            /* ---------- GRID ---------- */
            .approach-steps-grid {

                grid-template-columns:
                    1fr;

            }

            /* ---------- INDIVIDUAL STEP ---------- */
            .approach-step {
                min-height: 430px;
                border-right: none;
                border-bottom:
                    1px solid var(--color-border);

            }


            .approach-step:last-child {
                border-bottom: none;

            }

            /* ---------- CONTENT ---------- */
            .approach-step-content {
                padding:
                    28px
                    var(--content-padding-mobile)
                    145px;

            }

            /* ---------- STEP TOP ---------- */
            .approach-step-top {
                min-height: 62px;

            }

            .approach-step-number > span:first-child {
                font-size: 34px;

            }

            .approach-step-icon {
                position: absolute;
                top: 24px;
                right: var(--content-padding-mobile);
                left: auto;
                margin: 0;
                transform: none;

            }

            .approach-step-icon svg {
                width: 48px;
                height: 48px;

            }


            /* ---------- HORIZONTAL ARROWS CHANGED TO DOWNWARD ARROWS ---------- */
            .approach-arrow {
                display: none;

            }

            /* ---------- VERTICAL PROCESS INDICATOR ---------- */
            .approach-step:not(:last-child)::after {
                content: "↓";
                position: absolute;
                bottom: -18px;
                left: 50%;
                z-index: 5;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                transform:
                    translateX(-50%);
                background:
                    var(--entrax-white);
                color:
                    var(--entrax-orange);
                font-size: 22px;

            }

            /* ---------- TEXT ---------- */
            .approach-step-text {
                margin-top: 24px;

            }

            .approach-step-text h3 {
                font-size: 17px;

            }

            .approach-step-text p {
                max-width: 100%;
                margin-top: 15px;
                font-size: 14px;
                line-height: 1.7;

            }

            /* ---------- IMAGE ---------- */
            .approach-step-image {
                height: 42%;

            }

            .approach-step-image img {
                object-position:
                    center bottom;

            }

        }


        /* -----------------------------------------------------
        SECTION 4 — ENGINEERING STANDARDS - SMARTPHoNE
        ----------------------------------------------------- */
        @media (max-width: 700px) {

               .standards-intro {
        padding: 42px var(--content-padding-mobile) 32px;
    }

    .standards-intro h2 {
        font-size: clamp(25px, 7vw, 34px);
        line-height: 1.12;
    }

    .standards-intro p {
        max-width: 360px;
        margin-top: 18px;
        font-size: 13px;
        line-height: 1.7;
    }

        .standards-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .standard-item {
                min-height: 165px;
                padding: 22px 16px 20px;
                border-right: 1px solid var(--color-border);
                border-bottom: 1px solid var(--color-border);
            }

            .standard-item:nth-child(2n) {
                border-right: none;
            }

            .standard-item:nth-last-child(-n + 2) {
                border-bottom: none;
            }

            .standard-logo {
                height: 60px;
            }

            .standard-logo img {
                height: 44px;
                max-width: 105px;
            }

            .standard-logo-iec img {
                height: 54px;
            }

            .standard-logo-ieee img {
                height: 40px;
            }

            .standard-logo-iso img {
                height: 48px;
            }

            .standard-logo-nfpa img {
                height: 48px;
            }

            .standard-logo-sbc img {
                height: 48px;
            }

            .standard-logo-local img {
                height: 55px;
            }

            .standard-item p {
                margin-top: 10px;
                font-size: 10px;
                line-height: 1.5;
            }





        }


        .standard-item:nth-child(3n) {
            border-right: 1px solid var(--color-border);
        }

        .standard-item:nth-child(2n) {
            border-right: none;
        }

        /* -----------------------------------------------------
        SECTION 5 — FOOTER
        ----------------------------------------------------- */

        .approach-page .site-footer {
            /* Smartphone styles */
        }

}