/* Reusable components. See BRAND.md §7 (as amended by §16) */

/* Utility label (thanks.html, draft flag) ------------------------------ */
.label {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-body); font-size: var(--t-label); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
}
.label .dot { width: 6px; height: 6px; background: var(--c-red); border-radius: 50%; flex: none; }
.label-rule {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding-block: var(--s-3); border-top: 1px solid var(--line-dark); margin-bottom: var(--s-7);
  flex-wrap: wrap; row-gap: var(--s-2);
}
.label-rule .label { white-space: nowrap; }

/* Buttons: no offset shadows. Hover = inset border, never a lift. ---------- */
.btn {
  --bc: var(--c-cream);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 56px; padding: var(--s-4) var(--s-6);
  font-family: var(--f-display); font-weight: 800; font-size: var(--t-s); letter-spacing: .02em;
  text-transform: uppercase; text-decoration: none; line-height: 1;
  border: 2px solid var(--bc); border-radius: var(--radius); background: transparent; color: var(--bc);
  cursor: pointer; transition: background var(--dur), color var(--dur), box-shadow var(--dur);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--c-yellow); border-color: var(--c-yellow); color: var(--c-black); }
.btn-primary:hover { box-shadow: inset 0 0 0 2px var(--c-black); }
.btn-secondary:hover { background: var(--c-cream); color: var(--c-black); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* Placeholder token (unconfirmed facts) ------------------------------- */
.ph {
  font-family: var(--f-body); font-weight: 600; font-size: .8em; letter-spacing: .02em;
  background: rgba(230, 56, 47, .14); color: inherit; border: 1px dashed var(--c-red);
  padding: .05em .4em; border-radius: var(--radius); white-space: nowrap;
}
@media (max-width: 639px) { .ph { white-space: normal; } }

/* Brandmark (logo slot). SWAP POINT for final DesignCrowd logo ---------- */
.brandmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-cream); line-height: 1; }
.brandmark .arch { width: 38px; height: 38px; flex: none; }
.brandmark .bm-text { display: flex; flex-direction: column; gap: 3px; }
.brandmark .bm-name { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; letter-spacing: .01em; text-transform: uppercase; }
.brandmark .bm-sub { display: flex; align-items: center; gap: 6px; font-family: var(--f-body); font-weight: 600; font-size: .625rem; letter-spacing: .32em; text-transform: uppercase; color: var(--c-yellow); }
.brandmark .bm-llc { font-size: .5625rem; letter-spacing: .12em; color: var(--c-cream); border: 1px solid var(--c-red); padding: 1px 3px; }

/* Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-black); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 76px; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: var(--s-6); margin: 0; padding: 0; }
.nav a { font-size: var(--t-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--c-cream); padding-block: var(--s-2); border-bottom: 2px solid transparent; transition: border-color var(--dur); }
.nav a:hover { border-color: var(--c-yellow); }
.header-ctas { display: flex; align-items: center; gap: var(--s-3); }
.header-ctas .btn { min-height: 48px; padding: var(--s-3) var(--s-5); font-size: 1.0625rem; }
@media (min-width: 960px) { .nav { display: block; } }
@media (max-width: 639px) {
  .brandmark .bm-name { font-size: 1.25rem; }
  .brandmark .arch { width: 32px; height: 32px; }
  .header-ctas { gap: var(--s-2); }
  .header-ctas .btn { min-height: 48px; padding: var(--s-2) var(--s-4); font-size: 1rem; }
}

/* Draft-only content (hidden unless ?preview=1) ------------------------ */
[data-draft] { display: none; }
.show-drafts [data-draft] { display: block; }
.draft-flag { display: flex; align-items: center; gap: var(--s-2); color: var(--c-red); }

/* Form ---------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; font-size: 1.0625rem;
  background: var(--c-white); color: var(--c-black);
  border: 2px solid var(--c-black); border-radius: var(--radius); appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--c-yellow); outline-offset: 0; border-color: var(--c-black); }
.field input[type="file"] { padding: 12px; font-size: .9375rem; cursor: pointer; }
.form .btn-primary { width: 100%; min-height: 64px; font-size: 1.5rem; }
.form-note { font-size: var(--t-small); color: var(--muted-light); }
.form-status { display: none; padding: var(--s-4); border: 2px solid var(--c-black); background: var(--c-yellow); color: var(--c-black); font-weight: 600; }
.form-status.is-visible { display: block; }

/* Multi-step form ------------------------------------------------------ */
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-5); animation: step-in 200ms var(--ease); }
.step[hidden] { display: none; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-q { margin-bottom: var(--s-2); padding: 0; }
.form-progress-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 50%; max-width: 240px; }
.form-progress-bar i { display: block; height: 6px; background: var(--line-light); }
.form-progress-bar i.is-done { background: var(--c-black); }
.q-group { display: grid; gap: var(--s-3); }
.q-label { font-weight: 600; margin: 0; }
.urgent-nudge { margin: 0; padding: var(--s-3) var(--s-4); border-left: 4px solid var(--c-red); background: var(--c-cream); font-size: var(--t-small); }
.urgent-nudge[hidden] { display: none; }
.btn-link { background: none; border: 0; padding: var(--s-2) 0; font-weight: 600; text-decoration: underline; cursor: pointer; color: inherit; }
