/* =========================================================
   Certo Recruiting — Stylesheet
   Boutique executive-recruiting aesthetic: deep navy, warm
   white, charcoal, restrained muted-blue / burgundy accents.
   ========================================================= */

:root {
  --navy: #0F2238;
  --navy-2: #16314C;
  --charcoal: #2B2B2E;
  --text: #1C1C1E;
  --muted: #53524C;
  --bg: #FAF8F4;
  --bg-soft: #F1ECE3;
  --border: #E3DED3;
  --white: #FFFFFF;
  --accent: #4C6B82;
  --accent-deep: #5C2430;

  --radius: 6px;
  --container: 1180px;
  --header-h: 80px;
  --mobile-cta-h: 60px;

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-cta-h);
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Buttons (rectangular, minimal radius — not pill-shaped) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: rgba(15,34,56,0.06); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }
.btn-accent { background: var(--accent-deep); color: #fff; }
.btn-accent:hover { background: #4A1D27; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-submit { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 244, 0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 14px rgba(15,34,56,0.06);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-ko { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.brand-en { font-size: 0.62rem; color: var(--muted); font-weight: 700; letter-spacing: 0.14em; margin-top: 2px; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-weight: 700; font-size: 0.93rem; color: var(--charcoal); opacity: 0.88; }
.main-nav a:hover { opacity: 1; color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: transparent; border: none; color: var(--navy); }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}
@media (max-width: 899.98px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 84vw);
    height: calc(100vh - var(--header-h));
    background: #fff;
    box-shadow: -8px 0 32px rgba(15,34,56,0.12);
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 28px 24px;
    z-index: 101;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .header-actions .btn-sm { display: none; }
}

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(15,34,56,0.35);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 99;
}
.nav-scrim.is-visible { opacity: 1; visibility: visible; }

