/* ============================================================
   FitTheRole — Components (Soft Brutalism)
   Button · Card · Pill · Field/Input · Nav · Footer · Badge
   ============================================================ */

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-coral);
  color: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 11px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, box-shadow .05s ease;
}
.btn:hover  { box-shadow: var(--shadow-sm); transform: translate(2px, 2px); }
.btn:active { box-shadow: 0 0 0 var(--c-ink); transform: translate(4px, 4px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-sm), 0 0 0 3px var(--c-gold); }
.btn--secondary { background: var(--c-paper); color: var(--c-ink); }
.btn--accent    { background: var(--c-gold);  color: var(--c-ink); }
.btn--sage      { background: var(--c-sage);  color: #fff; }
.btn--ghost     { background: transparent; color: var(--c-ink); box-shadow: none; }
.btn--ghost:hover { background: var(--c-paper); box-shadow: var(--shadow-sm); transform: translate(2px, 2px); }
.btn--lg { padding: 15px 30px; font-size: 17px; }
.btn--sm { padding: 7px 14px; font-size: 13px; box-shadow: var(--shadow-sm); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Card ---------- */
.card {
  background: var(--c-paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
}
.card--tilt { transition: transform .12s ease, box-shadow .12s ease; }
.card--tilt:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }

/* ---------- Pill / Tag ---------- */
.pill {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  background: var(--c-sky);
  border: var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}
.pill--sage  { background: var(--c-sage); color: #fff; }
.pill--gold  { background: var(--c-gold); }
.pill--coral { background: var(--c-coral); color: #fff; }

/* ---------- Form field ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--c-paper);
  color: var(--c-ink);
  border: var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
}
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: var(--shadow-sm); }
.textarea { min-height: 96px; resize: vertical; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  background: var(--c-coral);
  color: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 3px 12px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-coral);
  border-bottom: var(--border);
}
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -.02em; color: #fff; text-decoration: none;
}
.site-nav__links { display: flex; align-items: center; gap: var(--space-4); }
.site-nav__links a { color: #fff; font-weight: 600; text-decoration: none; }
.site-nav__links a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; color: #fff;
  border: var(--border); border-color: #fff; border-radius: var(--radius);
  font-size: 20px; line-height: 1; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  background: var(--c-ink);
  color: var(--c-cream);
  padding: var(--space-5) 0;
  margin-top: var(--space-6);
}
.site-footer a { color: var(--c-coral); }

@media (max-width: 880px) {
  .site-nav__toggle { display: inline-flex; }
  .site-nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--c-coral);
    border-bottom: var(--border);
    box-shadow: var(--shadow-sm);
  }
  .site-nav.is-open .site-nav__links { display: flex; }
  .site-nav__links .btn { text-align: center; }
}
