/* =========================================================
   야퇴존 웹사이트 공통 스타일 (모든 페이지가 이 파일 하나를 사용)
   색상을 바꾸려면 아래 :root 의 값만 수정하면 됩니다.
   ========================================================= */
:root {
  --dark: #2f2e2e;      /* 상단 메뉴·하단 정보 바탕색 */
  --mint: #44dbbd;      /* 버튼·강조색 */
  --text: #605e5e;      /* 본문 글자색 */
  --title: #2f2e2e;     /* 제목 글자색 */
  --line: #e6e6e6;      /* 구분선 */
  --light: #f7f7f7;     /* 옅은 회색 바탕 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  word-break: keep-all;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--title); font-weight: 400; line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- 상단 메뉴 ---------- */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  position: sticky; top: 0; z-index: 10;
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: block; }
.logo img { height: 52px; width: auto; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { color: #000; text-decoration: none; font-size: 1rem; letter-spacing: .05em; }
nav a:hover, nav a.on { color: #1a9c83; }
nav a.contact { background: var(--mint); color: #fff; padding: 8px 18px; }
nav a.contact:hover { color: #fff; opacity: .85; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block; background: var(--mint); color: #fff;
  padding: 12px 34px; text-decoration: none; font-weight: 400; letter-spacing: .05em;
}
.btn:hover { opacity: .85; }

/* ---------- 섹션 공통 ---------- */
section { padding: 80px 0; }
section.gray { background: var(--light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title p { margin: 0; }
.label { color: var(--mint); font-weight: 500; letter-spacing: .12em; font-size: .9rem; margin-bottom: 6px; display: block; }
.badge { display: inline-block; border: 1px solid var(--mint); color: #1a9c83; font-size: .85rem; padding: 2px 12px; margin-bottom: 14px; font-weight: 400; }

/* 제품 소개: 글(왼쪽) + 사진(오른쪽) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature.reverse .feature-img { order: -1; }
.feature-img img { width: 100%; max-height: 620px; object-fit: contain; margin: 0 auto; }
.feature ul { padding-left: 1.1em; margin: 0 0 28px; }
.feature li { margin: 4px 0; }

/* 제품군·적용분야 (3단) */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.col h3 { letter-spacing: .08em; border-bottom: 2px solid var(--mint); padding-bottom: 10px; }
.col ol, .col ul { padding-left: 1.3em; }
.col a { text-decoration: none; }
.col a:hover { color: var(--mint); }
.icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 60px; text-align: center; }
.icons img { width: 90px; margin: 0 auto 8px; }

/* 동영상 */
.video-box { max-width: 900px; margin: 0 auto; }
.video-box video { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; background: #000; }

/* ---------- 제품 상세 페이지 ---------- */
.page-top { background: var(--light); padding: 50px 0; text-align: center; border-bottom: 1px solid var(--line); }
.page-top h1 { margin: 0; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tabs a { border: 1px solid var(--dark); padding: 6px 18px; text-decoration: none; color: var(--dark); }
.tabs a:hover { background: var(--dark); color: #fff; }

.product { border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.product:last-of-type { border-bottom: 0; }
.product-head { margin-bottom: 30px; }
.product-head p { max-width: 820px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 30px 0 40px; }
.photos figure { margin: 0; background: #fff; border: 1px solid var(--line); }
.photos img { width: 100%; height: 260px; object-fit: contain; background: #fff; }
.photos figcaption { font-size: .88rem; padding: 8px 12px; border-top: 1px solid var(--line); }
.photos a { display: block; }

.spec { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: .95rem; }
.spec th, .spec td { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.spec th { width: 26%; background: var(--light); color: var(--title); font-weight: 500; }
.spec caption { text-align: left; font-weight: 500; color: var(--title); padding-bottom: 8px; font-size: 1.05rem; }
.two-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 30px; }
.points div { border-top: 3px solid var(--mint); background: var(--light); padding: 18px 20px; }
.points b { display: block; color: var(--title); font-weight: 500; margin-bottom: 4px; }

/* ---------- 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; height: 300px; object-fit: cover; object-position: top; }
.gallery video { width: 100%; height: 300px; object-fit: cover; background: #000; }
.gallery figcaption { font-size: .88rem; padding: 8px 12px; }
.gallery-title { margin: 50px 0 20px; }
.gallery-title:first-child { margin-top: 0; }

/* ---------- 하단 회사 정보 ---------- */
footer { background: var(--dark); color: #cfcfcf; padding: 44px 0; font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer b { color: #fff; font-weight: 500; font-size: 1.05rem; }
footer p { margin: 4px 0; }
footer a { text-decoration: none; }
footer .copy { color: #9a9a9a; align-self: flex-end; }

/* ---------- 모바일 ---------- */
@media (max-width: 860px) {
  h1 { font-size: 2rem; } h2 { font-size: 1.6rem; }
  header .wrap { flex-direction: column; height: auto; padding: 10px 16px; gap: 8px; }
  .logo img { height: 40px; }
  nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  nav a { font-size: .95rem; }
  nav a.contact { padding: 4px 12px; }
  section { padding: 50px 0; }
  .wrap { padding: 0 16px; }
  .feature, .cols, .two-spec { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse .feature-img { order: 0; }
  .icons { grid-template-columns: repeat(3, 1fr); }
  .points { grid-template-columns: 1fr; }
  .spec th { width: 36%; }
  .product { scroll-margin-top: 130px; }
}

/* ---------- 문의하기 창 (js/contact.js) ---------- */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; padding: 20px; overflow-y: auto; }
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box { background: #fff; width: 100%; max-width: 620px; margin: 40px auto; padding: 36px 36px 28px; position: relative; border-top: 4px solid var(--mint); }
.modal-box h2 { margin-bottom: 4px; }
.modal-desc { margin: 0 0 20px; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--text); }
.modal label { display: block; margin-bottom: 14px; font-size: .92rem; color: var(--title); font-weight: 400; }
.modal input[type=text], .modal input[type=tel], .modal input[type=email], .modal select, .modal textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #cfcfcf; font: inherit; font-size: 1rem; color: var(--title); background: #fff; border-radius: 0; }
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: 2px solid var(--mint); border-color: var(--mint); }
.modal .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .agree { font-size: .85rem; color: var(--text); font-weight: 300; }
.modal button.btn { border: 0; cursor: pointer; font: inherit; font-size: 1rem; }
.modal button.btn:disabled { opacity: .5; }
.form-result { margin: 12px 0 0; color: #1a9c83; font-weight: 400; }
.hidden { display: none; }
@media (max-width: 860px) {
  .modal { padding: 10px; }
  .modal-box { margin: 10px auto; padding: 30px 18px 20px; }
  .modal .row2 { grid-template-columns: 1fr; gap: 0; }
}
/* 사진 2장씩 크게 */
.photos.two { grid-template-columns: repeat(2, 1fr); }
.photos.two img { height: 440px; }
@media (max-width: 860px) { .photos.two { grid-template-columns: 1fr; } .photos.two img { height: 340px; } }
.gallery:empty { min-height: 260px; }
.photos.two.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.photos.two.narrow img { height: 520px; object-fit: cover; object-position: top; }
@media (max-width: 860px) { .photos.two.narrow img { height: 420px; } }
/* 사진 1장 가운데 */
.photos.single { display: block; max-width: 460px; margin: 30px auto 40px; }
.photos.single img { height: auto; max-height: none; width: 100%; }
.photos.single figcaption { text-align: center; }
