/* =========================================================
   Hangzhou Wuyue Crafts Co., Ltd — Corporate Showcase Site
   Warm, premium, Western-buyer oriented design system
   ========================================================= */

:root {
  --bg: #FBF8F3;
  --bg-tint: #F3EDE3;
  --surface: #FFFFFF;
  --ink: #26221D;
  --ink-soft: #4A443C;
  --muted: #77705F;
  --line: #E5DCCC;
  --accent: #9C5B33;
  --accent-dark: #7C4525;
  --green: #3E4A3D;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 34, 29, 0.08);
  --shadow-lg: 0 18px 50px rgba(38, 34, 29, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.4em; }
h3 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.eyebrow--light { color: #E8C9A8; }

.section { padding: 5.5rem 0; }
.section--tinted { background: var(--bg-tint); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255,255,255,0.65); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn--block { width: 100%; text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green);
  color: #D9D4C7;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0;
}
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar__right { color: #BFC9BA; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(38,34,29,0.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent); color: #FBF8F3;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 0.92rem; letter-spacing: 0.06em; }
.brand__text em { font-style: normal; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 1.6rem; font-size: 0.92rem; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink-soft); position: relative; padding: 0.2rem 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent); transition: width 0.25s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30, 24, 18, 0.78) 0%, rgba(30, 24, 18, 0.55) 45%, rgba(30, 24, 18, 0.18) 100%);
}
.hero__content { position: relative; z-index: 2; color: #fff; max-width: 640px; padding: 6rem 0; }
.hero__eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #E8C9A8; margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.1rem; }
.hero__sub { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { background: var(--green); color: #fff; padding: 2.4rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { font-family: var(--serif); font-size: 2.2rem; display: block; }
.stat strong span { color: #E8C9A8; }
.stat > span:last-child { font-size: 0.85rem; color: #BFC9BA; letter-spacing: 0.03em; }

/* ---------- Trend points ---------- */
.trend-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.trend-point {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform 0.3s, box-shadow 0.3s;
}
.trend-point:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trend-point__num { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); }
.trend-point h3 { margin: 0.5rem 0 0.4rem; }
.trend-point p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Product showcase (lookbook grid) ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 225px;
  gap: 1.1rem;
}
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: #2A251F;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.94; transition: transform 0.8s ease, opacity 0.4s;
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,19,14,0.82) 0%, rgba(24,19,14,0.28) 46%, rgba(24,19,14,0) 72%);
}
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile__index {
  position: absolute; top: 0.95rem; left: 1.2rem; z-index: 2;
  font-family: var(--serif); font-size: 1.05rem; color: rgba(255,255,255,0.85);
}
.tile__flag {
  position: absolute; top: 0.85rem; right: 1rem; z-index: 2;
  background: rgba(156,91,51,0.92); color: #fff;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.26rem 0.7rem; border-radius: 999px;
}
.tile__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.15rem 1.3rem 1.2rem; color: #fff; }
.tile__info h3 { font-size: 1.06rem; margin-bottom: 0.15rem; transition: color 0.3s; }
.tile__info p { font-size: 0.8rem; color: rgba(255,255,255,0.8); }
.tile:hover img { transform: scale(1.06); opacity: 1; }
.tile:hover .tile__info h3 { color: #E8C9A8; }

.showcase-cta { text-align: center; margin-top: 2.6rem; }
.showcase-cta p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.1rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about__badge {
  position: absolute; bottom: -1.4rem; left: 1.4rem;
  background: var(--green); color: #fff;
  border-radius: 12px; padding: 1rem 1.3rem;
  box-shadow: var(--shadow-lg); max-width: 78%;
}
.about__badge strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.about__badge span { font-size: 0.78rem; color: #BFC9BA; }
.about__text h2 { margin-bottom: 1rem; }
.about__text > p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.about__list { list-style: none; margin-bottom: 1.8rem; }
.about__list li {
  padding: 0.55rem 0 0.55rem 1.9rem; position: relative;
  border-bottom: 1px dashed var(--line); font-size: 0.95rem;
}
.about__list li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ---------- Quality ---------- */
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.quality-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; transition: transform 0.3s, box-shadow 0.3s;
}
.quality-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quality-card__icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(156, 91, 51, 0.12); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem;
}
.quality-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.quality-card p { color: var(--muted); font-size: 0.87rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.2rem; position: relative;
}
.step span {
  font-family: var(--serif); font-size: 2rem; color: var(--line);
  display: block; line-height: 1; margin-bottom: 0.6rem;
}
.step h3 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.step p { font-size: 0.83rem; color: var(--muted); }

/* ---------- OEM ---------- */
.oem { background: var(--green); color: #fff; padding: 5.5rem 0; }
.oem__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.oem h2 { color: #fff; }
.oem__text > p { color: #BFC9BA; margin: 0.6rem 0 1.4rem; }
.oem__list { list-style: none; margin-bottom: 1.8rem; }
.oem__list li { padding: 0.4rem 0 0.4rem 1.8rem; position: relative; color: #E7E3D6; font-size: 0.95rem; }
.oem__list li::before { content: "✓"; position: absolute; left: 0; color: #E8C9A8; font-weight: 700; }
.oem__quote {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 2.2rem;
}
.oem__quote blockquote {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; font-style: italic;
  margin-bottom: 1.2rem;
}
.oem__quote-meta { font-size: 0.85rem; color: #BFC9BA; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact__info > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.contact__person {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.3rem; margin-bottom: 1.6rem; box-shadow: var(--shadow);
}
.contact__person img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--bg-tint);
}
.contact__person strong { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.contact__person span { font-size: 0.85rem; color: var(--muted); }
.contact__rows { display: grid; gap: 0.9rem; }
.contact__row {
  display: grid; grid-template-columns: 130px 1fr; gap: 1rem; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; font-size: 0.95rem;
}
.contact__row span { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact__row strong { font-weight: 600; }

.contact__form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow);
  display: grid; gap: 1.1rem;
}
.contact__form label { display: grid; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact__form input, .contact__form select, .contact__form textarea {
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem 0.9rem; background: var(--bg); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(156, 91, 51, 0.12);
}
.contact__form textarea { resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; }
.form-note.success { color: var(--green); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #211D18; color: #A79F90; padding: 2.8rem 0; }
.footer__inner { display: grid; gap: 1.2rem; text-align: center; }
.footer__brand strong { display: block; color: #F0EAD9; letter-spacing: 0.08em; font-size: 0.95rem; }
.footer__brand span { font-size: 0.8rem; }
.footer__nav { display: flex; justify-content: center; gap: 1.8rem; flex-wrap: wrap; font-size: 0.85rem; }
.footer__nav a:hover { color: #E8C9A8; }
.footer__copy { font-size: 0.75rem; color: #6E675B; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .showcase { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 235px; }
  .tile--lg, .tile--wide { grid-column: span 2; grid-row: span 1; }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .about, .contact, .oem__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__media { max-width: 480px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .trend-points { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 80%);
    background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 5rem 2rem; gap: 1.4rem; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 99;
  }
  .nav.open { transform: none; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .showcase { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .tile--lg, .tile--wide { grid-column: span 1; grid-row: span 1; }
  .quality-grid, .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .section { padding: 4rem 0; }
  .topbar__right { display: none; }
}
