/* =========================================================
   Automatic Spring Industries — stylesheet (v2)
   Light, clean base. Brand navy/indigo used as accents only —
   not as full-bleed section backgrounds.
   ========================================================= */

:root {
  --navy-900: #12153f;
  --navy-800: #1c2058;
  --indigo-600: #34399c;
  --indigo-500: #4a4fc4;
  --indigo-50: #eef0fb;
  --steel-50: #f8f9fb;
  --steel-200: #e7e9ee;
  --steel-300: #d7dae1;
  --steel-500: #8a8f9c;
  --steel-600: #5b5f6c;
  --ink: #14162e;
  --white: #ffffff;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-width: 1200px;
  --section-pad: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy-900);
}
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }
p { color: var(--steel-600); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-600);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--indigo-600);
  display: inline-block;
}

.dwg-tag {
  position: absolute;
  top: 28px;
  right: clamp(20px, 5vw, 48px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel-500);
  border: 1px solid var(--steel-300);
  padding: 4px 9px;
  border-radius: 3px;
}

section { position: relative; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.logo .mark { width: 42px; height: auto; flex-shrink: 0; }

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong {
  font-family: var(--font-display);
  font-size: 16.5px;
  letter-spacing: 0.005em;
  font-weight: 600;
  color: var(--navy-900);
}
.logo-text span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--steel-500);
  text-transform: uppercase;
}

nav.links { display: flex; gap: 30px; align-items: center; }
nav.links a {
  color: var(--steel-600);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
nav.links a:hover { color: var(--navy-900); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--indigo-600); color: var(--white); }
.btn-primary:hover { background: var(--indigo-500); }

.btn-ghost { border-color: var(--steel-300); color: var(--navy-900); }
.btn-ghost:hover { border-color: var(--navy-900); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy-900);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--steel-50);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 900px 700px at 78% 35%, var(--indigo-50) 0%, rgba(238,240,251,0) 65%), linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.hero-spring {
  position: absolute;
  right: clamp(-40px, -1vw, 60px);
  top: 50%;
  transform: translateY(-46%);
  width: clamp(320px, 40vw, 580px);
  z-index: 1;
  filter: drop-shadow(0 26px 50px rgba(18,21,63,0.16));
  pointer-events: none;
}

.coil-line {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: auto;
  color: rgba(52,57,156,0.12);
}
.coil-line path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 2.4s ease forwards 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-content { position: relative; z-index: 2; padding-top: 30px; padding-bottom: 60px; }

.hero h1 {
  color: var(--navy-900);
  font-size: clamp(38px, 5.6vw, 64px);
  max-width: 14ch;
  margin-bottom: 22px;
}
.hero p.lead {
  color: var(--steel-600);
  font-size: clamp(16px, 1.5vw, 18.5px);
  max-width: 54ch;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

@media (min-width: 981px) { .hero-content { max-width: 620px; } }
@media (max-width: 980px) { .hero-spring { display: none; } }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--steel-300);
  padding-top: 28px;
  gap: 20px;
}
.stat-strip .stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--navy-900);
  font-weight: 600;
}
.stat-strip .stat span { font-size: 12.5px; color: var(--steel-500); letter-spacing: 0.02em; }

/* ---------- generic section spacing ---------- */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--steel-50); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { font-size: 16px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.about-grid figure { border-radius: 4px; overflow: hidden; border: 1px solid var(--steel-300); }
.about-grid figure img { height: 100%; object-fit: cover; }

.highlight-list { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.highlight-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.highlight-list li::before {
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px;
  margin-top: 6px;
  background: var(--indigo-600);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ---------- capability infrastructure ---------- */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--steel-300);
  border: 1px solid var(--steel-300);
  margin-bottom: 56px;
}
.infra-grid .cell {
  background: var(--white);
  padding: 26px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 130px;
}
.infra-grid .cell .num { font-family: var(--font-mono); font-size: 11px; color: var(--indigo-600); }

.traits-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.tag-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border: 1px solid var(--steel-300);
  border-radius: 20px;
  color: var(--navy-900);
  background: var(--white);
}

.app-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-col {
  background: var(--white);
  border: 1px solid var(--steel-300);
  border-top: 3px solid var(--indigo-600);
  padding: 34px;
  border-radius: 4px;
}
.app-col.alt { border-top-color: var(--navy-900); }
.app-col h4 {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-col ul { list-style: none; display: grid; gap: 10px; }
.app-col li { font-size: 14px; color: var(--steel-600); padding-left: 16px; position: relative; }
.app-col li::before { content: '—'; position: absolute; left: 0; color: var(--steel-500); }

.capability-figure {
  margin-top: 56px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--steel-300);
  background: var(--white);
  padding: 24px;
  text-align: center;
}
.capability-figure img {
  max-height: 560px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}
.product-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 720px) {
  .product-photo-grid { grid-template-columns: 1fr; }
}

