/* ==========================================================================
   Rfg Trades Inc. — bond warehouse desk
   Palette: HYLAND #F6F6EA / LEDGERDOC #3E4036 / BORDERPINE #346342
            RFGDEEP #2C2C22 / BOND-PANEL #E0DCCE / STAMPEDGE #C6AE49
            PALLETWRAP #A8B8A8 (chips only)
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.72;
  color: #3E4036;
  background: #F6F6EA;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  color: #2C2C22;
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: #346342;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 26px;
}

/* --------------------------------------------------------------------------
   PALLET RACK NAV — fixed right edge rack with five bays
   -------------------------------------------------------------------------- */

.palletrack {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 236px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #2C2C22;
  border-left: 3px solid #2C2C22;
  box-shadow: -2px 0 0 #A8B8A8;
}

.palletrack-beam {
  display: block;
  padding: 20px 20px 18px;
  background: #2C2C22;
  border-bottom: 4px solid #346342;
}

.palletrack-brand {
  display: block;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #F6F6EA;
  line-height: 1.15;
  text-decoration: none;
}

.palletrack-brand:hover,
.palletrack-brand:focus {
  text-decoration: none;
  color: #FFFFFF;
}

.palletrack-brand small {
  display: block;
  margin-top: 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A8B8A8;
}

.palletrack-upright {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  padding: 16px 12px 16px;
  background: #2C2C22;
}

.palletrack-upright::before,
.palletrack-upright::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #4A4A3A;
}

.palletrack-upright::before {
  left: 0;
}

.palletrack-upright::after {
  right: 0;
}

