/* =============================================================
   history.css — Our History page · Mercury Integrated Manufacturing
   Brand: primary #454646 · secondary #b0ce5a · light #dcdfdf
          white #ffffff · black #0c0a0c
   Rule:  dark bg → light text · light bg → dark text
   ============================================================= */

:root {
    --c-primary:   #454646;
    --c-secondary: #b0ce5a;
    --c-light:     #dcdfdf;
    --c-white:     #ffffff;
    --c-black:     #0c0a0c;
}


/* ─────────────────────────────────────────────────────────────
   HERO  —  compact dark banner with background image
   ───────────────────────────────────────────────────────────── */
.hs-hero {
    position: relative;
    background: var(--c-black);
    overflow: hidden;
    min-height: 540px;
    display: flex;
    align-items: center;
}

.hs-hero__img-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hs-hero__fade {
    display: none;
}

/* Modifier: 44% black layer over the hero image so the heading and
   body copy read cleanly against the photography. */
.hs-hero--dark .hs-hero__fade {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(12, 10, 12, 0.44);
    z-index: 1;
}

/* Modifier: keeps the photography visible and leans on a directional
   scrim plus a text halo for contrast, instead of a flat black wash. */
/* Kept in step with .ph-hero--bright in page-hero.css. The image had no
   opacity of its own here, so the fade alone was carrying the contrast
   and the 11px green eyebrow sat at 3.9:1. Same treatment as every other
   hero now: white 14.3:1, subcopy 9.3:1, eyebrow 8.1:1. */
.hs-hero--bright .hs-hero__img-bg {
    opacity: 0.58;
}

.hs-hero--bright .hs-hero__fade {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 10, 12, 0.68) 0%,
        rgba(12, 10, 12, 0.52) 60%,
        rgba(12, 10, 12, 0.62) 100%
    );
    z-index: 1;
}

.hs-hero--bright .hs-hero__tag,
.hs-hero--bright .hs-hero__title,
.hs-hero--bright .hs-hero__sub {
    text-shadow:
        0 1px 2px rgba(12, 10, 12, 0.55),
        0 2px 12px rgba(12, 10, 12, 0.45);
}

.hs-hero__accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--c-secondary) 30%,
        var(--c-secondary) 70%,
        transparent
    );
    z-index: 2;
}

.hs-hero__body {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

.hs-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 18px;
}
.hs-hero__tag::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: var(--c-secondary);
    border-radius: 2px;
    flex-shrink: 0;
}

.hs-hero__title {
    font-size: 50px;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}
.hs-hero__title em {
    font-style: normal;
    color: var(--c-secondary) !important;
}

.hs-hero__sub {
    font-size: 15px;
    /* Solid white. Was rgba(220,223,223,0.92), itself raised from 0.65 —
       body copy at this size needs 4.5:1. */
    color: #ffffff;
    line-height: 1.8;
    max-width: 480px;
    margin: 18px 0 28px;
}

.hs-hero__chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 32px;
    white-space: nowrap;
}
.hs-hero__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(176, 206, 90, 0.50);
    border-radius: 3px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-secondary);
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hs-breadcrumb {
    display: flex;
    list-style: none;
    padding: 0; margin: 0;
}
.hs-breadcrumb li {
    font-size: 12px;
    color: rgba(220, 223, 223, 0.40);
}
.hs-breadcrumb li a {
    color: rgba(220, 223, 223, 0.40);
    text-decoration: none;
    transition: color 0.2s;
}
.hs-breadcrumb li a:hover     { color: var(--c-secondary); }
.hs-breadcrumb li + li::before { content: ' › '; margin: 0 6px; }


/* ─────────────────────────────────────────────────────────────
   INTRO  —  white bg, two-column
   ───────────────────────────────────────────────────────────── */
.hs-intro {
    background: var(--c-white);
    padding: 90px 0;
}

.hs-intro__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 14px;
}

