/* =============================================================
   capabilities.css — Capabilities 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
   ───────────────────────────────────────────────────────────── */
.cp-hero {
    position: relative;
    background: var(--c-black);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}
.cp-hero__img-bg {
    position: absolute;
    top: 0; right: 0;
    width: 58%; height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: block;
}
.cp-hero__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--c-black)              0%,
        var(--c-black)             40%,
        rgba(12,10,12,0.78)        55%,
        rgba(12,10,12,0.30)        75%,
        transparent               100%
    );
    z-index: 1;
}
.cp-hero__fade::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--c-black) 0%, transparent 100%);
}
.cp-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;
}
.cp-hero__body {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}
.cp-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;
}
.cp-hero__tag::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: var(--c-secondary);
    border-radius: 2px;
    flex-shrink: 0;
}
.cp-hero__title {
    font-size: 50px;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}
.cp-hero__title em {
    font-style: normal;
    color: var(--c-secondary) !important;
}
.cp-hero__sub {
    font-size: 15px;
    color: rgba(220,223,223,0.65);
    line-height: 1.8;
    max-width: 500px;
    margin: 18px 0 28px;
}
.cp-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.cp-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    background: rgba(176,206,90,0.10);
    border: 1px solid rgba(176,206,90,0.30);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-secondary);
}
.cp-hero__chip i { font-size: 13px; }
.cp-breadcrumb {
    display: flex;
    list-style: none;
    padding: 0; margin: 0;
}
.cp-breadcrumb li { font-size: 12px; color: rgba(220,223,223,0.40); }
.cp-breadcrumb li a { color: rgba(220,223,223,0.40); text-decoration: none; transition: color 0.2s; }
.cp-breadcrumb li a:hover { color: var(--c-secondary); }
.cp-breadcrumb li + li::before { content: ' › '; margin: 0 6px; }


/* ─────────────────────────────────────────────────────────────
   QUICK-NAV  —  dark bg
   ───────────────────────────────────────────────────────────── */
.cp-quicknav {
    background: var(--c-primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(176,206,90,0.25);
    overflow-x: auto;
}
.cp-quicknav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    list-style: none;
    padding: 0 40px; margin: 0;
    justify-content: safe center;
    white-space: nowrap;
}
.cp-quicknav__list a {
    display: inline-block;
    padding: 5px 11px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(220,223,223,0.65);
    text-decoration: none;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.cp-quicknav__list a:hover,
.cp-quicknav__list a.active {
    color: var(--c-secondary);
    background: rgba(176,206,90,0.10);
    text-decoration: none;
}
.cp-quicknav__list a.active {
    color: var(--c-secondary) !important;
    background: rgba(176,206,90,0.15) !important;
}


/* ─────────────────────────────────────────────────────────────
   CAPABILITY ROWS  —  alternating white / light
   ───────────────────────────────────────────────────────────── */
.cp-cap {
    padding: 90px 0;
    position: relative;
}
.cp-cap--white { background: var(--c-white); }
.cp-cap--light { background: #f5f5f5; }

/* Uniform row height across all capability sections */
.cp-cap .row { align-items: center; }

/* scroll-margin so sticky nav doesn't cover anchor */
.cp-cap[id] { scroll-margin-top: 64px; }

/* image column — fixed height so every block is the same */
.cp-cap__img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(12,10,12,0.12);
    height: 480px;
}
.cp-cap__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.cp-cap__img-wrap:hover img { transform: scale(1.03); }

/* green overlay tint removed at client request */
.cp-cap__img-wrap::after {
    content: none;
}

/* content column */
.cp-cap__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 10px;
}

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

.cp-cap__title {
    font-size: 32px;
    font-weight: 900 !important;
    color: var(--c-black) !important;
    line-height: 1.15;
    margin-bottom: 16px;
}
.cp-cap__title .hl { color: var(--c-secondary) !important; }

