/* ACEWORKS PBV — 공용 스타일 */

:root {
  /* 팔레트 */
  --ink: #122023;
  --ink-soft: #1b2d31;
  --forest: #2e443c;
  --lime: #e6ff83;
  --mint: #e8f8d7;
  --mist: #cfdddf;
  --paper: #f0f0f0;
  --white: #ffffff;

  /* 회사 CI 색상 (ACEWORKS_CI_GUIDE.ai)
     네이비  C100 M80 Y0  K40  →  #002E6E
     블루    C82  M50 Y0  K0   →  #2876BC */
  --brand-navy: #002e6e;
  --brand-blue: #2876bc;

  --text: #122023;
  --text-2: #45585c;
  --muted: #75898d;
  --on-dark: #ffffff;
  --on-dark-muted: #a9bcbf;
  --line: #dfe6e7;
  --line-2: #edf1f1;

  /* 형태 */
  --r-block: 30px;
  --r-card: 22px;
  --r-pill: 100px;
  --gutter: 14px;
  /*
   * 상단 헤더가 차지하는 높이 = 위쪽 여백 + 알약 높이.
   * 히어로를 화면 높이에 맞출 때 빼는 값입니다.
   * --gutter 와 --pill-h 가 구간마다 달라지므로 계산식으로 두어
   * 한쪽만 바뀌어도 자동으로 따라오게 합니다.
   */
  --pill-h: 72px;
  --header-h: calc(var(--gutter) + var(--pill-h));
  /* 본문 최대 폭 — 넓은 화면에서도 화면을 따라 넓어지도록 상한을 크게 둡니다.
     읽기 편한 줄 길이는 문단별 em 단위 max-width 로 따로 관리합니다. */
  --max: 2200px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "D2Coding", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 96px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================================================== 라운드 블록 레이아웃 */

.block-stack { padding: 0 var(--gutter) var(--gutter); display: grid; gap: var(--gutter); }

.blk {
  border-radius: var(--r-block);
  padding: clamp(48px, 7vw, 104px) 0;
  overflow: hidden;
  position: relative;
}
.blk-ink    { background: var(--ink);   color: var(--on-dark); }
.blk-forest { background: var(--forest); color: var(--on-dark); }
.blk-lime   { background: var(--lime); }
.blk-mint   { background: var(--mint); }
.blk-mist   { background: var(--mist); }
.blk-paper  { background: var(--paper); }
.blk-white  { background: var(--white); }
.blk-flush  { padding: 0; }

/* ============================================================ 헤더 (알약) */

.site-header {
  position: sticky; top: var(--gutter); z-index: 60;
  padding: var(--gutter) var(--gutter) 0;
}
.nav-pill {
  /* 폭은 아래 라운드 블록과 동일하게, 내부 내용은 본문(.wrap)과 같은 기준선에 정렬 */
  background: var(--mint);
  border-radius: var(--r-pill);
  padding: 11px 0;
  box-shadow: 0 2px 20px rgba(18, 32, 35, .07);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 96px);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* 공식 로고 — 밝은 배경 기준 (심볼·ACE 네이비 / WORKS 블루) */
.brand .logo { height: 31px; width: auto; flex-shrink: 0; }
.brand .logo .lm, .brand .logo .la { fill: var(--brand-navy); }
.brand .logo .lw { fill: var(--brand-blue); }

/* 어두운 배경에서는 CI 가이드에 따라 전체 흰색 */
.site-footer .brand .logo g, .side .brand .logo g { fill: #fff; }
.site-footer .brand .logo { height: 30px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a {
  font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 11px 18px; border-radius: var(--r-pill); transition: .16s; opacity: .72;
}
.nav a:hover { opacity: 1; background: rgba(18, 32, 35, .07); }
.nav a.active { opacity: 1; background: rgba(18, 32, 35, .08); }
.nav .nav-cta {
  background: var(--ink); color: var(--on-dark); opacity: 1; margin-left: 8px; padding: 12px 26px;
}
.nav .nav-cta:hover { background: #23393d; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; cursor: pointer; font-size: 16px; line-height: 1;
}

/* ================================================================ 히어로 */

.hero {
  border-radius: var(--r-block);
  background: var(--ink);
  color: var(--on-dark);
  position: relative; overflow: hidden;
  /*
   * 화면을 가득 채웁니다. 헤더와 아래쪽 여백만큼만 뺍니다.
   * svh 는 모바일에서 주소창이 펼쳐진 상태의 높이라, 100vh 처럼
   * 히어로 아랫부분이 주소창에 잘리지 않습니다. 지원하지 않는
   * 브라우저를 위해 vh 를 먼저 두어 대비합니다.
   */
  min-height: max(520px, calc(100vh  - var(--header-h) - var(--gutter)));
  min-height: max(520px, calc(100svh - var(--header-h) - var(--gutter)));
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img, .hero-bg video {
  width: 100%; height: 100%; object-fit: cover; opacity: .62;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 32, 35, .95) 0%, rgba(18, 32, 35, .78) 42%, rgba(18, 32, 35, .42) 100%),
    linear-gradient(to top, rgba(18, 32, 35, .85) 0%, transparent 40%);
}
/* 거대 워터마크 타이포 */
.hero-mark {
  position: absolute; right: -2%; top: 6%; bottom: 0;
  display: flex; flex-direction: column; justify-content: center;
  font-weight: 900; line-height: .82; letter-spacing: -0.04em;
  font-size: clamp(90px, 17vw, 250px);
  color: rgba(255, 255, 255, .07);
  text-align: right; pointer-events: none; user-select: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: clamp(56px, 8vw, 96px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--lime); }

.hero h1 {
  font-size: clamp(34px, 5.6vw, 62px); line-height: 1.22; margin: 0 0 22px;
  font-weight: 800; letter-spacing: -0.045em; max-width: 13em;
}
.hero p.lead {
  font-size: clamp(15px, 1.5vw, 18px); color: var(--on-dark-muted);
  max-width: 36em; margin: 0 0 34px; line-height: 1.8; font-weight: 500;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================================================================= 버튼 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  border: 1px solid transparent; cursor: pointer; transition: .16s; white-space: nowrap;
}
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #dcfa63; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #23393d; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(18, 32, 35, .25); }
.btn-outline:hover { background: rgba(18, 32, 35, .06); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #eef2f2; }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ================================================================= 섹션 */

.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 46em; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.blk-ink .kicker, .blk-forest .kicker { color: var(--lime); }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 42px); margin: 0 0 14px;
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.25;
}
.section-head p { margin: 0; font-size: clamp(15px, 1.4vw, 17px); color: var(--text-2); line-height: 1.75; }
.blk-ink .section-head p, .blk-forest .section-head p { color: var(--on-dark-muted); }

/* 대형 디스플레이 텍스트 (Discover ACEWORKS 형태) */
.display {
  text-align: center; font-weight: 300; letter-spacing: -0.03em;
  font-size: clamp(34px, 6vw, 76px); line-height: 1.14; margin: 0;
}
.display strong { display: block; font-weight: 800; }

/* ========================================================= 특징 컬러 카드 */

.feature-cards { display: grid; gap: var(--gutter); }
.fcard {
  border-radius: var(--r-block);
  padding: clamp(32px, 4vw, 56px) clamp(26px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(220px, 1fr) 1.6fr; gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.fcard .fmark {
  display: flex; gap: 4px; margin-bottom: 18px;
}
.fcard .fmark i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.fcard .fmark i:nth-child(3) { transform: translateY(-6px); }
.fcard h3 {
  margin: 0; font-size: clamp(20px, 2.3vw, 28px); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.3;
}
.fcard p {
  margin: 0; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.75; font-weight: 500;
}
.fcard.blk-ink p, .fcard.blk-forest p { color: var(--on-dark-muted); }
.fcard:not(.blk-ink):not(.blk-forest) p { color: var(--text-2); }

/* ============================================================ 카테고리 */

.cat-grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(198px, 1fr)); }
.cat-card {
  background: #fff; border-radius: var(--r-card); padding: 24px 20px 20px;
  display: flex; flex-direction: column; gap: 7px; transition: .18s;
  border: 1px solid transparent;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(18, 32, 35, .1); }
.cat-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink);
  display: grid; place-items: center; margin-bottom: 10px;
}
.cat-en { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cat-card h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.cat-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.65; }
.cat-types {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-wrap: wrap; gap: 5px;
}
.cat-types li {
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  background: var(--paper); border-radius: var(--r-pill); padding: 4px 10px;
}
.cat-card .count {
  margin-top: auto; padding-top: 16px; font-size: 12.5px; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: 5px;
}
.cat-card:hover .count span { transform: translateX(3px); }
.cat-card .count span { transition: .15s; }

