/* Hunt Industrial Systems — site styles
   Layout concept: a dark machined plate (the logo's own ground) with brushed-steel type,
   one blue accent, and a roller-chain rule used as the section divider. */
:root {
  --bg: #0c0c0e;          /* matches the inside of the logo plate */
  --panel: #141519;
  --panel-2: #1b1d22;
  --line: #2b2f37;
  --fg: #e9ebef;
  --muted: #b8bec8;
  --steel: #c7ccd4;
  --blue: #1f5cb8;        /* logo blue */
  --blue-hi: #4a86e8;     /* readable blue on dark */
  --ph: #f2c14e;          /* placeholder marker, removed once real details are in */

  --font-display: "Saira Semi Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.95rem;
  --step-0: 1.15rem;
  --step-1: 1.33rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-hi); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; max-width: 65ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--steel);
}
.eyebrow::before { content: ""; display: inline-block; width: 1.75rem; height: 2px; background: var(--blue); vertical-align: middle; margin-right: 0.6rem; }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.85em; }

/* Placeholder marker: anything in .ph still needs a real value from the owner */
.ph {
  color: var(--ph);
  border-bottom: 1px dashed var(--ph);
  font-style: normal;
}
.ph-block {
  border: 1px dashed var(--ph);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--muted);
  display: grid;
  gap: 0.5rem;
}
.ph-block strong { color: var(--ph); font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--step--1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.8rem 1.4rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2a6dd4; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--steel); color: var(--fg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--fg); min-width: 0; }
.brand img { width: 84px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; line-height: 1.2; color: var(--steel); }
.brand-name b { display: block; color: var(--fg); font-weight: 700; font-size: 0.95rem; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.nav a:not(.btn) {
  color: var(--muted); text-decoration: none; font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--blue); }
