/* ============================================================
   Cybernated Mining Stylesheet
   INDEX:
   01. Reset & Global
   02. Typography
   03. Body & Layout Structure
   04. Header & Navigation
   05. Mobile Navigation (Fullscreen Menu)
   06. Main Content Wrapper
   07. Hero Section
   08. Intro Section
   09. Solutions Preview
   10. CTA Blocks
   11. Breadcrumbs
   12. Footer
   13. Container & Utility Layouts
   14. Dropcap Blocks
   15. Highlight Column System (bars)
   16. Homepage Stats
   17. Section Titles, Grids & Cards
   18. Image Frames & Groups
   19. Plain Bullets & Split Layouts
   20. Iconised/Image Highlights & Quote
   21. Core Layout Helpers (intro-flex, rows of images)
   22. Logo Carousel
   23. Cookie Consent Bar
   24. Breakout Content Blocks
   25. Animations (all keyframes)
   26. Responsive Media Queries
   27. Control Rooms – Page-Specific Layout Fixes (applies ONLY to /control-rooms.php)
============================================================ */

/* #region 01. Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: "roboto", sans-serif;
    font-weight: 400;
    color: #26221f;
    background-color: #fff;
    line-height: 1.6;
    letter-spacing: 0.02em;
    font-size: 22px;
    height: 100%;
    min-width: 320px;
}
/* #endregion 01. Reset & Global */

/* #region 02. Typography */
h1, h2, h3, h4, h5, h6, p, a, li {
    letter-spacing: 0.02em;
    font-family: "roboto", sans-serif;
}

h1 {
    margin-top: 20px;
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 800;
}

h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.25;
    font-weight: 700;
}

h3 {
    margin-top: 40px;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
}

h4 {
    margin-top: 30px;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

    a:focus {
        outline: 0.3px solid rgba(253, 215, 3, 0.5);
        outline-offset: 0px;
    }

/* Lists */
ul {
    list-style: none;
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 22px;
}

/* Paragraphs */
p {
    margin-bottom: 30px;
    line-height: 1.35;
}

/* #endregion 02. Typography */

/* #region 03. Body & Layout Structure */
main.main-body {
    min-height: 0;
    width: 100%;
    flex: 1;

}

/* Sticky footer wrapper */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* This is opened in header.php and closed in footer.php */
.main {
    flex: 1;
}


body.contact-grid {
    display: flex;
    flex-direction: column;
}
/* #endregion 03. Body & Layout Structure */

/* #region 04. Header & Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(38 34 31 / 98%);
    color: #fff;
    padding: 5px 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border-bottom: 0.3px solid rgba(253, 215, 3, 0.3);
    min-width: 320px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    align-items: center;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #2c2c2b;
    padding: 0px 2rem;
    padding-top: 5px;
    border-bottom: 1.5px solid rgba(253, 215, 3, 1);
}

.logo img {
    height: 110px;
    margin: 12px;
    margin-left: 20px;
    margin-top: 14px;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 90px;
}

/* Main Nav */
.navmenu {
    position: relative;
}

    /* Desktop nav menu */
    .navmenu ul {
        display: flex;
        padding-left: 10px;
        padding-right: 10px;
    }

        .navmenu ul li a {
            color: white;
            font-family: "roboto", sans-serif;
            font-weight: 400;
            padding: 0.5rem 15px;
            transition: color 0.3s;
            letter-spacing: 0.05em;
            font-size: 18px;
            border-top: 1px solid black;
        }

            .navmenu ul li a:hover {
                color: #EFCB03;
            }

    /* Desktop dropdown */
    .navmenu .dropdown {
        display: none;
        position: absolute;
        background: #222;
        top: 100%;
        left: 0;
        min-width: 180px;
        width: 100%;
        z-index: 1001;
        flex-direction: column;
        padding: 0.5rem 0;
        border-top: 0.3px solid rgba(253, 215, 3, 0.3);
        border-bottom: 0.3px solid rgba(253, 215, 3, 0.3);
        margin-top: 5px;
    }

        .navmenu .dropdown li a {
            font-family: "roboto", sans-serif;
            font-weight: 400;
            padding: 8px 20px;
            color: #eee;
            display: block;
            line-height: 25px;
        }

            .navmenu .dropdown li a:hover {
                color: #EFCB03;
                background: rgba(255, 255, 255, 0.1);
            }

/* Header scrolled color changes */
.header.scrolled .navmenu ul li a {
    color: black;
}

    .header.scrolled .navmenu ul li a:hover {
        color: #57410b;
    }

.header.scrolled .navmenu .dropdown {
    background: #f0f0f0;
    border-top: 0.3px solid rgba(0,0,0,0.4);
    border-bottom: 0.3px solid rgba(0,0,0,0.4);
}

    .header.scrolled .navmenu .dropdown li a {
        color: #111;
    }

        .header.scrolled .navmenu .dropdown li a:hover {
            color: black;
            background-color: #EFCB03;
        }
/* #endregion 04. Header & Navigation */

/* #region 05. Mobile Navigation (Fullscreen Menu) */
.mobile-nav-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: fixed;
    top: 20px;
    right: 35px;
    z-index: 10010;
    left: max(255px, calc(100vw - 35px - 30px));
}

.fullscreen-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    pointer-events: none;
    overflow-y: auto;
}


 /* Base active state (before scroll) - HAMBURGER fullscreen overlay - so hamburger lines stays visible after scroll */
    .fullscreen-nav.active {
        transform: translateY(0);
        pointer-events: all;
        z-index: 10000;
        transition: padding-top 0.3s ease; /* smooth animation */
    }

/* After scroll */
body.scrolled .fullscreen-nav.active {
}


