/* ============================================================
   Textile B2B Inquiry Website — Global Design System
   style.css  v1.0  |  [Brand Name]  |  2026-10-29
   Palette: deep navy / charcoal + warm copper accent (2-3 colors)
   Font: Inter / Helvetica / Arial (sans-serif), body >= 16px
   Target: 360/390/414 mobile first, no horizontal scroll
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colors */
  --navy:      #1c2a44;   /* primary deep navy */
  --navy-dark: #141e33;
  --navy-light:#2c3e63;
  --charcoal:  #23262b;   /* secondary charcoal */
  --copper:    #c96f2f;   /* accent warm copper */
  --copper-dark:#a85a24;
  --copper-light:#e8945c;

  /* Neutrals */
  --bg:        #f6f7f9;
  --bg-alt:    #ffffff;
  --bg-dark:   #10151f;
  --line:      #dde1e6;
  --line-dark: #3a4250;
  --text:      #24292f;
  --text-muted:#5b6470;
  --text-light:#aab3bf;
  --text-invert:#f4f6f8;

  /* Status */
  --ok:        #1f7a3d;
  --warn:      #b45309;
  --err:       #b42318;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Type */
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.375rem;    /* 22px */
  --fs-xl: 1.75rem;     /* 28px */
  --fs-2xl: 2.25rem;    /* 36px */
  --fs-3xl: 3rem;       /* 48px */

  /* Layout */
  --container: 1200px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(16,21,31,.08), 0 4px 12px rgba(16,21,31,.06);
  --shadow-lg: 0 8px 28px rgba(16,21,31,.14);
  --transition: .2s ease;
  --header-h: 72px;
  --bottom-bar-h: 64px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper); }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.section { padding: var(--sp-7) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-invert); }
.section-head { max-width: 760px; margin-bottom: var(--sp-6); }
.section-head .kicker {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--copper);
  margin-bottom: var(--sp-2);
}
.section-head p { color: var(--text-muted); margin-bottom: 0; }
.text-center { text-align: center; }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); } .mb-4 { margin-bottom: var(--sp-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 10px 22px; border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 600;
  text-align: center; cursor: pointer; transition: all var(--transition);
}
.btn--primary { background: var(--copper); color: #fff; }
.btn--primary:hover { background: var(--copper-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-light); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 52px; padding: 14px 30px; font-size: var(--fs-md); }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: #fff;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.logo { font-size: var(--fs-md); font-weight: 700; color: #fff; letter-spacing: .02em; display: flex; align-items: center; gap: var(--sp-2); }
.logo:hover { color: var(--copper-light); }
.logo .logo-mark { width: 34px; height: 34px; border-radius: 6px; background: var(--copper); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.main-nav ul { display: flex; gap: var(--sp-4); align-items: center; }
.main-nav a { color: #dfe4ec; font-weight: 500; font-size: var(--fs-sm); padding: 8px 4px; position: relative; }
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after, .main-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--copper);
}
.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px; color: #fff; font-size: 22px; line-height: 1;
  width: 44px; height: 44px; cursor: pointer;
}
.nav-cta { display: inline-flex; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-dark); padding: var(--sp-4); border-top: 1px solid var(--line-dark);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line-dark); }
  .main-nav .nav-cta { margin-top: var(--sp-4); }
}

/* ---------- 6. Breadcrumb ---------- */
.breadcrumb { font-size: var(--fs-sm); color: var(--text-muted); padding: var(--sp-4) 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.breadcrumb li + li::before { content: "›"; margin-right: var(--sp-2); color: var(--text-light); }
.breadcrumb a:hover { color: var(--copper); }

/* ---------- 7. Hero (home) ---------- */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%); color: #fff; padding: var(--sp-8) 0 var(--sp-7); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(201,111,47,.35) 0%, rgba(201,111,47,0) 70%); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: var(--fs-3xl); margin-bottom: var(--sp-4); max-width: 900px; }
.hero .sub { font-size: var(--fs-lg); color: #d7dde7; max-width: 720px; margin-bottom: var(--sp-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---------- 8. Trust bar ---------- */
.trust-bar { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: var(--sp-5) 0; }
.trust-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-4); }
.trust-item { text-align: center; padding: var(--sp-3); }
.trust-item .num { font-size: var(--fs-xl); font-weight: 700; color: var(--navy); }
.trust-item .label { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- 9. Cards ---------- */
.card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4/3; background: #eef0f3; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: var(--fs-sm); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__title { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.card__meta { font-size: var(--fs-sm); color: var(--text-muted); }
.card__text { font-size: var(--fs-sm); color: var(--text-muted); flex: 1; }
.card__link { margin-top: var(--sp-3); font-weight: 600; color: var(--copper); }

/* ---------- 10. Why-us / feature ---------- */
.feature { text-align: center; padding: var(--sp-5) var(--sp-4); }
.feature .icon {
  width: 56px; height: 56px; margin: 0 auto var(--sp-4); border-radius: 12px;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.feature h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.feature p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 0; }

/* ---------- 11. Applications tiles ---------- */
.app-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background: var(--navy-light); display: flex; align-items: flex-end; text-decoration: none;
}
.app-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,21,31,.72), transparent 55%); }
.app-tile span {
  position: relative; z-index: 1; display: block; padding: var(--sp-4);
  color: #fff; font-weight: 600; font-size: var(--fs-md);
}
.app-tile:hover span { color: var(--copper-light); }

/* ---------- 12. Factory ---------- */
.factory-media { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-4); }
.media-box { border-radius: var(--radius); background: #eef0f3; min-height: 200px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); border: 1px dashed var(--line); }
.video-box { position: relative; aspect-ratio: 16/9; background: #141e33; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #fff; }
.video-box .play { width: 60px; height: 60px; border-radius: 50%; background: var(--copper); display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* ---------- 13. Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.cert-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); text-align: center; }
.cert-card .cert-name { font-weight: 700; color: var(--navy); }
.cert-card .cert-scope { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-2); }

