/* ============================================================
   Jiaren Da Trading Limited — Official Website
   Shared stylesheet
   ============================================================ */

:root {
  --navy: #0d2a4a;
  --navy-2: #12365f;
  --blue: #1d6fb8;
  --blue-light: #3a8fd6;
  --gold: #c9a35c;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-soft-2: #eef3f9;
  --text: #1e2935;
  --text-soft: #5a6675;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(13, 42, 74, 0.08);
  --shadow-sm: 0 4px 14px rgba(13, 42, 74, 0.06);
  --max: 1160px;
  --font: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Segoe UI",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.lang-cn {
  color: var(--text-soft);
  font-weight: 400;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.brand-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  color: var(--navy);
}

.brand-text span {
  font-size: 12px;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 130%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(201, 163, 92, 0.25), transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  padding: 84px 24px 90px;
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 8px;
  font-weight: 700;
}

.hero h1 .cn {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 10px;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 18px 0 30px;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: #d8b673;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(4px);
}

.hero-card h3 {
  margin: 0 0 18px;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  font-size: 14px;
}

.hero-card dt {
  color: rgba(255, 255, 255, 0.6);
}

.hero-card dd {
  margin: 0;
  color: #fff;
  font-weight: 500;
  text-align: right;
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-head .eyebrow {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.section-head h2 {
  font-size: 32px;
  margin: 10px 0 12px;
  color: var(--navy);
}

.section-head p {
  color: var(--text-soft);
  font-size: 16px;
  margin: 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-grid h2 {
  color: var(--navy);
  font-size: 30px;
  margin-top: 0;
}

.about-grid p {
  color: var(--text-soft);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  font-size: 28px;
  color: var(--blue);
  line-height: 1;
}

.stat span {
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- Services / Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--bg-soft-2);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Why us ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature .tick {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(29, 111, 184, 0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.feature h4 {
  margin: 2px 0 4px;
  color: var(--navy);
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Credentials (key for Google verification) ---------- */
.creds {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}

.creds .section-head h2 {
  color: #fff;
}

.creds .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.creds .section-head .eyebrow {
  color: var(--gold);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cred {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.cred dt {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.cred dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info dl {
  display: grid;
  grid-template-columns: 36px 1fr;
  row-gap: 22px;
  column-gap: 14px;
  margin: 0;
}

.contact-info .ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-soft-2);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.contact-info dt {
  font-size: 13px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info dd {
  margin: 2px 0 0;
  font-weight: 500;
  color: var(--navy);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 340px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a2038;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand strong {
  color: #fff;
  font-size: 17px;
  display: block;
  margin-bottom: 4px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 64px 0 80px;
}

.legal h1 {
  color: var(--navy);
  font-size: 34px;
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal h2 {
  color: var(--navy);
  font-size: 22px;
  margin-top: 38px;
}

.legal p,
.legal li {
  color: var(--text-soft);
}

.legal a {
  color: var(--blue);
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .cred-grid,
  .feature-list,
  .footer-top,
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 34px;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta {
    text-align: center;
    margin-top: 10px;
  }
  .nav-toggle {
    display: block;
  }
  .footer-bottom {
    flex-direction: column;
  }
}
