/* ============================================================
   EDM Machining Services — Goldcattle
   Scoped stylesheet. 100% contained within .gc-edm
   to avoid any leakage into WordPress / Kadence global styles.
   Brand tokens: --blue #0052cc | --navy #0f2747 | --accent #00a3c4
   Buyer-guide layout: Why EDM → Wire vs Sinker → Materials →
   Tolerance → DFM → Cases → RFQ.
   ============================================================ */

.gc-edm {
  --blue: #0052cc;
  --blue-dark: #00419e;
  --navy: #0f2747;
  --accent: #00a3c4;
  --accent-soft: #e4f6fb;
  --blue-soft: #eaf1fc;
  --ink: #1c2530;
  --muted: #5b6776;
  --line: #e3e8ef;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eef4fb;
  --good: #1a7f4b;
  --good-soft: #e7f6ee;
  --warn: #b06a00;
  --warn-soft: #fbf0dc;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 16px rgba(15, 39, 71, .06);
  --shadow: 0 12px 34px rgba(15, 39, 71, .10);
  --shadow-card-hover: 0 18px 44px rgba(15, 39, 71, .14);
  --maxw: 1160px;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  background: var(--bg);
  margin: 0;
  padding: 0;
  font-size: 16px;
  scroll-behavior: smooth;
}

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

.gc-edm a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
.gc-edm a:hover { color: var(--blue-dark); }
.gc-edm img { max-width: 100%; display: block; }

.gc-edm :focus-visible {
  outline: 3px solid rgba(0, 82, 204, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.gc-edm .gc-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.gc-edm .gc-section { padding: 78px 0; }
.gc-edm .gc-section--soft { background: var(--bg-soft); }
.gc-edm .gc-section--tint { background: var(--bg-tint); }
.gc-edm .gc-section--navy {
  background: linear-gradient(135deg, var(--navy) 0%, #14325a 100%);
  color: #fff;
}

/* ---------- Typography ---------- */
.gc-edm .gc-h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.18;
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}
.gc-edm .gc-section--navy .gc-h2 { color: #fff; }
.gc-edm .gc-h3 {
  font-size: 20px;
  line-height: 1.28;
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 10px;
}
.gc-edm .gc-section--navy .gc-h3 { color: #fff; }
.gc-edm .gc-lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 780px;
  margin: 0 0 32px;
  line-height: 1.65;
}
.gc-edm .gc-section--navy .gc-lede { color: rgba(255,255,255,.78); }
.gc-edm .gc-lede strong { color: var(--navy); font-weight: 700; }
.gc-edm .gc-section--navy .gc-lede strong { color: #fff; }

/* ---------- Hero ---------- */
.gc-edm .gc-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 92% -6%, rgba(0, 163, 196, .10), transparent 60%),
    radial-gradient(720px 380px at 0% 4%, rgba(0, 82, 204, .08), transparent 55%),
    linear-gradient(180deg, #f7fafd 0%, #ffffff 60%);
  padding: 48px 0 58px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.gc-edm .gc-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 100%);
}
.gc-edm .gc-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.gc-edm .gc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.gc-edm .gc-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gc-edm .gc-hero .gc-hero-title {
  display: block;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.06;
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -.02em;
}
.gc-edm .gc-hero__sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 620px;
  line-height: 1.62;
}
.gc-edm .gc-hero__sub strong { color: var(--navy); font-weight: 700; }
.gc-edm .gc-hero__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 22px;
  max-width: 620px;
}
.gc-edm .gc-hero__spec {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 13px 8px 12px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gc-edm .gc-hero__spec:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-top-color: var(--blue);
}
.gc-edm .gc-hero__spec strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 3px;
}
.gc-edm .gc-hero__spec span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.gc-edm .gc-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
}
.gc-edm .gc-hero__trust span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--good);
  background: var(--good-soft);
  border: 1px solid #c8ead6;
  border-radius: 999px;
  padding: 5px 11px;
}
.gc-edm .gc-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.gc-edm .gc-hero__cta .gc-btn { padding: 13px 24px; font-size: 14.5px; }
.gc-edm .gc-hero__files {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
  letter-spacing: .02em;
}
.gc-edm .gc-hero__media {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-tint) 100%);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  max-width: 100%;
}
.gc-edm .gc-hero__media img {
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.gc-edm .gc-hero__badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(15, 39, 71, .94);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 39, 71, .28);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.gc-edm .gc-hero__badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc97;
}

/* ---------- Buttons ---------- */
.gc-edm .gc-btn,
.gc-edm a.gc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  line-height: 1.25;
  text-decoration: none;
}
.gc-edm .gc-btn:hover { transform: translateY(-2px); }
.gc-edm .gc-btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 82, 204, .24);
}
.gc-edm .gc-btn--primary:hover {
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 82, 204, .30);
}
.gc-edm .gc-btn--secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gc-edm .gc-btn--secondary:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.gc-edm .gc-btn--white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(15, 39, 71, .16);
}
.gc-edm .gc-btn--white:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.gc-edm .gc-btn--small { padding: 10px 20px; font-size: 13.5px; }

/* ---------- Cards & grids ---------- */
.gc-edm .gc-grid {
  display: grid;
  gap: 24px;
}
.gc-edm .gc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gc-edm .gc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gc-edm .gc-grid--4 { grid-template-columns: repeat(4, 1fr); }

.gc-edm .gc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gc-edm .gc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #d2dce8;
}
.gc-edm .gc-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}
.gc-edm .gc-card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.gc-edm .gc-card p strong { color: var(--ink); }

