/* ============================================================
   금니시세몰 — 공통 스타일
   라이트(화이트 배경) + 주황(#ff5f00) + 골드 강조
   ============================================================ */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  /* surfaces — white & warm off-white */
  --bg:        #ffffff;
  --bg-2:      #faf8f4;
  --bg-3:      #f2efe8;
  --bg-card:   #ffffff;
  --line:      rgba(28, 20, 8, 0.10);
  --line-2:    rgba(28, 20, 8, 0.16);

  /* brand */
  --orange:    #ff5f00;
  --orange-d:  #db5200;
  --orange-l:  #e35400;
  --gold:      #ff5f00;
  --gold-l:    #e35400;
  --gold-grad: linear-gradient(120deg, #ff7e33 0%, #ff5f00 52%, #db5200 100%);

  /* text */
  --text:      #1d1813;
  --dim:       #5a534a;
  --mute:      #8d867b;

  /* market */
  --up:        #E03A32;   /* 상승 — red */
  --down:      #2D6FD6;   /* 하락 — blue */

  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 20px 50px -28px rgba(40,28,10,.28);
  --shadow-card: 0 1px 0 rgba(0,0,0,.02), 0 14px 34px -26px rgba(40,28,10,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; line-height: 1.25; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- shared utility: eyebrow / section heading ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: .7; }
.sec-title { font-size: clamp(26px, 3.4vw, 38px); }
.sec-title .accent { color: var(--orange-l); }

/* gold underline (echoes the PDF heading style) */
.uline { position: relative; display: inline-block; }
.uline::after {
  content: ""; position: absolute; left: 0; bottom: -10px;
  width: 64px; height: 4px; border-radius: 2px; background: var(--gold-grad);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 50px; width: auto; display: block; }
.foot .f-brand .foot-logo { height: 34px; width: auto; display: block; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold-grad);
  display: grid; place-items: center;
  color: #2A1E08; font-weight: 900; font-size: 19px;
  box-shadow: 0 6px 18px -6px rgba(200,162,76,.6);
}
.brand .name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.brand .name b { color: var(--gold-l); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 10px 14px; border-radius: 9px;
  font-size: 20px; font-weight: 600; color: var(--dim); white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: rgba(28,20,8,.05); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--orange);
}
.nav-links a.consign { color: var(--orange-l); }
.nav-links a.consign:hover { color: var(--orange-d); background: rgba(255,95,0,.10); }
.nav-cta {
  margin-left: 10px; padding: 10px 18px; border-radius: 10px;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 15px;
  border: 0; transition: background .18s, transform .18s;
  display: inline-block; text-decoration: none; cursor: pointer;
}
.nav-cta:hover { background: var(--orange-d); transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line);
    color: var(--text);
  }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 76px; left: 0; right: 0; padding: 12px 16px 18px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 14px 12px; font-size: 17px; }
  .nav-links.open a.active::after { display: none; }
  .nav-links.open { top: 76px; }
}

/* ============================================================
   PLACEHOLDER (줄무늬) — drop-in for real imagery
   ============================================================ */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg,
      rgba(176,138,46,.14) 0 14px, rgba(176,138,46,.04) 14px 28px),
    linear-gradient(160deg, #f6f2ea, #ece6db);
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
}
.ph .ph-tag {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px; letter-spacing: .04em; color: var(--gold-l);
  background: rgba(255,255,255,.78); border: 1px solid var(--line-2);
  padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(4px);
}
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: #f4f0e8; border-top: 1px solid var(--line);
  padding: 46px 0 40px; color: var(--mute); font-size: 14px;
}
.foot-top { display: flex; flex-wrap: wrap; gap: 36px 60px; justify-content: space-between; }
.foot .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot .f-brand .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--gold-grad);
  display: grid; place-items: center; color: #2A1E08; font-weight: 900;
}
.foot .f-brand .name { font-size: 18px; font-weight: 800; color: var(--text); }
.foot .legal { max-width: 560px; line-height: 1.9; }
.foot .legal span { white-space: nowrap; }
.foot .legal i { color: var(--line-2); font-style: normal; padding: 0 8px; }
.foot .legal span svg { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 4px; color: inherit; }
.foot-contact { text-align: right; min-width: 220px; }
.foot-contact .row { margin-bottom: 14px; }
.foot-contact .lab { font-size: 12px; color: var(--mute); letter-spacing: .08em; }
.foot-contact .num { font-size: 22px; font-weight: 800; color: var(--orange); letter-spacing: -0.02em; }
.foot-bottom {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--mute);
}
@media (max-width: 720px){ .foot-contact { text-align: left; } }
@media (max-width: 560px){
  .foot .legal { max-width: 100%; }
  .foot .legal span { display: block; white-space: normal; margin-bottom: 4px; }
  .foot .legal > i { display: none; }
  .foot .legal br { display: none; }
}
.foot-contact .kakao-inline {
  display: inline-flex; align-items: center; gap: 9px;
  background: #FEE500; color: #181600; font-weight: 800; font-size: 14.5px;
  padding: 12px 18px; border: 0; border-radius: 10px; cursor: pointer; transition: transform .16s;
}
.foot-contact .kakao-inline:hover { transform: translateY(-2px); }
.foot-contact .kakao-inline .kb-ico {
  width: 24px; height: 24px; border-radius: 50%; background: #181600; color: #FEE500;
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
}

