/* ==========================================================================
   China Supply Office — styles
   Swiss minimal: one typeface, a 12-column grid, thin rules, restrained gold.
   ========================================================================== */

:root {
  --ink: #17191C;
  --white: #FFFFFF;
  --soft: #F6F7F7;
  --gray: #555E67;
  --border: #E5E7EB;
  --gold: #8A682C;          /* on light backgrounds */
  --gold-light: #D2AE69;    /* on dark backgrounds */
  --ink-2: #2A2D31;         /* button hover */
  --dark-text: #C9CDD2;     /* body text on ink */
  --dark-border: #34383D;   /* rules on ink */

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: 20px;           /* side padding */
  --gap: 16px;              /* grid column gap */
  --header-h: 64px;
  --section-y: 72px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --gap: 24px;
    --header-h: 72px;
    --section-y: 104px;
  }
}

@media (min-width: 1200px) {
  :root { --section-y: 136px; }
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}
.section-dark :focus-visible { outline-color: var(--gold-light); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 12-column grid on desktop; children stack below 1024px */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

.section { padding-block: var(--section-y); }
.section-gray { background: var(--soft); }
.section-dark { background: var(--ink); color: var(--white); }

/* ---------- Typography ---------- */

.eyebrow,
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow { color: var(--gold); }
.label { color: var(--gray); }
.eyebrow::before,
.label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.section-dark .label { color: var(--gold-light); }
.section-dark .label::before { background: var(--gold-light); }

h1 {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
}
@media (max-width: 359px) {
  h1 { font-size: 36px; }
}
@media (min-width: 768px) {
  h1 { font-size: 56px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 64px; }
}

h2 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 20px;
  text-wrap: balance;
}
@media (min-width: 768px) {
  h2 { font-size: 40px; }
}
@media (min-width: 1200px) {
  h2 { font-size: 44px; }
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .lead { font-size: 22px; }
}

.num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--ink-2); }
.btn-arrow {
  color: var(--gold-light);
  flex: none;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  gap: 10px;
  font-size: 15px;
}

/* On the dark contact section the primary button inverts */
.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-light:hover { background: var(--soft); }
.btn-light .btn-arrow { color: var(--gold); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover .btn-arrow { transform: none; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 12px;
}

.site-nav { display: none; }

@media (min-width: 1024px) {
  .wordmark { font-size: 15px; }
  .site-nav { display: block; margin-left: auto; }
  .site-nav ul { display: flex; gap: 32px; }
  .site-nav a {
    display: inline-block;
    padding-block: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .site-nav a:hover { color: var(--ink); }
  .header-inner .btn { margin-left: 16px; }
}

/* Phones: shorten the header button to "Quote" (full CTA sits in the hero) */
@media (max-width: 479px) {
  .hide-xs { display: none; }
  .header-inner .btn-sm { padding: 0 14px; }
}
@media (max-width: 359px) {
  .wordmark { font-size: 12px; letter-spacing: 0.1em; }
  .contact-chat .contact-value { font-size: 16px; padding-inline: 16px; }
}
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Hero ---------- */

.hero {
  padding-block: 48px 64px;
}
@media (min-width: 768px) {
  .hero { padding-block: 96px 112px; }
}
@media (min-width: 1200px) {
  .hero { padding-block: 128px 144px; }
}

.hero .grid { row-gap: 48px; align-items: end; }

.hero-copy h1 { margin-top: 24px; }
.hero-lead {
  margin-top: 24px;
  max-width: 36em;
  color: var(--gray);
  font-size: 17px;
}
@media (min-width: 768px) {
  .hero-copy h1 { margin-top: 28px; max-width: 11em; }
  .hero-lead { margin-top: 32px; font-size: 19px; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .hero-actions { margin-top: 40px; }
}
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

.hero-panel {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.panel-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.panel-list { margin-top: 12px; }
.panel-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

@media (min-width: 1024px) {
  .hero-copy { grid-column: 1 / span 8; }
  .hero-panel { grid-column: 9 / span 4; }
}

/* ---------- Section heads ---------- */

.section-head { row-gap: 24px; align-items: end; }
@media (min-width: 1024px) {
  .head-main { grid-column: 1 / span 7; }
  .head-intro { grid-column: 8 / span 5; }
}
.head-intro { color: var(--gray); max-width: 34em; }

/* ---------- Services ---------- */

.services {
  margin-top: 48px;
  row-gap: 0;
}
@media (min-width: 768px) {
  .services { margin-top: 72px; }
}

.service {
  border-top: 1px solid var(--ink);
  padding-block: 24px 32px;
}
.service h3 { margin-top: 16px; }
.service p { margin-top: 12px; color: var(--gray); }

/* Tablet: number + title left, text right */
@media (min-width: 640px) and (max-width: 1023px) {
  .service {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr);
    column-gap: 24px;
    align-items: baseline;
  }
  .service h3, .service p { margin-top: 0; }
}

@media (min-width: 1024px) {
  .services { column-gap: var(--gap); }
  .service { grid-column: span 4; padding-bottom: 0; padding-right: 24px; }
  .service h3 { margin-top: 40px; }
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px var(--gap);
  margin-top: 40px;
  counter-reset: none;
}
@media (min-width: 768px) {
  .steps { margin-top: 64px; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.step {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}
.step-num {
  display: block;
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.step h3 {
  margin-top: 20px;
  font-size: 16px;
}
.step p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray);
}
@media (min-width: 768px) {
  .step { padding-top: 24px; }
  .step-num { font-size: 44px; }
  .step h3 { margin-top: 32px; font-size: 19px; }
  .step p { font-size: 16px; margin-top: 12px; padding-right: 16px; }
}

/* ---------- About ---------- */

.about-body { margin-top: 16px; }
.about-body p + p { margin-top: 20px; }
.about-body p:not(.lead) { color: var(--gray); }
.about-body .lead { margin-bottom: 8px; }

@media (min-width: 1024px) {
  .about-head { grid-column: 1 / span 5; }
  .about-body { grid-column: 7 / span 6; margin-top: 52px; }
}

/* ---------- Contact ---------- */

.contact-intro .lead { margin-top: 28px; color: var(--white); }
.contact-intro p:not(.lead):not(.label) {
  margin-top: 12px;
  color: var(--dark-text);
  max-width: 32em;
}
.contact-intro .btn { margin-top: 32px; }
@media (max-width: 479px) {
  .contact-intro .btn { width: 100%; }
}

.contact-details { margin-top: 32px; }

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 16px;
  border-top: 1px solid var(--dark-border);
}
.contact-list li:last-child { border-bottom: 1px solid var(--dark-border); }

.contact-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.contact-value {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--dark-border);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.2s ease;
}
.contact-value:hover { text-decoration-color: var(--gold-light); }
@media (min-width: 768px) {
  .contact-value { font-size: 20px; }
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 32px;
  max-width: 440px;
}
.qr img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--white);
  padding: 10px;
  border-radius: 2px;
}
.qr figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--dark-text);
}
.qr figcaption strong { color: var(--white); font-weight: 600; font-size: 15px; }