.fullscreen-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    padding-top: 80px;
}


        .fullscreen-nav ul li {
            width: 100%;
            position: relative;
        }

            .fullscreen-nav ul li a {
                font-size: 20px;
                color: white;
                font-family: "roboto", sans-serif;
                font-weight: 500;
                transition: all 0.3s ease;
                display: block;
                padding: 10px;
                text-decoration: none;
            }

                .fullscreen-nav ul li a:hover {
                    color: #EFCB03;
                }

            /* Dropdown indicators */
            .fullscreen-nav ul li.has-dropdown > a::after {
                content: "+";
                display: inline-block;
                margin-left: 8px;
                font-size: 1.2em;
                transition: transform 0.3s;
            }

            .fullscreen-nav ul li.has-dropdown.open > a::after {
                content: "-";
            }

    /* Fullscreen dropdown */
    .fullscreen-nav .dropdown {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        background: rgba(0,0,0,0.8);
        position: relative;
        top: 0;
        left: 0;
        z-index: 5;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    .fullscreen-nav .has-dropdown.open > .dropdown {
        max-height: 1000px;
        opacity: 1;
        padding-top: 15px;
        padding-bottom: 15px;
        border-top: 0.3px solid rgba(253, 215, 3, 0.3);
        border-bottom: 0.3px solid rgba(253, 215, 3, 0.3);
        border: solid 0.3px;
    }
    /* Dropdown links */
    /* Fullscreen dropdown links — centered & compact */
    .fullscreen-nav .dropdown li a {
        font-size: 19px;
        padding: 8px 40px;
        color: #eee;
        text-align: left;
        background: transparent;
        line-height: 1.2;
    }

        .fullscreen-nav .dropdown li a:hover {
            color: #EFCB03;
            background: rgba(255,255,255,0.1);
        }

/* Body lock */
body.nav-open {
    overflow: hidden;
}

/* #endregion 05. Mobile Navigation (Fullscreen Menu) */

/* #region 06. Main Content Wrapper */
.main {
    margin-top: 80px;
    background-color: #f1f1f1;
}

.main-body {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px;
    padding-top: 100px;
    padding-bottom: 60px;
    font-family: "roboto", sans-serif;
    font-weight: 400;
    background-color: white;
    height: 100%;
}
/* #endregion 06. Main Content Wrapper */

/* #region 07. Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    background-image: url(/assets/img/hero-bg.jpg);
    background-size: cover;
    background-position: center -330px;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -120px;
    transition: background-position 0.1s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: white;
    z-index: 2;
    padding: 2rem;
    font-family: "roboto", sans-serif;
    letter-spacing: 0.02em;
    margin-top: 160px;
}

.hero h1 {
    font-size: 55px;
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #FDD703;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero p {
    font-size: 22px;
    font-weight: 300;
}
/* #endregion 07. Hero Section */

/* #region 08. Intro Section */
.intro {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;

}

.intro-title {
    padding: 50px;
    padding-bottom: 20px;
    padding-left: 30px;
}

.intro-text-right {
    margin-left: 20px;
    padding-right: 30px;
    padding-top: 0px;
    padding-bottom: 0px;
}
/* #endregion 08. Intro Section */
/* #region 09. Solutions Preview */
.solutions-preview {
    margin-top: 3rem;
}

    .solutions-preview h2 {
        margin-bottom: 1rem;
        font-size: 2rem;
        color: #2c2c2b;
        font-weight: 800;
    }

.solution-item h3 a {
    color: #2c2c2b;
    font-weight: 700;
}

    .solution-item h3 a:hover {
        color: #57410b;
    }
/* #endregion 09. Solutions Preview */

/* #region 10. CTA Blocks */
.cta {
    text-align: center;
    margin: 3rem 0;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #2c2c2b;
    color: white;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
    font-family: "roboto", sans-serif;
}

    .btn-primary:hover {
        color: #EFCB03;
    }
/* #endregion 10. CTA Blocks */

/* #region 11. Breadcrumbs */
.breadcrumb-container {
    background: #eee;
    padding: 0.5rem 1rem;
    margin-top: 80px;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-family: "roboto", sans-serif;
}

    .breadcrumb li a {
        color: #0077cc;
    }

    .breadcrumb li::after {
        content: '/';
        margin: 0 0.5rem;
        color: #666;
    }

    .breadcrumb li:last-child::after {
        content: '';
    }
/* #endregion 11. Breadcrumbs */

/* #region 12. Footer */
.footer {
    background-color: #26221f;
    color: #ccc;
    padding: 2rem 1rem;
    text-align: center;
    font-family: "roboto", sans-serif;
    font-weight: 300;
    font-size: 18px;
}

    .footer a {
        color: #EFCB03;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1430px;
    text-align: left;
    gap: 2rem;
    margin: 0 auto;
    width: 97%;
}

.footer-column h3, .footer-column h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 160px;
    height: auto;
    display: block;
    margin-top: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-column ul li {
        margin-bottom: 0.1rem;
    }
/* #endregion 12. Footer */

/* #region 13. Container & Utility Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    padding-left: 0;
    padding-right: 0;
    font-family: "roboto", sans-serif;
}
/* Misc utility */
.test {
    position: relative;
    right: 0;
    width: 400px;
    background-color: #f3d31c;
    height: 100%;
    float: right;
    margin-left: 60px;
}
/* #endregion 13. Container & Utility Layouts */

/* #region 14. Dropcap Blocks */
.drop-cap-container {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-bottom: 2rem;
    margin-right: 5px;
    padding-right: 0px;
}

.drop-cap-container-no-highlight {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-bottom: 2rem;
    margin-right: 20px;
    padding-left: 20px;
}

.drop-cap {
    float: left;
    font-size: 65px;
    line-height: 1;
    margin-right: 3px;
    font-weight: 900;
    color: #26221f;
    margin-left: -5px;
    font-family: "roboto", sans-serif;
    margin-top: -5px;
    margin-bottom: -10px;
}

.dropcap::first-letter {
    float: left;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 8px;
    color: var(--accent-color);
}
/* #endregion 14. Dropcap Blocks */

/* #region 15. Highlight Column System (bars) */
/* For intro sections that include highlight bars */
.intro-flex--has-bars {
    display: flex;
    align-items: stretch;
    gap: 55px !important;
}
/* Highlight column positioned into the left margin */
.highlight-column {
    position: relative;
    flex: 0 0 60px;
    width: 60px;
    min-width: 60px;
    margin-left: -30px;
}
/* Content column */
.intro-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
}
.intro-text-margin-change {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    margin-right: 30px;
}


