/* Chicago Lifts — Design Tokens & Base */

:root {
  /* Color — warm-toned neutrals + vivid red */
  --bg: #faf8f5;
  --bg-alt: #f0ece5;
  --paper: #ffffff;
  --ink: #0e0d0b;
  --ink-2: #2a2622;
  --ink-3: #6b6862;
  --ink-4: #8a867f; /* audit fix: was #a8a49d (≈2.4:1 on cream) — now ≥3.5:1 */
  --rule: #1a1815;
  --rule-soft: #d9d4cb;

  --red: #d4341e;
  --red-deep: #a8240f;
  --red-ink: #6b1808;

  --safety: #f5b800;

  /* Type — single-family system. All four tokens resolve to Inter so the
     prototype has one well-designed family doing every role; hierarchy
     comes from weight + size only. (Pre-2026-06: --serif Instrument Serif,
     --display Archivo, --mono JetBrains Mono. Switched to Inter for
     consistency, accessibility, and ~3 fewer font payloads.) */
  --serif:   "Inter", Georgia, serif;
  --display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --gutter: clamp(20px, 3vw, 48px);
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Display type */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow-red {
  color: var(--red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
  border-radius: 0;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--ghost-light { background: transparent; color: var(--bg); border-color: var(--bg); }
.btn--ghost-light:hover { background: var(--bg); color: var(--ink); }
.btn--lg { padding: 20px 28px; font-size: 14px; }
.btn--sm { padding: 10px 14px; font-size: 11px; }

/* Arrow icon (CSS) */
.arrow {
  display: inline-block;
  width: 14px;
  height: 10px;
  position: relative;
}
.arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(0 45%, 75% 45%, 65% 0, 100% 50%, 65% 100%, 75% 55%, 0 55%);
}

/* Container */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule {
  height: 1px;
  background: var(--rule-soft);
  width: 100%;
}

/* Striped placeholder image */
.placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      #e8e3d8,
      #e8e3d8 10px,
      #ddd6c8 10px,
      #ddd6c8 20px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.placeholder--dark {
  background:
    repeating-linear-gradient(
      45deg,
      #1c1a17,
      #1c1a17 10px,
      #262320 10px,
      #262320 20px
    );
  color: #6b6862;
}

/* Section */
.section {
  padding: clamp(60px, 9vw, 120px) 0;
}

.section--dark {
  background: var(--ink);
  color: var(--bg);
}
.section--dark .eyebrow { color: var(--ink-4); }
.section--dark .rule { background: #2a2622; }

.section--bg-alt {
  background: var(--bg-alt);
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee {
  overflow: hidden;
  border-block: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.marquee:hover .marquee__track { animation-play-state: paused; } /* audit fix */
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  padding: 16px 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.marquee__track > span {
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 32px;
}
.marquee__dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}

/* Form */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
  padding: 10px 0;
  outline: none;
  color: var(--ink);
  border-radius: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--rule-soft);
  color: var(--ink-3);
  background: transparent;
}
.tag--red { color: var(--red); border-color: var(--red); }
.tag--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Pulse dot */
.pulse {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.4;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

/* Reveal-on-scroll (audit fix: .6s→.35s + smaller offset so fast scrolls
   never show blank viewports) */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hide scrollbar in horizontal scrollers */
.h-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }


/* ═══════════════════════════════════════════════════════════════════════
   GLOBAL BREADCRUMBS — clean, simple, Alta-style
   Overrides earlier per-page crumb styles for consistency.
   UniversalCrumbs is canonical; in-page crumb rows are HIDDEN.
   ═══════════════════════════════════════════════════════════════════════ */
.prdt-crumbs,
.brand-hero__crumbs,
.bsv-hero__crumbs,
.city-hero__crumbs,
.csv-hero__crumbs,
.sm-hero__crumbs,
.bc-hero__crumbs,
.bcs-hero__crumbs,
.county-hero__crumbs,
.state-hero__crumbs,
.cov-hero__crumbs,
.prod-hero__crumbs,
.pm-hero__crumbs,
.svc-hero__crumbs,
.inv-hero__crumbs,
.loc-hero__crumbs,
.ind-hero__crumbs,
.fin-hero__crumbs,
.fleet-hero__crumbs,
.parts-hero__crumbs,
.heli-hero__crumbs,
.compare-hero__crumbs,
.content-crumbs,
.universal-crumbs ~ .universal-crumbs,
.subnav__crumbs {
  display: none !important;
}
.prdt-crumbs button, .brand-hero__crumbs button,
.bsv-hero__crumbs button, .city-hero__crumbs button,
.csv-hero__crumbs button, .sm-hero__crumbs button,
.bc-hero__crumbs button, .bcs-hero__crumbs button,
.county-hero__crumbs button, .state-hero__crumbs button,
.cov-hero__crumbs button, .prod-hero__crumbs button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
  transition: color .12s ease;
}
.prdt-crumbs button:hover, .brand-hero__crumbs button:hover,
.bsv-hero__crumbs button:hover, .city-hero__crumbs button:hover,
.csv-hero__crumbs button:hover, .sm-hero__crumbs button:hover,
.bc-hero__crumbs button:hover, .bcs-hero__crumbs button:hover,
.county-hero__crumbs button:hover, .state-hero__crumbs button:hover,
.cov-hero__crumbs button:hover, .prod-hero__crumbs button:hover {
  color: var(--red);
  text-decoration: underline;
}
.prdt-crumbs > span, .brand-hero__crumbs > span,
.bsv-hero__crumbs > span, .city-hero__crumbs > span,
.csv-hero__crumbs > span, .sm-hero__crumbs > span,
.bc-hero__crumbs > span, .bcs-hero__crumbs > span,
.county-hero__crumbs > span, .state-hero__crumbs > span,
.cov-hero__crumbs > span, .prod-hero__crumbs > span {
  color: var(--ink-4);
  font-weight: 400;
}
/* Last crumb (the current page title) — darker, no link styling */
.prdt-crumbs > span:not(:empty):last-child, .brand-hero__crumbs > span:not(:empty):last-child,
.bsv-hero__crumbs > span:not(:empty):last-child, .city-hero__crumbs > span:not(:empty):last-child,
.csv-hero__crumbs > span:not(:empty):last-child, .sm-hero__crumbs > span:not(:empty):last-child,
.bc-hero__crumbs > span:not(:empty):last-child, .bcs-hero__crumbs > span:not(:empty):last-child,
.county-hero__crumbs > span:not(:empty):last-child, .state-hero__crumbs > span:not(:empty):last-child,
.cov-hero__crumbs > span:not(:empty):last-child, .prod-hero__crumbs > span:not(:empty):last-child {
  color: var(--ink);
}


