/* ============================================================
   ENGO ARM Careers — minimalist stylesheet
   Cream background, black text, bold sans headline.
   ============================================================ */

:root {
  --bg: #F4F1EA;
  --text: #171715;
  --text-muted: #6b6a64;
  --border: #171715;
  --white: #ffffff;
  --max-width: 640px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.6; }

/* ---------- Top bar ---------- */
.topbar {
  padding: 28px 0 0;
}

.topbar .wrap {
  display: flex;
  justify-content: flex-end;
}

.topbar a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 1px;
}
.topbar a:hover { color: var(--text); border-color: var(--text); opacity: 1; }

/* ---------- Header / hero ---------- */
.hero {
  padding: 32px 0 8px;
}

.hero h1 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.hero .meta {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}
.hero .meta span + span::before {
  content: "  |  ";
  color: var(--text-muted);
}

/* ---------- Content ---------- */
main { padding: 24px 0 8px; }

.section { margin-top: 34px; }

.section .label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section p { margin: 0 0 14px; }

.section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.section ul li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.closing {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(23,23,21,0.15);
}
.closing p { margin: 0 0 6px; }

/* ---------- Apply form ---------- */
.apply {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(23,23,21,0.15);
}

.apply .label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.field .req { color: var(--text-muted); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  background: var(--white);
  color: var(--text);
}

.field input:focus, .field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--text);
}

.field textarea { resize: vertical; min-height: 84px; }

.field-file {
  border: 1px dashed var(--border);
  padding: 14px;
  background: var(--white);
}
.field-file input[type="file"] { width: 100%; font-size: 14px; font-family: inherit; }
.field-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

.hidden-field { position: absolute; left: -9999px; }

.btn-submit {
  display: block;
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 15px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: default; }

.form-msg {
  margin-top: 14px;
  font-size: 14px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.error { color: #a3392c; }
.form-msg.success { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
footer {
  margin-top: 56px;
  padding: 24px 0 48px;
  border-top: 1px solid rgba(23,23,21,0.15);
  font-size: 13.5px;
  color: var(--text-muted);
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }

/* ---------- Thank-you page ---------- */
.thankyou {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.thankyou .card { max-width: 480px; }
.thankyou h1 { font-weight: 800; font-size: 32px; margin-bottom: 14px; }
.thankyou p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  body { font-size: 16px; }
}
