/* Liyang New Plastic Products Factory — static site styles */
:root {
  --c-ink: #13212e;
  --c-ink-soft: #4a5a68;
  --c-line: #dfe5ea;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f6f8;
  --c-brand: #1b46a8;
  --c-brand-dark: #12327c;
  --c-accent: #e3241b;
  --c-placeholder: #fff4e0;
  --c-ph-line: #f2a33a;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(19, 33, 46, 0.08);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
}
img { max-width: 100%; display: block; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-brand-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-brand); margin-bottom: 10px;
}
.lead { font-size: 1.12rem; color: var(--c-ink-soft); }
.muted { color: var(--c-ink-soft); }

/* Placeholder marker: content waiting for real factory data */
.ph {
  background: var(--c-placeholder);
  outline: 1px dashed var(--c-ph-line);
  outline-offset: 2px;
  border-radius: 3px;
}
.hero .ph, .page-hero .ph, .stats .ph, .cta .ph, .site-footer .ph { background: rgba(242, 163, 58, .2); }
.ph-badge {
  display: inline-block; font-size: .7rem; font-weight: 700; color: #8a5a10;
  background: var(--c-placeholder); border: 1px dashed var(--c-ph-line);
  border-radius: 999px; padding: 1px 8px; vertical-align: middle;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  font-family: inherit;
}
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--c-brand); color: var(--c-brand); background: transparent; }
.btn--outline:hover { background: var(--c-brand); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--c-ink); font-weight: 800; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--c-brand);
  color: #fff; display: grid; place-items: center; font-size: 1.1rem;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text small { font-weight: 500; font-size: .72rem; color: var(--c-ink-soft); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--c-ink); font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-brand); }
.nav .btn { padding: 10px 20px; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--c-ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--c-line); display: none; padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(110deg, rgba(8,40,58,.94) 0%, rgba(8,60,80,.82) 55%, rgba(27,70,168,.55) 100%),
    repeating-linear-gradient(45deg, #14306e 0 22px, #112a62 22px 44px);
}
.hero__inner { padding: 110px 0 120px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.85); margin-bottom: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 52px; }
.hero__facts strong { display: block; font-size: 1.9rem; }
.hero__facts span { font-size: .9rem; color: rgba(255,255,255,.75); }

