/* Industry pages (/industries/*), scoped under .mf. Loaded after home.css and solution.css. */

.mf-hero { background: linear-gradient(120deg, var(--hp-navy) 0%, var(--hp-blue-dark) 60%, var(--hp-blue) 100%); color: #fff; padding: 28px 0 56px; }
.mf-hero__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 16px; }
.mf-hero__lead { font-size: 1.08rem; color: rgba(255, 255, 255, .88); max-width: 640px; margin-bottom: 20px; }
.mf-hero__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mf-hero__facts li { color: rgba(255, 255, 255, .92); }
.mf-hero__facts i { color: var(--hp-gold); margin-right: 8px; }

/* The plant, left to right: a numbered flow rather than a card grid */
.mf-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.mf-flow::before { content: ""; position: absolute; top: 22px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--hp-gold) 0 10px, transparent 10px 18px); }
.mf-flow__step { position: relative; padding: 0 14px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.mf-flow__num { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--hp-blue); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 6px #fff; }
.mf-flow__icon { margin: 16px 0 8px; font-size: 1.5rem; color: var(--hp-blue); }
.mf-flow__step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.mf-flow__step p { font-size: .9rem; color: var(--hp-muted); margin-bottom: 10px; flex: 1; }
.mf-flow__step a { font-size: .85rem; font-weight: 600; color: var(--hp-blue); text-decoration: none; }
.mf-flow__step a:hover { text-decoration: underline; }

/* Case studies: problem first, then results */
.mf-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mf-case { background: #fff; border: 1px solid var(--hp-line); border-top: 4px solid var(--hp-gold); border-radius: var(--hp-radius); padding: 22px; display: flex; flex-direction: column; }
.mf-case__tag { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hp-blue); margin-bottom: 8px; }
.mf-case h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 10px; }
.mf-case h3 a { color: var(--hp-ink); text-decoration: none; }
.mf-case h3 a:hover { color: var(--hp-blue); }
.mf-case__problem { font-size: .93rem; color: #33434f; }
.mf-case ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; flex: 1; }
.mf-case li { font-size: .93rem; color: #33434f; }
.mf-case li i { color: var(--hp-blue); margin-right: 6px; }

.mf-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mf-logos li { border: 1px solid var(--hp-line); border-radius: 10px; background: #fff; height: 84px; display: grid; place-items: center; padding: 12px; }
.mf-logos img { max-height: 54px; max-width: 100%; object-fit: contain; }

.mf-hw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mf-hw a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); text-decoration: none; }
.mf-hw strong { color: var(--hp-ink); }
.mf-hw span { grid-column: 1; color: var(--hp-muted); font-size: .9rem; }
.mf-hw i { grid-column: 2; grid-row: 1 / 3; color: var(--hp-blue); }
.mf-hw a:hover { border-color: var(--hp-blue); }

@media (max-width: 1199px) {
    .mf-flow { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
    .mf-flow::before { display: none; }
}
@media (max-width: 991px) {
    .mf-cases { grid-template-columns: 1fr; }
    .mf-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
    .mf-flow { grid-template-columns: 1fr; }
    .mf-flow__step { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: flex-start; gap: 0 14px; padding: 0; }
    .mf-flow__icon { display: none; }
    .mf-flow__step h3, .mf-flow__step p, .mf-flow__step a { flex-basis: calc(100% - 58px); margin-left: 58px; }
    .mf-flow__step h3 { margin-top: -38px; }
    .mf-logos { grid-template-columns: repeat(2, 1fr); }
    .mf-hw { grid-template-columns: 1fr; }
}
