/* ==========================================================================
   SHARP ENTERPRISES — Design Tokens
   Palette: charcoal shop-floor dark + brushed steel + logo gold
   Type: Oswald (display, machined/condensed) + IBM Plex Sans (body)
         + IBM Plex Mono (specs, dimensions, data — the "spec sheet" voice)
   ========================================================================== */

:root {
  /* Color */
  --ink-900: #0a0a0b;
  --charcoal-900: #121214;
  --charcoal-800: #1b1b1f;
  --charcoal-700: #232328;
  --steel-600: #6b7078;
  --steel-400: #8f949c;
  --steel-300: #b7bbc1;
  --off-white: #f3f1ea;
  --gold-600: #a9762c;
  --gold-500: #c89b3c;
  --gold-400: #d9b563;
  --gold-300: #e8c874;
  --line: rgba(243, 241, 234, 0.1);
  --line-strong: rgba(243, 241, 234, 0.18);

  /* Type */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-w: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

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

body {
  background: var(--charcoal-900);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  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-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.08;
  color: var(--off-white);
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.04em; }

p { color: var(--steel-300); max-width: 60ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-400);
  display: inline-block;
}

.spec {
  font-family: var(--font-mono);
  color: var(--steel-400);
  font-size: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--gold-500);
  color: var(--off-white);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--gold-500); color: var(--ink-900); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }

.btn-solid {
  background: var(--gold-500);
  color: var(--ink-900);
}
.btn-solid:hover { background: var(--gold-300); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 64px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--gold-400);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--steel-300);
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-400);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--off-white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--off-white);
  font-family: var(--font-mono);
  padding: 8px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--charcoal-800);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px var(--pad); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 100px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 22px; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.turned-part {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.toolpath {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.4s ease forwards 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vh, 110px) 0; }
.section-alt { background: var(--charcoal-800); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip div {
  padding: 30px var(--pad);
  border-left: 1px solid var(--line);
}
.stat-strip div:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--gold-400);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-top: 6px;
}
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip div:nth-child(3) { border-left: none; }
}

/* ---------- Card grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--charcoal-900);
  padding: 34px 30px;
  transition: background 0.25s ease;
}
.section-alt .card { background: var(--charcoal-800); }
.card:hover { background: var(--charcoal-700); }
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-500);
  letter-spacing: 0.1em;
}
.card h3 { margin-top: 10px; }
.card p { margin-top: 12px; font-size: 0.94rem; }

/* ---------- Icon (machining mark) ---------- */
.mark {
  width: 46px; height: 46px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* ---------- List (checked items, from company profile) ---------- */
.check-list { list-style: none; margin-top: 20px; }
.check-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--steel-300);
}
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: '';
  flex: none;
  width: 8px; height: 8px;
  margin-top: 7px;
  background: var(--gold-500);
}

/* ---------- Machinery table ---------- */
.machine-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.machine-table th, .machine-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.machine-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  border-bottom: 1px solid var(--line-strong);
}
.machine-table td:last-child, .machine-table th:last-child { font-family: var(--font-mono); color: var(--steel-400); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: clamp(60px, 10vh, 100px) var(--pad);
}
.cta-band h2 { margin-top: 14px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-grid p, .footer-grid a { color: var(--steel-400); font-size: 0.92rem; }
.footer-grid a { display: block; margin-bottom: 8px; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--off-white); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel-600);
}

/* ---------- Contact form ---------- */
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--charcoal-800);
  border: 1px solid var(--line-strong);
  color: var(--off-white);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--line-strong);
  filter: grayscale(0.4) contrast(1.05);
}

/* ---------- Breadcrumb / page header ---------- */
.page-hero {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--line);
}
.page-hero p { margin-top: 16px; font-size: 1.02rem; }
