/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn--primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-ink); border-color: var(--gold-ink); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--paper); }
.section--navy .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,.6); }
.section--navy .btn--ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn--lg { min-height: 54px; padding: .95rem 1.7rem; font-size: 1.05rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
.actions__note { color: var(--mark); font-size: .95rem; }
.actions__note a { white-space: nowrap; }
.section--navy .actions__note { color: var(--slate-light); }

/* Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 3.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy .kicker { margin-bottom: 1rem; }
.hero__copy h1 { margin-bottom: 1.25rem; }
.hero__copy .lead { margin-bottom: 1.75rem; }
@media (max-width: 879px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
}

/* Document stack: a controlled spec sheet (current) over its superseded revision */
.docstack {
  position: relative;
  padding: 2.75rem 0 0 1.75rem;
}
.doc {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(1rem, 2.2vw, 1.4rem);
  box-shadow: 0 24px 48px -28px rgba(12,35,63,.45);
}
.doc--obsolete {
  position: absolute;
  inset: 0 1.75rem 2.75rem 0;
  padding: .8rem 1rem;
  background: var(--stock);
  box-shadow: none;
  overflow: hidden;
}
.doc__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 800;
  font-stretch: var(--wdth-head);
  font-size: .95rem;
  letter-spacing: -0.01em;
}
.doc__head span:last-child { font-weight: 600; color: var(--mark); font-size: .8rem; font-stretch: 100%; }
.doc--obsolete .doc__head { border-color: var(--mark); color: var(--mark); }
.doc__body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: .9rem;
  padding-block: .9rem;
}
.doc__fig {
  aspect-ratio: 1;
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 0 46%, var(--paper) 46% 54%, transparent 54%),
    var(--doc-fig);
  border: 1px solid var(--doc-line);
}
.doc__lines { display: grid; gap: .45rem; align-content: start; }
.doc__lines i {
  display: block;
  height: 7px;
  border-radius: 2px;
  background: var(--doc-line);
  width: var(--w, 100%);
}
.doc__lines i.is-head { height: 10px; background: var(--slate-light); width: 60%; margin-bottom: .2rem; }
.doc__spec {
  width: 100%;
  border-collapse: collapse;
  font-size: .72rem;
  color: var(--slate);
}
.doc__spec td { padding: .3rem 0; border-top: 1px solid var(--doc-line); }
.doc__spec td:last-child { text-align: right; color: var(--navy); font-weight: 600; }
.doc__spec tr.is-changed td:last-child { color: var(--current); }

/* The title block: where a controlled document carries its identity */
.titleblock {
  display: grid;
  grid-template-columns: 1.7fr .7fr 1.5fr 1.1fr;
  border: 1.5px solid var(--navy);
  margin-top: .9rem;
}
.titleblock > div {
  padding: .4rem .5rem;
  border-right: 1px solid var(--navy);
  min-width: 0;
}
.titleblock > div:last-child { border-right: 0; }
.titleblock small {
  display: block;
  font-size: .6rem;
  line-height: 1.2;
  color: var(--mark);
  font-weight: 600;
}
.titleblock b {
  display: block;
  font-size: .82rem;
  line-height: 1.2;
  color: var(--navy);
  font-weight: 800;
  font-stretch: var(--wdth-head);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.titleblock b.is-current { color: var(--current); }
@media (max-width: 479px) {
  .titleblock { grid-template-columns: 1.6fr .6fr 1.1fr; }
  .titleblock > div:nth-child(3) { display: none; }
  .titleblock > div:nth-child(2) { border-right: 1px solid var(--navy); }
}
.doc--obsolete .titleblock { border-color: var(--mark); }
.doc--obsolete .titleblock > div { border-color: var(--mark); }
.doc--obsolete .titleblock b { color: var(--mark); }

.doc__stamp {
  position: absolute;
  right: 1rem;
  top: .45rem;
  transform: rotate(-4deg);
  padding: .15rem .5rem;
  border: 2px solid var(--obsolete);
  border-radius: 3px;
  color: var(--obsolete);
  font-weight: 800;
  font-stretch: var(--wdth-head);
  font-size: .78rem;
  line-height: 1.3;
  letter-spacing: .02em;
  background: rgba(255,255,255,.85);
  white-space: nowrap;
}
.docstack__caption {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--mark);
  max-width: 44ch;
}

