/* ==========================================================================
   J Bar M Services — Site Styles
   File: jbarmcss/jbarm-styles.css

   Used by index.html, jbarmservices.html and jbarmcontact.html.
   Every class is prefixed "jbarm-" to keep the styles self-contained.

   Image paths are relative to THIS file, so they step up one folder
   (../jbarmimages/...) before entering the image folder.

   Contents
   01. Design tokens
   02. Base / reset
   03. Layout helpers
   04. Typography
   05. Buttons
   06. Header & navigation
   07. Heroes
   08. Home — Who We Are
   09. Home — Core value band
   10. Photo bands (subcontracting + CTAs)
   11. Home — Companies we work with
   12. Services page
   13. Contact page & form
   14. Footer
   15. Responsive
   16. Reduced motion
   ========================================================================== */


/* 01. Design tokens
   ========================================================================== */
:root {
    /* Brand colors (sampled from the J Bar M logo) */
    --jbarm-red: #d40303;          /* primary accent — buttons, eyebrows on light */
    --jbarm-red-dark: #a10202;     /* hover / pressed */
    --jbarm-red-bright: #ff4d4d;   /* red text on dark backgrounds (meets contrast) */

    /* Neutrals */
    --jbarm-black: #0b0d0f;
    --jbarm-charcoal: #191e23;
    --jbarm-charcoal-2: #232a31;
    --jbarm-steel: #5e6873;
    --jbarm-steel-light: #aeb6be;
    --jbarm-line: #dde1e5;
    --jbarm-paper: #f3f4f5;
    --jbarm-white: #ffffff;

    /* Text */
    --jbarm-text: #1d2328;
    --jbarm-text-muted: #4c5560;
    --jbarm-text-on-dark: #ffffff;
    --jbarm-text-on-dark-muted: #c9cfd5;

    /* Fonts */
    --jbarm-font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --jbarm-font-body: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Type scale */
    --jbarm-fs-hero: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem);
    --jbarm-fs-h1: clamp(2.4rem, 1.5rem + 3.8vw, 4.4rem);
    --jbarm-fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
    --jbarm-fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem);
    --jbarm-fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
    --jbarm-fs-body: 1.0625rem;
    --jbarm-fs-small: 0.9375rem;

    /* Spacing & layout */
    --jbarm-container: 1200px;
    --jbarm-gutter: clamp(1rem, 4vw, 2.5rem);
    --jbarm-section-y: clamp(3.75rem, 2rem + 6vw, 7rem);
    --jbarm-gap: clamp(1.75rem, 1rem + 3vw, 4rem);
    --jbarm-header-h: 88px;

    /* Surfaces */
    --jbarm-radius: 3px;
    --jbarm-shadow: 0 18px 40px -18px rgba(11, 13, 15, 0.35);
    --jbarm-shadow-sm: 0 6px 18px -8px rgba(11, 13, 15, 0.25);

    /* Buttons */
    --jbarm-btn-h: 52px;
    --jbarm-btn-px: 1.6rem;

    /* Focus ring (switched to white inside dark sections) */
    --jbarm-focus: var(--jbarm-red);

    /* Motion */
    --jbarm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --jbarm-speed: 0.22s;
}


/* 02. Base / reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--jbarm-white);
    color: var(--jbarm-text);
    font-family: var(--jbarm-font-body);
    font-size: var(--jbarm-fs-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--jbarm-red);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--jbarm-red-dark);
}

/* Keep phone numbers on one line */
a[href^="tel:"] {
    white-space: nowrap;
}

:focus-visible {
    outline: 3px solid var(--jbarm-focus);
    outline-offset: 3px;
}

/* Anchored sections clear the sticky header */
[id] {
    scroll-margin-top: calc(var(--jbarm-header-h) + 16px);
}

ul {
    margin: 0;
    padding: 0;
}

figure {
    margin: 0;
}

address {
    font-style: normal;
}

/* Screen-reader-only text */
.jbarm-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.jbarm-skip {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.1rem;
    background: var(--jbarm-black);
    color: var(--jbarm-white);
    font-weight: 600;
    text-decoration: none;
}

.jbarm-skip:focus {
    top: 1rem;
    color: var(--jbarm-white);
}


/* 03. Layout helpers
   ========================================================================== */