/* ============================================================= 제품 카드 */

.prod-grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }
.prod-card {
  background: #fff; border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column; transition: .18s;
  border: 1px solid var(--line-2);
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(18, 32, 35, .12); border-color: transparent; }
.prod-thumb {
  aspect-ratio: 4 / 3; background: var(--mist); position: relative;
  display: grid; place-items: center; overflow: hidden;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.prod-thumb.is-empty { background: var(--paper); color: #9caeb1; }
.ph { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; }
.ph svg { opacity: .45; }
.prod-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.prod-cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prod-card h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.prod-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.65; }
.prod-more {
  margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.prod-card:hover .prod-more span { transform: translateX(4px); }
.prod-more span { transition: .15s; display: inline-block; }

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(18, 32, 35, .85); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill);
}
.badge-featured { left: auto; right: 14px; background: var(--lime); color: var(--ink); }

/* ========================================================= 필터 / 검색 */

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 320px; }
.search-box svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input {
  width: 100%; padding: 13px 18px 13px 46px; border: 1px solid var(--line);
  border-radius: var(--r-pill); font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.search-box input:focus { outline: none; border-color: var(--ink); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.result-count { font-size: 13.5px; color: var(--muted); margin-left: auto; font-weight: 600; }

/* ============================================================= 제품 상세 */

.crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.crumb a:hover { color: var(--ink); }
.crumb i { font-style: normal; opacity: .5; }

/* 아주 넓은 화면에서 상세 영역이 과도하게 늘어나지 않도록 제한합니다. */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; max-width: 1500px; }
.detail-media {
  background: var(--mist); border-radius: var(--r-block); aspect-ratio: 4 / 3;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.detail-media.is-empty { background: var(--paper); color: #9caeb1; }
.detail-media img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.detail-media .ph { font-size: 14px; }

.detail-tags { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.detail-info .subtype {
  font-size: 12px; font-weight: 700; color: var(--text-2);
  background: var(--paper); padding: 5px 12px; border-radius: var(--r-pill);
}
.detail-info .code {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  background: var(--lime); color: var(--ink); padding: 5px 12px;
  border-radius: var(--r-pill); display: inline-block; font-weight: 700;
}
.detail-info h1 {
  font-size: clamp(30px, 4.4vw, 50px); margin: 14px 0 14px;
  font-weight: 800; letter-spacing: -0.045em; line-height: 1.18;
}
.detail-info .summary { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); margin: 0 0 28px; line-height: 1.75; }
.detail-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.block { margin-top: clamp(40px, 5vw, 64px); }
.block h2 {
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; margin: 0 0 20px;
  letter-spacing: -0.035em;
}
.block > p { margin: 0; color: var(--text-2); line-height: 1.85; font-size: clamp(15px, 1.4vw, 17px); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: clamp(15px, 1.4vw, 16.5px); color: var(--text-2); line-height: 1.65;
}
.feature-list li::before {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 9px;
  border-radius: 50%; background: var(--ink);
}

.spec-table { width: 100%; max-width: 900px; border-collapse: collapse; font-size: 14.5px; }
.spec-table tr { border-bottom: 1px solid rgba(18, 32, 35, .12); }
.spec-table tr:first-child { border-top: 1px solid rgba(18, 32, 35, .12); }
.spec-table th {
  text-align: left; padding: 15px 16px 15px 0; width: 36%;
  color: var(--muted); font-weight: 600; vertical-align: top;
}
.spec-table td { padding: 15px 0; color: var(--text); font-weight: 500; }

.note-box {
  background: var(--mint); border-radius: var(--r-card); padding: 22px 26px;
  font-size: 15px; color: var(--text-2); line-height: 1.8;
}

/* ====================================================== 회사 소개 — 워크샵 */

/*
 * 워크샵 실사를 섹션 전체 배경으로 깝니다.
 *
 * 글이 놓이는 왼쪽은 마스크로 완전히 비워 민트색 배경만 보이게 하고,
 * 글이 없는 오른쪽으로 갈수록 사진이 드러납니다.
 */
/* 좁은 화면에서 쓰는 사진 띠의 높이 */
#company { --photo-h: clamp(215px, 46vw, 300px); }

#company.has-photo::before {
  content: ''; position: absolute; top: 0; bottom: 0; right: 0;
  z-index: 0; pointer-events: none;
  /*
   * 사진(1400x933)을 확대하지 않도록 띠 폭을 원본 폭에 맞춥니다.
   * 그 왼쪽은 배경색 그대로 둡니다.
   */
  width: min(100%, 1400px);
  background:
    /* 글이 놓이는 왼쪽을 배경색으로 덮어 본문 가독성을 지킵니다. */
    linear-gradient(to right,
      rgba(232, 248, 215, .97) 0%, rgba(232, 248, 215, .92) 34%,
      rgba(232, 248, 215, .55) 47%, rgba(232, 248, 215, 0) 64%),
    /* CSS 파일 기준 상대경로라 하위 경로 배포에서도 그대로 동작합니다. */
    url(../assets/workshop-yongin-atc.webp) no-repeat center right / cover;
  /* 왼쪽 끝은 완전히 투명 → 오른쪽으로 갈수록 사진이 드러납니다. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, transparent 12%, rgba(0,0,0,.5) 40%, rgba(0,0,0,.92) 64%, #000 78%);
          mask-image:
    linear-gradient(to right, transparent 0%, transparent 12%, rgba(0,0,0,.5) 40%, rgba(0,0,0,.92) 64%, #000 78%);
}

#company .wrap { position: relative; z-index: 1; }

/* 글은 사진이 비어 있는 왼쪽 절반에만 놓습니다. */
.company-copy { max-width: min(560px, 52%); }

/*
 * 사진에 대한 짧은 설명 — 사진이 드러나는 오른쪽 아래에 둡니다.
 *
 * 이 글자는 사진(아스팔트, 평균 rgb(172,168,164)) 위에 얹힙니다.
 * 본문용 회색(--text-2)을 쓰면 대비가 3.19:1 로 WCAG AA(4.5:1)에
 * 못 미치므로 진한 색을 쓰고, 밝은 부분에 걸릴 때를 대비해
 * 흰 그림자를 옅게 깔아 글자 윤곽을 살립니다.
 */
.photo-note {
  position: relative; z-index: 1;
  margin: clamp(28px, 4vw, 48px) 0 0 auto;
  max-width: 330px; text-align: right;
  font-size: 13.5px; line-height: 1.65; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(255, 255, 255, .65);
}
.photo-note strong {
  display: block; margin-bottom: 4px;
  font-size: 15px; font-weight: 800; letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  /*
   * 좁은 화면에서는 글이 가로 전체를 쓰므로 좌우로 나눌 수 없습니다.
   * 배경으로 옅게 깔면 거의 보이지 않으므로, 섹션 아래쪽에
   * 사진만을 위한 띠를 만들어 원래 밝기 그대로 보여줍니다.
   *   [ 제목 · 본문 · 설명 ]  ← 배경색
   *   [      사진 띠      ]  ← 사진 (위쪽만 배경색으로 페이드)
   */
  #company { padding-bottom: calc(var(--photo-h) + 30px); }

  #company.has-photo::before {
    top: auto; bottom: 0; left: 0;
    width: 100%; height: var(--photo-h);
    /* 사람이 있는 왼쪽 정비고를 피해 간판이 잘 보이는 쪽을 담습니다. */
    background: url(../assets/workshop-yongin-atc.webp) no-repeat 62% 42% / cover;
    /* 위쪽 경계만 배경색으로 녹여 띠가 갑자기 시작되지 않게 합니다. */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  }
  .company-copy { max-width: none; }
  .photo-note { margin-left: 0; max-width: none; text-align: left; }
}

/* =================================================================== 폼 */

.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); letter-spacing: -0.01em; }
.field label .req { color: #d64545; margin-left: 3px; }
.field input, .field select, .field textarea {
  padding: 13px 18px; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.7; border-radius: var(--r-card); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form-msg { font-size: 14px; padding: 14px 20px; border-radius: var(--r-card); margin-top: 8px; font-weight: 600; }
.form-msg.ok { background: var(--lime); color: #16321a; }
.form-msg.err { background: #ffe3e3; color: #a12a2a; }

/* ================================================================ 푸터 */

.site-footer { background: var(--ink); color: var(--on-dark-muted); border-radius: var(--r-block); padding: clamp(48px, 6vw, 76px) 0 32px; }
.footer-top {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.site-footer .brand { color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.8; margin: 16px 0 0; max-width: 28em; }
.footer-col h4 {
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; margin: 0 0 16px;
}
.footer-col a, .footer-col p { display: block; font-size: 14px; margin: 0 0 10px; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  padding-top: 26px; font-size: 12.5px; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--lime); }

/* ============================================================= CTA 배너 */

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h3 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; }
.cta-band p { margin: 0; font-size: clamp(15px, 1.4vw, 17px); }
.blk-ink .cta-band p, .blk-forest .cta-band p { color: var(--on-dark-muted); }

/* =============================================================== 기타 */

.empty-state {
  text-align: center; padding: clamp(48px, 7vw, 84px) 24px; color: var(--text-2);
  border-radius: var(--r-block); background: var(--paper);
}
.empty-state strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 8px; font-weight: 800; }
.skeleton {
  background: linear-gradient(90deg, #eef1f1 25%, #e2e8e8 37%, #eef1f1 63%);
  background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--r-card); height: 320px;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ============================================================== 반응형 */

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .fcard { grid-template-columns: 1fr; gap: 16px; }
}
/*
 * 헤더는 920px 이하에서 햄버거 메뉴로 접습니다.
 * 가로 메뉴는 905px 부근까지 두 줄로 줄바꿈해 헤더가 95px 까지 늘어납니다.
 * 접힘 기준을 그 위에 두면 헤더 높이가 60px / 72px 두 가지로 정리되고,
 * 히어로 높이 계산(--header-h)도 정확해집니다.
 */
@media (max-width: 920px) {
  :root { --pill-h: 60px; }
  .nav-pill { padding: 8px 0; }
  .nav-inner { padding: 0 18px; }
  .nav {
    position: fixed; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 8px);
    background: var(--mint); border-radius: var(--r-card);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 14px;
    display: none; box-shadow: 0 20px 40px rgba(18, 32, 35, .14);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; font-size: 15.5px; border-radius: var(--r-card); }
  .nav .nav-cta { margin: 6px 0 0; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; }
}

@media (max-width: 760px) {
  :root { --gutter: 10px; --r-block: 24px; }
  .hero-mark { font-size: clamp(72px, 26vw, 150px); opacity: .8; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .result-count { margin-left: 0; width: 100%; }
}

/* ====================================================== 차량 비주얼 섹션 */

.discover-visual { margin-top: clamp(32px, 5vw, 56px); }
.discover-visual img {
  width: 100%; max-width: 760px; margin: 0 auto; height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45));
}