/* Bars */
.highlight-column .highlight-block,
.highlight-column .highlight-block-yellow {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 2px;
    pointer-events: none;
}
/* Dark bar */
.highlight-column .highlight-block {
    left: 0;
    width: 53px;
    background: #46443e;
    z-index: 1;
}
/* Yellow bar */
.highlight-column .highlight-block-yellow {
    left: 53px;
    width: 5px;
    background: #f9d70d;
    z-index: 2;
}
/* #endregion 15. Highlight Column System (bars) */

/* #region 16. Homepage Stats */
.stats-container {
    display: flex;
    flex-wrap: nowrap; /* force all 4 on exactly one line */
    justify-content: space-between;
    align-items: stretch;
    background: #111;
    padding: 20px 0px;
    color: #fff;
    text-align: center;
    width: 100%;
    gap: 0; /* IMPORTANT: no gap, gap causes wrapping */
}

.stat-box {
    flex: 0 0 25%; /* EXACT equal width boxes */
    max-width: 25%;
    padding: 20px 40px; /* internal spacing (replace gap) */
    border-right: 1px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    /* remove last vertical border */
    .stat-box:last-child {
        border-right: none;
    }

.stat-number {
    font-size: 5rem;
    font-weight: 700;
    display: block;
    margin: 0 0 10px 0; /* clean, even spacing */
    line-height: 1;
}


.stat-title {
    font-size: 2rem;
    font-weight: 600;
    display: block;
}

.stat-sub {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 2.5rem;
}

/* Stagger */
.stat-box:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-box:nth-child(2) {
    animation-delay: 0.4s;
}

.stat-box:nth-child(3) {
    animation-delay: 0.6s;
}

.stat-box:nth-child(4) {
    animation-delay: 0.8s;
}
/* #endregion 16. Homepage Stats */

/* #region 17. Section Titles, Grids & Cards */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 45px;
    font-weight: 900;
    line-height: 1;
    padding-bottom: 12px;
    text-align: left;
}