.jbarm-container {
    width: 100%;
    max-width: calc(var(--jbarm-container) + var(--jbarm-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--jbarm-gutter);
}

.jbarm-section {
    padding-block: var(--jbarm-section-y);
}

.jbarm-section--paper {
    background-color: var(--jbarm-paper);
    /* faint cross-hatch, like brushed plate steel */
    background-image:
        repeating-linear-gradient(135deg, rgba(11, 13, 15, 0.018) 0 2px, transparent 2px 10px),
        repeating-linear-gradient(45deg, rgba(11, 13, 15, 0.012) 0 2px, transparent 2px 10px);
}

/* Dark contexts flip the focus ring to white */
.jbarm-dark,
.jbarm-hero,
.jbarm-photo-band,
.jbarm-footer {
    --jbarm-focus: var(--jbarm-white);
}


/* 04. Typography
   ========================================================================== */
h1,
h2,
h3 {
    margin: 0;
    font-family: var(--jbarm-font-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.005em;
    color: var(--jbarm-charcoal);
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

.jbarm-h2 {
    font-size: var(--jbarm-fs-h2);
    text-transform: uppercase;
    margin-bottom: 0.45em;
}

/* Mixed-case headline (Who We Are) */
.jbarm-h2--mixed {
    text-transform: none;
    line-height: 1.05;
}

.jbarm-lead {
    font-size: var(--jbarm-fs-lead);
    line-height: 1.6;
}

/* Eyebrow: small red label with a tapered bar that echoes the
   bars in the J Bar M logo */
.jbarm-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.9rem;
    font-family: var(--jbarm-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--jbarm-red);
}

.jbarm-eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 34px;
    height: 4px;
    background: currentColor;
    clip-path: polygon(0 50%, 12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%);
}

.jbarm-eyebrow--on-dark {
    color: var(--jbarm-red-bright);
}

.jbarm-eyebrow .jbarm-dot {
    color: var(--jbarm-white);
    opacity: 0.7;
    margin-inline: 0.35em;
}


/* 05. Buttons
   ========================================================================== */
.jbarm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: var(--jbarm-btn-h);
    padding: 0.7rem var(--jbarm-btn-px);
    border: 2px solid transparent;
    border-radius: var(--jbarm-radius);
    font-family: var(--jbarm-font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--jbarm-speed) var(--jbarm-ease),
        border-color var(--jbarm-speed) var(--jbarm-ease),
        color var(--jbarm-speed) var(--jbarm-ease),
        transform var(--jbarm-speed) var(--jbarm-ease);
}

.jbarm-btn:active {
    transform: translateY(1px);
}

.jbarm-btn--primary {
    background: var(--jbarm-red);
    border-color: var(--jbarm-red);
    color: var(--jbarm-white);
}

.jbarm-btn--primary:hover {
    background: var(--jbarm-red-dark);
    border-color: var(--jbarm-red-dark);
    color: var(--jbarm-white);
}

/* White outline — for use over photography */
.jbarm-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--jbarm-white);
}

.jbarm-btn--ghost:hover {
    background: var(--jbarm-white);
    border-color: var(--jbarm-white);
    color: var(--jbarm-black);
}

.jbarm-btn__arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    transition: transform var(--jbarm-speed) var(--jbarm-ease);
}

.jbarm-btn:hover .jbarm-btn__arrow {
    transform: translateX(3px);
}

.jbarm-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}


/* 06. Header & navigation
   ========================================================================== */
.jbarm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--jbarm-white);
    border-bottom: 1px solid var(--jbarm-line);
    transition: box-shadow var(--jbarm-speed) var(--jbarm-ease);
}

.jbarm-header.is-scrolled {
    box-shadow: 0 8px 24px -14px rgba(11, 13, 15, 0.35);
}

.jbarm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--jbarm-header-h);
}

.jbarm-header__brand {
    display: block;
    flex: 0 0 auto;
    padding-block: 10px;
}

.jbarm-header__brand img {
    width: auto;
    height: 66px;
}

.jbarm-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.2rem);
    list-style: none;
}

.jbarm-nav__link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.1rem;
    font-family: var(--jbarm-font-display);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--jbarm-charcoal);
}

/* Red underline for hover + active page */
.jbarm-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.15rem;
    height: 3px;
    background: var(--jbarm-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--jbarm-speed) var(--jbarm-ease);
}

