/* ============================================================
   KEYUDA CASTING — Credibility components (Step One, homepage)
   Appended after v2.css. Additive only — no overrides of
   existing sections. Uses the same token system.
   ============================================================ */

/* ---------- A. Company credentials band (under hero) ---------- */
.cred-band { background: var(--ink); border-bottom: 1px solid var(--line-d); }
.cred-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred-band .cell {
  padding: 34px 34px 30px; border-left: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.cred-band .cell:first-child { border-left: none; padding-left: 0; }
.cred-band .cell::before {
  content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 3px;
  background: var(--orange);
}
.cred-band .cell:first-child::before { left: 0; }
.cred-band b {
  font-family: var(--font-head); font-weight: 700; font-size: 46px;
  line-height: 1; color: #fff; letter-spacing: 0; display: block;
}
.cred-band b i { font-style: normal; color: var(--orange-2); font-size: .55em; }
.cred-band span {
  display: block; margin-top: 10px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
}
@media (max-width: 960px) {
  .cred-band .container { grid-template-columns: 1fr 1fr; }
  .cred-band .cell { padding: 26px 24px; }
  .cred-band .cell:nth-child(odd) { border-left: none; padding-left: 0; }
  .cred-band .cell:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .cred-band b { font-size: 36px; }
}

/* ---------- B. Certificate wall ---------- */
.certwall .cgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px;
}
.certcard {
  background: #fff; border: 1px solid var(--line-l); border-radius: 3px;
  box-shadow: 0 8px 22px rgba(20,16,10,.08); overflow: hidden;
  display: flex; flex-direction: column; cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
  padding: 0; text-align: left; font: inherit;
}
.certcard:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,16,10,.16); }
.certcard .im { position: relative; display: block; overflow: hidden; }
.certcard .im img {
  width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; object-position: top;
  display: block; transition: transform .5s ease;
}
.certcard:hover .im img { transform: scale(1.035); }
.certcard .im::after {
  content: "CLICK TO VERIFY ↗";
  position: absolute; right: 10px; top: 10px; background: rgba(12,16,20,.82);
  color: #fff; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  padding: 5px 9px; opacity: 0; transition: opacity .3s ease;
}
.certcard:hover .im::after { opacity: 1; }
.certcard .bar { background: var(--ink); color: #fff; padding: 14px 16px 13px; }
.certcard .bar b {
  font-family: var(--font-head); font-weight: 600; font-size: 20px;
  text-transform: uppercase; letter-spacing: .02em; display: block; color: #fff;
}
.certcard .bar span {
  display: block; margin-top: 4px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .05em; color: var(--steel); line-height: 1.5;
}
.certwall .cfoot {
  border-top: 1px solid var(--line-l); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.certwall .cfoot .note {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: #6d7680;
}
.certwall .cfoot .note b { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) {
  .certwall .cgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .certwall .cgrid { grid-template-columns: 1fr; }
}

/* ---------- C. QC chain (3 steps, inside quality section) ---------- */
.qc-chain {
  margin-top: 56px; border-top: 2px solid var(--orange);
  display: grid; grid-template-columns: repeat(3, 1fr); background: #fff;
  border: 1px solid var(--line-l); box-shadow: 0 10px 28px rgba(20,16,10,.07);
}
.qc-chain .q {
  padding: 30px 32px 28px; border-left: 1px solid var(--line-l); position: relative;
}
.qc-chain .q:first-child { border-left: none; }
.qc-chain .no {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
  color: var(--orange); font-weight: 600;
}
.qc-chain h4 {
  font-family: var(--font-head); font-weight: 600; font-size: 24px;
  text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 8px;
}
.qc-chain p { font-size: 14.5px; color: #5c666f; line-height: 1.6; }
@media (max-width: 860px) {
  .qc-chain { grid-template-columns: 1fr; }
  .qc-chain .q { border-left: none; border-top: 1px solid var(--line-l); }
  .qc-chain .q:first-child { border-top: none; }
}

/* ---------- D. Honors strip ---------- */
.honors { background: var(--graphite); border-bottom: 1px solid var(--line-d); }
.honors .container {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; padding: 42px 0;
}
.honors .htitle h3 {
  font-family: var(--font-head); font-weight: 600; font-size: 30px;
  text-transform: uppercase; letter-spacing: .02em; color: #fff; line-height: 1.15;
}
.honors .htitle span {
  display: block; margin-top: 8px; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange-2);
}
.honors .hlist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.honors .h {
  padding: 6px 26px; border-left: 1px solid rgba(255,255,255,.1);
}
.honors .h b {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 26px;
  color: var(--orange-2); line-height: 1;
}
.honors .h span {
  display: block; margin-top: 8px; font-size: 13.5px; color: #c3cbd3; line-height: 1.5;
}
.honors .h i {
  display: block; font-style: normal; margin-top: 3px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .08em; color: #6d7883; text-transform: uppercase;
}
@media (max-width: 960px) {
  .honors .container { grid-template-columns: 1fr; gap: 26px; }
  .honors .hlist { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .honors .h { padding: 6px 20px; }
  .honors .h:nth-child(odd) { border-left: none; }
}

/* ---------- E. Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 200; background: rgba(7,9,12,.92);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lb.on { display: flex; }
.lb figure { max-width: min(760px, 92vw); max-height: 88vh; margin: 0; position: relative; }
.lb img { max-width: 100%; max-height: 80vh; display: block; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb figcaption {
  margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 12px;
  letter-spacing: .1em; color: #aeb8c2; text-transform: uppercase;
}
.lb .close {
  position: absolute; right: 18px; top: 14px; background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-family: var(--mono); font-size: 13px; padding: 8px 14px; cursor: pointer;
}
.lb .close:hover { border-color: var(--orange); color: var(--orange-2); }

/* ---------- Quality page additions ---------- */

/* English digest table row emphasis */
.digest-note {
  margin-top: 18px; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .04em; color: #6d7680;
}
.digest-note b { color: var(--ink); font-weight: 600; }

/* EN124 photo lead-in */
.en-photo { position: relative; margin-bottom: 42px; overflow: hidden; border-radius: 3px; }
.en-photo img {
  width: 100%; height: min(440px, 52vw); object-fit: cover; object-position: center 35%;
  display: block; filter: saturate(.92);
}
.en-photo figcaption, .en-photo .cap {
  position: absolute; left: 0; bottom: 0; background: rgba(12,16,20,.85); color: #fff;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  padding: 12px 18px; border-top: 2px solid var(--orange); text-transform: uppercase;
}

/* Shipment documents & audit band */
.ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ship-card {
  background: #fff; border: 1px solid var(--line-l); border-radius: 3px;
  padding: 36px 38px; box-shadow: 0 8px 22px rgba(20,16,10,.06);
}
.ship-card h3 {
  font-family: var(--font-head); font-weight: 600; font-size: 28px;
  text-transform: uppercase; letter-spacing: .02em; margin: 8px 0 6px;
}
.ship-card .sk { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em;
  color: var(--orange); text-transform: uppercase; }
.ship-card ul { list-style: none; margin-top: 16px; }
.ship-card li {
  padding: 12px 0 12px 30px; border-top: 1px dashed var(--line-l);
  font-size: 15px; color: #2a3038; position: relative; line-height: 1.55;
}
.ship-card li::before {
  content: "＋"; position: absolute; left: 2px; top: 11px;
  color: var(--orange); font-weight: 700;
}
.ship-card p.foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-l);
  font-family: var(--mono); font-size: 12px; color: #6d7680; letter-spacing: .04em;
}
@media (max-width: 860px) {
  .ship-grid { grid-template-columns: 1fr; }
  .en-photo img { height: 260px; }
}
@media (min-width: 1100px) {
  .certwall .cgrid.five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}
