/* =========================================================================
   Indiott — Heritage Signal (trading since 1998)
   Companion stylesheet for indiott-heritage.php. Three isolated blocks:
     1. .ind-heritage-bar   — slim trust strip ABOVE the header
     2. .ind-heritage-band  — homepage credibility band
     3. .ind-heritage-foot  — footer "Trading since 1998" line
   Every selector is namespaced .ind-heritage-*. Nothing here targets #masthead,
   the primary nav, the cart/search icons, or any existing theme class, so the
   header cannot be reflowed or overflowed by this file.
   Tokens come from the theme's :root; fallbacks included in case load order shifts.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOP BAR — one line, always. Never wraps, never grows.
   ---------------------------------------------------------------------- */
.ind-heritage-bar {
  background: var(--ink, #232458);
  border-bottom: 1px solid rgba(247, 248, 249, 0.10);
  font-family: var(--font-mono, 'IBM Plex Mono', 'SF Mono', Consolas, monospace);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(247, 248, 249, 0.66);
  /* Belt and braces: this strip can never become a second nav row. */
  overflow: hidden;
}

.ind-heritage-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.ind-heritage-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ind-heritage-bar__item--lead {
  color: rgba(247, 248, 249, 0.92);
}

.ind-heritage-bar__item b {
  font-weight: 600;
  color: var(--paper, #f7f8f9);
}

.ind-heritage-bar__dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--signal, #ee6124);
}

.ind-heritage-bar__sep {
  color: rgba(247, 248, 249, 0.28);
}

/* Tablet: drop the third item so the line still fits comfortably. */
@media (max-width: 980px) {
  .ind-heritage-bar__inner > *:nth-child(4),
  .ind-heritage-bar__inner > *:nth-child(5) { display: none; }
}

/* Mobile: the founding date is the signal that matters. Keep only that. */
@media (max-width: 700px) {
  .ind-heritage-bar__inner > *:nth-child(2),
  .ind-heritage-bar__inner > *:nth-child(3) { display: none; }
  .ind-heritage-bar__inner { height: 30px; padding: 0 18px; }
  .ind-heritage-bar { font-size: 10.5px; }
}

/* -------------------------------------------------------------------------
   2. HOMEPAGE BAND — sits between "Trusted by" (paper) and the dark
      "Indiott difference" band. White panel + hairline = a clean tonal step.
   ---------------------------------------------------------------------- */
.ind-heritage-band {
  background: var(--card, #ffffff);
  border-bottom: 1px solid var(--steel-100, #e9ecef);
  padding: 64px 0;
}

.ind-heritage-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.ind-heritage-band__h {
  font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink, #232458);
  margin: 10px 0 0;
  text-wrap: balance;
}

/* --signal-press is the theme's AA-safe orange for text on light surfaces. */
.ind-heritage-band__h span {
  color: var(--signal-press, #b8431a);
  font-variant-numeric: tabular-nums;
}

.ind-heritage-band__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--steel-700, #3e444b);
  max-width: 62ch;
}

.ind-heritage-band__facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--steel-100, #e9ecef);
}

.ind-heritage-band__facts li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border-right: 1px solid var(--steel-100, #e9ecef);
  min-width: 0;
}

.ind-heritage-band__facts li:first-child { padding-left: 0; }
.ind-heritage-band__facts li:last-child  { border-right: 0; }

.ind-heritage-band__facts span {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500, #7c8590);
}

.ind-heritage-band__facts b {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #232458);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .ind-heritage-band { padding: 48px 0; }
  .ind-heritage-band__inner { grid-template-columns: 1fr; gap: 24px; }
  .ind-heritage-band__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-heritage-band__facts li:nth-child(2) { border-right: 0; }
  .ind-heritage-band__facts li:nth-child(3) { padding-left: 0; }
  .ind-heritage-band__facts li:nth-child(3),
  .ind-heritage-band__facts li:nth-child(4) { border-top: 1px solid var(--steel-100, #e9ecef); }
}

@media (max-width: 480px) {
  .ind-heritage-band__facts { grid-template-columns: 1fr; }
  .ind-heritage-band__facts li { padding-left: 0; padding-right: 0; border-right: 0; }
  .ind-heritage-band__facts li + li { border-top: 1px solid var(--steel-100, #e9ecef); }
}

/* -------------------------------------------------------------------------
   3. FOOTER LINE — sits directly above the legal entity paragraph, on navy.
   ---------------------------------------------------------------------- */
.ind-heritage-foot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--steel-700, #3e444b);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 12px;
  line-height: 1.5;
}

.ind-heritage-foot__mark {
  color: var(--paper, #f7f8f9);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-left: 12px;
}

.ind-heritage-foot__mark::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal, #ee6124);
}

.ind-heritage-foot__text {
  color: var(--steel-500, #7c8590);
}

/* Keep the footer's own legal paragraph flush under our line. */
.ind-heritage-foot + .ind-footer__entity { margin-top: 8px; }

/* -------------------------------------------------------------------------
   4. ABOUT PAGE — the heritage pillars + proof line.

   The theme's .ind-pillars is a 2-column grid (built for the 4-card "Four things
   we hold to" block). The heritage block has 3 cards — Continuity / Stock / Support —
   which would leave an orphan card on its own row. This modifier makes it a clean
   3-up, collapsing to a single column at the theme's own 900px breakpoint.

   Note the doubled class: the theme's `.ind-pillars` rule and a single
   `.ind-pillars--heritage` rule have identical specificity (0,1,0), so the theme
   stylesheet — which loads after this one — would win on source order. Chaining both
   classes gives (0,2,0) and wins regardless of load order, without !important.
   ---------------------------------------------------------------------- */
.ind-pillars.ind-pillars--heritage { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .ind-pillars.ind-pillars--heritage { grid-template-columns: 1fr; }
}

.ind-heritage-proof {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--steel-100, #e9ecef);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--steel-500, #7c8590);
}

.ind-heritage-proof b {
  color: var(--ink, #232458);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Print: the top bar is chrome, not content. */
@media print {
  .ind-heritage-bar { display: none; }
}