/* ---------- quality / certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.cert-card { background: var(--white); border: 1px solid var(--steel-300); padding: 28px 22px; border-radius: 4px; }
.cert-card .code { font-family: var(--font-mono); font-size: 12px; color: var(--indigo-600); margin-bottom: 10px; letter-spacing: 0.03em; }
.cert-card h4 { font-size: 15px; margin-bottom: 8px; color: var(--navy-900); }
.cert-card p { font-size: 13px; margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.spec-list { list-style: none; display: grid; gap: 12px; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--steel-300);
  padding-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-900);
}
.spec-list li span { font-weight: 400; color: var(--steel-600); font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
.product-card {
  border: 1px solid var(--steel-300);
  padding: 30px 24px;
  border-radius: 4px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover { border-color: var(--indigo-600); transform: translateY(-3px); }
.product-card .roman { font-family: var(--font-mono); color: var(--indigo-600); font-size: 13px; margin-bottom: 16px; }
.product-card h4 { font-size: 16px; margin-bottom: 10px; color: var(--navy-900); }
.product-card p { font-size: 13.5px; }

.range-block { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.range-block .col {
  background: var(--white);
  border: 1px solid var(--steel-300);
  border-top: 3px solid var(--indigo-600);
  padding: 32px 28px;
  border-radius: 4px;
}
.range-block .col:nth-child(2) { border-top-color: var(--navy-900); }
.range-block .col:nth-child(3) { border-top-color: var(--steel-500); }
.range-block .col span.k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-500);
  display: block;
  margin-bottom: 10px;
}
.range-block .col .v { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 4px; color: var(--navy-900); }
.range-block .col ul { list-style: none; margin-top: 10px; }
.range-block .col li { font-size: 13px; color: var(--steel-600); padding: 3px 0; }

/* ---------- customers ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--steel-300);
  border: 1px solid var(--steel-300);
  margin-bottom: 56px;
}
.logo-tile {
  background: var(--white);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
}
.logo-tile img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-tile:hover img { filter: grayscale(0%); opacity: 1; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--steel-300);
  padding: 30px 26px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stars { color: var(--indigo-600); font-size: 13px; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 14.5px; color: var(--navy-900); font-style: italic; line-height: 1.65; flex-grow: 1; }
.testimonial-card .attrib { font-size: 12.5px; color: var(--steel-500); border-top: 1px solid var(--steel-200); padding-top: 14px; }
.testimonial-card .attrib strong { display: block; color: var(--navy-900); font-size: 13.5px; margin-bottom: 2px; }

/* ---------- export ---------- */
.export-section { background: var(--steel-50); }

.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.export-grid h4 {
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--indigo-600);
}
.export-grid ul { list-style: none; display: grid; gap: 12px; }
.export-grid li { font-size: 14.5px; color: var(--steel-600); padding-left: 18px; position: relative; }
.export-grid li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--indigo-600); }

.market-band { display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--steel-300); padding-top: 32px; }
.market-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 10px 18px;
  border: 1px solid var(--steel-300);
  border-radius: 20px;
  color: var(--navy-900);
  background: var(--white);
}

.export-figure {
  margin-top: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--steel-300);
  padding: 20px;
}
.export-figure img { width: 100%; height: auto; object-fit: contain; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }

.contact-info .tagline {
  font-size: 18px;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 30px;
  max-width: 30ch;
}
.info-rows { display: grid; gap: 22px; margin-bottom: 32px; }
.info-row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-600);
  display: block;
  margin-bottom: 6px;
}
.info-row .v { font-size: 15px; color: var(--navy-900); font-weight: 500; }
.info-row a.v:hover { color: var(--indigo-600); }

.cert-mini-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-mini { font-family: var(--font-mono); font-size: 11px; padding: 6px 10px; border: 1px solid var(--steel-300); border-radius: 3px; color: var(--steel-600); }

form.quote-form {
  background: var(--steel-50);
  border: 1px solid var(--steel-300);
  padding: 36px;
  border-radius: 4px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-600); }
.field input, .field textarea, .field select {
  border: 1px solid var(--steel-300);
  background: var(--white);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 3px;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--indigo-600); outline-offset: 1px; }
.form-note { font-size: 12.5px; color: var(--steel-500); }

/* ---------- footer ---------- */
footer {
  background: var(--white);
  color: var(--steel-600);
  padding: 44px 0 30px;
  border-top: 1px solid var(--steel-200);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--steel-200);
  padding-bottom: 30px;
  margin-bottom: 24px;
}
footer .logo-text strong { color: var(--navy-900); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--steel-600); }
.footer-links a:hover { color: var(--navy-900); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--steel-500); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .two-col, .export-grid, .contact-grid { grid-template-columns: 1fr; }
  .app-columns { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .range-block { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  nav.links, .hero-ctas .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-grid figure { order: -1; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

nav.links.mobile-open {
  display: flex;
  position: absolute;
  top: 76px;
  left: 0; right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 24px clamp(20px,5vw,48px);
  gap: 18px;
  border-bottom: 1px solid var(--steel-200);
}