.showcase { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gutter); align-items: stretch; }
.shot {
  background: var(--mist); border-radius: var(--r-block);
  display: grid; place-items: center; overflow: hidden; position: relative;
  padding: clamp(18px, 3vw, 34px);
}
.shot img { width: 100%; height: 100%; object-fit: contain; }
.shot-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gutter); }
.shot-label {
  position: absolute; left: 20px; bottom: 18px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: rgba(255, 255, 255, .82);
  padding: 6px 14px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
.shot-main { aspect-ratio: 3 / 2; }

.spot-list {
  display: grid; gap: var(--gutter); margin: clamp(28px, 3vw, 40px) 0 0; padding: 0;
  list-style: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.spot-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper); border-radius: var(--r-card); padding: 22px 24px;
}
.spot-list li b {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-size: 12.5px; font-weight: 800;
  display: grid; place-items: center; margin-top: 2px;
}
.spot-list li > span { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.spot-list strong { font-size: 16.5px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.spot-list em {
  font-style: normal; font-size: 13.5px; line-height: 1.7; color: var(--text-2);
}

/* 차량 위치 → 제품 카테고리 연결 칩 */
.spot-cat {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  margin-top: 3px; margin-right: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink); transition: .15s;
}
.spot-cat i { font-style: normal; transition: .15s; }
.spot-cat:hover { border-color: var(--ink); }
.spot-cat:hover i { transform: translateX(3px); }

/* 페이지 헤더에 들어가는 차량 컷 */
.head-visual { position: relative; }
/* 차량 이미지가 있는 헤더에서는 본문이 이미지 위로 넘어가지 않도록 폭을 제한합니다. */
.head-visual h1, .head-visual p { max-width: min(38em, 58%); }
.head-visual .head-car {
  position: absolute; right: -4%; bottom: -14%; width: min(52%, 620px);
  opacity: .9; pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5));
}