.jbarm-nav__link:hover {
    color: var(--jbarm-black);
}

.jbarm-nav__link:hover::after,
.jbarm-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}

.jbarm-nav__cta .jbarm-btn {
    min-height: 46px;
    padding-inline: 1.3rem;
}

/* Mobile menu button (hidden on desktop) */
.jbarm-nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    min-width: 48px;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 2px solid var(--jbarm-charcoal);
    border-radius: var(--jbarm-radius);
    color: var(--jbarm-charcoal);
    font-family: var(--jbarm-font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.jbarm-nav-toggle__bars,
.jbarm-nav-toggle__bars::before,
.jbarm-nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--jbarm-speed) var(--jbarm-ease), opacity var(--jbarm-speed);
}

.jbarm-nav-toggle__bars {
    position: relative;
}

.jbarm-nav-toggle__bars::before,
.jbarm-nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.jbarm-nav-toggle__bars::before {
    top: -7px;
}

.jbarm-nav-toggle__bars::after {
    top: 7px;
}

.jbarm-nav-toggle[aria-expanded="true"] .jbarm-nav-toggle__bars {
    background: transparent;
}

.jbarm-nav-toggle[aria-expanded="true"] .jbarm-nav-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
}

.jbarm-nav-toggle[aria-expanded="true"] .jbarm-nav-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
}


/* 07. Heroes
   ========================================================================== */
.jbarm-hero {
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    color: var(--jbarm-text-on-dark);
    background-color: var(--jbarm-black);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Red base rule, a subtle brand stripe along the bottom of each hero */
.jbarm-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--jbarm-red);
}

.jbarm-hero__content {
    position: relative;
    padding-block: clamp(4rem, 3rem + 5vw, 7rem);
}

.jbarm-hero__title {
    max-width: 16ch;
    margin-bottom: 1.4rem;
    font-size: var(--jbarm-fs-h1);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--jbarm-white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.jbarm-hero__lead {
    max-width: 40rem;
    margin-bottom: 2rem;
    font-size: var(--jbarm-fs-lead);
    color: var(--jbarm-text-on-dark-muted);
}

/* Home hero — welder photo. Dark on the left for the copy, clear on the
   right so the welding arc stays strong. */
.jbarm-hero--home {
    min-height: max(540px, min(800px, calc(100vh - var(--jbarm-header-h))));
    background-image:
        linear-gradient(90deg, rgba(8, 10, 12, 0.92) 0%, rgba(8, 10, 12, 0.78) 34%, rgba(8, 10, 12, 0.32) 64%, rgba(8, 10, 12, 0.08) 100%),
        linear-gradient(0deg, rgba(8, 10, 12, 0.55) 0%, rgba(8, 10, 12, 0) 35%),
        url("../jbarmimages/jbarm-hero-home.jpg");
    background-position: center, center, 70% center;
}

.jbarm-hero--home .jbarm-hero__title {
    max-width: none;
    font-size: var(--jbarm-fs-hero);
    line-height: 0.92;
}

.jbarm-hero--home .jbarm-hero__title span {
    display: block;
}

/* Inner-page heroes */
.jbarm-hero--page {
    min-height: clamp(400px, 58vh, 560px);
}

.jbarm-hero--services {
    background-image:
        linear-gradient(90deg, rgba(8, 10, 12, 0.9) 0%, rgba(8, 10, 12, 0.72) 45%, rgba(8, 10, 12, 0.35) 100%),
        url("../jbarmimages/jbarm-hero-services.jpg");
    background-position: center, center 55%;
}

.jbarm-hero--services .jbarm-hero__title {
    max-width: 18ch;
}

.jbarm-hero--contact {
    background-image:
        linear-gradient(90deg, rgba(8, 10, 12, 0.9) 0%, rgba(8, 10, 12, 0.7) 45%, rgba(8, 10, 12, 0.3) 100%),
        url("../jbarmimages/jbarm-hero-contact.jpg");
    background-position: center, center 60%;
}


/* 08. Home — Who We Are
   ========================================================================== */
.jbarm-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: var(--jbarm-gap);
}

.jbarm-split__text p {
    color: var(--jbarm-text-muted);
}

.jbarm-split__text .jbarm-eyebrow {
    color: var(--jbarm-red);
}

