/* ===================== Making Power Enterprise — Recruitment Landing ===================== */
/* Flat design · black + yellow + white · high contrast · mobile-first */

:root {
  /* Brand (from Making Power brand guide) */
  --mp-black: #0A0A0A;
  --mp-ink: #141414;
  --mp-yellow: #FFBB00;       /* brand primary gold */
  --mp-yellow-2: #FDDB00;     /* brighter secondary */
  --mp-yellow-dark: #E0A500;  /* hover/border */
  --mp-white: #FFFFFF;

  /* Neutrals */
  --gray-50: #F7F7F7;
  --gray-100: #EFEFF1;
  --gray-200: #E2E2E6;
  --gray-300: #CACAD0;
  --gray-500: #6B6B73;
  --gray-700: #3A3A40;

  /* Semantic */
  --surface: var(--mp-white);
  --bg: var(--gray-50);
  --text: #16161A;
  --text-soft: var(--gray-500);
  --danger: #C81E1E;
  --success: #157347;

  /* Type */
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Ubuntu', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing (8pt) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-4); }
.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 22px; cursor: pointer; text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .1s var(--ease);
  min-height: 48px;
}
.btn-primary { background: var(--mp-yellow); color: var(--mp-black); }
.btn-primary:hover { background: var(--mp-yellow-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-block { width: 100%; margin-top: var(--s-3); }
.btn:focus-visible { outline: 3px solid var(--mp-black); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--mp-white);
  border-bottom: 3px solid var(--mp-yellow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo img { height: 40px; width: auto; }
.header-cta { padding: 10px 18px; min-height: 40px; }
@media (max-width: 480px){ .header-cta { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: var(--mp-black);
  color: var(--mp-white);
  padding: var(--s-8) 0 var(--s-7);
  position: relative;
}
.hero::after { /* yellow base accent */
  content:""; position:absolute; left:0; right:0; bottom:0; height:6px; background: var(--mp-yellow);
}
.eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .8rem; color: var(--mp-yellow); margin: 0 0 var(--s-3);
}
.hero-title { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; font-style: italic; }
.hero-title .hl { color: var(--mp-yellow); font-style: italic; }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.2rem); color: #D8D8DC; max-width: 60ch; margin: var(--s-4) 0 0; }

.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); padding: 0; margin: var(--s-6) 0 0; }
.hero-meta li { display: flex; align-items: center; gap: var(--s-2); font-weight: 500; color: #ECECEF; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--mp-yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding: var(--s-7) 0; }
.section-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: var(--s-4); }
.section-title::after { content:""; display:block; width:56px; height:4px; background: var(--mp-yellow); margin-top: var(--s-3); border-radius: 2px; }
.sub-title { font-size: 1.15rem; font-weight: 700; margin: var(--s-5) 0 var(--s-2); }
.lead { font-size: 1.075rem; color: var(--gray-700); margin: 0 0 var(--s-4); }
.bullets { padding-left: 0; list-style: none; margin: var(--s-2) 0 0; }
.bullets li { position: relative; padding-left: 28px; margin-bottom: var(--s-2); color: var(--gray-700); }
.bullets li::before {
  content:""; position:absolute; left:0; top:9px; width: 14px; height: 14px;
  background: var(--mp-yellow); border-radius: 3px; transform: rotate(45deg);
}
.note-internal { margin-top: var(--s-5); font-size: .85rem; color: var(--gray-500); font-style: italic; border-top: 1px dashed var(--gray-300); padding-top: var(--s-3); }

/* ---------- Form ---------- */
.form-section { background: var(--gray-100); }
.form-card {
  background: var(--surface); border: 1px solid var(--gray-200);
  border-top: 5px solid var(--mp-yellow);
  border-radius: var(--radius); padding: clamp(var(--s-5), 4vw, var(--s-7));
}
.form-intro { color: var(--text-soft); margin: 0 0 var(--s-5); }

