/* PACKERWORKS — design system
   charcoal + teal, expanded industrial display type */

:root {
  /* Light industrial. Paper-white surfaces, graphite text, ADCOS teal accent. */
  --page:       #f4f6f6;   /* page background */
  --ink:        #f4f6f6;   /* legacy alias — kept so existing rules keep working */
  --surface:    #ffffff;
  --surface-2:  #eceff0;
  --line:       #ccd3d5;
  --line-soft:  #e2e7e8;
  --text:       #16191a;
  --muted:      #545d60;
  --dim:        #7b8589;

  --accent:     #14c4ab;   /* fills only — always pair with --accent-ink */
  --accent-ink: #06241f;   /* text on an accent fill */
  --accent-text:#0a8f7c;   /* accent as TEXT/links: 4.7:1 on white */
  --accent-dim: #0d7c6c;
  --warn:       #a15b04;
  --bad:        #b4372c;

  /* Dark band used for the hero and footer, so the page still reads industrial */
  --dark:       #16191a;
  --dark-2:     #22272a;
  --on-dark:    #eef1f1;
  --on-dark-dim:#9aa4a7;

  --max: 1240px;
  --pad: clamp(20px, 5vw, 48px);
  --r: 4px;

  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-variation-settings: 'wdth' 125, 'wght' 900;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow {
  font-family: var(--display);
  font-variation-settings: 'wdth' 125, 'wght' 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display);
  font-variation-settings: 'wdth' 125, 'wght' 600;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
  padding: 15px 26px; border: 0; border-radius: var(--r);
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: #10ab96; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--line); color: var(--dim); cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--accent-dim); }
.btn-sm { padding: 10px 16px; font-size: 0.72rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-text {
  font-family: var(--display); font-variation-settings: 'wdth' 125, 'wght' 900;
  font-size: 1.16rem; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-family: var(--display); font-variation-settings: 'wdth' 125, 'wght' 600;
  text-transform: uppercase; letter-spacing: .1em; font-size: .74rem;
  text-decoration: none; color: var(--muted); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current] { color: var(--text); border-bottom-color: var(--accent-dim); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-size: .68rem; font-weight: 700; display: none; place-items: center; padding: 0 5px;
}
.cart-count[data-on] { display: grid; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px; }
  .nav[data-open] { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: .84rem; }
  .burger { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); border-bottom: 1px solid var(--line); }
.hero h1, .hero h2 { color: var(--on-dark); }
.hero .lede { color: var(--on-dark-dim); }
.hero .eyebrow { color: var(--accent); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: clamp(48px, 8vw, 104px) 0;
}
.hero h1 span { color: var(--accent); }
.hero .btn-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 2px; margin-inline: -6%; }
.hero-art img { filter: drop-shadow(0 22px 34px rgba(0,0,0,.55)); width: 100%; height: auto; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-stats b { display: block; font-family: var(--display); font-variation-settings: 'wdth' 125,'wght' 900; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.hero-stats span { font-size: .78rem; color: var(--on-dark-dim); text-transform: uppercase; letter-spacing: .08em; }
.slashes { display: inline-flex; gap: 4px; vertical-align: middle; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 420px; } }

/* ---------- ticker ---------- */
.ticker { background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.ticker-in {
  display: flex; gap: 44px; padding: 11px 0; white-space: nowrap;
  font-family: var(--display); font-variation-settings: 'wdth' 125,'wght' 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  animation: slide 32s linear infinite;
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; justify-content: center; flex-wrap: wrap; white-space: normal; } }

/* ---------- sections ---------- */
section { padding: clamp(52px, 8vw, 92px) 0; }
.section-head { max-width: 66ch; margin-bottom: 42px; }

/* ---------- product grid ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(20,30,35,.08); }
.card-art { background: linear-gradient(165deg, #f7f9f9, #e6ebec); padding: 20px; display: grid; place-items: center; border-bottom: 1px solid var(--line-soft); }
.card-art img { height: 210px; width: auto; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card h3 { font-size: 1rem; margin: 0; line-height: 1.15; }
.card .sku { font-size: .7rem; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.card .from { margin-top: auto; padding-top: 10px; font-size: .82rem; color: var(--muted); }
.card .from b { font-family: var(--display); font-variation-settings: 'wdth' 125,'wght' 900; font-size: 1.5rem; color: var(--text); display: block; }
.badge {
  display: inline-block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px; font-weight: 600;
}
.badge-stock { background: rgba(20,196,171,.16); color: var(--accent-dim); }
.badge-low   { background: rgba(161,91,4,.12); color: var(--warn); }
.badge-flag  { background: var(--surface-2); color: var(--muted); }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-top: 44px; }
.pdp-art { background: linear-gradient(165deg, #f7f9f9, #e4eaeb); border: 1px solid var(--line-soft); border-radius: var(--r); display: grid; place-items: center; padding: 30px; position: sticky; top: 92px; align-self: start; aspect-ratio: 1 / 1; }
.pdp-art img { max-height: 470px; width: auto; }
.crumbs { font-size: .76rem; color: var(--dim); padding-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
@media (max-width: 880px) { .pdp { grid-template-columns: 1fr; } .pdp-art { position: static; } .pdp-art img { max-height: 320px; } }

.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 26px 0; }
.spec-list div { background: var(--surface); padding: 13px 15px; }
.spec-list dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 3px; }
.spec-list dd { margin: 0; font-size: .93rem; font-weight: 500; }

.bullets { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.bullets li { padding-left: 26px; position: relative; color: var(--muted); }
.bullets li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--accent-dim); }

/* ---------- tier table ---------- */
.tiers { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: .9rem; }
.tiers th, .tiers td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.tiers th { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 600; }
.tiers td:last-child, .tiers th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tiers tr[data-active] td { background: rgba(20,196,171,.12); color: var(--text); font-weight: 600; }
.tiers tr[data-active] td:first-child { box-shadow: inset 3px 0 0 var(--accent-dim); }

/* ---------- buy box ---------- */
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-top: 26px; box-shadow: 0 2px 10px rgba(20,30,35,.05); }
.price-now { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-now b { font-family: var(--display); font-variation-settings: 'wdth' 125,'wght' 900; font-size: 2.6rem; line-height: 1; }
.price-now span { color: var(--muted); font-size: .9rem; }
.qty-row { display: flex; gap: 10px; align-items: stretch; margin: 18px 0 14px; flex-wrap: wrap; }
.qty-input { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.qty-input button { width: 44px; background: var(--surface-2); border: 0; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.qty-input button:hover { background: var(--line); }
.qty-input button:hover { background: var(--line); }
.qty-input input { width: 92px; background: transparent; border: 0; color: var(--text); text-align: center; font-size: 1.05rem; font-variant-numeric: tabular-nums; font-family: var(--body); }
.qty-input input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.qty-presets { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.qty-presets button { background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--muted); border-radius: 2px; padding: 6px 11px; font-size: .76rem; cursor: pointer; font-family: var(--body); }
.qty-presets button:hover { border-color: var(--accent); color: var(--text); }
.line-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: .9rem; color: var(--muted); }
.line-total b { font-size: 1.5rem; color: var(--text); font-variant-numeric: tabular-nums; }
.savings { color: var(--accent-dim); font-size: .85rem; font-weight: 600; }

/* ---------- forms ---------- */
label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 12px 13px; border-radius: var(--r); font-family: var(--body); font-size: .95rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- cart ---------- */
.cart-line { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line img { height: 84px; width: auto; margin-inline: auto; }
.cart-sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card, .props > div, .spec-list div, .buybox { background: var(--surface); }
.cart-sum div { display: flex; justify-content: space-between; padding: 9px 0; font-size: .93rem; color: var(--muted); }
.cart-sum div.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; color: var(--text); font-size: 1.15rem; }
.cart-sum div.total b { font-family: var(--display); font-variation-settings: 'wdth' 125,'wght' 900; font-size: 1.7rem; }
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 42px; align-items: start; }
@media (max-width: 880px) { .cart-layout { grid-template-columns: 1fr; } .cart-line { grid-template-columns: 70px 1fr; } }
.link-btn { background: none; border: 0; color: var(--dim); text-decoration: underline; cursor: pointer; font-size: .8rem; padding: 0; font-family: var(--body); }
.link-btn:hover { color: var(--bad); }

/* ---------- value props / misc ---------- */
.props { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.props > div { background: var(--surface); padding: 26px 24px; }
.props h3 { font-size: .95rem; margin-bottom: 8px; }
.props p { margin: 0; color: var(--muted); font-size: .9rem; }
.prop-num { font-family: var(--display); font-variation-settings: 'wdth' 125,'wght' 900; color: var(--accent-dim); font-size: .8rem; letter-spacing: .1em; margin-bottom: 12px; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

table.chart { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.chart th, table.chart td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.chart th { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
table.chart tbody tr:hover { background: var(--surface); }

.notice { border-left: 3px solid var(--accent-dim); background: var(--surface); border: 1px solid var(--line-soft); border-left-width: 3px; padding: 16px 18px; border-radius: 0 var(--r) var(--r) 0; color: var(--muted); font-size: .9rem; }
.notice.warn { border-left-color: var(--warn); }

/* ---------- footer ---------- */
.site-foot { background: var(--dark); color: var(--on-dark); border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 20px; }
.site-foot .logo-text { color: var(--on-dark); }
.site-foot .muted { color: var(--on-dark-dim); }
.site-foot a { color: var(--on-dark-dim); }
.site-foot a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font-family: var(--display); font-variation-settings: 'wdth' 125,'wght' 600; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--dim); margin: 0 0 14px; }
.foot-grid a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; font-size: .89rem; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; color: var(--on-dark-dim); }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.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; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* ---------- inline colour fixes for elements that used to sit on dark ---------- */
a[style*="color:var(--accent)"] { color: var(--accent-text) !important; }
.hero a[style*="color:var(--accent)"] { color: var(--accent) !important; }
table.chart td[style*="color:var(--accent)"] { color: var(--accent-dim) !important; }
.notice b { color: var(--text); }
