
/* =========================================================
   MODERN GRAPHICS - MAIN STYLESHEET
   File: assets/css/style.css
   ========================================================= */

/* ---------- Design tokens ---------- */

:root {
    --mg-navy: #142e53;
    --mg-blue: #1b4278;
    --mg-blue-light: #315d8b;
    --mg-green: #188044;
    --mg-green-light: #279755;
    --mg-text: #172f52;
    --mg-muted: #62758d;
    --mg-border: #dce5ef;
    --mg-white: #ffffff;
    --mg-light: #f6f9fc;
    --mg-container: 1240px;
    --mg-radius: 20px;
    --mg-shadow: 0 16px 40px rgba(19, 45, 78, 0.10);
    --mg-transition: 0.25s ease;
}

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--mg-text);
    background: var(--mg-white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #e8b93e;
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--mg-navy);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

p {
    color: var(--mg-muted);
}

.mg-container {
    width: min(var(--mg-container), calc(100% - 64px));
    margin-inline: auto;
}

.section-padding {
    padding-block: 100px;
}


/* ---------- Accessible skip link ---------- */

.skip-link,
.skip-to-content,
a[href="#main-content"]:not(:focus) {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 9999;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus,
.skip-to-content:focus,
a[href="#main-content"]:focus {
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    overflow: visible;
    clip-path: none;
    background: #ffffff;
    color: #46daee;
    border: 2px solid #142e53;
    border-radius: 6px;
}


/* ---------- Header and shared includes ---------- */

.topbar {
    min-height: 32px;
    background: var(--mg-navy);
    color: var(--mg-white);
}

.topbar .container,
.topbar .mg-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 32px;
}

.topbar p,
.topbar span,
.topbar a {
    margin-bottom: 0;
    color: inherit;
    font-size: 11px;
    line-height: 1.5;
}

/* Header container: one consistent horizontal alignment */
.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--mg-white);
    border-bottom: 1px solid var(--mg-border);
}

.site-header .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 96px;
    padding-block: 10px;
}

/* Logo and company name */
.site-header .brand {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.site-header .brand__logo {
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    max-width: none;
    margin: 0;
    object-fit: contain;
}

.site-header .brand__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.site-header .brand__name {
    display: block;
    margin: 0;
    padding: 0;
    color: var(--mg-navy);
    font-family: inherit;
    font-size: clamp(21px, 1.65vw, 27px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.15;
    white-space: nowrap;
}

.site-header .brand__tagline {
    display: block;
    margin: 5px 0 0;
    padding: 0;
    color: var(--mg-muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.11em;
    line-height: 1.4;
    white-space: nowrap;
}

/* Desktop navigation */
.site-header .primary-nav {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.3vw, 22px);
    min-width: 0;
    margin: 0 0 0 auto;
    padding: 0;
}

.site-header .primary-nav .primary-nav__link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 0;
    color: var(--mg-navy);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--mg-transition);
}

.site-header .primary-nav .primary-nav__link:hover {
    color: var(--mg-green);
}

.site-header .primary-nav .nav-cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 0 19px;
    border: 1px solid var(--mg-blue);
    border-radius: 6px;
    background: var(--mg-blue);
    color: var(--mg-white);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

.site-header .primary-nav .nav-cta:hover {
    border-color: var(--mg-navy);
    background: var(--mg-navy);
    color: var(--mg-white);
}

/* Mobile menu button: hidden on desktop */
.site-header .nav-toggle {
    display: none;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--mg-border);
    border-radius: 7px;
    background: var(--mg-white);
    cursor: pointer;
}

.site-header .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--mg-navy);
}

/* Tablet and compact desktop */
@media (max-width: 1100px) {
    .site-header .site-header__inner {
        gap: 18px;
    }

    .site-header .brand {
        gap: 10px;
    }

    .site-header .brand__logo {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .site-header .brand__name {
        font-size: 20px;
        letter-spacing: -0.04em;
    }

    .site-header .brand__tagline {
        font-size: 8px;
        letter-spacing: 0.08em;
    }

    .site-header .primary-nav {
        gap: 12px;
    }

    .site-header .primary-nav .primary-nav__link {
        font-size: 12px;
    }

    .site-header .primary-nav .nav-cta {
        padding-inline: 12px;
        font-size: 12px;
    }
}

/* Mobile and tablet navigation */
@media (max-width: 820px) {
    .site-header .site-header__inner {
        position: relative;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        min-height: 82px;
        padding-block: 10px;
    }

    .site-header .brand {
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    .site-header .brand__logo {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .site-header .brand__name {
        font-size: clamp(17px, 3vw, 21px);
    }

    .site-header .brand__tagline {
        font-size: 8px;
    }

    .site-header .nav-toggle {
        display: flex;
        flex: 0 0 44px;
    }

    .site-header .primary-nav {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
        margin: 0;
        padding: 12px 0 4px;
        border-top: 1px solid var(--mg-border);
    }

    .site-header .primary-nav.is-open {
        display: flex;
    }

    .site-header .primary-nav .primary-nav__link {
        justify-content: flex-start;
        width: 100%;
        min-height: 42px;
        padding: 8px 4px;
        white-space: normal;
    }

    .site-header .primary-nav .nav-cta {
        align-self: flex-start;
        min-height: 42px;
        margin-top: 5px;
        padding-inline: 18px;
    }
}

/* Small phones */
@media (max-width: 520px) {
    .topbar .container,
    .topbar .mg-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 3px 12px;
        padding-block: 5px;
        text-align: center;
    }

    .site-header .site-header__inner {
        gap: 10px;
    }

    .site-header .brand {
        gap: 8px;
    }

    .site-header .brand__logo {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .site-header .brand__name {
        font-size: clamp(15px, 4.3vw, 19px);
        letter-spacing: -0.04em;
    }

    .site-header .brand__tagline {
        margin-top: 4px;
        font-size: 7px;
        letter-spacing: 0.055em;
    }
}


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

.mg-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    transition:
        background var(--mg-transition),
        color var(--mg-transition),
        border-color var(--mg-transition),
        transform var(--mg-transition);
}

.mg-button:hover {
    transform: translateY(-2px);
}

.mg-button-primary {
    background: var(--mg-blue);
    color: var(--mg-white);
}

.mg-button-primary:hover {
    background: var(--mg-navy);
    color: var(--mg-white);
}

.mg-button-outline {
    border-color: var(--mg-border);
    background: rgba(255, 255, 255, 0.75);
    color: var(--mg-blue);
}

.mg-button-outline:hover {
    border-color: var(--mg-blue);
    background: var(--mg-white);
}

.mg-button-light {
    background: var(--mg-white);
    color: var(--mg-blue);
}

.mg-button-light:hover {
    background: #edf3f9;
}


/* =========================================================
   MODERN GRAPHICS — BALANCED SINGLE HERO
   File: assets/css/style.css
   Add at the very bottom of the existing stylesheet.
   Keeps the existing PHP markup, links and logo paths.
   ========================================================= */

/* Hero background and overall vertical balance */
.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 64px 0 68px;
    overflow: hidden;
}

/* Center the hero within the same container as the header */
.home-hero > .mg-container,
.home-hero > .container {
    position: relative;
    z-index: 2;
    width: min(var(--mg-container), calc(100% - 64px));
    margin-inline: auto;
}

/* Two-column desktop layout */
.home-hero .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    column-gap: clamp(42px, 5vw, 76px);
    row-gap: 36px;
    width: 100%;
    margin: 0;
}