/* ---------- 14. Markets ---------- */
.market-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); }
.market-card h3 { margin-bottom: var(--sp-2); }
.market-card ul { font-size: var(--fs-sm); color: var(--text-muted); }
.market-card li { padding: 4px 0 4px 18px; position: relative; }
.market-card li::before { content: "✓"; position: absolute; left: 0; color: var(--copper); }

/* ---------- 15. Testimonials ---------- */
.testimonial { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0 0 var(--sp-4); font-size: var(--fs-md); color: var(--text); font-style: italic; }
.testimonial figcaption { font-size: var(--fs-sm); color: var(--text-muted); }
.testimonial figcaption strong { color: var(--navy); display: block; }

/* ---------- 16. FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: var(--sp-3); padding: var(--sp-4) var(--sp-5); cursor: pointer;
}
.faq summary { font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--copper); transition: transform var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { margin-top: var(--sp-3); color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- 17. Tables (spec) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec {
  width: 100%; border-collapse: collapse; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm);
}
.spec th, .spec td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 34%; background: #f0f2f5; color: var(--navy); font-weight: 600; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }

/* ---------- 18. Forms ---------- */
.form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--sp-6); }
.form .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.form .form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.form label { font-weight: 600; font-size: var(--fs-sm); color: var(--navy); }
.form .req { color: var(--copper); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font-family: var(--font-sans);
  font-size: var(--fs-base); color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--copper); box-shadow: 0 0 0 3px rgba(201,111,47,.18); outline: none;
}
.form .hint { font-size: var(--fs-xs); color: var(--text-muted); }
.form .form-note { font-size: var(--fs-sm); color: var(--text-muted); }
.form .form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-4); }

/* ---------- 19. Contact blocks ---------- */
.contact-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-6); }
.contact-method { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); text-align: center; }
.contact-method .icon { font-size: 28px; margin-bottom: var(--sp-2); }
.contact-method .value { font-weight: 600; color: var(--navy); }

/* ---------- 20. Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--text-light); padding: var(--sp-7) 0 var(--sp-9); font-size: var(--fs-sm); }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--sp-6); }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.site-footer a { color: var(--text-light); display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--copper-light); }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: var(--sp-6); padding-top: var(--sp-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-xs); }
@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 21. WhatsApp float button ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(var(--bottom-bar-h) + 14px); z-index: 200;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; font-weight: 600; font-size: var(--fs-sm);
  padding: 12px 18px; border-radius: 40px; box-shadow: var(--shadow-lg);
  text-decoration: none; transition: transform var(--transition), background var(--transition);
}
.wa-float:hover { background: #1eb455; color: #fff; transform: translateY(-2px); }
.wa-float .wa-icon { font-size: 22px; line-height: 1; }

/* ---------- 22. Mobile bottom bar (fixed WhatsApp + Inquiry) ---------- */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    height: var(--bottom-bar-h); background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(16,21,31,.08);
  }
  .mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); min-height: 44px; }
  .mobile-bar .m-wa { color: #128c46; }
  .mobile-bar .m-inquiry { background: var(--copper); color: #fff; }
  body { padding-bottom: var(--bottom-bar-h); }
  .wa-float { bottom: calc(var(--bottom-bar-h) + 14px); }
}

/* ---------- 23. Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: var(--sp-7) 0 var(--sp-6); }
.page-hero h1 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.page-hero p { color: #d7dde7; max-width: 780px; margin-bottom: 0; }

/* ---------- 24. Quick facts strip (product pages) ---------- */
.quick-facts { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--sp-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); }
.qf-item .qf-label { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.qf-item .qf-value { font-weight: 700; color: var(--navy); }

/* ---------- 25. Color swatches ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.swatch { width: 64px; text-align: center; font-size: var(--fs-xs); color: var(--text-muted); }
.swatch .dot { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); margin: 0 auto 4px; }

/* ---------- 26. Blog teaser / guide list ---------- */
.guide-list .guide-item { display: flex; gap: var(--sp-4); align-items: baseline; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.guide-item .tag { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 700; color: var(--copper); }
.guide-item h3 { font-size: var(--fs-md); margin-bottom: 4px; }

/* ---------- 27. Utilities / misc ---------- */
.text-muted { color: var(--text-muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--sp-6) 0; }
.placeholder-note {
  background: #fff8ef; border: 1px dashed var(--copper); color: var(--warn);
  border-radius: var(--radius); padding: 10px 14px; font-size: var(--fs-sm); margin: var(--sp-4) 0;
}

/* ---------- 28. Responsive (grid collapse) ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .factory-media { grid-template-columns: 1fr; }
  .form .form-grid { grid-template-columns: 1fr; }
  .hero { padding: var(--sp-6) 0; }
  h1 { font-size: var(--fs-xl); }
  .hero h1 { font-size: var(--fs-2xl); }
}
@media (max-width: 480px) {
  .grid-6 { grid-template-columns: 1fr; }
  .section { padding: var(--sp-6) 0; }
}

/* ---------- 29. Accessibility (WCAG 2.1 AA basics) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============ Gallery (product pages) ============ */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-4);margin-top:var(--sp-5)}
.gallery-item{background:#f3f4f6;border:1px dashed #d1d5db;border-radius:8px;min-height:140px;display:flex;align-items:center;justify-content:center;padding:var(--sp-4);text-align:center;color:#6b7280;font-size:var(--fs-sm)}
@media(max-width:767px){.gallery{grid-template-columns:repeat(2,1fr)}}