.nav .btn { padding: 0.55rem 1rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 1180px) { .brand-name { display: none; } }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--fg);
  border-radius: var(--radius); padding: 0.5rem 0.7rem; font: inherit; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; cursor: pointer;
}
@media (max-width: 860px) {
  .brand-name { display: none; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav[data-open="false"] { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a:not(.btn) { display: block; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
}

/* Phone number in the header (computers) */
.nav-phone { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--fg); text-decoration: none; white-space: nowrap; }
.nav-phone small { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .nav-phone { display: none; } }

/* Fixed call bar (phones only) */
.callbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .callbar .btn { padding: 0.95rem 0.5rem; font-size: 1.1rem; letter-spacing: 0.02em; white-space: nowrap; }
}

/* "Text us a photo" callout */
.text-photo { display: grid; gap: 0.3rem; border-left: 3px solid var(--blue); padding: 0.4rem 0 0.4rem 1rem; }
.text-photo b { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.text-photo span { color: var(--muted); }

/* Roller-chain divider, echoing the chain in the logo */
.chain {
  height: 18px;
  background:
    radial-gradient(circle at 9px 9px, #8a919c 0 3px, #3a3f47 3.5px 7px, transparent 7.5px) 0 0 / 28px 18px repeat-x,
    linear-gradient(var(--bg), var(--bg)) 0 0 / 100% 100%;
  position: relative;
  opacity: 0.9;
}
.chain::before {
  content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 8px;
  background: linear-gradient(#2c3037, #23262c);
  border-top: 1px solid #454b55; border-bottom: 1px solid #16181c;
  z-index: -1;
}
.chain-wrap { position: relative; isolation: isolate; padding-block: 0.25rem; }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: 2.25rem; max-width: 46rem; }
.alt { background: var(--panel); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-copy h1 { color: var(--fg); }
.hero-copy h1 { font-style: italic; text-transform: uppercase; letter-spacing: 0.01em; }
.hero-copy h1 span { color: var(--blue-hi); }
.hero-badge { min-width: 0; }
.hero-badge img { width: 100%; border-radius: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; margin: 0.25rem 0 0; list-style: none; color: var(--muted); font-size: var(--step--1); }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-hi); margin-right: 0.5rem; vertical-align: 2px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { order: -1; max-width: 30rem; }
}

/* Page header for inner pages */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .wrap { display: grid; gap: 1rem; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat { background: var(--bg); padding: 1.4rem 1.3rem 1.3rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.alt .cat { background: var(--panel); }
.cat h3 { color: var(--fg); }
.cat p { color: var(--muted); font-size: 0.98rem; }
.cat .codes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.code {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel);
  border: 1px solid var(--line); background: var(--panel-2); border-radius: 3px; padding: 0.1rem 0.4rem;
}

.cat-grid-5 { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.plus { margin-top: 1rem; color: var(--muted); }
.plus b { color: var(--fg); font-weight: 600; }

/* Conveyor belting cards with photo slots */
.belt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.belt { display: grid; gap: 0.7rem; align-content: start; min-width: 0; }
.belt p { color: var(--muted); }
.photo-slot {
  aspect-ratio: 4 / 3; max-width: 100%; border: 1px dashed var(--ph); border-radius: var(--radius);
  display: grid; place-content: center; text-align: center; gap: 0.3rem; padding: 1rem;
  color: var(--muted); font-size: 0.95rem; background: var(--panel-2);
}
.photo-slot span { color: var(--ph); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 860px) { .belt-grid { grid-template-columns: 1fr; } .photo-slot { aspect-ratio: 16 / 9; } }

section[id] { scroll-margin-top: 4.5rem; }
.diagram { margin: 0 0 2.5rem; display: grid; gap: 0.75rem; }
.diagram img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.diagram figcaption { color: var(--muted); max-width: 65ch; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.6rem; align-content: start; padding-top: 1.1rem; border-top: 2px solid var(--line); min-width: 0; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: var(--step--1); color: var(--blue-hi); }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.check-list li { display: grid; grid-template-columns: 1.25rem 1fr; column-gap: 0.75rem; row-gap: 0.15rem; }
.check-list li > * { grid-column: 2; min-width: 0; }
.check-list li::before { content: ""; grid-column: 1; grid-row: 1 / span 2; width: 0.75rem; height: 0.75rem; margin-top: 0.45rem; border: 2px solid var(--blue-hi); transform: rotate(45deg); }
.check-list b { color: var(--fg); font-weight: 600; }
.check-list span { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; color: var(--steel); font-size: 0.95rem; background: var(--panel-2); }

/* CTA band */
.cta-band { background: linear-gradient(180deg, #10233f 0%, #0d1830 100%); border-block: 1px solid #23406b; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: var(--step-2); }
.cta-band p { color: #b9c7dc; margin-top: 0.4rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.9rem; color: var(--steel); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.req { color: var(--blue-hi); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  padding: 0.7rem 0.8rem; width: 100%;
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-hi); outline-offset: 0; border-color: transparent; }
input[type="file"] { padding: 0.55rem; }
.hp { position: absolute; left: -5000px; }
.form-status { border-radius: 4px; padding: 0.85rem 1rem; font-size: 0.98rem; }
.form-status[data-kind="ok"] { background: #10301f; border: 1px solid #23633f; color: #bfe8cf; }
.form-status[data-kind="warn"] { background: #33290f; border: 1px solid #6b5520; color: #f1dca6; }
.form-status[data-kind="err"] { background: #3a1416; border: 1px solid #7a2a2f; color: #f3c3c6; }

.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: 1.2rem; }
.info-card dl { margin: 0; display: grid; gap: 1rem; }
.info-card dt { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.info-card dd { margin: 0.2rem 0 0; color: var(--fg); }

/* About */
.owner { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: start; }
.owner > * { min-width: 0; }
.photo-ph { aspect-ratio: 4 / 5; max-width: 100%; border: 1px dashed var(--ph); border-radius: var(--radius); display: grid; place-items: center; color: var(--ph); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; text-align: center; padding: 1rem; }
@media (max-width: 620px) { .owner { grid-template-columns: 1fr; } .photo-ph { max-width: 12rem; } }
.owner:has(.owner-photo) { grid-template-columns: 19rem 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.owner-photo { margin: 0; display: grid; gap: 0.6rem; position: sticky; top: 6rem; }
.owner-photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.owner-photo figcaption { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) {
  .owner:has(.owner-photo) { grid-template-columns: 1fr; }
  .owner-photo { position: static; max-width: 26rem; }
}

.prose { display: grid; gap: 1rem; }
.prose p { color: var(--muted); }
.story { gap: 1.1rem; }
.story h2 { margin-bottom: 0.25rem; }
.story p:not(.eyebrow) { color: var(--fg); opacity: 0.92; }
.pull {
  margin: 0.75rem 0 0; padding: 1.25rem 0 0 1.25rem; border-left: 3px solid var(--blue);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.3;
  color: var(--fg); max-width: 36ch; text-wrap: balance;
}
.pull cite { display: block; margin-top: 0.75rem; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: var(--step--1); color: var(--muted); letter-spacing: 0.04em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; color: var(--muted); font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid > * { min-width: 0; display: grid; gap: 0.75rem; align-content: start; }
.footer-grid h2 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--steel); font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--fg); }
.footer-grid img { width: 110px; }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