.palletbay {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  background: #E0DCCE;
  border-bottom: 3px solid #2C2C22;
  border-top: 3px solid #2C2C22;
  color: #2C2C22;
  font-family: "Courier New", Courier, monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.palletbay:nth-child(1) { min-height: 62px; }
.palletbay:nth-child(2) { min-height: 84px; }
.palletbay:nth-child(3) { min-height: 54px; }
.palletbay:nth-child(4) { min-height: 72px; }
.palletbay:nth-child(5) { min-height: 48px; }

.palletbay:hover,
.palletbay:focus {
  background: #D2CDBB;
  color: #2C2C22;
  text-decoration: none;
  outline: none;
}

.palletbay-flag {
  display: none;
  width: 12px;
  height: 12px;
  background: #346342;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.palletbay.is-live {
  background: #F6F6EA;
  color: #2C2C22;
  box-shadow: inset 5px 0 0 #346342;
}

.palletbay.is-live .palletbay-flag {
  display: block;
}

.palletrack-foot {
  display: block;
  padding: 14px 20px 18px;
  background: #2C2C22;
  border-top: 4px solid #346342;
  color: #A8B8A8;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
}

.palletrack-foot a {
  color: #E0DCCE;
  text-decoration: none;
}

.palletrack-foot a:hover,
.palletrack-foot a:focus {
  color: #FFFFFF;
  text-decoration: underline;
}

.palletrack-toggle {
  display: none;
}

/* page column sits left of the rack */
.maincol {
  position: relative;
  margin-right: 236px;
  min-height: 100vh;
  background: #F6F6EA;
}

/* --------------------------------------------------------------------------
   GRADING BENCH HERO
   -------------------------------------------------------------------------- */

.gradingbench {
  position: relative;
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: stretch;
  gap: 0;
  background: #F6F6EA;
  border-bottom: 3px solid #2C2C22;
  padding: 54px 0 46px;
}

.gradingbench-inner {
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: stretch;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.gradingbench-text {
  padding: 10px 48px 10px 0;
  align-self: center;
}

.gradingbench-eyebrow {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #346342;
  border-top: 3px solid #346342;
  border-bottom: 1px solid #C9C3B0;
  padding: 9px 0 8px;
  margin-bottom: 26px;
}

.gradingbench-title {
  font-size: 46px;
  line-height: 1.06;
  color: #2C2C22;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.gradingbench-title .gradingbench-word {
  display: block;
  font-size: 118px;
  line-height: 0.9;
  color: #346342;
  letter-spacing: -0.045em;
  margin-top: 6px;
  font-weight: 700;
}

.gradingbench-lead {
  max-width: 34em;
  font-size: 17.5px;
  color: #3E4036;
  margin: 22px 0 22px;
}

.gradingbench-lead a {
  color: #346342;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.gradingbench-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding: 20px 24px;
  background: #346342;
  color: #F6F6EA;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 5px solid #2C2C22;
  transition: background 160ms ease;
}

.gradingbench-bar:hover,
.gradingbench-bar:focus {
  background: #2A5136;
  color: #FFFFFF;
  text-decoration: none;
}

.gradingbench-bar-arrow {
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

/* -- bench drawing -- */
.gradingbench-bench {
  position: relative;
  min-height: 470px;
  background: #E0DCCE;
  border: 3px solid #2C2C22;
  border-right-width: 6px;
  overflow: hidden;
}

.gradingbench-bench::before {
  /* wall behind the bench */
  content: "";
  position: absolute;
  inset: 0 0 44% 0;
  background: #ECECDD;
  border-bottom: 3px solid #2C2C22;
}

.gradingbench-bench::after {
  /* pallet jack outline at the wall */
  content: "";
  position: absolute;
  left: 22px;
  top: 34px;
  width: 92px;
  height: 74px;
  border: 3px solid #A8B8A8;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.gradingbench-tophand {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 46%;
  height: 14px;
  background: #2C2C22;
  z-index: 3;
}

.gradingbench-tophand::before,
.gradingbench-tophand::after {
  content: "";
  position: absolute;
  bottom: -110px;
  width: 16px;
  height: 112px;
  background: #2C2C22;
}

.gradingbench-tophand::before { left: 4%; }
.gradingbench-tophand::after { right: 4%; }

.gradingbench-note {
  position: absolute;
  left: 12%;
  top: 56%;
  width: 138px;
  height: 100px;
  background: #F6F6EA;
  border: 2px solid #3E4036;
  z-index: 4;
  transform: rotate(-2deg);
  box-shadow: 4px 5px 0 #C9C3B0;
}

.gradingbench-note::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 14px;
  height: 2px;
  background: #A8B8A8;
  box-shadow: 0 12px 0 #A8B8A8, 0 24px 0 #A8B8A8, 0 36px 0 #A8B8A8, 0 48px 0 #A8B8A8, 0 60px 0 #A8B8A8;
}

.gradingbench-clamp {
  position: absolute;
  left: 20%;
  top: 47%;
  width: 76px;
  height: 26px;
  background: #2C2C22;
  z-index: 6;
  transform: translateY(-44px);
}

.gradingbench-clamp::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: 12px;
  height: 34px;
  margin-left: -6px;
  background: #2C2C22;
}

.gradingbench-clamp::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -50px;
  width: 30px;
  height: 16px;
  margin-left: -15px;
  background: #3E4036;
  border: 2px solid #2C2C22;
}

.gradingbench-stamp {
  position: absolute;
  right: 10%;
  top: 62%;
  width: 84px;
  height: 84px;
  z-index: 4;
}

.gradingbench-stamp-body {
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 54px;
  background: #346342;
  border: 2px solid #2C2C22;
  border-radius: 4px 4px 2px 2px;
}

.gradingbench-stamp-handle {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 22px;
  height: 24px;
  margin-left: -11px;
  background: #2C2C22;
  border-radius: 4px 4px 0 0;
}

.gradingbench-stamp-pad {
  position: absolute;
  left: -18px;
  bottom: -26px;
  width: 120px;
  height: 26px;
  background: #2C2C22;
  border: 2px solid #3E4036;
}

.gradingbench-seal {
  position: absolute;
  right: 8%;
  top: 42%;
  width: 150px;
  height: 8px;
  background: #C6AE49;
  z-index: 5;
  transform: rotate(-9deg);
  border-radius: 4px;
}

