@charset "utf-8";
/* ============================================================
   New Home (test-home.html) — built from Figma wireframe
   Scoped under .nh- prefixes so it never touches the live site.

   Type system (from reference):
     - Banner / section titles ...... Open Sans Condensed Bold, white, uppercase
     - Card titles .................... Montserrat SemiBold, blue, uppercase
     - Hero title ..................... Montserrat SemiBold, white
     - Subtitles / body / buttons ..... Open Sans Condensed Bold
   ============================================================ */

:root {
    --nh-accent: #159cd7;
    --nh-dark: #212529;
    --nh-card: rgba(255, 255, 255, 0.95);
    --nh-ink: #212529;
    --nh-head: 'Montserrat', 'Montserrat-Medium', sans-serif;       /* card + hero titles */
    --nh-cond: 'Open Sans Condensed', 'Teko-Regular', sans-serif;   /* banner titles + body */
}

/* ---- shared bits ---- */
/* The main nav and hero share the root stacking context; without these
   z-indexes the hero overlay paints over the at-top nav. Topbar sits above the
   main nav (higher z-index + earlier in DOM) so its hover dropdowns are on top. */
.topbar { position: relative; z-index: 200; }

/* Solid black main navbar bar (Figma). The template floats the brand left and
   the menu subpanel right with no float containment, so the nav collapses to 0
   height and only the menu's own box paints. `flow-root` contains the floats so
   the nav fills the full bar height; we paint that black and keep the inner
   panels transparent so there's no offset box. Scoped to .rd-navbar-wrap so the
   topbar keeps its #333 and dropdowns (.rd-navbar-dropdown) are untouched. */
