/* ==========================================================================
   SinoWeave B2B — lightweight theme stylesheet
   No page builder. Designed for mobile-first B2B buyers in low-bandwidth markets.
   ========================================================================== */

:root {
  --navy: #102a3a;
  --navy-2: #1b3b4d;
  --teal: #0f7b73;
  --teal-light: #e6f4f1;
  --accent: #df8a3c;
  --ink: #1c2730;
  --muted: #64727d;
  --line: #dfe6e9;
  --bg: #f6f8f7;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(16, 42, 58, 0.08);
  --radius: 10px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 16px; font-weight: 700; color: var(--navy); }
h1 { font-size: 46px; letter-spacing: -0.02em; }
h2 { font-size: 34px; letter-spacing: -0.015em; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }
ul { margin: 0; padding-left: 20px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: 84px 0; }
.section--tint { background: var(--bg); }
.section--dark { background: var(--navy); color: #d8e3e8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section--dark .eyebrow { color: #6fd4c5; }
.section-sub { color: var(--muted); font-size: 17px; }
.section--dark .section-sub { color: #a8bfca; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 6px; font-weight: 700;
  font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: .2s ease;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #cb752f; color: #fff; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: #0b635c; color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfe0e6; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-links { display: flex; gap: 20px; align-items: center; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 7px; background: var(--navy);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px;
}
.brand-name { font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.brand-name small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--teal); margin-top: 4px; }
.primary-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.primary-nav a { font-weight: 600; font-size: 15px; color: var(--navy); }
.primary-nav a:hover, .primary-nav .current_page_item a { color: var(--teal); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  border-radius: 6px; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; }
.hero-copy {
  background: var(--navy); color: #d6e4e9; padding: 76px 6vw 76px max(20px, calc((100vw - var(--wrap)) / 2));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-copy h1 { color: #fff; max-width: 640px; }
.hero-copy h1 em { color: #7fd8c8; font-style: normal; }
.hero-copy p { max-width: 560px; font-size: 18px; color: #b9ced7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-media { position: relative; min-height: 420px; background: var(--navy-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-badge {
  position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff;
  padding: 18px 26px; font-weight: 700; max-width: 280px; line-height: 1.4;
}

/* Trust strip */
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 26px 22px; border-right: 1px solid var(--line); text-align: center; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 26px; color: var(--navy); line-height: 1.1; }
.trust-item span { font-size: 13px; color: var(--muted); }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.category-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 300px; display: flex; align-items: flex-end; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover img { transform: scale(1.05); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,42,58,0) 25%, rgba(16,42,58,.88) 100%); }
.category-card div { position: relative; z-index: 1; padding: 26px; color: #fff; }
.category-card h3 { color: #fff; margin-bottom: 6px; }
.category-card p { margin: 0; font-size: 14px; color: #d3e2e7; }

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.feature-num {
  width: 42px; height: 42px; border-radius: 8px; background: var(--teal-light); color: var(--teal);
  font-weight: 800; display: grid; place-items: center; margin-bottom: 18px;
}
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

.scene { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.scene-icon {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: var(--navy);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.scene h3 { font-size: 17px; margin-bottom: 6px; }
.scene p { color: var(--muted); font-size: 14px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; padding-top: 42px; }
.step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0;
  font-weight: 800; color: var(--accent); font-size: 15px; letter-spacing: .08em;
}
.step::after { content: ""; position: absolute; top: 7px; left: 38px; right: -8px; height: 1px; background: rgba(255,255,255,.22); }
.step:last-child::after { display: none; }
.step h3 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: #a8bfca; margin: 0; }

/* Product cards */
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.product-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.product-card h3 { font-size: 18px; margin: 8px 0 10px; }
.product-meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.product-meta span { display: block; }
.product-card .btn { margin-top: auto; }

/* Cases and quotes */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.case-country { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.case-card h3 { font-size: 19px; }
.case-result { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 12px 0; }
.case-card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.quote-card { background: #fff; border-left: 3px solid var(--accent); padding: 24px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.quote-card blockquote { margin: 0 0 14px; font-size: 16px; color: var(--ink); }
.quote-card cite { font-style: normal; font-size: 13px; color: var(--muted); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge { border: 1px solid var(--line); border-radius: 6px; padding: 14px 22px; font-weight: 700; color: var(--navy); background: #fff; font-size: 14px; }

/* Forms */
.inquiry-form { background: #fff; border-radius: var(--radius); padding: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.form-field label .req { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 5px; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.form-field textarea { min-height: 104px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid rgba(15,123,115,.3); border-color: var(--teal); }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 0; }
.form-feedback { margin-top: 14px; font-weight: 600; font-size: 14px; }
.form-feedback.ok { color: #0a7b5b; }
.form-feedback.err { color: #b42318; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact layout */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.contact-aside h3 { margin-bottom: 14px; }
.contact-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 0; }
.contact-block span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.contact-block p, .contact-block a { margin: 0; font-size: 16px; }

/* Inner page hero */
.page-hero { background: var(--navy); color: #c9dbe2; padding: 62px 0 66px; }
.page-hero h1 { color: #fff; font-size: 40px; margin-bottom: 10px; }
.page-hero p { max-width: 720px; color: #b4cbd5; font-size: 17px; margin: 0; }
.breadcrumb { font-size: 13px; color: #8fabb8; margin-bottom: 18px; }
.breadcrumb a { color: #cfe0e6; }

/* About / single content */
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 28px; }
.prose li { margin-bottom: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font-size: 30px; color: var(--navy); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

/* Floating contact */
.floating-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22); color: #fff; font-weight: 800; font-size: 14px;
}
.float-btn--wa { background: #25d366; color: #08291a; }
.float-btn--form { background: var(--accent); color: #fff; }
.mobile-bar { display: none; }

/* Footer */
.site-footer { background: #0c2130; color: #a9bfc9; padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer p, .site-footer li { font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand-name { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.open ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; }
  .primary-nav.open li { border-bottom: 1px solid var(--line); }
  .primary-nav.open a { display: block; padding: 12px 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .section { padding: 58px 0; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .topbar .wrap { min-height: 34px; font-size: 12px; }
  .topbar-links a:first-child { display: none; }
  .site-header .wrap { min-height: 64px; }
  .header-cta .btn { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 52px 20px; }
  .hero-media { min-height: 260px; }
  .hero-badge { padding: 12px 18px; font-size: 13px; }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 46px 0 50px; }
  .page-hero h1 { font-size: 32px; }
  .inquiry-form { padding: 22px 18px; }
  .floating-cta { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-bar a { padding: 10px 4px 12px; text-align: center; font-size: 12px; font-weight: 700; color: var(--navy); }
  .mobile-bar a span { display: block; font-size: 18px; line-height: 1.2; }
  body { padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .topbar .wrap { justify-content: center; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
