/* ============================================================
   ZHONGYUANMEI FURNITURE — main stylesheet
   Sections: base / header / hero / about / categories / showcase
             factory / service / news / contact / footer / responsive
   ============================================================ */

:root {
  --brown: #8b6b52;
  --brown-dark: #6f523e;
  --ink: #22201e;
  --muted: #716b64;
  --line: #e5e0d9;
  --paper: #ffffff;
  --sand: #f7f4ef;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.section { padding: 88px 0; }

/* ---------- shared headings ---------- */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head.left { text-align: left; }
.eyebrow { color: var(--brown); font-size: 12px; letter-spacing: .28em; font-weight: 600; margin: 0 0 8px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.2;
}
.section-head p:not(.eyebrow) { color: var(--muted); margin: 10px 0 0; }
.text-link { color: var(--brown); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.text-link:hover { color: var(--brown-dark); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-logo { display: block; height: 44px; width: auto; object-fit: contain; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 3px;
  background: var(--brown); color: #fff; font-weight: 700; font-size: 17px;
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .08em; line-height: 1.15; }
.brand-name small { display: block; font-size: 8px; letter-spacing: .34em; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 13px; font-weight: 500; color: var(--muted); padding: 24px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--ink); border-color: var(--brown); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch select { border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; background: #fff; font-size: 12px; }
.icon-btn, .menu-btn { border: 0; background: transparent; color: var(--ink); padding: 6px; display: grid; place-items: center; }
.menu-btn { display: none; }
.menu-btn span { width: 20px; height: 2px; background: var(--ink); margin: 3px 0; transition: transform .2s, opacity .2s; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 16px 0; }
.search-panel .container { display: flex; gap: 10px; }
.search-panel input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; }
.search-panel button { padding: 10px 24px; border: 0; border-radius: 4px; background: var(--brown); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 560px; height: 82vh; max-height: 800px; display: grid; place-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(28, 22, 18, .55); }
.hero-content { position: relative; text-align: center; color: #fff; }
.hero-content h1 { font-size: clamp(36px, 7vw, 76px); font-weight: 600; line-height: 1.05; letter-spacing: .02em; margin: 0; }
.hero-content p { font-size: clamp(14px, 2vw, 20px); font-weight: 300; letter-spacing: .16em; margin: 20px 0 0; }
.hero-arrow { display: inline-grid; place-items: center; margin-top: 48px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- about ---------- */
.about { padding-bottom: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.vertical-title {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: clamp(28px, 4vw, 52px); line-height: .95; font-weight: 700;
  letter-spacing: .02em; margin: 0; color: var(--ink);
}
.vertical-title span { color: var(--brown); }
.about-copy p { color: var(--muted); margin: 0 0 16px; }
.about-image img { width: 100%; border-radius: 2px; }
.stats-bar { margin-top: 72px; background: var(--brown); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 0; text-align: center; }
.stat strong { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.1; }
.stat strong::after { content: '+'; font-size: .55em; }
.stat span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

/* ---------- categories icons ---------- */
.categories { background: var(--sand); }
.category-icons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.category-icons li { text-align: center; color: var(--brown); }
.category-icons img { width: 40px; height: 40px; object-fit: contain; margin-inline: auto; filter: brightness(0) saturate(100%) invert(39%) sepia(14%) saturate(560%) hue-rotate(342deg) brightness(93%) contrast(83%); }
.category-icons li:hover img { transform: translateY(-3px); transition: transform .2s; }
.category-icons span { display: block; font-size: 10px; letter-spacing: .08em; margin-top: 8px; color: var(--muted); }

/* ---------- promo banner & clients ---------- */
.promo-banner { position: relative; min-height: 300px; display: grid; place-items: center; overflow: hidden; }
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.promo-banner::after { content: ''; position: absolute; inset: 0; background: rgba(28, 22, 18, .45); }
.promo-banner-overlay { position: relative; z-index: 1; text-align: center; color: #fff; padding: 60px 20px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.promo-banner-overlay p { font-size: clamp(18px, 2.5vw, 30px); font-weight: 600; letter-spacing: .1em; margin: 0 0 20px; }
.banner-cta { display: inline-block; padding: 12px 32px; border: 1px solid #fff; border-radius: 3px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.banner-cta:hover { background: #fff; color: var(--ink); }
.clients { background: #fff; }
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: center; }
.client-item { display: grid; place-items: center; height: 80px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; }
.client-item img { max-width: 100%; max-height: 56px; object-fit: contain; filter: grayscale(100%); opacity: .8; }
.client-item:hover img { filter: none; opacity: 1; }

/* ---------- showcases ---------- */
.showcase-section { padding: 88px 0 40px; }
.showcase-head { margin-bottom: 64px; }
.showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 56px;
  margin-bottom: 96px;
}
.showcase.reverse { grid-template-columns: .85fr 1.15fr; }
.showcase.reverse .showcase-img { order: 2; }
.showcase.reverse .showcase-info { order: 1; }
.showcase-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.showcase-info h3 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.12; font-weight: 600; margin: 0 0 20px; letter-spacing: -.01em; }
.showcase-info h3 em { font-style: normal; color: var(--brown); }
.showcase-info p { color: var(--muted); max-width: 420px; margin: 0 0 28px; }
.showcase-nav { display: flex; align-items: center; gap: 20px; }
.showcase-nav button {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink); transition: background .2s, color .2s;
}
.showcase-nav button:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #d8d2ca; }
.dots i.on { background: var(--brown); }
.showcase-thumb {
  position: absolute; right: 4%; bottom: -24px;
  width: 150px; border: 6px solid #fff; box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.showcase.reverse .showcase-thumb { right: auto; left: 4%; }
.showcase-thumb img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- factory ---------- */
.factory { background: var(--sand); }
.factory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.factory-grid figure { margin: 0; }
.factory-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.factory-grid figcaption { text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ---------- service ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.service-icon { display: block; color: var(--brown); font-size: 30px; margin-bottom: 12px; }
.service h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.service p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- values banner (design-matched) ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.values { position: relative; padding: 0; background: #fff; overflow: hidden; }
.values-banner { width: 100%; height: auto; display: block; }
.values-phone {
  position: absolute;
  top: 82%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.values-phone-icon {
  width: clamp(26px, 2.1vw, 40px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #2b2b2b;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.values-phone-icon svg { width: 58%; height: 58%; }
.values-phone-number {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(15px, 1.65vw, 30px);
  letter-spacing: .03em;
  color: #222;
}
.values-phone:hover .values-phone-number { color: var(--brown); }

@media (max-width: 760px) {
  .values-phone { top: 80%; gap: 8px; }
  .values-phone-number { font-size: 14px; }
}

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; }
.news-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.news-body { padding: 18px 0; }
.news-body time { color: var(--brown); font-size: 11px; letter-spacing: .1em; }
.news-body h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 8px 0; }
.news-body p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

/* ---------- contact ---------- */
.contact { background: var(--sand); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-list li span:first-child { width: 88px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.contact-list a:hover { color: var(--brown); }
.qr-codes { display: flex; gap: 24px; }
.qr-codes figure { margin: 0; text-align: center; }
.qr-codes img { width: 92px; height: 92px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.qr-codes figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; }
.inquiry-form { background: #fff; padding: 36px; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.05); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inquiry-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; font-size: 14px; font-weight: 400; color: var(--ink);
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: 2px solid var(--brown); outline-offset: 1px; }
.inquiry-form button[type="submit"] { justify-self: start; padding: 13px 38px; border: 0; border-radius: 4px; background: var(--brown); color: #fff; font-weight: 600; letter-spacing: .04em; }
.inquiry-form button[type="submit"]:hover { background: var(--brown-dark); }
.inquiry-form button[disabled] { opacity: .6; cursor: wait; }
.form-status { font-size: 13px; color: var(--brown-dark); min-height: 20px; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: #1e1c1a; color: #cfcac3; padding: 64px 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { display: block; height: 56px; width: auto; object-fit: contain; margin-bottom: 12px; }
.footer-brand strong { display: block; color: #fff; letter-spacing: .08em; margin: 12px 0 8px; }
.footer-brand p { font-size: 13px; margin: 0; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links h3, .footer-contact h3 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.footer-links a:hover { color: #fff; }
.footer-contact p { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; font-size: 12px; color: #8f8982; }

/* ---------- floating whatsapp ---------- */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav { gap: 18px; }
  .about-text { grid-template-columns: 1fr; }
  .vertical-title { writing-mode: horizontal-tb; transform: none; }
  .category-icons { grid-template-columns: repeat(5, 1fr); row-gap: 24px; }
  .client-grid { grid-template-columns: repeat(4, 1fr); }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 28px; }
  .showcase.reverse .showcase-img { order: 0; }
  .showcase.reverse .showcase-info { order: 0; }
  .showcase-thumb, .showcase.reverse .showcase-thumb { right: 16px; left: auto; bottom: -16px; width: 110px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .container { width: min(100% - 32px, var(--max)); }
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .hero { min-height: 440px; height: 70dvh; }
  .about-grid { gap: 32px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .category-icons { grid-template-columns: repeat(4, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-banner { min-height: 220px; }
  .factory-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .inquiry-form { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