/* Photo with an offset steel frame + red corner */
.jbarm-frame {
    position: relative;
    padding: 0 18px 18px 0;
}

.jbarm-frame::before {
    content: "";
    position: absolute;
    inset: 18px 0 0 18px;
    border: 2px solid var(--jbarm-steel-light);
    z-index: 0;
}

.jbarm-frame::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 90px;
    height: 90px;
    border-right: 6px solid var(--jbarm-red);
    border-bottom: 6px solid var(--jbarm-red);
    z-index: 0;
}

.jbarm-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    box-shadow: var(--jbarm-shadow);
}


/* 09. Home — Core value band
   ========================================================================== */
.jbarm-values {
    background: var(--jbarm-charcoal);
    color: var(--jbarm-text-on-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.jbarm-values__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}

.jbarm-values__item {
    padding: clamp(2.25rem, 1.5rem + 2vw, 3.25rem) clamp(1rem, 2vw, 2rem);
    text-align: center;
}

.jbarm-values__item + .jbarm-values__item {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.jbarm-values__icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 1.1rem;
    color: var(--jbarm-white);
}

.jbarm-values__item h3 {
    margin-bottom: 0.5rem;
    font-size: var(--jbarm-fs-h3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--jbarm-white);
}

.jbarm-values__item p {
    max-width: 22ch;
    margin-inline: auto;
    font-size: var(--jbarm-fs-small);
    line-height: 1.5;
    color: var(--jbarm-text-on-dark-muted);
}


/* 10. Photo bands (subcontracting + CTAs)
   ========================================================================== */
.jbarm-photo-band {
    position: relative;
    isolation: isolate;
    padding-block: clamp(4rem, 3rem + 5vw, 7rem);
    color: var(--jbarm-text-on-dark);
    background-color: var(--jbarm-black);
    background-image:
        linear-gradient(90deg, rgba(8, 10, 12, 0.94) 0%, rgba(8, 10, 12, 0.8) 42%, rgba(8, 10, 12, 0.45) 100%),
        url("../jbarmimages/jbarm-plant-pipelines.jpg");
    background-size: cover;
    background-position: center, center 60%;
    background-repeat: no-repeat;
}

.jbarm-photo-band h2 {
    color: var(--jbarm-white);
}

.jbarm-photo-band p:not(.jbarm-eyebrow) {
    max-width: 44rem;
    color: var(--jbarm-text-on-dark-muted);
}

.jbarm-photo-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem 3rem;
}

.jbarm-photo-band__inner--stack {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
}

.jbarm-photo-band .jbarm-btn {
    margin-top: 0.5rem;
}


/* 11. Home — Companies we work with
   ========================================================================== */
.jbarm-clients {
    text-align: center;
}

.jbarm-clients .jbarm-h2 {
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.jbarm-clients__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

.jbarm-clients__item {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 0.5rem 1rem;
    font-family: var(--jbarm-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--jbarm-charcoal);
}

.jbarm-clients__item + .jbarm-clients__item {
    border-left: 1px solid var(--jbarm-line);
}

.jbarm-clients__icon {
    width: 52px;
    height: 52px;
    color: var(--jbarm-red);
}


/* 12. Services page
   ========================================================================== */

/* In-page jump links under the hero */
.jbarm-subnav {
    background: var(--jbarm-charcoal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jbarm-subnav__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.jbarm-subnav__list li {
    flex: 1 1 0;
}

.jbarm-subnav__list a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 60px;
    padding: 0.75rem 1rem;
    font-family: var(--jbarm-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    color: var(--jbarm-text-on-dark-muted);
    transition: color var(--jbarm-speed), background-color var(--jbarm-speed);
}

.jbarm-subnav__list li + li a {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.jbarm-subnav__list a:hover {
    color: var(--jbarm-white);
    background: var(--jbarm-charcoal-2);
}

.jbarm-subnav__num {
    color: var(--jbarm-red-bright);
}

/* Service rows */
.jbarm-service {
    padding-block: clamp(3.25rem, 2rem + 4vw, 5.5rem);
}

.jbarm-service + .jbarm-service {
    border-top: 1px solid var(--jbarm-line);
}

.jbarm-service:nth-of-type(even) {
    background: var(--jbarm-paper);
}

.jbarm-service__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: var(--jbarm-gap);
}

.jbarm-service__media {
    position: relative;
}

.jbarm-service__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: var(--jbarm-shadow);
}

/* Structural steel uses a crop of the services hero */
.jbarm-service__media--structural img {
    object-position: 40% 60%;
}

/* Red tab on the image corner */
.jbarm-service__media::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    width: 64px;
    height: 64px;
    border-top: 5px solid var(--jbarm-red);
    border-left: 5px solid var(--jbarm-red);
    z-index: 1;
}

.jbarm-service__num {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--jbarm-font-display);
    font-size: clamp(3rem, 2.4rem + 2vw, 4.25rem);
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--jbarm-steel-light);
}

