/* ============================================================
   Yidebao Furniture — Hotel Sofa Manufacturer
   Shared stylesheet (design tokens + components)
   Site: 东莞市益德宝家具有限公司 · 酒店沙发 · 中东 B2B
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ink: #1B2A33;
  --ink-soft: #24353F;
  --brass: #A9834F;
  --brass-soft: #C9AB7C;
  --sand: #F6F2EC;
  --paper: #FFFFFF;
  --text: #2C3A42;
  --muted: #6B7A83;
  --line: #E2DBD1;
  --shadow: 0 6px 18px rgba(27, 45, 51, 0.08);
  --shadow-lg: 0 18px 40px rgba(27, 45, 51, 0.14);
  --radius: 8px;
  --container: 1200px;
  --font-head: "Marcellus", "Noto Serif SC", Georgia, serif;
  --font-body: "Inter", "Noto Sans SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-fa: "Vazirmatn", Tahoma, Arial, sans-serif;
  --max-line: 76ch;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--paper); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; font-weight: 500; }
p { max-width: var(--max-line); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow { font-family: var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; color: var(--brass); font-weight: 600; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; min-height: 46px; border: 1px solid transparent; font-family: var(--font-body); white-space: nowrap; }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brass); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(169,131,79,.35); }
.btn-outline { border-color: var(--brass); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--sand); border-color: var(--brass-soft); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; flex: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: var(--font-head); font-size: 19px; color: var(--ink); line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

/* Inline nav — one line from 1100px up */
.nav { display: flex; align-items: center; gap: 0; white-space: nowrap; flex: 1; justify-content: flex-end; }
.nav a.nav-link,
.nav .lang-switch a,
.nav .has-drop > a,
.header-cta { white-space: nowrap; }
.nav a.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 9px; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.nav a.nav-link:hover { color: var(--brass); background: var(--sand); }
.nav a.nav-link.active { color: var(--brass); }
.has-drop { position: relative; }
.has-drop > a::after { content: ""; display: inline-block; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-left: 4px; transform: translateY(2px); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 10px; display: none; z-index: 300; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: normal; }
.dropdown a:hover { background: var(--sand); color: var(--brass); }
.dropdown a small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }

.lang-switch { display: flex; align-items: center; gap: 1px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.lang-switch a { font-size: 12.5px; font-weight: 600; padding: 5px 6px; color: var(--muted); text-decoration: none; border-radius: 4px; }
.lang-switch a:hover { color: var(--ink); background: var(--sand); }
.lang-switch a.active { color: var(--brass); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

.header-cta { margin-left: 8px; padding: 10px 16px; font-size: 14px; min-height: 42px; flex: none; }

/* Mobile menu: collapse everything into a button below 1100px (covers tablets too) */
@media (max-width: 1100px) {
  .nav { display: none; position: fixed; inset: 72px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 22px 22px; flex-direction: column; align-items: stretch; gap: 4px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav a.nav-link { width: 100%; justify-content: space-between; padding: 13px 8px; }
  .has-drop { position: static; }
  .dropdown { position: static; display: none; min-width: 0; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
  .has-drop.open .dropdown { display: block; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: 0; padding: 10px 8px; border-top: 1px solid var(--line); margin-top: 8px; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #EDEAE3; padding: 0; background-image: linear-gradient(100deg, rgba(27,45,51,.97) 55%, rgba(27,45,51,.72) 78%, rgba(27,45,51,.35)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1600&q=80'); background-size: cover; background-position: center; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 96px 0; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brass-soft); }
.hero .lead { font-size: 18px; color: #CBD5D0; max-width: 52ch; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 22px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.hero-fact b { display: block; font-family: var(--font-head); font-size: 24px; color: #fff; }
.hero-fact span { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #9FB2B8; }
.hero-img { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 992px) { .hero-inner { grid-template-columns: 1fr; padding: 56px 0 48px; } .hero-img { order: -1; } }

/* ---------- Product cards ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 992px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 20px; }
.card-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-link { font-weight: 600; font-size: 14px; color: var(--brass); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.card-link:hover { color: var(--ink); }

/* ---------- Why / features ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 992px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { background: var(--sand); border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px; }
.why-item .ico { color: var(--brass); margin-bottom: 12px; }
.why-item h3 { font-size: 17px; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--muted); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 24px 18px 20px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 30px; color: var(--brass); display: block; margin-bottom: 10px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }
@media (max-width: 992px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Projects / factory ---------- */
.project-card .meta { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.qc-list { list-style: none; }
.qc-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: flex-start; }
.qc-list svg { color: var(--brass); flex: none; margin-top: 3px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: 10px; box-shadow: var(--shadow-lg); }
@media (max-width: 992px) { .split { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: var(--paper); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--brass); line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 36px; max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--brass); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 15px; color: var(--text); background: #FCFAF6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); background: #fff; }
.field .err { color: #B2432E; font-size: 12.5px; display: none; margin-top: 4px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B2432E; }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-success { display: none; background: #EEF5EE; border: 1px solid #B9D5BB; color: #2C5E36; border-radius: 8px; padding: 14px 18px; font-size: 15px; text-align: center; margin-top: 16px; }
.form-success.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #E7EAE5; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: #B9C6CB; margin: 0 auto 26px; }
.cta-band .btn { margin: 0 6px 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9B7BC; padding: 60px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 36px; }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand-name { color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .06em; }
.footer-col a { display: block; color: #A9B8BD; text-decoration: none; padding: 4px 0; font-size: 14px; }
.footer-col a:hover { color: var(--brass-soft); }
.footer-contact li { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 14px; color: #A9B8BD; }
.footer-contact svg { color: var(--brass-soft); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }
.footer-bottom a { color: #A9B8BD; }
.footer-bottom .lang-inline a { margin: 0 6px; }

/* ---------- Stick CTA (mobile) ---------- */
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.sticky-cta .btn { width: 100%; }
@media (max-width: 640px) { body.has-sticky .sticky-cta { display: block; } body.has-sticky { padding-bottom: 74px; } }

/* ---------- Utilities ---------- */
.bg-sand { background: var(--sand); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Print ---------- */
@media print { .site-header, .sticky-cta, .cta-band .btn { display: none !important; } body { background: #fff; } }