/* ============================================================
   Precision Grinding & Honing Services — scoped stylesheet
   Container: .pgh-page
   Online: https://www.xmgoldcattle.com/assets/css/precision-grinding-honing-services.css
   ============================================================ */

.pgh-page {
  --pgh-blue: #0052cc;
  --pgh-navy: #0f2747;
  --pgh-accent: #00a3c4;
  --pgh-bg: #f5f8fb;
  --pgh-card: #ffffff;
  --pgh-line: #e1e8f0;
  --pgh-text: #1f2d3d;
  --pgh-muted: #5a6a7d;
  --pgh-shadow: 0 8px 24px rgba(15, 39, 71, 0.08);
  --pgh-radius: 14px;
  color: var(--pgh-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

.pgh-page * { box-sizing: border-box; }

/* ---------- LAYOUT ---------- */
.pgh-wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.pgh-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--pgh-line);
}

.pgh-section:last-of-type { border-bottom: none; }

/* ---------- TYPOGRAPHY ---------- */
.pgh-eyebrow,
.pgh-sec-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pgh-accent);
  margin-bottom: 12px;
}

.pgh-section h2,
.pgh-hero-content h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--pgh-navy);
  margin: 0 0 18px;
}

.pgh-section h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--pgh-navy);
  margin: 0 0 10px;
}

.pgh-lead,
.pgh-intro {
  font-size: 17px;
  color: var(--pgh-muted);
  max-width: 820px;
  margin: 0 0 22px;
}

.pgh-note {
  background: #eef6ff;
  border-left: 4px solid var(--pgh-blue);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  color: var(--pgh-text);
  margin-top: 26px;
}

.pgh-note strong { color: var(--pgh-navy); }

/* ---------- HERO ---------- */
.pgh-hero {
  background: linear-gradient(135deg, var(--pgh-navy) 0%, #15355c 100%);
  color: #fff;
  padding: 84px 0 92px;
}

.pgh-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.pgh-hero-content .pgh-eyebrow { color: var(--pgh-accent); }

.pgh-hero-content h2 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 50px);
  margin-bottom: 20px;
}

.pgh-hero-content .pgh-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  max-width: 640px;
}

.pgh-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.pgh-hero-tags span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.pgh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pgh-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

/* ---------- BUTTONS ---------- */
.pgh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.pgh-btn:hover { transform: translateY(-2px); }

.pgh-btn--primary {
  background: var(--pgh-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 82, 204, 0.28);
}

.pgh-btn--primary:hover { background: #0043a8; }

.pgh-btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.pgh-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.pgh-section .pgh-btn--secondary {
  color: var(--pgh-blue);
  border-color: var(--pgh-blue);
}

.pgh-section .pgh-btn--secondary:hover {
  background: rgba(0, 82, 204, 0.05);
}

/* ---------- SPEC CARDS ---------- */
.pgh-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 30px 0 36px;
}

.pgh-spec-card {
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-top: 4px solid var(--pgh-blue);
  border-radius: var(--pgh-radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--pgh-shadow);
}

.pgh-spec-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pgh-muted);
  margin-bottom: 8px;
}

.pgh-spec-value {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--pgh-navy);
}

/* ---------- TABLES ---------- */
.pgh-table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border-radius: var(--pgh-radius);
  border: 1px solid var(--pgh-line);
}

.pgh-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pgh-card);
  font-size: 15px;
}

.pgh-table th,
.pgh-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--pgh-line);
}

.pgh-table th {
  background: #f8fafd;
  font-weight: 700;
  color: var(--pgh-navy);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.pgh-table tr:last-child td { border-bottom: none; }

.pgh-table tbody tr:hover { background: #fafcfe; }

.pgh-table--compare td:nth-child(2),
.pgh-table--compare td:nth-child(3) {
  font-weight: 600;
}

/* ---------- FLOW DIAGRAMS ---------- */
.pgh-flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px 0;
  padding: 22px;
  background: #f8fafd;
  border-radius: var(--pgh-radius);
}

.pgh-flow-row .pgh-step {
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-top: 3px solid var(--pgh-blue);
  border-radius: 10px;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--pgh-navy);
  box-shadow: 0 2px 8px rgba(15, 39, 71, 0.04);
}

.pgh-flow-row .pgh-arrow {
  color: var(--pgh-blue);
  font-weight: 800;
  font-size: 20px;
}

.pgh-flow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 420px;
  margin: 28px auto;
}

.pgh-flow-col .pgh-step {
  width: 100%;
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-left: 4px solid var(--pgh-blue);
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 700;
  color: var(--pgh-navy);
  text-align: center;
}

.pgh-flow-col .pgh-arrow {
  color: var(--pgh-blue);
  padding: 5px 0;
  font-weight: 800;
  font-size: 18px;
}

/* ---------- ROLE CARDS ---------- */
.pgh-role-grid,
.pgh-definition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.pgh-role-card,
.pgh-definition-card {
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-radius: var(--pgh-radius);
  padding: 24px;
  box-shadow: var(--pgh-shadow);
}

.pgh-role-card ul,
.pgh-definition-card ul,
.pgh-list {
  margin: 0;
  padding-left: 18px;
  color: var(--pgh-muted);
}

.pgh-role-card li,
.pgh-list li { margin-bottom: 6px; }

/* ---------- PROCESS CARDS ---------- */
.pgh-process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 28px 0;
}