/* ============================================================
   FLOATING KAKAO BUTTON (스크롤 따라 고정)
   ============================================================ */
.kakao-fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.kakao-fab .top-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--gold-l);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transform: translateY(8px); transition: opacity .25s, transform .25s, background .18s;
}
.kakao-fab .top-btn.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.kakao-fab .top-btn { box-shadow: 0 8px 20px -10px rgba(40,28,10,.4); }
.kakao-fab .top-btn:hover { background: #fff; border-color: var(--orange); color: var(--orange); }
.kakao-btn {
  display: flex; align-items: center; gap: 10px;
  background: #FEE500; color: #181600; font-weight: 800; font-size: 15px;
  padding: 14px 20px; border: 0; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(254,229,0,.45), 0 4px 10px rgba(0,0,0,.35);
  transition: transform .2s;
}
.kakao-btn:hover { transform: translateY(-2px) scale(1.02); }
.kakao-btn .kb-ico {
  width: 26px; height: 26px; border-radius: 50%; background: #181600;
  display: grid; place-items: center; color: #FEE500; font-size: 13px; font-weight: 900;
}
.kakao-btn .kb-label { white-space: nowrap; }
@media (max-width: 560px){ .kakao-btn .kb-label { display: none; } .kakao-btn { padding: 14px; } }

/* 주소: 모바일에서는 '금니시세몰' 줄바꿈 해제 */
@media (max-width: 640px){ br.addr-br { display: none; } }

/* ============================================================
   MODAL
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28,20,10,.42); backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 48px 18px; overflow-y: auto;
}
.modal-scrim.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 560px; background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
  overflow: hidden; opacity: 1;
}
.modal-scrim.open .modal { animation: pop .28s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: translateY(18px) scale(.97); } to { transform: none; } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 26px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 21px; }
.modal-head p { color: var(--mute); font-size: 14px; margin-top: 5px; }
.modal-head .x {
  flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--dim); font-size: 20px; line-height: 1;
}
.modal-head .x:hover { background: var(--bg-3); color: var(--text); }
.modal-body { padding: 24px 26px; }

/* form bits */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13.5px; font-weight: 700; color: var(--dim); margin-bottom: 8px; }
.field > label .req { color: var(--orange-l); }
.input, .select, .textarea {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: 11px; color: var(--text); font-size: 15px; padding: 13px 14px;
  transition: border-color .16s, box-shadow .16s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,95,0,.20);
}
.textarea { resize: vertical; min-height: 92px; }
.input::placeholder, .textarea::placeholder { color: var(--mute); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg-3); color: var(--dim); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: all .15s;
}
.chip[aria-pressed="true"] { background: rgba(255,95,0,.12); border-color: var(--orange); color: var(--orange-d); }
.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 26px;
  text-align: center; color: var(--mute); transition: all .16s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--orange); color: var(--dim); background: rgba(255,95,0,.06); }
.dropzone strong { color: var(--gold-l); }
.thumb-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.thumb .rm { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; border: 0; font-size: 12px; line-height: 1; }
.btn-block {
  width: 100%; padding: 15px; border-radius: 12px; border: 0; margin-top: 6px;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 16px;
  transition: background .18s, transform .16s;
}
.btn-block:hover { background: var(--orange-d); }
.btn-block:active { transform: scale(.99); }
.form-note { font-size: 12.5px; color: var(--mute); margin-top: 12px; text-align: center; }

/* success state */
.success { text-align: center; padding: 14px 0 8px; }
.success .ok {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(255,95,0,.12); color: var(--orange-d);
  display: grid; place-items: center; font-size: 30px;
}
.success h3 { font-size: 22px; margin-bottom: 8px; }
.success p { color: var(--dim); }
.success .ticket {
  margin: 18px auto 0; display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  font-family: ui-monospace, monospace; color: var(--gold-l); letter-spacing: .06em;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2);
  padding: 14px 20px; border-radius: 12px; z-index: 120; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { color: var(--orange-l); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }
