/* ============================================================
   Pengqi — Why Pengqi
   ------------------------------------------------------------
   Light section that follows the navy Global Reach band, so the page
   alternates rather than running two dark sections together.

   Inherits from pq-global.css:
     .pq-container / .pq-kicker / .pq-btn / --pq-* tokens
   Class prefix .pq-why- so nothing collides.

   On the copy shown here: the prototype shipped this section with its
   own design rationale as body text ("a stable company history is a
   meaningful trust signal..."). Those lines are notes to the site owner,
   not something a buyer should read, so the blocks below carry real
   customer-facing copy instead. See why_* keys in application/lang/.
   ============================================================ */

.pq-why {
  position: relative;
  padding: 96px 0;
  background: var(--pq-paper);
}

.pq-why-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 40px;
}

.pq-why-title {
  margin: 0;
  max-width: 18em;
  color: var(--pq-navy);
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
}

.pq-why-intro {
  margin: 0;
  color: var(--pq-steel);
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- homepage teaser ----------
   The homepage carries the claim, the year and a link; the cards below
   belong to About Us. Padding is tighter than the full section so the
   band reads as a hinge between Global Reach and the inquiry process
   rather than as a second full section. */
.pq-why--teaser { padding: 64px 0; }

.pq-why-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}

.pq-why-teaser-main .pq-why-intro { margin: 18px 0 0; max-width: 46em; }