/* Universal top-level page breadcrumbs (Home / Page) */
.universal-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
  padding: 22px 0 0;
}
.universal-crumbs button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .12s ease;
}
.universal-crumbs button:hover { color: var(--red); text-decoration: underline; }
.universal-crumbs > span { color: var(--ink-4); }
.universal-crumbs > span:not(:empty):last-child { color: var(--ink); }

/* ═══════ WORLD-CLASS PASS · motion + micro-typography (June 2026) ═══════ */

/* Optical kerning tiers — hand-finish for display sizes.
   2026-06: relaxed from -0.028em / -0.035em → -0.01em now that the
   display family is Inter (geometric, narrower than Archivo); tight
   negative tracking made hero/H1 letters touch at 84px+. */
.display { letter-spacing: -0.01em; line-height: 0.95; }
h1.display, .hh-hero__h { letter-spacing: -0.01em; line-height: 0.94; }

/* Orchestrated reveals — children cascade instead of popping together */
.reveal { transition: opacity .45s cubic-bezier(.22,.61,.36,1), transform .45s cubic-bezier(.22,.61,.36,1); }
section .reveal:nth-child(2) { transition-delay: .06s; }
section .reveal:nth-child(3) { transition-delay: .12s; }
section .reveal:nth-child(4) { transition-delay: .18s; }
section .reveal:nth-child(5) { transition-delay: .24s; }
section .reveal:nth-child(6) { transition-delay: .30s; }

/* Unified interactive lift — cards/tiles share one physical language */
.hh-brand-tile, .hh-review, .rental-unit, .nf-suggest__card,
.city-pillar, .csv-related__card, .bsv-related__card {
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease, outline-color .22s ease;
}
.hh-brand-tile:hover, .hh-review:hover, .rental-unit:hover,
.city-pillar:hover, .csv-related__card:hover, .bsv-related__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(14,13,11,0.10);
}

/* Buttons: arrow nudge + press state */
.btn .arrow { transition: transform .2s cubic-bezier(.22,.61,.36,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.985); }

/* Restraint switch */
@media (prefers-reduced-motion: reduce) {
  .reveal, .btn .arrow, .hh-brand-tile, .hh-review, .rental-unit { transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
}

/* ═══════ WORLD-CLASS PASS · interior hero choreography (all templates) ═══
   Same entrance language as the homepage hero, applied to every interior
   template hero block (city, city×service, brand, service, products,
   rentals, contact, locations, flagships). Targets the shared hero-inner
   children generically: eyebrow → H1 → lede → rest. */
@keyframes riseInG { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
[class*="-hero"] .eyebrow,
[class*="-hero"] .display { animation: riseInG .55s cubic-bezier(.22,.61,.36,1) .08s both; }
[class*="-hero"] h1 { animation: riseInG .6s cubic-bezier(.22,.61,.36,1) .14s both; }
[class*="-hero"] p  { animation: riseInG .55s cubic-bezier(.22,.61,.36,1) .26s both; }
[class*="-hero"] .btn { animation: riseInG .5s cubic-bezier(.22,.61,.36,1) .38s both; }
/* homepage keeps its own tighter sequence */
.hh-hero .eyebrow, .hh-hero .display, .hh-hero h1, .hh-hero p, .hh-hero .btn { animation: none; }
.hh-hero__eyebrow { animation: riseIn .55s cubic-bezier(.22,.61,.36,1) .05s both; }
.hh-hero__h       { animation: riseIn .65s cubic-bezier(.22,.61,.36,1) .15s both; }
.hh-hero__lede    { animation: riseIn .6s  cubic-bezier(.22,.61,.36,1) .28s both; }
.hh-hero__ctas    { animation: riseIn .6s  cubic-bezier(.22,.61,.36,1) .40s both; }
@media (prefers-reduced-motion: reduce) {
  [class*="-hero"] .eyebrow, [class*="-hero"] .display, [class*="-hero"] h1,
  [class*="-hero"] p, [class*="-hero"] .btn { animation: none !important; }
}