.cp-cap__body {
    font-size: 15px;
    color: var(--c-primary);
    line-height: 1.9;
    margin-bottom: 24px;
}

/* subsidiary brand lockup (e.g. Mercury Aircraft on metal fabrication) */
.cp-cap__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    margin-bottom: 24px;
    background: var(--c-white);
    border: 1px solid rgba(69,70,70,0.12);
    border-left: 3px solid var(--c-secondary);
    border-radius: 3px;
}
.cp-cap__brand-logo {
    flex: 0 0 86px;
    width: 86px;
    height: 60px;
    object-fit: contain;
}
.cp-cap__brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cp-cap__brand-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--c-black);
    letter-spacing: 0.02em;
}
.cp-cap__brand-meta {
    font-size: 12px;
    color: var(--c-primary);
    line-height: 1.6;
}
@media (max-width: 575px) {
    .cp-cap__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* key-point chips */
.cp-cap__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.cp-cap__point {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(176,206,90,0.10);
    border: 1px solid rgba(176,206,90,0.30);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-primary);
}
.cp-cap--light .cp-cap__point {
    background: rgba(255,255,255,0.65);
    border-color: rgba(69,70,70,0.18);
}
.cp-cap__point i {
    font-size: 12px;
    color: var(--c-secondary);
}

.cp-cap__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: gap 0.2s, border-color 0.2s;
    width: fit-content;
}
.cp-cap__link:hover {
    gap: 12px;
    border-color: var(--c-secondary);
    color: var(--c-secondary);
    text-decoration: none;
}

/* button group — Learn More + Get a Quote */
.cp-cap__ctas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

/* divider between rows */
.cp-cap + .cp-cap {
    border-top: 1px solid rgba(69,70,70,0.10);
}


/* ─────────────────────────────────────────────────────────────
   SUBPAGE — shared styles
   ───────────────────────────────────────────────────────────── */

/* Hero (reuses cp-hero with minor overrides) */
.cp-sub-hero { min-height: 380px; }

/* Feature cards — light bg */
.cp-sub-features {
    background: var(--c-light);
    padding: 80px 0;
}
.cp-sub-features__header {
    text-align: center;
    margin-bottom: 48px;
}
.cp-sub-features__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 10px;
}
.cp-sub-features__title {
    font-size: 30px;
    font-weight: 900 !important;
    color: var(--c-black) !important;
    line-height: 1.2;
    margin: 0;
}
.cp-sub-features__title .hl { color: var(--c-secondary) !important; }

.cp-sub-feat-card {
    background: var(--c-white);
    border-radius: 10px;
    border-top: 3px solid var(--c-secondary);
    padding: 32px 28px 28px;
    height: 100%;
    box-shadow: 0 3px 16px rgba(12,10,12,0.06);
    transition: transform 0.24s, box-shadow 0.24s;
}
.cp-sub-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(176,206,90,0.16);
}
.cp-sub-feat-card__icon {
    width: 50px; height: 50px;
    background: var(--c-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--c-primary);
    margin-bottom: 18px;
    transition: background 0.24s, color 0.24s;
}
.cp-sub-feat-card:hover .cp-sub-feat-card__icon {
    background: var(--c-secondary);
    color: var(--c-black);
}
.cp-sub-feat-card__title {
    font-size: 16px;
    font-weight: 900 !important;
    color: var(--c-black) !important;
    margin-bottom: 10px;
    line-height: 1.25;
}
.cp-sub-feat-card__text {
    font-size: 14px;
    color: var(--c-primary);
    line-height: 1.8;
    margin: 0;
}

/* Process steps — dark bg */
/* Step-by-step "how the work runs" section on each capability
   subpage — sits on the machining photo as a neutral stand-in for
   process, since the section is shared by all ten capabilities. */
