/* ============================================================
   Broker Genius — warehouse.css
   The customs-warehouse product page.

   Uses the site's tokens and shared pieces (.kicker,
   .section-title, .btn, .container) so it sits in the same
   visual system as the rest of the marketing pages: 2px ink
   borders, hard shadows, mono micro-labels, brand yellow.
   ============================================================ */

/* ============================================================
   Hero — centred, unlike the split heroes elsewhere, because
   this page opens on a single claim rather than a product shot.
   ============================================================ */
.wh-hero {
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 76px 28px 68px;
}
.wh-hero__inner { max-width: 1000px; margin: 0 auto; text-align: center; }

.wh-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wh-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 7px 12px;
}
.wh-hero__badge--plain { color: var(--muted-2); border-color: var(--line); }
.wh-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: bg-blink 1.8s ease-in-out infinite;
}

.wh-hero__title {
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  font-stretch: 96%;
  margin-top: 26px;
  text-wrap: balance;
}
.wh-hero__title-mark {
  display: inline-block;
  line-height: 1.04;
  padding: 2px 12px 7px;
  background: var(--accent);
}

.wh-hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 26px auto 0;
  max-width: 62ch;
  text-wrap: pretty;
}
.wh-hero__line { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 18px; }

.wh-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.wh-hero__fine { margin-top: 22px; }

/* ============================================================
   The gap
   ============================================================ */
.wh-gap { border-bottom: 2px solid var(--ink); background: var(--paper); padding: 72px 28px; }
.wh-gap__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}
.wh-gap__head > * { min-width: 0; }
.wh-gap__title { margin-top: 16px; max-width: 20ch; }
.wh-gap__blurb { font-size: 16.5px; line-height: 1.65; color: var(--muted); max-width: 54ch; }

.wh-gap__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.wh-gap__card {
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: 5px 5px 0 rgba(16, 22, 42, 0.10);
  padding: 22px;
}
.wh-gap__card-k { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.wh-gap__card-b { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 9px; }

/* ============================================================
   Numbered rows — shared by the record flow and the onboarding
   steps, since they are the same object with different copy.
   ============================================================ */
.wh-flow { border-bottom: 2px solid var(--ink); background: var(--tint); padding: 72px 28px; }
.wh-onboard { border-bottom: 2px solid var(--ink); background: var(--paper); padding: 72px 28px; }

.wh-flow__head, .wh-onboard__head, .wh-core__head { max-width: 72ch; }
.wh-flow__title, .wh-onboard__title, .wh-core__title { margin-top: 16px; max-width: 22ch; }
.wh-flow__blurb, .wh-onboard__blurb {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 18px;
  max-width: 56ch;
}

.wh-flow__rows, .wh-onboard__rows { display: flex; flex-direction: column; gap: 14px; margin-top: 38px; }

.wh-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 20px;
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 22px 26px;
  box-shadow: 4px 4px 0 rgba(16, 22, 42, 0.08);
}
.wh-onboard .wh-row { grid-template-columns: 76px minmax(0, 1fr); }

/* The highlighted step: the one the section is really about. */
.wh-row--on { background: var(--accent); box-shadow: 6px 6px 0 var(--ink); }
.wh-row--on .wh-row__n { color: var(--ink); }
.wh-row--on .wh-row__b { color: #4A3F1E; }
.wh-row--on .wh-row__meta { color: var(--ink); border-color: var(--ink); }

.wh-row__n {
  font: 700 30px var(--font-mono);
  letter-spacing: -0.03em;
  color: var(--sand-2);
  font-variant-numeric: tabular-nums;
}
.wh-row__t { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.wh-row__b { font-size: 14.8px; line-height: 1.6; color: var(--muted); margin-top: 7px; }
.wh-row__meta {
  justify-self: end;
  font: 600 10px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--brown);
  border: 1px solid var(--line);
  padding: 6px 10px;
  white-space: nowrap;
}

/* ============================================================
   Core / configured
   ============================================================ */
.wh-core { border-bottom: 2px solid var(--ink); background: var(--ink); padding: 72px 28px; }
.wh-core .kicker { color: var(--accent); }
.wh-core__title { color: #fff; }

.wh-core__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.wh-panel { border: 2px solid rgba(255, 255, 255, 0.28); background: #16161A; }
.wh-panel--accent { border-color: var(--accent); }
.wh-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.13em;
  color: #fff;
}
.wh-panel--accent .wh-panel__bar { border-bottom-color: var(--accent); color: var(--accent); }
.wh-panel__count { color: var(--sand); }
.wh-panel__list { list-style: none; margin: 0; padding: 8px 20px 20px; }
.wh-panel__item {
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 15px;
  color: var(--line-soft);
  position: relative;
}
.wh-panel__item:last-child { border-bottom: 0; }
.wh-panel__item::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--sand);
  font: 600 14px var(--font-mono);
}
.wh-panel--accent .wh-panel__item::before { content: "\2713"; color: var(--accent); }