.gradingbench-seal::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -5px;
  width: 18px;
  height: 18px;
  border: 3px solid #C6AE49;
  border-radius: 50%;
}

.gradingbench-grade {
  position: absolute;
  left: 8%;
  bottom: 12%;
  width: 128px;
  height: 86px;
  background: #F6F6EA;
  border: 2px solid #346342;
  z-index: 4;
  transform: rotate(3deg);
  box-shadow: -4px 5px 0 #C9C3B0;
}

.gradingbench-grade::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 2px;
  background: #346342;
  box-shadow: 0 14px 0 #A8B8A8, 0 28px 0 #A8B8A8, 0 42px 0 #A8B8A8, 0 54px 0 #A8B8A8;
}

.gradingbench-wrap {
  position: absolute;
  right: 14%;
  bottom: 6%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #A8B8A8;
  border: 4px solid #2C2C22;
  z-index: 4;
}

.gradingbench-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #F6F6EA;
  border: 3px solid #2C2C22;
}

.gradingbench-legend {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 7;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2C2C22;
  background: #F6F6EA;
  border: 1px solid #3E4036;
  padding: 3px 7px;
}

/* --------------------------------------------------------------------------
   Intro prose block
   -------------------------------------------------------------------------- */

.bondnote-intro {
  background: #F6F6EA;
  padding: 58px 0 18px;
}

.bondnote-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

.bondnote-intro h2 {
  font-size: 31px;
  margin-bottom: 18px;
}

.bondnote-intro p {
  font-size: 16.5px;
  color: #3E4036;
}

.bondnote-pull {
  margin: 0;
  padding: 22px 26px;
  background: #E0DCCE;
  border-left: 6px solid #346342;
  border-bottom: 2px solid #C9C3B0;
  font-size: 19px;
  color: #2C2C22;
  font-style: italic;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   BOND NOTE ROWS — rail with six unequal notes
   -------------------------------------------------------------------------- */

.bondnote {
  position: relative;
  background: #ECECDD;
  border-top: 3px solid #2C2C22;
  border-bottom: 3px solid #2C2C22;
  padding: 54px 0 66px;
}

.bondnote-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  height: 10px;
  background: #E0DCCE;
  border-top: 2px solid #2C2C22;
  border-bottom: 2px solid #2C2C22;
}

.bondnote-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 34px;
}

.bondnote-heading h2 {
  font-size: 34px;
  margin: 0;
}

.bondnote-heading span {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5B5E4F;
}

.bondnote-clip {
  position: absolute;
  left: 50%;
  top: -6px;
  width: 44px;
  height: 22px;
  margin-left: -22px;
  background: #2C2C22;
  border-radius: 3px;
}

.bondnote-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px 22px;
  padding-top: 26px;
}

.bondnote-row {
  position: relative;
  background: #F6F6EA;
  border: 2px solid #2C2C22;
  padding: 26px 24px 34px;
  box-shadow: 5px 6px 0 #C9C3B0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bondnote-row:hover {
  transform: translateY(-3px);
  box-shadow: 7px 9px 0 #C9C3B0;
}

.bondnote-row:nth-child(1) { grid-column: 1 / span 7; transform: rotate(-0.5deg); }
.bondnote-row:nth-child(2) { grid-column: 8 / span 5; transform: rotate(0.6deg); }
.bondnote-row:nth-child(3) { grid-column: 1 / span 4; transform: rotate(0.4deg); }
.bondnote-row:nth-child(4) { grid-column: 5 / span 8; transform: rotate(-0.6deg); }
.bondnote-row:nth-child(5) { grid-column: 1 / span 5; transform: rotate(-0.3deg); }
.bondnote-row:nth-child(6) { grid-column: 6 / span 7; transform: rotate(0.5deg); }

.bondnote-row:hover { transform: translateY(-3px) rotate(0deg); }