/* ---------- Fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 56px) 0 64px; background: var(--bg); }
.hero-inner { display: grid; gap: 48px; }
.eyebrow {
  position: relative;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 26px;
  padding-bottom: 14px;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--accent-deep);
}
.eyebrow.light { color: #B9C7D4; }
.eyebrow.light::after { background: #B9C7D4; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 6.6vw, 3.8rem);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.24;
}
.hero-sub { margin-top: 22px; font-size: 1.2rem; font-weight: 700; color: var(--charcoal); }
.hero-desc { margin-top: 14px; font-size: 1.04rem; font-weight: 500; color: var(--muted); max-width: 520px; }
.hero-tags { margin-top: 18px; font-size: 0.88rem; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.profile-card {
  width: 100%;
  max-width: 340px;
  background: var(--navy);
  border-radius: 10px;
  padding: 28px 26px;
  color: #fff;
  position: relative;
}
.profile-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-deep);
  border-radius: 10px 10px 0 0;
}
.profile-card-top { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.profile-meta { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.profile-line { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.28); }
.profile-line.w-70 { width: 70%; }
.profile-line.w-40 { width: 40%; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.profile-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
}
.profile-divider { height: 1px; background: rgba(255,255,255,0.14); margin: 22px 0; }
.profile-stats { display: flex; gap: 28px; }
.profile-stats strong { display: block; font-size: 1.15rem; font-weight: 800; }
.profile-stats span { display: block; font-size: 0.74rem; color: #AEBBC7; margin-top: 4px; }
.hero-visual-caption {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--muted); font-weight: 600;
}
.hero-visual-caption .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); flex-shrink: 0; }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .hero { padding-top: calc(var(--header-h) + 90px); padding-bottom: 100px; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.36;
}
.section-desc { margin-top: 16px; color: var(--muted); font-size: 1.02rem; font-weight: 500; }
.section-cta { text-align: center; margin-top: 40px; }

/* ---------- Service list (editorial numbered rows, not card-grid) ---------- */
.service-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
@media (min-width: 760px) { .service-list { grid-template-columns: repeat(3, 1fr); } }
.service-item { background: var(--bg); padding: 36px 30px; }
.service-num { display: block; font-size: 1.4rem; font-weight: 900; color: var(--accent-deep); letter-spacing: -0.02em; margin-bottom: 14px; }
.service-icon { width: 44px; height: 44px; border-radius: 8px; background: rgba(76,107,130,0.1); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-item h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-item p { color: var(--muted); font-size: 0.94rem; font-weight: 500; }

/* ---------- Employer grid ---------- */
.employer-grid { display: grid; gap: 48px; }
.employer-grid h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.8vw, 2.4rem); font-weight: 800; color: var(--navy); line-height: 1.36; margin-top: 10px; }
.employer-grid .btn { margin-top: 28px; }
.field-label { font-size: 0.85rem; font-weight: 700; color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
@media (min-width: 900px) { .employer-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 16px;
}
.section-soft .tag-list li { background: var(--bg); }
.tag-list-center { justify-content: center; }

/* ---------- Urgent (navy) ---------- */
.urgent-section { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); padding: 90px 0; }
.urgent-inner { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.urgent-inner h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 4.4vw, 2.5rem); font-weight: 800; color: #fff; line-height: 1.34; margin-bottom: 22px; }
.urgent-list { color: #D3DCE3; font-size: 1.05rem; font-weight: 600; line-height: 1.7; margin-bottom: 18px; }
.urgent-desc { color: #BCC8D2; font-size: 0.98rem; font-weight: 500; max-width: 460px; margin-bottom: 30px; }
.urgent-tags { margin-top: 22px; font-size: 0.85rem; color: #8396A6; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Process ---------- */
.process-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
@media (min-width: 760px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-list li { background: var(--bg); padding: 32px 26px; position: relative; }
.process-num { display: block; font-size: 2.1rem; font-weight: 900; color: #C9C1B2; letter-spacing: -0.02em; line-height: 1; margin-bottom: 14px; }
.process-icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 14px; }
.process-list h3 { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process-list p { color: var(--muted); font-size: 0.91rem; font-weight: 500; }

/* ---------- Candidates (lower visual weight) ---------- */
.section-candidates .section-head h2 { font-size: clamp(1.35rem, 2.9vw, 1.8rem); }

/* ---------- About / strengths ---------- */
.about-grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(4, 1fr); } }
.about-item { border-top: 2px solid var(--navy); padding-top: 18px; }
.about-item h3 { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.about-item p { color: var(--muted); font-size: 0.93rem; font-weight: 500; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 820px; margin: 0 auto; }
.site-form { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 34px 26px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
@media (min-width: 720px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row-full { grid-template-columns: 1fr; }
}
.site-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.label-empty { display: none; }
@media (min-width: 720px) { .label-empty { display: block; } }
.req { color: var(--accent-deep); }
.site-form input, .site-form select, .site-form textarea {
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 13px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.site-form input:focus, .site-form select:focus, .site-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(76,107,130,0.14);
}
.site-form textarea { resize: vertical; min-height: 96px; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin: -8px 0 18px; }
.form-hint.form-hint-error { color: var(--accent-deep); font-weight: 700; }

.form-success {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 56px 24px;
  text-align: center;
}
.form-success svg { color: var(--navy); margin: 0 auto 18px; }
.form-success h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); font-weight: 800; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(180deg, var(--navy) 0%, #081320 100%); padding: 90px 0; }
.final-cta-inner { max-width: 620px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-cta-inner h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.36; }
.final-cta-inner p { color: #AEBBC7; font-size: 1rem; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: #12120F; color: #B9B6AE; padding: 56px 0 24px; }
.footer-inner { display: grid; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand-ko { font-family: var(--font-serif); color: #fff; font-size: 1.2rem; font-weight: 700; }
.footer-brand p { font-size: 0.86rem; color: #93908A; margin-top: 10px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: #B9B6AE; }
.footer-col a:hover { color: #fff; }
.footer-col li { font-size: 0.88rem; color: #B9B6AE; }
.footer-bottom { padding-top: 22px; font-size: 0.78rem; color: #7A776F; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-legal a { color: #93908A; }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { margin: 0 8px; color: #4D4A44; }

/* ---------- Mobile fixed CTA ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--mobile-cta-h);
  display: flex;
  padding: 0 0 env(safe-area-inset-bottom);
  background: var(--navy);
  z-index: 90;
}
.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.96rem;
}
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