@media (max-width: 900px) {
  .head-visual h1, .head-visual p { max-width: 38em; }
  .showcase { grid-template-columns: 1fr; }
  .shot-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .shot-side .shot { aspect-ratio: 4 / 3; }
  .head-visual .head-car { display: none; }
}
@media (max-width: 560px) {
  .shot-side { grid-template-columns: 1fr; }
}


/* ======================================================== 패키지 제안 */

.pkg-grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pkg-card {
  border-radius: var(--r-block); padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 10px; transition: .18s;
}
.pkg-card:hover { transform: translateY(-3px); }
.pkg-no {
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; opacity: .55; text-transform: uppercase;
}
.pkg-card h3 { margin: 2px 0 0; font-size: clamp(19px, 2vw, 23px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.pkg-for { font-size: 13.5px; font-weight: 700; opacity: .75; margin: 0; }
.pkg-card > p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.7; opacity: .85; }
.pkg-items { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pkg-items li {
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(18, 32, 35, .08);
}
.blk-ink .pkg-items li, .blk-forest .pkg-items li,
.pkg-card.blk-ink .pkg-items li, .pkg-card.blk-forest .pkg-items li {
  background: rgba(255, 255, 255, .14);
}
.pkg-card .btn { margin-top: auto; align-self: flex-start; }
.pkg-card > .pkg-foot { margin-top: auto; padding-top: 20px; }

@media (max-width: 760px) {
}

/* ====================================================== 납품사례 카드 */

.case-grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.case-card {
  background: #fff; border-radius: var(--r-block); overflow: hidden;
  display: flex; flex-direction: column; transition: .18s; border: 1px solid var(--line-2);
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(18, 32, 35, .12); border-color: transparent; }
.case-thumb {
  aspect-ratio: 16 / 10; background: var(--mist); position: relative;
  display: grid; place-items: center; overflow: hidden;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-thumb.is-empty { background: var(--paper); color: #9caeb1; }
.case-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(18, 32, 35, .85); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill);
}
.case-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-client { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case-card h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.case-card p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.65; }
.case-meta {
  margin-top: auto; padding-top: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600;
}

/* ================================================ 포함 품목 / 적용 제품 칩 */

.item-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.item-chip {
  display: inline-flex; flex-direction: column; gap: 1px;
  background: var(--paper); border-radius: var(--r-card); padding: 10px 16px;
  font-size: 14px; font-weight: 700; color: var(--ink); border: 1px solid transparent;
  transition: .15s;
}
.item-chip span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.item-chip.is-link:hover { background: #fff; border-color: var(--ink); }

/* 솔루션 카드가 링크일 때 */
a.pkg-card { text-decoration: none; }
a.pkg-card .prod-more { color: inherit; }


/* ================================================= 시스템 구성도 (반응형) */

.arch {
  display: grid;
  grid-template-columns: 1fr 1.75fr 1fr;
  gap: var(--gutter);
  align-items: stretch;
}

/* ── 가운데 흐름 ── */

.arch-flow { display: flex; flex-direction: column; }

.arch-node {
  background: #fff; border-radius: var(--r-block);
  padding: clamp(20px, 2.4vw, 26px) clamp(20px, 2.4vw, 28px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px;
  align-items: center; transition: .16s;
}
a.arch-node:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(18, 32, 35, .1); }

.arch-perception { background: var(--mist); }
.arch-control    { background: var(--ink); color: var(--on-dark); }
.arch-actuation  { background: var(--lime); }
.arch-vehicle    { background: #fff; border: 2px solid var(--ink); }

.arch-icon {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.arch-control .arch-icon { background: var(--lime); }

.arch-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.arch-text strong { font-size: clamp(16.5px, 1.8vw, 19px); font-weight: 800; letter-spacing: -0.03em; }
.arch-text em {
  font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase;
}
.arch-control .arch-text em { color: #8fa3a7; }
.arch-text small { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.arch-control .arch-text small { color: var(--on-dark-muted); }

.arch-count {
  font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--ink);
}
.arch-control .arch-count, .arch-power .arch-count { color: var(--lime); }

/* ── 연결 화살표 ── */

.arch-arrow { position: relative; height: 46px; flex-shrink: 0; }
.arch-arrow::before {
  content: ""; position: absolute; top: 0; bottom: 11px; left: 50%;
  width: 2px; background: #b0c0c2; transform: translateX(-50%);
}
.arch-arrow::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 9px solid #b0c0c2;
}
.arch-arrow span {
  position: absolute; top: 50%; left: 50%; margin: -9px 0 0 14px;
  font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap;
}

/* ── 좌우 지원 블록 ── */

.arch-side {
  border-radius: var(--r-block);
  padding: clamp(22px, 2.6vw, 28px);
  display: flex; flex-direction: column; gap: 14px; transition: .16s; position: relative;
}
a.arch-side:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(18, 32, 35, .1); }
.arch-install { background: #fff; }   /* 섹션 배경(paper)과 구분되도록 흰색 */
.arch-power   { background: var(--forest); color: var(--on-dark); }

.arch-side-head { display: flex; align-items: center; gap: 12px; }
.arch-side-head .arch-icon { width: 40px; height: 40px; }
.arch-power .arch-side-head .arch-icon { background: rgba(255, 255, 255, .12); color: var(--lime); }
.arch-side-head strong { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -0.03em; }
.arch-side-head em {
  font-style: normal; display: block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; color: var(--muted); text-transform: uppercase;
}
.arch-power .arch-side-head em { color: #8fa3a7; }
.arch-side p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-2); }
.arch-power p { color: #c9d6d3; }
.arch-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.arch-side li { font-size: 12.5px; color: var(--muted); padding-left: 12px; position: relative; }
.arch-side li::before { content: "·"; position: absolute; left: 0; }
.arch-power li { color: var(--on-dark-muted); }
.arch-side .arch-count { margin-top: auto; padding-top: 10px; }

/* 넓은 화면에서만 '전 과정을 지원한다'는 점선 연결 */
@media (min-width: 901px) {
  .arch-side::after {
    content: ""; position: absolute; top: 50%; width: var(--gutter); height: 0;
    border-top: 2px dashed #c3cfd0;
  }
  .arch-install::after { right: calc(var(--gutter) * -1); }
  .arch-power::after { left: calc(var(--gutter) * -1); }
}

/* ── 좁은 화면 ── */

@media (max-width: 900px) {
  .arch { grid-template-columns: 1fr 1fr; }
  .arch-flow { grid-column: 1 / -1; }        /* 흐름을 먼저, 전체 폭으로 */
  .arch-side { order: 1; }
}

@media (max-width: 620px) {
  .arch { grid-template-columns: 1fr; }
  .arch-node { grid-template-columns: auto 1fr; gap: 14px; }
  .arch-node .arch-count { grid-column: 2; margin-top: 4px; }
  .arch-arrow { height: 40px; }
  .arch-arrow span { font-size: 11.5px; margin-left: 12px; }
}