.pq-why-teaser-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* ---------- grid ---------- */
.pq-why-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.pq-why-card,
.pq-why-reg {
  position: relative;
  padding: 26px;
  border: 1px solid var(--pq-line);
  background: var(--pq-paper);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* Default span for the three small cards. The --hero / --wide modifiers
   below must come after this rule: they are single-class selectors too,
   so source order decides. */
.pq-why-card { grid-column: span 4; }

.pq-why-card:hover {
  border-color: rgba(7, 95, 174, .32);
  box-shadow: var(--pq-shadow);
  transform: translateY(-3px);
}

.pq-why-card h3,
.pq-why-reg h3 {
  margin: 0 0 12px;
  color: var(--pq-navy);
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.pq-why-card-body {
  margin: 0;
  color: var(--pq-steel);
  font-size: 14px;
  line-height: 1.75;
}

.pq-why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  border: 1px solid rgba(243, 167, 18, .5);
  color: #b57c05;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- 01, the year as an asset ---------- */
.pq-why-card--hero {
  grid-column: span 5;
  color: #fff;
  background: var(--pq-navy);
  border-color: transparent;
}

.pq-why-card--hero:hover { border-color: transparent; }

.pq-why-card--hero:hover { box-shadow: 0 22px 54px rgba(7, 29, 51, .22); }

.pq-why-card--hero .pq-why-num { border-color: rgba(243, 167, 18, .55); color: var(--pq-accent); }

.pq-why-card--hero h3 { color: #fff; }

.pq-why-since {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 20px;
}

.pq-why-since b {
  color: var(--pq-accent);
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}

.pq-why-since span {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* The homepage teaser puts the year on the light background, where the
   amber-on-navy pairing above is unreadable. This modifier must stay
   after the base rules: both selectors have the same specificity, so
   source order decides, and putting it earlier lets the white win. */
.pq-why-since--light { margin: 0; }
.pq-why-since--light b { color: var(--pq-navy); font-size: clamp(46px, 5vw, 64px); }
.pq-why-since--light span { color: var(--pq-steel); }

.pq-why-card--hero .pq-why-card-body { color: rgba(255, 255, 255, .74); }

.pq-why-facts {
  margin: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.pq-why-facts dt,
.pq-why-facts dd {
  display: inline-block;
  width: 48%;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  vertical-align: top;
}

.pq-why-facts dt {
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pq-why-facts dd { color: #fff; }

/* ---------- 02, scope of supply ---------- */
.pq-why-card--wide { grid-column: span 7; }

.pq-why-scope {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pq-line);
}

.pq-why-scope li {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--pq-line);
}

.pq-why-scope b {
  color: var(--pq-navy);
  font-size: 14px;
}

.pq-why-scope span {
  color: var(--pq-steel);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 03 / 04 / 05 ----------
   Span comes from the base .pq-why-card rule above. */

/* ---------- 03, company registration (only when an image exists) ----------
   The four facts run across the card instead of down it. Stacked, they
   used roughly a third of the width and left the rest of a full-width
   card empty. */
.pq-why-reg {
  display: none;
  grid-column: span 12;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.pq-why-reg.is-on { display: grid; }

.pq-why-reg:hover { border-color: rgba(7, 95, 174, .32); }

.pq-why-reg-thumb {
  overflow: hidden;
  border: 1px solid var(--pq-line);
  background: var(--pq-offwhite);
}

.pq-why-reg-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* Number, heading and subtitle share a line, so the facts row starts
   close under the title rather than below three stacked blocks. */
.pq-why-reg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 22px;
}

.pq-why-reg .pq-why-num { margin-bottom: 0; }

.pq-why-reg-head h3 { margin: 0; }

.pq-why-reg-sub {
  margin: 0;
  color: var(--pq-steel);
  font-size: 13px;
  font-weight: 700;
}

.pq-why-reg-facts {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 0 24px;
  margin: 0;
  border-top: 1px solid var(--pq-line);
}

.pq-why-reg-facts > div {
  padding: 14px 0 0;
  border-bottom: 1px solid var(--pq-line);
}

.pq-why-reg-facts dt {
  margin-bottom: 5px;
  color: var(--pq-steel);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pq-why-reg-facts dd {
  margin: 0 0 14px;
  color: var(--pq-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.pq-why-reg-open { margin-top: 22px; }

/* ---------- closing call to action ---------- */
.pq-why-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 16px;
  padding: 28px 30px;
  border: 1px solid var(--pq-line);
  border-left: 5px solid var(--pq-accent);
  background: var(--pq-offwhite);
}

.pq-why-cta strong {
  display: block;
  margin-bottom: 6px;
  color: var(--pq-navy);
  font-size: 19px;
  letter-spacing: -.02em;
}

.pq-why-cta p {
  margin: 0;
  max-width: 62em;
  color: var(--pq-steel);
  font-size: 14px;
  line-height: 1.65;
}

.pq-why-cta-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

/* pq-global.css has primary / light / outline only; --outline is white
   text for dark backgrounds. This is the missing light-background
   secondary, kept local so pq-global.css does not need re-versioning. */
.pq-why .pq-btn--ghost {
  color: var(--pq-navy) !important;
  border-color: var(--pq-line);
  background: #fff;
}

.pq-why .pq-btn--ghost:hover { border-color: var(--pq-navy); }

/* ---------- registration modal ---------- */
.pq-why-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(3, 12, 22, .8);
}

.pq-why-modal.is-open { display: grid; }

.pq-why-modal-dialog {
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  background: #fff;
}

.pq-why-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--pq-line);
}

.pq-why-modal-top strong { color: var(--pq-navy); font-size: 15px; }

.pq-why-modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pq-line);
  color: var(--pq-steel);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pq-why-modal-close:hover { border-color: var(--pq-navy); color: var(--pq-navy); }

.pq-why-modal-body {
  overflow: auto;
  padding: 18px;
  background: var(--pq-offwhite);
}

.pq-why-modal-body img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--pq-line);
}

.pq-why-modal-note {
  margin: 0;
  padding: 16px 20px 20px;
  color: var(--pq-steel);
  font-size: 12px;
  line-height: 1.65;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pq-why-card { grid-column: span 6; }
  .pq-why-card--hero,
  .pq-why-card--wide { grid-column: span 12; }
  .pq-why-reg { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
  /* Two facts per row once the card is this narrow. */
  .pq-why-reg-facts { grid-template-columns: 1fr 1fr; gap: 0 20px; }
}

@media (max-width: 900px) {
  .pq-why { padding: 72px 0; }
  .pq-why--teaser { padding: 56px 0; }
  .pq-why-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .pq-why-teaser { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  /* The year and the link stay stacked: side by side they read as one
     run-on line at these widths. */
  .pq-why-teaser-side { gap: 16px; }
}

@media (max-width: 640px) {
  .pq-why { padding: 60px 0; }
  .pq-why--teaser { padding: 48px 0; }
  .pq-why-teaser-side { gap: 18px; }
  .pq-why-since--light b { font-size: 44px; }
  .pq-why-card { grid-column: span 12; }
  .pq-why-card,
  .pq-why-reg { padding: 22px; }
  .pq-why-reg { grid-template-columns: 1fr; gap: 20px; }
  .pq-why-reg-thumb { max-width: 240px; }
  .pq-why-reg-head { margin-bottom: 18px; }
  .pq-why-reg-facts { grid-template-columns: 1fr; gap: 0; }
  .pq-why-scope li { grid-template-columns: 1fr; gap: 4px; }
  .pq-why-facts dt,
  .pq-why-facts dd { width: 100%; border-bottom: 0; padding: 0; }
  .pq-why-facts dt { padding-top: 12px; }
  .pq-why-facts dd { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .pq-why-cta { flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px; }
  .pq-why-cta-actions { width: 100%; }
  .pq-why-cta-actions .pq-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pq-why * { transition-duration: .01ms !important; }
}