.section-subtitle {
    font-size: 26px;
    color: var(--text-muted);
    text-align: left;
    margin-top: -40px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.highlight-box {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .highlight-box h3 {
        margin-bottom: 0.75rem;
    }

.image-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.image-box img.rounded-img {
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 560px;
    height: auto;
}

.rounded-img {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.rounded-img-electrical-wiring {
    margin-left: 30px;
}

/* Licensed Products grid (desktop & tablet) */
.licensed-products-grid {
    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
    column-gap: 25px;
    row-gap: 10px;
    position: relative;
}

/* #endregion 17. Section Titles, Grids & Cards */

/* #region 18. Image Frames & Groups */
.highlight-image {
    position: relative;
    border-radius: 20px;
    outline: 8px solid #403d3a;
    overflow: hidden;
    line-height: 0px;
    margin: 30px;
}

    .highlight-image::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        box-shadow: inset 0 0 25px rgba(0,0,0,0.45);
        pointer-events: none;
    }

.highlight-image-side {
    position: relative;
    border-radius: 20px;
    outline: 8px solid #403d3a;
    overflow: hidden;
    line-height: 0px;
    margin: 30px;
    min-width: 40%;
    margin-top: 15px;
    margin-bottom: 0px;
    height: fit-content;
    margin-left: 0px;
}

.highlight-image-side-no-frame {
    position: relative;
    margin: 0px;
    margin-top: -20px;
    margin-bottom: 0px;
}

/* Image groups */
.image-group {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.image-group-3 .highlight-image {
    flex: 1 1 calc(33.33% - 40px);
    min-width: 220px;
    margin: 0;
}

.image-group-4 .highlight-image {
    flex: 1 1 calc(25% - 40px);
    min-width: 200px;
    margin: 0;
}



.image-group .highlight-image {
    margin: 0;
}
/* #endregion 18. Image Frames & Groups */

/* #region 19. Plain Bullets & Split Layouts */
.plain-bullets {
    margin: -60px auto;
    padding: 0;
}

.plain-bullets-content {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    gap: 60px;
    align-items: start;
    margin: 30px;
    margin-bottom: 60px;
}

.plain-bullets ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.7;
}

.highlighted-text-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin: 30px;
}
/* Divider */
.divider {
    width: 1px;
    background-color: #d0d0d0;
    height: 100%;
    justify-self: center;
}
/* Image styling */
.plain-bullets-image {
    text-align: center;
    position: relative;
    border-radius: 20px;
    outline: 8px solid #403d3a;
    overflow: hidden;
    line-height: 0px;
    margin-top: 45px !important;
    margin-right: 15px;
    margin-left: 8px;
    height: auto;
    margin-bottom: 50px;
}

    .plain-bullets-image img {
        max-width: auto;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
/* #endregion 19. Plain Bullets & Split Layouts */

/* #region 20. Iconised/Image Highlights & Quote */
.iconised-highlights-container {
    background-color: white;
    outline: 3px solid #65635d;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 20px 1fr;
    margin: 30px;
    margin-top: 0px;
    padding: 50px;
    padding-bottom: 50px;
    padding-left: 0px;
}

.images-highlights-container {
    background-color: white;
    outline: 3px solid #65635d;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0px;
    margin: 30px;
    margin-top: 30px;
    padding: 20px;
    padding-bottom: 20px;
    padding-left: 0px;
}

/* Bottom Quote */
.bottom-quote {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #45443f;
    color: #fdfdfd;
    font-style: italic;
    text-align: center;
    padding: 60px 20px;
    margin: 60px -30px 30px;
    width: calc(100% + 60px);
    line-height: 1.2;
}

.bottom-quote-signs {
    font-size: 50px;
    line-height: 0.5;
    margin: 0 10px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.bottom-quote-text {
    font-size: 24px;
    max-width: 80%;
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
}

.open-quote {
    margin-right: 5px;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #fdfdfd;
    display: inline-block;
    transform: rotate(180deg);
    letter-spacing: -0.05em;
}

.close-quote {
    margin-left: 5px;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #fdfdfd;
    letter-spacing: -0.05em;
}
/* #endregion 20. Iconised/Image Highlights & Quote */

/* #region 21. Core Layout Helpers (intro-flex, rows of images, gradient lists) */
/* Container row */
.intro-flex {
    display: flex;
    align-items: stretch;
    gap: 20px;
    flex-wrap: nowrap;
}

/* MIDDLE: text column (flexible) — kept in Section 15 combined */

/* Rows of images */
.row-of-images,
.row-of-images-two-frame {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0px;
    justify-content: space-between;
    margin-right: -30px;
    margin-left: -20px;
    margin-bottom: -10px;
}

.row-of-images-two-frame {
    justify-content: space-evenly;
}

.row-of-images img {
    flex: 1 1 30%;
    max-width: 32%;
    height: auto;
    object-fit: cover;
    display: block;
}

.row-of-images-two-frame img {
    flex: 1 1 40%;
    max-width: 42%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Gradient highlight box */
.flex-layout {
    display: flex;
    gap: 30px;
    max-width: 1500px;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    margin: 0 5px;
    padding: 0;
}

    .flex-layout > * {
        flex: 0 0 calc(50% - 15px);
        box-sizing: border-box;
    }

.highlight-gradient {
    flex: 1;
    background: linear-gradient(90deg, #474641 0%, #696661 100%);
    color: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    padding: 0rem;
    border: 0.5px solid white;
    outline: 4px solid #403d3a;
    outline-offset: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: fit-content !important;
}

.highlight-gradient-inside-content {
    text-align: left;
    max-width: 600px;
    margin: 40px;
}

.highlight-gradient h3 {
    color: #FFD500;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 27px;
}

.highlight-gradient ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.highlight-gradient li {
    margin-bottom: 0.6rem;
    position: relative;
    font-size: 18px;
}

    .highlight-gradient li::before {
        color: #FFD500;
        position: absolute;
        left: 0;
    }

/* Vertical guide lines inside 3-cols */
.highlight-gradient-inside-content > div {
    position: relative;
}

    .highlight-gradient-inside-content > div::before,
    .highlight-gradient-inside-content > div::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1px;
        background-color: #d0d0d0;
    }

    .highlight-gradient-inside-content > div::before {
        left: calc(33.33%);
    }

    .highlight-gradient-inside-content > div::after {
        left: calc(66.66%);
    }
/* #endregion 21. Core Layout Helpers */

/* #region 22. Logo Carousel */
.logo-carousel-wrapper {
    width: 100%;
    max-width: 1500px;
    background: #f7f7f7;
    overflow: hidden;
    position: relative;
}

.logo-carousel {
    display: flex;
    gap: 40px;
    padding: 10px 0;
    white-space: nowrap;
    overflow-x: scroll;
    scrollbar-width: none;
}

    .logo-carousel::-webkit-scrollbar {
        display: none;
    }

    .logo-carousel img {
        height: 90px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
        user-select: none;
        pointer-events: none;
    }

.carousel-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    z-index: 10;
}

.logo-carousel-wrapper:hover .carousel-arrow {
    display: block;
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}
/* #endregion 22. Logo Carousel */

/* #region 23. Cookie Consent Bar */
#cookieConsent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    font-size: 18px;
    color: #26221f;
    /* animated background */
    background: linear-gradient(90deg, #cfcfcf, #ffffff, #bfbfbf);
    background-size: 500% 500%;
    animation: cookieMove 5s ease-in-out infinite;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
}

    #cookieConsent button {
        margin: 0 10px;
        padding: 10px 20px;
        background-color: #46443e;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1em;
    }

        #cookieConsent button:hover {
            background-color: #615e56;
        }

    #cookieConsent a {
        color: #46443e;
        text-decoration: underline;
    }
/* #endregion 23. Cookie Consent Bar */

/* #region 24. Breakout Content Blocks */
/* Breakout block that fills full container width (max 1500px) */
.breakout-wrapper {
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
    max-width: 1500px;
}

.breakout-heading {
    width: 100%;
    background-color: #c5c4c4;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.breakout-body {
    width: 100%;
    background-color: #f7f7f7;
    padding: 20px 0;
}
/* #endregion 24. Breakout Content Blocks */

/* #region 25. Animations (all keyframes) */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cookieMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/* #endregion 25. Animations */

/* #region 26. Responsive Media Queries */
/* Desktop hover dropdown trigger */
@media screen and (min-width: 930px) {
    .navmenu li.has-dropdown:hover > .dropdown {
        display: flex;
    }
}

/* Mobile tweaks */
@media screen and (max-width: 930px) {
    .mobile-nav-toggle {
        display: block;
        transition: color 0.3s ease;
        padding-right: 20px;
    }

    .navmenu ul#nav-links {
        display: none;
    }

    .navmenu li.has-dropdown:hover > .dropdown {
        display: none !important;
    }

    /* After scroll */
    .mobile-nav-toggle.scrolled {
        color: #26221f !important;
    }
}

/* Mobile tweaks */
@media screen and (max-width: 600px) {
    .mobile-nav-toggle {
        padding-right: 0px;
    }
}

/* Cookie bar small screens */
@media (max-width: 930px) {
    #cookieConsent {
        font-size: 0.9em;
        padding: 15px;
    }

        #cookieConsent button {
            margin: 10px 5px;
            padding: 8px 15px;
            font-size: 0.9em;
        }
}

/* Cookie bar small screens */
@media (max-width: 930px) {
    .drop-cap-container {
        padding-right: 0px;
    }
}