/* Left content: consistent alignment and controlled width */
.home-hero .hero-copy {
    width: 100%;
    max-width: 610px;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

.home-hero .hero-copy .eyebrow {
    margin: 0 0 18px;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.14em;
}

.home-hero .hero-copy h1 {
    max-width: 600px;
    margin: 0 0 20px;
    font-size: clamp(40px, 3.65vw, 56px);
    font-weight: 800;
    letter-spacing: -0.052em;
    line-height: 1.17;
    text-wrap: balance;
}

.home-hero .hero-description {
    max-width: 540px;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.8;
}

.home-hero .hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.home-hero .hero-trust {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

/* Right content: two consistent division cards */
.home-hero .hero-divisions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 470px;
    min-width: 0;
    margin: 0;
    justify-self: end;
}

/* Equal card heights and consistent internal spacing */
.home-hero .division-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 18px 22px 21px;
    border-radius: 20px;
    overflow: hidden;
}

.home-hero .division-label {
    position: static;
    display: block;
    margin: 0 0 10px;
    line-height: 1.5;
}

.home-hero .division-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 112px;
    flex: 0 0 112px;
    margin: 0;
    padding: 8px 12px;
    overflow: hidden;
    border-radius: 7px;
    background: #ffffff;
}

.home-hero .division-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.home-hero .division-content {
    position: relative;
    z-index: 1;
    margin: 15px 0 0;
}

.home-hero .division-content h2 {
    margin: 0 0 5px;
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.home-hero .division-content p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.6;
}

.home-hero .division-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.6;
}

.home-hero .division-arrow {
    right: 20px;
    bottom: 17px;
    pointer-events: none;
}

/* Medium desktop and laptop screens */
@media (min-width: 821px) and (max-width: 1200px) {
    .home-hero {
        min-height: 560px;
        padding-block: 54px;
    }

    .home-hero > .mg-container,
    .home-hero > .container {
        width: calc(100% - 48px);
    }

    .home-hero .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
        gap: 34px;
    }

    .home-hero .hero-copy h1 {
        font-size: clamp(37px, 4vw, 48px);
    }

    .home-hero .hero-description {
        font-size: 15px;
    }

    .home-hero .hero-divisions {
        max-width: 440px;
        gap: 16px;
    }

    .home-hero .division-card {
        padding: 16px 18px 19px;
    }

    .home-hero .division-logo {
        height: 100px;
        flex-basis: 100px;
    }

    .home-hero .division-content h2 {
        font-size: 19px;
    }
}

/* Tablet: stack the main content above the division cards */
@media (max-width: 820px) {
    .home-hero {
        min-height: 0;
        padding-block: 52px 56px;
    }

    .home-hero > .mg-container,
    .home-hero > .container {
        width: calc(100% - 40px);
    }

    .home-hero .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .home-hero .hero-copy {
        max-width: 680px;
        margin-inline: auto;
        text-align: center;
    }

    .home-hero .hero-copy h1 {
        max-width: 650px;
        margin-inline: auto;
        font-size: clamp(38px, 6vw, 52px);
    }

    .home-hero .hero-description {
        max-width: 570px;
        margin-inline: auto;
        margin-bottom: 23px;
    }

    .home-hero .hero-actions,
    .home-hero .hero-trust {
        justify-content: center;
    }

    .home-hero .hero-divisions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 16px;
        max-width: none;
        justify-self: stretch;
    }

    .home-hero .division-card {
        padding: 16px;
    }


.home-hero .division-logo {
    height: 130px;
    flex-basis: 130px;
    width: 130px;
    padding-inline: 6px;
    object-fit: contain;
}


    .home-hero .division-content h2 {
        font-size: 18px;
    }

    .home-hero .division-arrow {
        right: 12px;
        bottom: 12px;
    }

}