.cp-sub-process {
    background:
        linear-gradient(
            rgba(12, 10, 12, 0.86),
            rgba(12, 10, 12, 0.86)
        ),
        url('../img/capabilities/cnc_machining.webp') center center / cover no-repeat,
        var(--c-black);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
/* green background glow removed at client request */
.cp-sub-process::before {
    content: none;
}
.cp-sub-process__header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}
.cp-sub-process__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 10px;
}
.cp-sub-process__title {
    font-size: 30px;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.2;
    margin: 0;
}

.cp-sub-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}
/* connecting line */
.cp-sub-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(176,206,90,0.35) 20%, rgba(176,206,90,0.35) 80%, transparent);
}

.cp-sub-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
    position: relative;
}
.cp-sub-step__num {
    width: 56px; height: 56px;
    background: rgba(176,206,90,0.12);
    border: 2px solid rgba(176,206,90,0.35);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--c-secondary);
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.cp-sub-step__title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 8px;
    line-height: 1.25;
}
.cp-sub-step__text {
    font-size: 12px;
    color: rgba(220,223,223,0.60);
    line-height: 1.7;
    margin: 0;
}

/* Related capabilities — white bg */
.cp-sub-related {
    background: var(--c-white);
    padding: 80px 0;
}
.cp-sub-related__header {
    text-align: center;
    margin-bottom: 48px;
}
.cp-sub-related__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 10px;
}
.cp-sub-related__title {
    font-size: 28px;
    font-weight: 900 !important;
    color: var(--c-black) !important;
    margin: 0;
}

.cp-rel-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(12,10,12,0.10);
    transition: transform 0.24s, box-shadow 0.24s;
    display: block;
    text-decoration: none;
}
.cp-rel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(176,206,90,0.18);
    text-decoration: none;
}
.cp-rel-card__img {
    width: 100%; height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.cp-rel-card:hover .cp-rel-card__img { transform: scale(1.05); }
/* Bottom-weighted so the card label and name stay legible now that the
   related-capability thumbnails are full-colour photography. */
.cp-rel-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,10,12,0.92) 0%, rgba(12,10,12,0.55) 55%, rgba(12,10,12,0.28) 100%);
}
.cp-rel-card__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 22px;
}
.cp-rel-card__label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 4px;
}
.cp-rel-card__name {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}
.cp-rel-card__arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-top: 6px;
    transition: gap 0.2s;
}
.cp-rel-card:hover .cp-rel-card__arrow { gap: 9px; }

/* Responsive subpage */
@media (max-width: 991px) {
    .cp-sub-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .cp-sub-steps::before { display: none; }
    .cp-sub-step:nth-child(n+4) { margin-top: 8px; }
}
@media (max-width: 767px) {
    .cp-sub-steps { grid-template-columns: repeat(2, 1fr); }
    .cp-sub-features, .cp-sub-process, .cp-sub-related { padding: 60px 0; }
}
@media (max-width: 480px) {
    .cp-sub-steps { grid-template-columns: 1fr; gap: 16px; }
    .cp-sub-step { text-align: center; }
    .cp-sub-step__num {
        width: 44px;
        height: 44px;
        font-size: 15px;
        margin: 0 auto 10px;
    }
    .cp-sub-step__title { font-size: 13px; }
    .cp-sub-step__text  { font-size: 12px; }
    .cp-sub-features, .cp-sub-process, .cp-sub-related { padding: 44px 0; }
    .cp-sub-feat-card { padding: 20px 16px; }
    .cp-sub-feat-card__title { font-size: 14px; }
}


/* ─────────────────────────────────────────────────────────────
   STATS BAR  —  primary dark bg
   ───────────────────────────────────────────────────────────── */
/* Shared by the capability pages, where the figures are square
   footage and capacity, and by the industry pages, where they are
   qualitative. Uses the general capabilities banner so it suits both
   rather than favouring one. Washed in brand grey rather than black
   so it keeps reading as a light band between the sections either
   side of it. */