/* Plain bullets stack */
@media (max-width: 930px) {
    .plain-bullets-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .divider {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 600px;
    }
    .intro-title {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 10px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 21px;
    }

    html, body {
        font-size: 20px;
    }

    .highlight-column .highlight-block {
        left: 0;
        width: 23px;
    }

    .highlight-column .highlight-block-yellow {
        left: 21px;
        width: 3px;
    }

    .intro-flex--has-bars {
        gap: 40px !important;
    }

    .highlight-column {
        position: relative;
        flex: 0 0 20px;
        width: 20px;
        min-width: 20px;
        margin-left: -30px;
    }

    .breakout-heading {
        height: 80px;
        align-items: center;
        padding: 20px;
        line-height: 25px;
        text-align: center;
    }

    .logo-carousel {
        display: flex;
        gap: 20px;
        padding: 10px 0;
        white-space: nowrap;
        overflow-x: scroll;
        scrollbar-width: none;
    }

        .logo-carousel img {
            height: 70px;
        }
}

@media (max-width: 1138px) {

    .stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 equal columns */
        gap: 40px;
        justify-items: center;
        position: relative; /* needed for both lines */
        border-right: none !important;
    }

    .stat-box {
        width: 100%;
        max-width: 350px;
        border-right: none !important;
    }

    /* Center vertical divider for 2-column grid */
    .stats-container::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background: rgba(255,255,255,0.2);
        transform: translateX(-0.5px);
    }

    /* Horizontal divider between the two rows */
    .stats-container::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: rgba(255,255,255,0.2);
        transform: translateY(-0.5px);
    }
}

@media (max-width: 630px) {

    .stats-container {
        display: flex !important; /* override the grid */
        flex-direction: column !important;
        align-items: center;
        gap: 30px;
        position: relative;
    }

    .stat-box {
        width: 100%;
        max-width: 350px;
        border-right: none !important;
    }

    /* remove both 1138px divider lines */
    .stats-container::before,
    .stats-container::after {
        display: none !important;
        content: none !important;
    }
}

/* Finance & Rental – reorder image above benefits on tablet */
@media (max-width: 1130px) {

    .finance-flex {
        display: flex;
        flex-direction: column; /* stack vertically */
        gap: 25px;
    }

    .finance-img {
        order: -1; /* move image above benefits */
        max-height: 300px;
    }

    .finance-benefits {
        order: 2;
    }
}


/* #endregion 26. Responsive Media Queries */

/* #region 27. Control Rooms – Page-Specific Layout Fixes (applies ONLY to /control-rooms.php) */

.intro-right-CR {
    flex: 1 1 auto;
    min-width: 0;
    display: block; /* IMPORTANT: allow inner layout to control structure */
}

    /* Text column spacing stays the same */
    .intro-right-CR .intro-text {
        margin-bottom: 20px;
    }

    /* Keep your image styling intact */
    .intro-right-CR .highlight-image-side {
        margin: 50px 10px;
    }
.section-padding-CR {
    margin: 30px;
}

/* Solution highlights wrapper */
.intro-highlights-CR {
    margin-top: 12px;
}

.solutions-highlights {
    margin-top: 30px;
}

/* ========== DESKTOP >1131px ========== */
/* Image next to bullet list */
@media (min-width: 1200px) {

    .cr-flex-pair {
        display: grid;
        grid-template-columns: minmax(320px, 40%) 1fr; /* image | bullets */
        column-gap: 30px;
        align-items: start;
    }

        .cr-flex-pair .highlight-image-side {
            margin-top: 30px;
        }

        .cr-flex-pair .intro-highlights-CR {
            margin-top: 15px;
        }
}

/* ========== MOBILE/TABLET <1130px ========== */
@media (max-width: 1199px) {
    .cr-flex-pair {
        display: block; /* stack image over bullets */
    }
}

/* #endregion 27. Control Rooms */


/* ---------- Responsive (Tablet & Below) ---------- */
@media (max-width: 1200px) {

    .intro-right-CR {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

        .intro-right-CR .intro-text,
        .intro-right-CR .highlight-image-side,
        .intro-highlights-CR {
            margin-left: 0px;
        }

    .solutions-highlights {
        margin-top: 0px;
    }
}

/* #endregion 27. Control Rooms – Page-Specific Layout Fixes */

/* ---------- Footer: 980px and smaller (2 columns per row) ---------- */
@media (max-width: 980px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 equal columns */
        gap: 2rem;
        padding-left: 20px !important;
    }

    .footer-column {
        min-width: 0;
        width: 100%; /* ensure equal width */
    }
}

/* ---------- Footer: 550px and smaller (1 column per row) ---------- */
@media (max-width: 550px) {
    .footer-container {
        grid-template-columns: 1fr; /* single column */
    }
}

/* ---------- Footer:397px and smaller (1 column per row) ---------- */
@media (max-width: 397px) {
    .footer-container {
        padding-left: 10px !important;
    }
}

@media (max-width: 600px) {
    .logo img {
        margin-left: 0px;
    }

    .intro-text-margin-change {
        margin-right: 0px;
    }
}




/* ============================================ */
/* SECOND HIGHLIGHT SECTION — WRAPPER LAYOUT    */
/* ============================================ */

/* Desktop layout: text + gradient side-by-side */
.intro-second-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.highlight-gradient {
    margin-top: 25px;
}

/* Responsive: drop gradient under text (keep bars intact!) */
@media (max-width: 1030px) {
    .intro-second-wrapper {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

        .intro-second-wrapper .intro-text,
        .intro-second-wrapper .highlight-gradient {
            grid-column: 1;
            margin-left: 0;
            margin-top: 20px;
        }
}




/* Wholesale Diesel Supply — move highlight box BELOW content */
@media (max-width: 1063px) {

    .wholesale-flex {
        flex-direction: column;
    }
    .highlight-gradient {
        margin-top: 0px;
    }
    .intro-text-right {
        margin-left: 0px;
        padding-right: 0px;
    }
    .wholesale-flex .intro-text-right {
        order: 1;
    }

    .wholesale-flex .highlight-gradient {
        order: 2;
    }

}

/* Licensed Products – stack into one column on small screens */
@media (max-width: 580px) {

    .licensed-products-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 12px;
    }

        /* Remove desktop visual offsets */
        .licensed-products-grid > div {
            margin-left: 0 !important;
        }

    .highlight-gradient-inside-content > div::before, .highlight-gradient-inside-content > div::after {
        content: none;
    }
    .section-padding-CR {
        margin: 5px;
    }
    .highlight-image {
        margin: 5px;
    }
}