.bondnote-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  background: #A8B8A8;
  color: #2C2C22;
  border: 2px solid #2C2C22;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bondnote-row h3 {
  font-size: 21px;
  margin: 0 0 10px;
}

.bondnote-row h3 a {
  color: #2C2C22;
}

.bondnote-row h3 a:hover,
.bondnote-row h3 a:focus {
  color: #346342;
  text-decoration: none;
}

.bondnote-row p {
  margin: 0;
  font-size: 15.5px;
  color: #3E4036;
}

.bondnote-stamp {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  border: 2px solid #346342;
  border-radius: 50%;
  color: #346342;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
}

/* --------------------------------------------------------------------------
   Deep prose strip with side dossier
   -------------------------------------------------------------------------- */

.bondnote-depth {
  background: #F6F6EA;
  padding: 62px 0 58px;
}

.bondnote-depth-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 52px;
  align-items: start;
}

.bondnote-depth h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.bondnote-depth p {
  font-size: 16.5px;
}

.bondnote-aside {
  background: #E0DCCE;
  border: 2px solid #2C2C22;
  border-top: 6px solid #346342;
  padding: 24px 24px 26px;
}

.bondnote-aside h3 {
  font-size: 16px;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #346342;
  margin-bottom: 14px;
}

.bondnote-aside dl {
  margin: 0;
}

.bondnote-aside dt {
  font-family: "Courier New", Courier, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5B5E4F;
  margin-top: 14px;
}

.bondnote-aside dt:first-child {
  margin-top: 0;
}

.bondnote-aside dd {
  margin: 3px 0 0;
  font-size: 15.5px;
  color: #2C2C22;
}

/* --------------------------------------------------------------------------
   DUTY STAMP BAND
   -------------------------------------------------------------------------- */

.dutystampband {
  background: #2C2C22;
  color: #F6F6EA;
  border-top: 5px solid #346342;
  border-bottom: 5px solid #346342;
  padding: 40px 0;
}

.dutystampband-inner {
  display: flex;
  align-items: center;
  gap: 34px;
}

.dutystampblock {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 0 4px;
}

.dutystampblock-impress {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  background: #E0DCCE;
  border: 3px solid #F6F6EA;
  color: #346342;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-4deg);
}

.dutystampblock-tie {
  width: 10px;
  height: 74px;
  background: #C6AE49;
  border-radius: 5px;
}

.dutystampband-line {
  font-size: 19px;
  line-height: 1.5;
  color: #F6F6EA;
  margin: 0;
  max-width: 56ch;
}

.dutystampband-line strong {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   PALLET JACK FOOTER
   -------------------------------------------------------------------------- */

.palletjack {
  background: #2C2C22;
  color: #E0DCCE;
  border-top: 6px solid #346342;
  padding: 0 0 0;
}

.palletstack {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0 26px;
  height: 74px;
  border-bottom: 3px solid #4A4A3A;
  max-width: 1120px;
  margin: 0 auto;
}

.palletstack-slot {
  flex: 0 0 86px;
  background: #E0DCCE;
  border: 2px solid #2C2C22;
  border-bottom: none;
  position: relative;
}

.palletstack-slot::before,
.palletstack-slot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: #8C9E8C;
}

.palletstack-slot::before { top: 14px; }
.palletstack-slot::after { top: 30px; }

.palletstack-slot:nth-child(1) { height: 62px; }
.palletstack-slot:nth-child(2) { height: 44px; background: #2C2C22; border-style: dashed; border-color: #6F7262; height: 44px; }
.palletstack-slot:nth-child(3) { height: 70px; }
.palletstack-slot:nth-child(4) { height: 38px; }
.palletstack-slot:nth-child(5) { height: 56px; }
.palletstack-slot:nth-child(6) { height: 48px; }

.palletstack-slot.is-empty {
  background: #2C2C22;
  border-style: dashed;
  border-color: #6F7262;
}

.palletstack-slot.is-empty::before,
.palletstack-slot.is-empty::after {
  background: #4A4A3A;
}

.palletjack-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 46px 26px 38px;
}

