/* ─────────────────────────────────────────────────────────────
   Yiwu GoodsCo — RTL support, forms, and the sourcing landing page.
   Loaded after the template's own CSS so it can override safely.
   ───────────────────────────────────────────────────────────── */

:root {
  --yg-navy: #111c74;
  --yg-navy-deep: #06113f;
  --yg-blue: #1c9eed;
  --yg-cyan: #39c5ef;
  --yg-ink: #121942;
  --yg-muted: #667085;
  --yg-line: #e7eaf1;
  --yg-soft: #f7f9fc;
  --yg-radius: 10px;
  --yg-shadow: 0 16px 44px rgba(8, 22, 75, .12);
}

/* ── language toggle ─────────────────────────────────────── */
#langToggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  color: inherit; font: inherit; cursor: pointer;
}
#langToggle:hover { text-decoration: underline; }
#langToggle svg { width: 14px; height: 14px; fill: currentColor; }

/* ── RTL ─────────────────────────────────────────────────── */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .nav-wrap,
html[dir="rtl"] .topbar-links { flex-direction: row-reverse; }
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .why-copy,
html[dir="rtl"] .section-heading { text-align: right; }
html[dir="rtl"] .section-heading { text-align: center; }
html[dir="rtl"] ul { padding-right: 20px; padding-left: 0; }
html[dir="rtl"] .yg-field input,
html[dir="rtl"] .yg-field textarea,
html[dir="rtl"] .yg-field select { text-align: right; direction: rtl; }
/* keep latin-only data readable */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
html[dir="rtl"] .yg-steps li { padding-right: 34px; padding-left: 0; }
html[dir="rtl"] .yg-steps li::before { right: 0; left: auto; }
html[dir="rtl"] .yg-check li { padding-right: 30px; padding-left: 0; }
html[dir="rtl"] .yg-check li::before { right: 0; left: auto; }
html[dir="rtl"] .yg-eq-arrow { transform: scaleX(-1); }

/* Arabic needs a slightly larger line-height to breathe */
html[dir="rtl"] body { line-height: 1.85; }

/* ── shared section shell (new pages) ────────────────────── */
.yg-wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.yg-section { padding: 64px 0; }
.yg-section--soft { background: var(--yg-soft); }
.yg-eyebrow {
  margin-bottom: 8px; color: var(--yg-blue); font-size: 12px;
  font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.yg-h2 { margin: 0 0 10px; color: var(--yg-ink); font-size: clamp(26px, 3vw, 36px); line-height: 1.12; }
.yg-lead { color: var(--yg-muted); font-size: 16px; max-width: 62ch; }
.yg-center { text-align: center; }
.yg-center .yg-lead { margin-inline: auto; }

/* ── forms ───────────────────────────────────────────────── */
.yg-form-card {
  background: #fff; border: 1px solid var(--yg-line);
  border-radius: var(--yg-radius); box-shadow: var(--yg-shadow);
  padding: 30px;
}
.yg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yg-field { margin-bottom: 16px; }
.yg-field label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--yg-ink);
}
.yg-field label em { color: #d92d20; font-style: normal; margin-inline-start: 3px; }
.yg-field input,
.yg-field select,
.yg-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 0 13px; height: 44px;
  font: inherit; font-size: 14px; color: var(--yg-ink);
  background: #fbfcfe; border: 1px solid var(--yg-line);
  border-radius: 8px; transition: border-color .2s, background .2s;
}
.yg-field textarea { height: 110px; padding: 11px 13px; resize: vertical; }
.yg-field input:focus,
.yg-field select:focus,
.yg-field textarea:focus {
  outline: none; border-color: var(--yg-blue); background: #fff;
}
.yg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; padding: 0 26px;
  background: var(--yg-navy); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .02em;
  border: 0; border-radius: 8px; cursor: pointer;
  transition: background .2s, transform .1s;
}
.yg-btn:hover { background: var(--yg-navy-deep); }
.yg-btn:active { transform: translateY(1px); }
.yg-btn[disabled] { opacity: .6; cursor: not-allowed; }
.yg-btn--wide { width: auto; min-width: 240px; }
.yg-note { margin-top: 12px; font-size: 12.5px; color: var(--yg-muted); text-align: center; }

.yg-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 9999; max-width: 90vw;
  background: #101828; color: #fff;
  padding: 12px 20px; border-radius: 8px;
  font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.yg-toast.show { opacity: 1; }

