/* ==========================================================================
   VOLDY Machinery — B2B static site
   Industrial catalog aesthetic: IBM Plex Sans + Mono, green #0E9F6E
   ========================================================================== */

@import url("https://fonts.googleapis.cn/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --green: #0e9f6e;
  --green-dark: #0b7f58;
  --green-tint: #e7f6f0;
  --ink: #1f2937;
  --text: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f7f8fa;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-hover: 0 6px 18px rgba(17, 24, 39, 0.08);
  --container: 1200px;
  --header-h: 68px;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--green);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 1em;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.25rem;
}

.brand-logo {
  height: 42px;
  width: auto;
  border-radius: var(--radius);
}

.brand.is-missing .img-fallback {
  min-height: 0;
  width: 42px;
  height: 42px;
  padding: 0;
}

.brand-text {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--ink);
}

.brand-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-bar {
  list-style: none;
  margin: 56px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text);
}

.trust-bar strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}

.trust-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--green-tint);
  color: var(--green-dark);
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text);
  margin-top: 12px;
}

.product-group {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.product-group:not(:first-child) {
  margin-top: 64px;
}

.group-lead {
  max-width: 780px;
  font-size: 0.9375rem;
  color: var(--text);
  margin: -12px 0 28px;
}

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    box-shadow 200ms ease,
    transform 200ms ease;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
}

.product-model {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-title {
  margin-bottom: 8px;
}

.product-tag {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 16px;
}

/* ---------- Spec tables ---------- */

.spec-mini {
  width: 100%;
  border-collapse: collapse;
  margin: auto 0 18px;
  font-size: 0.8438rem;
}

.spec-mini th,
.spec-mini td {
  text-align: left;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.spec-mini tbody tr:last-child th,
.spec-mini tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.spec-mini th {
  width: 42%;
  font-weight: 500;
  color: var(--muted);
  padding-right: 10px;
}

.spec-mini td {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
}

.btn-specs {
  align-self: flex-start;
}

.spec-details {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.spec-details summary {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.spec-details summary::-webkit-details-marker {
  display: none;
}

.spec-details summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  color: var(--green-dark);
  font-family: var(--font-mono);
}

.spec-details[open] summary::before {
  content: "\2212";
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.8125rem;
}

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

.spec-table th {
  width: 46%;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-soft);
}

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

/* ---------- Features (Why VOLDY) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.feature:nth-child(4),
.feature:nth-child(5) {
  grid-column: span 1;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--green-tint);
  color: var(--green-dark);
  margin-bottom: 16px;
}

.feature p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ---------- Applications ---------- */

.applications-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Dies collages: two stacked images at natural aspect ratio */
.applications-figure {
  min-width: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.applications-figure .media-caption {
  margin-bottom: 14px;
}

.applications-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.applications-media img {
  display: block;
  width: 100%;
  height: auto;
}

.application {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.application:first-child {
  padding-top: 0;
}

.application:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.application p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ---------- Service ---------- */

.service-list {
  list-style: none;
  counter-reset: service;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}

.service-list li {
  counter-increment: service;
  position: relative;
  padding: 22px 0 22px 56px;
  border-bottom: 1px solid var(--line);
}

.service-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 40px;
}

.service-list li:nth-child(even) {
  padding-left: 40px;
}

.service-list li:last-child {
  grid-column: 1 / -1;
}

.service-list li::before {
  content: counter(service, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--green-dark);
}

.service-list li:nth-child(even)::before {
  left: 40px;
}

.service-list h3 {
  margin-bottom: 6px;
}

.service-list p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.faq:first-child {
  border-top: 1px solid var(--line);
}

.faq h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
}

.faq p {
  margin-bottom: 0;
  font-size: 0.9688rem;
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.about-copy p {
  font-size: 1rem;
}

.fact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.fact-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.fact-list strong {
  color: var(--ink);
  font-weight: 600;
}

.fact-list span {
  color: var(--text);
}

.about-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 12px 14px;
  margin: 0;
  border-top: 1px solid var(--line);
}

/* Certificate wall (About) */
.cert-wall {
  max-width: 640px;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cert-wall img {
  width: 100%;
  height: auto;
  display: block;
}

/* Facility photo strip (About) */
.facility-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.facility-strip figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.facility-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.facility-strip figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-sites {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-soft);
}

.site-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.site-card address {
  font-style: normal;
  font-size: 0.9375rem;
}

.site-card p {
  margin-bottom: 8px;
}

.site-line a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.site-landline {
  color: var(--muted);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.btn-whatsapp:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.inquiry-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-field label span {
  color: var(--green-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

.btn-submit {
  width: 100%;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 12px 0 0;
  text-align: center;
}

.form-note.error {
  color: #b91c1c;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #c7cdd6;
  padding: 56px 0 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
  gap: 40px;
  padding-bottom: 40px;
}

.social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.social-link svg {
  color: var(--green);
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.footer-about address {
  font-style: normal;
  line-height: 1.8;
}

.footer-about address p {
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  color: #c7cdd6;
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  padding-bottom: 24px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: #8a93a1;
}

.site-footer a[href^="mailto:"],
.site-footer a[href^="tel:"] {
  display: inline;
  color: #c7cdd6;
}

.site-footer a:hover {
  color: #fff;
}

/* ---------- Missing image fallback ---------- */

.is-missing .img-fallback {
  display: flex;
}

.img-fallback {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background:
    repeating-linear-gradient(
      45deg,
      #f1f3f5,
      #f1f3f5 10px,
      #e9ecef 10px,
      #e9ecef 20px
    );
  color: #8a93a1;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: center;
  padding: 16px;
}

.img-fallback svg {
  opacity: 0.55;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-inner {
    gap: 36px;
  }

  .about-layout,
  .contact-layout,
  .applications-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-media {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: 2;
  }

  .trust-bar {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 40px;
  }

  .facility-strip {
    grid-template-columns: 1fr;
  }

  /* Mobile nav */
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .product-grid,
  .feature-grid,
  .service-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-list li:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }

  .service-list li:nth-child(even) {
    padding-left: 56px;
  }

  .service-list li:nth-child(even)::before {
    left: 0;
  }

  .service-list li:last-child {
    grid-column: auto;
  }

  .fact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .inquiry-form {
    padding: 22px 18px;
  }
}
