/*
Theme Name: Zhuopin Custom Labels
Author: Guangzhou Zhuopin Garment Accessories Co., Ltd.
Description: Lightweight bilingual B2B inquiry theme for custom leather clothing labels.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: zhuopin-labels
*/

:root {
  --ink: #201d1a;
  --muted: #6d665f;
  --paper: #f7f3ec;
  --paper-2: #eee6da;
  --white: #fffdfa;
  --leather: #9b572f;
  --leather-dark: #744023;
  --line: #d8cfc3;
  --success: #2f6a4f;
  --danger: #9a3f32;
  --shadow: 0 18px 55px rgba(45, 34, 25, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 10px 16px; color: #fff; background: var(--ink);
}
.skip-link:focus { top: 16px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--paper); }
.eyebrow {
  margin: 0 0 12px; color: var(--leather); font-size: .78rem;
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: clamp(2.55rem, 5.7vw, 5.5rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.55rem); }
h3 { margin-bottom: 10px; font-size: 1.22rem; }
.lead { max-width: 690px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading p { color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(216, 207, 195, .75);
  background: rgba(255, 253, 250, .92); backdrop-filter: blur(16px);
}
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center;
  border-radius: 50%; color: #fff; background: var(--ink); font-weight: 900; letter-spacing: -.08em;
}
.brand-copy { display: grid; line-height: 1.22; }
.brand-copy strong { font-size: .95rem; }
.brand-copy small { color: var(--muted); font-size: .68rem; letter-spacing: .05em; }
.main-nav { display: flex; align-items: center; gap: 27px; font-size: .92rem; font-weight: 700; }
.main-nav a:not(.button):hover { color: var(--leather); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle, .menu-toggle {
  min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: transparent; cursor: pointer; font-weight: 800;
}
.menu-toggle { display: none; }

.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px;
  color: #fff; background: var(--ink); cursor: pointer; font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--leather-dark); border-color: var(--leather-dark); }
.button-secondary { color: var(--ink); background: transparent; }
.button-secondary:hover { color: #fff; }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button-light:hover { color: #fff; }

.hero { overflow: hidden; background: var(--paper); }
.hero-grid { display: grid; min-height: 700px; grid-template-columns: .92fr 1.08fr; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 82px 5vw 82px max(20px, calc((100vw - var(--container)) / 2)); }
.hero-copy .lead { max-width: 610px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-contact {
  max-width: 610px; margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 16px; background: rgba(255,255,255,.72); box-shadow: 0 10px 30px rgba(45,34,25,.06);
}
.hero-contact-title { margin-bottom: 10px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-contact-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-contact-links > * { display: grid; gap: 1px; min-width: 0; }
.hero-contact-links a:hover strong { color: var(--leather); }
.hero-contact-label { color: var(--muted); font-size: .72rem; font-weight: 700; }
.hero-contact-links strong { overflow-wrap: anywhere; font-size: .96rem; transition: color .2s ease; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-points li { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.58); font-size: .86rem; }
.hero-media { align-self: stretch; min-height: 560px; }
.hero-media img { height: 100%; object-fit: cover; object-position: center; }
.sample-ribbon { overflow: hidden; padding: 48px 0 54px; background: var(--white); }
.sample-ribbon-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px;
}
.sample-ribbon-heading .eyebrow { margin-bottom: 7px; }
.sample-ribbon-heading h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.65rem); }
.sample-ribbon-link {
  flex: 0 0 auto; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: .9rem; font-weight: 800;
}
.sample-ribbon-link:hover { color: var(--leather); border-color: var(--leather); }
.sample-marquee {
  position: relative; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.sample-marquee-track {
  display: flex; width: max-content; gap: 14px; animation: sample-marquee-scroll 58s linear infinite;
}
.sample-marquee:hover .sample-marquee-track { animation-play-state: paused; }
.sample-marquee-group { display: flex; flex: 0 0 auto; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sample-card {
  overflow: hidden; width: clamp(180px, 20vw, 290px); aspect-ratio: 1; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); box-shadow: 0 10px 30px rgba(45, 34, 25, .09);
}
.sample-card img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.sample-card:hover img { transform: scale(1.035); }
@keyframes sample-marquee-scroll {
  to { transform: translateX(calc(-50% - 7px)); }
}
.trust-bar { background: var(--ink); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.15); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 1.08rem; }
.trust-item span { color: rgba(255,255,255,.65); font-size: .83rem; }

.material-layout, .craft-layout, .applications-layout, .quote-layout {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(36px, 7vw, 90px);
}
.image-card { overflow: hidden; border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow); }
.image-card img { aspect-ratio: 16 / 11; object-fit: cover; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.info-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.number { display: inline-grid; width: 33px; height: 33px; margin-bottom: 17px; place-items: center; border-radius: 50%; color: #fff; background: var(--leather); font-size: .82rem; font-weight: 900; }
.feature-list { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature-list li::before { content: "✓"; color: var(--leather); font-weight: 900; }
.disclaimer { margin-top: 18px; color: var(--muted); font-size: .78rem; }

.applications-layout { align-items: start; }
.application-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.application-tags span { padding: 9px 14px; border-radius: 10px; background: var(--paper-2); font-weight: 700; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: process; }
.process-step { min-height: 210px; padding: 25px 20px; border-top: 3px solid var(--leather); background: var(--white); }
.process-step::before {
  counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 38px;
  color: var(--leather); font-size: .78rem; font-weight: 900; letter-spacing: .12em;
}
.process-step p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }

.faq-list { max-width: 850px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 44px 22px 0; cursor: pointer; font-weight: 800; }
.faq-list details p { max-width: 720px; padding-bottom: 22px; color: var(--muted); }

.quote-section { color: #fff; background: var(--ink); }
.quote-layout { align-items: start; }
.quote-copy { position: sticky; top: 120px; }
.quote-copy p { color: rgba(255,255,255,.7); }
.contact-cards { display: grid; gap: 10px; margin-top: 32px; }
.contact-card { padding: 17px 19px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; }
.contact-card small { display: block; color: rgba(255,255,255,.55); }
.quote-form { padding: clamp(22px, 4vw, 42px); border-radius: var(--radius); color: var(--ink); background: var(--white); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 800; }
.required { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 11px; color: var(--ink); background: #fff;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(155, 87, 47, .18); border-color: var(--leather);
}
.form-help { color: var(--muted); font-size: .75rem; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.form-actions small { color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; }
.notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.notice-success { color: var(--success); background: #e8f3ed; }
.notice-error { color: var(--danger); background: #f8e9e6; }

.site-footer { padding: 55px 0 90px; color: rgba(255,255,255,.78); background: #151311; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 40px; }
.footer-title { color: #fff; font-weight: 900; }
.footer-links { display: grid; gap: 8px; font-size: .9rem; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .78rem; }
.mobile-quote { display: none; }
.lang-en .lang-zh, .lang-zh .lang-en { display: none !important; }

@media (max-width: 980px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto; display: none; padding: 26px 20px 32px;
    align-items: stretch; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); background: var(--white);
  }
  .menu-open .main-nav { display: flex; }
  .main-nav a { padding: 12px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-actions .button { display: none; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 70px 24px 48px; }
  .hero-media { min-height: 430px; }
  .sample-ribbon { padding: 40px 0 46px; }
  .material-layout, .craft-layout, .applications-layout, .quote-layout { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-copy { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .brand-copy small { display: none; }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero-copy { padding: 56px 18px 38px; }
  .hero-media { min-height: 340px; }
  .hero-media img { object-position: 62% center; }
  .sample-ribbon { padding: 34px 0 39px; }
  .sample-ribbon-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .sample-card { width: min(66vw, 245px); border-radius: 14px; }
  .sample-marquee-track, .sample-marquee-group { gap: 10px; }
  .sample-marquee-track { animation-duration: 48s; }
  @keyframes sample-marquee-scroll { to { transform: translateX(calc(-50% - 5px)); } }
  .hero-actions .button { width: 100%; }
  .hero-contact { padding: 14px 15px; }
  .hero-contact-links { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 17px 14px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .card-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 170px; }
  .process-step::before { margin-bottom: 24px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .mobile-quote {
    position: fixed; right: 14px; bottom: 14px; z-index: 900; display: inline-flex;
    min-height: 48px; align-items: center; padding: 11px 18px; border-radius: 999px;
    color: #fff; background: var(--leather-dark); box-shadow: 0 12px 30px rgba(32,29,26,.3); font-weight: 900;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .sample-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
  .sample-marquee-track { animation: none; }
  .sample-marquee-group[aria-hidden="true"] { display: none; }
}
