/* ============================================================
   CNC Materials Hub — page styles (external, scoped)
   Container class: .gcmat-hub  (100% scope isolation)
   Deploy to: https://www.xmgoldcattle.com/assets/css/cnc-materials-guide.css
   WordPress/Elementor port: link this file; do NOT paste <style> inline.
   ============================================================ */
.gcmat-hub{
  --blue:#0052cc; --blue-d:#003a8c; --navy:#0f2747; --ink:#1f2d3d; --muted:#5b6b7f;
  --line:#e2e8f0; --bg:#f5f8fc; --card:#ffffff; --accent:#00a3c4; --good:#0a7d4d; --warn:#b54708; --soft:#e7f0ff;
}
.gcmat-hub *{box-sizing:border-box}
.gcmat-hub a{color:var(--blue);text-decoration:none}
.gcmat-hub a:hover{text-decoration:underline}
.gcmat-hub img{max-width:100%}
.gcmat-hub{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#fff;line-height:1.65;font-size:16px;padding-bottom:60px}
.gcmat-hub .wrap{max-width:1140px;margin:0 auto;padding:0 20px}
.gcmat-hub section{padding:46px 0;border-bottom:1px solid var(--line)}
.gcmat-hub h2{font-size:28px;margin:0 0 8px;color:var(--navy);font-weight:800;position:relative;padding-left:14px;line-height:1.25}
.gcmat-hub h2:before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:5px;border-radius:3px;background:linear-gradient(180deg,var(--blue),var(--accent))}
.gcmat-hub h3{font-size:20px;margin:26px 0 10px;color:var(--blue-d);font-weight:700}
.gcmat-hub p{margin:0 0 16px;max-width:920px}
.gcmat-hub .intro{font-size:16.5px;color:var(--ink)}

