/* ==========================================================
   전일기계 (Chun-il Machinery / CIM) — cim-envelope.com
   공통 스타일시트 (v8)
   팔레트: 차콜 #1E2227 / 스틸 #5A6069 / 배경 #F3F4F6
           CIM 레드 #C4271D / 명판 노랑 #F6C90E
   ========================================================== */

:root {
  --ink: #1e2227;
  --ink-soft: #2b3037;
  --steel: #5a6069;
  --steel-light: #aab0b8;
  --bg: #f3f4f6;
  --panel: #ffffff;
  --line: #d9dce1;
  --red: #c4271d;
  --red-deep: #a81f16;
  --yellow: #f6c90e;
  --font-body: "Pretendard Variable", Pretendard, "IBM Plex Sans KR", system-ui, sans-serif;
  --font-display: "IBM Plex Sans KR", Pretendard, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- 헤더 ---------- */
.site-head {
  background: var(--ink);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--yellow);
}
.site-head .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-name { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-en { color: var(--steel-light); font-size: 12px; font-family: var(--font-mono); letter-spacing: 1px; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: #c9cdd3; font-weight: 500; font-size: 15px;
  padding: 20px 14px; text-decoration: none;
}
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }

/* ---------- 브랜드 로고 이미지 ---------- */
.brand-logo { height: 38px; width: auto; border-radius: 4px; display: block; }
.foot-brand .brand-logo { height: 30px; }

/* ---------- 명판 칩 (시그니처) ---------- */
.plate {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  background: var(--yellow); color: var(--red-deep);
  border: 1.5px solid var(--ink);
  padding: 2px 9px; border-radius: 3px; letter-spacing: 0.5px;
  box-shadow: 2px 2px 0 rgba(30, 34, 39, 0.18);
}
.plate--lg { font-size: 16px; padding: 4px 12px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 5px; text-decoration: none;
  border: 1.5px solid transparent; transition: background 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- 히어로 ---------- */
.hero { padding: 72px 0 64px; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px;
  color: var(--steel); text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.16; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { color: var(--steel); font-size: 17px; line-height: 1.75; max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 28px; display: flex; align-items: center; justify-content: center;
}

/* ---------- 섹션 공통 ---------- */
.section { padding: 68px 0; }
.section-head { margin-bottom: 36px; }
.kicker {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--red); letter-spacing: 2.5px; text-transform: uppercase;
  display: block; margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 30px; letter-spacing: -0.015em;
}
.section-head p { color: var(--steel); margin-top: 8px; }

/* ---------- 제품 카드 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30, 34, 39, 0.10); }
.card-photo {
  height: 190px; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: #fff; border-bottom: 1px solid var(--line);
}
.card-photo img { max-height: 100%; width: auto; object-fit: contain; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 17.5px;
  margin: 10px 0 6px; letter-spacing: -0.01em;
}
.card-body p { color: var(--steel); font-size: 14.5px; line-height: 1.65; }
.more-row { text-align: center; margin-top: 36px; }

/* ---------- 카테고리 제목 (제품 페이지) ---------- */
.cat-head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 52px 0 22px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.cat-head:first-of-type { margin-top: 8px; }
.cat-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.cat-head .count { font-family: var(--font-mono); color: var(--steel); font-size: 14px; }

/* ---------- 페이지 타이틀 ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.02em;
}
.page-head .lead { color: var(--steel); margin-top: 10px; max-width: 62ch; }
.breadcrumb { font-size: 14px; color: var(--steel); margin-bottom: 14px; }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--red); }

/* ---------- 제품 상세 ---------- */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; padding: 28px 0 68px; }
.photo-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 30px; display: flex; align-items: center; justify-content: center;
}
.detail-info h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em;
  margin: 12px 0 4px;
}
.detail-info .en-name { font-family: var(--font-mono); color: var(--steel); font-size: 13.5px; margin-bottom: 18px; }
.detail-info .desc { color: var(--ink-soft); line-height: 1.75; margin-bottom: 26px; }

.subhead {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  margin: 28px 0 10px; letter-spacing: -0.01em;
}
.feature-list { margin: 0 0 8px 18px; padding: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.feature-list li { margin-bottom: 5px; }

.overview { border-top: 2px solid var(--ink); margin-bottom: 10px; }
.overview .row {
  display: grid; grid-template-columns: 130px 1fr; gap: 14px;
  padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.overview dt { color: var(--steel); font-weight: 600; }
.overview dd { color: var(--ink); }
.spec-note { font-size: 13.5px; color: var(--steel); margin-bottom: 26px; }

.cta-box {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 6px; padding: 22px 24px;
}
.cta-box strong { display: block; font-size: 16px; margin-bottom: 6px; }
.cta-box p { color: var(--steel); font-size: 14.5px; margin-bottom: 14px; }
.cta-box .btn { margin-right: 8px; margin-bottom: 6px; }
.back-row { padding-bottom: 64px; }

/* ---------- 회사소개 ---------- */
.about-body { max-width: 760px; }
.about-body p { color: var(--ink-soft); line-height: 1.85; margin-bottom: 18px; font-size: 16.5px; }

/* ---------- 수출현황 지도 ---------- */
.map-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px;
}
.map-panel img { width: 100%; height: auto; }

/* ---------- 기타 기종 목록 ---------- */
.misc-list { border-top: 2px solid var(--ink); margin-top: 4px; }
.misc-list .row {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 13px 4px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.misc-list .code { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--red); }
.misc-list .name { color: var(--ink-soft); font-size: 15.5px; }
.misc-note { color: var(--steel); font-size: 14px; margin-top: 14px; }

/* ---------- 연락처 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px;
}
.contact-card h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 16px; }
.contact-list { list-style: none; }
.contact-list li {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { font-family: var(--font-mono); font-size: 13px; color: var(--steel); padding-top: 2px; }
.map-links { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.map-links a {
  font-size: 14px; font-weight: 600; border: 1.5px solid var(--ink); color: var(--ink);
  padding: 8px 14px; border-radius: 5px;
}
.map-links a:hover { background: var(--ink); color: #fff; text-decoration: none; }
.todo-note { color: var(--steel); font-size: 13px; }

/* ---------- 푸터 ---------- */
.site-foot { background: var(--ink); color: var(--steel-light); margin-top: 40px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 0.7fr; gap: 32px; padding: 44px 0 34px;
}
.site-foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; font-family: var(--font-display); }
.site-foot p, .site-foot li { font-size: 14px; line-height: 1.8; }
.site-foot ul { list-style: none; }
.site-foot a { color: #d5d9de; }
.site-foot a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid #333941; padding: 16px 0; font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 48px 0 44px; }
  .hero .container, .detail { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .site-nav a { padding: 12px 10px; }
  .misc-list .row { grid-template-columns: 100px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
