/* TSS Inventory — enterprise hardware lifecycle
   Palette drawn from the subject: cold-aisle steel, powder-coated rack,
   copper busbar. Display type is Plex Condensed; the rack-unit banding in
   the hero is the one place the design raises its voice. */

:root {
  --ink:      #0F191E;
  --slate:    #1D2F38;
  --steel:    #5A7280;
  --mist:     #E4E9EB;
  --paper:    #FBFBFA;
  --blue:     #12598F;
  --blue-lift:#4A9BD8;
  --green:    #1E8A5C;
  --orange:   #E3761B;

  --measure: 66ch;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --rule: 1px solid rgba(15, 25, 30, .14);

  --step--1: clamp(.82rem, .79rem + .15vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1:  clamp(1.25rem, 1.15rem + .5vw, 1.55rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --step-4:  clamp(2.7rem, 1.9rem + 4vw, 5.4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: inherit; }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--blue-lift);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap {
  width: min(1180px, 100% - var(--gut) * 2);
  margin-inline: auto;
}

/* ---------- header ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 250, .93);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}
.masthead__in {
  display: flex; align-items: center; gap: 2rem;
  min-height: 4.4rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em;
  margin-right: auto;
}
.brand__logo { height: 30px; width: auto; display: block; flex: none; }
.brand span { color: var(--steel); font-weight: 400; }

.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  text-decoration: none; font-size: var(--step--1);
  color: var(--slate); padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none; background: none; border: var(--rule);
  padding: .45rem .7rem; font: inherit; font-size: var(--step--1);
  cursor: pointer; border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: var(--rule);
    padding: .5rem var(--gut) 1.2rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: var(--rule); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: var(--step--1);
  padding: .78rem 1.5rem; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
  border-radius: 2px; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- hero: rack units ---------- */

.hero { border-bottom: var(--rule); background: var(--ink); color: var(--paper); }
.hero__in { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }

.rack { display: grid; gap: 0; }
.rack__u {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  align-items: center;
  border-top: 1px solid rgba(228, 233, 235, .16);
  min-height: 3.1rem;
}
.rack__u:last-child { border-bottom: 1px solid rgba(228, 233, 235, .16); }
.rack__n {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: .68rem; color: rgba(228, 233, 235, .38);
  border-right: 1px solid rgba(228, 233, 235, .16);
  align-self: stretch; display: flex; align-items: center;
  padding-left: .15rem;
}
.rack__t {
  padding: .1rem 0 .1rem 1.2rem;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 600; font-size: var(--step-4);
  line-height: 1; letter-spacing: -.025em;
}
.rack__t--lit { color: var(--orange); }

.hero__lede {
  margin: 2.2rem 0 0 0;
  max-width: 48ch; font-size: var(--step-1);
  color: rgba(251, 251, 250, .78); line-height: 1.45;
}
.hero__acts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .btn { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.hero .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.hero .btn--ghost { background: transparent; color: var(--paper); }
.hero .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

@media (max-width: 620px) {
  .rack__u { grid-template-columns: 2.1rem 1fr; min-height: 2.6rem; }
  .rack__t { padding-left: .8rem; }
}

/* ---------- sections ---------- */

.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band + .band { border-top: var(--rule); }
.band--dim { background: var(--mist); }

.lede { font-size: var(--step-1); color: var(--slate); max-width: 54ch; }

.split {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: rgba(15, 25, 30, .14);
  border: var(--rule); margin-top: 2.5rem;
}
.stat { background: var(--paper); padding: 1.6rem 1.3rem; }
.band--dim .stat { background: var(--mist); }
.stat__f {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: var(--step-3); font-weight: 600; line-height: 1;
  display: block;
}
.stat__f sub {
  font-size: .42em; vertical-align: baseline; color: var(--green);
  margin-left: .12em;
}
.stat__l { font-size: var(--step--1); color: var(--steel); margin-top: .5rem; display: block; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }

/* ---------- services list ---------- */

.svc { border-top: var(--rule); }
.svc__row {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1.5rem; align-items: start;
  padding: 2rem 0; border-bottom: var(--rule);
  text-decoration: none;
}
.svc__row:hover { background: rgba(18, 89, 143, .06); }
.svc__i {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  color: var(--blue); font-size: var(--step-1); line-height: 1.2;
}
.svc__row h3 { margin: 0; }
.svc__row p { margin: 0; color: var(--slate); }
.svc__more { font-size: var(--step--1); color: var(--blue); margin-top: .6rem; display: inline-block; }
@media (max-width: 760px) {
  .svc__row { grid-template-columns: 1fr; gap: .5rem; }
  .svc__i { display: none; }
}

/* ---------- value list ---------- */

.vals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-top: 2rem; }
.val { border-top: var(--rule); padding: 1.3rem 0; }
.val h3 { font-size: var(--step-0); font-weight: 600; margin-bottom: .25rem; font-family: inherit; }
.val p { margin: 0; color: var(--steel); font-size: var(--step--1); }
@media (max-width: 700px) { .vals { grid-template-columns: 1fr; } }

/* ---------- process ---------- */

.steps { counter-reset: s; margin-top: 2.5rem; display: grid; gap: 0; }
.step {
  counter-increment: s;
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem;
  padding: 1.4rem 0; border-top: var(--rule);
}
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: var(--step-1); color: var(--blue);
}
.step h3 { font-size: var(--step-0); margin-bottom: .2rem; font-family: inherit; }
.step p { margin: 0; color: var(--steel); font-size: var(--step--1); }

/* ---------- quotes ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.quote { border-top: 3px solid var(--blue); padding-top: 1.1rem; }
.quote:nth-child(2) { border-top-color: var(--green); }
.quote:nth-child(3) { border-top-color: var(--orange); }
.quote p { font-size: var(--step-0); color: var(--ink); }
.quote cite { font-style: normal; font-size: var(--step--1); color: var(--steel); }
@media (max-width: 800px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field label {
  display: block; font-size: var(--step--1); font-weight: 600;
  margin-bottom: .3rem;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--step-0);
  padding: .7rem .85rem; border: var(--rule); border-radius: 2px;
  background: var(--paper); color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); outline: 2px solid rgba(18, 89, 143, .25); outline-offset: 0;
}
.errorlist { color: var(--blue); font-size: var(--step--1); margin: .3rem 0 0; padding-left: 1.1rem; }

.flash {
  border-left: 3px solid var(--green); background: rgba(30, 138, 92, .09);
  padding: .9rem 1.1rem; margin-bottom: 1.8rem; max-width: var(--measure);
}

/* ---------- footer ---------- */

.foot { background: var(--ink); color: rgba(251, 251, 250, .74); padding: 3.5rem 0 2rem; }
.foot a { color: rgba(251, 251, 250, .74); }
.foot h4 {
  color: var(--paper); font-size: var(--step--1); letter-spacing: .02em;
  margin-bottom: .8rem;
}
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .45rem; font-size: var(--step--1); }
.foot__base {
  margin-top: 2.5rem; padding-top: 1.3rem;
  border-top: 1px solid rgba(228, 233, 235, .16);
  font-size: var(--step--1); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .6rem;
}
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; gap: 2rem; } }

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

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: var(--step--1); color: var(--steel); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 .35rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- category chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
         padding: 0; margin: 2rem 0 0; }
