/* 제우스엔지니어링 — 흰 바탕 + 선 중심 스타일 */
:root {
  --accent: #F0833D;        /* CI 주황 (관리자 > 회사 정보에서 변경) */
  --accent-text: #B8500E;   /* 작은 글씨용 진한 주황 */
  --ink: #141414;
  --ink-2: #3D3D3D;
  --muted: #5A5A5A;
  --line: #D4D4D4;
  --line-strong: #141414;
  --btn: #2C2C2B;
  --bg: #ffffff;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-text); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.section { border-bottom: 1px solid var(--line-strong); }
.section-pad { padding-top: 96px; padding-bottom: 96px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--accent-text); }
.eyebrow.with-line { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.eyebrow.with-line::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.h2 { font-size: 38px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.lead { font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 460px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 40px; }
.section-head.lined { border-bottom: 1px solid var(--line-strong); }
.section-head .titles { display: flex; flex-direction: column; gap: 14px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; font-size: 15px; font-weight: 500; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn-primary:hover { color: #fff; background: #000; }
.btn svg { stroke: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--accent-text); }
.text-link svg { stroke: var(--accent-text); }

/* 헤더 */
.site-header { border-bottom: 1px solid var(--line-strong); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { padding: 12px 0; display: flex; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; font-size: 15px; }
.nav a { padding: 10px 0; position: relative; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); }
.nav .tel { font-family: var(--mono); font-size: 14px; border: 1px solid var(--line-strong); padding: 10px 16px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--line); }
  .nav .tel { border: none; border-top: 1px solid var(--line); padding: 14px 0; }
  .brand img { height: 38px; }
}

/* 메인 히어로 */
.hero .wrap { display: flex; flex-wrap: wrap; }
.hero-text { flex: 1 1 520px; min-width: 0; padding: 96px 48px 88px 0; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 500; line-height: 1.22; letter-spacing: -.02em; }
.hero-intro { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-art { flex: 1 1 420px; min-width: 0; border-left: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; padding: 48px 24px; min-height: 420px;
  background-image: linear-gradient(#EDEDED 1px, transparent 1px), linear-gradient(90deg, #EDEDED 1px, transparent 1px); background-size: 40px 40px; }
.hero-art svg { width: 100%; max-width: 360px; height: auto; }
@media (max-width: 960px) {
  .hero-text { padding: 64px 0 56px; }
  .hero-art { border-left: none; border-top: 1px solid var(--line-strong); min-height: 320px; margin: 0 -24px; }
}

/* 선으로 나눈 그리드 */
.line-grid { display: grid; gap: 1px; background: var(--line); }
.line-grid > * { background: #fff; }
.facts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.fact { padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.fact .num { font-family: var(--mono); font-size: 34px; color: var(--accent); }
.fact .txt { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

.biz-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border-bottom: 1px solid var(--line); }
.biz-card { padding: 40px 32px 44px; display: flex; flex-direction: column; gap: 18px; min-height: 240px; color: var(--ink); }
.biz-card:hover { color: var(--ink); background: #FBFBFA; }
.biz-card:hover h3 { color: var(--accent-text); }
.biz-card .top { display: flex; justify-content: space-between; align-items: center; }
.biz-card .no { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.biz-card h3 { font-size: 22px; font-weight: 500; }
.biz-card p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.icon { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 1.3; }
.icon .ac { stroke: var(--accent); }

/* 목록형 행 */
.rows { border-top: 1px solid var(--line-strong); }
.row { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom-color: var(--line-strong); }
.row .k { flex: 0 0 200px; font-size: 18px; font-weight: 500; }
.row .v { flex: 1 1 280px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > .main { flex: 2 1 560px; min-width: 0; }

/* 장비 */
.eq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.eq { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.eq .ph { aspect-ratio: 16 / 10; border: 1px dashed #BDBDBD; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: #6B6B6B; overflow: hidden; }
.eq .ph img { width: 100%; height: 100%; object-fit: cover; }
.eq .ph.has-img { border: 1px solid var(--line); }
.eq .no { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.eq h3 { font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eq p { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.badge { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--accent-text); border: 1px solid var(--accent-text); padding: 2px 6px; }
.eq.cta { justify-content: flex-end; min-height: 240px; }

/* 연혁 / 정보 행 */
.timeline { border-top: 1px solid var(--line-strong); }
.tl { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.tl:last-child { border-bottom-color: var(--line-strong); }
.tl .y { flex: 0 0 64px; font-family: var(--mono); color: var(--muted); }
.tl .y.hl { color: var(--accent); }
.info .tl .y { flex-basis: 72px; font-family: var(--sans); }

/* 페이지 상단 */
.page-head { border-bottom: 1px solid var(--line-strong); }
.page-head .wrap { padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -.02em; }
.page-head p { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 640px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.subnav a { border: 1px solid var(--line); padding: 10px 16px; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.subnav a:hover { border-color: var(--line-strong); }

/* 사업분야 상세 */
.biz-detail { scroll-margin-top: 96px; }
.biz-detail + .biz-detail { border-top: 1px solid var(--line); }
.biz-detail .side h2 { display: flex; align-items: center; gap: 14px; }

/* 소식 */
.news-list { border-top: 1px solid var(--line-strong); }
.news-item { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.news-item:hover h3 { color: var(--accent-text); }
.news-item .d { flex: 0 0 110px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.news-item .c { flex: 0 0 72px; font-size: 13px; color: var(--accent-text); }
.news-item .t { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.news-item h3 { font-size: 18px; font-weight: 500; }
.news-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.empty { padding: 48px 0; color: var(--muted); border-bottom: 1px solid var(--line-strong); }

/* 본문(관리자에서 작성한 글) */
.prose { font-size: 16px; line-height: 1.85; color: var(--ink-2); max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; font-weight: 500; color: var(--ink); margin-top: 1.8em; padding-top: 18px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 20px; font-weight: 500; color: var(--ink); margin-top: 1.5em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border: 1px solid var(--line); margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: #FAFAFA; color: var(--ink); font-weight: 500; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--ink); }
.post-meta { display: flex; gap: 16px; font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* 문의 */
.form { flex: 1 1 460px; min-width: 0; border: 1px solid var(--line-strong); padding: 40px 36px; display: flex; flex-direction: column; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: none; border-bottom: 1px solid #BDBDBD; padding: 10px 0; min-height: 44px; border-radius: 0; }
.field textarea { border: 1px solid #BDBDBD; padding: 14px; line-height: 1.6; resize: vertical; font-size: 15px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.chips { border: none; margin: 0; padding: 0; }
.chips legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 12px; }
.chips .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #BDBDBD; padding: 0 14px; min-height: 44px; font-size: 14px; cursor: pointer; }
.chips input { accent-color: var(--accent-text); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.6; }
.agree input { margin-top: 4px; accent-color: var(--accent-text); }
.hidden { display: none; }
.map { border: 1px solid var(--line); height: 260px; width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1); }
@media (max-width: 600px) { .form { padding: 28px 20px; } .section-pad { padding-top: 64px; padding-bottom: 64px; } }

/* 푸터 */
.site-footer .wrap { padding-top: 48px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer img { height: 38px; width: auto; margin-bottom: 14px; }
.site-footer p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.site-footer .r { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; font-size: 13px; color: var(--muted); }
.site-footer .r a { color: var(--muted); }
