/*
Theme Name: Qianjin Plastic Machinery
Theme URI: https://qianjinplastic.com/
Author: Qianjin Plastic Machinery
Author URI: https://qianjinplastic.com/
Description: Industrial English website theme for a plastic recycling and washing machinery manufacturer. Equipment, complete washing lines, and process-stage navigation.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: qianjin-plastic
*/

/* ---------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------- */

:root {
  --ink: #141a1e;
  --ink-2: #1d2529;
  --ink-3: #2a343a;
  --steel: #4c585f;
  --muted: #7b878d;
  --paper: #f3f5f4;
  --paper-2: #e7ebe9;
  --white: #ffffff;
  --brand: #14654c;
  --brand-deep: #0e4b38;
  --brand-soft: #e4efe9;
  --signal: #c8871b;
  --signal-soft: #f6ead2;
  --line: rgba(20, 26, 30, 0.12);
  --line-strong: rgba(20, 26, 30, 0.22);
  --line-dark: rgba(255, 255, 255, 0.14);
  --container: 1280px;
  --gutter: clamp(18px, 3vw, 40px);
  --section: clamp(4rem, 7vw, 7rem);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 22, 26, 0.06), 0 10px 30px rgba(16, 22, 26, 0.07);
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------------------------------------------------------------
   2. Reset and base
   --------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.05rem);
}

h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
}

h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
}

p {
  color: var(--steel);
}

ul.plain {
  list-style: none;
  padding: 0;
}

