/*
Theme Name: JuMing Original Replica
Theme URI: https://www.hbjuming.com/
Author: Hebei Juming Heavy Industry Co., Ltd
Description: Responsive industrial catalog theme for Hebei Juming conveyor components.
Version: 2.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: juming
*/

:root {
    --jm-navy-950: #061a2f;
    --jm-navy-900: #082748;
    --jm-navy-800: #0c3b69;
    --jm-blue-600: #1769aa;
    --jm-blue-100: #e9f3fb;
    --jm-orange: #f47b20;
    --jm-orange-dark: #d95e0b;
    --jm-ink: #172534;
    --jm-muted: #647384;
    --jm-line: #dce4eb;
    --jm-surface: #f5f8fa;
    --jm-white: #ffffff;
    --jm-shadow: 0 18px 45px rgba(6, 26, 47, .12);
    --jm-radius: 18px;
    --jm-max: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--jm-ink);
    background: var(--jm-white);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .jm-header { top: 32px; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--jm-blue-600); text-decoration: none; }
a:hover { color: var(--jm-orange-dark); }
button, input, textarea, select { font: inherit; }

.screen-reader-text,
.jm-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.jm-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--jm-white);
    transform: translateY(-160%);
}
.jm-skip-link:focus { transform: translateY(0); }

.jm-container {
    width: min(calc(100% - 40px), var(--jm-max));
    margin-inline: auto;
}

.jm-section { padding: 82px 0; }
.jm-section--soft { background: var(--jm-surface); }
.jm-section--dark { color: var(--jm-white); background: var(--jm-navy-950); }

.jm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--jm-orange-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.jm-eyebrow::before { width: 28px; height: 3px; content: ""; background: var(--jm-orange); }

.jm-section-heading { max-width: 760px; margin-bottom: 34px; }
.jm-section-heading--center { margin-inline: auto; text-align: center; }
.jm-section-heading--center .jm-eyebrow::before { display: none; }
.jm-section-heading h1,
.jm-section-heading h2 {
    margin: 0;
    color: var(--jm-navy-950);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.jm-section-heading p { margin: 18px 0 0; color: var(--jm-muted); font-size: 1.08rem; }

.jm-topbar { color: #dce9f5; background: var(--jm-navy-950); font-size: .88rem; }
.jm-topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.jm-topbar__links { display: flex; flex-wrap: wrap; gap: 22px; }
.jm-topbar a { color: inherit; }
.jm-topbar a:hover { color: var(--jm-white); }
.jm-topbar__note { color: #9fc3df; }

.jm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(8, 39, 72, .08);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
}
.jm-nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.jm-logo { flex: 0 0 auto; }
.jm-logo img { width: auto; height: 50px; }
.jm-nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.jm-nav__links > a {
    position: relative;
    color: var(--jm-navy-950);
    font-size: .93rem;
    font-weight: 750;
}
.jm-nav__links > a::after {
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 3px;
    content: "";
    background: var(--jm-orange);
    transition: width .2s ease;
}
.jm-nav__links > a:hover::after,
.jm-nav__links > a[aria-current="page"]::after { width: 100%; }
.jm-nav__links .jm-nav__cta { padding: 12px 18px; color: var(--jm-white); border-radius: 9px; background: var(--jm-orange); }
.jm-nav__links .jm-nav__cta::after { display: none; }
.jm-nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 8px; color: var(--jm-white); background: var(--jm-navy-900); cursor: pointer; }
.jm-nav__toggle span { display: block; width: 21px; height: 2px; margin: 4px auto; background: currentColor; }

.jm-hero {
    position: relative;
    min-height: min(720px, calc(100vh - 120px));
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--jm-white);
    background: var(--jm-navy-950) center / cover no-repeat;
}
.jm-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(4, 22, 41, .94) 0%, rgba(4, 27, 53, .78) 44%, rgba(6, 26, 47, .18) 78%);
}
.jm-hero::after {
    position: absolute;
    right: -130px;
    bottom: -210px;
    width: 560px;
    height: 560px;
    border: 80px solid rgba(244, 123, 32, .18);
    border-radius: 50%;
    content: "";
}
.jm-hero__inner { position: relative; z-index: 1; padding: 95px 0; }
.jm-hero__content { max-width: 720px; }
.jm-hero .jm-eyebrow { color: #ffd6b8; }
.jm-hero h1 { margin: 0; max-width: 680px; font-size: clamp(2.75rem, 6vw, 5.45rem); line-height: .98; letter-spacing: -.045em; }
.jm-hero p { max-width: 650px; margin: 25px 0 0; color: #d5e3ef; font-size: clamp(1.04rem, 1.8vw, 1.25rem); }
.jm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.jm-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--jm-white);
    background: var(--jm-orange);
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.jm-button:hover { color: var(--jm-white); background: var(--jm-orange-dark); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(244, 123, 32, .28); }
.jm-button--outline { color: var(--jm-white); border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .04); }
.jm-button--outline:hover { background: rgba(255, 255, 255, .13); }
.jm-button--navy { background: var(--jm-navy-900); }
.jm-button--navy:hover { background: var(--jm-navy-800); box-shadow: 0 12px 25px rgba(8, 39, 72, .2); }