/* ============================================================
   Who it's for
   ============================================================ */
.wh-cases { border-bottom: 2px solid var(--ink); background: var(--tint); padding: 72px 28px; }
.wh-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.wh-case {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 30px;
}
.wh-case__k {
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--sand);
  line-height: 1.5;
}
.wh-case__t { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-top: 14px; }
.wh-case__b { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 12px; }

/* The supporting points, ruled off from the paragraph above them. */
.wh-case__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.wh-case__item {
  padding: 12px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
}
.wh-case__item:not(:last-child) { border-bottom: 1px solid var(--line); }

/* ============================================================
   Comparison
   ============================================================ */
.wh-compare { border-bottom: 2px solid var(--ink); background: var(--paper); padding: 72px 28px; }
.wh-compare__head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: baseline;
  justify-content: space-between;
}
.wh-compare__title { max-width: 24ch; }
.wh-compare__legend { font: 500 12px var(--font-mono); color: var(--muted-2); }

/* The table scrolls inside its own frame; the page never does. */
.wh-compare__wrap {
  overflow-x: auto;
  margin-top: 32px;
  border: 2px solid var(--ink);
  background: var(--card);
}
.wh-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.wh-table thead { background: var(--ink); }
.wh-table thead th {
  text-align: left;
  padding: 14px 18px;
  font: 600 10px var(--font-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
}
.wh-table thead th:not(:first-child) { text-align: center; width: 150px; }
.wh-table tbody th {
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 13px 18px;
  border-top: 1px solid var(--line-soft);
}
.wh-table tbody td {
  text-align: center;
  padding: 13px 18px;
  border-top: 1px solid var(--line-soft);
}
.wh-table tbody tr:hover { background: #FFF8E4; }
/* Our column carries the emphasis. */
.wh-table tbody td:first-of-type { background: rgba(251, 206, 108, 0.14); }
.wh-table thead th:nth-child(2) { background: var(--brown); }

.wh-mark { font-size: 16px; font-weight: 700; }
.wh-mark--yes { color: var(--green); }
.wh-mark--part { color: var(--brown); }
.wh-mark--no { color: var(--sand-2); }

.wh-compare__note { font-size: 13px; color: var(--muted-2); margin-top: 14px; }

/* ============================================================
   Proof band
   ============================================================ */
.wh-proof { border-bottom: 2px solid var(--ink); background: var(--accent); padding: 68px 28px; }
.wh-proof__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.wh-proof__title {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
.wh-proof__body { font-size: 16.5px; line-height: 1.6; color: #4A3F1E; margin-top: 18px; }
.wh-proof .btn-primary { margin-top: 28px; background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--brown-shadow); }
.wh-proof .btn-primary:hover { background: #000; color: #fff; box-shadow: 1px 1px 0 var(--brown-shadow); }

/* ============================================================
   FAQ — native <details>, so it works without JavaScript
   ============================================================ */
.wh-faq { border-bottom: 2px solid var(--ink); background: var(--paper); padding: 72px 28px; }
.wh-faq__list { margin-top: 26px; border: 2px solid var(--ink); background: var(--card); }
.wh-faq__item { border-bottom: 1px solid var(--line); }
.wh-faq__item:last-child { border-bottom: 0; }
.wh-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.wh-faq__q::-webkit-details-marker { display: none; }
.wh-faq__q:hover { background: var(--line-soft); }
.wh-faq__q:focus-visible { outline: 2px solid var(--brown); outline-offset: -2px; }
.wh-faq__sign {
  flex: none;
  width: 18px;
  height: 18px;
  position: relative;
}
.wh-faq__sign::before,
.wh-faq__sign::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.wh-faq__sign::before { top: 8px; left: 0; width: 18px; height: 2px; }
.wh-faq__sign::after { left: 8px; top: 0; width: 2px; height: 18px; }
.wh-faq__item[open] .wh-faq__sign::after { transform: scaleY(0); opacity: 0; }
.wh-faq__item[open] .wh-faq__q { background: var(--accent); }
.wh-faq__a {
  padding: 0 24px 20px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 78ch;
}

/* ============================================================
   Tell us about your warehouse
   ============================================================ */
.wh-walk { border-bottom: 2px solid var(--ink); background: var(--tint); padding: 72px 28px; }
.wh-walk__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(16, 22, 42, 0.12);
}
.wh-walk__aside { background: var(--ink); color: #fff; padding: 40px; }
.wh-walk__aside-k { font: 600 10.5px var(--font-mono); letter-spacing: 0.14em; color: var(--accent); }
.wh-walk__aside-t {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-top: 14px;
  color: #fff;
}
.wh-walk__aside-b { font-size: 15.5px; line-height: 1.65; color: var(--footer-text); margin-top: 16px; }
.wh-walk__points { list-style: none; margin: 26px 0 0; padding: 0; }
.wh-walk__points li {
  padding: 11px 0 11px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14.5px;
  color: var(--line-soft);
  position: relative;
}
.wh-walk__points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
}

.wh-walk__form { background: var(--card); padding: 34px 40px 40px; }
.wh-walk__form-head {
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.wh-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.wh-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wh-field--wide { margin-top: 16px; }
.wh-field__l { font: 600 10px var(--font-mono); letter-spacing: 0.12em; color: var(--muted-2); }
/* Inputs carry an intrinsic width that stops a grid track shrinking. */
.wh-input {
  min-width: 0;
  max-width: 100%;
  font: 400 15px var(--font-sans);
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  padding: 12px 14px;
  outline: none;
}
.wh-input:focus { background: #FFFBEF; box-shadow: 3px 3px 0 var(--accent); }
.wh-textarea { resize: vertical; line-height: 1.5; }
.wh-form__submit { margin-top: 22px; }
.wh-form__note { font-size: 13px; color: var(--muted-2); margin-top: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .wh-hero__title { font-size: 46px; }
  .wh-gap__head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wh-gap__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wh-cases__grid { grid-template-columns: minmax(0, 1fr); }
  .wh-core__grid { grid-template-columns: minmax(0, 1fr); }
  .wh-row { grid-template-columns: 60px minmax(0, 1fr); }
  .wh-row__meta { grid-column: 2; justify-self: start; }
  .wh-walk__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .wh-hero { padding: 48px 20px 44px; }
  .wh-hero__title { font-size: 34px; }
  .wh-hero__lede { font-size: 16.5px; }
  .wh-gap, .wh-flow, .wh-onboard, .wh-core, .wh-cases, .wh-compare, .wh-faq, .wh-walk { padding: 48px 20px; }
  .wh-gap__grid { grid-template-columns: minmax(0, 1fr); }
  .wh-row { padding: 18px; gap: 12px; }
  .wh-row__n { font-size: 24px; }
  .wh-proof__title { font-size: 30px; }
  .wh-walk__aside, .wh-walk__form { padding: 26px 22px; }
  .wh-form__grid { grid-template-columns: minmax(0, 1fr); }
  .wh-faq__q { font-size: 15.5px; padding: 16px 18px; }
  .wh-faq__a { padding: 0 18px 18px; }
}

/* ============================================================
   Contact Form 7
   ============================================================
   CF7 wraps every control in its own span and appends its
   response and validation markup. These rules let that sit
   inside the field layout above rather than beside it.
   ============================================================ */
.wh-walk__form .wpcf7-form-control-wrap { display: block; }
.wh-walk__form .wh-input { width: 100%; display: block; }

/* CF7 writes its own classes onto the controls alongside ours. */
.wh-walk__form .wpcf7-not-valid { border-color: #9B2C2C; }
.wh-walk__form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font: 500 12.5px var(--font-mono);
  color: #9B2C2C;
}

.wh-walk__form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 13px 16px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  font-size: 14.5px;
  color: var(--ink);
}
.wh-walk__form .wpcf7f-mail-sent-ok,
.wh-walk__form form.sent .wpcf7-response-output { border-color: var(--green); background: #E7F2EA; }
.wh-walk__form form.invalid .wpcf7-response-output,
.wh-walk__form form.failed .wpcf7-response-output { border-color: #9B2C2C; background: #F9E9E7; }

.wh-form__actions { margin-top: 22px; }
/* The spinner CF7 drops in next to the submit button. */
.wh-walk__form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
