/* ================================================================
   TARABA BizComm — Showroom components
   css/showroom.css | Loaded after base.css + layout.css by every page
   rebuilt in the showroom restructure (and by style-guide.html).
   Spec: docs/design-system.md. Tokens come from base.css :root.
================================================================ */

/* ─────────────────────────────────────────────
       BUTTONS — showroom variants
       Primary label is navy: white on --orange is only 3.3:1.
    ───────────────────────────────────────────── */
.sr .btn-primary {
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(234, 162, 33, 0.28);
}
.sr .btn-primary:hover {
  background: var(--orange-h);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  color: var(--brand-navy);
}
.btn-link .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-micro) var(--ease-out);
}
.btn-link:hover .icon {
  transform: translateX(4px);
}
.room--dark .btn-link {
  color: var(--white);
}
.btn:focus-visible,
.btn-link:focus-visible,
.exhibit:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────
       SHARED HEADER & FOOTER — showroom refresh
       (markup is the same on every rebuilt page; base styles
       stay in css/layout.css)
    ───────────────────────────────────────────── */
.sr .nav__logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.sr .nav__cta-btn {
  padding: 11px 22px;
  font-size: 14px;
}
.sr .nav__cta-btn .icon {
  width: 16px;
  height: 16px;
}
.sr .footer__ci-icon {
  color: var(--slate-light);
  --icon-dot: var(--amber);
  margin-top: 0;
}
.sr .footer__ci-icon .icon {
  width: 18px;
  height: 18px;
}
.footer__ci-note {
  font-size: 11px;
}
@media (max-width: 639px) {
  .sr .nav__logo-img {
    height: 30px;
  }
}

/* ─────────────────────────────────────────────
       ICONS (sprite: assets/graphics/icons.svg)
    ───────────────────────────────────────────── */
.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
  color: currentColor;
}

/* ─────────────────────────────────────────────
       ROOM — the section wrapper
    ───────────────────────────────────────────── */
.room {
  position: relative;
  padding: var(--room-y) 0;
  overflow: hidden;
}
.room--paper {
  background: var(--paper);
  color: var(--text-body);
}
.room--white {
  background: var(--white);
}
.room--dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  --icon-dot: var(--amber);
}
/* Showroom spotlight: a soft cone of light from the top of every dark room */
.room--dark::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: min(1100px, 120%);
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(168, 191, 218, 0.16),
    transparent 62%
  );
  pointer-events: none;
}
.room > .wrap {
  position: relative;
  z-index: 1;
}
.room h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
  max-width: 24ch;
  text-wrap: balance;
}
.room--dark h2 {
  color: var(--white);
}
.room h2 em {
  font-style: normal;
  color: var(--orange-ink-lg);
}
.room--dark h2 em {
  color: var(--orange);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 34ch;
  margin-top: var(--s-4);
}

/* ─────────────────────────────────────────────
       ROOM LABEL — "02 · The Gap"
    ───────────────────────────────────────────── */
.room-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: var(--s-4);
}
.room-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.18);
}
.room-label b {
  color: var(--navy);
  font-weight: 800;
}
.room--dark .room-label {
  color: var(--orange);
}
.room--dark .room-label b {
  color: var(--white);
}

/* ─────────────────────────────────────────────
       PLINTH — the stand every exhibit sits on
    ───────────────────────────────────────────── */
.plinth {
  position: relative;
  display: grid;
  place-items: center;
  padding-bottom: 28px;
}
.plinth::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78%;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(13, 27, 62, 0.22),
    transparent 70%
  );
  z-index: -1;
}
.plinth::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 64%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(6, 59, 111, 0.18);
}
.room--dark .plinth::after {
  background: radial-gradient(
    ellipse at center,
    rgba(244, 180, 0, 0.28),
    transparent 70%
  );
}
.room--dark .plinth::before {
  border-color: rgba(244, 180, 0, 0.45);
}

/* ─────────────────────────────────────────────
       EXHIBIT TILE — icon on a mini plinth + title + one line
    ───────────────────────────────────────────── */
.exhibit {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-5) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-body);
  transition:
    transform var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out);
}
.exhibit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-h);
}
.exhibit__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #eef3fb, #ffffff);
  color: var(--brand-navy);
  box-shadow:
    inset 0 -6px 0 rgba(6, 59, 111, 0.06),
    0 8px 18px -10px rgba(13, 27, 62, 0.45);
}
.exhibit__icon .icon {
  width: 30px;
  height: 30px;
}
.exhibit__num {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--orange-ink);
}
.exhibit h3 {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
.exhibit p {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-soft);
}
.room--dark .exhibit {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
}
.room--dark .exhibit:hover {
  border-color: rgba(244, 180, 0, 0.5);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
}
.room--dark .exhibit__icon {
  background: linear-gradient(160deg, #1f3a6c, #13284f);
  color: var(--white);
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.18),
    0 10px 22px -12px rgba(244, 180, 0, 0.55);
}
.room--dark .exhibit h3 {
  color: var(--white);
}
.room--dark .exhibit p {
  color: var(--slate-light);
}
.room--dark .exhibit__num {
  color: var(--orange);
}