.jm-hero__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 680px; margin-top: 58px; border-top: 1px solid rgba(255,255,255,.25); }
.jm-metric { padding: 22px 24px 0 0; }
.jm-metric strong { display: block; font-size: 1.75rem; line-height: 1.1; }
.jm-metric span { display: block; margin-top: 5px; color: #bed1e0; font-size: .9rem; }

.jm-grid { display: grid; gap: 24px; }
.jm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.jm-category-card,
.jm-product-card,
.jm-news-card,
.jm-info-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--jm-line);
    border-radius: var(--jm-radius);
    background: var(--jm-white);
    box-shadow: 0 8px 24px rgba(6, 26, 47, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.jm-category-card:hover,
.jm-product-card:hover,
.jm-news-card:hover,
.jm-info-card:hover { transform: translateY(-6px); border-color: rgba(23,105,170,.3); box-shadow: var(--jm-shadow); }

.jm-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8eef3; }
.jm-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.jm-product-card:hover .jm-card-media img,
.jm-news-card:hover .jm-card-media img { transform: scale(1.045); }
.jm-card-media__label { position: absolute; left: 14px; top: 14px; padding: 7px 10px; color: var(--jm-white); border-radius: 6px; background: rgba(8,39,72,.9); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.jm-card-body { padding: 22px; }
.jm-card-body h2,
.jm-card-body h3 { margin: 0; color: var(--jm-navy-950); font-size: 1.18rem; line-height: 1.32; }
.jm-card-body p { margin: 12px 0 0; color: var(--jm-muted); font-size: .94rem; }
.jm-card-link { display: inline-flex; margin-top: 17px; color: var(--jm-blue-600); font-weight: 800; }
.jm-card-link::after { margin-left: 8px; content: "→"; }

.jm-about-split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.jm-about-media { position: relative; }
.jm-about-media img { width: 100%; min-height: 460px; object-fit: cover; border-radius: 24px; box-shadow: var(--jm-shadow); }
.jm-about-badge { position: absolute; right: -22px; bottom: 30px; width: 175px; padding: 24px; color: var(--jm-white); border-radius: 18px; background: var(--jm-orange); box-shadow: 0 18px 35px rgba(244, 123, 32, .28); }
.jm-about-badge strong { display: block; font-size: 2rem; line-height: 1; }
.jm-about-badge span { display: block; margin-top: 7px; font-weight: 700; }
.jm-feature-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.jm-feature-list li { position: relative; padding-left: 32px; color: var(--jm-ink); font-weight: 650; }
.jm-feature-list li::before { position: absolute; left: 0; top: .2em; display: grid; width: 21px; height: 21px; place-items: center; content: "✓"; color: var(--jm-white); border-radius: 50%; background: var(--jm-orange); font-size: .74rem; }

.jm-industries { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,.15); border-radius: var(--jm-radius); overflow: hidden; }
.jm-industry { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.jm-industry:last-child { border-right: 0; }
.jm-industry strong { font-size: .9rem; }
.jm-industry span { color: #8bc1e9; font-size: 1.7rem; font-weight: 900; }

.jm-cta { position: relative; overflow: hidden; padding: 56px; color: var(--jm-white); border-radius: 24px; background: linear-gradient(125deg, var(--jm-navy-900), var(--jm-blue-600)); box-shadow: var(--jm-shadow); }
.jm-cta::after { position: absolute; right: -90px; top: -120px; width: 340px; height: 340px; border: 55px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.jm-cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.jm-cta h2 { margin: 0; max-width: 720px; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.12; }
.jm-cta p { margin: 12px 0 0; color: #d5e6f3; }

.jm-page-hero { padding: 76px 0; color: var(--jm-white); background: linear-gradient(120deg, var(--jm-navy-950), var(--jm-navy-800)); }
.jm-breadcrumbs { margin-bottom: 18px; color: #a9c4d8; font-size: .86rem; }
.jm-breadcrumbs a { color: #d9e8f3; }
.jm-page-hero h1 { margin: 0; max-width: 850px; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.04em; }
.jm-page-hero p { max-width: 760px; margin: 18px 0 0; color: #c4d8e7; font-size: 1.08rem; }

.jm-catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 36px; }
.jm-sidebar { position: sticky; top: 115px; padding: 24px; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); background: var(--jm-surface); }
.jm-sidebar h2 { margin: 0 0 14px; color: var(--jm-navy-950); font-size: 1.05rem; }
.jm-sidebar ul { margin: 0; padding: 0; list-style: none; }
.jm-sidebar li + li { border-top: 1px solid var(--jm-line); }
.jm-sidebar a { display: block; padding: 11px 2px; color: var(--jm-ink); font-size: .92rem; font-weight: 650; }
.jm-sidebar a:hover { color: var(--jm-orange-dark); }

.jm-pagination { margin-top: 40px; }
.jm-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; margin: 3px; padding: 0 10px; border: 1px solid var(--jm-line); border-radius: 7px; }
.jm-pagination .current { color: var(--jm-white); border-color: var(--jm-navy-900); background: var(--jm-navy-900); }

.jm-product-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 74px); align-items: start; }
.jm-gallery__main { overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); background: var(--jm-surface); }
.jm-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.jm-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 12px; }
.jm-gallery__thumb { padding: 0; overflow: hidden; aspect-ratio: 1; border: 2px solid transparent; border-radius: 8px; background: var(--jm-surface); cursor: pointer; }
.jm-gallery__thumb.is-active { border-color: var(--jm-orange); }
.jm-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.jm-product-summary h1 { margin: 0; color: var(--jm-navy-950); font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.04em; }
.jm-product-summary__category { display: inline-flex; margin-bottom: 18px; padding: 7px 10px; color: var(--jm-blue-600); border-radius: 6px; background: var(--jm-blue-100); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.jm-product-summary p { color: var(--jm-muted); font-size: 1.05rem; }
.jm-product-points { display: grid; gap: 10px; margin: 26px 0; padding: 0; list-style: none; }
.jm-product-points li { display: flex; gap: 10px; color: var(--jm-ink); font-weight: 650; }
.jm-product-points li::before { color: var(--jm-orange); content: "◆"; font-size: .72rem; margin-top: .3em; }

.jm-content { color: #2b3a49; }
.jm-content > *:first-child { margin-top: 0; }
.jm-content h2, .jm-content h3 { color: var(--jm-navy-950); line-height: 1.25; }
.jm-content h2 { margin-top: 2em; font-size: 1.75rem; }
.jm-content h3 { margin-top: 1.6em; }
.jm-content p { margin: 0 0 1.05em; }
.jm-content img { margin: 28px auto; border-radius: 12px; }
.jm-content table { width: 100%; border-collapse: collapse; }
.jm-content th, .jm-content td { padding: 12px; border: 1px solid var(--jm-line); text-align: left; }
.jm-content .faq { margin-top: 42px; padding: 30px; border-radius: var(--jm-radius); background: var(--jm-surface); }
.jm-content .faq p { padding: 12px 0; border-bottom: 1px solid var(--jm-line); }

.jm-article-shell { display: grid; grid-template-columns: minmax(0, 820px) 300px; justify-content: space-between; gap: 55px; }
.jm-article-meta { margin: 10px 0 26px; color: var(--jm-muted); }

.jm-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.jm-contact-panel { padding: 34px; color: var(--jm-white); border-radius: var(--jm-radius); background: var(--jm-navy-950); }
.jm-contact-panel h2 { margin-top: 0; font-size: 1.65rem; }
.jm-contact-list { display: grid; gap: 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.jm-contact-list strong { display: block; color: #8fc9ef; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.jm-contact-list a, .jm-contact-list span { display: block; margin-top: 4px; color: var(--jm-white); }
.jm-inquiry-form { padding: 34px; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); background: var(--jm-white); box-shadow: var(--jm-shadow); }
.jm-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.jm-inquiry-form label { display: block; color: var(--jm-navy-950); font-size: .88rem; font-weight: 750; }
.jm-inquiry-form input,
.jm-inquiry-form textarea { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #cbd6df; border-radius: 8px; color: var(--jm-ink); background: #fbfcfd; }
.jm-inquiry-form textarea { resize: vertical; }
.jm-inquiry-form > label { margin-top: 18px; }
.jm-inquiry-form .jm-button { margin-top: 20px; }
.jm-form-success { margin-bottom: 18px; padding: 15px 18px; color: #164c30; border: 1px solid #a9dec0; border-radius: 8px; background: #eaf8f0; }

.jm-footer { color: #b8c8d6; background: var(--jm-navy-950); }
.jm-footer__main { display: grid; grid-template-columns: 1.25fr .7fr .7fr 1fr; gap: 50px; padding: 70px 0 52px; }
.jm-footer__logo { width: 210px; filter: brightness(0) invert(1); }
.jm-footer p { max-width: 390px; }
.jm-footer h2 { margin: 0 0 16px; color: var(--jm-white); font-size: 1rem; }
.jm-footer ul { margin: 0; padding: 0; list-style: none; }
.jm-footer li + li { margin-top: 9px; }
.jm-footer a { color: #b8c8d6; }
.jm-footer a:hover { color: var(--jm-white); }
.jm-footer__bottom { padding: 19px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }
.jm-footer__bottom-inner { display: flex; justify-content: space-between; gap: 20px; }

.jm-floating-contact { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 9px; }
.jm-floating-contact a { display: grid; width: 48px; height: 48px; place-items: center; color: var(--jm-white); border-radius: 50%; background: var(--jm-orange); box-shadow: 0 10px 24px rgba(6,26,47,.22); font-weight: 900; }
.jm-floating-contact a:first-child { background: #24a85a; }

.jm-empty { padding: 40px; text-align: center; border: 1px dashed #b9c7d2; border-radius: var(--jm-radius); background: var(--jm-surface); }

@media (max-width: 1050px) {
    .jm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jm-industries { grid-template-columns: repeat(3, 1fr); }
    .jm-industry:nth-child(3) { border-right: 0; }
    .jm-industry:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.12); }
    .jm-footer__main { grid-template-columns: 1.2fr .8fr .8fr; }
    .jm-footer__main > :last-child { grid-column: 1 / -1; }
    .jm-catalog-layout { grid-template-columns: 230px minmax(0, 1fr); }
}

@media (max-width: 860px) {
    body.admin-bar .jm-header { top: 46px; }
    .jm-topbar__note { display: none; }
    .jm-nav { min-height: 72px; }
    .jm-logo img { height: 43px; }
    .jm-nav__toggle { display: block; }
    .jm-nav__links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        align-items: stretch;
        padding: 20px;
        border-top: 1px solid var(--jm-line);
        background: var(--jm-white);
        box-shadow: 0 18px 30px rgba(6,26,47,.1);
    }
    .jm-nav__links.is-open { display: grid; }
    .jm-nav__links > a { padding: 8px 4px; }
    .jm-nav__links > a::after { display: none; }
    .jm-nav__links .jm-nav__cta { text-align: center; }
    .jm-about-split,
    .jm-product-hero,
    .jm-contact-grid,
    .jm-article-shell { grid-template-columns: 1fr; }
    .jm-about-media { order: 2; }
    .jm-about-badge { right: 18px; }
    .jm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jm-catalog-layout { grid-template-columns: 1fr; }
    .jm-sidebar { position: static; }
    .jm-article-shell .jm-sidebar { display: none; }
    .jm-cta__inner { display: block; }
    .jm-cta .jm-button { margin-top: 24px; }
}

@media (max-width: 620px) {
    .jm-container { width: min(calc(100% - 28px), var(--jm-max)); }
    .jm-section { padding: 60px 0; }
    .jm-topbar { display: none; }
    .jm-hero { min-height: 650px; }
    .jm-hero__metrics { grid-template-columns: 1fr; }
    .jm-metric { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
    .jm-grid--4,
    .jm-grid--3 { grid-template-columns: 1fr; }
    .jm-industries { grid-template-columns: repeat(2, 1fr); }
    .jm-industry:nth-child(n) { border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
    .jm-industry:nth-child(2n) { border-right: 0; }
    .jm-industry:nth-last-child(-n+2) { border-bottom: 0; }
    .jm-about-media img { min-height: 340px; }
    .jm-about-badge { width: 145px; padding: 18px; }
    .jm-cta { padding: 34px 26px; }
    .jm-page-hero { padding: 58px 0; }
    .jm-form-grid { grid-template-columns: 1fr; }
    .jm-inquiry-form, .jm-contact-panel { padding: 24px; }
    .jm-footer__main { grid-template-columns: 1fr; gap: 34px; }
    .jm-footer__main > :last-child { grid-column: auto; }
    .jm-footer__bottom-inner { display: block; }
    .jm-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}
