/* ============================================================
   NAHF DESIGN SYSTEM — Global stylesheet
   Imports tokens, then defines semantic element styles +
   reusable component utility classes (buttons, pills, cards…).
   Mirrors the Operating Rhythm app's globals.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&family=Mulish:wght@300;400;500;600;700;800&display=swap');
@import 'colors_and_type.css';

/* ---------- BASE ELEMENTS ---------- */
html, body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-size: var(--t-body);
  line-height: var(--t-body-lh);
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--nahf-grey); margin: 0; }
h1 { font-size: var(--t-h1); font-weight: var(--fw-extra); letter-spacing: -0.01em; line-height: var(--t-h1-lh); }
h2 { font-size: var(--t-h2); font-weight: var(--fw-bold); letter-spacing: -0.005em; line-height: var(--t-h2-lh); }
h3 { font-size: var(--t-h3); font-weight: var(--fw-bold); line-height: var(--t-h3-lh); }
p  { margin: 0; }
a  { color: var(--nahf-blue); text-decoration: none; }
a:hover { color: var(--nahf-blue-deep); }

.brand-display { font-family: var(--font-display); font-weight: var(--fw-bold); letter-spacing: -0.01em; line-height: 1.1; color: var(--nahf-grey); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--t-eyebrow); font-weight: var(--fw-bold);
  letter-spacing: var(--t-eyebrow-ls); text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: var(--t-lead); line-height: var(--t-lead-lh); }
.small { font-size: var(--t-small); line-height: var(--t-small-lh); }
.tnum { font-variant-numeric: tabular-nums; }
.hairline { border-color: var(--line); }

/* ---------- FORM CONTROLS ---------- */
input, textarea, select { font-family: inherit; }
input[type="text"], input[type="number"], input[type="date"], input[type="email"], textarea, select {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: var(--t-body);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  border-radius: var(--r-xs);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--nahf-blue);
  box-shadow: var(--focus-ring);
}

/* ---------- BUTTONS ---------- */
button { font-family: inherit; }
.btn-primary {
  background: var(--nahf-blue); color: #FFFFFF;
  padding: 9px 18px; font-size: 13px; font-weight: var(--fw-semibold);
  font-family: var(--font-display); letter-spacing: 0.03em;
  transition: background 0.15s; cursor: pointer;
  border-radius: var(--r-xs); border: none;
}
.btn-primary:hover { background: var(--nahf-blue-deep); }

.btn-secondary {
  background: transparent; color: var(--nahf-blue);
  border: 1px solid var(--nahf-blue);
  padding: 8px 17px; font-size: 13px; font-weight: var(--fw-semibold);
  font-family: var(--font-display); letter-spacing: 0.03em;
  cursor: pointer; transition: all 0.15s; border-radius: var(--r-xs);
}
.btn-secondary:hover { background: var(--nahf-blue); color: #FFFFFF; }

.btn-ghost {
  background: transparent; color: var(--muted);
  padding: 6px 10px; font-size: 13px; font-weight: var(--fw-medium);
  cursor: pointer; transition: color 0.15s; border-radius: var(--r-xs); border: none;
}
.btn-ghost:hover { color: var(--nahf-blue); }

/* ---------- CARD ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xs); }
.card-pad { padding: var(--s-5); }

/* ---------- PILLS / BADGES ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; font-size: 10px;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--r-pill); white-space: nowrap;
}
.pill-on-track  { background: var(--on-bg);   color: var(--on); }
.pill-off-track { background: var(--off-bg);  color: var(--off); }
.pill-done      { background: var(--done-bg); color: var(--done); }
.pill-open      { background: var(--open-bg); color: var(--open); }

/* ---------- BRAND BAR ---------- */
.brand-bar { background: var(--nahf-blue); height: 6px; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }
