/* ============================================================
   MowForge — B2B Manufacturing Site Stylesheet
   Design language: industrial precision · steel blue + hi-vis orange
   ============================================================ */

:root {
  /* Brand palette */
  --steel-900: #0d1f33;
  --steel-800: #0f2942;
  --steel-700: #1b3a5c;
  --steel-600: #2c4a66;
  --accent: #ff6b2c;
  --accent-dark: #e0551a;
  --accent-soft: #fff1ea;

  --ink: #1a2027;
  --gray-700: #3d4852;
  --gray-500: #6b7681;
  --gray-400: #96a1ab;
  --gray-300: #c9d1d8;
  --gray-200: #e3e8ec;
  --gray-100: #eef1f4;
  --white: #ffffff;

  /* Layout */
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 3px rgba(13, 31, 51, 0.08);
  --shadow: 0 4px 16px rgba(13, 31, 51, 0.1);
  --shadow-lg: 0 12px 32px rgba(13, 31, 51, 0.14);

  --topbar-h: 38px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--steel-700); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  margin: 0 0 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--steel-900);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 16px; }

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

.section { padding: 72px 0; }
.section--alt { background: var(--gray-100); }
.section--dark { background: var(--steel-900); color: var(--gray-200); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.lede { font-size: 1.075rem; color: var(--gray-700); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(255, 107, 44, 0.32);
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--steel-800);
  border-color: var(--steel-600);
}
.btn--outline:hover { background: var(--steel-800); color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ===================== Top bar ===================== */
.topbar {
  background: var(--steel-900);
  color: var(--gray-400);
  font-size: 0.82rem;
  padding: 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--topbar-h);
  flex-wrap: wrap;
}
.topbar a { color: var(--gray-300); }
.topbar a:hover { color: var(--accent); }
.topbar-items { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar-tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* ===================== Header ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px;
  background: var(--steel-800);
  color: var(--accent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.04em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 800; font-size: 1.12rem; color: var(--steel-900); letter-spacing: -0.02em; }
.logo-sub {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gray-500); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius);
}
.nav-link:hover, .nav-link.is-active { color: var(--steel-800); background: var(--gray-100); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--steel-800); font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--gray-300);
  width: 42px; height: 42px; border-radius: var(--radius);
  cursor: pointer; color: var(--steel-800);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--steel-900) 0%, var(--steel-700) 58%, var(--steel-600) 100%);
  color: var(--white);
  padding: 88px 0 76px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-bottom: 8px;
}
.hero-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.hero-specs li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 0.95rem; color: rgba(255,255,255,0.9);
}
.hero-specs li::before {
  content: ""; width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; flex: 0 0 auto; transform: translateY(-2px);
}
.hero-specs b { font-family: var(--font-num); color: var(--white); }

/* Hero spec card */
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(4px);
}
.hero-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.spec-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.11);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row span { color: rgba(255,255,255,0.68); }
.spec-row b { font-family: var(--font-num); color: var(--accent); }

/* Trust ribbon */
.trust-ribbon {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.trust-ribbon .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 26px; padding-bottom: 26px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
  width: 42px; height: 42px; flex: 0 0 auto;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.trust-item strong { display: block; font-size: 0.98rem; color: var(--steel-900); }
.trust-item small { color: var(--gray-500); font-size: 0.8rem; }

/* ===================== Grids ===================== */
.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); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--gray-300); transform: translateY(-2px); }
.card-icon {
  width: 46px; height: 46px; margin-bottom: 16px;
  background: var(--steel-800); color: var(--accent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--gray-700); font-size: 0.94rem; margin-bottom: 0; }

/* Product category cards */
.prod-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--accent); }
.prod-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 0.82rem; text-align: center; padding: 18px;
  border-bottom: 1px solid var(--gray-200);
}
.prod-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.prod-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.prod-body p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 14px; }
.prod-meta {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--gray-200);
  font-family: var(--font-num); font-size: 0.82rem; color: var(--gray-500);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  background: var(--gray-100); color: var(--steel-700);
  padding: 3px 9px; border-radius: 999px;
}

/* ===================== Spec table ===================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
table.spec {
  width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--white);
}
table.spec thead th {
  background: var(--steel-800); color: var(--white);
  text-align: left; padding: 14px 18px; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
table.spec td { padding: 14px 18px; border-bottom: 1px solid var(--gray-200); }
table.spec tbody tr:last-child td { border-bottom: none; }
table.spec tbody tr:nth-child(even) { background: #fafbfc; }
table.spec td:first-child { font-weight: 600; color: var(--steel-900); }
table.spec .num { font-family: var(--font-num); }

/* ===================== Stats ===================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat { text-align: center; padding: 8px; }
.stat-value {
  font-family: var(--font-num);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800; color: var(--accent); line-height: 1.05;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.86rem; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* ===================== Photo placeholder ===================== */
.photo {
  background: linear-gradient(135deg, #dfe5ea, #c8d2da);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 0.84rem; text-align: center;
  padding: 26px; gap: 8px; min-height: 220px;
}
.photo strong { color: var(--steel-700); font-size: 0.9rem; }
.photo-lg { min-height: 340px; }

/* ===================== Factory photographs =====================
   Real site photography. 4:3 source rendered straight from the plant's
   360 tour, so object-fit crops nothing on the desktop grid. */
.shot {
  margin: 0; padding: 0; overflow: hidden; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
}
.shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover; background: var(--gray-100);
}
.shot figcaption {
  padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px;
  border-top: 1px solid var(--gray-200); flex: 1;
}
.shot figcaption strong { font-size: 0.92rem; color: var(--steel-900); }
.shot figcaption span { font-size: 0.8rem; color: var(--gray-500); line-height: 1.45; }

/* ===================== Factory film =====================
   Click-to-play, preload="none": the 5 MB clip only downloads if the
   visitor actually asks for it, so the page weight stays on the poster. */
.film {
  margin: 0 0 28px; padding: 0; overflow: hidden; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  /* the homepage links straight to #plant-film — keep it clear of the sticky header */
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.film video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover; background: var(--steel-800);
}
.film figcaption {
  padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--gray-200);
}
.film figcaption strong { font-size: 1rem; color: var(--steel-900); }
.film figcaption span { font-size: 0.86rem; color: var(--gray-500); line-height: 1.5; }

/* ===================== Process timeline ===================== */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { position: relative; padding-top: 44px; }
.step-num {
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
}
.step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { font-size: 0.86rem; color: var(--gray-700); margin: 0; }

/* ===================== FAQ ===================== */
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); margin-bottom: 12px; background: var(--white); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 18px 22px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--steel-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { background: var(--gray-100); }
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; flex: 0 0 auto; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 22px 20px; color: var(--gray-700); font-size: 0.94rem; }
.faq-item.open .faq-a { display: block; }

/* ===================== Forms ===================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--steel-900); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 0.94rem;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,44,0.14);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input[type="file"] { padding: 10px; font-size: 0.86rem; }
.field-hint { font-size: 0.78rem; color: var(--gray-500); }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 16px; }
.form-success {
  display: none; padding: 18px 20px; border-radius: var(--radius);
  background: #e8f6ec; border: 1px solid #b7e0c4; color: #1d6b33;
  font-weight: 600; margin-bottom: 20px;
}
.form-success.show { display: block; }

/* Contact info list */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-200);
  font-size: 0.94rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list .ico { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.info-list strong { display: block; color: var(--steel-900); }
.info-list span { color: var(--gray-700); }

/* ===================== CTA band ===================== */
.cta-band {
  background: var(--accent);
  color: var(--white);
  padding: 54px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn--primary { background: var(--white); color: var(--accent-dark); box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--steel-900); color: var(--white); }
.cta-band .btn--ghost { border-color: rgba(255,255,255,0.6); }

/* ===================== Breadcrumb ===================== */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.84rem; padding: 12px 0;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { color: var(--gray-500); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gray-400); }
.breadcrumb a { color: var(--steel-700); }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--steel-900), var(--steel-700));
  color: var(--white); padding: 62px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 700px; font-size: 1.06rem; margin: 0; }

/* ===================== Footer ===================== */
.footer { background: var(--steel-900); color: var(--gray-400); padding: 56px 0 26px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; margin-bottom: 36px; }
.footer h4 { color: var(--white); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--gray-400); }
.footer a:hover { color: var(--accent); }
.footer .logo-name { color: var(--white); }
.footer .logo-sub { color: var(--gray-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--gray-500);
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-ribbon .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 12px; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow); gap: 2px;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 13px 14px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .header .container { position: relative; }
  .header-phone { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 60px 0 52px; }
  .hero-specs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .trust-ribbon .container { grid-template-columns: 1fr; gap: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
}

/* Accessibility */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
