/* =========================================================
   Zhengda Trading LLC — Corporate Website
   Modern & clean B2B textile theme
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-surface-2: #eef2f7;
  --color-ink: #16202c;
  --color-ink-soft: #455263;
  --color-muted: #6b7787;
  --color-border: #e2e8f0;
  --color-primary: #0f4c81;     /* deep textile blue */
  --color-primary-dark: #0a3a63;
  --color-primary-soft: #e7eef6;
  --color-accent: #c8932a;      /* muted gold */
  --color-white: #ffffff;

  --maxw: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16, 32, 44, .06), 0 1px 2px rgba(16, 32, 44, .04);
  --shadow-md: 0 8px 24px rgba(16, 32, 44, .08);
  --shadow-lg: 0 18px 48px rgba(16, 32, 44, .12);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --t-fast: .18s ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--color-ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tint { background: var(--color-surface); }
.section--ink { background: var(--color-primary-dark); color: #dbe6f1; }
.section--ink h2, .section--ink h3 { color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-primary); color: #fff; padding: 10px 16px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: all var(--t-fast);
  white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }
.btn--light { background: #fff; color: var(--color-primary-dark); }
.btn--light:hover { background: #f0f4f9; color: var(--color-primary-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--color-ink); letter-spacing: -.01em; }
.brand:hover { color: var(--color-ink); }
.brand__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand__name { font-size: 1.05rem; line-height: 1.1; }
.brand__name span { display: block; font-size: .68rem; font-weight: 600; color: var(--color-muted); letter-spacing: .08em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) {
  display: block; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .94rem; color: var(--color-ink-soft);
}
.nav__links a:not(.btn):hover, .nav__links a:not(.btn)[aria-current="page"] { color: var(--color-primary); background: var(--color-primary-soft); }
.nav__cta { margin-left: 8px; }
.nav__cta .btn { font-size: .9rem; padding: .65rem 1.3rem; }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--color-border); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--color-ink); position: relative; transition: var(--t-fast);
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--color-border); padding: 12px 16px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 14px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #eaf1f8; overflow: hidden;
  background: linear-gradient(135deg, #0f4c81 0%, #0a3a63 55%, #07294a 100%);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(10,58,99,.94) 0%, rgba(7,41,74,.86) 50%, rgba(15,76,129,.72) 100%); }
.hero__weave { position: absolute; inset: 0; opacity: .14; pointer-events: none; z-index: 2; }
.hero .container { position: relative; z-index: 3; }
.hero__inner { position: relative; padding: 96px 0 104px; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p.lead { font-size: 1.2rem; color: #cfe0f0; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 18px;
}
.hero .eyebrow { color: #f0c976; }

/* ---------- Generic page header ---------- */
.page-head {
  background: linear-gradient(135deg, #0f4c81, #0a3a63); color: #fff; padding: 64px 0;
  position: relative; overflow: hidden;
}
.page-head__weave { position: absolute; inset: 0; opacity: .12; }
.page-head h1 { color: #fff; position: relative; }
.page-head p { color: #cfe0f0; max-width: 640px; margin: 0; position: relative; font-size: 1.1rem; }
.breadcrumb { position: relative; font-size: .85rem; color: #9fbcd8; margin-bottom: 14px; }
.breadcrumb a { color: #cfe0f0; }

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--color-ink-soft); font-size: 1.08rem; margin: 0; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform var(--t-fast), box-shadow var(--t-fast);
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--color-primary);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--color-ink-soft); margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--color-primary); letter-spacing: -.02em; }
.section--ink .stat__num { color: #f0c976; }
.stat__label { font-size: .92rem; color: var(--color-ink-soft); }
.section--ink .stat__label { color: #cfe0f0; }

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.media-card {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.media-card--photo { aspect-ratio: 4 / 3; }
.media-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.swatch { aspect-ratio: 1 / 1; }

/* ---------- Full-width photo banner ---------- */
.banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }
.banner img { display: block; width: 100%; height: clamp(220px, 34vw, 380px); object-fit: cover; }
.banner figcaption { background: #fff; padding: 14px 20px; font-size: .9rem; color: var(--color-muted); }

/* ---------- Product grid ---------- */
.product { display: flex; flex-direction: column; }
.product__visual { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; position: relative; background: var(--color-surface-2); }
.product__visual svg { width: 100%; height: 100%; }
.product__visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.product:hover .product__visual img { transform: scale(1.04); }
.product__body {
  border: 1px solid var(--color-border); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px; background: #fff; flex: 1; display: flex; flex-direction: column;
}
.product__tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-primary); background: var(--color-primary-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.product__body h3 { font-size: 1.12rem; margin-bottom: .35em; }
.product__body p { color: var(--color-ink-soft); font-size: .95rem; margin: 0 0 14px; }
.product__specs { list-style: none; padding: 0; margin: auto 0 0; font-size: .85rem; color: var(--color-muted); }
.product__specs li { padding: 4px 0; border-top: 1px dashed var(--color-border); }

/* ---------- Tag pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pills li {
  background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 16px;
  font-size: .9rem; font-weight: 600; color: var(--color-ink-soft);
}

/* ---------- Steps / timeline ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  counter-increment: step; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .2em; }
.step p { margin: 0; color: var(--color-ink-soft); }

/* ---------- Logos / subsidiaries ---------- */
.org-card { display: flex; gap: 16px; align-items: flex-start; }
.org-card__badge {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 10px; background: var(--color-primary-soft);
  color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.org-card h3 { font-size: 1.05rem; margin-bottom: .25em; }
.org-card p { font-size: .92rem; color: var(--color-ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0f4c81, #0a3a63); color: #fff; border-radius: var(--radius);
  padding: 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0f0; max-width: 560px; margin: 0 auto 24px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; color: var(--color-ink); background: #fff; transition: border-color var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); }
.field textarea { min-height: 130px; resize: vertical; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--color-border); }
.info-row:first-child { border-top: 0; }
.info-row .ico { flex: 0 0 auto; color: var(--color-primary); margin-top: 2px; }
.info-row strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); font-weight: 700; }
.placeholder { color: var(--color-accent); font-style: italic; }
.form-note { font-size: .82rem; color: var(--color-muted); }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 800px; }
.prose h2 { margin-top: 2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--color-ink-soft); }
.prose .muted { color: var(--color-muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1722; color: #9fb0c2; padding: 64px 0 28px; font-size: .92rem; }
.site-footer a { color: #c4d2e0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; font-weight: 800; }
.footer-brand .brand__mark { width: 38px; height: 38px; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: .85rem; color: #7d8fa0;
}
.footer-bottom a { color: #9fb0c2; }
.footer-disclaimer { color: #6b7a8c; font-size: .82rem; line-height: 1.6; margin-top: 18px; max-width: 520px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--color-ink-soft); }
.divider { height: 1px; background: var(--color-border); border: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
