/* Inquiro shared components. Patterns that appear on more than one page.
   Page-specific styles stay in their own file.

   v2 primitives below are the canonical set going forward. Legacy
   breadcrumb/divider remain for unmigrated pages. */

/* ══════════════════════════════════════════════════════════════ */
/* v2: LAYOUT PRIMITIVES                                           */
/* ══════════════════════════════════════════════════════════════ */

/* Section: vertical rhythm container. Use on every <section>. */
.section {
  padding: var(--section-y-mobile) var(--page-pad-x);
}
.section--tight { padding-block: var(--s-8); }
.section--loose { padding-block: var(--s-11); }

@media (min-width: 900px) {
  .section { padding-block: var(--section-y-tablet); }
}
@media (min-width: 1200px) {
  .section { padding-block: var(--section-y-desktop); }
}

/* Container: centered max-width wrapper. */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  width: 100%;
}
.container--doc      { max-width: var(--content-doc); }
.container--readable { max-width: var(--content-readable); }
.container--wide     { max-width: var(--content-wide); }

/* ══════════════════════════════════════════════════════════════ */
/* v2: CRUMBS (new breadcrumb, monochrome, quiet)                  */
/* ══════════════════════════════════════════════════════════════ */
.crumbs {
  padding: max(16px, env(safe-area-inset-top)) var(--page-pad-x) 16px;
  font-size: var(--fs-meta);
  font-family: var(--font-sans);
  color: var(--text-3);
  border-bottom: 1px solid var(--line-1);
  background: var(--ink-0);
}
.crumbs a {
  color: var(--text-2);
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 4px;
  transition: color var(--t-fast);
}
.crumbs a:hover { color: var(--text-1); }
.crumbs .sep { margin: 0 8px; color: var(--text-4); }
.crumbs .current { color: var(--text-1); }

/* ══════════════════════════════════════════════════════════════ */
/* v2: BUTTONS                                                     */
/* ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-6);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast);
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--amber);
  color: var(--ink-0);
  box-shadow: var(--shadow-amber);
}
.btn-primary:hover {
  background: #FFA733;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--line-3);
  background: var(--ink-2);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════ */
/* v2: CARD                                                        */
/* ══════════════════════════════════════════════════════════════ */
.card {
  display: block;
  padding: var(--s-7);
  background: var(--ink-2);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  color: var(--text-1);
  text-decoration: none;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background var(--t-base);
}
.card:hover {
  background: var(--ink-3);
  box-shadow: var(--shadow-2);
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  a.card:hover { transform: translateY(-2px); }
}

.card__label {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-4);
}
.card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s-3);
  color: var(--text-1);
}
.card__desc {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-2);
  margin-bottom: var(--s-5);
}
.card__foot {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--text-3);
  transition: color var(--t-fast);
}
.card:hover .card__foot { color: var(--text-1); }

/* ══════════════════════════════════════════════════════════════ */
/* v2: PILL                                                        */
/* ══════════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--ink-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-pill);
}
.pill--seal {
  color: var(--seal);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}
.pill--seal::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal);
  box-shadow: 0 0 8px var(--seal);
}

/* ══════════════════════════════════════════════════════════════ */
/* v2: PROOF STRIP (number trio used in hero-adjacent sections)    */
/* ══════════════════════════════════════════════════════════════ */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  padding-block: var(--s-7);
  border-block: 1px solid var(--line-1);
}
.proof-strip__num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--text-1);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.proof-strip__label {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
}
@media (max-width: 640px) {
  .proof-strip { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ══════════════════════════════════════════════════════════════ */
/* v2: PROSE (editorial / long-form body copy)                     */
/* ══════════════════════════════════════════════════════════════ */
.prose {
  max-width: var(--content-readable);
  font-size: var(--fs-body);
  line-height: var(--lh-prose);
  color: var(--text-2);
}
.prose > * + * { margin-top: var(--s-5); }
.prose h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-1);
  margin-top: var(--s-8);
}
.prose h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-1);
  margin-top: var(--s-7);
}
.prose a {
  color: var(--text-1);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--amber); }

/* ══════════════════════════════════════════════════════════════ */
/* v2: SECTION HEADING (used above content blocks)                 */
/* ══════════════════════════════════════════════════════════════ */
.section-head {
  max-width: var(--content-readable);
  margin-inline: auto;
  margin-bottom: var(--s-8);
  text-align: center;
}
.section-head__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-4);
}
.section-head__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-1);
  margin-bottom: var(--s-4);
}
.section-head__lede {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-2);
}

/* ══════════════════════════════════════════════════════════════ */
/* v2: UTILITY                                                     */
/* ══════════════════════════════════════════════════════════════ */
.u-quiet { color: var(--text-3); }
.u-caps  {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
}
.u-balance { text-wrap: balance; }
.u-pretty  { text-wrap: pretty; }

/* ══════════════════════════════════════════════════════════════ */
/* v1 LEGACY — kept for unmigrated pages. Do not use in new work.  */
/* ══════════════════════════════════════════════════════════════ */

/* Breadcrumb: consistent top-of-page bar on every subpage.
   Use <nav class="breadcrumb"> with <a>, <span class="sep">, <span class="current">. */
.breadcrumb {
  padding: max(15px, env(safe-area-inset-top)) var(--page-pad-x) 15px;
  background-color: var(--ink-0);
  border-bottom: 1px solid var(--line-1);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}
.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 4px;
  transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--text-1); text-decoration: none; }
.breadcrumb .sep { margin: 0 8px; color: var(--text-4); }
.breadcrumb .current { color: var(--text-1); }
@media (max-width: 600px) {
  .breadcrumb {
    font-size: 0.8rem;
    padding: max(10px, env(safe-area-inset-top)) var(--page-pad-x) 10px;
  }
}

/* Section divider: thin horizontal rule with soft edges. */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
  margin: 60px 0;
  border: 0;
}
.section-divider.tight { margin: 20px 0 60px; }
.section-divider.flush { margin: 0; }

/* ── Site footer: canonical pattern used across all pages ───────── */
.site-footer {
  padding: var(--s-9) var(--page-pad-x) var(--s-7);
  padding-bottom: max(var(--s-7), env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-1);
  background: var(--ink-0);
}
.site-footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}
.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-5);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line-1);
  margin-bottom: var(--s-5);
}
.site-footer__brand {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}
.site-footer__nav a {
  font-size: var(--fs-meta);
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--t-fast);
}
.site-footer__nav a:hover { color: var(--text-1); }
.site-footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: var(--fs-caption);
  color: var(--text-4);
}
.site-footer__meta p { margin: 0; }
.site-footer__social {
  display: flex;
  gap: var(--s-5);
}
.site-footer__social a {
  color: var(--text-3);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  transition: color var(--t-fast);
}
.site-footer__social a:hover { color: var(--text-1); }

@media (max-width: 640px) {
  .site-footer__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