.palletjack-brand {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 14px;
  line-height: 1.15;
}

.palletjack-blurb {
  font-size: 15.5px;
  color: #D6D2C2;
  margin: 0 0 22px;
  max-width: 46ch;
}

.palletjack-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13.5px;
  line-height: 1.9;
  color: #D6D2C2;
}

.palletjack-contact li {
  display: block;
}

.palletjack-contact a {
  color: #E0DCCE;
}

.palletjack-contact a:hover,
.palletjack-contact a:focus {
  color: #FFFFFF;
}

.palletjack-nav {
  align-self: start;
  padding-top: 4px;
}

.palletjack-nav-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A8B8A8;
  margin: 0 0 14px;
}

.palletjack-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.palletjack-links li {
  border-bottom: 1px solid #4A4A3A;
}

.palletjack-links a {
  display: block;
  padding: 9px 0;
  color: #E0DCCE;
  font-size: 15px;
  text-decoration: none;
}

.palletjack-links a:hover,
.palletjack-links a:focus {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.palletjack-baseline {
  border-top: 1px solid #4A4A3A;
  background: #24241C;
}

.palletjack-baseline-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 26px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #A8B8A8;
}

.palletjack-glyph {
  display: inline-block;
  width: 16px;
  height: 9px;
  border: 2px solid #A8B8A8;
  position: relative;
}

.palletjack-glyph::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 2px;
  height: 1px;
  background: #A8B8A8;
}

/* --------------------------------------------------------------------------
   Inner page banners (services, contact)
   -------------------------------------------------------------------------- */

.pagehead {
  background: #ECECDD;
  border-bottom: 3px solid #2C2C22;
  border-top: 6px solid #346342;
  padding: 52px 0 46px;
}

.pagehead-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 44px;
  align-items: center;
}

.pagehead h1 {
  font-size: 44px;
  margin: 0 0 12px;
  color: #2C2C22;
}

.pagehead p {
  font-size: 17px;
  max-width: 52ch;
  margin: 0;
  color: #3E4036;
}

.pagehead-eyebrow {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #346342;
  border-bottom: 2px solid #346342;
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.pagehead-card {
  background: #E0DCCE;
  border: 2px solid #2C2C22;
  border-left: 7px solid #346342;
  padding: 22px 24px;
  transform: rotate(-1deg);
  box-shadow: 5px 6px 0 #C9C3B0;
}

.pagehead-card h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #346342;
  margin: 0 0 10px;
}

.pagehead-card p {
  font-size: 14.5px;
  margin: 0;
  color: #2C2C22;
}

/* service detail rows */
.servicerun {
  background: #F6F6EA;
  padding: 56px 0 40px;
}

.servicerun-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 30px 0;
  border-top: 2px solid #C9C3B0;
}

.servicerun-item:first-child {
  border-top: 3px solid #2C2C22;
}

.servicerun-item:last-child {
  border-bottom: 3px solid #2C2C22;
}

.servicerun-plate {
  align-self: start;
  background: #E0DCCE;
  border: 2px solid #2C2C22;
  border-top: 5px solid #346342;
  padding: 18px 20px;
}

.servicerun-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #A8B8A8;
  border: 2px solid #2C2C22;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #2C2C22;
  margin-bottom: 10px;
}

.servicerun-plate h2 {
  font-size: 21px;
  margin: 0;
  color: #2C2C22;
}

.servicerun-body h3 {
  font-size: 16px;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #346342;
  margin: 20px 0 8px;
}

.servicerun-body h3:first-child {
  margin-top: 0;
}

.servicerun-body p {
  font-size: 16.5px;
  color: #3E4036;
  margin: 0 0 12px;
}

.servicerun-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.servicerun-tag {
  display: inline-block;
  background: #A8B8A8;
  color: #2C2C22;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid #2C2C22;
}

