/* McB Industrial — temp landing page.
   Vibe: professional, clean, slick, edgy. Monochrome black/grey with two
   small hot-pink accents only (the Woman-Owned tag + one underline moment).
   Sharp geometry, no rounded corners. No tracking, no analytics, no stock
   photography.

   Accent restraint per client feedback 2026-04-21: "have it tone down the
   hot pink some? Just have a couple small accents in one or two places." */

:root {
  --bg:       #0a0a0a;
  --ink:      #ededed;
  --grey:     #8a8a8a;
  --grey-2:   #3a3a3a;
  --line-in:  #606060;   /* input & captcha borders — ~4.6:1 on bg; grey-2 was invisible on phone screens */
  --accent:   #ff3ea5;   /* hot pink — the loud version, not a pastel */
  --accent-2: #ff66bc;
  --mono:     ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: var(--bg);
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 44px;
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 56px;
}

/* ---------- top ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey-2);
  padding-bottom: 18px;
}

/* Corner mark: symbol-only (M-emblem cropped from the full logo asset).
   Hero H1 is the wordmark moment — having the full lockup up here too
   duplicated MCB twice on first viewport. Symbol alone pairs with the
   hero instead of competing.  Fluid 44-56px keeps it readable across
   phone → ultrawide. */
.top .mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.top .mark img {
  display: block;
  height: clamp(44px, 4.5vw, 56px);
  width: auto;
}

/* Certification chips — two tight mono chips side-by-side (gov procurement
   audience reads these on first glance). They flex-wrap on narrow screens
   so they stack cleanly instead of overflowing. */
.top .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top .tag {
  /* Flex-centred + fixed height + explicit line-height so the label
     sits dead-centre in every chip regardless of font metrics. `line-height:
     normal` + inline-block was rendering CERTIFIED SMALL BUSINESS ~1px
     higher than WOMAN-OWNED on iOS Safari (different ascender handling
     between Chrome and Safari for ui-monospace). */
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- hero ----------
   Pink-outlined-C wordmark + Nate/Ally's blurb beneath.
   Wordmark is the loud brand moment; blurb explains who MCB is. */
.hero {
  align-self: center;
  padding: 32px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 11vw, 140px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero h1 .line {
  display: block;
}

/* The "C" in MCB is outlined in hot pink — Cali's initial, MCB = Mikey /
   Cali / Brody. Uses -webkit-text-stroke which all modern engines
   (Chrome, Firefox, Safari) honour. The fill is transparent so the
   outline reads crisp at every heading size. Paint-order keeps the
   stroke visually above any anti-aliased fill remnants. */
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--accent);
  text-stroke: 3px var(--accent);
  paint-order: stroke fill;
}

/* At smaller hero sizes (mobile), 2px reads cleaner than 3px. */
@media (max-width: 640px) {
  .hero h1 .outline {
    -webkit-text-stroke-width: 2px;
    text-stroke-width: 2px;
  }
}

.hero .intro {
  margin: 0;
  max-width: 820px;
  font-size: clamp(17px, 2.05vw, 21px);
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: 0.005em;
}

/* ---------- line card (product categories) ---------- */
.lines {
  padding-top: 36px;
  border-top: 1px solid var(--grey-2);
}

/* Tiny uppercase section-label — same voice as .detail .label */
.section-label {
  margin: 0 0 22px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 400;
}

.line-card {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 32px;
}

.line-card li {
  /* Each category is a simple label — thin left rule gives the whole
     list a shared vertical rhythm without shouting. */
  border-left: 1px solid var(--grey-2);
  padding: 4px 0 4px 16px;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* ---------- detail ---------- */
.detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--grey-2);
}

.detail .block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
}

.detail .value {
  font-size: 17px;
  color: var(--ink);
}

.detail .link {
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  width: fit-content;
}

.detail .link:hover,
.detail .link:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--grey);
  outline: none;
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--grey-2);
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
}

.foot .sep { color: var(--grey-2); }
.foot .micro { color: var(--grey); }

