/* =========================================================
   키친인더랩 홈페이지 공통 스타일
   - CSS(Cascading Style Sheets): HTML 요소의 색·크기·배치를 정하는 규칙 파일
   - 색상·폰트는 맨 위 ":root" 변수에 모아 두었습니다.
     브랜드 색을 바꾸려면 --accent 값 하나만 바꾸면 전체에 반영됩니다.
   ========================================================= */

:root {
  --ink: #121613;        /* 기본 글자색·선 색 (거의 검정) */
  --ground: #F3F4F1;     /* 페이지 바탕색 (밝은 회백색) */
  --paper: #FFFFFF;      /* 카드·양식 바탕 */
  --muted: #3A423D;      /* 본문 보조 글자색 */
  --subtle: #5B645E;     /* 라벨 등 작은 글자색 */
  --line: #8A938D;       /* 입력칸 테두리 */
  --hair: #D5D9D4;       /* 가는 구분선 */
  --accent: #C2410C;     /* 강조색 (버튼) */
  --accent-text: #B23A0A;/* 강조색 글자 (밝은 바탕에서 대비 확보용) */
  --accent-on-dark: #F08A5D; /* 어두운 바탕 위 강조색 */
  --sans: 'IBM Plex Sans KR', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

/* ---------- 기본 설정 ---------- */
* { box-sizing: border-box; }               /* 테두리·여백을 크기 계산에 포함 */
html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* 메뉴 클릭 시 부드럽게 이동, 고정 헤더만큼 띄움 */
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ground);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent-text); }
a:hover { color: #7A2706; }
input, select, textarea, button { font: inherit; }
img { max-width: 100%; }

/* 화면에는 숨기지만 스크린리더(시각장애인용 음성 프로그램)는 읽도록 하는 클래스 */
.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;
}

/* 가운데 정렬 컨테이너: 넓은 화면에서도 콘텐츠 폭을 1240px로 제한 */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* 섹션 공통 */
.section { border-bottom: 1px solid var(--ink); }
.section > .wrap { padding-top: 96px; padding-bottom: 96px; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--accent-text); }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -.015em; }
.lead { margin: 0; color: var(--muted); }