.cp-stats-bar {
    background:
        linear-gradient(
            rgba(69, 70, 70, 0.88),
            rgba(69, 70, 70, 0.88)
        ),
        url('../img/capabilities/capabilities_banner.webp') center center / cover no-repeat,
        var(--c-primary);
}
.cp-stats-bar__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
}
.cp-stats-bar__divider {
    width: 1px;
    background: rgba(220,223,223,0.15);
    margin: 20px 0;
    flex-shrink: 0;
}
.cp-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 32px 20px;
}
.cp-stat-item__num {
    font-size: 40px;
    font-weight: 900;
    color: var(--c-secondary);
    line-height: 1;
    letter-spacing: -0.02em;
}
.cp-stat-item__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(220,223,223,0.60);
    text-align: center;
}


/* ─────────────────────────────────────────────────────────────
   CTA STRIP  —  black bg
   ───────────────────────────────────────────────────────────── */
/* Same CTA artwork as the homepage strip and the interior pre-footer
   CTA, so the call to action reads as one recurring element. */
.cp-cta {
    background:
        linear-gradient(
            rgba(12, 10, 12, 0.86),
            rgba(12, 10, 12, 0.86)
        ),
        url('../img/backgrounds/cta-banner.webp') center center / cover no-repeat,
        var(--c-black);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
/* green corner glow removed at client request */
.cp-cta::after {
    content: none;
}
.cp-cta__accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--c-secondary);
}
.cp-cta__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 10px;
}
.cp-cta__title {
    font-size: 34px;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 14px;
}
.cp-cta__sub {
    font-size: 15px;
    color: rgba(220,223,223,0.65);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}
.cp-cta__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}
.cp-cta__btns--left {
    justify-content: flex-start;
}
.cp-cta__btns-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
}
@media (max-width: 991px) {
    .cp-cta__btns { justify-content: center; }
    .cp-cta__btns--left { justify-content: center; }
    .cp-cta__btns-col { justify-content: center; margin-top: 0; margin-bottom: 28px; }
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .cp-hero__title  { font-size: 42px; }
    .cp-cap__title   { font-size: 26px; }
}

@media (max-width: 991px) {
    .cp-hero         { min-height: auto; }
    .cp-hero__body   { padding: 110px 0 70px; }
    .cp-hero__img-bg { width: 100%; opacity: 0.15; }
    .cp-hero__fade   { background: rgba(12,10,12,0.82); }
    .cp-hero__title  { font-size: 36px; }

    .cp-quicknav     { position: static; }
    .cp-quicknav__list { justify-content: flex-start; padding: 0 24px; }

    .cp-cap          { padding: 80px 0; }
    .cp-cap .row     { align-items: center; }
    .cp-cap__img-wrap { height: 360px; margin-bottom: 36px; }
    .cp-cap__content { padding: 0; }

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

@media (max-width: 767px) {
    .cp-hero__title    { font-size: 28px; }
    .cp-hero__chips    { gap: 6px; }
    .cp-cap__title     { font-size: 22px; }
    .cp-cap            { padding: 52px 0; }
    .cp-cap__img-wrap  { height: 280px; }
    .cp-stats-bar__inner { flex-wrap: wrap; }
    .cp-stats-bar__divider { display: none; }
    .cp-stat-item      { flex: 1 1 45%; border-bottom: 1px solid rgba(220,223,223,0.10); }
    .cp-stat-item__num { font-size: 30px; }
}
@media (max-width: 480px) {
    .cp-stat-item      { flex: 1 1 100%; padding: 18px 16px; }
    .cp-stat-item__num { font-size: 26px; }
    .cp-stat-item__label { font-size: 10px; letter-spacing: 0.10em; }
    .cp-cta__title     { font-size: 22px; }
    .cp-quicknav__list { gap: 2px; justify-content: flex-start; padding: 0 16px; }
    .cp-quicknav__list a { font-size: 9.5px; padding: 4px 8px; letter-spacing: 0.06em; }
}

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