/*
Theme Name: YUBOSEN
Theme URI: https://yubosen.com
Author: YUBOSEN
Description: Clean bilingual (EN/ZH) business theme for Yubosen Home - whole-house custom furniture factory. Five-page structure: Home, Shop, Products, About Us, Contact.
Version: 0.1.5
Requires PHP: 7.4
License: Proprietary
Text Domain: yubosen
*/

:root {
  --ink: #1b2430;
  --accent: #2f5d8a;
  --accent-dark: #264c72;
  --muted: #6b7686;
  --paper: #ffffff;
  --soft: #f0f3f7;
  --line: #dfe5ec;
  --radius: 8px;
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h1, .section-head h2 { font-size: 32px; line-height: 1.25; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline.dark { color: var(--ink); }
.btn-outline.dark:hover { background: rgba(32, 42, 45, 0.06); }
.btn-whatsapp { background: #1faa53; color: #fff; }
.btn-whatsapp:hover { background: #178a43; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid rgba(32, 42, 45, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark { font-weight: 800; font-size: 21px; letter-spacing: 0.16em; color: var(--ink); }
.brand-mark em { font-style: normal; color: var(--accent); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a.nav-link:hover { color: var(--ink); }
.main-nav a.nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }
.lang-switch {
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--muted);
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.header-cta { padding: 9px 18px; font-size: 14px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(14, 20, 28, 0.62), rgba(14, 20, 28, 0.62)),
    url("assets/img/hero-workshop.jpg") center 38% / cover no-repeat;
}
.hero-inner { max-width: 660px; padding: 96px 0; }
.hero h1 { font-size: 44px; line-height: 1.18; font-weight: 800; }
.hero .eyebrow { color: #8db2d6; }
.hero p { margin-top: 18px; font-size: 18px; color: rgba(255, 255, 255, 0.86); }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- facts strip ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 34px 0; }
.fact { text-align: center; }
.fact b { display: block; font-size: 24px; color: var(--accent); }
.fact span { color: var(--muted); font-size: 14px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  display: block;
}
.card:hover { box-shadow: 0 10px 28px rgba(32, 42, 45, 0.1); transform: translateY(-3px); }
.card-img { aspect-ratio: 4 / 3.2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 17px; }
.card-body p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.card-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(47, 93, 138, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}

/* ---------- capabilities ---------- */
.cap-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.cap-card svg { width: 34px; height: 34px; stroke: var(--accent); margin-bottom: 14px; }
.cap-card h3 { font-size: 16px; margin-bottom: 8px; }
.cap-card p { color: var(--muted); font-size: 14px; }

/* ---------- split (about teaser / about page) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: 30px; line-height: 1.25; }
.split p { color: var(--muted); margin-top: 14px; }
.split .btn { margin-top: 24px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step b { color: var(--accent); font-size: 14px; letter-spacing: 0.08em; }
.step h3 { font-size: 16px; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- chips / filter ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font-size: 14px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.pd-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pd h1 { font-size: 30px; line-height: 1.25; }
.pd .tagline { color: var(--muted); margin-top: 10px; font-size: 16px; }
.pd .tags { margin: 16px 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { color: var(--muted); width: 38%; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.pd-desc { margin-top: 22px; }
.pd-desc p { color: var(--muted); margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { font-size: 30px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-top: 10px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list b { min-width: 96px; color: var(--muted); font-weight: 600; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
}
.field input:focus, .field textarea:focus { outline: 2px solid rgba(47, 93, 138, 0.35); border-color: var(--accent); }
.form-note { margin-top: 14px; font-size: 14px; color: #1faa53; }

/* ---------- footer ---------- */
.site-footer { background: #141a24; color: rgba(255, 255, 255, 0.72); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0.06em; }
.site-footer .brand-mark { color: #fff; }
.site-footer p, .site-footer li { font-size: 14px; }
.site-footer li { padding: 3px 0; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- generic page ---------- */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 52px 0; }
.page-hero h1 { font-size: 34px; }
.page-hero p { color: var(--muted); margin-top: 8px; max-width: 640px; }

/* ---------- 404 / fallback ---------- */
.nf { text-align: center; padding: 90px 0; }
.nf h1 { font-size: 40px; }
.nf p { color: var(--muted); margin: 12px 0 24px; }

/* ---------- project videos ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 14;
}
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

/* ---------- product video ---------- */
.pd-video {
  margin-top: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 340px;
}
.pd-video video { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- prose (privacy policy / news) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose .cn-block {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.prose .cn-block h2 { margin-top: 0; }

/* ---------- news list ---------- */
.news-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; background: #fff; display: block; }
.news-item:hover { box-shadow: 0 10px 28px rgba(32, 42, 45, 0.1); }
.news-item time { color: var(--accent); font-size: 13px; font-weight: 600; }
.news-item h2 { font-size: 19px; margin: 6px 0 8px; }
.news-item p { color: var(--muted); font-size: 14px; }

/* ---------- copy-inquiry button ---------- */
.btn-copy { background: var(--ink); color: #fff; }
.btn-copy:hover { background: #313f43; }
.copy-ok { color: #1faa53; font-size: 14px; margin-left: 10px; }

/* ---------- WP admin bar (logged-in views) ---------- */
/* Keep the sticky header below WordPress' fixed admin bar */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
  /* the admin bar becomes position:absolute here and scrolls away */
  .admin-bar .site-header { top: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .pd { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 14px;
  }
  .main-nav.open { display: flex; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2, .steps, .form-row, .video-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; gap: 10px; }
  .section { padding: 52px 0; }
  .hero { min-height: 460px; }
  .hero h1 { font-size: 29px; }
}