/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 930px) {

        .container.flex-layout .highlight-image,
        .container.flex-layout img.rounded-img {
            max-width: 100%;
        }
}
/* Fleet Telemetry – stack images on tablet & below */
.container.flex-layout-fleet,
.container.flex-layout-driver-monitoring,
.flex-layout-advanced-controllers,
 {
    gap: 60px;
    padding-right: 50px;
}

/* Fleet Telemetry – stack images on tablet & below */
.flex-layout-weighbridges,
.flex-layout-water-treatment,
.flex-layout-on-site-mining,
.flex-layout-mining-chemicals {
    gap: 60px;
    padding-right: 70px;
}

/* Fleet Telemetry – stack images on tablet & below */
.flex-layout-water-treatment,
.flex-layout-on-site-mining,
.flex-layout-mining-chemicals {
    padding-bottom: 50px;
}

/* Fleet Telemetry – stack images on tablet & below */
@media (min-width: 931px) {

    .container.flex-layout-fleet,
    .container.flex-layout-driver-monitoring {
        padding-right: 50px;
    } 
}

/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 930px) {

    .container.flex-layout-fleet {
        flex-direction: column;
        gap: 40px;

    }

        .container.flex-layout-fleet .highlight-image,
        .container.flex-layout-fleet img.rounded-img {
            max-width: 100%;
        }

}



/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 935px) {

    .container.flex-layout-fleet {
        padding-right: 20px;
    }

}

/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 600px) {

    .container.flex-layout-fleet,
    .flex-layout-weighbridges {
        padding-right: 0px;
    }
}

/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 600px) {

    .flex-layout-weighbridges {
        gap: 30px;
    }
}

/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 930px) {

    .container.flex-layout-driver-monitoring {
        padding-right: 35px;
    }
}

/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 850px) {

    .container.flex-layout-driver-monitoring {
        padding-right: 20px;
    }
}

/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 850px) {

    .flex-layout-weighbridges,
    .flex-layout-water-treatment,
    .flex-layout-on-site-mining,
    .flex-layout-mining-chemicals {
        padding-right: 0px;
        gap: 30px;
    }
}

/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 609px) {

    .container.flex-layout-driver-monitoring {
        padding-right: 10px;
    }
}

/* Fleet Telemetry – stack images on tablet & below */
@media (max-width: 600px) {

    .container.flex-layout-driver-monitoring {
        padding-right: 0px;
    }
}

/* Iconised highlights – single column on tablet & below */
@media (max-width: 930px) {

    .iconised-highlights-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

        .iconised-highlights-container .divider {
            margin: 15px;
            background-color: transparent;
            display: block;
        }

        /* Ensure both content columns stack nicely */
        .iconised-highlights-container > div {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
}
/* DIGISTOP page only – stack right side at 1180 and below, keep highlight bars */
.page-digistop .digistop-right {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 45%);
    column-gap: 50px;
    align-items: start;
}

/* Stack image under text */
@media (max-width: 1090px) {
    .page-digistop .digistop-right {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    /* Bottom images stack vertically */
    .page-digistop .row-of-images {
        flex-direction: column;
        gap: 30px;
    }

        .page-digistop .row-of-images img {
            width: 100%;
            max-width: 100%;
        }

}


.integrated-control-image-area {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    flex: 0 60px;
}


/* ============================================================
   Advanced Controllers & Integration – Mobile layout ONLY
   Applies at 900px and below
   ============================================================ */
@media (min-width: 901px) {
    .page-advanced-controllers .ac-top-images {
        padding-bottom: 40px;
        gap: 40px;
    }
}
@media (min-width: 901px) {
    .page-advanced-controllers .ac-top-images {

        padding-right: 70px;
    }
}
@media (max-width: 900px) {
    .page-advanced-controllers .ac-top-images {
        flex-direction: column;
        padding-bottom: 40px;
        padding-right: 20px;
        gap: 30px;
    }
}

/* Water Treatment page only: remove the forced gap when the columns stack */
@media (max-width: 930px) {
    body.water-treatment-page .plain-bullets-content > .column:last-of-type ul {
        margin-top: 0 !important;
    }
}

/* Water Treatment page only: remove the forced gap when the columns stack */
@media (max-width: 930px) {
    body.water-treatment-page .plain-bullets-content > .column:first-of-type ul {
        margin-bottom: 0 !important;
    }
}


@media (max-width: 600px) {
    .page-advanced-controllers .ac-top-images {
        padding-right: 0px;
    }
}

@media (max-width: 700px) {

    /* Electrical wiring images: stack but keep outlined container */
    .page-advanced-controllers .ac-outlined-images {
        flex-direction: column;
        gap: 30px;
    }

        .page-advanced-controllers .ac-outlined-images img {
            width: 100%;
            max-width: 100%;
            padding-left: 50px;
            padding-right: 50px;
        }

    .rounded-img-electrical-wiring {
        margin-left: 0px;
    }
}
@media (max-width: 900px) {


    /* Third image: add vertical spacing */
    .page-advanced-controllers .ac-single-image {
        margin-top: 10px !important;
        margin-bottom: 50px !important;
    }



    /* Radio Remote Controls: image below bullet content */
    .page-advanced-controllers .ac-radio-section {
        flex-direction: column;
    }

        .page-advanced-controllers
        .ac-radio-section
        .highlight-image-side-no-frame {
            margin-top: 30px;
        }
    .integrated-control-image-area {
        flex-wrap: wrap;
    }
}


/* Advanced Controllers – Radio section wrapper fix */
.page-advanced-controllers .ac-radio-right {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 40%);
    column-gap: 30px;
    align-items: start;
}