.field { margin-bottom: var(--s-5); }
.field label, .upload-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: var(--s-2); color: var(--mp-ink); }
.req { color: var(--danger); }
.optional { color: var(--text-soft); font-weight: 400; }

input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--mp-white); border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); padding: 13px 14px; min-height: 48px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9A9AA2; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--mp-black);
  box-shadow: 0 0 0 3px rgba(255,187,0,.45);
}
.field.invalid input, .field.invalid select, .field.invalid .dropzone { border-color: var(--danger); }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; fill: none; stroke: var(--gray-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.error { color: var(--danger); font-size: .85rem; margin: var(--s-2) 0 0; min-height: 0; }
.field.invalid .error { min-height: 1.2em; }

/* ---------- Dropzone ---------- */
.dropzone {
  display: block; position: relative; cursor: pointer;
  border: 2px dashed var(--gray-300); border-radius: var(--radius);
  background: var(--gray-50); padding: var(--s-6) var(--s-4); text-align: center;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.dropzone:hover { border-color: var(--mp-yellow-dark); background: #FFFDF3; }
.dropzone.dragover { border-color: var(--mp-black); background: #FFF9DD; }
.dropzone:focus-visible { outline: 3px solid var(--mp-black); outline-offset: 2px; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.dz-icon { width: 40px; height: 40px; margin: 0 auto var(--s-2); fill: none; stroke: var(--mp-black); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dz-text { margin: 0; color: var(--mp-ink); }
.dz-hint { margin: var(--s-1) 0 0; font-size: .85rem; color: var(--text-soft); }

.dz-file { display: flex; align-items: center; gap: var(--s-3); text-align: left; }
.dz-file-icon { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--mp-yellow-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dz-filename { flex: 1; font-weight: 600; word-break: break-all; }
.dz-remove { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--gray-100); border: none; border-radius: 50%; cursor: pointer; transition: background-color .15s var(--ease); }
.dz-remove:hover { background: var(--gray-200); }
.dz-remove svg { width: 18px; height: 18px; fill: none; stroke: var(--mp-ink); stroke-width: 2; stroke-linecap: round; }
.dz-remove:focus-visible { outline: 3px solid var(--mp-black); outline-offset: 2px; }

/* ---------- Submit button states ---------- */
.btn-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(10,10,10,.25); border-top-color: var(--mp-black); border-radius: 50%; display: none; animation: spin .7s linear infinite; }
.btn.loading .btn-label { opacity: .6; }
.btn.loading .btn-spinner { display: inline-block; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Status banners ---------- */
.form-status { margin-bottom: var(--s-4); }
.form-status:empty { display: none; }
.form-status .banner { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.banner.err { background: #FDECEC; color: var(--danger); border: 1px solid #F3B5B5; }

/* ---------- Success ---------- */
.success-state { text-align: center; padding: var(--s-6) var(--s-2); }
.success-check { width: 64px; height: 64px; margin: 0 auto var(--s-4); padding: 12px; border-radius: 50%; background: var(--mp-yellow); fill: none; stroke: var(--mp-black); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-state h2 { font-size: 1.6rem; margin-bottom: var(--s-3); }
.success-state p { color: var(--gray-700); max-width: 46ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mp-black); color: #C9C9CE; padding: var(--s-7) 0; text-align: center; }
.footer-wordmark { font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 1.4rem; color: var(--mp-white); margin: 0 0 var(--s-3); letter-spacing: -0.01em; }
.footer-wordmark .fw-strong { color: var(--mp-white); }
.footer-wordmark em { color: var(--mp-yellow); font-weight: 700; }
.footer-tag { font-family: var(--font-head); font-weight: 600; color: var(--mp-yellow); margin: 0 0 var(--s-2); }
.footer-copy { font-size: .85rem; margin: 0; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 768px) {
  .hero { padding: 96px 0 80px; }
  .form-card { padding: var(--s-7); }
}