/* ── landing page: value equation ────────────────────────── */
.yg-hero-lp {
  background: linear-gradient(135deg, var(--yg-navy-deep), var(--yg-navy) 60%, #16277f);
  color: #fff; padding: 84px 0 70px; text-align: center;
}
.yg-hero-lp h1 {
  margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: -.01em;
}
.yg-hero-lp p { margin: 0 auto 26px; max-width: 60ch; font-size: 17px; color: #cfe0ff; }
.yg-hero-lp .yg-eyebrow { color: var(--yg-cyan); }
.yg-btn--cta {
  width: auto; height: 54px; padding: 0 34px; font-size: 16px;
  background: var(--yg-cyan); color: #06113f;
}
.yg-btn--cta:hover { background: #6fd7f5; }

/* the equation strip */
.yg-eq {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 14px;
  margin: 34px auto 0; padding: 18px 22px;
  max-width: 760px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
}
.yg-eq div { text-align: center; }
.yg-eq b { display: block; font-size: 13px; color: #fff; }
.yg-eq span { font-size: 11px; color: #9fb8e8; letter-spacing: .1em; text-transform: uppercase; }
.yg-eq i { font-style: normal; font-size: 20px; color: var(--yg-cyan); }

.yg-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.yg-pillar {
  background: #fff; border: 1px solid var(--yg-line);
  border-radius: var(--yg-radius); padding: 26px;
}
.yg-pillar .yg-eyebrow { color: var(--yg-blue); }
.yg-pillar h3 { margin: 0 0 14px; font-size: 20px; color: var(--yg-ink); }

.yg-check { list-style: none; margin: 0; padding: 0; }
.yg-check li {
  position: relative; padding-left: 30px; margin-bottom: 11px;
  font-size: 14.5px; color: #344054; line-height: 1.65;
}
.yg-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e6f6fe; color: var(--yg-blue);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.yg-speed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.yg-speed div { background: #fff; border: 1px solid var(--yg-line); border-radius: var(--yg-radius); padding: 24px 16px; }
.yg-speed b { display: block; font-size: 26px; color: var(--yg-navy); margin-bottom: 4px; }
.yg-speed span { font-size: 14px; color: var(--yg-muted); }

.yg-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.yg-stack div { background: #fff; border: 1px solid var(--yg-line); border-radius: var(--yg-radius); padding: 22px; }
.yg-stack h4 { margin: 0 0 6px; font-size: 15.5px; color: var(--yg-ink); }
.yg-stack p { margin: 0; font-size: 13.5px; color: var(--yg-muted); line-height: 1.6; }

.yg-guarantee {
  background: linear-gradient(135deg, #0d1b5e, #16277f);
  color: #fff; border-radius: 14px; padding: 38px; text-align: center;
}
.yg-guarantee h3 { margin: 0 0 12px; font-size: 24px; }
.yg-guarantee p { margin: 0 auto; max-width: 62ch; color: #cfe0ff; font-size: 15.5px; }

.yg-scarcity {
  border: 1px dashed var(--yg-blue); background: #f2f9ff;
  border-radius: var(--yg-radius); padding: 22px; text-align: center;
}
.yg-scarcity h3 { margin: 0 0 8px; font-size: 19px; color: var(--yg-navy); }
.yg-scarcity p { margin: 0; font-size: 14px; color: #475467; }

/* ── contact ─────────────────────────────────────────────── */
.yg-contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: start; }
.yg-info { background: var(--yg-soft); border: 1px solid var(--yg-line); border-radius: var(--yg-radius); padding: 26px; }
.yg-info h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--yg-muted); }
.yg-info p { margin: 0 0 20px; font-size: 15px; color: var(--yg-ink); }
.yg-info a { color: var(--yg-navy); font-weight: 600; }

/* ── success ─────────────────────────────────────────────── */
.yg-success { text-align: center; padding: 96px 0; }
.yg-success .tick {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  background: #e6f6fe; color: var(--yg-blue);
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.yg-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.yg-btn--ghost { background: #fff; color: var(--yg-navy); border: 1px solid var(--yg-navy); }
.yg-btn--ghost:hover { background: var(--yg-soft); }

@media (max-width: 860px) {
  .yg-grid-2, .yg-pillars, .yg-speed, .yg-stack, .yg-contact-grid { grid-template-columns: 1fr; }
  .yg-section { padding: 46px 0; }
  .yg-hero-lp { padding: 60px 0 50px; }
}

/* ── brand lockup: symbol + CSS wordmark ──────────────────
   The wordmark is text, not baked into the image, so the brand name can
   change without re-cutting a logo asset. */
.brand { display:inline-flex; align-items:center; gap:9px; }
.brand img { height:30px; width:30px; object-fit:contain; }
.brand span {
  font-size:18px; font-weight:800; letter-spacing:-.01em; line-height:1;
  color:#fff; white-space:nowrap;
}
.brand span i { font-style:normal; color:#39c5ef; }
.brand--dark span { color:#111c74; }
.brand--dark span i { color:#1c9eed; }
html[dir="rtl"] .brand { flex-direction:row-reverse; }
