/* ==========================================================================
   Guangda Handbag Factory — Core Stylesheet
   Design language: "Factory Ledger" — a working spec-sheet aesthetic drawn
   from cutting tickets, hardware swatches and stitch lines rather than a
   generic SaaS look. No external fonts, no framework — pure CSS, ~14KB.
   ========================================================================== */

:root{
  /* -- Palette -------------------------------------------------------- */
  --ink:        #211D18;   /* body text / near-black, warm not blue-black */
  --ink-soft:   #4B443B;   /* secondary text */
  --paper:      #ECE6D8;   /* page background — raw canvas tone */
  --paper-2:    #F7F3E9;   /* card / panel background */
  --paper-3:    #FFFFFF;
  --leather:    #6E3B23;   /* primary brand accent — saddle leather */
  --leather-dk: #4C2818;
  --leather-lt: #8A5836;
  --brass:      #A67C2E;   /* secondary accent — hardware brass */
  --brass-lt:   #C9A24C;
  --steel:      #2B333A;   /* dark section background */
  --steel-2:    #384049;
  --line:       #CBBFA0;   /* hairline border on paper */
  --line-dk:    #56606A;   /* hairline border on steel */
  --ok:         #3E6B4A;
  --focus:      #1D6FB8;

  --radius: 3px;
  --shadow-card: 0 1px 0 rgba(33,29,24,0.06);

  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Times New Roman", "Noto Serif", serif;
  --font-num:  "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1200px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  font-weight:700;
  line-height:1.15;
  margin:0 0 .5em;
  color:var(--ink);
}
h1{ font-size:clamp(2rem,4vw,3.2rem); }
h2{ font-size:clamp(1.5rem,2.6vw,2.2rem); }
h3{ font-size:1.25rem; }
p{ margin:0 0 1em; max-width:70ch; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
section{ padding:64px 0; }
.hairline{ border:0; border-top:1px solid var(--line); margin:0; }

:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* -- Utility label (spec-sheet tag, used ONLY where content is genuinely
      a code/spec, e.g. product SKU or a section id — not decoration) -- */
.tag{
  display:inline-block; font-family:var(--font-num); font-size:.72rem;
  letter-spacing:.03em; color:var(--brass); background:rgba(166,124,46,.1);
  border:1px solid rgba(166,124,46,.35); border-radius:2px; padding:2px 8px;
}

.btn{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  font-family:var(--font-body); font-weight:600; font-size:.95rem;
  padding:13px 26px; border-radius:var(--radius); border:1px solid transparent;
  cursor:pointer; text-decoration:none; transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--leather); color:#fff; }
.btn-primary:hover{ background:var(--leather-dk); box-shadow:0 3px 0 var(--brass); transform:translateY(-2px); }
.btn-primary:active{ transform:translateY(0); box-shadow:none; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-ghost:hover{ background:var(--ink); color:#fff; }
.btn-gold{ background:var(--brass); color:#211D18; }
.btn-gold:hover{ background:var(--brass-lt); }
.btn-on-dark{ background:var(--brass); color:#1c1608; }
.btn-on-dark:hover{ background:var(--brass-lt); }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 16px; font-size:.85rem; }

/* ==========================================================================
   Top utility bar — direct contact strip
   ========================================================================== */
.util-bar{
  background:var(--steel); color:#D8D4C8; font-size:.82rem;
}
.util-bar .container{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding-top:7px; padding-bottom:7px; flex-wrap:wrap;
}
.util-links{ display:flex; gap:18px; flex-wrap:wrap; }
.util-links a{
  display:inline-flex; align-items:center; gap:6px; text-decoration:none;
  color:#D8D4C8; transition:color .15s ease;
}
.util-links a:hover{ color:var(--brass-lt); }
.util-links svg{ width:15px; height:15px; flex:none; fill:currentColor; }
.util-note{ color:#9AA0A5; }

/* ==========================================================================
   Header / primary nav
   ========================================================================== */
.site-header{
  background:var(--paper-3); border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:60;
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; padding-top:14px; padding-bottom:14px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); }
.brand-mark{ width:40px; height:40px; flex:none; }
.brand-text{ font-family:var(--font-head); line-height:1.1; }
.brand-text strong{ display:block; font-size:1.15rem; letter-spacing:.01em; }
.brand-text span{ display:block; font-family:var(--font-body); font-size:.68rem; color:var(--ink-soft); letter-spacing:.04em; }

.main-nav{ display:flex; align-items:center; gap:28px; }
.main-nav a{
  text-decoration:none; color:var(--ink); font-size:.95rem; font-weight:600;
  padding:6px 2px; border-bottom:2px solid transparent; transition:border-color .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ border-bottom-color:var(--leather); }

.header-actions{ display:flex; align-items:center; gap:14px; }

.lang-switch{ position:relative; }
.lang-btn{
  display:flex; align-items:center; gap:6px; background:var(--paper-2);
  border:1px solid var(--line); border-radius:var(--radius); padding:8px 12px;
  font-size:.85rem; font-weight:600; cursor:pointer; color:var(--ink);
}
.lang-btn svg{ width:14px; height:14px; fill:currentColor; }
.lang-menu{
  position:absolute; top:calc(100% + 6px); right:0; background:#fff;
  border:1px solid var(--line); border-radius:var(--radius); min-width:190px;
  box-shadow:0 8px 24px rgba(33,29,24,.15); display:none; max-height:340px; overflow:auto;
  z-index:70;
}
html[dir="rtl"] .lang-menu{ right:auto; left:0; }
.lang-menu.open{ display:block; }
.lang-menu button{
  display:flex; width:100%; align-items:center; justify-content:space-between;
  background:none; border:0; text-align:left; padding:10px 14px; font-size:.88rem;
  cursor:pointer; color:var(--ink); border-bottom:1px solid var(--paper);
}
html[dir="rtl"] .lang-menu button{ text-align:right; }
.lang-menu button:hover{ background:var(--paper); }
.lang-menu button[aria-checked="true"]{ color:var(--leather); font-weight:700; }

.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:var(--radius);
  width:42px; height:38px; align-items:center; justify-content:center; cursor:pointer;
}
.nav-toggle svg{ width:20px; height:20px; }

@media (max-width: 980px){
  .main-nav{
    position:fixed; inset:64px 0 0 0; background:var(--paper-3); flex-direction:column;
    align-items:flex-start; padding:20px 24px; gap:4px; overflow:auto;
    transform:translateX(100%); transition:transform .2s ease; z-index:55;
  }
  html[dir="rtl"] .main-nav{ transform:translateX(-100%); }
  .main-nav.open{ transform:translateX(0); }
  .main-nav a{ width:100%; padding:14px 0; border-bottom:1px solid var(--paper); }
  .nav-toggle{ display:flex; }
  .header-actions .btn-primary.desktop-only{ display:none; }
}
@media (min-width:981px){ .nav-toggle{ display:none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  background:var(--steel); color:#EFEBDF; padding:0; overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; align-items:stretch; min-height:560px;
}
.hero-copy{ padding:72px 48px; display:flex; flex-direction:column; justify-content:center; }
.hero-eyebrow{ color:var(--brass-lt); font-weight:600; font-size:.85rem; margin-bottom:14px; }
.hero h1{ color:#fff; max-width:16ch; }
.hero-sub{ color:#C8C2B2; font-size:1.08rem; max-width:52ch; }
.hero-cta{ display:flex; gap:14px; margin-top:8px; flex-wrap:wrap; }
.hero-visual{
  position:relative; background:linear-gradient(155deg,#3A4149,#20262B);
  display:flex; align-items:center; justify-content:center; padding:32px;
}
.hero-visual svg{ width:100%; height:auto; max-width:520px; }

.spec-strip{ background:var(--leather); }
.spec-strip .container{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
}
.spec-item{
  padding:22px 20px; border-inline-start:1px solid rgba(255,255,255,.22); color:#fff; text-align:center;
}
.spec-item:first-child{ border-inline-start:0; }
.spec-num{ font-family:var(--font-num); font-size:1.7rem; font-weight:700; letter-spacing:-.02em; }
.spec-label{ font-size:.78rem; color:#EAD9BE; margin-top:2px; }
@media (max-width:820px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; min-height:240px; }
  .hero-copy{ padding:40px 24px; }
  .spec-strip .container{ grid-template-columns:repeat(2,1fr); }
  .spec-item:nth-child(3){ border-inline-start:0; }
}

/* ==========================================================================
   Generic section framing
   ========================================================================== */
.section-head{ max-width:64ch; margin-bottom:40px; }
.section-head .eyebrow{ color:var(--leather); font-weight:700; font-size:.82rem; letter-spacing:.02em; margin-bottom:8px; }
.section-alt{ background:var(--paper-2); }
.section-dark{ background:var(--steel); color:#E7E3D6; }
.section-dark h2, .section-dark h3{ color:#fff; }
.section-dark p{ color:#C6C1B2; }
.section-dark .hairline{ border-top-color:var(--line-dk); }

/* -- About / factory strengths grid -- */
.strength-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.strength-card{ background:var(--paper-2); padding:28px 22px; }
.strength-card svg{ width:34px; height:34px; fill:none; stroke:var(--leather); stroke-width:1.6; margin-bottom:14px; }
.strength-card h3{ font-size:1.05rem; margin-bottom:6px; }
.strength-card p{ font-size:.92rem; color:var(--ink-soft); margin:0; }
@media (max-width:900px){ .strength-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .strength-grid{ grid-template-columns:1fr; } }

/* -- OEM/ODM process stepper (genuinely sequential -> numbered ok) -- */
.process{ display:flex; gap:0; counter-reset:step; overflow-x:auto; padding-bottom:8px; }
.process-step{
  flex:1 1 190px; min-width:190px; position:relative; padding:0 20px 0 0; counter-increment:step;
}
.process-step::before{
  content:counter(step,decimal-leading-zero); font-family:var(--font-num); font-size:.78rem;
  color:var(--brass); display:block; margin-bottom:10px;
}
.process-step h3{ font-size:1rem; margin-bottom:6px; }
.process-step p{ font-size:.88rem; color:var(--ink-soft); }
.process-step:not(:last-child)::after{
  content:""; position:absolute; top:6px; right:8px; width:60%; border-top:1px dashed var(--line);
}
html[dir="rtl"] .process-step:not(:last-child)::after{ right:auto; left:8px; }
@media (max-width:860px){ .process{ flex-direction:column; } .process-step:not(:last-child)::after{ display:none; } }

/* -- Product grid -- */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:28px; }
.filter-chip{
  border:1px solid var(--line); background:var(--paper-2); border-radius:999px; padding:8px 16px;
  font-size:.85rem; font-weight:600; cursor:pointer; color:var(--ink-soft);
}
.filter-chip[aria-pressed="true"]{ background:var(--leather); border-color:var(--leather); color:#fff; }

.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.product-card{
  background:var(--paper-3); border:1px solid var(--line); overflow:hidden; text-decoration:none; color:var(--ink);
  display:flex; flex-direction:column; transition:box-shadow .18s ease, transform .18s ease;
}
.product-card:hover{ box-shadow:0 10px 24px rgba(33,29,24,.14); transform:translateY(-3px); }
.product-thumb{ aspect-ratio:4/3; background:var(--paper-2); overflow:hidden; position:relative; }
.product-thumb img{ width:100%; height:100%; object-fit:cover; }
.product-body{ padding:16px 18px 20px; display:flex; flex-direction:column; gap:6px; flex:1; }
.product-sku{ font-family:var(--font-num); font-size:.72rem; color:var(--brass); }
.product-body h3{ font-size:1rem; margin:0; }
.product-body p{ font-size:.85rem; color:var(--ink-soft); margin:0; }
.product-meta{ margin-top:auto; display:flex; justify-content:space-between; align-items:center; padding-top:10px; border-top:1px solid var(--paper); font-size:.8rem; }
@media (max-width:1040px){ .product-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .product-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .product-grid{ grid-template-columns:1fr; } }

/* -- Pagination -- */
.pagination{ display:flex; justify-content:center; gap:6px; margin-top:44px; flex-wrap:wrap; }
.pagination a, .pagination span{
  min-width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line); text-decoration:none; color:var(--ink); font-size:.88rem; padding:0 10px;
}
.pagination a:hover{ border-color:var(--leather); color:var(--leather); }
.pagination .current{ background:var(--leather); color:#fff; border-color:var(--leather); font-weight:700; }
.pagination .disabled{ color:#B7AF9B; }

/* -- Testimonials -- */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testi-card{ background:var(--paper-3); border:1px solid var(--line); padding:26px; }
.testi-quote{ font-family:var(--font-head); font-size:1.05rem; color:var(--ink); }
.testi-who{ display:flex; align-items:center; gap:12px; margin-top:16px; }
.testi-avatar{ width:42px; height:42px; border-radius:50%; background:var(--brass); flex:none; }
.testi-name{ font-weight:700; font-size:.9rem; }
.testi-loc{ font-size:.8rem; color:var(--ink-soft); }
@media (max-width:900px){ .testi-grid{ grid-template-columns:1fr; } }

/* -- Workshop gallery -- */
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.gallery-grid figure{ margin:0; aspect-ratio:1/1; overflow:hidden; background:var(--paper-2); }
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.gallery-grid a:hover img{ transform:scale(1.05); }
@media (max-width:760px){ .gallery-grid{ grid-template-columns:1fr 1fr; } }

/* -- Quote / lead form -- */
.form-card{ background:var(--paper-3); border:1px solid var(--line); padding:32px; }
.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; }
.form-field input, .form-field textarea, .form-field select{
  width:100%; border:1px solid var(--line); background:#fff; border-radius:var(--radius);
  padding:11px 13px; font-size:.95rem; font-family:var(--font-body); color:var(--ink);
}
.form-field input:focus, .form-field textarea:focus{ border-color:var(--leather); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }
.form-note{ font-size:.78rem; color:var(--ink-soft); margin-top:10px; }

/* -- Two column split (about / detail) -- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; gap:32px; } }
.stat-row{ display:flex; gap:32px; flex-wrap:wrap; margin-top:18px; }
.stat-row div{ min-width:110px; }
.stat-row .num{ font-family:var(--font-num); font-size:1.6rem; font-weight:700; color:var(--leather); }
.stat-row .lbl{ font-size:.78rem; color:var(--ink-soft); }

/* -- FAQ accordion -- */
.faq-list{ border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:0; padding:20px 4px;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  font-size:1rem; font-weight:700; cursor:pointer; color:var(--ink); font-family:var(--font-body);
}
html[dir="rtl"] .faq-q{ text-align:right; }
.faq-q svg{ width:18px; height:18px; flex:none; transition:transform .2s ease; stroke:var(--leather); }
.faq-q[aria-expanded="true"] svg{ transform:rotate(45deg); }
.faq-a{ display:none; padding:0 4px 22px; color:var(--ink-soft); max-width:78ch; }
.faq-a.open{ display:block; }
.faq-search{ margin-bottom:28px; }

/* -- Breadcrumb -- */
.breadcrumb{ font-size:.82rem; color:var(--ink-soft); padding:16px 0; }
.breadcrumb a{ text-decoration:none; color:var(--ink-soft); }
.breadcrumb a:hover{ color:var(--leather); }
.breadcrumb .sep{ margin:0 6px; }

/* -- Tags + prev/next (product/news detail) -- */
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.tag-pill{ font-size:.78rem; background:var(--paper-2); border:1px solid var(--line); padding:5px 12px; border-radius:999px; color:var(--ink-soft); text-decoration:none; }
.tag-pill:hover{ border-color:var(--leather); color:var(--leather); }
.prevnext{ display:grid; grid-template-columns:1fr 1fr; gap:16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:18px 0; margin:34px 0; }
.prevnext a{ text-decoration:none; color:var(--ink); font-size:.88rem; }
.prevnext .lbl{ display:block; font-size:.72rem; color:var(--ink-soft); margin-bottom:4px; }
.prevnext .next{ text-align:right; }
html[dir="rtl"] .prevnext .next{ text-align:left; }
@media (max-width:600px){ .prevnext{ grid-template-columns:1fr; } }

/* -- News list -- */
.news-list{ display:flex; flex-direction:column; }
.news-row{ display:grid; grid-template-columns:180px 1fr; gap:24px; padding:26px 0; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink); }
.news-thumb{ aspect-ratio:4/3; overflow:hidden; background:var(--paper-2); }
.news-thumb img{ width:100%; height:100%; object-fit:cover; }
.news-date{ font-family:var(--font-num); font-size:.78rem; color:var(--brass); }
.news-row h3{ margin:6px 0; font-size:1.1rem; }
.news-row p{ color:var(--ink-soft); font-size:.92rem; margin:0; }
@media (max-width:600px){ .news-row{ grid-template-columns:110px 1fr; gap:14px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background:var(--steel); color:#C6C1B2; padding-top:56px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; padding-bottom:40px; }
.footer-grid h4{ color:#fff; font-family:var(--font-body); font-size:.85rem; letter-spacing:.02em; margin-bottom:14px; }
.footer-grid a{ display:block; color:#B6B1A2; text-decoration:none; font-size:.88rem; margin-bottom:10px; }
.footer-grid a:hover{ color:var(--brass-lt); }
.footer-bottom{ border-top:1px solid var(--line-dk); padding:18px 0; font-size:.78rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; color:#8E9298; }
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   Floating global contact rail
   ========================================================================== */
.contact-rail{
  position:fixed; right:16px; top:50%; transform:translateY(-50%); z-index:80;
  display:flex; flex-direction:column; gap:8px; background:var(--paper-3);
  border:1px solid var(--line); border-radius:10px; padding:8px; box-shadow:0 8px 28px rgba(33,29,24,.2);
}
html[dir="rtl"] .contact-rail{ right:auto; left:16px; }
.rail-btn{
  width:46px; height:46px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  text-decoration:none; position:relative; background:var(--paper-2); border:1px solid var(--line);
}
.rail-btn svg{ width:22px; height:22px; fill:#fff; }
.rail-btn:hover{ filter:brightness(1.08); }
.rail-btn.whatsapp{ background:#25D366; border-color:#25D366; }
.rail-btn.wechat{ background:#2DC100; border-color:#2DC100; }
.rail-btn.line{ background:#06C755; border-color:#06C755; }
.rail-btn.messenger{ background:#0084FF; border-color:#0084FF; }
.rail-btn.telegram{ background:#26A5E4; border-color:#26A5E4; }
.rail-btn.email{ background:var(--leather); border-color:var(--leather); }
.rail-btn.chat{ background:var(--brass); border-color:var(--brass); }
.rail-tip{
  position:absolute; right:calc(100% + 10px); top:50%; transform:translateY(-50%);
  background:var(--ink); color:#fff; font-size:.76rem; padding:6px 10px; border-radius:4px;
  white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .15s ease;
}
html[dir="rtl"] .rail-tip{ right:auto; left:calc(100% + 10px); }
.rail-btn:hover .rail-tip, .rail-btn:focus-visible .rail-tip{ opacity:1; }

@media (max-width:900px){
  .contact-rail{ right:6px; padding:6px; gap:6px; }
  html[dir="rtl"] .contact-rail{ left:6px; }
  .rail-btn{ width:40px; height:40px; }
  .rail-btn svg{ width:19px; height:19px; }
  .rail-tip{ display:none; }
}

/* ==========================================================================
   RTL global adjustments (Arabic)
   ========================================================================== */
html[dir="rtl"] body{ text-align:right; }
html[dir="rtl"] .hero-cta, html[dir="rtl"] .util-links, html[dir="rtl"] .filter-bar{ flex-direction:row-reverse; }

/* -- Misc -- */
.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;
}
.center{ text-align:center; }
.mt-lg{ margin-top:48px; }