/* ─────────────────────────────────────────────
       GUIDE — the mascot's one line
    ───────────────────────────────────────────── */
.guide {
  display: flex;
  align-items: flex-end;
  gap: var(--s-3);
  max-width: 420px;
}
.room--dark .guide__face {
  border-color: var(--navy-mid);
}

/* ─────────────────────────────────────────────
       CHIPS
    ───────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--navy);
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.chip--dark,
.room--dark .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

/* ─────────────────────────────────────────────
       STEPS — joined by the flight line
    ───────────────────────────────────────────── */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  list-style: none;
}
.steps__line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  height: 64px;
  width: 88%;
  pointer-events: none;
  overflow: visible;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.step__badge {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-navy);
  border: 1.5px solid var(--border-h);
  box-shadow: var(--shadow-sm);
}
.step__badge .icon {
  width: 28px;
  height: 28px;
}
.step__num {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--orange-ink);
}
.step h3 {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--navy);
}
.step p {
  font-size: var(--fs-small);
  color: var(--text-soft);
  max-width: 24ch;
}
.step.is-active .step__badge {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
  --icon-dot: var(--white);
}
.room--dark .step__badge {
  background: var(--navy-mid);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.room--dark .step h3 {
  color: var(--white);
}
.room--dark .step p {
  color: var(--slate-light);
}
.room--dark .step__num {
  color: var(--orange);
}

/* ─────────────────────────────────────────────
       STAT COUNTER
    ───────────────────────────────────────────── */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-7);
}
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.stat__num sup {
  font-size: 0.5em;
  color: var(--orange-ink);
  vertical-align: 0.6em;
  margin-left: 2px;
}
.stat__label {
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  color: var(--text-soft);
}
.room--dark .stat__num {
  color: var(--white);
}
.room--dark .stat__num sup {
  color: var(--amber);
}
.room--dark .stat__label {
  color: var(--slate-light);
}

/* ─────────────────────────────────────────────
       STATEMENT — the Fundamental Principle
    ───────────────────────────────────────────── */
.statement {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--white);
  max-width: 22ch;
  margin: 0 auto;
}
.statement em {
  font-style: normal;
  color: var(--orange);
}
.statement strong {
  color: var(--amber);
}

/* ─────────────────────────────────────────────
       CTA BAND
    ───────────────────────────────────────────── */
.cta-band .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-7);
}
.cta-band__mascot {
  width: clamp(140px, 16vw, 220px);
  margin-bottom: calc(var(--room-y) * -1);
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

/* ─────────────────────────────────────────────
       LOGO STRIP
    ───────────────────────────────────────────── */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}
.logo-strip img {
  height: 44px;
  width: auto;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--border);
  filter: grayscale(1);
  opacity: 0.75;
  transition:
    filter var(--dur-micro) var(--ease-out),
    opacity var(--dur-micro) var(--ease-out);
}
.logo-strip img:hover {
  filter: none;
  opacity: 1;
}

/* ─────────────────────────────────────────────
       INDUSTRY RAIL — the 5 industry artworks
       Row of 5 on desktop, 3 on tablet, swipeable rail on phones.
    ───────────────────────────────────────────── */
.industries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.industry {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7);
  transition: transform var(--dur-micro) var(--ease-out);
}
.industry:hover {
  transform: translateY(-6px);
}
.industry img {
  width: 100%;
  aspect-ratio: 3 / 7;
  object-fit: cover;
}

/* ─────────────────────────────────────────────
       RESPONSIVE
    ───────────────────────────────────────────── */
@media (max-width: 1023px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--s-7);
  }
  .steps__line {
    display: none;
  }
  .industries {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 639px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: var(--s-5);
  }
  /* Badge left, text right — keeps the four steps within one phone screen */
  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: var(--s-4);
    row-gap: 2px;
    align-items: start;
  }
  .step__badge {
    grid-row: span 3;
    width: 56px;
    height: 56px;
  }
  .stats {
    gap: var(--s-6);
  }
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }
  .cta-band__mascot {
    justify-self: center;
  }
  .industries {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s-4);
    margin-right: calc(var(--pad-x) * -1);
    padding-right: var(--pad-x);
    scrollbar-width: none;
  }
  .industry {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exhibit,
  .industry,
  .btn-link .icon,
  .logo-strip img {
    transition: none;
  }
  .exhibit:hover,
  .industry:hover {
    transform: none;
  }
}
