/* ==========================================================================
   Stark Hardmetal — Carbon Steel theme (Concept A)
   Dark graphite surfaces, amber accents, industrial typography.
   ========================================================================== */

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1c2128;
  --border: #2d333b;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --radius: 8px;
  --font-head: "Barlow", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fbbf24; }
h1, h2, h3, h4 { font-family: var(--font-head); color: #fff; line-height: 1.2; margin: 0 0 .5em; }

.shm-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.shm-btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.shm-btn:hover { transform: translateY(-1px); }
.shm-btn-accent { background: var(--accent); color: #11161d; }
.shm-btn-accent:hover { background: #fbbf24; color: #11161d; box-shadow: 0 8px 20px rgba(245, 158, 11, .25); }
.shm-btn-ghost { border-color: #606c7a; color: var(--text); }
.shm-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.shm-link { font-weight: 600; font-size: 14px; }
.shm-muted { color: var(--muted); }

/* ---------- Header ---------- */
.shm-header { position: sticky; top: 0; z-index: 100; }
.shm-topbar { background: #010409; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); }
.shm-topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 24px; }
.shm-topbar a { color: var(--muted); }
.shm-topbar a:hover { color: var(--accent); }
.shm-topbar-contact em { margin: 0 8px; font-style: normal; color: var(--border); }

.shm-navwrap { background: rgba(13, 17, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.shm-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.shm-logo-text { font-family: var(--font-head); font-weight: 800; font-size: 21px; color: #fff; letter-spacing: .5px; }
.shm-logo-text span { color: var(--accent); }
.custom-logo { max-height: 48px; width: auto; }

.shm-menu ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.shm-menu a { color: var(--text); font-size: 14.5px; font-weight: 500; padding: 6px 0; }
.shm-menu .current-menu-item > a, .shm-menu a:hover { color: var(--accent); border-bottom: 2px solid var(--accent); }
.shm-menu .sub-menu { display: none; }
.shm-nav-cta { white-space: nowrap; padding: 10px 18px; font-size: 14px; }

.shm-burger { display: none; background: none; border: 0; width: 40px; height: 34px; position: relative; cursor: pointer; }
.shm-burger span:not(.screen-reader-text) { display: block; height: 2px; background: var(--accent); margin: 5px auto; width: 24px; border-radius: 1px; transition: .2s; }
body.shm-nav-open .shm-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.shm-nav-open .shm-burger span:nth-child(2) { opacity: 0; }
body.shm-nav-open .shm-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.shm-hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1100px 380px at 82% -10%, rgba(245, 158, 11, .16), transparent 60%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg) 55%, var(--surface2) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.shm-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 26px, rgba(255, 255, 255, .02) 26px 27px);
  pointer-events: none;
}
.shm-hero .shm-container { position: relative; z-index: 1; }
.shm-hero-compact { padding: 56px 0 48px; }
.shm-kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 3px; font-size: 13px; color: var(--accent); font-weight: 700; margin: 0 0 14px; }
.shm-h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; max-width: 720px; margin: 0 0 14px; }
.shm-h1 em { color: var(--accent); font-style: normal; }
.shm-hero-sub { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 0 10px; }
.shm-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Stats ---------- */
.shm-stats { background: var(--surface2); border-block: 1px solid var(--border); }
.shm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 24px; }
.shm-stat { text-align: center; }
.shm-stat b { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--accent); }
.shm-stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
.shm-section { padding: 72px 0; }
.shm-section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.shm-h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.shm-section-sub { color: var(--muted); margin: -8px 0 34px; }
.shm-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.shm-sec-head .shm-h2 { margin: 0; }

/* ---------- Category grid ---------- */
.shm-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.shm-cat-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.shm-cat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); color: var(--text); }
.shm-cat-glyph { display: flex; align-items: center; justify-content: center; height: 64px; margin-bottom: 12px; }
.shm-cat-card h3 { font-size: 16px; margin: 0 0 6px; }
.shm-cat-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.shm-cat-count { font-size: 11.5px; color: var(--accent); font-weight: 600; }