/* ---------- contact (inline form on main page) ----------
   Section follows the same cadence as .lines / .detail — thin top rule,
   36px padding, .section-label header. Form element styling inside is
   minimal and shares type + color tokens with the rest of the page. */
.contact {
  padding-top: 36px;
  border-top: 1px solid var(--grey-2);
}

.contact-form {
  display: grid;
  gap: 22px;
  max-width: 640px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
}

.contact-form label .opt {
  color: var(--grey-2);
  font-size: 10px;
  letter-spacing: 2px;
  margin-left: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-in);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.01em;
  border-radius: 0;
  outline: none;
  transition: border-color 0.12s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--sans);
}

.contact-form .field-short input {
  max-width: 180px;
}

/* ---------- drag-slider captcha ----------
   Self-contained panel: background image (server-rendered PNG — pink
   target square + grey decoys) + a draggable piece on top. Everything
   here follows the site's sharp-geometry rule — solid pink fill, no
   rounded corners, no glow, no decoration. Matches .tag + input-field
   language exactly. */
.captcha-field label { margin-bottom: 2px; }

.captcha-status {
  color: var(--grey);
  letter-spacing: 2px;
  text-transform: none;    /* the hyphen + lowercase feels softer than all-caps against the uppercase label */
  font-size: 9px;
  margin-left: 4px;
  transition: color 0.12s ease;
}

.captcha-status.ok { color: var(--accent); }

.captcha {
  position: relative;
  width: 360px;
  max-width: 100%;
  height: 80px;
  background: var(--bg);
  border: 1px solid var(--line-in);
  overflow: hidden;
  user-select: none;
  touch-action: none;      /* stop the browser from scroll-hijacking the drag */
  transition: border-color 0.12s ease;
}

.captcha .captcha-bg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;    /* drags must hit the piece, not the image */
  image-rendering: crisp-edges;
}

.captcha .captcha-piece {
  position: absolute;
  top: calc(50% - 14px);   /* 28px piece — matches captcha.php SHAPE_SIZE */
  left: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
  cursor: grab;
  transition: background 0.12s ease;
}

.captcha .captcha-piece:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.captcha .captcha-piece.dragging {
  cursor: grabbing;
  background: var(--accent-2);
}

.captcha.ok {
  border-color: var(--accent);
}

.captcha.ok .captcha-piece {
  background: var(--accent-2);
  cursor: default;
}

/* Disabled state — legible on phone. The old grayscale+brightness
   filter muted the pink AND the near-black text to roughly the same
   tone, so the button legend disappeared (Cobb flagged this). Clean
   swap: transparent bg + --grey border + --grey label, same mono
   voice as the rest of the form's labels. */
.contact-form button[type="submit"]:disabled {
  background: transparent;
  color: var(--grey);
  border-color: var(--line-in);
  cursor: not-allowed;
}

/* Honeypot — pushed off-screen and hidden from every sensor. Real humans
   never see it; naive form-fillers trip the trap. Belt-and-braces
   (absolute + opacity + pointer-events) because display:none alone is
   sometimes ignored by password-manager-style auto-fillers. */
.contact-form .hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 6px;
}

.contact-form button[type="submit"] {
  appearance: none;
  background: var(--accent);
  color: #0a0a0a;
  /* Border matches the bg so enabled + disabled states are the same
     pixel size — avoids a layout shift when the captcha unlocks. */
  border: 1px solid var(--accent);
  padding: 11px 23px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.contact-form button[type="submit"]:hover:not(:disabled),
.contact-form button[type="submit"]:focus-visible:not(:disabled) {
  background: var(--accent-2);
  border-color: var(--accent-2);
  outline: none;
}

.form-error-top {
  margin: 0 0 6px 0;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
}

.contact-card .thanks-line {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: var(--ink);
}

.contact-card .thanks-line.muted {
  color: var(--grey);
  font-size: 15px;
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .wrap {
    padding: 28px 22px;
    gap: 36px;
  }
  .hero { padding: 16px 0; }
  .hero h1 .line.accent::after { width: 48px; margin-top: 14px; }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea { font-size: 15px; }
  .contact-form .actions { flex-direction: column; align-items: flex-start; gap: 14px; }
}