.rd-navbar-wrap { position: relative; z-index: 100; }
.rd-navbar-wrap .rd-navbar-static { display: flow-root; background-color: #000 !important; }
.rd-navbar-wrap .rd-navbar-inner,
.rd-navbar-wrap .rd-navbar-outer,
.rd-navbar-wrap .rd-navbar-subpanel,
.rd-navbar-wrap .rd-navbar-nav-wrap { background-color: transparent !important; }

.nh-wrap { background: #000; }
.nh-container { max-width: 1230px; margin: 0 auto; padding: 0 15px; }

.nh-section { padding: 70px 0; }
.nh-section-head { text-align: center; margin-bottom: 45px; }
.nh-section-head h2 {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 38px !important;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 12px 0 !important;
}
.nh-section-head p {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: #fff;
    max-width: 730px;
    margin: 0 auto;
}

.nh-btn {
    display: inline-block;
    font-family: var(--nh-cond);
    font-weight: 700;
    color: #fff !important;
    text-align: center;
    background: transparent;
    border: 1px solid var(--nh-accent);
    padding: 6px 18px;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 7px;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
}
.nh-btn:hover { background: var(--nh-accent); color: #fff !important; }
.nh-btn.nh-btn-ink { color: var(--nh-accent) !important; }
.nh-btn.nh-btn-ink:hover { background: var(--nh-accent); color: #fff !important; }

/* ---- HERO ---- */
.nh-hero {
    position: relative;
    isolation: isolate;   /* contain the overlay/content stacking inside the hero */
    min-height: 560px;
    /* Per-page background image is set inline via style="background-image:..." */
    background-color: #1a1f24;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.nh-hero::after {                     /* navy gradient, left -> right (matches Figma #222266) */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        #222266 0%,
        #222266 24.67%,
        rgba(34, 34, 102, 0) 100%);
}
.nh-hero .nh-container {
    position: relative;
    z-index: 2;
    padding-top: 300px;      /* pushes content toward the bottom */
    padding-bottom: 55px;
}
.nh-hero h1 {
    font-family: var(--nh-head);
    font-weight: 600;
    font-size: 48px !important;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 0 rgba(0,0,0,.55);
    margin: 0 0 18px 0 !important;
    line-height: 1.02;
}
.nh-hero p {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0,0,0,.5);
    max-width: 717px;        /* matches Figma hero body width */
    margin: 0 0 22px 0;
}

/* ---- INDUSTRIES (dark band) ---- */
.nh-industries { background: var(--nh-dark); }
.nh-ind-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.nh-ind-card {
    background: var(--nh-card);
    border-radius: 10px;
    min-height: 116px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nh-ind-card span {
    font-family: var(--nh-head);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--nh-accent);
    text-align: center;
}

/* ---- SERVICES (black band) ---- */
.nh-services { background: #000; }
.nh-serv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.nh-serv-card {
    background: var(--nh-card);
    border-radius: 10px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    min-height: 253px;
}
.nh-serv-card h3 {
    font-family: var(--nh-head);
    font-weight: 600;
    font-size: 22px;
    text-transform: uppercase;
    margin: 0 !important;
    color: var(--nh-accent);
}
.nh-serv-card hr {
    border: 0 !important;
    border-top: 1px solid var(--nh-accent) !important;
    margin: 14px 0 !important;
    width: 100%;
}
.nh-serv-card p {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #54565A;
    flex: 1 1 auto;
    margin-bottom: 18px;
}
.nh-serv-card .nh-btn { align-self: flex-start; }

/* ---- SAFETY (image band) ---- */
.nh-safety {
    position: relative;
    padding: 130px 0;
    background: #1a1f24 url('../images/new-home/Home_safetyengineered_website_jpservices.jpg') center center / cover no-repeat;
    text-align: center;
}
/* No CSS overlay — the navy tint is baked into the source image (matches Figma spec). */
.nh-safety .nh-container { position: relative; z-index: 2; }
.nh-safety h2 {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 38px !important;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px 0 !important;
}
.nh-safety p {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.35;
    color: #fff;
    max-width: 730px;
    margin: 0 auto 24px auto;
}

/* ---- TIME-TESTED EXPERTISE (card overlapping image) ---- */
.nh-expertise { background: #000; }
.nh-exp-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 560px) 1fr;
    align-items: center;
}
.nh-exp-card {
    background: var(--nh-card);
    border-radius: 10px;
    padding: 36px;
    z-index: 2;
    position: relative;
    margin-right: -110px;             /* overlap onto the image */
    box-shadow: 0 14px 44px rgba(0, 0, 0, .5);
}
.nh-exp-card h2 {
    font-family: var(--nh-head);
    font-weight: 600;
    font-size: 24px !important;
    text-transform: uppercase;
    margin: 0 !important;
    color: var(--nh-accent);
}
.nh-exp-card hr {
    border: 0 !important;
    border-top: 1px solid var(--nh-accent) !important;
    margin: 14px 0 !important;
    width: 100%;
}
.nh-exp-card p {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
    color: #54565A;
    margin-bottom: 22px;
}
.nh-exp-img {
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 430px;
}

/* ---- FINAL CTA (dark band) ---- */
.nh-cta { background: var(--nh-dark); text-align: center; }
.nh-cta h2 {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 38px !important;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px 0 !important;
}
.nh-cta > .nh-container > p {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 19px;
    color: #fff;
    max-width: 730px;
    margin: 0 auto 32px auto;
}
.nh-offices {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
}
.nh-office {
    font-family: var(--nh-cond);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
    color: #e6e9ec;
}
.nh-office strong {
    display: block;
    font-family: var(--nh-head);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 6px;
}
.nh-office a { color: #fff !important; text-decoration: none; }
.nh-office a:hover { color: var(--nh-accent) !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .nh-ind-grid { grid-template-columns: repeat(2, 1fr); }
    .nh-serv-grid { grid-template-columns: repeat(2, 1fr); }
    .nh-exp-grid { grid-template-columns: 1fr; }
    .nh-exp-card { margin-right: 0; }
    .nh-exp-img { margin-top: 22px; min-height: 280px; }
    .nh-hero { min-height: 480px; }
    .nh-hero .nh-container { padding-top: 240px; }
    .nh-hero h1 { font-size: 38px !important; }
}

@media (max-width: 600px) {
    .nh-ind-grid { grid-template-columns: 1fr; }
    .nh-serv-grid { grid-template-columns: 1fr; }
    .nh-section { padding: 50px 0; }
    .nh-hero { min-height: 460px; }
    .nh-hero h1 { font-size: 28px !important; }
    .nh-section-head h2, .nh-safety h2, .nh-cta h2 { font-size: 30px !important; }
    .nh-offices { flex-direction: column; gap: 28px; }
}
