/* ============================================================
   JX Wood — site styles
   Palette: forest green #2f6b46 · wood tan #c9a06a · cream #f7f3ec
   ============================================================ */
:root {
  --green: #2f6b46;
  --green-dark: #234f34;
  --tan: #c9a06a;
  --cream: #f7f3ec;
  --ink: #24312a;
  --muted: #5c6b62;
  --line: #e4ddcf;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(36, 49, 42, .09);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", Arial, "Helvetica Neue", sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 600; transition: .2s; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-accent { background: #e07b39; color: #fff; }
.btn-accent:hover { background: #c9682c; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.15); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-logo { height: 54px; width: auto; }
.brand-text {
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--green-dark);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.main-nav { display: flex; gap: 1.35rem; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--green); border-color: var(--tan); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: url("../images/f-line.jpg") center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(23,42,30,.92) 30%, rgba(23,42,30,.55)); }
.hero-content { position: relative; padding: 6.5rem 0 4.5rem; max-width: 820px; }
.hero-kicker { font-size: .8rem; letter-spacing: .18em; color: var(--tan); font-weight: 700; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.18; margin-bottom: 1.1rem; }
.hero-sub { font-size: 1.08rem; color: #e8e4da; max-width: 640px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }
.trust-bar { list-style: none; display: flex; flex-wrap: wrap; gap: 2.5rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.4rem; }
.trust-bar li { display: flex; flex-direction: column; }
.trust-bar strong { font-size: 1.35rem; color: var(--tan); }
.trust-bar span { font-size: .82rem; color: #cfd6cf; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--green-dark); color: #fff; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); text-align: center; margin-bottom: .6rem; color: var(--green-dark); }
.section-title.left { text-align: left; }
.section-title.light { color: #fff; }
.section-lead { text-align: center; color: var(--muted); max-width: 700px; margin: 0 auto 2.6rem; }
.section-lead.light { color: #cfd8cf; }
.accent { color: #e07b39; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; color: var(--ink); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(36,49,42,.16); }
.product-card img { height: 190px; width: 100%; object-fit: cover; background: #efe9dd; }
.product-card h3 { padding: .9rem 1.1rem 0; font-size: 1.06rem; color: var(--green-dark); }
.product-card p { padding: .4rem 1.1rem 1.2rem; font-size: .88rem; color: var(--muted); }

/* ---------- Split / featured ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-text .section-title { margin-bottom: 1rem; }
.split-text > p { color: var(--muted); margin-bottom: 1.1rem; }
.checklist { list-style: none; margin-bottom: 1.6rem; }
.checklist li { padding: .35rem 0 .35rem 1.7rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: .2rem; color: var(--green); font-weight: 800; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; margin-top: 2.2rem; }
.feature { background: var(--cream); border-radius: var(--radius); padding: 1.7rem 1.5rem; }
.feature-icon { font-size: 1.9rem; margin-bottom: .7rem; }
.feature h3 { font-size: 1.05rem; color: var(--green-dark); margin-bottom: .5rem; }
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------- Factory gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin: 2rem 0 2.4rem; }
.gallery figure { border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.06); }
.gallery img { height: 250px; width: 100%; object-fit: cover; transition: transform .25s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: .7rem 1rem; font-size: .85rem; color: #cfd8cf; }
.factory-cta { text-align: center; }

/* ---------- Cert strip ---------- */
.cert-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.cert-copy p { color: var(--muted); }
.cert-links { display: flex; flex-direction: column; gap: .8rem; }
.cert-pill { border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: .75rem 1.3rem; font-weight: 600; font-size: .92rem; text-align: center; transition: .18s; }
.cert-pill:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(100deg, var(--tan) 0%, #b9884c 100%); color: #3a2c17; text-align: center; }
.cta-inner h2 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); margin-bottom: 1.6rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #1c2b22; color: #b9c4bb; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.2rem; padding: 3.2rem 0 2rem; }
.footer-logo { width: 84px; background: #fff; border-radius: 8px; padding: 5px; margin-bottom: .9rem; }
.site-footer h4 { color: #fff; margin-bottom: .8rem; font-size: 1rem; }
.site-footer a { color: #b9c4bb; display: inline-block; padding: .15rem 0; }
.site-footer a:hover { color: var(--tan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0 1.6rem; font-size: .8rem; color: #7e8b80; }
.social-row { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; }
.social-label { color: #b9c4bb; font-weight: 600; }
.social-pill { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .3rem .9rem; font-size: .82rem; font-weight: 600; color: #e6ece6; transition: .18s; }
.social-pill:hover { border-color: transparent; }
.social-pill[href*="facebook"]:hover { background: #1877f2; }
.social-pill[href*="instagram"]:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }

/* ---------- Product detail page ---------- */
.page-hero { background: linear-gradient(105deg, var(--green-dark) 0%, #2f6b46 100%); color: #fff; padding: 3.4rem 0 2.6rem; }
.page-hero .crumbs { font-size: .85rem; color: #cfd8cf; margin-bottom: .8rem; }
.page-hero .crumbs a { color: var(--tan); }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: .6rem; }
.page-hero p { color: #d9e2d9; max-width: 720px; }
.toc-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.toc-chips a { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: .4rem 1rem; font-size: .85rem; font-weight: 600; transition: .18s; }
.toc-chips a:hover { background: var(--tan); border-color: var(--tan); color: #2a2013; }
.cat { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.cat:nth-child(even) { background: var(--cream); }
.cat-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.8rem; align-items: start; }
.cat.flip .cat-grid { grid-template-columns: 1.1fr 0.9fr; }
.cat.flip .cat-media { order: 2; }
.cat-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-media .img-note { font-size: .78rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.cat h2 { font-size: 1.5rem; color: var(--green-dark); margin-bottom: .4rem; }
.cat .cat-tag { display: inline-block; background: #eaf1ea; color: var(--green); border-radius: 6px; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; margin-bottom: .8rem; letter-spacing: .04em; }
.cat > .cat-grid > .cat-body > p { color: var(--muted); margin-bottom: 1rem; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; background: #fff; }
.spec-table caption { text-align: left; font-weight: 700; color: var(--green-dark); padding-bottom: .5rem; font-size: .95rem; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: .5rem .8rem; font-size: .88rem; text-align: left; }
.spec-table th { background: #f0eadf; color: var(--green-dark); font-weight: 700; }
.spec-table tr:nth-child(even) td { background: #faf7f1; }
.cat-packing { background: #fff; border-left: 4px solid var(--tan); border-radius: 0 10px 10px 0; padding: .8rem 1.1rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.3rem; box-shadow: var(--shadow); }
.cat-packing strong { color: var(--ink); }
.cat-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.cat-cta .btn { font-size: .88rem; padding: .6rem 1.2rem; }
@media (max-width: 900px) {
  .cat-grid, .cat.flip .cat-grid { grid-template-columns: 1fr; }
  .cat.flip .cat-media { order: 0; }
}

/* ---------- Process / values ---------- */
.steps { counter-reset: step; margin: 2rem 0; }
.step { display: grid; grid-template-columns: 210px 1fr; gap: 1.6rem; padding: 1.4rem 0; border-bottom: 1px dashed var(--line); align-items: center; }
.step:last-child { border-bottom: 0; }
.step-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.step-img img { height: 150px; width: 100%; object-fit: cover; }
.step-body h3 { color: var(--green-dark); font-size: 1.1rem; margin-bottom: .3rem; }
.step-body h3::before { counter-increment: step; content: counter(step, decimal-leading-zero) " · "; color: var(--tan); font-weight: 800; }
.step-body p { color: var(--muted); font-size: .94rem; }
.step.nophoto { grid-template-columns: 1fr; }
.step.nophoto .step-body { padding-left: 1.2rem; border-left: 3px solid var(--tan); }
.num-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 2.5rem 0 0; }
.num-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 1.3rem 1rem; }
.num-box strong { display: block; font-size: 1.6rem; color: var(--green-dark); }
.num-box span { font-size: .82rem; color: var(--muted); }
.section-dark .num-box { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.section-dark .num-box strong { color: var(--tan); }
.section-dark .num-box span { color: #cfd8cf; }

/* ---------- Trade show gallery (light background variant) ---------- */
.ts-sec .gallery { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ts-sec .gallery figure { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ts-sec .gallery img { height: 220px; }
.ts-sec .gallery figcaption { color: var(--muted); background: #faf7f1; }

/* ---------- Certification cards ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2.2rem; }
.cert-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cert-badge { width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .8rem; letter-spacing: .03em; margin-bottom: 1rem; }
.cert-card h3 { color: var(--green-dark); font-size: 1.15rem; margin-bottom: .5rem; }
.cert-card p { color: var(--muted); font-size: .92rem; flex: 1; margin-bottom: 1.1rem; }
.cert-card .btn { align-self: flex-start; padding: .55rem 1.1rem; font-size: .88rem; }
.note-box { background: #fdf6e7; border: 1px solid #ecd9a8; border-radius: 12px; padding: 1.1rem 1.3rem; font-size: .9rem; color: #6b5a33; margin-top: 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.6rem; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--green-dark); margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; font: inherit; background: #fdfcf9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--tan); border-color: var(--tan); }
.field textarea { min-height: 120px; resize: vertical; }
.form-status { font-size: .88rem; color: var(--muted); text-align: center; min-height: 1.4rem; margin-top: .8rem; }
.form-status.error { color: #b3362b; }
.contact-side .info-card { background: var(--cream); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.contact-side .info-card h4 { color: var(--green-dark); font-size: .95rem; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-side .info-card a, .contact-side .info-card p { font-size: .98rem; color: var(--ink); word-break: break-word; }

/* ---------- Blog / articles ---------- */
.article { max-width: 820px; }
.article > h2 { font-size: 1.45rem; color: var(--green-dark); margin: 2.4rem 0 .9rem; }
.article > h2::before { content: ""; display: block; width: 46px; height: 3px; background: var(--tan); border-radius: 2px; margin-bottom: .7rem; }
.article > h3 { font-size: 1.12rem; color: var(--green-dark); margin: 1.6rem 0 .5rem; }
.article > p { color: #3d4a42; margin-bottom: 1.05rem; }
.article > ul, .article > ol { margin: 0 0 1.3rem 1.5rem; color: #3d4a42; }
.article > ul > li, .article > ol > li { margin-bottom: .5rem; }
.article img.inline-figure { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 1.4rem; }
.article .post-date { font-size: .85rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 1.6rem; }
.blog-list { display: grid; gap: 1.3rem; max-width: 820px; margin: 0 auto; }
.blog-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(36,49,42,.16); }
.blog-card .post-date { font-size: .78rem; color: var(--tan); font-weight: 700; letter-spacing: .08em; margin-bottom: .5rem; }
.blog-card h3 { color: var(--green-dark); font-size: 1.22rem; margin-bottom: .5rem; line-height: 1.35; }
.blog-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(37, 211, 102, .45); transition: transform .18s; }
.wa-float:hover { transform: scale(1.08); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .cert-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 6%; box-shadow: 0 8px 18px rgba(0,0,0,.08); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .hero-content { padding: 4.5rem 0 3.2rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar { gap: 1.4rem; }
}