/* ---------- Product cards ---------- */
.shm-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shm-prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.shm-prod-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.shm-prod-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface2); display: flex; align-items: center; justify-content: center; }
.shm-prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shm-prod-ph { opacity: .85; }
.shm-prod-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shm-prod-body h3 { font-size: 16.5px; margin: 0; }
.shm-prod-body h3 a { color: #fff; }
.shm-prod-body h3 a:hover { color: var(--accent); }
.shm-grade { font-size: 12px; color: var(--accent); font-weight: 600; margin: 0; letter-spacing: .5px; }
.shm-prod-body > p:last-of-type { font-size: 13px; color: var(--muted); margin: 0; }
.shm-prod-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; font-size: 12px; }

/* ---------- Tax pills ---------- */
.shm-tax-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.shm-tax-pills a {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
}
.shm-tax-pills a:hover, .shm-tax-pills a.on { border-color: var(--accent); color: var(--accent); }

/* ---------- About strip ---------- */
.shm-about { background: var(--surface); border-block: 1px solid var(--border); padding: 72px 0; }
.shm-about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.shm-about-art { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.shm-checks { list-style: none; padding: 0; margin: 18px 0 26px; }
.shm-checks li { padding: 7px 0 7px 30px; position: relative; color: var(--text); font-size: 14.5px; }
.shm-checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px;
  color: #11161d; background: var(--accent);
  border-radius: 50%;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- CTA / inquiry ---------- */
.shm-cta-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.shm-cta-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.shm-form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.shm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.shm-form-grid p { margin: 0; }
.shm-form-wide { grid-column: 1 / -1; }
.shm-form input, .shm-form select, .shm-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 11px 12px;
}
.shm-form input:focus, .shm-form textarea:focus, .shm-form select:focus { outline: none; border-color: var(--accent); }
.shm-form-status { font-size: 13.5px; margin: 10px 0 0; min-height: 20px; }
.shm-form-status.ok { color: #34d399; }
.shm-form-status.err { color: #f87171; }
.shm-inq-wrap { max-width: 760px; }
.shm-inq-wrap .shm-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }

/* ---------- Product single ---------- */
.shm-product-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.shm-product-img { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.shm-product-ph-big { display: flex; align-items: center; justify-content: center; }
.shm-product-ph-big svg { width: 120px; height: auto; opacity: .9; }
.shm-product-cats { margin: 0 0 14px; }
.shm-pill {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 16px;
  font-size: 12.5px;
  padding: 4px 14px;
  margin: 0 8px 8px 0;
}
.shm-specs { width: 100%; border-collapse: collapse; margin: 22px 0 26px; font-size: 14px; }
.shm-specs th, .shm-specs td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.shm-specs th { background: var(--surface2); color: var(--muted); font-weight: 600; width: 34%; }
.shm-specs td { background: var(--surface); }
.shm-prod-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.shm-contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 26px 0; }
.shm-contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.shm-contact-card h3 { font-size: 15px; margin-bottom: 6px; color: var(--accent); }
.shm-contact-card a { color: var(--text); font-size: 15px; word-break: break-all; }
.shm-contact-card a:hover { color: var(--accent); }
.shm-socials { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.shm-socials a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 22px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.shm-socials a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 782px) { .shm-contact-cards { grid-template-columns: 1fr; } }

/* ---------- Blog / posts ---------- */
.shm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding: 48px 24px 72px; }
.shm-post { border-bottom: 1px solid var(--border); padding: 26px 0; }
.shm-post-title { font-size: 24px; margin-bottom: 8px; }
.shm-post-title a { color: #fff; }
.shm-post-title a:hover { color: var(--accent); }
.shm-post-thumb { border-radius: var(--radius); overflow: hidden; display: block; max-width: 480px; }
.shm-post-meta { font-size: 13px; }
.shm-article { max-width: 820px; padding: 48px 24px 80px; }
.shm-entry h2, .shm-entry h3 { margin-top: 1.4em; }
.shm-entry a { text-decoration: underline; }
.shm-entry table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.shm-entry th, .shm-entry td { border: 1px solid var(--border); padding: 8px 12px; }
.shm-entry blockquote { border-left: 3px solid var(--accent); margin: 1.2em 0; padding: .4em 1.2em; color: var(--muted); }
.shm-breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.shm-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.shm-breadcrumb a { color: var(--muted); }
.shm-breadcrumb a:hover { color: var(--accent); }
.shm-breadcrumb span[aria-hidden] { color: var(--border); }
.shm-pagination { margin: 36px 0 0; display: flex; gap: 8px; }
.shm-pagination .page-numbers { border: 1px solid var(--border); border-radius: 4px; padding: 8px 14px; color: var(--text); font-size: 14px; }
.shm-pagination .current, .shm-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Search ---------- */
.shm-searchform { display: flex; gap: 8px; }
.shm-searchform input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text); padding: 10px 12px; }
.shm-searchform button { background: var(--accent); color: #11161d; border: 0; border-radius: 4px; font-weight: 700; padding: 10px 16px; cursor: pointer; }

/* ---------- Footer ---------- */
.shm-footer { background: #010409; border-top: 1px solid var(--border); margin-top: 0; }
.shm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 24px 40px; }
.shm-footer h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; }
.shm-footer ul { list-style: none; margin: 0; padding: 0; }
.shm-footer li { margin: 9px 0; }
.shm-footer a { color: var(--muted); font-size: 14px; }
.shm-footer a:hover { color: var(--accent); }
.shm-footer p { font-size: 14px; margin: 10px 0; }
.shm-footer-bottom { border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.shm-footer-bottom .shm-container { display: flex; justify-content: space-between; gap: 14px; padding: 16px 24px; flex-wrap: wrap; }

/* ---------- Floating actions ---------- */
.shm-float { position: fixed; right: 16px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 99; }
.shm-float-btn {
  width: 46px; height: 46px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
}
.shm-float-btn:hover { background: var(--accent); color: #11161d; }
.shm-float-cta { width: auto; height: auto; border-radius: 22px; padding: 10px 16px; font-size: 13px; font-weight: 700; background: var(--accent); color: #11161d; }
.shm-mobile-cta { display: none; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--accent); color: #11161d; padding: 8px 14px; z-index: 200; border-radius: 4px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .shm-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .shm-prod-grid { grid-template-columns: repeat(3, 1fr); }
  .shm-footer-grid { grid-template-columns: 1fr 1fr; }
  .shm-layout { grid-template-columns: 1fr; }
  .shm-sidebar { display: none; }
}

@media (max-width: 782px) {
  .shm-topbar-loc { display: none; }
  .shm-topbar-in { justify-content: center; }
  .shm-nav { padding: 12px 18px; }
  .shm-nav-cta { display: none; }
  .shm-burger { display: block; }

  .shm-menu {
    position: fixed;
    inset: 0;
    background: rgba(1, 4, 9, .97);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform .25s ease;
    z-index: 90;
  }
  .shm-menu ul { flex-direction: column; align-items: center; gap: 6px; }
  .shm-menu a { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #fff; }
  body.shm-nav-open { overflow: hidden; }
  body.shm-nav-open .shm-menu { transform: translateY(0); }
  .shm-header .shm-menu { top: 0; }

  .shm-hero { padding: 64px 0 56px; }
  .shm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .shm-stat b { font-size: 24px; }
  .shm-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shm-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shm-about { padding: 48px 0; }
  .shm-about-grid, .shm-cta-grid, .shm-product-top { grid-template-columns: 1fr; gap: 28px; }
  .shm-section { padding: 48px 0; }
  .shm-form-grid { grid-template-columns: 1fr; }
  .shm-footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 40px 24px 28px; }

  /* sticky inquiry bar */
  .shm-float { display: none; }
  .shm-mobile-cta {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 98;
    background: var(--surface2);
    border-top: 1px solid var(--border);
  }
  .shm-mobile-cta a { flex: 1; text-align: center; padding: 13px 6px; font-weight: 700; font-size: 14px; }
  .shm-mobile-cta .m-ghost { color: var(--text); }
  .shm-mobile-cta .m-accent { background: var(--accent); color: #11161d; }
  body { padding-bottom: 52px; }
}

@media (max-width: 480px) {
  .shm-h1 { font-size: 28px; }
  .shm-cat-grid { grid-template-columns: 1fr 1fr; }
  .shm-hero-btns .shm-btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