/* ---------- HERO (answer-first) ---------- */
.gcmat-hub .hero{background:linear-gradient(135deg,#0f2747 0%,#143a6b 55%,#0052cc 120%);color:#fff;padding:54px 0 46px}
.gcmat-hub .hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:40px;align-items:center}
.gcmat-hub .eyebrow{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:#9cc3ff;font-weight:700;margin-bottom:14px}
.gcmat-hub .hero h2{font-size:40px;line-height:1.14;margin:0 0 16px;font-weight:800;color:#ffffff;}
.gcmat-hub .hero .lead{font-size:17px;color:#dbe7f7;margin:0 0 22px}
.gcmat-hub .tags{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.gcmat-hub .tag{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.22);padding:7px 13px;border-radius:999px;font-size:13.5px;font-weight:600;color:#eaf2ff}
.gcmat-hub .hero-cta{display:flex;flex-wrap:wrap;gap:12px}
.gcmat-hub .visual{position:relative;border-radius:14px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.28)}
.gcmat-hub .visual img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}

/* ---------- BUTTONS ---------- */
.gcmat-hub .btn{display:inline-block;padding:13px 22px;border-radius:8px;font-weight:700;font-size:15px;cursor:pointer;border:2px solid transparent;font-family:inherit}
.gcmat-hub .btn--blue{background:var(--blue);color:#fff;border-color:var(--blue)}
.gcmat-hub .btn--blue:hover{background:var(--blue-d);border-color:var(--blue-d);text-decoration:none}
.gcmat-hub .btn--white{background:#fff;color:var(--navy);border-color:#fff}
.gcmat-hub .btn--white:hover{background:#eaf2ff;text-decoration:none}
.gcmat-hub .btn--ghost{background:transparent;color:#eaf2ff;border:2px solid rgba(255,255,255,.5)}
.gcmat-hub .btn--ghost:hover{border-color:#fff;text-decoration:none}

/* ---------- ANSWER-FIRST BLOCK ---------- */
.gcmat-hub .answer{background:var(--soft);border-left:5px solid var(--blue);border-radius:0 12px 12px 0;padding:20px 24px;margin:0 0 8px;font-size:17px;color:var(--navy)}
.gcmat-hub .answer strong{color:var(--blue-d)}

/* ---------- CAPABILITY MATRIX (centerpiece) ---------- */
.gcmat-hub .matrix-wrap{overflow-x:auto;margin:6px 0 0}
.gcmat-hub table.matrix{border-collapse:collapse;width:100%;min-width:720px;font-size:14.5px;background:#fff}
.gcmat-hub table.matrix th{background:var(--navy);color:#fff;text-align:left;padding:12px 14px;font-weight:700;font-size:13.5px}
.gcmat-hub table.matrix th.ctr{text-align:center}
.gcmat-hub table.matrix td{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
.gcmat-hub table.matrix td.ctr{text-align:center}
.gcmat-hub table.matrix tbody tr:nth-child(even){background:#f8fafd}
.gcmat-hub table.matrix tbody tr:hover{background:#eef4fc}
.gcmat-hub .mat-name{font-weight:700;color:var(--navy)}
.gcmat-hub .mat-cat{font-size:12px;color:var(--muted);display:block;font-weight:600}
.gcmat-hub .yes{color:var(--good);font-weight:800}
.gcmat-hub .no{color:#94a3b8;font-weight:700}
.gcmat-hub .diff{font-weight:700}
.gcmat-hub .diff.low{color:var(--good)}
.gcmat-hub .diff.med{color:#b8860b}
.gcmat-hub .diff.high{color:var(--warn)}

/* ---------- PRIORITY SELECTOR ---------- */
.gcmat-hub .prio{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:10px}
.gcmat-hub .prio-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px 18px;transition:transform .18s,box-shadow .18s}
.gcmat-hub .prio-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,39,71,.10)}
.gcmat-hub .prio-card .q{font-weight:700;color:var(--navy);font-size:15.5px;margin-bottom:8px}
.gcmat-hub .prio-card .a{display:flex;flex-wrap:wrap;gap:8px}
.gcmat-hub .chip{background:var(--soft);color:var(--blue-d);padding:4px 11px;border-radius:999px;font-size:13px;font-weight:700}
.gcmat-hub .chip.star{background:var(--blue);color:#fff}

/* ---------- MOST-COMMON TIER CARDS ---------- */
.gcmat-hub .tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:10px}
.gcmat-hub .tier{background:linear-gradient(180deg,#fff,#f7faff);border:1px solid var(--line);border-radius:12px;padding:18px}
.gcmat-hub .tier h3{margin-top:0;color:var(--blue-d);font-size:18px}
.gcmat-hub .tier .role{color:var(--muted);font-size:13.5px;font-weight:600;margin-bottom:10px}
.gcmat-hub .tier .bar{height:8px;border-radius:5px;background:#e2e8f0;overflow:hidden;margin:10px 0 6px}
.gcmat-hub .tier .bar i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--accent))}
.gcmat-hub .tier .bar-lbl{font-size:12px;color:var(--muted)}

/* ---------- MATERIAL PROFILE CARDS (deep dives) ---------- */
.gcmat-hub .cat-head{display:flex;align-items:baseline;gap:12px;margin:30px 0 6px}
.gcmat-hub .cat-head .pill{background:var(--navy);color:#fff;font-size:12.5px;font-weight:700;padding:4px 12px;border-radius:999px;letter-spacing:.04em}
.gcmat-hub .mat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:14px}
.gcmat-hub .mat{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff;transition:transform .18s,box-shadow .18s}
.gcmat-hub .mat:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,39,71,.10)}
.gcmat-hub .mat .mt{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.gcmat-hub .mat h3{margin:0;color:var(--navy);font-size:19px}
.gcmat-hub .mat .grade{font-size:12.5px;color:var(--muted);font-weight:600}
.gcmat-hub .mat .best{background:var(--soft);color:var(--blue-d);font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:6px;white-space:nowrap}
.gcmat-hub .mat ul{margin:10px 0 0;padding-left:20px}
.gcmat-hub .mat li{margin:6px 0;font-size:14.5px}
.gcmat-hub .mat .adv b{color:var(--good)}
.gcmat-hub .mat .cons b{color:var(--warn)}
.gcmat-hub .mat .grades-row{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line);font-size:13.5px;color:var(--muted)}
.gcmat-hub .mat .grades-row b{color:var(--ink)}

/* ---------- DIFFICULTY (machinability) ---------- */
.gcmat-hub .diff-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px}
.gcmat-hub .diff-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:12px 16px}
.gcmat-hub .diff-row .m{font-weight:700;color:var(--navy)}
.gcmat-hub .dchip{padding:3px 12px;border-radius:999px;font-size:12.5px;font-weight:800;white-space:nowrap}
.gcmat-hub .dchip.easy{background:#e6f6ee;color:var(--good)}
.gcmat-hub .dchip.mod{background:#fef3e2;color:#b8860b}
.gcmat-hub .dchip.hard{background:#fdecec;color:var(--warn)}
.gcmat-hub .diff-note{font-size:13px;color:var(--muted);margin-top:14px}

/* ---------- 7 FACTORS ---------- */
.gcmat-hub .factors{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:10px}
.gcmat-hub .factor{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;position:relative}
.gcmat-hub .factor .n{position:absolute;top:-12px;left:14px;width:30px;height:30px;border-radius:50%;background:var(--blue);color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px rgba(0,82,204,.3)}
.gcmat-hub .factor h4{margin:8px 0 6px;color:var(--navy);font-size:15.5px}
.gcmat-hub .factor p{font-size:13.5px;color:var(--muted);margin:0}

/* ---------- COMPARISON TABLES ---------- */
.gcmat-hub .cmp-wrap{overflow-x:auto;margin:8px 0}
.gcmat-hub table.cmp{border-collapse:collapse;width:100%;min-width:560px;font-size:14.5px;background:#fff}
.gcmat-hub table.cmp th{background:var(--navy);color:#fff;text-align:left;padding:11px 14px;font-weight:700;font-size:13.5px}
.gcmat-hub table.cmp td{padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.gcmat-hub table.cmp tbody tr:nth-child(even){background:#f8fafd}
.gcmat-hub table.cmp .lvl{font-weight:700}
.gcmat-hub table.cmp .lvl.hi{color:var(--good)}
.gcmat-hub table.cmp .lvl.mid{color:#b8860b}
.gcmat-hub table.cmp .lvl.lo{color:var(--warn)}

/* ---------- FINISHING MATRIX ---------- */
.gcmat-hub table.finish{border-collapse:collapse;width:100%;min-width:620px;font-size:14px;background:#fff}
.gcmat-hub table.finish th{background:var(--navy);color:#fff;padding:10px 12px;font-weight:700;font-size:13px;text-align:center}
.gcmat-hub table.finish th:first-child{text-align:left}
.gcmat-hub table.finish td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:center}
.gcmat-hub table.finish td:first-child{text-align:left;font-weight:700;color:var(--navy)}
.gcmat-hub .f-y{color:var(--good);font-weight:800}
.gcmat-hub .f-n{color:#94a3b8}
.gcmat-hub .f-w{color:#b8860b;font-weight:800}

/* ---------- FLOW (traceability / qualification) ---------- */
.gcmat-hub .flow{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;align-items:stretch}
.gcmat-hub .flow .step{flex:1 1 140px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:14px;position:relative}
.gcmat-hub .flow .step b{display:block;color:var(--blue-d);font-size:13px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.gcmat-hub .flow .step span{font-size:14px;color:var(--ink)}
.gcmat-hub .flow .arrow{display:flex;align-items:center;color:var(--accent);font-weight:800;font-size:18px;flex:0 0 auto}

/* ---------- CASES ---------- */
.gcmat-hub .case{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;margin:16px 0;box-shadow:0 4px 16px rgba(15,39,71,.05)}
.gcmat-hub .case .ctag{display:inline-block;background:var(--soft);color:var(--blue-d);font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:6px;margin-bottom:10px}
.gcmat-hub .case h3{margin:0 0 12px;color:var(--navy)}
.gcmat-hub .case .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.gcmat-hub .case .grid .k{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.gcmat-hub .case .grid .v{font-size:14.5px;color:var(--ink);margin-top:2px}
.gcmat-hub .case .note{margin-top:12px;font-size:14px;color:var(--muted);border-top:1px dashed var(--line);padding-top:12px}

/* ---------- COST ---------- */
.gcmat-hub .cost-wrap{overflow-x:auto;margin:8px 0}
.gcmat-hub table.cost{border-collapse:collapse;width:100%;min-width:600px;font-size:14.5px;background:#fff}
.gcmat-hub table.cost th{background:var(--navy);color:#fff;padding:11px 14px;font-weight:700;font-size:13.5px}
.gcmat-hub table.cost td{padding:10px 14px;border-bottom:1px solid var(--line)}
.gcmat-hub table.cost td .pos{font-weight:700;color:var(--blue-d)}
.gcmat-hub .cost-note{font-size:13px;color:var(--muted);margin-top:10px}
.gcmat-hub .cost-equation{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin:14px 0;font-size:15px}
.gcmat-hub .cost-equation b{color:var(--blue-d)}

/* ---------- STRONG CTA BAND ---------- */
.gcmat-hub .cta-band{background:linear-gradient(135deg,#0f2747,#143a6b);color:#fff;border-radius:16px;padding:34px;margin-top:8px;text-align:center}
.gcmat-hub .cta-band h2{color:#fff;padding-left:0}
.gcmat-hub .cta-band h2:before{display:none}
.gcmat-hub .cta-band p{color:#dbe7f7;margin:0 auto 18px;max-width:680px}
.gcmat-hub .cta-band .btn--blue{background:var(--accent);border-color:var(--accent)}
.gcmat-hub .cta-band .btn--blue:hover{background:#0089a6;border-color:#0089a6}

/* ---------- GOLDCATTLE CAPABILITIES ---------- */
.gcmat-hub .gc-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:10px;align-items:start}
.gcmat-hub .gc-cap{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.gcmat-hub .gc-cap .c{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;align-items:center;gap:10px;font-size:14.5px}
.gcmat-hub .gc-cap .c .tk{color:var(--good);font-weight:800;font-size:16px}
.gcmat-hub .gc-grades{border:1px solid var(--line);border-radius:12px;padding:18px;background:#fff}
.gcmat-hub .gc-grades h4{margin:14px 0 8px;color:var(--navy);font-size:16px}
.gcmat-hub .gc-grades h4:first-child{margin-top:0}
.gcmat-hub .gc-grades .gr{display:flex;flex-wrap:wrap;gap:8px}
.gcmat-hub .gc-grades .gr span{background:var(--soft);color:var(--blue-d);padding:4px 11px;border-radius:999px;font-size:13px;font-weight:700}
.gcmat-hub .gc-grades .gr span.dim{background:#f1f5f9;color:var(--muted)}
.gcmat-hub .exp{font-weight:800;color:var(--blue)}

/* ---------- FAQ ---------- */
.gcmat-hub .faq details{border:1px solid var(--line);border-radius:10px;padding:4px 18px;margin:10px 0;background:#fff}
.gcmat-hub .faq summary{font-weight:700;color:var(--navy);padding:14px 0;cursor:pointer;font-size:16.5px;list-style:none}
.gcmat-hub .faq summary::-webkit-details-marker{display:none}
.gcmat-hub .faq summary:before{content:"+";color:var(--blue);font-weight:800;margin-right:10px}
.gcmat-hub .faq details[open] summary:before{content:"−"}
.gcmat-hub .faq .a{padding:0 0 16px;color:var(--ink);font-size:15.5px;max-width:900px}
.gcmat-hub .faq .a a{font-weight:600}

/* ---------- NOTE BOX ---------- */
.gcmat-hub .note{background:var(--bg);border-left:4px solid var(--accent);padding:14px 18px;border-radius:0 8px 8px 0;margin:16px 0;font-size:15px;color:var(--ink)}
.gcmat-hub .note strong{color:var(--blue-d)}

/* ---------- SUB-NAV (sticky, scoped) ---------- */
.gcmat-hub .gcmat-subnav{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 2px 8px rgba(15,39,71,.05)}
.gcmat-hub .gcmat-subnav-inner{display:flex;gap:4px;overflow-x:auto;padding:0 16px}
.gcmat-hub .gcmat-subnav-inner a{padding:13px 11px;font-size:13.5px;color:var(--muted);white-space:nowrap;font-weight:600}
.gcmat-hub .gcmat-subnav-inner a:hover{color:var(--blue);text-decoration:none}
.gcmat-hub .gcmat-subnav-cta{margin-left:auto;background:var(--blue);color:#fff;border:none;padding:9px 16px;border-radius:7px;font-weight:700;font-size:13.5px;cursor:pointer;white-space:nowrap}
.gcmat-hub .gcmat-subnav-cta:hover{background:var(--blue-d)}

/* ---------- FIGURE (real photo) ---------- */
.gcmat-hub .gc-fig{margin:18px 0}
.gcmat-hub .gc-fig img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);background:#eef3f9}
.gcmat-hub .gc-fig figcaption{font-size:13.5px;color:var(--muted);padding:10px 4px;line-height:1.5}
.gcmat-hub #request{border-bottom:none}
.gcmat-hub .cat-head h3{margin:0}
.gcmat-hub .bar i.w96{width:96%}
.gcmat-hub .bar i.w82{width:82%}
.gcmat-hub .bar i.w64{width:64%}
.gcmat-hub .bar i.w70{width:70%}
.gcmat-hub .bar i.w42{width:42%}
.gcmat-hub .bar i.w58{width:58%}
.gcmat-hub .mt18{margin-top:18px}
.gcmat-hub .mt14{margin-top:14px}
.gcmat-hub .inlist{margin:8px 0 0;padding-left:20px}

/* ============================================================
   QUOTE MODAL (iframe loads working customer_form.html)
   Triggered by CTA buttons -> #gcqModal .is-open
   ============================================================ */
.gcmat-hub .gcq-modal{position:fixed;inset:0;z-index:99999;display:none;background:rgba(0,0,0,.6);padding:20px}
.gcmat-hub .gcq-modal.is-open{display:flex;align-items:center;justify-content:center}
.gcmat-hub .gcq-dialog{background:#fff;border-radius:12px;width:100%;max-width:860px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.gcmat-hub .gcq-close{position:absolute;top:8px;right:10px;z-index:3;width:36px;height:36px;border:none;background:rgba(0,0,0,.05);border-radius:50%;font-size:22px;line-height:1;color:#333;cursor:pointer}
.gcmat-hub .gcq-close:hover{background:rgba(0,0,0,.12)}
.gcmat-hub .gcq-dialog iframe{width:100%;height:84vh;min-height:560px;border:0;display:block}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:880px){
  .gcmat-hub .hero-grid{grid-template-columns:1fr}
  .gcmat-hub .tiers{grid-template-columns:1fr}
  .gcmat-hub .prio{grid-template-columns:1fr}
  .gcmat-hub .mat-grid{grid-template-columns:1fr}
  .gcmat-hub .diff-list{grid-template-columns:1fr}
  .gcmat-hub .factors{grid-template-columns:repeat(2,1fr)}
  .gcmat-hub .gc-grid{grid-template-columns:1fr}
  .gcmat-hub .case .grid{grid-template-columns:repeat(2,1fr)}
  .gcmat-hub .hero h1{font-size:32px}
}
@media (max-width:520px){
  .gcmat-hub .factors{grid-template-columns:1fr}
  .gcmat-hub .case .grid{grid-template-columns:1fr}
  .gcmat-hub h2{font-size:23px}
}
