/*
 * ARDI — 3PL Warehouse New Jersey (template single-new-jersey.php), design v2 (brief v1.4).
 * Loaded on that template only (see ardi_is_nj_warehouse_page() in functions.php).
 *
 * Contains ONLY what site.css does not already have: the "New Jersey Warehouse Rates"
 * section (#rates), fixed photo-frame heights (no layout shift) and the phone hero
 * order (button above the chips). Tokens, buttons, hero, sections, cards, FAQ and the
 * quote form come from site.css. Every rule is scoped to .nj-page (class on <main>).
 */

.nj-page .sec__title { line-height: 1.15; }
.nj-page section[id] { scroll-margin-top: 96px; }

/* ---- Rates ---- */
.nj-page .rates__intro { font-size: 17px; line-height: 1.55; color: var(--text-body); margin: 12px 0 0; }
.nj-page .rates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.nj-page .rates > :nth-child(-n+3) { grid-column: span 2; }
.nj-page .rates > :nth-child(n+4) { grid-column: span 3; }
.nj-page .rate-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}
.nj-page .rate-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text-strong);
  margin: 0;
}
.nj-page .rate-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 4px;
  margin: 16px 0 0;
}
.nj-page .rate-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--ink-950);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nj-page .rate-card__from { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-right: 4px; }
.nj-page .rate-card__unit { font-weight: 600; font-size: 16px; color: var(--text-body); white-space: nowrap; }
.nj-page .rate-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-hair);
  text-wrap: pretty;
}
.nj-page .rates__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 24px;
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-lg);
}
.nj-page .rates__notes { max-width: 700px; }
.nj-page .rates__terms { font-size: 15px; line-height: 1.6; color: var(--ink-600); margin: 0; text-wrap: pretty; }
.nj-page .rates__fast { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 8px 0 0; text-wrap: pretty; }
.nj-page .rates__fast a {
  color: var(--express-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nj-page .rates__cta { flex: none; }

/* ---- Photo frames: fixed heights so images do not shift the layout ---- */
.nj-page .facility-photo { height: 440px; min-height: 0; margin: 0; }
.nj-page .facility-photo img { min-height: 0; }

/* ---- Tablet (<=1019px) ---- */
@media (max-width: 1019px) {
  .nj-page .facility-photo,
  .nj-page .wide-photo--380,
  .nj-page .wide-photo--340 { height: 360px; }
  .nj-page .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nj-page .rates > * { grid-column: auto !important; }
  .nj-page .rates > :nth-child(5) { grid-column: 1 / -1 !important; }
  .nj-page .rates__foot { flex-direction: column; align-items: flex-start; }
}

/* ---- Phone (<=759px) ---- */
@media (max-width: 759px) {
  .nj-page section[id] { scroll-margin-top: 72px; }
  .nj-page .facility-photo,
  .nj-page .wide-photo--380,
  .nj-page .wide-photo--340 { height: 230px; }

  /* hero: main button above the three chips, full width */
  .nj-page .hero__content { display: flex; flex-direction: column; align-items: stretch; }
  .nj-page .hero__loc { align-self: flex-start; }
  .nj-page .hero__chips { order: 5; display: grid; grid-template-columns: 1fr; gap: 8px; }
  .nj-page .hero__chip { flex-direction: row; align-items: baseline; gap: 10px; padding: 10px 14px; }
  .nj-page .hero__ctas { margin-top: 20px; flex-direction: column; align-items: stretch; gap: 4px; }
  .nj-page .hero__cta { width: 100%; justify-content: center; }
  .nj-page .hero__svc-lnk { align-self: flex-start; border-bottom: 0; text-decoration: underline; text-underline-offset: 4px; }

  /* rates: one column, full-width button */
  .nj-page .rates { grid-template-columns: 1fr; }
  .nj-page .rates > :nth-child(5) { grid-column: auto !important; }
  .nj-page .rate-card__num { font-size: 44px; }
  .nj-page .rate-card__unit { font-size: 15px; }
  .nj-page .rates__foot { align-items: stretch; }
  .nj-page .rates__cta {
    width: 100%;
    height: auto;
    min-height: 52px;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 8px 12px;
  }
}

/* ---- Very small phones (<=359px): price + unit stay on one line ---- */
@media (max-width: 359px) {
  .nj-page .rate-card__num { font-size: 36px; }
  .nj-page .rate-card__from { font-size: 16px; }
  .nj-page .rate-card__unit { font-size: 14px; }
}
