/* ==========================================================
   COMPONENTS — reusable pieces (buttons, tags, chips, tiles,
   rows, cards, form fields)
   ========================================================== */

/* --- Button: a physical "key" that presses down --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--c-ink);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn:hover  { transform: translateY(-1px); box-shadow: 0 5px 0 var(--c-ink); }
.btn:active { transform: translateY(4px);  box-shadow: 0 0 0 var(--c-ink); }

.btn--dark  { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-accent); }
.btn--light { background: var(--c-surface); color: var(--c-ink); }
.btn--light:hover { background: var(--c-surface-2); }
.btn--hot   { background: var(--c-hot); color: var(--c-ink); }
.btn--hot:hover { background: #fff; }
.btn--small { min-height: 40px; padding: 0 18px; box-shadow: 0 3px 0 var(--c-ink); }

/* --- Tag --- */
.tag { display: inline-block; padding: 6px 10px; border-radius: 6px; }
.tag--dark { background: var(--c-ink); color: #fff; }
.tag--hot  { background: var(--c-hot); color: var(--c-ink); }

/* --- Chip (toggle) --- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--c-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.chip:hover { transform: translateY(-2px); }
.chip.is-active { background: var(--c-ink); color: #fff; }

/* --- Tile (icon card) --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius-m);
  background: var(--c-surface);
  transition: background .3s, transform .3s;
}
.tile:hover { --tile-bg: var(--c-surface-2); background: var(--c-surface-2); transform: translateY(-4px); }
.tile .ico  { margin-bottom: 10px; }
.tile__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.tile__text  { font-size: 15px; color: var(--c-ink-3); }

/* --- Icon base (animations in animations.css) --- */
.ico { width: 88px; height: 88px; color: var(--c-ink); overflow: visible; }
.ico * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* .mask: filled with the tile colour so it hides lines behind it (e.g. car wheels) */
.ico .mask { fill: var(--tile-bg, var(--c-surface)); transition: fill .3s; }
.ico .hot-fill     { fill: var(--c-hot); stroke: none; }
.ico .accent-stroke { stroke: var(--c-accent); }

/* --- Row (list link with sliding arrow) --- */
.rows { border-bottom: 1.5px solid var(--c-ink); }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-top: 1.5px solid var(--c-ink);
  text-decoration: none;
  transition: padding .35s var(--ease-out), color .2s;
}
.row:hover { padding-left: 18px; color: var(--c-accent); }
.row__main  { display: flex; flex-wrap: wrap; gap: 28px; align-items: baseline; }
.row__main .label { width: 32px; }
.row__title { font-size: clamp(24px, 3vw, 40px); font-weight: 600; letter-spacing: -.03em; }
.row__side  { display: flex; gap: 24px; align-items: center; }
.row__arrow { font-size: 28px; transition: transform .35s var(--ease-out); }
.row:hover .row__arrow { transform: translateX(10px); }

/* --- Form fields --- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--c-ink);
  font: 16px/1.4 var(--font-sans);
  outline: none;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { box-shadow: inset 0 0 0 3px var(--c-hot); }
.field.is-invalid input { box-shadow: inset 0 0 0 3px var(--c-hot); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--c-hot); }