.jbarm-service__body > p {
    color: var(--jbarm-text-muted);
}

/* Red check-mark list */
.jbarm-checklist {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.5rem;
    list-style: none;
}

.jbarm-checklist li {
    position: relative;
    padding-left: 2.1rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--jbarm-text);
}

.jbarm-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.08em;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background:
        var(--jbarm-red)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 7.8'/%3E%3C/svg%3E")
        center / 70% no-repeat;
}


/* 13. Contact page & form
   ========================================================================== */
.jbarm-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: var(--jbarm-gap);
}

.jbarm-contact-list {
    display: grid;
    gap: 1.75rem;
    list-style: none;
}

.jbarm-contact-list__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 1.1rem;
}

.jbarm-contact-list__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: var(--jbarm-radius);
    background: var(--jbarm-red);
    color: var(--jbarm-white);
}

.jbarm-contact-list__icon svg {
    width: 26px;
    height: 26px;
}

.jbarm-contact-list h3 {
    margin-bottom: 0.2rem;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.jbarm-contact-list p {
    margin: 0;
    font-size: 1.1rem;
}

.jbarm-contact-list a {
    font-weight: 600;
    color: var(--jbarm-text);
    text-decoration-color: var(--jbarm-red);
    text-decoration-thickness: 2px;
    overflow-wrap: anywhere;
}

.jbarm-contact-list a:hover {
    color: var(--jbarm-red);
}

.jbarm-contact-list .jbarm-contact-list__note {
    margin-top: 0.35rem;
    font-size: var(--jbarm-fs-small);
    color: var(--jbarm-text-muted);
}

.jbarm-map {
    margin-top: 2.25rem;
    border: 1px solid var(--jbarm-line);
    background: var(--jbarm-paper);
    box-shadow: var(--jbarm-shadow-sm);
}

.jbarm-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
    filter: grayscale(0.85) contrast(1.05);
}

/* Form card */
.jbarm-form {
    padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
    background: var(--jbarm-white);
    border: 1px solid var(--jbarm-line);
    border-top: 5px solid var(--jbarm-red);
    box-shadow: var(--jbarm-shadow);
}

.jbarm-form__intro {
    color: var(--jbarm-text-muted);
}

.jbarm-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.25rem;
    margin-top: 1.5rem;
}

.jbarm-field--full {
    grid-column: 1 / -1;
}

.jbarm-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--jbarm-text);
}

.jbarm-req {
    color: var(--jbarm-red);
    font-weight: 700;
}

.jbarm-field input,
.jbarm-field select,
.jbarm-field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 0.9rem;
    background: var(--jbarm-white);
    border: 1.5px solid #b9c0c7;
    border-radius: var(--jbarm-radius);
    font: inherit;
    font-size: 1rem;
    color: var(--jbarm-text);
    transition: border-color var(--jbarm-speed), box-shadow var(--jbarm-speed);
}

.jbarm-field textarea {
    min-height: 150px;
    resize: vertical;
}

.jbarm-field select {
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191e23' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 18px;
    cursor: pointer;
}

.jbarm-field input::placeholder,
.jbarm-field textarea::placeholder {
    color: #7b848d;
}

.jbarm-field input:hover,
.jbarm-field select:hover,
.jbarm-field textarea:hover {
    border-color: var(--jbarm-steel);
}

.jbarm-field input:focus-visible,
.jbarm-field select:focus-visible,
.jbarm-field textarea:focus-visible {
    outline: none;
    border-color: var(--jbarm-charcoal);
    box-shadow: 0 0 0 3px rgba(212, 3, 3, 0.28);
}

.jbarm-field [aria-invalid="true"] {
    border-color: var(--jbarm-red);
    background-color: #fff7f7;
}