.hs-intro__title {
    font-size: 34px;
    font-weight: 900 !important;
    color: var(--c-black) !important;
    line-height: 1.18;
    margin-bottom: 20px;
}
.hs-intro__title .hl { color: var(--c-secondary) !important; }

.hs-intro__body {
    font-size: 15px;
    color: var(--c-primary);
    line-height: 1.9;
    margin-bottom: 16px;
}
.hs-intro__body:last-of-type { margin-bottom: 0; }

.hs-intro__img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(12, 10, 12, 0.14);
    height: 100%;
    min-height: 380px;
}
.hs-intro__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* green overlay tint removed at client request */
.hs-intro__img-wrap::after {
    content: none;
}
.hs-intro__img-badge {
    position: absolute;
    bottom: 22px; right: 22px;
    background: var(--c-secondary);
    color: var(--c-black);
    padding: 16px 22px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(176, 206, 90, 0.40);
    z-index: 2;
}
.hs-intro__img-badge__num {
    display: block;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    color: var(--c-black);
}
.hs-intro__img-badge__text {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    margin-top: 4px;
    color: var(--c-black);
}


/* ─────────────────────────────────────────────────────────────
   STATS BAR  —  primary dark bg → light text
   ───────────────────────────────────────────────────────────── */
.hs-stats-bar {
    background: var(--c-primary);
}
.hs-stats-bar__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
}
.hs-stats-bar__divider {
    width: 1px;
    background: rgba(220, 223, 223, 0.15);
    margin: 20px 0;
    flex-shrink: 0;
}
.hs-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 32px 20px;
}
.hs-stat-item__num {
    font-size: 40px;
    font-weight: 900;
    color: var(--c-secondary);
    line-height: 1;
    letter-spacing: -0.02em;
}
.hs-stat-item__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(220, 223, 223, 0.60);
}


/* ─────────────────────────────────────────────────────────────
   LEGACY TEXT SECTION  —  white bg, centered
   ───────────────────────────────────────────────────────────── */
.hs-legacy-section {
    background: var(--c-white);
    padding: 80px 0 72px;
}

.hs-legacy-title {
    font-size: 36px;
    font-weight: 900 !important;
    color: var(--c-black) !important;
    line-height: 1.18;
    margin-bottom: 28px;
}
.hs-legacy-title .hl { color: var(--c-secondary) !important; }

.hs-legacy-body {
    font-size: 15px;
    color: var(--c-primary);
    line-height: 1.9;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hs-legacy-body:last-of-type { margin-bottom: 0; }

@media (max-width: 767px) {
    .hs-legacy-title { font-size: 26px; }
    .hs-legacy-section { padding: 60px 0 52px; }
}


/* ─────────────────────────────────────────────────────────────
   TIMELINE SECTION  —  light bg
   ───────────────────────────────────────────────────────────── */
.hs-timeline-section {
    background: var(--c-light);
    padding: 100px 0 80px;
}

.hs-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}
.hs-section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 12px;
}
.hs-section-title {
    font-size: 36px;
    font-weight: 900 !important;
    color: var(--c-black) !important;
    line-height: 1.18;
    margin-bottom: 0;
}
.hs-section-title .hl { color: var(--c-secondary) !important; }


/* ── vertical spine ── */
.hs-timeline {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}
.hs-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--c-secondary) 5%,
        var(--c-secondary) 95%,
        transparent 100%
    );
    transform: translateX(-50%);
}

/* ── timeline item ── */
.hs-tl-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 48px);
    position: relative;
    margin-bottom: 56px;
}
.hs-tl-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 48px);
}
.hs-tl-item:last-child { margin-bottom: 0; }

/* year badge on the spine */
.hs-tl-item__year-badge {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    background: var(--c-secondary);
    color: var(--c-black);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 3;
    box-shadow: 0 2px 12px rgba(176, 206, 90, 0.35);
}

/* dot above / below the badge */
.hs-tl-item__dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 14px; height: 14px;
    background: var(--c-secondary);
    border-radius: 50%;
    border: 3px solid var(--c-light);
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(176, 206, 90, 0.25);
}

