/* components.css — buttons, cards, forms, image-slots */

/* ---------- Buttons (skewed Sample 2 style) ---------- */
.btn {
  display: inline-block;
  padding: 16px 30px;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transform: skewX(-12deg);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn span { display: inline-block; transform: skewX(12deg); }
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-d); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 28px;
}
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--inverse {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 14px 28px;
}
.btn--inverse:hover { background: #fff; color: var(--ink); }

.btn--block { display: block; width: 100%; text-align: center; }

.link-arrow {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-top: 8px;
}
.link-arrow:hover { color: var(--red-d); text-decoration: none; }

/* ---------- Step/Inventory cards ---------- */
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.step-card__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.step-card p { color: var(--mute); margin: 0 0 20px; line-height: 1.55; }
.step-card__meta {
  font-family: var(--display);
  font-style: italic;
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step-card--inv {
  background: var(--ink-soft);
  border-color: var(--line-dark);
  color: #fff;
}
.step-card--inv:hover { border-color: var(--red); }
.step-card--inv h3 { color: #fff; }
.step-card--inv p { color: rgba(255,255,255,.7); }
.step-card--inv .step-card__meta { border-top-color: var(--line-dark); }

.inv-card {
  background: var(--ink);
  color: #fff;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease;
}
.inv-card:hover { transform: translateY(-4px); }
.inv-card__corner {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 80px 80px 0;
  border-color: transparent var(--red) transparent transparent;
}
.inv-card__step {
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.15em;
  margin: 16px 0 12px;
}
.inv-card h3 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.inv-card p { color: rgba(255,255,255,.72); margin: 0 0 16px; }

/* ---------- Image slot (placeholder if file missing) ---------- */
.img-slot {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 0;
}
.img-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-slot--placeholder {
  background: repeating-linear-gradient(45deg, rgba(220,31,45,.04) 0, rgba(220,31,45,.04) 12px, transparent 12px, transparent 24px), #f6f6f6;
  border: 2px dashed var(--line);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--mute);
  text-align: center;
  padding: 32px;
  font-family: var(--body);
}
.img-slot__icon { font-size: 32px; opacity: .5; }
.img-slot__label { font-weight: 600; font-size: .92rem; }
.img-slot__path { font-size: .78rem; opacity: .7; }
.img-slot code {
  background: rgba(11,11,15,.08);
  padding: 2px 8px;
  font-family: 'Courier New', monospace;
  font-size: .85rem;
}
.inv-card .img-slot--placeholder {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
}
.inv-card .img-slot code {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,31,45,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field__error { color: var(--red); font-size: .85rem; min-height: 1em; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,31,45,.12);
}