.chat-arrow { display: none; }
.qr-note { display: none; }

/* Phones: WhatsApp & WeChat become large tap buttons at the top of the list;
   email follows; QR codes shrink into a secondary row. Tablet/desktop unchanged. */
@media (max-width: 767px) {
  .contact-list { display: flex; flex-direction: column; }
  .contact-whatsapp { order: 1; }
  .contact-wechat { order: 2; }
  .contact-email { order: 3; }

  .contact-list li.contact-chat {
    padding-block: 0 12px;
    border: 0;
  }
  .contact-chat .contact-label { display: none; }
  .contact-chat .contact-value {
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: 1px solid var(--gray);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 0.2s ease;
  }
  .contact-chat .contact-value:hover { border-color: var(--gold-light); }
  .contact-chat .contact-value { padding-block: 10px; }
  .chat-arrow { display: block; flex: none; color: var(--gold-light); }

  .contact-email { margin-top: 12px; }
  .contact-list li.contact-email { border-bottom: 1px solid var(--dark-border); }

  .qr-note {
    display: block;
    margin-top: 32px;
    font-size: 14px;
    color: var(--dark-text);
  }
  .qr-grid {
    margin-top: 12px;
    max-width: 260px;
    gap: 16px;
  }
  .qr img { padding: 6px; }
  .qr figcaption { margin-top: 8px; font-size: 13px; }
  .qr figcaption strong { font-size: 14px; }
}

@media (min-width: 1024px) {
  .contact-intro { grid-column: 1 / span 6; }
  .contact-details { grid-column: 8 / span 5; margin-top: 52px; }
  .qr-grid { margin-top: 40px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  gap: 40px;
  padding-bottom: 40px;
}
@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    align-items: center;
  }
  .footer-brand { grid-column: 1 / span 7; }
  .footer-nav { grid-column: 8 / span 5; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  width: 112px;
  height: 112px;
  flex: none;
}
@media (min-width: 768px) {
  .footer-logo { width: 136px; height: 136px; }
}
.footer-wordmark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
@media (min-width: 1024px) {
  .footer-nav ul { justify-content: flex-end; }
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--gray);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray);
}
/* keep the rule inside the content width */
.footer-bottom { border-top: 0; position: relative; }
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--border);
}