/* card */
.hs-tl-card {
    background: var(--c-white);
    border-radius: 10px;
    border-top: 3px solid var(--c-secondary);
    padding: 28px 30px 26px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(12, 10, 12, 0.07);
    transition: box-shadow 0.24s, transform 0.24s;
    position: relative;
}
.hs-tl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(176, 206, 90, 0.16);
}

/* connector arrow — right-side items point right */
.hs-tl-item:nth-child(odd) .hs-tl-card::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 26px;
    width: 0; height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 10px solid var(--c-white);
}

/* connector arrow — left-side items point left */
.hs-tl-item:nth-child(even) .hs-tl-card::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 26px;
    width: 0; height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 10px solid var(--c-white);
}

.hs-tl-card__era {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 8px;
}

.hs-tl-card__title {
    font-size: 18px;
    font-weight: 900 !important;
    color: var(--c-black) !important;
    line-height: 1.25;
    margin-bottom: 10px;
}

.hs-tl-card__text {
    font-size: 14px;
    color: var(--c-primary);
    line-height: 1.8;
    margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   CTA STRIP  —  black bg → light text
   ───────────────────────────────────────────────────────────── */
.hs-cta {
    background: var(--c-black);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
/* green corner glow removed at client request */
.hs-cta::after {
    content: none;
}
.hs-cta__accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--c-secondary);
}
.hs-cta__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 10px;
}
.hs-cta__title {
    font-size: 34px;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 14px;
}
.hs-cta__sub {
    font-size: 15px;
    color: rgba(220, 223, 223, 0.65);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}
.hs-cta__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .hs-hero__title    { font-size: 42px; }
    .hs-section-title  { font-size: 30px; }
}

@media (max-width: 991px) {
    .hs-hero           { min-height: auto; }
    .hs-hero__body     { padding: 110px 0 70px; }
    .hs-hero__img-bg   { width: 100%; }
    .hs-hero__title    { font-size: 36px; }

    .hs-intro          { padding: 70px 0; }
    .hs-intro__img-wrap { min-height: 280px; margin-top: 36px; }

    /* collapse timeline to single-column */
    .hs-timeline::before { left: 18px; transform: none; }
    .hs-tl-item,
    .hs-tl-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 60px;
    }
    .hs-tl-item__dot        { left: 12px; transform: none; }
    .hs-tl-item__year-badge { left: 36px; transform: none; top: -8px; }
    .hs-tl-card             { max-width: 100%; }
    .hs-tl-item:nth-child(odd) .hs-tl-card::after,
    .hs-tl-item:nth-child(even) .hs-tl-card::after { display: none; }

    .hs-cta__title     { font-size: 26px; }
}

@media (max-width: 767px) {
    .hs-hero__title    { font-size: 28px; }
    .hs-section-title  { font-size: 24px; }
    .hs-intro__title   { font-size: 26px; }
    .hs-stats-bar__inner { flex-wrap: wrap; }
    .hs-stats-bar__divider { display: none; }
    .hs-stat-item      { flex: 1 1 45%; border-bottom: 1px solid rgba(220,223,223,0.10); }
    .hs-stat-item__num { font-size: 30px; }
    .hs-cta__title     { font-size: 22px; }
    .hs-timeline-section { padding: 70px 0 60px; }
    .hs-section-header  { margin-bottom: 52px; }
}

@media (max-width: 480px) {
    .hs-hero__title    { font-size: 24px; }
    .hs-hero__chips    { display: none; }
}

/* =============================================================
   HISTORY HERO — image framing
   The archive photo (1921x1081) carries its most distinctive
   element, the Army-Navy "E" pennant, in the top ~8% of the frame.
   In a hero roughly 540px tall, object-fit: cover shows only the
   middle band, which centred begins around 17% down and cuts the
   pennant off completely.
   Anchoring object-position to the top brings the flag and the
   full roofline into view.
   Scoped by virtue of history.css loading on this page only.
   ============================================================= */
.hs-hero__img-bg {
    object-position: center top;
}