/* Mobile: preserve the single hero and stack division cards */
@media (max-width: 520px) {
    .home-hero {
        padding-block: 42px 46px;
    }

    .home-hero > .mg-container,
    .home-hero > .container {
        width: calc(100% - 32px);
    }

    .home-hero .hero-layout {
        gap: 28px;
    }

    .home-hero .hero-copy .eyebrow {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .home-hero .hero-copy h1 {
        font-size: clamp(32px, 8vw, 41px);
        line-height: 1.18;
        letter-spacing: -0.045em;
    }

    .home-hero .hero-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .home-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .home-hero .hero-actions .mg-button {
        width: 100%;
    }

    .home-hero .hero-trust {
        gap: 7px;
        margin-top: 20px;
        font-size: 10px;
    }

    .home-hero .hero-divisions {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .home-hero .division-card {
        padding: 17px 18px 20px;
    }

    .home-hero .division-logo {
        height: 115px;
        flex-basis: 115px;
    }

    .home-hero .division-content h2 {
        font-size: 20px;
    }

}

/* ---------- Division logo cards ---------- */

.hero-divisions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    width: 100%;
    max-width: 490px;
    justify-self: end;
}

.division-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-width: 0;
    min-height: 242px;
    padding: 20px 24px 23px;
    overflow: hidden;
    border-radius: var(--mg-radius);
    color: var(--mg-white);
    box-shadow: var(--mg-shadow);
    transition:
        transform var(--mg-transition),
        box-shadow var(--mg-transition);
}

.division-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(19, 45, 78, 0.16);
}

.division-printing {
    background: linear-gradient(125deg, #1a3f75, #315d8b);
}

.division-energy {
    background: linear-gradient(125deg, #176d3d, #269753);
}

.division-label {
    position: absolute;
    top: 16px;
    left: 23px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.82);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}



/* Division logo containers — reduce surrounding white space */
.division-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    margin-top: 12px;
    padding: 2px 8px;
    overflow: hidden;
    border-radius: 7px;
    background: #ffffff;
}

/* Enlarge the logo within its container */
.division-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Modern Energy logo */
.division-logo-energy img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Mobile adjustment */
@media (max-width: 520px) {
    .division-logo {
        height: 100px;
        margin-top: 12px;
        padding: 2px 5px;
    }
}


.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--mg-navy);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.division-energy .logo-fallback strong {
    color: var(--mg-green);
}

.division-content {
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

.division-content h2 {
    margin-bottom: 5px;
    color: var(--mg-white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.3;
}

.division-content p {
    margin-bottom: 13px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.division-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mg-white);
    font-size: 12px;
    font-weight: 700;
}

.division-arrow {
    position: absolute;
    right: 22px;
    bottom: 18px;
    z-index: 0;
    color: rgba(255, 255, 255, 0.16);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    transition: transform var(--mg-transition);
}

.division-card:hover .division-arrow {
    transform: translate(3px, -3px);
}

/* ---------- Section headings ---------- */

.section-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 13px;
}

.section-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.section-heading > p:last-child {
    margin-bottom: 0;
    font-size: 15px;
}

/* ---------- Service cards ---------- */

.home-services {
    background: #ffffff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 285px;
    padding: 27px;
    border: 1px solid var(--mg-border);
    border-radius: 13px;
    background: #ffffff;
    transition:
        transform var(--mg-transition),
        border-color var(--mg-transition),
        box-shadow var(--mg-transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #bdcfe3;
    box-shadow: var(--mg-shadow);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 7px;
    background: #edf3fa;
    color: var(--mg-blue);
    font-size: 11px;
    font-weight: 800;
}

.service-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 21px;
    place-items: center;
    border-radius: 12px;
    background: #edf3fa;
    color: var(--mg-blue);
}

.service-icon svg {
    width: 35px;
    height: 35px;
}

.service-card:nth-child(3n) .service-icon {
    background: #eaf6ef;
    color: var(--mg-green);
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.service-card p {
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.8;
}

.service-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    color: var(--mg-blue);
    font-size: 12px;
    font-weight: 800;
}

/* ---------- About section ---------- */

.home-about {
    background: var(--mg-light);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
}