/* process overview */
.processrun {
  background: #ECECDD;
  border-top: 3px solid #2C2C22;
  padding: 56px 0 60px;
}

.processrun h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.processrun-lead {
  font-size: 16.5px;
  max-width: 64ch;
  margin-bottom: 30px;
}

.processrun-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: procstep;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
}

.processrun-steps li {
  position: relative;
  counter-increment: procstep;
  padding: 20px 0 20px 62px;
  border-top: 2px solid #C9C3B0;
  font-size: 16px;
  color: #3E4036;
}

.processrun-steps li::before {
  content: counter(procstep, upper-alpha);
  position: absolute;
  left: 0;
  top: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2C2C22;
  color: #F6F6EA;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 4px solid #346342;
}

.processrun-steps strong {
  display: block;
  color: #2C2C22;
  font-size: 16.5px;
  margin-bottom: 3px;
}

/* CTA run */
.ctarun {
  background: #346342;
  color: #F6F6EA;
  padding: 48px 0;
  border-top: 5px solid #2C2C22;
  border-bottom: 5px solid #2C2C22;
}

.ctarun-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.ctarun h2 {
  color: #FFFFFF;
  font-size: 30px;
  margin: 0 0 6px;
}

.ctarun p {
  color: #E6E6D8;
  margin: 0;
  max-width: 56ch;
  font-size: 16px;
}

.ctarun-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #F6F6EA;
  color: #2C2C22;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 26px;
  border-bottom: 5px solid #2C2C22;
  text-decoration: none;
}

.ctarun-link:hover,
.ctarun-link:focus {
  background: #FFFFFF;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contactwrap {
  background: #F6F6EA;
  padding: 56px 0 60px;
}

.contactwrap-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 52px;
  align-items: start;
}

.contactform {
  background: #E0DCCE;
  border: 2px solid #2C2C22;
  border-top: 7px solid #346342;
  padding: 30px 30px 34px;
  box-shadow: 6px 7px 0 #C9C3B0;
}

.contactform h2 {
  font-size: 24px;
  margin: 0 0 6px;
}

.contactform p {
  font-size: 15px;
  color: #5B5E4F;
  margin: 0 0 22px;
}

.contactform-field {
  margin-bottom: 18px;
}

.contactform-field label {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2C2C22;
  margin-bottom: 6px;
}

.contactform-field input,
.contactform-field textarea {
  display: block;
  width: 100%;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-size: 16px;
  color: #2C2C22;
  background: #F6F6EA;
  border: 2px solid #3E4036;
  padding: 11px 13px;
  border-radius: 0;
}

.contactform-field input:focus,
.contactform-field textarea:focus {
  outline: none;
  border-color: #346342;
  box-shadow: inset 0 0 0 2px #346342;
}

.contactform-field textarea {
  min-height: 148px;
  resize: vertical;
}

.contactform-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #346342;
  color: #F6F6EA;
  border: none;
  border-bottom: 5px solid #2C2C22;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 28px;
  cursor: pointer;
}

.contactform-submit:hover,
.contactform-submit:focus {
  background: #2A5136;
}

.contactform-status {
  margin-top: 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12.5px;
  color: #2C2C22;
  background: #F6F6EA;
  border: 2px solid #346342;
  padding: 10px 12px;
  display: none;
}

.contactform-status.is-shown {
  display: block;
}

.contactdetails h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.contactdetails p {
  font-size: 16.5px;
  margin: 0 0 20px;
}

.contactdetails-block {
  border-top: 2px solid #C9C3B0;
  padding: 18px 0;
}

.contactdetails-block h3 {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #346342;
  margin: 0 0 6px;
}

.contactdetails-block p {
  margin: 0;
}

.contactdetails-block a {
  color: #346342;
  font-weight: 700;
}

.contacthours {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #2C2C22;
}

.contacthours li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #C9C3B0;
  padding: 6px 0;
}

.contacthours li span:last-child {
  color: #346342;
  font-weight: 700;
}