.page-hero { background: var(--c-ink); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0; }
.breadcrumb { font-size: .86rem; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card__body p { color: var(--c-ink-soft); font-size: .95rem; }
.card__link { margin-top: auto; font-weight: 600; }

/* Image placeholder box (replace with <img> once photos arrive) */
.img-ph {
  aspect-ratio: 4 / 3; background:
    linear-gradient(135deg, #e7edf1 25%, #dde5ea 25% 50%, #e7edf1 50% 75%, #dde5ea 75%) 0 0 / 28px 28px;
  display: grid; place-items: center; color: #7a8a97; font-size: .85rem; font-weight: 600;
  text-align: center; padding: 10px;
}
.img-ph--square { aspect-ratio: 1 / 1; }
.img-ph--wide { aspect-ratio: 16 / 9; border-radius: var(--radius); }

.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(27,70,168,.1); color: var(--c-brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature p { color: var(--c-ink-soft); font-size: .95rem; margin: 0; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Process steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 24px 22px; border-top: 3px solid var(--c-brand); background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 1.8rem; font-weight: 800; color: rgba(27,70,168,.25); display: block; margin-bottom: 6px;
}
.step p { color: var(--c-ink-soft); font-size: .95rem; margin: 0; }

/* Stats band */
.stats { background: var(--c-brand); color: #fff; padding: 48px 0; }
.stats .grid { text-align: center; }
.stats strong { display: block; font-size: 2.2rem; }
.stats span { color: rgba(255,255,255,.8); font-size: .92rem; }

/* CTA band */
.cta { background: var(--c-ink); color: #fff; padding: 64px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { color: rgba(255,255,255,.75); margin: 0; }

/* Product filter tabs */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff;
  font: inherit; font-size: .92rem; cursor: pointer; color: var(--c-ink);
}
.filter.is-active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--c-brand); background: rgba(27,70,168,.08); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start; }

/* Product detail */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } }
.pd__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pd__thumbs .img-ph { border-radius: 6px; font-size: .7rem; }
.pd__main { border-radius: var(--radius); overflow: hidden; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.spec-table th { width: 38%; background: var(--c-bg-alt); font-weight: 600; }

/* FAQ */
.faq details { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--c-brand); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--c-ink-soft); padding-bottom: 16px; margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; font-size: .82rem; color: var(--c-ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Cable tie site additions */
.logo__img { height: 40px; width: auto; border-radius: 4px; }
.eyebrow--light { color: #ffcc4d; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__grid .hero__inner { padding: 90px 0 100px; }
.hero__img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__grid .hero__inner { padding: 64px 0 32px; }
  .hero__img { margin-bottom: 56px; }
}
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-bg-alt); }
.hero--photo {
  --hero-img: url("../img/hero/hero-a.jpg"); /* alternatives: hero-b.jpg, hero-c.jpg */
  background:
    linear-gradient(90deg, rgba(8,18,52,.92) 0%, rgba(10,24,70,.75) 40%, rgba(10,24,70,0) 70%),
    var(--hero-img) right center / cover no-repeat, #0a163c;
}
.hero--photo .hero__inner { max-width: 560px; padding: 120px 0 130px; }
@media (max-width: 860px) {
  .hero--photo { background:
    linear-gradient(180deg, rgba(8,18,52,.88) 0%, rgba(10,24,70,.8) 100%),
    var(--hero-img) 70% center / cover no-repeat, #0a163c; }
  .hero--photo .hero__inner { padding: 72px 0 80px; }
}
.rounded { border-radius: var(--radius); width: 100%; object-fit: cover; max-height: 460px; }
.hero__facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 24px 28px; white-space: nowrap; }
@media (max-width: 620px) { .hero__facts { grid-template-columns: repeat(2, auto); } }
.narrow { max-width: 820px; margin: 0 auto; }
.split--top { align-items: start; }
.pd__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.pd__gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--c-line); }
.pd__gallery img:first-child:last-child { grid-column: 1 / -1; max-height: 520px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.size-table { width: 100%; border-collapse: collapse; font-size: .9rem; white-space: nowrap; }
.size-table th { background: var(--c-ink); color: #fff; text-align: left; padding: 11px 14px; font-weight: 600; position: sticky; top: 0; }
.size-table td { padding: 9px 14px; border-bottom: 1px solid var(--c-line); }
.size-table td:first-child { font-weight: 600; }
.size-table td { white-space: normal; min-width: 80px; }
.size-table td:first-child { white-space: nowrap; }
.size-table tbody tr:nth-child(even) { background: var(--c-bg-alt); }
.numbered { padding-left: 20px; margin: 0 0 24px; }
.numbered li { margin-bottom: 10px; color: var(--c-ink-soft); }
.numbered strong { color: var(--c-ink); }
.brand-motto { font-size: 1.3rem; font-weight: 700; color: var(--c-brand); margin-top: 24px; }
.brand-motto span { font-size: .95rem; font-weight: 500; font-style: italic; color: var(--c-ink-soft); }

/* Contact page: WhatsApp / Email cards */
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
@media (max-width: 720px) { .contact-options { grid-template-columns: 1fr; } }
.contact-option {
  display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); transition: .2s ease;
}
.contact-option:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--c-ink); }
.contact-option h2 { font-size: 1.5rem; margin-bottom: .2em; }
.contact-option .muted { font-size: .95rem; margin-bottom: 24px; }
.contact-option .btn { margin-top: auto; }
.contact-option__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(27,70,168,.1); color: var(--c-brand);
}
.contact-option__icon svg { width: 30px; height: 30px; }
.contact-option--wa .contact-option__icon { background: rgba(37,211,102,.12); color: #1da851; }
.contact-option__value { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; word-break: break-all; }
.btn--wa { background: #25d366; color: #fff; }
.contact-option:hover .btn--wa { background: #1da851; }
.contact-product { max-width: 920px; margin: 0 auto 20px; padding: 12px 16px; border-radius: 8px; background: rgba(27,70,168,.08); }
.contact-tips { max-width: 920px; margin: 40px auto 0; }
.contact-tips h3 { font-size: 1.05rem; }
.contact-list--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-list--row li { border-bottom: 0; padding: 0; }
@media (max-width: 720px) { .contact-list--row { grid-template-columns: 1fr; } }

/* Inner-page photo hero (background set inline by tools/build.py) */
.page-hero--photo { background-color: #0a163c; background-size: cover; background-position: center; padding: 96px 0 88px; }
.page-hero--photo h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero--photo p { font-size: 1.08rem; color: rgba(255,255,255,.85); }
@media (max-width: 620px) { .page-hero--photo { padding: 64px 0 56px; } }

/* Factory videos & photos */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-grid figure, .photo { margin: 0; }
.video-grid video, .video-single video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block;
  border-radius: var(--radius); background: #0a163c;
}
.video-grid figcaption, .photo figcaption { font-size: .92rem; font-weight: 600; margin-top: 10px; text-align: center; }
.video-single { max-width: 340px; margin: 0 auto; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Footer */
.site-footer { background: #0b1620; color: rgba(255,255,255,.72); padding: 60px 0 24px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* Floating WhatsApp */
.float-contact {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
}
.float-contact svg { width: 28px; height: 28px; }
.float-contact:hover { color: #fff; transform: scale(1.05); }
