/* ============================================================
   CHALIA — 상품권 발주 시스템 / 판매·매입 / PG
   Restrained, content-first corporate site. Near-monochrome,
   Pretendard typography, the signature logo as identity.
   No mockups, gradients, pills, or decorative cards.
   ============================================================ */

:root {
  --bg:     #FFFFFF;
  --paper:  #F4F3F0;   /* soft warm-grey section */
  --ink:    #181613;   /* near-black */
  --ink-2:  #565049;   /* secondary text */
  --ink-3:  #8C857B;   /* tertiary / labels */
  --line:   rgba(24,22,19,0.13);
  --line-2: rgba(24,22,19,0.07);
  --dark:   #181613;
  --sans:   'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
  --brand:  'Space Grotesk', 'Pretendard Variable', system-ui, sans-serif;
  --wrap:   1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.003em;
  overflow-x: hidden;
  word-break: keep-all;        /* Korean: break at word boundaries, not mid-word */
  overflow-wrap: break-word;   /* but still break overly long tokens (e.g. emails) */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: clamp(22px, 5vw, 48px); padding-right: clamp(22px, 5vw, 48px); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }

/* buttons + links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  font-size: 15.5px; font-weight: 600;
  padding: 15px 30px; border-radius: 4px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #F0EFEC; }
.link-arrow { font-size: 15.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; padding: 14px 4px; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ───────── NAV ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 80px;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav-menu { display: flex; gap: clamp(18px, 2.6vw, 36px); margin-left: auto; }
.nav-menu a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-menu a:hover { color: var(--ink); }
.nav-tel { font-size: 15px; font-weight: 600; padding-left: 22px; margin-left: 6px; border-left: 1px solid var(--line); }
.nav-tel:hover { color: var(--ink-2); }
.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.burger span { width: 18px; height: 1.6px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* ───────── HERO ───────── */
.hero { padding-top: clamp(130px, 17vw, 196px); padding-bottom: clamp(64px, 9vw, 116px); }
.kicker { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; margin-bottom: 26px; }
.hero-title { font-size: clamp(33px, 5.4vw, 62px); line-height: 1.16; letter-spacing: -0.03em; max-width: 17ch; }
.hero-lead { margin-top: 26px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 44ch; }
.hero-cta { margin-top: 38px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-facts {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 36px;
}
.hero-facts li { position: relative; padding-left: 17px; font-size: 14.5px; color: var(--ink-2); }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* ───────── SIGNATURE BAND ───────── */
.sign-band { background: var(--paper); padding: clamp(56px, 8vw, 96px) 0; }
.sign-in { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.signature { width: clamp(180px, 30vw, 280px); height: auto; }
.sign-in p { font-size: clamp(16px, 1.7vw, 20px); color: var(--ink-2); max-width: 40ch; }

/* ───────── SECTIONS ───────── */
.sec { padding: clamp(72px, 10vw, 132px) 0; }
.sec--paper { background: var(--paper); }
.sec-head { margin-bottom: clamp(44px, 6vw, 68px); }
.sec-tag { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.sec-desc, .sec-head .sec-desc { margin-top: 16px; font-size: 16px; color: var(--ink-2); max-width: 52ch; }

/* 사업영역 list */
.list { border-top: 1px solid var(--line); }
.item {
  display: grid; grid-template-columns: 64px 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line-2);
}
.item-no { font-size: 16px; font-weight: 600; color: var(--ink-3); padding-top: 6px; }
.item-body h3 { font-size: clamp(20px, 2.2vw, 27px); margin-bottom: 14px; }
.item-body p { font-size: 16px; color: var(--ink-2); max-width: 62ch; }

/* 취급 상품권 rows */
.rows { border-top: 2px solid var(--ink); }
.rows li {
  display: grid; grid-template-columns: 1.1fr 1.9fr auto;
  gap: clamp(14px, 3vw, 40px); align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line-2);
}
.r-name { font-size: clamp(17px, 1.9vw, 21px); font-weight: 700; }
.r-name em { font-style: normal; font-size: .72em; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.r-desc { font-size: 15.5px; color: var(--ink-2); }
.r-stat { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.row--muted .r-name, .row--muted .r-desc { color: var(--ink-3); }
.row--muted .r-stat { color: var(--ink-3); }

/* 진행 절차 */
.steps { border-top: 1px solid var(--line); }
.steps li {
  display: grid; grid-template-columns: 48px 1fr auto;
  gap: clamp(16px, 3vw, 44px); align-items: center;
  padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line-2);
}
.s-no { font-size: 17px; font-weight: 700; color: var(--ink); width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.steps h3 { font-size: clamp(18px, 2vw, 23px); margin-bottom: 5px; }
.steps p { font-size: 15.5px; color: var(--ink-2); max-width: 56ch; }
.s-when { font-size: 14px; color: var(--ink-3); white-space: nowrap; text-align: right; }
.steps li:last-child .s-no { background: var(--ink); color: #fff; }

/* 회사소개 */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about-text { margin-top: 20px; font-size: 16.5px; color: var(--ink-2); max-width: 44ch; }
.facts { border-top: 2px solid var(--ink); }
.facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.facts dt { font-size: 14px; color: var(--ink-3); }
.facts dd { font-size: 15.5px; font-weight: 600; text-align: right; }

/* ───────── 문의 ───────── */
.contact { background: var(--dark); color: #fff; padding: clamp(72px, 10vw, 130px) 0; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-lead h2 { font-size: clamp(28px, 3.8vw, 46px); }
.contact-lead p { margin-top: 18px; font-size: 16.5px; color: rgba(255,255,255,.66); }
.contact-lead .btn { margin-top: 32px; }
.contact-info { align-self: center; }
.contact-info > div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.contact-info > div:first-child { border-top: 1px solid rgba(255,255,255,.13); }
.contact-info dt { font-size: 14px; color: rgba(255,255,255,.5); }
.contact-info dd { font-size: 15.5px; }
.contact-info dd a:hover { text-decoration: underline; }

/* ───────── FOOTER ───────── */
.foot { padding: clamp(48px, 6vw, 72px) 0; }
.foot-logo { height: 28px; width: auto; margin-bottom: 20px; }
.foot-tag { font-size: 14.5px; color: var(--ink-2); max-width: 52ch; }
.foot-copy { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ───────── MOBILE ───────── */
.mobile-menu { display: none; }
@media (max-width: 860px) {
  .about-grid, .contact-in { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows .r-desc { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 720px) {
  .nav-menu, .nav-tel { display: none; }
  .burger { display: flex; }
  .nav { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
  .mobile-menu {
    position: fixed; inset: 80px 0 auto 0; z-index: 99; background: var(--bg);
    border-bottom: 1px solid var(--line); display: flex; flex-direction: column;
    padding: 8px clamp(22px,5vw,48px) 22px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { padding: 16px 2px; border-bottom: 1px solid var(--line-2); font-size: 18px; font-weight: 500; }
  .mobile-menu .mm-tel { color: var(--ink-3); border-bottom: none; }
  .hero-facts { flex-direction: column; gap: 10px 0; }
  .item { grid-template-columns: 1fr; gap: 8px; }
  .item-no { padding-top: 0; }
  .steps li { grid-template-columns: 40px 1fr; column-gap: 18px; }
  .s-when { grid-column: 2; text-align: left; margin-top: 4px; }
}

@media (max-width: 480px) {
  .logo img { height: 34px; }
  .nav-in { gap: 14px; }
  .hero { padding-top: 116px; }
  .hero-title { font-size: 31px; }
  .hero-cta { gap: 14px; }
  .hero-facts { gap: 8px 0; flex-direction: column; }
  .rows li { grid-template-columns: 1fr; gap: 4px; }
  .rows .r-stat { justify-self: start; }
  .contact-info > div { grid-template-columns: 70px 1fr; gap: 12px; }
}