.pgh-process-card {
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-radius: var(--pgh-radius);
  overflow: hidden;
  box-shadow: var(--pgh-shadow);
  transition: transform .15s ease;
}

.pgh-process-card:hover { transform: translateY(-4px); }

.pgh-process-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.pgh-process-card h3,
.pgh-process-card p,
.pgh-process-card .pgh-tags {
  padding: 0 22px;
}

.pgh-process-card h3 { margin-top: 20px; }

.pgh-process-card p {
  color: var(--pgh-muted);
  margin: 0 0 16px;
}

.pgh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
}

.pgh-tags span {
  background: #eef6ff;
  color: var(--pgh-blue);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- MATERIAL / APP CARDS ---------- */
.pgh-material-grid,
.pgh-app-grid,
.pgh-rfq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.pgh-material-card,
.pgh-app-card,
.pgh-rfq-card {
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-radius: var(--pgh-radius);
  padding: 22px;
  box-shadow: var(--pgh-shadow);
}

.pgh-material-card h3,
.pgh-app-card h3,
.pgh-rfq-card h3 { margin-bottom: 10px; }

.pgh-material-card p,
.pgh-app-card p,
.pgh-rfq-card ul {
  color: var(--pgh-muted);
  font-size: 14px;
  margin: 0;
}

.pgh-rfq-card ul { padding-left: 16px; }

/* ---------- FEATURE LIST ---------- */
.pgh-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.pgh-feature-item {
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-left: 4px solid var(--pgh-accent);
  border-radius: 0 var(--pgh-radius) var(--pgh-radius) 0;
  padding: 20px;
  box-shadow: var(--pgh-shadow);
}

.pgh-feature-item p {
  color: var(--pgh-muted);
  margin: 0;
  font-size: 14px;
}

/* ---------- PROCESS CHAIN GRID ---------- */
.pgh-process-chain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 28px 0;
}

.pgh-process-chain {
  background: #f8fafd;
  border-radius: var(--pgh-radius);
  padding: 26px;
}

.pgh-process-chain h3 {
  text-align: center;
  margin-bottom: 18px;
}

/* ---------- COST GRID ---------- */
.pgh-cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.pgh-cost-card {
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--pgh-navy);
  box-shadow: var(--pgh-shadow);
}

/* ---------- CASE STUDIES ---------- */
.pgh-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 28px 0;
}

.pgh-case-card {
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-radius: var(--pgh-radius);
  overflow: hidden;
  box-shadow: var(--pgh-shadow);
}

.pgh-case-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.pgh-case-card h3,
.pgh-case-card ul {
  padding: 0 20px;
}

.pgh-case-card h3 { margin-top: 18px; }

.pgh-case-card ul {
  color: var(--pgh-muted);
  font-size: 14px;
  padding-bottom: 20px;
  padding-left: 36px;
}

/* ---------- FAQ ---------- */
.pgh-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.pgh-faq {
  background: var(--pgh-card);
  border: 1px solid var(--pgh-line);
  border-radius: var(--pgh-radius);
  box-shadow: var(--pgh-shadow);
  overflow: hidden;
}

.pgh-faq summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--pgh-navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.pgh-faq summary::-webkit-details-marker { display: none; }

.pgh-faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--pgh-blue);
  font-weight: 400;
}

.pgh-faq[open] summary::after { content: "−"; }

.pgh-faq p {
  padding: 0 22px 18px;
  color: var(--pgh-muted);
  margin: 0;
}

/* ---------- CTA SECTION ---------- */
.pgh-cta {
  background: linear-gradient(135deg, #eef6ff 0%, #f5f8fb 100%);
  border-radius: var(--pgh-radius);
  padding: 56px 40px;
  text-align: center;
}

.pgh-cta h2 { margin-bottom: 12px; }

.pgh-cta > p {
  color: var(--pgh-muted);
  max-width: 720px;
  margin: 0 auto 28px;
}

.pgh-cta .pgh-hero-actions {
  justify-content: center;
}

/* ---------- LINKS ---------- */
.pgh-page a {
  color: var(--pgh-blue);
  text-decoration: none;
}

.pgh-page a:hover { text-decoration: underline; }

/* ---------- MODAL ---------- */
.pgh-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 39, 71, 0.75);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pgh-modal-box {
  position: relative;
  width: min(760px, 96vw);
  height: min(88vh, 760px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.pgh-modal-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.pgh-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--pgh-navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .pgh-hero-grid {
    grid-template-columns: 1fr;
  }
  .pgh-hero-media { order: -1; }
  .pgh-process-grid,
  .pgh-process-chain-grid,
  .pgh-role-grid,
  .pgh-definition-grid,
  .pgh-feature-list { grid-template-columns: 1fr; }
  .pgh-spec-grid,
  .pgh-material-grid,
  .pgh-app-grid,
  .pgh-rfq-grid { grid-template-columns: repeat(2, 1fr); }
  .pgh-case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pgh-section { padding: 48px 0; }
  .pgh-hero { padding: 56px 0 64px; }
  .pgh-spec-grid,
  .pgh-material-grid,
  .pgh-app-grid,
  .pgh-rfq-grid { grid-template-columns: 1fr; }
  .pgh-hero-actions { flex-direction: column; }
  .pgh-btn { width: 100%; }
  .pgh-flow-row { flex-direction: column; }
  .pgh-flow-row .pgh-arrow { transform: rotate(90deg); }
  .pgh-cta { padding: 38px 22px; }
}