/* Facts strip: four title-block cells under the hero ------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--navy);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.facts > div {
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--navy);
}
.facts > div:last-child { border-right: 0; }
.facts b {
  display: block;
  color: var(--navy);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 800;
  font-stretch: var(--wdth-head);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.facts span { display: block; margin-top: .3rem; font-size: .92rem; color: var(--slate); line-height: 1.35; }
@media (max-width: 767px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--navy); }
}

/* Pains: three things a manufacturer actually says --------------------- */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.pains blockquote {
  padding: 1.1rem 1.25rem 1.1rem 1.4rem;
  border-left: 3px solid var(--gold);
  background: var(--paper);
  color: var(--navy);
  font-size: var(--fs-lead);
  font-weight: 600;
  font-stretch: var(--wdth-head);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
@media (max-width: 767px) { .pains { grid-template-columns: 1fr; } }

/* Product grid: shared hairlines, no shadows ----------------------------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.pgrid__item {
  padding: 1.25rem 1.25rem 1.4rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background-color .15s var(--ease);
}
.pgrid__item:hover { background: var(--stock); }
.pgrid__item h3 { font-size: 1.1rem; line-height: 1.25; }
.pgrid__item p { font-size: .95rem; line-height: 1.45; }
.pgrid__item .who { margin-top: auto; padding-top: .6rem; font-size: var(--fs-sm); color: var(--mark); }
@media (max-width: 1023px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .pgrid { grid-template-columns: 1fr; } }

/* Steps: for content that really is a sequence ---------------------------- */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.steps li { counter-increment: step; margin: 0; }
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: .8rem;
}
.steps h3 { margin-bottom: .45rem; }
.steps p { font-size: .98rem; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1023px) { .steps, .steps--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .steps, .steps--5 { grid-template-columns: 1fr; } }

/* Revision record: an example of what the client can see --------------- */
.revlog {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  overflow: hidden;
}
.revlog__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: var(--fs-sm);
}
.revlog__head b { color: var(--paper); }
.revlog__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.revlog table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .95rem;
}
.revlog th, .revlog td {
  text-align: left;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  vertical-align: top;
}
.revlog th { color: var(--paper); font-weight: 700; font-size: var(--fs-sm); }
.revlog tbody tr:last-child td { border-bottom: 0; }
.revlog td:first-child { color: var(--paper); font-weight: 600; white-space: nowrap; }
.status {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.status--current { background: var(--current); color: #fff; }
.status--obsolete { background: rgba(255,255,255,.14); color: var(--paper); }

/* Audience columns ------------------------------------------------------- */
.audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.audience {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.audience h3 { margin-bottom: .6rem; }
.audience .lead-in { color: var(--navy); font-weight: 600; margin-bottom: 1rem; }
.audience ul { padding-left: 1.1em; margin-bottom: 1.25rem; font-size: .98rem; }
.audience ul li + li { margin-top: .5rem; }
.audience .more { margin-top: auto; font-weight: 700; }
@media (max-width: 879px) { .audiences { grid-template-columns: 1fr; } }

/* Remote process: how a job runs from far away --------------------------- */
.remote {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.remote dl { margin: 0; display: grid; gap: 1.25rem; }
.remote dt { color: var(--navy); font-weight: 700; font-size: var(--fs-h3); font-stretch: var(--wdth-head); }
.remote dd { margin: .35rem 0 0; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--stock);
}
.photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (max-width: 879px) { .remote { grid-template-columns: 1fr; } }

/* Testimonials ------------------------------------------------------------ */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.quotes figure {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quotes blockquote { color: var(--navy); font-size: 1.05rem; line-height: 1.5; }
.quotes figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--mark); }
.quotes figcaption b { color: var(--navy); }
@media (max-width: 767px) { .quotes { grid-template-columns: 1fr; } }

/* Closing call to action ------------------------------------------------- */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.cta h2 { margin-bottom: .75rem; }
.cta .actions { justify-content: flex-start; }
@media (max-width: 879px) { .cta { grid-template-columns: 1fr; } }

/* Contact card used in the CTA and the quote page ------------------------- */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: .3rem;
}
.contact-card b { color: var(--navy); }
.contact-card a { text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .phone { font-size: 1.35rem; font-weight: 800; font-stretch: var(--wdth-head); }

/* Chips: capabilities in buyer terms -------------------------------------- */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  margin: 0;
  padding: .3rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--navy);
  background: var(--paper);
}

