/* 동현인력 홈페이지 스타일 — 휴대폰 우선 */
:root {
  --navy: #12306b;
  --navy-2: #1c4596;
  --amber: #f5a300;
  --amber-dark: #c98200;
  --call: #0f9d58;
  --call-dark: #0b7a44;
  --ink: #1a1f2b;
  --muted: #5b6475;
  --line: #d9dee8;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --danger: #c62828;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 76px; /* 아래 전화 버튼 자리 */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.3; margin: 0; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 680px; }

/* 상단 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.5) blur(6px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; }
.brand img { border-radius: 50%; }
.langs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.langs button {
  font: inherit; font-size: .82rem; font-weight: 700;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 10px; min-height: 36px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 소개 */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 28px 0 32px;
}
.hero-inner { display: flex; flex-direction: column-reverse; align-items: center; gap: 16px; }
.hero-logo { width: 140px; height: 140px; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero-text { text-align: center; }
.badge {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px;
  background: rgba(255,255,255,.15); border-radius: 999px; font-size: .88rem; font-weight: 700;
}
.hero h1 { font-size: 1.75rem; font-weight: 800; }
.hero-sub { margin: 10px 0 4px; font-size: 1.05rem; opacity: .95; }
.hero-hours { margin: 0 0 18px; font-weight: 700; color: #ffd36b; }
.hero-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 18px; border-radius: var(--radius);
  font: inherit; font-weight: 800; text-decoration: none; text-align: center;
  border: 0; cursor: pointer; line-height: 1.3;
}
.btn-call { background: var(--call); color: #fff; }
.btn-call:hover { background: var(--call-dark); }
.btn-big { width: 100%; font-size: 1.1rem; padding: 14px 18px; }
.btn-big strong { font-size: 1.45rem; letter-spacing: .5px; }
.btn-big .ico { font-size: 1.8rem; }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-primary { background: var(--amber); color: #1b1300; width: 100%; font-size: 1.15rem; }
.btn-primary:hover { background: var(--amber-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, .langs button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}

/* 섹션 */
.section { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }
.lead { color: var(--muted); margin-top: -6px; }

/* 하는 일 */
.job-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.job {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px; text-align: center;
}
.job:last-child { grid-column: 1 / -1; }
.job-ico { font-size: 2rem; display: block; }
.job h3 { font-size: 1.15rem; margin: 6px 0 4px; color: var(--navy); }
.job p { margin: 0; font-size: .92rem; color: var(--muted); }

/* 위치·연락처 */
.info { margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.info > div:first-child { border-top: 0; }
.info dt { font-weight: 800; color: var(--navy); }
.info dd { margin: 0; }
.info dd a { font-weight: 800; font-size: 1.1rem; }
.info small { color: var(--muted); font-size: .9rem; }
.map-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 폼 */
.apply { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.warn { margin: 0 0 16px; padding: 10px 12px; background: #fff4e0; border-radius: 10px; font-size: .92rem; color: #7a4b00; font-weight: 700; }
.field { display: block; border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.label { display: block; font-weight: 800; margin-bottom: 6px; padding: 0; }
.label em { font-style: normal; font-size: .78rem; color: #fff; background: var(--danger); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.hint { margin: -4px 0 8px; font-size: .88rem; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 12px; min-height: 50px; background: #fff;
}
textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.field.invalid input, .field.invalid textarea, .field.invalid .chips { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(198,40,40,.15); border-radius: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; min-width: 56px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 700; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.chip-wide span { min-width: 90px; }

.consent { background: var(--bg-alt); border-radius: 10px; padding: 14px; margin-bottom: 16px; font-size: .92rem; }
.consent-title { margin: 0 0 6px; font-weight: 800; }
.consent ul { margin: 0 0 8px; padding-left: 1.1em; color: #3c4456; }
.consent li { margin: 2px 0; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-weight: 800; font-size: 1rem; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--navy); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { margin-bottom: 12px; min-height: 0; }
.form-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: var(--danger); font-weight: 700; }
.ko-only { padding: 10px 12px; border-radius: 10px; background: #e8eefb; color: var(--navy); font-weight: 700; }

.done { background: #fff; border: 2px solid var(--call); border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.done-title { font-size: 1.35rem; font-weight: 800; color: var(--call-dark); margin: 0 0 6px; }
.done .btn { width: 100%; margin-top: 10px; }
.done .btn-light { border: 1px solid var(--line); }

/* 하단 */
.footer { background: #0d1f45; color: #c9d3ea; padding: 32px 0 28px; font-size: .9rem; }
.footer a { color: #fff; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin: 0 0 10px; }
.footer-info { margin: 0 0 12px; }
.footer-info div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer-info dt { font-weight: 700; color: #fff; }
.footer-info dt::after { content: ":"; }
.footer-info dd { margin: 0; }
.copy { opacity: .7; margin-bottom: 0; }

/* 아래 고정 전화 버튼 */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--call); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.callbar strong { font-size: 1.2rem; letter-spacing: .5px; }

/* 개인정보처리방침 페이지 */
body.doc { padding-bottom: 0; }
.btn-small { min-height: 40px; padding: 6px 14px; font-size: .9rem; }
.policy h1 { font-size: 1.6rem; margin-bottom: 12px; color: var(--navy); }
.policy h2 { font-size: 1.15rem; margin: 28px 0 8px; color: var(--navy); }
.policy ul { padding-left: 1.2em; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.policy-table th, .policy-table td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.policy-table th { background: var(--bg-alt); }
.muted { color: var(--muted); margin-top: 28px; }

/* PC 화면 */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .hero { padding: 56px 0; }
  .hero-inner { flex-direction: row; justify-content: space-between; gap: 40px; }
  .hero-text { text-align: left; max-width: 560px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-logo { width: 256px; height: 256px; }
  .btn-big { width: auto; min-width: 320px; }
  .hero-links { max-width: 420px; }
  .job-grid { grid-template-columns: repeat(5, 1fr); }
  .job:last-child { grid-column: auto; }
  .map-links { max-width: 420px; }
  .row { grid-template-columns: 1fr 1fr; }
  .apply { padding: 28px; }
  .langs button { font-size: .9rem; padding: 6px 14px; }
}