/* Mobile / tablet */
@media (max-width: 1000px) {

    .page-advanced-controllers .ac-radio-right {
        grid-template-columns: 1fr;
        row-gap: 0px;
    }

        .page-advanced-controllers
        .ac-radio-right
        .highlight-image-side-no-frame {
            margin-top: 10px;
        }
}

/* Mobile / tablet */
@media (max-width: 1240px) {

    /* Prevent integrated control image from collapsing into text */
    .page-advanced-controllers
    .integrated-control-image-area
    .ac-single-image {
        flex-shrink: 0; /*  stops it squeezing inward */
        min-width: 120px; /*  keeps visual breathing room */
        margin-left: 30px; /* consistent gap before wrapping */
    }
}

/* Prevent image squeezing before wrap */
.page-advanced-controllers
.integrated-control-image-area
.ac-single-image {
    flex-shrink: 0; /* STOP compression */
    margin-left: 200px !important; /* GUARANTEED gap from text */
}

/* DESKTOP — default */
@media (min-width: 1135px) {
    .integrated-control-image-area {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
        flex-wrap: nowrap;
        padding-bottom: 35px;
        justify-content: flex-start;
    }
    .page-advanced-controllers .integrated-control-image-area .ac-single-image {
        flex-shrink: 0;
        margin-left: 200px !important;
    }
}

/* DESKTOP — default */
@media (max-width: 1134px) {
    .page-advanced-controllers .integrated-control-image-area .ac-single-image {
        flex-shrink: 0;
        margin-left: 0px !important;
    }
}



/* ============================================================
   Advanced Controllers – Radio images responsive behaviour
   ============================================================ */

/* Default (DESKTOP): images stacked below text */
.page-advanced-controllers .ac-radio-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

/* Tablet: images next to each other, still below text */
@media (max-width: 1000px) {
    .page-advanced-controllers .ac-radio-images {
        flex-direction: row;
        gap: 30px;
    }

        .page-advanced-controllers .ac-radio-images > div {
            flex: 1;
        }
}

/* Small mobile: stack again */
@media (max-width: 700px) {
    .page-advanced-controllers .ac-radio-images {
        flex-direction: column;
    }

    .images-highlights-container {
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        margin: 0px;
    }
    .images-highlights-container {
        padding-left: 0px;
        padding-right: 0px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

}

/* Small mobile: stack again */
@media (max-width: 397px) {
    .section-title {
        font-size: 27px;
    }

    .section-subtitle {
        font-size: 22px;
        line-height: 1;
        padding-top: 10px;
    }
    .intro-text-images-mobile {
        margin-right: 0px;
    }

    .page-advanced-controllers .ac-top-images {
        flex-direction: column;
        padding-bottom: 40px;

    }
    .intro-title {
        padding-left: 0px;
        padding-right: 0px;
        padding-top: 0px;
    }
    .intro-flex--has-bars {
        gap: 30px !important;
    }
    .drop-cap-container {
        margin-right: 0px;
        padding-right: 0px;
    }

    .drop-cap-container-no-highlight {
        margin-right: 0px;
        padding-left: 0px;
    }
    .plain-bullets-content {
        margin: 20px;
        margin-right: 0px;
        margin-bottom: 30px;
    }

    .plain-bullets-image {
        margin-left: 8px; 
    }

}

/* ============================================================
   FIX: Prevent right-cutoff on Advanced Controllers (small screens)
   Targets the Integrated Control image block specifically
   ============================================================ */
@media (max-width: 520px) {

        .page-advanced-controllers .integrated-control-image-area .ac-single-image {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            margin-left: 0 !important;
            flex: none !important; /* kills flex-shrink:0 and flex-basis issues */
        }

            .page-advanced-controllers .integrated-control-image-area .ac-single-image img {
                display: block;
                width: 100% !important;
                max-width: 100% !important;
                height: auto;
            }

}

@media (max-width: 397px) {

    /* Target ONLY icon+text rows inside iconised highlights */
    .iconised-highlights-container > div > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start;
    }

    /* Icon spacing when stacked */
    .iconised-highlights-container img {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }

    /* Text spacing cleanup */
    .iconised-highlights-container p {
        line-height: 1.3;
    }
    .iconised-highlights-container {
        margin-right: 10px;
        margin-left: 10px;
    }
    .highlight-image-side {
        margin-right: 10px;
    }
}

/* ============================================================
   Highlight content wrapper (image + text)
   Used by wiring harness highlight sections
   ============================================================ */
.highlight-content-wrap {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}

/* ============================================================
   Custom Wiring Harnesses – responsive image stacking
   ============================================================ */

/* FIRST highlight section */
@media (max-width: 1239px) {
    .first-highlight-wrap {
        flex-direction: column;
    }

        .first-highlight-wrap .highlight-image-side {
            order: -1; /* image ABOVE text */
            margin-bottom: 20px;
        }
}

/* SECOND highlight section */
@media (max-width: 1110px) {
    .second-highlight-wrap {
        flex-direction: column;
    }

        .second-highlight-wrap .highlight-image-side {
            order: -1; /* image ABOVE text */
            margin-bottom: 20px;
        }
}


/* ============================================================
   Weighbridges – stack final images on small screens
   ============================================================ */
@media (max-width: 850px) {

    .page-weighbridges .flex-layout,
    .page-real-time-diesel-dispensing .flex-layout,
    .flex-layout {
        flex-direction: column;
        align-items: stretch;
    }

        .flex-layout .highlight-image {
            margin-left: 0;
            margin-right: 0;
        }
}
/* ============================================================
   Heavy Equipment R&D – stack uneven images on smaller screens
   ============================================================ */
@media (max-width: 1135px) {

    .uneven-image-flex {
        flex-direction: column;
        align-items: stretch;
    }

        .uneven-image-flex .highlight-image {
            max-width: 100% !important;
            margin-left: 0;
            margin-right: 0;
        }

        /* Fix the second image's hard sizing */
        .uneven-image-flex img {
            width: 100% !important;
            height: auto !important;
        }
}

/* ============================================================
   Heavy Equipment R&D – unified image scaling below 1135px
   ============================================================ */
