/* ============================================================
   MANLONG — Foshan Manlong Door Control Co., Ltd.
   Industrial B2B site styles
   ============================================================ */
:root {
  --ink: #12181f;
  --ink-2: #1b2530;
  --ink-3: #24303d;
  --paper: #f6f5f1;
  --white: #ffffff;
  --line: #e2dfd8;
  --line-dark: #33404d;
  --muted: #5d6873;
  --muted-light: #9aa6b2;
  --accent: #e85d1f;
  --accent-dark: #c24a14;
  --radius: 4px;
  --maxw: 1160px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- micro labels ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost.on-dark { color: #fff; border-color: #5a6875; }
.btn-ghost.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-light);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  color: #cdd5dd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  border-bottom-color: var(--accent);
}
.nav-cta {
  font-size: 12px;
  padding: 10px 18px;
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(rgba(18,24,31,0.96), rgba(18,24,31,0.96)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.035) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.035) 39px 40px);
  background-color: var(--ink);
  color: #fff;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 22px 0 24px;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
  font-size: 18px;
  color: #b8c2cc;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 54px;
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
}
.hero-meta div { font-size: 13px; color: var(--muted-light); letter-spacing: 0.06em; }
.hero-meta strong { display: block; color: #fff; font-size: 15px; letter-spacing: 0.02em; margin-top: 2px; }

.hero-schematic {
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.02);
  padding: 34px;
  border-radius: var(--radius);
}
.hero-schematic svg { width: 100%; height: auto; }
.schematic-caption {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  text-align: center;
}

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section.tight { padding: 70px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--ink); color: #fff; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin: 16px 0 14px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 17px; }
.section.dark .section-head p { color: var(--muted-light); }

/* ---------- product index grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-cell {
  background: var(--white);
  padding: 34px 26px 30px;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.product-cell:hover { background: #faf9f6; }
.product-cell .schem {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.product-cell .schem svg { width: 96px; height: 96px; }
.product-cell h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.product-cell p {
  font-size: 14px;
  color: var(--muted);
  flex-grow: 1;
}
.product-cell .cell-link {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- product detail rows ---------- */
.prod-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.prod-row:last-child { border-bottom: none; }
.prod-row:nth-child(even) .prod-schem { order: 2; }
.prod-schem {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-schem svg { width: 220px; height: 220px; max-width: 100%; }
.prod-row h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 14px 0 14px;
}
.prod-row p { color: var(--muted); margin-bottom: 18px; }
.spec-list {
  list-style: none;
  margin-bottom: 26px;
}
.spec-list li {
  padding: 9px 0 9px 26px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.spec-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.spec-list li strong { font-weight: 700; color: var(--ink); }

/* ---------- capabilities (editorial two-col, not tile grid) ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.cap-statement h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
}
.cap-statement h2 .hl { color: var(--accent); }
.cap-statement p { color: var(--muted); margin-top: 20px; font-size: 16px; }
.cap-list { list-style: none; counter-reset: cap; }
.cap-list li {
  counter-increment: cap;
  padding: 26px 0 26px 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cap-list li:first-child { padding-top: 0; }
.cap-list li::before {
  content: counter(cap, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 26px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.cap-list li:first-child::before { top: 0; }
.cap-list h4 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.cap-list p { font-size: 14.5px; color: var(--muted); }
.section.dark .cap-list li { border-bottom-color: var(--line-dark); }
.section.dark .cap-list p { color: var(--muted-light); }
.section.dark .cap-statement p { color: var(--muted-light); }

/* ---------- process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step {
  border-top: 3px solid var(--accent);
  padding-top: 20px;
}
.step .num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.15em; }
.step h4 { font-size: 16px; font-weight: 800; margin: 8px 0 6px; color: #fff; }
.step p { font-size: 14px; color: var(--muted-light); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink-2);
  color: #fff;
  padding: 80px 0;
  border-top: 1px solid var(--line-dark);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; line-height: 1.2; }
.cta-band p { color: var(--muted-light); margin-top: 10px; }

/* ---------- about ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--muted); font-size: 16.5px; margin-bottom: 20px; }
.prose h3 { font-size: 20px; font-weight: 800; margin: 36px 0 14px; }
.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.fact {
  background: var(--white);
  padding: 28px;
}
.fact h4 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.fact p { font-size: 15px; color: var(--ink); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.15; margin: 16px 0 20px; }
.contact-info > p { color: var(--muted); margin-bottom: 32px; }
.contact-line {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-line .lbl {
  width: 110px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-line .val { font-size: 15.5px; font-weight: 600; }
.contact-line .val a:hover { color: var(--accent); }

.inquiry-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.inquiry-form h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.inquiry-form .form-note { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfccc4;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-fine { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- legal / privacy ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin: 14px 0 10px; }
.legal .updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 19px; font-weight: 800; margin: 36px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { color: #3c4650; font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-dark); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-light);
  padding: 64px 0 36px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h5 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 300px; line-height: 1.7; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6b7681;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,0.03) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,0.03) 39px 40px);
  background-color: var(--ink);
  color: #fff;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line-dark);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; margin: 16px 0 12px; }
.page-hero p { color: var(--muted-light); max-width: 640px; font-size: 17px; }

/* ---------- hero photo ---------- */
.hero-photo {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.hero-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-photo .photo-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(18,24,31,0.82);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

/* ---------- product index grid (photo cells) ---------- */
.product-cell .photo {
  height: 150px;
  margin: -34px -26px 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.product-cell .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-cell:hover .photo img { transform: scale(1.04); }
.product-cell .photo.is-schem {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
}
.product-cell .photo.is-schem svg { width: 96px; height: 96px; }

/* ---------- product detail media (photo or schematic) ---------- */
.prod-media {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-media.has-photo { aspect-ratio: 4 / 3; padding: 0; }
.prod-media.is-schem { padding: 48px; }
.prod-media.is-schem svg { width: 220px; height: 220px; max-width: 100%; }
.prod-media .media-tag {
  position: absolute;
}
.media-wrap { position: relative; }
.media-wrap .media-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(18,24,31,0.8);
  color: #cdd5dd;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
}

/* ---------- project gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(18,24,31,0.88));
  color: #fff;
  padding: 30px 16px 14px;
  font-size: 13px;
  font-weight: 600;
}
.gallery-item figcaption span { display: block; font-size: 11px; font-weight: 400; color: var(--muted-light); letter-spacing: 0.08em; margin-top: 2px; }

/* ---------- contact additions ---------- */
.contact-line .val .wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}
.contact-line .val .wa-btn:hover { background: #1da851; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .cap-grid, .contact-grid, .prod-row { grid-template-columns: 1fr; gap: 40px; }
  .prod-row:nth-child(even) .prod-media { order: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fact-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { display: none; }
  .hero-photo img { height: 320px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .inquiry-form { padding: 26px; }
}