/* Detail rows on the products and procurement pages ----------------------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}
.detail:first-of-type { border-top: 0; padding-top: 0; }
.detail h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: .75rem; }
.detail .who { margin-top: 1rem; font-size: var(--fs-sm); color: var(--mark); }
.detail .chips { margin-top: 1.1rem; }
.detail img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--stock);
}
.detail--reverse > :first-child { order: 2; }
@media (max-width: 879px) {
  .detail { grid-template-columns: 1fr; }
  .detail--reverse > :first-child { order: 0; }
  .detail img { aspect-ratio: 16 / 9; }
}

/* Checklist (supplier packet, portal features) --------------------------- */
.checklist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.7rem; margin: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .85rem; height: .85rem;
  border-radius: 2px;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 20%, 86% 0, 40% 64%);
}
.checklist--2col { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
@media (max-width: 599px) { .checklist--2col { grid-template-columns: 1fr; } }

/* Two-column text sections ------------------------------------------------ */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols h2 { margin-bottom: .75rem; }
.cols h3 { margin-bottom: .5rem; }
@media (max-width: 879px) { .cols, .cols--3 { grid-template-columns: 1fr; } }

/* Feature list with borders (portal features) ---------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.features > div {
  padding: 1.1rem 1.2rem 1.25rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.features h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.features p { font-size: .95rem; line-height: 1.45; }
@media (max-width: 879px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .features { grid-template-columns: 1fr; } }

/* Forms ------------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }

.field label, .field > .label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
  font-size: .97rem;
}
.field .hint { display: inline; font-weight: 400; color: var(--mark); font-size: var(--fs-sm); margin-left: .35rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  font: inherit;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .9rem;
  margin-top: .3rem;
}
.checks label {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-weight: 400;
  color: var(--slate);
  margin: 0;
  padding: .45rem .5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.3;
}
.checks label:has(input:checked) { border-color: var(--navy); background: var(--stock); }
.checks input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; flex: none; accent-color: var(--navy); }
@media (max-width: 479px) { .checks { grid-template-columns: 1fr; } }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; display: none; padding: .9rem 1rem; border-radius: var(--radius); }
.form-status.is-error { display: block; background: #FBEAEA; color: #7A1E1E; border: 1px solid #E7B9B9; }
.form-status.is-info  { display: block; background: var(--stock); color: var(--navy); border: 1px solid var(--rule); }
.form-status a { color: inherit; font-weight: 700; }

.form-footnote { margin-top: 1rem; font-size: var(--fs-sm); color: var(--mark); }

/* Quote page layout */
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.aside { display: grid; gap: 1.5rem; }
.aside h2 { font-size: 1.15rem; font-stretch: 100%; letter-spacing: 0; margin-bottom: .5rem; }
.aside ol { padding-left: 1.2em; }
@media (max-width: 879px) { .quote-layout { grid-template-columns: 1fr; } }

/* Page intro (inner pages) ------------------------------------------------ */
.intro { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.intro h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem); margin-bottom: 1rem; }
.intro .lead { max-width: 64ch; }
.intro .actions { margin-top: 1.5rem; }

/* Thank-you / 404 */
.notice { padding-block: clamp(4rem, 10vw, 8rem); }
.notice h1 { margin-bottom: 1rem; }
.notice .actions { margin-top: 1.75rem; }