@media (max-width: 1135px) {

    /* Stack the uneven images */
    .uneven-image-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

        /* Make ALL image frames behave the same */
        .uneven-image-flex .highlight-image {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            margin: 0 !important;
            overflow: hidden;
        }

        /* Make ALL images scale fluidly inside their frame */
        .uneven-image-flex img {
            width: 100% !important;
            height: auto !important;
            max-width: 100% !important;
            object-fit: cover;
        }
}

/* ============================================================
   Heavy Equipment R&D – fix top image cropping on small screens
   ============================================================ */
@media (max-width: 1135px) {

    /* Top large image frame */
    .intro-text-margin-change > .highlight-image {
        height: auto !important;
        max-height: none !important;
        overflow: hidden;
    }

        /* Ensure the image itself scales correctly */
    .intro-text-margin-change > .highlight-image img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover;
    }
}
@media (max-width: 1135px) {
    .uneven-image-flex {
        gap: 50px !important; /* 20px + extra 30px */
    }
}

@media (max-width: 1135px) {

    /* Let the top image span full available width */
    .intro-text-margin-change > .highlight-image {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
/* ============================================================
   Mechanic Department – normalize top image width on small screens
   ============================================================ */
@media (max-width: 1135px) {

    .intro-text-margin-change > .highlight-image {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
}

/* ============================================================
   Mechanic Department – move image block below BOTH paragraphs
   and hide the last image at <=1135px
   ============================================================ */
@media (max-width: 1135px) {

    /* Allow ordering of direct children */
    .intro-text-margin-change {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

       

            /* Hide the last image in that block (the 2nd/last image) */
            .intro-text-margin-change > .uneven-image-flex > .highlight-image-hide-mobile:last-child {
                display: none !important;
            }
}


.flex-2-images {
    width: 95%;
    margin-bottom: 50px;
    margin-left: 0px;
}

@media (max-width: 397px) {
    .flex-2-images {
        width: 100%;
    }
}


.paragraph-last {
    margin-bottom: 60px
}

@media (max-width: 397px) {
    .paragraph-last {
        margin-bottom: 0px
    }
}

/* Lets long emails for example, break anywhere so the page can continue to shrink for mobile - just for paia page at this stage */
body.paia-page .intro-text {
    overflow-wrap: anywhere;
}
/* ============================================================
   Finance & Rental – eliminate image baseline gap
   ============================================================ */
.finance-img {
    display: flex;
    align-items: stretch;
}

    .finance-img img {
        display: block; /* kills inline baseline gap */
        height: 100%;
        width: 100%;
    }

/* ============================================================
   Finance & Rental – keep content inside highlight height
   ============================================================ */
@media (max-width: 900px) {

    .intro-flex--has-bars {
        align-items: stretch; /* already true, but reinforce */
    }

    .intro-text-margin-change {
        display: flex;
        flex-direction: column;
        align-self: stretch;
    }
}
/* ============================================================
   Finance & Rental – CONTAIN margins so content can't peel
   ============================================================ */
@media (max-width: 900px) {

    .intro-text-margin-change {
        overflow: visible; /* allow content to grow */
        display: flow-root; /* THIS is the key */
        margin-right: 20px;
    }
}

body.field-service-page
.image-group {
    margin-top: 0px;
}

/* ============================================================
   Custom Wiring Harnesses ONLY – fix image width after stacking
   ============================================================ */


@media (max-width: 1239px) {

    body.wiring-harness-page
    .first-highlight-wrap .highlight-image-side,
    body.wiring-harness-page
    .second-highlight-wrap .highlight-image-side {
        width: calc(100% - 30px);
        margin-right: 30px;
        min-width: 0;
    }
}


/* ============================================================
   Weighbridges – spacing below FIRST image only
   ============================================================ */
body.page-weighbridges
.intro-text-margin-change > .highlight-image:first-of-type {
    margin-bottom: 50px !important;
}

/* ============================================================
   Weighbridges ONLY – remove vertical gap at tablet sizes
   ============================================================ */
@media (max-width: 1135px) {
    body.page-weighbridges .intro-text-margin-change {
        gap: 0;
    }
}
@media (max-width: 386px) {
    body.wiring-harness-page .first-highlight-wrap .highlight-image-side, body.wiring-harness-page .second-highlight-wrap .highlight-image-side {
        width: calc(100% - 10px);
    }
}

.image-group {
    margin-top: 0px;
}

@media (max-width: 600px) {
    body.heavy-equipment-page .intro-text-margin-change {
        margin-right: 0px !important;
    }
}

/* ============================================================
   Mechanic Department ONLY – remove inner gap in image frame (desktop)
   ============================================================ */
body.page-mechanic-department .uneven-image-flex > .highlight-image {
    display: flex; /* make the frame a flex box */
    align-items: stretch; /* stretch child to full height */
}

    /* make the image fill the frame cleanly */
    body.page-mechanic-department .uneven-image-flex > .highlight-image > img,
    body.page-mechanic-department .uneven-image-flex > .highlight-image > img.rounded-img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }
.fullscreen-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0,0,0,0.95);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    pointer-events: none;
}

.fullscreen-nav-inner {
    min-height: 100%;
    display: flex;
    justify-content: center; /* vertical centering */
}

@media screen and (max-width: 930px) {

    /* White ONLY when scrolled AND fullscreen nav is open */
    body.nav-open .mobile-nav-toggle.scrolled {
        color: #ffffff !important;
    }
}

@media screen and (max-width: 930px) {
    .double-images-no-highlight {
        width: auto;
        padding-right: 20px !important;
        padding-left: 20px !important;
    }
}

@media screen and (max-width: 396px) {
    .double-images-no-highlight {
        width: auto;
        padding-right: 60px !important;
        padding-left: 20px !important;
    }
}

.container.flex-layout-fleet.flex-layout.double-images-no-highlight {
    padding-right: 70px;
    padding-left: 20px;
}

.main-product-logo {
    width: 180px;
    height: auto;
    margin-top: -20px;
    margin-bottom: -20px;
    margin-left: auto;
    margin-right: auto;
}