.jbarm-field__error {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jbarm-red-dark);
}

.jbarm-field__error:empty {
    display: none;
}

/* Honeypot — hidden from people, visible to spam bots */
.jbarm-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.jbarm-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.jbarm-form__note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--jbarm-text-muted);
}

.jbarm-form button[type="submit"] {
    min-width: 200px;
}

.jbarm-form button[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.jbarm-form__status {
    margin-top: 1.25rem;
    padding: 0;
    font-weight: 600;
}

.jbarm-form__status:empty {
    display: none;
}

.jbarm-form__status.is-success,
.jbarm-form__status.is-error {
    padding: 1rem 1.15rem;
    border-left: 5px solid;
    border-radius: var(--jbarm-radius);
}

.jbarm-form__status.is-success {
    background: #eef7f0;
    border-color: #1e7a3a;
    color: #14532a;
}

.jbarm-form__status.is-error {
    background: #fff4f4;
    border-color: var(--jbarm-red);
    color: var(--jbarm-red-dark);
}

.jbarm-form__status a {
    color: inherit;
}


/* 14. Footer
   ========================================================================== */
.jbarm-footer {
    background: var(--jbarm-black);
    color: var(--jbarm-text-on-dark-muted);
    border-top: 5px solid var(--jbarm-red);
}

.jbarm-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.jbarm-footer__name {
    margin: 0 0 0.35rem;
    font-family: var(--jbarm-font-display);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--jbarm-white);
}

.jbarm-footer__name span {
    color: var(--jbarm-red-bright);
}

.jbarm-footer__tag {
    margin: 0;
    font-family: var(--jbarm-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.jbarm-footer__heading {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--jbarm-white);
}

.jbarm-footer__links {
    display: grid;
    gap: 0.35rem;
    list-style: none;
}

.jbarm-footer a {
    color: var(--jbarm-text-on-dark-muted);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.jbarm-footer a:hover {
    color: var(--jbarm-white);
    text-decoration: underline;
    text-decoration-color: var(--jbarm-red-bright);
}

.jbarm-footer__links a,
.jbarm-footer address a {
    display: inline-block;
    padding-block: 0.2rem;
}

.jbarm-footer address p {
    margin: 0 0 0.35rem;
}

.jbarm-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 1.25rem;
    font-size: 0.9rem;
    color: #9aa3ac;
}

.jbarm-footer__bottom p {
    margin: 0;
}


/* 15. Responsive
   ========================================================================== */

/* Laptop / small desktop */
@media (max-width: 1100px) {
    /* Three per row, last row centered; dividers only on the 5-across layout */
    .jbarm-clients__list {
        row-gap: 2.25rem;
    }

    .jbarm-clients__item {
        flex-basis: 33.333%;
    }

    .jbarm-clients__item + .jbarm-clients__item {
        border-left: 0;
    }
}

/* Tablet — navigation collapses to the menu button */
@media (max-width: 960px) {
    :root {
        --jbarm-header-h: 76px;
    }

    .jbarm-header__brand img {
        height: 56px;
    }

    /* Only collapse the menu when JavaScript is running; without JS
       the links simply wrap under the logo so they stay usable. */
    .jbarm-js .jbarm-nav-toggle {
        display: inline-flex;
    }

    .jbarm-js .jbarm-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--jbarm-charcoal);
        border-top: 4px solid var(--jbarm-red);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition:
            opacity var(--jbarm-speed) var(--jbarm-ease),
            transform var(--jbarm-speed) var(--jbarm-ease),
            visibility 0s linear var(--jbarm-speed);
        --jbarm-focus: var(--jbarm-white);
    }

    .jbarm-js .jbarm-header.is-open .jbarm-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition:
            opacity var(--jbarm-speed) var(--jbarm-ease),
            transform var(--jbarm-speed) var(--jbarm-ease),
            visibility 0s;
    }

    .jbarm-js .jbarm-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem var(--jbarm-gutter) 1.5rem;
    }

    .jbarm-js .jbarm-nav__list li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .jbarm-js .jbarm-nav__link {
        display: flex;
        align-items: center;
        min-height: 56px;
        padding: 0.75rem 0;
        font-size: 1.3rem;
        color: var(--jbarm-white);
    }

    .jbarm-js .jbarm-nav__link::after {
        left: 0;
        right: auto;
        bottom: 0.7rem;
        width: 40px;
    }

    .jbarm-js .jbarm-nav__link:hover {
        color: var(--jbarm-white);
    }

    .jbarm-js .jbarm-nav__cta {
        padding-top: 1.25rem;
    }

    .jbarm-js .jbarm-nav__list li.jbarm-nav__cta {
        border-top: 0;
    }

    .jbarm-js .jbarm-nav__cta .jbarm-btn {
        width: 100%;
        min-height: 54px;
    }

    /* No-JS fallback: let the links wrap */
    html:not(.jbarm-js) .jbarm-header__inner {
        flex-wrap: wrap;
        padding-block: 0.5rem;
    }

    html:not(.jbarm-js) .jbarm-nav__list {
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
    }

    /* Layout stacks */
    .jbarm-split,
    .jbarm-service__grid,
    .jbarm-contact__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .jbarm-split__media {
        order: -1;
        max-width: 720px;
    }

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

    .jbarm-values__item + .jbarm-values__item {
        border-left: 0;
    }

    .jbarm-values__item:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, 0.14);
    }

    .jbarm-values__item:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .jbarm-photo-band__inner {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
    }

    .jbarm-footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .jbarm-footer__brand {
        grid-column: 1 / -1;
    }

    .jbarm-subnav__list li {
        flex: 1 1 50%;
    }

    .jbarm-subnav__list li:nth-child(odd) a {
        border-left: 0;
    }

    .jbarm-subnav__list li:nth-child(n + 3) a {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Heavier, even overlay so hero copy stays readable when it
       spans the full width */
    .jbarm-hero--home {
        background-image:
            linear-gradient(90deg, rgba(8, 10, 12, 0.9) 0%, rgba(8, 10, 12, 0.66) 60%, rgba(8, 10, 12, 0.45) 100%),
            linear-gradient(0deg, rgba(8, 10, 12, 0.6) 0%, rgba(8, 10, 12, 0) 45%),
            url("../jbarmimages/jbarm-hero-home.jpg");
    }
}

