/* ─────────────────────────────────────────
   OK F&D  |  style.css
   콘셉트: 무쇠·숯불 — 담백하고 단단한 B2B 식품 제조사
───────────────────────────────────────── */

:root {
  --bg:          #EEEEEB;
  --bg-alt:      #F7F7F5;
  --text:        #26272A;
  --muted:       #5F6064;
  --border:      #D6D6D2;
  --accent:      #B5432A;
  --btn-bg:      #26272A;
  --btn-text:    #EEEEEB;
  --contact-bg:  #26272A;
  --footer-bg:   #1B1C1E;
}

/* ── 리셋 & 기본 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Noto Serif KR 적용 대상 */
h1, h2, .logo, .brand-name {
  font-family: 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
}

/* ── 공통 ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 100px 0; }

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 56px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

hr.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 56px;
}

/* ── 스크롤 등장 애니메이션 ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── 상단 메뉴 ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); font-weight: 600; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.25s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 8px 32px 24px;
}

.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ── 첫 화면 ── */
#hero {
  background: var(--bg);
  padding: 112px 0 96px;
  text-align: center;
}

#hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  word-break: keep-all;
  color: var(--text);
  letter-spacing: -0.04em;
}

#hero > .container > p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
  word-break: keep-all;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
  border: 1.5px solid transparent;
}

/* 주 버튼 */
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}

.btn-primary:hover {
  background: #3a3b3f;
  border-color: #3a3b3f;
}

/* 보조 버튼 (포인트 테두리) */
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero-keywords {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.keyword {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ── 회사 소개 ── */
#about { background: var(--bg); }

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 0.97rem;
  color: var(--muted);
  word-break: keep-all;
  margin-bottom: 20px;
  line-height: 1.85;
}

.about-text p:last-child { margin-bottom: 0; }

.fact-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.fact-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.fact-card .fact-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  min-width: 90px;
  font-family: 'Pretendard', sans-serif;
}

.fact-card .fact-label {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── 회사 소개 — 시설 사진 ── */
.about-facility {
  margin-top: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.about-facility img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

@media (max-width: 680px) {
  .about-facility img { height: 220px; }
}

/* ── 회사 소개 — 사훈 ── */
.company-credo {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.01em;
  word-break: keep-all;
}

.company-credo p { margin: 0; }

.company-credo .credo-close {
  margin-top: 16px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ── 취급 품목 ── */
#products { background: var(--bg-alt); }

.product-groups {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.product-group-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 9px 18px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.product-group-note {
  margin-top: 14px;
  font-size: 0.87rem;
  color: var(--muted);
  word-break: keep-all;
}

.product-note {
  margin-top: 48px;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── 품질 관리 ── */
#quality { background: var(--bg); }

/* ── 품질 관리 — 시설 사진 ── */
.quality-facility {
  margin-bottom: 40px;
  display: grid;
  gap: 8px;
}

.quality-facility-main {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  border-radius: 4px;
}

.quality-facility-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quality-facility-detail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

@media (max-width: 680px) {
  .quality-facility-main { height: 220px; }
  .quality-facility-detail img { height: 140px; }
}

.quality-lead {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 40px;
  word-break: keep-all;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.quality-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quality-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
}

.quality-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.quality-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.8;
  word-break: keep-all;
}

@media (max-width: 860px) {
  .quality-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .quality-cards { grid-template-columns: 1fr; }
}

/* ── 거래 방식 ── */
#process { background: var(--bg); }

.process-steps {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: start;
  gap: 0;
}

.step { text-align: center; }

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Pretendard', sans-serif;
}

.step h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  word-break: keep-all;
}

.step p {
  font-size: 0.86rem;
  color: var(--muted);
  word-break: keep-all;
  line-height: 1.7;
}

.step-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18px;
  color: var(--border);
  font-size: 1.2rem;
}

/* ── 자사 브랜드 ── */
#brand { background: var(--bg-alt); }

.brand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.brand-text .brand-name {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.brand-text p {
  font-size: 0.97rem;
  color: var(--muted);
  margin-bottom: 32px;
  word-break: keep-all;
  line-height: 1.85;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 13px 28px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--btn-bg);
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.btn-brand:hover {
  background: #3a3b3f;
  border-color: #3a3b3f;
}

.brand-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px;
}

/* 로고 흰 배경이 칸 배경색에 자연스럽게 섞이도록 multiply 적용 */
.brand-visual img {
  width: 82%;
  max-width: 420px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* ── FAQ ── */
#faq { background: var(--bg); }

.faq-list {
  max-width: 720px;
  border-top: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 20px;
  font-family: inherit;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--accent); }
.faq-item.open .faq-q { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  font-size: 0.92rem;
  color: var(--muted);
  word-break: keep-all;
  line-height: 1.8;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 22px;
}

/* ── 문의 ── */
#contact {
  background: var(--contact-bg);
  color: var(--btn-text);
  text-align: center;
}

#contact .section-title {
  color: var(--btn-text);
}

#contact .section-sub {
  color: rgba(238, 238, 235, 0.5);
  line-height: 2;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.contact-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 3px;
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  font-family: inherit;
  border: none;
}

.contact-btn:active { transform: scale(0.98); }

.contact-btn-email {
  background: var(--accent);
  color: #EEEEEB;
}

.contact-btn-email:hover { opacity: 0.88; }

.contact-btn-tel {
  background: var(--accent);
  color: #EEEEEB;
}

.contact-btn-tel:hover { opacity: 0.88; }

.contact-btn svg { flex-shrink: 0; }

/* ── 푸터 ── */
footer {
  background: var(--footer-bg);
  color: rgba(238, 238, 235, 0.45);
  padding: 48px 0 28px;
  font-size: 0.83rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(238, 238, 235, 0.08);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(238, 238, 235, 0.9);
  margin-bottom: 14px;
  font-family: 'Noto Serif KR', serif;
  letter-spacing: -0.02em;
}

.footer-info p { line-height: 2.1; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.footer-nav a {
  color: rgba(238, 238, 235, 0.4);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: rgba(238, 238, 235, 0.85); }

.footer-copy {
  text-align: center;
  margin-top: 24px;
  font-size: 0.78rem;
  opacity: 0.3;
}

/* ── 맨 위로 버튼 ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 200;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover { background: #3a3b3f; }

/* ── 반응형 ── */
@media (max-width: 860px) {
  .about-body { grid-template-columns: 1fr; gap: 40px; }
  .brand-inner { grid-template-columns: 1fr; gap: 40px; }
  .brand-visual { height: 180px; }
}

@media (max-width: 680px) {
  section { padding: 72px 0; }
  #hero   { padding: 80px 0 72px; }

  nav { display: none; }
  .menu-toggle { display: flex; }

  .section-title { font-size: 1.5rem; }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-arrow { display: none; }

  .step {
    text-align: left;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
  }

  .step:last-child { border-bottom: none; }
  .step-num { margin: 0; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-nav { align-items: flex-start; }

  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 420px) {
  .container { padding: 0 20px; }
  .contact-btns { flex-direction: column; align-items: stretch; }
  .contact-btn { justify-content: center; }
  .brand-visual { height: 150px; padding: 16px; }
}

/* ── 히어로 — 사진 스트립 ── */
.hero-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 48px;
}

.hero-photo {
  border-radius: 4px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

@media (max-width: 680px) {
  .hero-photos { grid-template-columns: 1fr; }
  .hero-photo img { height: 200px; }
}

/* ── 취급 품목 — 제품 갤러리 ── */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 27, 30, 0.68);
  color: #EEEEEB;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .product-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery-item img { height: 160px; }
}