.gc-edm .gc-card--accent { border-top: 3px solid var(--accent); }
.gc-edm .gc-card--blue { border-top: 3px solid var(--blue); }
.gc-edm .gc-card--navy {
  background: linear-gradient(135deg, var(--navy) 0%, #14325a 100%);
  color: #fff;
  border-color: rgba(255,255,255,.08);
}
.gc-edm .gc-card--navy .gc-h3 { color: #fff; }
.gc-edm .gc-card--navy p { color: rgba(255,255,255,.78); }

/* ---------- Tables ---------- */
.gc-edm .gc-table-wrap { overflow-x: auto; }
.gc-edm .gc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gc-edm .gc-table th,
.gc-edm .gc-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.gc-edm .gc-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .02em;
}
.gc-edm .gc-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.gc-edm .gc-table tbody tr:last-child td { border-bottom: none; }
.gc-edm .gc-table td strong { color: var(--navy); }
.gc-edm .gc-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.gc-edm .gc-table--compare th:first-child,
.gc-edm .gc-table--compare td:first-child { width: 32%; font-weight: 700; color: var(--navy); }

/* ---------- Capability matrix ---------- */
.gc-edm .gc-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.gc-edm .gc-spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.gc-edm .gc-spec__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.gc-edm .gc-spec__value {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.gc-edm .gc-spec__note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* ---------- Lists ---------- */
.gc-edm .gc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gc-edm .gc-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.gc-edm .gc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.gc-edm .gc-list li strong { color: var(--ink); }

/* ---------- Split media/text ---------- */
.gc-edm .gc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.gc-edm .gc-split--reverse .gc-split__content { order: 2; }
.gc-edm .gc-split--reverse .gc-split__media { order: 1; }
.gc-edm .gc-split__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.gc-edm .gc-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gc-edm .gc-split__caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Process flow ---------- */
.gc-edm .gc-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.gc-edm .gc-flow__step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 120px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.gc-edm .gc-flow__step small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}
.gc-edm .gc-flow__arrow {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

/* ---------- Quote / CTA banner ---------- */
.gc-edm .gc-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #14325a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow);
}
.gc-edm .gc-cta__title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.18;
}
.gc-edm .gc-cta__sub {
  font-size: 15.5px;
  color: rgba(255,255,255,.78);
  margin: 0 0 16px;
  line-height: 1.6;
}
.gc-edm .gc-cta__files {
  font-size: 12px;
  color: rgba(255,255,255,.62);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}
.gc-edm .gc-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.gc-edm .gc-cta__actions .gc-btn { width: 100%; max-width: 280px; }

/* ---------- FAQ ---------- */
.gc-edm .gc-faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.gc-edm .gc-faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gc-edm .gc-faq__q::after {
  content: "+";
  font-size: 22px;
  color: var(--blue);
  font-weight: 400;
  transition: transform .2s ease;
}
.gc-edm .gc-faq__item[open] .gc-faq__q::after { transform: rotate(45deg); }
.gc-edm .gc-faq__a {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- RFQ form ---------- */
.gc-edm .gc-rfq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gc-edm .gc-rfq__field { display: flex; flex-direction: column; gap: 6px; }
.gc-edm .gc-rfq__field--full { grid-column: 1 / -1; }
.gc-edm .gc-rfq label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.gc-edm .gc-rfq label span { color: var(--warn); }
.gc-edm .gc-rfq input,
.gc-edm .gc-rfq select,
.gc-edm .gc-rfq textarea {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-family: inherit;
}
.gc-edm .gc-rfq input:focus,
.gc-edm .gc-rfq select:focus,
.gc-edm .gc-rfq textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.gc-edm .gc-rfq textarea { min-height: 100px; resize: vertical; }
.gc-edm .gc-rfq__hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Utility ---------- */
.gc-edm .gc-center { text-align: center; }
.gc-edm .gc-center .gc-lede { margin-left: auto; margin-right: auto; }
.gc-edm .gc-note {
  background: var(--warn-soft);
  border-left: 4px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  color: var(--warn);
  font-size: 14.5px;
  margin: 22px 0 0;
}
.gc-edm .gc-note strong { color: var(--warn); }
.gc-edm .gc-tip {
  background: var(--good-soft);
  border-left: 4px solid var(--good);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  color: var(--good);
  font-size: 14.5px;
  margin: 22px 0 0;
}
.gc-edm .gc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ---------- Cases ---------- */
.gc-edm .gc-case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}
.gc-edm .gc-case__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.gc-edm .gc-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc-edm .gc-case__body { padding: 26px; }
.gc-edm .gc-case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.gc-edm .gc-case__title { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 10px; }
.gc-edm .gc-case p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.gc-edm .gc-case p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .gc-edm .gc-hero__grid,
  .gc-edm .gc-split,
  .gc-edm .gc-case,
  .gc-edm .gc-cta { grid-template-columns: 1fr; }
  .gc-edm .gc-split--reverse .gc-split__content,
  .gc-edm .gc-split--reverse .gc-split__media { order: unset; }
  .gc-edm .gc-hero__media { max-width: 520px; margin: 0 auto; }
  .gc-edm .gc-cta__actions { align-items: stretch; }
  .gc-edm .gc-cta__actions .gc-btn { max-width: none; }
}

@media (max-width: 760px) {
  .gc-edm .gc-grid--2,
  .gc-edm .gc-grid--3,
  .gc-edm .gc-grid--4 { grid-template-columns: 1fr; }
  .gc-edm .gc-hero__specs { grid-template-columns: repeat(2, 1fr); }
  .gc-edm .gc-rfq { grid-template-columns: 1fr; }
  .gc-edm .gc-section { padding: 56px 0; }
  .gc-edm .gc-flow { flex-direction: column; align-items: stretch; }
  .gc-edm .gc-flow__arrow { text-align: center; transform: rotate(90deg); }
}