/* FAQ */
.faqrun {
  background: #ECECDD;
  border-top: 3px solid #2C2C22;
  padding: 54px 0 58px;
}

.faqrun h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.faqrun-lead {
  font-size: 16px;
  max-width: 60ch;
  margin-bottom: 26px;
}

.faqrun-item {
  background: #F6F6EA;
  border: 2px solid #2C2C22;
  margin-bottom: 14px;
}

.faqrun-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  cursor: pointer;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-size: 17.5px;
  font-weight: 700;
  color: #2C2C22;
}

.faqrun-q:hover,
.faqrun-q:focus {
  background: #ECECDD;
  outline: none;
}

.faqrun-sign {
  flex: 0 0 auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 22px;
  line-height: 1;
  color: #346342;
}

.faqrun-a {
  padding: 0 22px 20px;
  font-size: 16px;
  color: #3E4036;
  display: none;
}

.faqrun-item.is-open .faqrun-a {
  display: block;
}

.faqrun-item.is-open .faqrun-q {
  border-bottom: 2px solid #C9C3B0;
}

.faqrun-item.is-open .faqrun-sign {
  color: #2C2C22;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive overrides (media-scoped only — base rules above are single-use)
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .palletrack { width: 208px; }
  .maincol { margin-right: 208px; }
  .gradingbench-title .gradingbench-word { font-size: 96px; }
  .bondnote-depth-grid { gap: 34px; }
}

@media (max-width: 900px) {
  .palletrack {
    position: static;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    border-left: none;
    border-bottom: 4px solid #346342;
    box-shadow: none;
  }
  .palletrack-beam {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: none;
  }
  .palletrack-brand small { display: inline; margin-left: 10px; }
  .palletrack-toggle {
    display: inline-block;
    background: #E0DCCE;
    color: #2C2C22;
    border: 2px solid #F6F6EA;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 8px 12px;
    cursor: pointer;
  }
  .palletrack-upright {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px 14px;
    display: none;
  }
  .palletrack.is-open .palletrack-upright {
    display: flex;
  }
  .palletrack-upright::before,
  .palletrack-upright::after { display: none; }
  .palletbay {
    flex: 1 1 130px;
    border: 2px solid #2C2C22;
  }
  .palletrack-foot { display: none; }
  .maincol { margin-right: 0; }

  .gradingbench {
    padding: 40px 0 40px;
  }
  .gradingbench-inner {
    grid-template-columns: 1fr;
  }
  .gradingbench-text { padding-right: 0; }
  .gradingbench-bench { min-height: 380px; margin-top: 32px; }
  .gradingbench-title { font-size: 36px; }
  .gradingbench-title .gradingbench-word { font-size: 82px; }

  .bondnote-intro-grid,
  .bondnote-depth-grid,
  .pagehead-grid,
  .contactwrap-grid,
  .palletjack-grid { grid-template-columns: 1fr; gap: 30px; }

  .bondnote-row,
  .bondnote-row:nth-child(1),
  .bondnote-row:nth-child(2),
  .bondnote-row:nth-child(3),
  .bondnote-row:nth-child(4),
  .bondnote-row:nth-child(5),
  .bondnote-row:nth-child(6) {
    grid-column: 1 / -1;
    transform: none;
  }
  .bondnote-row:hover { transform: none; }

  .servicerun-item { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .processrun-steps { grid-template-columns: 1fr; }

  .dutystampband-inner { flex-direction: column; align-items: flex-start; gap: 22px; }

  .palletstack { padding: 0 20px; }
  .palletjack-grid { padding: 38px 20px 32px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .gradingbench-title { font-size: 29px; }
  .gradingbench-title .gradingbench-word { font-size: 66px; }
  .gradingbench-bench { min-height: 330px; }
  .pagehead h1 { font-size: 32px; }
  .bondnote-heading { flex-direction: column; gap: 4px; }
  .shell { padding: 0 18px; }
  .contactform { padding: 22px 20px 26px; }
}