.about-copy h2 {
    max-width: 530px;
    margin-bottom: 20px;
    font-size: clamp(32px, 3.2vw, 43px);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.about-copy > p:not(.eyebrow) {
    max-width: 570px;
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 1.9;
}

.about-highlights {
    display: grid;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 21px;
    border: 1px solid var(--mg-border);
    border-radius: 12px;
    background: #ffffff;
}

.highlight-mark {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 9px;
    background: #edf3fa;
    color: var(--mg-blue);
    font-size: 12px;
    font-weight: 800;
}

.highlight-item h3 {
    margin-bottom: 5px;
    font-size: 17px;
}

.highlight-item p {
    margin-bottom: 0;
    font-size: 13px;
}

/* ---------- Final call to action ---------- */

.home-cta {
    padding-block: 65px;
    background: linear-gradient(115deg, #173d72, #285788);
}

.cta-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.home-cta .eyebrow {
    margin-bottom: 12px;
    color: #c9ddf4;
}

.home-cta h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: clamp(29px, 3vw, 40px);
    font-weight: 800;
}

.home-cta p:not(.eyebrow) {
    max-width: 650px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

/* ---------- Footer and floating contact ---------- */

.site-footer {
    background: #102747;
    color: #ffffff;
}

.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer a,
.site-footer span {
    color: inherit;
}

.floating-contact {
    z-index: 100;
}

/* ---------- Responsive: medium screens ---------- */

@media (max-width: 1100px) {
    .mg-container {
        width: calc(100% - 48px);
    }

    .site-header .container,
    .site-header .mg-container {
        gap: 18px;
    }

    .brand {
        gap: 10px;
    }

    .brand img {
        width: 62px;
        height: 62px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-tagline {
        font-size: 9px;
    }

    .primary-nav {
        gap: 13px;
    }

    .primary-nav a {
        font-size: 12px;
    }

    .primary-nav .nav-cta,
    .primary-nav a.nav-cta {
        padding-inline: 13px;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 35px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 4vw, 48px);
    }

    .division-card {
        min-height: 225px;
    }

    .division-logo {
        height: 105px;
    }

    .service-grid {
        gap: 15px;
    }

    .service-card {
        padding: 23px;
    }
}

/* ---------- Responsive: tablet and mobile ---------- */

@media (max-width: 820px) {
    .section-padding {
        padding-block: 72px;
    }

    .topbar .container,
    .topbar .mg-container {
        justify-content: center;
        flex-wrap: wrap;
        padding-block: 6px;
    }

    .site-header .container,
    .site-header .mg-container {
        flex-wrap: wrap;
        justify-content: center;
        padding-block: 14px;
    }

    .brand {
        justify-content: center;
    }

    .brand img {
        width: 64px;
        height: 64px;
    }

    .primary-nav {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        margin-left: 0;
        gap: 12px 20px;
    }

    .home-hero {
        min-height: auto;
        padding-block: 62px;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .hero-copy {
        max-width: 680px;
        margin-inline: auto;
        text-align: center;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 6.3vw, 54px);
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero-divisions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        gap: 16px;
        justify-self: stretch;
    }

    .division-card {
        min-height: 225px;
        padding: 18px;
    }

    .division-label {
        left: 18px;
    }

    .division-logo {
        height: 95px;
    }

    .division-content h2 {
        font-size: 18px;
    }

    .division-content p {
        font-size: 12px;
    }

    .division-arrow {
        right: 15px;
        bottom: 13px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .cta-layout {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ---------- Responsive: small mobile ---------- */

@media (max-width: 520px) {
    .mg-container {
        width: calc(100% - 36px);
    }

    .section-padding {
        padding-block: 58px;
    }

    .topbar {
        text-align: center;
    }

    .topbar .container,
    .topbar .mg-container {
        gap: 3px 12px;
    }

    .brand img {
        width: 58px;
        height: 58px;
    }

    .brand-name {
        font-size: 19px;
    }

    .brand-tagline {
        font-size: 8px;
        letter-spacing: 0.09em;
    }

    .primary-nav {
        gap: 10px 14px;
    }

    .primary-nav a {
        font-size: 12px;
    }

    .primary-nav .nav-cta,
    .primary-nav a.nav-cta {
        min-height: 38px;
    }

    .home-hero {
        padding-block: 48px;
    }

    .hero-layout {
        gap: 30px;
    }

    .hero-copy h1 {
        font-size: clamp(33px, 8vw, 42px);
        letter-spacing: -0.05em;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .mg-button {
        width: 100%;
    }

    .hero-trust {
        gap: 7px;
        font-size: 10px;
    }

    .hero-divisions {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .division-card {
        min-height: 0;
        padding: 18px 20px 21px;
    }

    .division-logo {
        height: 125px;
        margin-top: 19px;
    }

    .division-content h2 {
        font-size: 21px;
    }

    .division-arrow {
        right: 18px;
        bottom: 16px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .service-card {
        min-height: 250px;
        padding: 23px;
    }

    .about-copy h2 {
        font-size: 32px;
    }

    .highlight-item {
        padding: 17px;
        gap: 13px;
    }

    .home-cta {
        padding-block: 48px;
    }

    .home-cta h2 {
        font-size: 30px;
    }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   HEADER ALIGNMENT FIX — MODERN GRAPHICS
   File: assets/css/style.css
   Add at the very bottom
   ========================================================= */

/* Keep the topbar content aligned with the main container */
.topbar {
    width: 100%;
    min-height: 34px;
    padding-inline: 0;
}

.topbar .container,
.topbar .mg-container {
    width: min(var(--mg-container), calc(100% - 48px));
    min-height: 34px;
    margin-inline: auto;
    padding-inline: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar p,
.topbar span,
.topbar a {
    margin-block: 0;
    font-size: 11px;
    line-height: 1.5;
}

/* Main navigation header */
.site-header {
    width: 100%;
}

.site-header .container,
.site-header .mg-container {
    width: min(var(--mg-container), calc(100% - 48px));
    min-height: 96px;
    margin-inline: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* Logo and company name */
.site-header .brand {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
    margin: 0;
}

.site-header .brand__logo,
.site-header .brand img {
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    max-width: 72px;
    object-fit: contain;
}

.site-header .brand__text,
.site-header .brand-text,
.site-header .brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.site-header .brand__name,
.site-header .brand-name {
    display: block;
    margin: 0;
    color: var(--mg-navy);
    font-family: inherit;
    font-size: clamp(21px, 1.8vw, 27px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.15;
    white-space: nowrap;
}

.site-header .brand__tagline,
.site-header .brand-tagline {
    display: block;
    margin: 5px 0 0;
    color: var(--mg-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    line-height: 1.4;
    white-space: nowrap;
}

/* Desktop navigation */
.site-header .primary-nav {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(12px, 1.35vw, 22px);
    width: auto;
    margin: 0 0 0 auto;
}

.site-header .primary-nav > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.4;
}

.site-header .primary-nav > .nav-cta {
    min-height: 44px;
    padding: 0 18px;
}

/* Hide the hamburger on desktop if it is not needed */
.site-header .nav-toggle {
    display: none;
}

/* Medium screens */
@media (max-width: 1100px) {
    .site-header .container,
    .site-header .mg-container {
        gap: 18px;
    }

    .site-header .brand {
        gap: 10px;
    }

    .site-header .brand__logo,
    .site-header .brand img {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
        max-width: 60px;
    }

    .site-header .brand__name,
    .site-header .brand-name {
        font-size: 20px;
    }

    .site-header .brand__tagline,
    .site-header .brand-tagline {
        font-size: 9px;
        letter-spacing: 0.07em;
    }

    .site-header .primary-nav {
        gap: 11px;
    }

    .site-header .primary-nav > a {
        font-size: 12px;
    }

    .site-header .primary-nav > .nav-cta {
        padding-inline: 12px;
    }
}

/* Tablet and mobile: retain a usable navigation layout */
@media (max-width: 820px) {
    .topbar .container,
    .topbar .mg-container {
        width: calc(100% - 32px);
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px 14px;
        padding-block: 5px;
        text-align: center;
    }

    .site-header .container,
    .site-header .mg-container {
        width: calc(100% - 32px);
        min-height: 80px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding-block: 10px;
    }

    .site-header .brand {
        justify-content: flex-start;
    }

    .site-header .brand__logo,
    .site-header .brand img {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
        max-width: 54px;
    }

    .site-header .brand__name,
    .site-header .brand-name {
        font-size: 19px;
    }

    .site-header .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 9px;
        border: 1px solid var(--mg-border);
        border-radius: 6px;
        background: #ffffff;
        cursor: pointer;
    }

    .site-header .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--mg-navy);
    }

    .site-header .primary-nav {
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 8px 0;
    }

    /* Existing JavaScript should toggle aria-expanded */
    .site-header .nav-toggle[aria-expanded="true"] + .primary-nav {
        display: flex;
    }

    .site-header .primary-nav > a {
        justify-content: flex-start;
        padding: 12px 8px;
        white-space: normal;
    }

    .site-header .primary-nav > .nav-cta {
        justify-content: center;
        margin-top: 8px;
    }
}

/* Small phones */
@media (max-width: 420px) {
    .site-header .brand {
        gap: 8px;
    }

    .site-header .brand__logo,
    .site-header .brand img {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        max-width: 46px;
    }

    .site-header .brand__name,
    .site-header .brand-name {
        font-size: 17px;
    }

    .site-header .brand__tagline,
    .site-header .brand-tagline {
        font-size: 8px;
        letter-spacing: 0.04em;
    }
}

/* =========================================================
   FOOTER RESTORE FIX — MODERN GRAPHICS
   File: assets/css/style.css
   ========================================================= */

.site-footer {
    display: block;
    width: 100%;
    margin: 0;
    padding: 60px 0 0;
    overflow: hidden;
    background: #102747;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.site-footer .container,
.site-footer .mg-container {
    width: min(1240px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    align-items: start;
    gap: 40px;
    padding-bottom: 42px;
}

.site-footer .footer-brand,
.site-footer .footer-column {
    min-width: 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: normal;
}

.site-footer p {
    margin: 0 0 14px;
    color: #d4dfed;
    font-size: 14px;
    line-height: 1.8;
}

.site-footer a {
    color: #d4dfed;
    font-size: 14px;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 0;
    padding: 0;
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer .footer-bottom p {
    margin: 0;
    font-size: 12px;
}

/* Restore the floating WhatsApp/chat control */
.floating-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
}

/* Responsive footer */
@media (max-width: 820px) {
    .site-footer {
        padding-top: 42px;
    }

    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 24px;
    }
}

@media (max-width: 520px) {
    .site-footer .container,
    .site-footer .mg-container {
        width: calc(100% - 36px);
    }

    .site-footer .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding-bottom: 30px;
    }

    .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .floating-contact {
        right: 14px;
        bottom: 14px;
    }
}

/* =========================================================
   MODERN GRAPHICS - HEADER NAVIGATION BUTTONS
   Add at the END of assets/css/style.css
   ========================================================= */

/* Navigation layout */
.site-header .primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

/* Standard navigation links */
.site-header .primary-nav > a.primary-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--mg-navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* Hover effect */
.site-header .primary-nav > a.primary-nav__link:hover {
    color: var(--mg-blue);
    background: #edf3fa;
    border-color: #dce7f4;
}

/* Keyboard accessibility */
.site-header .primary-nav > a.primary-nav__link:focus-visible {
    outline: 3px solid #e8b93e;
    outline-offset: 2px;
}

/* Current page - add class="is-active" to its link when needed */
.site-header .primary-nav > a.primary-nav__link.is-active {
    color: var(--mg-white);
    background: var(--mg-blue);
    border-color: var(--mg-blue);
    font-weight: 700;
}

/* Request a Quote button */
.site-header .primary-nav > a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-left: 3px;
    padding: 0 19px;
    border: 1px solid var(--mg-blue);
    border-radius: 7px;
    background: var(--mg-blue);
    color: var(--mg-white);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(27, 66, 120, 0.10);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.site-header .primary-nav > a.nav-cta:hover {
    background: var(--mg-navy);
    border-color: var(--mg-navy);
    color: var(--mg-white);
    box-shadow: 0 5px 14px rgba(20, 46, 83, 0.20);
    transform: translateY(-1px);
}

/* Tablet and smaller desktop screens */
@media (max-width: 1100px) {
    .site-header .primary-nav {
        gap: 4px;
    }

    .site-header .primary-nav > a.primary-nav__link {
        padding-inline: 9px;
        font-size: 12px;
    }

    .site-header .primary-nav > a.nav-cta {
        padding-inline: 13px;
        font-size: 12px;
    }
}

/* Mobile navigation */
@media (max-width: 820px) {
    .site-header .primary-nav {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
        margin: 12px 0 0;
    }

    .site-header .primary-nav > a.primary-nav__link {
        min-height: 40px;
        padding-inline: 12px;
    }

    .site-header .primary-nav > a.nav-cta {
        min-height: 40px;
        margin-left: 0;
        padding-inline: 16px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .site-header .primary-nav > a {
        transition: none;
    }
}

/* =====================================================
   HEADER ALIGNMENT FIX
   ===================================================== */

.site-header .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Brand: keep logo and company name together */
.site-header .brand {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 20px;
}

/* Navigation: create clear separation from the brand */
.site-header .primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
}

/* Keep navigation buttons evenly spaced */
.site-header .primary-nav > a.primary-nav__link {
    padding-inline: 12px;
    white-space: nowrap;
}

/* Quote button */
.site-header .primary-nav > a.nav-cta {
    margin-left: 8px;
    flex-shrink: 0;
}

/* Medium desktop screens */
@media (min-width: 1101px) and (max-width: 1350px) {
    .site-header .site-header__inner {
        gap: 24px;
    }

    .site-header .brand {
        margin-right: 8px;
    }

    .site-header .primary-nav {
        gap: 3px;
    }

    .site-header .primary-nav > a.primary-nav__link {
        padding-inline: 8px;
        font-size: 12px;
    }

    .site-header .primary-nav > a.nav-cta {
        margin-left: 4px;
        padding-inline: 13px;
    }
}

/* Tablet and mobile */
@media (max-width: 1100px) {
    .site-header .site-header__inner {
        flex-wrap: wrap;
        gap: 14px 24px;
    }

    .site-header .brand {
        margin-right: 0;
    }

    .site-header .primary-nav {
        flex: 1 1 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin-left: 0;
    }
}

/* Topbar contact alignment and spacing */
.topbar .container,
.topbar .mg-container {
    padding-inline: 24px;
    gap: 16px;
}

.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 8px;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .topbar .container,
    .topbar .mg-container {
        padding-inline: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .topbar a {
        margin-right: 0;
    }
}

/* Increase header logo size */
.site-header .brand img,
.site-header .brand__logo {
    width: 120px;
    height: 120px;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

/* Keep the brand vertically aligned */
.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

/* Prevent the header from clipping the larger logo */
.site-header .site-header__inner {
    min-height: 110px;
}

/* Tablet */
@media (max-width: 820px) {
    .site-header .brand img,
    .site-header .brand__logo {
        width: 78px;
        height: 78px;
    }

    .site-header .site-header__inner {
        min-height: 96px;
    }
}

/* Small mobile */
@media (max-width: 520px) {
    .site-header .brand img,
    .site-header .brand__logo {
        width: 72px;
        height: 72px;
    }
}

/* Stronger navigation button background */
.site-header .primary-nav > a.primary-nav__link:hover {
    background-color: #d6e4f5;
    border-color: #b8cce6;
    color: #1b4278;
}

/* Optional: stronger background for the active page */
.site-header .primary-nav > a.primary-nav__link.is-active {
    background-color: #37c9ee;
    border-color: #37c9ee;
    color: #ffffff;
}

/* =========================================
   MODERN GRAPHICS - HOMEPAGE SLIDESHOW
========================================= */


.mg-slideshow {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 1;
    height: auto;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 14px;
    background: #17202b;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}


.mg-slides,
.mg-slide {
    position: absolute;
    inset: 0;
}

.mg-slide {
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 700ms ease, visibility 700ms ease;
}

.mg-slide.active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.mg-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: none;
    transition: transform 6s ease;
}


.mg-slide.active > img {
    transform: scale(1);
}

.mg-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(8, 17, 29, 0.88) 0%,
        rgba(8, 17, 29, 0.66) 43%,
        rgba(8, 17, 29, 0.16) 100%
    );
}

.mg-slide-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(24px, 5%, 58px);
    width: min(68%, 520px);
    transform: translateY(-50%);
    color: #fff;
}

.mg-slide-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.mg-slide-content h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 3.2vw, 49px);
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.mg-slide-content p {
    max-width: 420px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.7;
}

.mg-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #fff;
    color: #17202b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease;
}

.mg-slide-cta:hover {
    background: transparent;
    color: #fff;
}

.mg-slide-cta span {
    font-size: 20px;
    line-height: 1;
}

.mg-slide-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: background 200ms ease;
}

.mg-slide-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.mg-slide-prev {
    left: 14px;
}

.mg-slide-next {
    right: 14px;
}

.mg-slide-dots {
    position: absolute;
    z-index: 5;
    left: clamp(24px, 5%, 58px);
    bottom: 27px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100% - 150px);
}

.mg-slide-dot {
    width: 19px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 200ms ease, background 200ms ease;
}

.mg-slide-dot.active {
    width: 34px;
    background: #fff;
}

.mg-slide-counter {
    position: absolute;
    z-index: 5;
    right: 20px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.mg-slide-counter-line {
    width: 25px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
}

/* Tablet */
@media (max-width: 900px) {
    .mg-slideshow {
        min-height: 410px;
        height: 440px;
    }

    .mg-slide-content {
        width: 75%;
    }

    .mg-slide-content h1 {
        font-size: clamp(29px, 5vw, 42px);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .mg-slideshow {
        min-height: 430px;
        height: 460px;
        border-radius: 9px;
    }

    .mg-slide-overlay {
        background: linear-gradient(
            90deg,
            rgba(8, 17, 29, 0.84),
            rgba(8, 17, 29, 0.42)
        );
    }

    .mg-slide-content {
        left: 24px;
        width: calc(100% - 70px);
    }

    .mg-slide-content h1 {
        font-size: 32px;
    }

    .mg-slide-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .mg-slide-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .mg-slide-arrow {
        width: 32px;
        height: 32px;
        font-size: 23px;
    }

    .mg-slide-prev {
        left: 7px;
    }

    .mg-slide-next {
        right: 7px;
    }

    .mg-slide-dots {
        left: 24px;
        bottom: 22px;
        gap: 5px;
        max-width: calc(100% - 105px);
    }

    .mg-slide-dot {
        width: 12px;
    }

    .mg-slide-dot.active {
        width: 23px;
    }

    .mg-slide-counter {
        right: 12px;
        bottom: 20px;
        gap: 5px;
        font-size: 10px;
    }

    .mg-slide-counter-line {
        width: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mg-slide,
    .mg-slide > img,
    .mg-slide-cta,
    .mg-slide-arrow {
        transition: none;
    }
}


/* =========================================================
   MODERN GRAPHICS — SINGLE RESPONSIVE HOME HERO RULESET
   Replaces duplicate/conflicting hero overrides below.
   ========================================================= */

.home-hero {
    width: 100%;
    overflow-x: clip;
}

.home-hero,
.home-hero * {
    box-sizing: border-box;
}

/* One centered container for the slideshow and division cards */
.home-hero > .mg-container {
    width: calc(100% - 64px) !important;
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Desktop: both columns form one centered group */
.home-hero .hero-layout {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 310px !important;
    column-gap: 30px !important;
    row-gap: 24px !important;
    align-items: center !important;

    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Slideshow column */
.home-hero .hero-layout > .hero-copy {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-self: stretch !important;
}

/* Slideshow: fill column and preserve the same shape across displays */

.home-hero .mg-slideshow {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}


/* Slides and images stay within the slideshow frame */
.home-hero .mg-slideshow .mg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


.home-hero .mg-slideshow .mg-slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}


/* Right column: two division cards */
.home-hero .hero-layout > .hero-divisions {
    grid-column: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: center !important;
    gap: 18px !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.home-hero .hero-divisions > *,
.home-hero .hero-divisions .division-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.home-hero .hero-divisions img {
    display: block;
    max-width: 100%;
}

/* Smaller desktop/laptop: narrower card column and gap */
@media (min-width: 901px) and (max-width: 1200px) {
    .home-hero > .mg-container {
        width: calc(100% - 40px) !important;
    }

    .home-hero .hero-layout {
        grid-template-columns: minmax(0, 1fr) 270px !important;
        column-gap: 22px !important;
    }

    .home-hero .hero-layout .mg-slideshow {
        height: clamp(320px, 36vw, 460px) !important;
        aspect-ratio: 3 / 1 !important;
height: auto !important;
min-height: 0 !important;
max-height: none !important;
    }
}

/* Tablet: slideshow full width, cards side by side beneath it */
@media (max-width: 900px) {
    .home-hero > .mg-container {
        width: calc(100% - 36px) !important;
        max-width: none !important;
    }

    .home-hero .hero-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 22px !important;
        width: 100% !important;
    }

    .home-hero .hero-layout > .hero-copy {
        grid-column: 1 !important;
    }

    .home-hero .hero-layout .mg-slideshow {
        width: 100% !important;
        height: clamp(300px, 52vw, 460px) !important;
        max-height: 460px !important;
    }

    .home-hero .hero-layout > .hero-divisions {
        grid-column: 1 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: none !important;
    }
}

/* Mobile: stack both division cards */
@media (max-width: 560px) {
    .home-hero > .mg-container {
        width: calc(100% - 24px) !important;
    }

    .home-hero .hero-layout {
        gap: 16px !important;
    }

    .home-hero .hero-layout .mg-slideshow {
        height: clamp(280px, 78vw, 380px) !important;
        border-radius: 12px;
    }

    .home-hero .hero-layout > .hero-divisions {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }
}


/* Clean image-only slideshow: no text or dark overlay on the slides */
.mg-slide-overlay,
.mg-slide-content {
    display: none !important;
}
.mg-slide img {
    filter: none !important;
}



/* ==========================================
   FINAL HOMEPAGE ALIGNMENT & RESPONSIVENESS
========================================== */

/* Remove excess vertical whitespace */
.home-hero {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: clamp(24px, 3vw, 48px) 0 !important;
    overflow-x: clip;
}

/* Keep the complete hero group aligned */
.home-hero .hero-layout {
    align-items: start !important;
    grid-template-columns: minmax(0, 1fr) 310px !important;
    gap: 24px !important;
}

/* Preserve the full image at its natural 3:1 ratio */
.home-hero .hero-layout .mg-slideshow {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 3 / 1 !important;
    background: transparent !important;
}

/* Fill the frame without cropping */
.home-hero .mg-slideshow .mg-slides,
.home-hero .mg-slideshow .mg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero .mg-slideshow .mg-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

/* Align division cards with the top of the slideshow */
.home-hero .hero-layout > .hero-divisions {
    align-self: start !important;
    gap: 18px !important;
}

/* Laptop and smaller desktop */
@media (min-width: 901px) and (max-width: 1200px) {
    .home-hero > .mg-container {
        width: calc(100% - 40px) !important;
    }

    .home-hero .hero-layout {
        grid-template-columns: minmax(0, 1fr) 270px !important;
        gap: 20px !important;
    }
}

/* Tablet: slideshow first, division cards below */
@media (max-width: 900px) {
    .home-hero {
        padding: 28px 0 !important;
    }

    .home-hero > .mg-container {
        width: calc(100% - 32px) !important;
    }

    .home-hero .hero-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
    }

    .home-hero .hero-layout > .hero-copy,
    .home-hero .hero-layout > .hero-divisions {
        grid-column: 1 !important;
        width: 100% !important;
    }

    .home-hero .hero-layout > .hero-divisions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .home-hero {
        padding: 20px 0 !important;
    }

    .home-hero > .mg-container {
        width: calc(100% - 24px) !important;
    }

    .home-hero .hero-layout {
        gap: 16px !important;
    }

    .home-hero .hero-layout > .hero-divisions {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }
}



/* Fine-tune right-side division cards */
@media (min-width: 901px) {
    .home-hero .hero-layout > .hero-divisions {
        gap: 12px !important;
        align-self: start !important;
    }

    .home-hero .hero-divisions .division-card {
        padding: 16px 20px !important;
        min-height: 0 !important;
    }

    .home-hero .hero-divisions .division-card img {
        height: 90px !important;
        object-fit: contain !important;
    }

    .home-hero .hero-divisions .division-card h3 {
        margin: 12px 0 6px !important;
    }

    .home-hero .hero-divisions .division-card p {
        margin: 0 0 10px !important;
    }
}


/* Minimal division cards: label + logo only */
@media (min-width: 901px) {
    .home-hero .hero-divisions .division-card h3,
    .home-hero .hero-divisions .division-card p,
    .home-hero .hero-divisions .division-card a,
    .home-hero .hero-divisions .division-card button,
    .home-hero .hero-divisions .division-card .division-link,
    .home-hero .hero-divisions .division-card .card-arrow {
        display: none !important;
    }

    .home-hero .hero-divisions .division-card {
        padding: 14px 16px !important;
        min-height: 0 !important;
        height: auto !important;
    }

    .home-hero .hero-divisions .division-card img {
        display: block;
        width: 100% !important;
        height: 90px !important;
        object-fit: contain !important;
        margin: 0 !important;
    }
}

/* ==================================================
   MODERN GRAPHICS — SMALL SCREEN RESPONSIVE FIX
   ================================================== */

/* Compact division cards: keep the logos, remove extra text */
.home-hero .division-content {
    display: none !important;
}

.home-hero .division-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 16px !important;
    gap: 12px;
}

.home-hero .division-label {
    display: block;
    margin-bottom: 0;
}

.home-hero .division-logo {
    width: 100%;
    height: 88px;
    min-height: 0;
    margin: 0;
    padding: 8px !important;
    box-sizing: border-box;
}

.home-hero .division-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Smaller desktop and laptop screens */
@media (min-width: 761px) and (max-width: 1100px) {
    .home-hero .hero-layout {
        grid-template-columns: minmax(0, 1fr) 230px !important;
        gap: 16px !important;
    }

    .home-hero .hero-layout > .hero-divisions {
        max-width: 230px !important;
        gap: 14px !important;
    }

    .home-hero .division-card {
        padding: 12px !important;
    }

    .home-hero .division-logo {
        height: 72px;
    }
}

/* Tablets: slideshow first, logos below in two columns */
@media (max-width: 760px) {
    .home-hero > .mg-container {
        width: calc(100% - 28px) !important;
    }

    .home-hero .hero-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .home-hero .hero-layout > .hero-copy,
    .home-hero .hero-layout > .hero-divisions {
        width: 100% !important;
        max-width: none !important;
    }

    .home-hero .hero-divisions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .home-hero .division-card {
        width: 100% !important;
        padding: 12px !important;
    }

    .home-hero .division-logo {
        height: 76px;
    }

    .home-hero .hero-layout .mg-slideshow {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Phones: stack the two division logos */
@media (max-width: 480px) {
    .home-hero > .mg-container {
        width: calc(100% - 20px) !important;
    }

    .home-hero .hero-divisions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .home-hero .division-card {
        padding: 12px !important;
    }

    .home-hero .division-logo {
        height: 82px;
    }
}

/* Fix division card bottom spacing and logo alignment */
.home-hero .hero-divisions .division-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    padding: 16px !important;
    gap: 12px !important;
    overflow: hidden;
}

.home-hero .hero-divisions .division-logo {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 96px !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

.home-hero .hero-divisions .division-card img {
    max-width: 100%;
}

/* Keep both cards visually balanced */
.home-hero .hero-divisions {
    align-items: stretch !important;
    gap: 14px !important;
}

.home-hero .hero-divisions .division-card > * {
    max-width: 100%;
}


/* V4 division pages: larger complete division logos in the header */
.site-header .brand--division-logo {
    flex: 0 1 400px !important;
    width: min(400px, 34vw) !important;
    min-width: 0 !important;
    gap: 0 !important;
}

.site-header .brand__division-logo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 104px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
}

@media (max-width: 1100px) {
    .site-header .brand--division-logo {
        flex-basis: 320px !important;
        width: min(320px, 36vw) !important;
    }
    .site-header .brand__division-logo {
        max-height: 88px !important;
    }
}

@media (max-width: 900px) {
    .site-header .brand--division-logo {
        flex-basis: 280px !important;
        width: min(280px, 43vw) !important;
    }
    .site-header .brand__division-logo {
        max-height: 78px !important;
    }
}

@media (max-width: 600px) {
    .site-header .brand--division-logo {
        flex-basis: 230px !important;
        width: min(230px, 62vw) !important;
    }
    .site-header .brand__division-logo {
        max-height: 66px !important;
    }
}

/* V7: one complete division logo across all graphics and energy pages */
.site-header .brand--division-logo {
    flex: 0 1 360px !important;
    width: min(360px, 32vw) !important;
    min-width: 0 !important;
    gap: 0 !important;
}
.site-header .brand__division-logo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 94px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
}
@media (max-width: 1100px) {
    .site-header .brand--division-logo { flex-basis: 300px !important; width: min(300px, 34vw) !important; }
    .site-header .brand__division-logo { max-height: 82px !important; }
}
@media (max-width: 600px) {
    .site-header .brand--division-logo { flex-basis: 220px !important; width: min(220px, 58vw) !important; }
    .site-header .brand__division-logo { max-height: 64px !important; }
}

/* V6 footer credit */
.footer-credit { display: inline-block; margin-left: 18px; font-size: .85rem; }
.footer-credit a { color: inherit; text-decoration: none; font-weight: 700; }
.footer-credit a:hover { text-decoration: underline; }
@media (max-width: 700px) {
    .footer-credit { display: block; margin: 10px 0 0; }
}



/* Increase Modern Graphics header logo */
.division-header__logo {
    width: 130px !important;
    height: 130px !important;
    object-fit: contain;
}