.chips a {
  display: inline-flex; align-items: center; gap: .45rem;
  border: var(--rule); border-radius: 2px; padding: .45rem .85rem;
  text-decoration: none; font-size: var(--step--1); background: var(--paper);
}
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.chips span { color: var(--steel); font-size: .78em; }

/* ---------- filters ---------- */
.filters { margin: 2rem 0 0; }
.filters__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.filters input, .filters select {
  font: inherit; font-size: var(--step--1); padding: .6rem .7rem;
  border: var(--rule); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.filters input[type="search"] { flex: 1 1 16rem; min-width: 0; }
.filters .btn { padding: .6rem 1.2rem; }
.filters__clear { font-size: var(--step--1); color: var(--steel); margin: .8rem 0 0; }

/* ---------- product cards ---------- */
.cards {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem;
}
.card { border: var(--rule); background: var(--paper); border-radius: 2px; overflow: hidden; }
.card:hover { border-color: var(--blue); }
.card__link { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card__img {
  aspect-ratio: 4 / 3; background: var(--mist);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg { color: var(--steel); font-size: var(--step--1); }
.card__body { padding: 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__cat { font-size: .74rem; color: var(--blue); letter-spacing: .03em; }
.card__body h3 { font-size: var(--step-0); margin: 0; font-family: inherit; font-weight: 600; }
.card__pn { font-size: var(--step--1); color: var(--steel); }
.card__body p { font-size: var(--step--1); color: var(--steel); margin: .2rem 0 0; }
.card__foot {
  margin-top: auto; padding-top: .9rem; display: flex; align-items: center;
  justify-content: space-between; gap: .6rem; flex-wrap: wrap;
}
.card__price { font-size: var(--step--1); font-weight: 600; }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .22rem .55rem; border-radius: 2px; border: 1px solid currentColor;
}
.tag--new    { color: var(--green); }
.tag--refurb { color: var(--blue); }
.tag--used   { color: var(--steel); }
.tag--parts  { color: var(--orange); }

/* ---------- pagination + empty state ---------- */
.pager { display: flex; gap: 1.5rem; align-items: center; margin-top: 2.5rem;
         font-size: var(--step--1); }
.pager span { color: var(--steel); }
.empty { border: var(--rule); padding: 2.5rem; margin-top: 2rem; text-align: center; }
.empty h3 { font-family: inherit; }
.empty p { margin-inline: auto; }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
      gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 1rem; }
.pd__media img { width: 100%; height: auto; border: var(--rule); border-radius: 2px; }
.pd__noimg {
  aspect-ratio: 4 / 3; background: var(--mist); border: var(--rule);
  display: flex; align-items: center; justify-content: center; color: var(--steel);
}
.pd__facts { margin: 1.8rem 0 2rem; border-top: var(--rule); }
.pd__facts > div {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1rem;
  padding: .75rem 0; border-bottom: var(--rule);
}
.pd__facts dt { color: var(--steel); font-size: var(--step--1); }
.pd__facts dd { margin: 0; }
@media (max-width: 760px) {
  .pd { grid-template-columns: 1fr; }
  .pd__facts > div { grid-template-columns: 8rem 1fr; }
}

/* ---------- tables ---------- */
.spectable { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.spectable th, .spectable td {
  text-align: left; padding: .7rem 0; border-bottom: var(--rule);
  font-size: var(--step--1); vertical-align: top;
}
.spectable th { color: var(--steel); font-weight: 400; width: 40%; }
.spectable--wide { margin-top: 2rem; display: block; overflow-x: auto; white-space: normal; }
.spectable--wide th, .spectable--wide td { padding: .9rem 1rem .9rem 0; }
.spectable--wide thead th { color: var(--ink); font-weight: 600; width: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 70ch; margin-top: 2rem; }
.faq details { border-bottom: var(--rule); }
.faq details:first-of-type { border-top: var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; padding: 1rem 0; }
.faq summary::marker { color: var(--blue); }
.faq details p { color: var(--steel); margin-top: 0; }