/* ---------- 헤더(상단 메뉴) ---------- */
.header { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: 1px solid var(--ink); }
.header .wrap { min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--mono); font-weight: 600; letter-spacing: .06em; font-size: 15px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; opacity: .9; }
.btn-accent { background: var(--accent); color: #fff; min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-accent:hover { color: #fff; opacity: .92; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-line:hover { color: var(--ink); background: var(--paper); }

/* ---------- 히어로(첫 화면) ---------- */
.hero .wrap { padding-top: 88px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: end; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.hero-sub { margin: 0; font-size: 19px; color: var(--muted); max-width: 540px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 생산 스펙 카드 */
.spec { border: 1.5px solid var(--ink); background: var(--paper); }
.spec-head { padding: 14px 20px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.spec-head span:last-child { color: var(--subtle); }
.spec dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec dl > div { padding: 22px 20px; }
.spec dl > div:nth-child(1), .spec dl > div:nth-child(3) { border-right: 1px solid var(--hair); }
.spec dl > div:nth-child(1), .spec dl > div:nth-child(2) { border-bottom: 1px solid var(--hair); }
.spec dt { font-size: 13px; color: var(--subtle); }
.spec dd { margin: 6px 0 0; font-size: 20px; font-weight: 600; }
.spec-foot { padding: 16px 20px; background: var(--ink); color: var(--ground); font-size: 15px; }

/* ---------- 고객 유형 카드 ---------- */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: 48px; }
.sec-head > div { display: flex; flex-direction: column; gap: 12px; }
.sec-head .lead { max-width: 460px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.card { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--paper); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.card-tag { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.card h3 { margin: 0; font-size: 23px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 0; padding-left: 18px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.card-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); }
.card-link:hover { color: var(--accent-text); }

/* ---------- 제조 역량(어두운 섹션) ---------- */
.dark { background: var(--ink); color: var(--ground); border-bottom: 0; }
.dark .eyebrow { color: var(--accent-on-dark); }
.dark .h2 { max-width: 760px; margin-bottom: 48px; }
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: #3A423D; border: 1px solid #3A423D; }
.cap { background: var(--ink); padding: 32px 26px; display: flex; flex-direction: column; gap: 12px; }
.cap-no { font-family: var(--mono); font-size: 30px; color: var(--accent-on-dark); }
.cap h3 { margin: 0; font-size: 21px; }
.cap p { margin: 0; font-size: 15px; color: #C3C9C4; }
.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; border-top: 1px solid #3A423D; padding-top: 40px; }
.stat-num { margin: 0; font-size: 36px; font-weight: 700; }
.stat-num small { font-size: 18px; font-weight: 500; }
.stat-label { margin: 4px 0 0; color: #C3C9C4; font-size: 15px; }
.stat-note { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ground); }

/* HACCP 인증 목록 */
.certs { margin-top: 48px; border-top: 1px solid #3A423D; padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.certs ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: #3A423D; border: 1px solid #3A423D; }
.certs li { background: var(--ink); }
.certs li a { padding: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ground); text-decoration: none; height: 100%; }
.certs li a:hover { background: #1E2420; color: var(--ground); }
/* 인증서 썸네일: 세로 비율 유지, 상단만 보이게 잘라 표시. 클릭하면 원본 크기로 열림 */
.certs img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; background: #fff; margin-bottom: 10px; }
.certs strong { font-size: 17px; }
.certs span { font-size: 14px; color: #C3C9C4; }

/* 로고 */
.logo img { height: 48px; width: auto; display: block; }
.footer-logo { height: 56px; width: auto; display: block; margin-bottom: 6px; }

/* ---------- 진행 절차 ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-top: 1.5px solid var(--ink); }
.steps li { padding: 24px 20px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.steps .no { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.steps strong { font-size: 19px; }
.steps span:last-child { font-size: 15px; color: var(--muted); }

/* ---------- 상담 신청 양식 ---------- */
.inquiry { background: var(--paper); }
.inquiry .wrap { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.inq-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.picked { margin-top: 16px; border: 1.5px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.picked span:first-child { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.picked strong { font-size: 19px; }
.picked span:last-child { color: var(--muted); }
.form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { font-weight: 600; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 600; cursor: pointer; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select { min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); background: var(--ground); }
.field textarea { padding: 12px 14px; border: 1.5px solid var(--line); background: var(--ground); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.agree input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.submit { min-height: 56px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; }
.submit:disabled { opacity: .6; cursor: wait; }
/* 스팸 방지용 숨김 칸(허니팟): 사람에게는 안 보이고, 자동 스팸 프로그램만 채움 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* 전송 결과 메시지 */
.form-msg { margin: 0; padding: 14px 16px; font-size: 15px; display: none; }
.form-msg.ok { display: block; background: #E7F2EA; border: 1.5px solid #2F6B3F; color: #1E4A2A; }
.form-msg.err { display: block; background: #FBEAE4; border: 1.5px solid var(--accent-text); color: #7A2706; }

/* ---------- FAQ ---------- */
.faq .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.faq-head { flex: 1 1 280px; }
.faq-head .eyebrow { margin-bottom: 12px; }
.faq-list { flex: 999 1 560px; min-width: 0; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; min-height: 28px; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- 하단 ---------- */
.footer { background: var(--ink); color: #C3C9C4; font-size: 14px; }
.footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-info { display: flex; flex-direction: column; gap: 6px; }
.footer-info .brand { font-family: var(--mono); font-weight: 600; color: var(--ground); letter-spacing: .06em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.footer-links a { color: var(--ground); }

/* ---------- 개인정보처리방침 페이지 ---------- */
.policy { display: flex; flex-wrap: wrap; gap: 48px 64px; padding-top: 72px; padding-bottom: 96px; line-height: 1.75; }
.policy-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.toc { margin-top: 16px; border-top: 1.5px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.toc a { color: var(--ink); }
.policy-body { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.policy-body section { display: flex; flex-direction: column; gap: 12px; }
.policy-body h2 { margin: 0; font-size: 22px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; }
.policy-body p, .policy-body ul { margin: 0; }
.policy-body ul { padding-left: 20px; }
.note { font-size: 15px; color: var(--muted); }
.table-box { overflow-x: auto; }
.table-box table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table-box th { background: var(--ink); color: var(--ground); text-align: left; padding: 12px 14px; }
.table-box td { padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.officer { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border: 1.5px solid var(--ink); background: var(--paper); }
.officer > div { padding: 18px 20px; }
.officer dt { font-size: 13px; color: var(--subtle); }
.officer dd { margin: 4px 0 0; font-weight: 600; }

/* ---------- 제조 역량 카드의 라인별 생산량 ---------- */
.cap-capa { margin-top: auto !important; padding-top: 8px; font-family: var(--mono); font-size: 14px !important; color: var(--accent-on-dark) !important; }

/* ---------- 화성공장 ---------- */
.fac-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0; border: 1.5px solid var(--ink); margin-bottom: 24px; }
.fac-ext { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.fac-flow { margin: 0; padding: 28px; list-style: none; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: var(--paper); font-size: 17px; font-weight: 600; }
.fac-flow span { font-family: var(--mono); font-size: 13px; color: var(--accent-text); margin-right: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: var(--paper); border: 1px solid var(--hair); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 14px; font-size: 15px; font-weight: 600; }
.sub-h { margin: 48px 0 16px; font-size: 21px; }
.capa td:nth-child(2), .capa td:nth-child(3) { font-family: var(--mono); white-space: nowrap; }
.capa tr.total td { font-weight: 700; background: var(--ground); }

/* ---------- 제품 라인업 ---------- */
.lineup { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.lu { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--paper); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.lu-cnt { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--accent-text); }
.lu h3 { margin: 0; font-size: 20px; }
.lu-spec { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.lu p:last-child { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- 고객사 ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; }
.clients h3 { margin: 0 0 12px; font-size: 19px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.clients ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clients li { padding: 14px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.clients strong { font-size: 17px; }
.clients span { font-size: 14px; color: var(--subtle); }

/* ---------- 회사소개 페이지 ---------- */
.about-intro { padding-top: 88px !important; padding-bottom: 88px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px 64px; align-items: start; }
.section > .about-intro { padding-top: 88px; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy p { margin: 0; color: var(--muted); }
.about-copy .about-lead { font-size: 19px; color: var(--ink); }
.overview { margin: 0; border: 1.5px solid var(--ink); background: var(--paper); }
.overview > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.overview > div:last-child { border-bottom: 0; }
.overview dt { font-size: 14px; color: var(--subtle); }
.overview dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .overview > div { grid-template-columns: 1fr; gap: 2px; } }

.greeting { background: var(--paper); }
.greet-wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.greet-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.greet-body { flex: 999 1 560px; min-width: 0; max-width: 720px; font-size: 17px; line-height: 1.85; }
.greet-body p { margin: 0 0 20px; }
.greet-quote { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45 !important; font-weight: 700; padding-left: 0; margin-bottom: 32px !important; }
.greet-sign { margin-top: 36px !important; padding-top: 20px; border-top: 1px solid var(--hair); text-align: right; }
.greet-sign strong { font-size: 20px; margin-left: 8px; }

.timeline { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); border-top: 1.5px solid var(--ink); }
.timeline li { padding: 24px 16px 24px 0; display: flex; flex-direction: column; gap: 6px; }
.tl-year { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--accent-text); }
.timeline strong { font-size: 17px; }
.timeline span:last-child { font-size: 14px; color: var(--muted); }

.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.leaders article { border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.leaders h3 { margin: 0; font-size: 24px; }
.leaders p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.about-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* 수정: 메뉴의 버튼 글자색이 .nav a 규칙에 덮여 검은 글자가 되던 문제 */
.nav a.btn-dark, .nav a.btn-dark:hover { color: #fff; }
/* 수정: 하단 로고가 flex 정렬 때문에 가로로 늘어나던 문제 */
.footer-logo { align-self: flex-start; }

/* ---------- 주요 공급 실적 / FAQ 상세 ---------- */
.majors { margin-bottom: 40px; border: 1.5px solid var(--ink); background: var(--paper); padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.majors h3 { margin: 0; font-size: 15px; font-family: var(--mono); letter-spacing: .08em; color: var(--accent-text); font-weight: 600; }
.majors ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.majors li { font-size: 22px; font-weight: 700; }
.faq-rich { margin-top: 12px; color: var(--muted); }
.faq-rich p { margin: 0 0 12px; }
.faq-rich ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.faq-rich strong { color: var(--ink); }

/* ---------- 육가공 일체(넓은 카드)·수비드 ---------- */
.cap-wide { grid-column: 1 / -1; }
.cap-sub { margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px 24px; }
.cap-sub li { border-top: 1px solid #3A423D; padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.cap-sub strong { font-size: 17px; color: var(--ground); }
.cap-sub span { font-size: 14px; color: #C3C9C4; line-height: 1.6; }
.cap-list { margin: 0; padding-left: 18px; font-size: 14px; color: #C3C9C4; display: flex; flex-direction: column; gap: 6px; }
.cap-list strong { color: var(--ground); }
.spec-sub { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