/* Mobile */
@media (max-width: 600px) {
    :root {
        --jbarm-header-h: 70px;
        --jbarm-fs-body: 1rem;
    }

    .jbarm-header__brand img {
        height: 50px;
    }

    .jbarm-hero--home {
        min-height: 0;
        background-position: center, center, 72% center;
    }

    .jbarm-hero--page {
        min-height: 0;
    }

    .jbarm-hero__content {
        padding-block: 3.5rem 4rem;
    }

    .jbarm-btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .jbarm-btn-row .jbarm-btn,
    .jbarm-photo-band .jbarm-btn {
        width: 100%;
    }

    .jbarm-eyebrow {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
    }

    /* Hero eyebrow: drop the bar so the three services fit one line */
    .jbarm-hero .jbarm-eyebrow::before {
        display: none;
    }

    .jbarm-frame {
        padding: 0 12px 12px 0;
    }

    .jbarm-frame::before {
        inset: 12px 0 0 12px;
    }

    .jbarm-frame::after {
        width: 60px;
        height: 60px;
        border-width: 5px;
    }

    .jbarm-values__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .jbarm-values__item:nth-child(even) {
        border-left: 0;
    }

    .jbarm-values__item + .jbarm-values__item {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .jbarm-values__item {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 1.1rem;
        align-items: start;
        padding: 1.6rem 0;
        text-align: left;
    }

    .jbarm-values__icon {
        grid-row: span 2;
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .jbarm-values__item p {
        max-width: none;
        margin: 0;
    }

    .jbarm-clients__item {
        flex-basis: 50%;
        font-size: 1.05rem;
        padding-inline: 0.5rem;
    }

    .jbarm-clients__icon {
        width: 44px;
        height: 44px;
    }

    .jbarm-subnav__list a {
        min-height: 54px;
        font-size: 0.95rem;
        letter-spacing: 0.06em;
        padding-inline: 0.5rem;
    }

    .jbarm-service__media::before {
        top: -6px;
        left: -6px;
        width: 44px;
        height: 44px;
        border-width: 4px;
    }

    .jbarm-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .jbarm-form__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .jbarm-form button[type="submit"] {
        width: 100%;
    }

    .jbarm-map iframe {
        height: 240px;
    }

    .jbarm-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}


/* 16. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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