::selection {
  color: var(--white);
  background: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------- */

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(calc(100% - (var(--gutter) * 2)), 940px);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section-white {
  background: var(--white);
}

.section-paper {
  background: var(--paper);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p,
.section-dark li {
  color: rgba(255, 255, 255, 0.7);
}

.section-tight {
  padding-block: clamp(2.6rem, 4.4vw, 4.4rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

.section-head p {
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: currentColor;
}

.eyebrow-light {
  color: #edb757;
}

.lede {
  max-width: 720px;
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--brand);
}

.skip-link:focus {
  top: 16px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--brand);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button:hover {
  background: var(--brand-deep);
}

.button svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.button-outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.button-outline:hover {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light:hover {
  background: var(--paper-2);
}

.button-ghost-light {
  border-color: var(--line-dark);
  color: var(--white);
  background: transparent;
}

.button-ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 600;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.section-dark .text-link {
  color: #8fd3b8;
}

/* ---------------------------------------------------------------
   5. Header
   --------------------------------------------------------------- */

.utility-bar {
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-size: 0.78rem;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  justify-content: space-between;
  padding-block: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius);
  background: var(--brand);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.primary-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-list > li > a:hover {
  background: var(--paper);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--brand);
}

.header-cta {
  min-height: 42px;
  padding: 0.55rem 1rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle .menu-icon-close[hidden] {
  display: none;
}

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 76vh, 780px);
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media video,
.hero-media img {
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(10, 16, 18, 0.72) 0%, rgba(10, 16, 18, 0.62) 45%, rgba(10, 16, 18, 0.86) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.hero h1 {
  max-width: 20ch;
  color: var(--white);
}

.hero .lede {
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hero-facts > div {
  padding: 1rem 1.2rem;
  background: rgba(10, 16, 18, 0.35);
}

.hero-facts span {
  display: block;
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.page-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  color: var(--white);
  background: var(--ink-2);
}

.page-hero .lede {
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.76);
}

.page-hero h1 {
  max-width: 22ch;
}

.breadcrumbs {
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.breadcrumbs a:hover {
  color: var(--white);
}

/* ---------------------------------------------------------------
   7. Stat strip
   --------------------------------------------------------------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat-strip > div {
  padding: 1.4rem 1.3rem;
  background: var(--white);
}

.stat-strip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------
   8. Cards
   --------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.equipment-card,
.line-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.equipment-card:hover,
.line-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.equipment-card:hover .card-media img,
.line-card:hover .card-media img {
  transform: scale(1.03);
}

.card-media .card-index {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  color: var(--white);
  background: rgba(10, 16, 18, 0.72);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.card-media .card-badge {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem;
  border-radius: 3px;
  color: var(--white);
  background: rgba(10, 16, 18, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-media .card-badge svg {
  width: 11px;
  height: 11px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.3rem;
}

.card-body h3 a:hover {
  color: var(--brand);
}

.card-body p {
  font-size: 0.93rem;
}

.card-stage {
  color: var(--signal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.card-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-meta dd {
  margin: 0.15rem 0 0;
  font-family: var(--mono);
  font-size: 0.84rem;
}

/* ---------------------------------------------------------------
   9. Process strip
   --------------------------------------------------------------- */

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  list-style: none;
  background: var(--line-dark);
  overflow: hidden;
  counter-reset: stage;
}

.process-list li {
  counter-increment: stage;
  background: var(--ink-2);
}

.process-list a {
  display: block;
  height: 100%;
  padding: 1.3rem 1.25rem 1.5rem;
}

.process-list a:hover {
  background: var(--ink-3);
}

.process-step-index {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.process-step-index::before {
  content: counter(stage, decimal-leading-zero);
}

.process-list h3 {
  margin: 0.7rem 0 0.45rem;
  color: var(--white);
  font-size: 1.08rem;
}

.process-list p {
  margin: 0;
  font-size: 0.86rem;
}

/* ---------------------------------------------------------------
   10. Media + copy split
   --------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}

.split-media img,
.split-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy > * + * {
  margin-top: 1.1rem;
}

.split-copy h2 {
  max-width: 24ch;
}

.feature-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.feature-list svg {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex: none;
  color: var(--brand);
}

.section-dark .feature-list svg {
  color: #8fd3b8;
}

/* ---------------------------------------------------------------
   11. Spec table
   --------------------------------------------------------------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.92rem;
}

.spec-table caption {
  padding-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  color: var(--muted);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-table tbody th {
  width: 30%;
  font-weight: 600;
}

.spec-table td {
  font-family: var(--mono);
  font-size: 0.88rem;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------------------------------------------------------------
   12. Material tiles + steps
   --------------------------------------------------------------- */

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.material-tile {
  padding: 1.35rem 1.3rem;
  background: var(--white);
}

.material-tile h3 {
  margin-bottom: 0.45rem;
  font-size: 1.04rem;
}

.material-tile p {
  font-size: 0.9rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 1.1rem;
  border-top: 2px solid var(--line-strong);
}

.steps li::before {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.8rem;
  content: "STEP " counter(step, decimal-leading-zero);
}

.steps h3 {
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
}

.steps p {
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------
   13. Inquiry
   --------------------------------------------------------------- */

.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: start;
}

.inquiry-copy > * + * {
  margin-top: 1rem;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0.2rem 0 0;
}

.inquiry-form {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
}

.field label .req {
  color: var(--signal);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.68rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.94rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand-soft);
}

.form-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.form-status {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.form-status-ok {
  color: #0e4b38;
  background: var(--brand-soft);
}

.form-status-error {
  color: #7a2410;
  background: #f7e3dc;
}

/* ---------------------------------------------------------------
   14. CTA band
   --------------------------------------------------------------- */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.cta-band h2 {
  max-width: 26ch;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--white);
}

.cta-band p {
  margin-top: 0.6rem;
  max-width: 46ch;
  font-size: 0.94rem;
}

/* ---------------------------------------------------------------
   15. Footer
   --------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(3rem, 6vw, 4.6rem);
  color: rgba(255, 255, 255, 0.7);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-brand .brand-copy strong {
  color: var(--white);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: 0.9rem;
}

.footer-col h3 {
  margin-bottom: 0.9rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.91rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------
   16. Content blocks (single views)
   --------------------------------------------------------------- */

.entry-content > * + * {
  margin-top: 1.05rem;
}

.entry-content h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.entry-content h3 {
  margin-top: 1.8rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.15rem;
  color: var(--steel);
}

.entry-content li + li {
  margin-top: 0.35rem;
}

.entry-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame-photo {
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}

.side-panel {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.side-panel h3 {
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-panel + .side-panel {
  margin-top: 1.2rem;
}

.side-links {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.side-links a {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.side-links a:hover {
  color: var(--brand);
}

.side-links svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--brand);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--steel);
  background: var(--paper);
  font-size: 0.8rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.pagination .current {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.empty-state {
  padding: clamp(2.4rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

/* ---------------------------------------------------------------
   17. Reveal animation
   --------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .equipment-card,
  .line-card {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------
   18. Responsive
   --------------------------------------------------------------- */

@media (max-width: 1080px) {
  .card-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    padding: calc(72px + 2rem) var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--white);
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 0.2rem;
  }

  .nav-list > li > a {
    padding: 0.85rem 0.6rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.05rem;
  }

  .header-cta {
    display: none;
  }

  .section-head,
  .split,
  .inquiry,
  .single-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .static-on-mobile .split-media {
    aspect-ratio: 16 / 10;
  }

  .card-grid,
  .card-grid-2,
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .card-grid,
  .card-grid-2,
  .card-grid-4,
  .material-grid,
  .process-list,
  .steps,
  .stat-strip,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .utility-inner {
    font-size: 0.74rem;
  }

  .hero {
    min-height: 0;
    padding-top: clamp(3rem, 14vw, 5rem);
  }

  .button {
    width: 100%;
  }

  .button-row .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
