/*
Theme Name: Minghe Wood
Theme URI: https://szmhhjmy.com
Author: Codex
Description: Timber supply theme for Suzhou Minghe Hujian Wood.
Version: 1.0.0
Text Domain: minghe-wood
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Serif+SC:wght@500;700;900&display=swap');

:root {
  --bg: #f5ede0;
  --surface: #fbf7f0;
  --surface-soft: #f1e7d6;
  --ink: #1f1a15;
  --muted: #665b4f;
  --line: rgba(43, 35, 24, 0.12);
  --line-strong: rgba(43, 35, 24, 0.2);
  --accent: #8c4f1e;
  --accent-deep: #6d3a12;
  --dark: #171310;
  --light: #fffaf3;
  --shadow-soft: 0 14px 34px rgba(24, 19, 14, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(143, 79, 31, 0.08), transparent 28%),
    linear-gradient(180deg, #f6efe4 0%, #f4ebde 32%, #faf5ee 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(23, 19, 16, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--light);
}
.site-header__inner,
.section__inner,
.footer__inner,
.page-shell,
.post-shell,
.archive-shell {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}
.brand-mark {
  grid-column: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.brand-mark strong {
  font-size: 1.04rem;
  letter-spacing: 0.08em;
}
.brand-mark span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}
.site-nav,
.site-nav ul,
.footer-nav,
.quick-links,
.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav {
  grid-column: 2;
  justify-self: center;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
}
.site-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.94rem;
}
.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: #fff;
}
.site-header__controls {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-cta,
.btn,
.btn-ghost,
.nav-toggle,
.mini-link,
.text-link {
  transition: transform 0.24s ease, box-shadow 0.24s ease, color 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}
.header-cta,
.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}
.header-cta,
.btn {
  background: var(--accent);
  color: #fff;
}
.header-cta small {
  margin-left: 8px;
  font-weight: 500;
  opacity: 0.82;
}
.btn:hover,
.btn-ghost:hover,
.header-cta:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--light);
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
}
.btn-ghost--dark {
  color: var(--ink);
  border-color: rgba(31, 26, 21, 0.16);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.nav-toggle__label {
  font-size: 0.92rem;
  font-weight: 700;
}
.nav-toggle__bars {
  display: inline-grid;
  gap: 4px;
}
.nav-toggle__bars span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.24s ease;
}
.site-header.is-open .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.site-header.is-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 10% 12%, rgba(143, 79, 31, 0.12), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(72, 100, 84, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(251, 247, 240, 0.98), rgba(241, 231, 214, 0.96));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12) 0, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 124px),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 124px);
  opacity: 0.24;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.88), transparent 92%);
}
.hero__inner {
  position: relative;
  width: min(var(--container), calc(100% - 36px));
  min-height: calc(70svh - 78px);
  margin: 0 auto;
  padding: 44px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: center;
}
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.hero h1,
.page-hero h1,
.post-hero h1,
.archive-hero h1 {
  margin: 16px 0 14px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.hero p.lead,
.page-hero p,
.archive-hero p,
.post-hero p {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--muted);
  max-width: 36rem;
}
.hero__content > * {
  animation: rise-in 0.7s ease both;
}
.hero__content > *:nth-child(2) { animation-delay: 0.06s; }
.hero__content > *:nth-child(3) { animation-delay: 0.12s; }
.hero__content > *:nth-child(4) { animation-delay: 0.18s; }
.hero__content > *:nth-child(5) { animation-delay: 0.24s; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero__summary-item {
  display: grid;
  gap: 8px;
}
.hero__summary-item strong {
  font-family: "Noto Serif SC", serif;
  font-size: 1.04rem;
}
.hero__summary-item span {
  color: var(--muted);
  font-size: 0.94rem;
}
.hero__visual {
  animation: rise-in 0.86s ease both 0.16s;
}
.hero__image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.hero__image--compact {
  aspect-ratio: 5 / 5.7;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section {
  padding: 76px 0;
}
.section--tight {
  padding: 56px 0;
}
.section--soft {
  background: linear-gradient(180deg, rgba(248, 241, 230, 0.8), rgba(244, 234, 220, 0.86));
}
.section--dark {
  color: var(--light);
  background: linear-gradient(180deg, rgba(23, 19, 16, 1), rgba(31, 26, 21, 0.98));
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 12px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-head p {
  max-width: 34rem;
  color: var(--muted);
}
.section--dark .section-head p,
.section--dark .final-cta__copy p,
.section--dark .final-cta__meta {
  color: rgba(255,250,243,0.74);
}

.proof-layout,
.product-scene,
.ops-grid,
.case-list,
.footer-grid,
.post-grid,
.page-grid,
.archive-grid {
  display: grid;
  gap: 28px;
}
.proof-layout {
  grid-template-columns: 1fr;
  align-items: start;
}
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.proof-item,
.case-item,
.flow-item,
.spec-item,
.page-copy,
.page-side,
.post-body,
.post-side {
  border-top: 1px solid var(--line-strong);
}
.proof-item {
  padding-top: 18px;
}
.proof-item h3,
.credential-copy h3,
.product-line__copy h3,
.flow-item h3,
.spec-item h3,
.case-item strong,
.page-copy h2,
.page-copy h3,
.post-body h2,
.post-body h3,
.site-footer h3,
.site-footer h4 {
  font-family: "Noto Serif SC", serif;
}
.proof-item h3,
.credential-copy h3,
.product-line__copy h3,
.flow-item h3,
.spec-item h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  line-height: 1.2;
}
.proof-item p,
.credential-copy p,
.product-line__copy p,
.flow-item p,
.spec-item p,
.case-item span,
.page-copy p,
.post-body p,
.post-meta {
  color: var(--muted);
}
.credential-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 260px));
  justify-content: start;
  gap: 10px 14px;
  align-content: start;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.credential-card {
  display: grid;
  gap: 14px;
}
.credential-card--compact {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
}
.credential-thumb {
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
}
.credential-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
}
.credential-copy {
  display: grid;
  gap: 4px;
}
.credential-copy h3 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.2;
}
.mini-link,
.text-link {
  display: inline-flex;
  width: fit-content;
  color: var(--accent);
  font-weight: 700;
}
.mini-link:hover,
.text-link:hover {
  color: var(--accent-deep);
}
.text-link {
  grid-column: 1 / -1;
  margin-top: 0;
  font-size: 0.92rem;
}

.product-scene {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
}
.product-list {
  display: grid;
}
.product-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
}
.product-line:last-child {
  padding-bottom: 0;
}
.product-line__index,
.case-item__index,
.flow-item__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(143, 79, 31, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.product-scene__visual {
  align-self: start;
}
.media-frame {
  overflow: hidden;
  border-radius: 18px;
}
.media-frame--compact {
  aspect-ratio: 4 / 5;
  max-height: 340px;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ops-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: start;
}
.ops-grid__main {
  display: grid;
  gap: 18px;
}
.table-shell {
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th,
.spec-table td {
  padding: 18px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  font-family: "Noto Serif SC", serif;
  font-size: 0.96rem;
}
.spec-stack {
  display: none;
  gap: 14px;
}
.spec-item {
  padding-top: 14px;
}
.spec-item p {
  margin-bottom: 0.35rem;
}
.flow-list {
  display: grid;
  gap: 16px;
}
.flow-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 16px;
}

.case-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.case-item {
  padding-top: 18px;
}
.case-item__meta {
  display: grid;
  gap: 10px;
}
.case-item__meta span {
  display: grid;
  gap: 2px;
}
.case-item__meta strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.final-cta {
  display: grid;
  gap: 24px;
  align-items: start;
}
.final-cta__copy h2 {
  margin: 12px 0 12px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
}
.final-cta__button {
  width: fit-content;
  min-width: 240px;
  box-shadow: var(--shadow-soft);
}
.final-cta__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.95rem;
}

.page-hero,
.archive-hero,
.post-hero {
  padding: 72px 0 42px;
  color: var(--light);
  background: linear-gradient(110deg, rgba(23, 19, 16, 0.9), rgba(23, 19, 16, 0.68) 48%, rgba(23, 19, 16, 0.4)), url('/images/hj26.jpg') center/cover no-repeat;
}
.page-hero p,
.archive-hero p,
.post-hero p {
  color: rgba(255,250,243,0.78);
}
.page-shell,
.archive-shell,
.post-shell {
  padding: 48px 0 82px;
}
.page-grid,
.post-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
.page-copy,
.page-side,
.post-body,
.post-side {
  padding-top: 18px;
}
.page-copy h2,
.page-copy h3,
.post-body h2,
.post-body h3 {
  margin-top: 1.8rem;
  line-height: 1.2;
}
.page-copy ul,
.post-body ul {
  padding-left: 1.2rem;
}
.page-copy li,
.post-body li {
  margin-bottom: 0.6rem;
}
.quick-links {
  display: grid;
}
.quick-links a {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.status-note {
  margin-bottom: 1.5rem;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(143, 79, 31, 0.2);
  background: rgba(143, 79, 31, 0.08);
}
.status-note strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Noto Serif SC", serif;
}
.page-copy .wpcf7 {
  margin-top: 1.5rem;
}
.page-copy .wpcf7 label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
}
.page-copy .wpcf7 input[type="text"],
.page-copy .wpcf7 input[type="tel"],
.page-copy .wpcf7 textarea,
.page-copy .wpcf7 select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font: inherit;
}
.page-copy .wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}
.page-copy .wpcf7 input[type="submit"] {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  padding: 64px 0 34px;
  background: var(--dark);
  color: rgba(255,250,243,0.74);
}
.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  margin-bottom: 30px;
}
.site-footer h3,
.site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
}
.footer-nav {
  display: grid;
  gap: 10px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.92rem;
}
.footer-records {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.footer-records a {
  color: rgba(255,250,243,0.82);
}
.footer-records a:hover {
  color: #fff;
}
.post-card time,
.post-meta {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.screen-reader-text {
  position: absolute;
  left: -9999px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 72px;
    padding: 12px 0;
  }
  .site-header__controls {
    gap: 10px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    padding: 8px 0 0;
  }
  .site-nav[hidden] {
    display: none;
  }
  .site-nav ul {
    display: grid;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav a {
    display: block;
    padding: 12px 0;
  }
  .hero__inner,
  .section-head,
  .proof-layout,
  .proof-strip,
  .product-scene,
  .ops-grid,
  .case-list,
  .footer-grid,
  .page-grid,
  .post-grid,
  .archive-grid,
  .hero__summary {
    grid-template-columns: 1fr;
  }
  .hero__inner {
    min-height: auto;
    padding: 36px 0 48px;
    gap: 28px;
  }
  .hero__visual {
    max-width: 520px;
  }
  .credential-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 62px 0;
  }
  .section--tight {
    padding: 48px 0;
  }
  .final-cta__button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .site-header__inner,
  .section__inner,
  .footer__inner,
  .page-shell,
  .post-shell,
  .archive-shell {
    width: min(var(--container), calc(100% - 22px));
  }
  .brand-mark span {
    display: none;
  }
  .header-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.88rem;
  }
  .header-cta small {
    display: none;
  }
  .nav-toggle {
    min-height: 42px;
    padding: 0 14px;
  }
  .hero h1,
  .page-hero h1,
  .post-hero h1,
  .archive-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__summary {
    gap: 14px;
  }
  .hero__image--compact {
    aspect-ratio: 4 / 3.4;
  }
  .section-head {
    gap: 14px;
    margin-bottom: 22px;
  }
  .section-head h2 {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }
  .credential-card--compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .credential-thumb img {
    aspect-ratio: 3 / 2.1;
  }
  .credential-copy h3 {
    font-size: 0.86rem;
  }
  .product-line,
  .flow-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-line__index,
  .case-item__index,
  .flow-item__step {
    width: fit-content;
  }
  .spec-table-shell {
    display: none;
  }
  .spec-stack {
    display: grid;
  }
  .media-frame--compact {
    max-height: 250px;
  }
  .page-hero,
  .archive-hero,
  .post-hero {
    padding: 56px 0 34px;
  }
  .page-shell,
  .archive-shell,
  .post-shell {
    padding: 36px 0 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__content > *,
  .hero__visual,
  .header-cta,
  .btn,
  .btn-ghost,
  .nav-toggle,
  .mini-link,
  .text-link,
  .nav-toggle__bars span {
    animation: none !important;
    transition: none !important;
  }
}
