/* 안동종가문화원 — 공통 CSS
   피그마 pc_1920(4450:19906) 이식: Pretendard, 브랜드 브라운 #634636, 스토어 그린 #00cb4c, 푸터 #232323 */

:root {
  --max-w: 1360px;
  --home-w: 1360px;
  --body-w: 720px;
  --c-ink: #111;
  --c-sub: #666;
  --c-brand: #634636;
  --c-line: #e6ded4;
  --c-paper: #faf8f5;
  --c-green: #00cb4c;
  --c-footer: #232323;
  --c-news-bg: #f6f5f3;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* 리셋 */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: #fff;
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

.container { max-width: var(--home-w); margin-inline: auto; padding-inline: 40px; }
.body-col { max-width: var(--body-w); margin-inline: auto; }

/* ===== GNB (피그마 4450:20146) ===== */
.gnb {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
}
.gnb-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; /* 좌우 여백 균등 — 1fr 대칭 그리드는 로고(214)·토글(41) 폭차로 좁은 폭에서 불균형 */
  max-width: 1760px;
  min-height: 92px;
  padding-inline: 20px; /* 로고 x=100 (중앙 80 + 20) */
}
.gnb-logo img { display: block; width: 214px; height: 30px; object-fit: contain; }
.gnb-menu { display: flex; gap: clamp(32px, 4.48vw, 86px); /* 1920에서 86 */ }
.gnb-menu a {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.18px;
  color: #222;
}
.gnb-menu a:hover { color: var(--c-brand); }
.gnb-actions { display: flex; justify-content: flex-end; visibility: hidden; } /* 영문 토글 UI 일단 숨김 — /en 라우트·기능은 유지. 메뉴 중앙정렬 균형을 위해 공간은 보존 */
.gnb-burger { display: none; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; }
.gnb-burger span { display: block; width: 19px; height: 2px; background: #092e4d; }

/* ===== 모바일 내비 드로어 (≤1024) — 슬라이드 인 + 오버레이 페이드 + 메뉴 스태거 ===== */
.gnb-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gnb-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.gnb-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(320px, 84vw);
  display: flex;
  flex-direction: column;
  padding: 14px 24px 28px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gnb-drawer.open { transform: none; }
.gnb-drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.gnb-drawer-close {
  width: 40px;
  height: 40px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  color: #111;
  transition: transform 0.25s ease, color 0.2s;
}
.gnb-drawer-close:hover { color: var(--c-brand); transform: rotate(90deg); }
.gnb-drawer-nav { display: flex; flex-direction: column; margin-top: 28px; }
.gnb-drawer-nav a {
  padding: 17px 4px;
  border-bottom: 1px solid #f0ece6;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.18px;
  color: #111;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s, padding-left 0.25s ease;
}
.gnb-drawer-nav a:hover { color: var(--c-brand); padding-left: 12px; }
.gnb-drawer.open .gnb-drawer-nav a { opacity: 1; transform: none; }
.gnb-drawer.open .gnb-drawer-nav a:nth-child(1) { transition-delay: 0.10s, 0.10s, 0s, 0s; }
.gnb-drawer.open .gnb-drawer-nav a:nth-child(2) { transition-delay: 0.16s, 0.16s, 0s, 0s; }
.gnb-drawer.open .gnb-drawer-nav a:nth-child(3) { transition-delay: 0.22s, 0.22s, 0s, 0s; }
.gnb-drawer.open .gnb-drawer-nav a:nth-child(4) { transition-delay: 0.28s, 0.28s, 0s, 0s; }
@media (min-width: 1025px) {
  .gnb-drawer, .gnb-drawer-overlay { display: none; }
}
.locale-toggle {
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-brand);
}
.locale-toggle:hover { background: #f4efe7; }

/* 버튼 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: #fff;
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn-dark { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.btn-dark:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

/* ===== 홈 공통 섹션 타이포 ===== */
.sec-label { font-size: 16px; font-weight: 800; line-height: normal; letter-spacing: -0.32px; color: var(--c-brand); }
.sec-title {
  margin-top: 16px;
  font-size: 48px;
  font-weight: 600;
  line-height: 66px;
  letter-spacing: -0.96px;
  color: #000;
}
.sec-title.center { text-align: center; }
.sec-body {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.17px;
  color: var(--c-sub);
}
.sec-head { text-align: center; margin-bottom: 80px; }

/* ===== 히어로 (4450:19907) ===== */
.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  background: #22303c url(/assets/img/home/hero-bg.jpg) center / cover no-repeat;
}
/* 배경 슬라이드 — PC(≥1025)에서 JS가 5초 간 .on 순환, 1.2s 페이드 */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.6); }
/* 피그마: 카피 블록을 섹션 상단에서 260px에 고정 (중앙정렬 아님) */
.hero-inner { position: relative; z-index: 2; display: flex; align-items: flex-start; width: 100%; padding-top: 260px; }
.hero-h { font-size: 64px; font-weight: 500; line-height: 82px; letter-spacing: -1.92px; color: #fff; }
.hero-sub { margin-top: 34px; font-size: 20px; font-weight: 500; line-height: 32px; letter-spacing: -0.2px; color: #fff; }
/* 슬라이드 인디케이터 — 피그마 deco(‹ 도트3) 재현. PC에서만 인터랙티브 */
.hero-deco { display: flex; align-items: center; gap: 10px; margin-top: 60px; }
.hero-deco button { display: flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; }
.hero-deco .hd-arrow { opacity: 0.9; transition: opacity 0.2s, transform 0.2s; }
.hero-deco .hd-arrow:hover { opacity: 1; }
.hero-deco .hd-prev:hover { transform: translateX(-2px); }
.hero-deco .hd-next:hover { transform: translateX(2px); }
.hero-deco .hd-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.4; transition: opacity 0.2s; }
.hero-deco .hd-dot:hover { opacity: 0.7; }
.hero-deco .hd-dot.on { opacity: 1; }

/* ===== 소개 2단 (4450:19920) ===== */
.intro { padding-block: 160px; }
.intro-row {
  display: grid;
  grid-template-columns: minmax(380px, 620px) minmax(300px, 1fr);
  gap: 40px clamp(48px, 6.25vw, 120px); /* 1920에서 120 도달 */
  align-items: center;
}
.intro-row + .intro-row { margin-top: 120px; }
.intro-row.row-rev { grid-template-columns: minmax(300px, 1fr) minmax(380px, 620px); }
/* 피그마 row2: 텍스트 블록이 컨테이너 좌측에서 61px 들여쓰기 */
.intro-row.row-rev .intro-text { padding-left: 61px; }
.intro-text .sec-title { margin-top: 24px; } /* 소개 단은 라벨→제목 24 (섹션 헤더는 16) */
.intro-media { overflow: hidden; }
.intro-media img { display: block; width: 100%; aspect-ratio: 620 / 680; object-fit: cover; }
.intro-text .btn-pill { margin-top: 40px; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  border: 1px solid #111;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.15px;
  color: #111;
}
.btn-pill:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; } /* 피그마 321:1382 호버 — 브랜드 브라운 필 */

/* ===== 브랜드 선언 풀블리드 (4450:19945) ===== */
.pledge {
  position: relative;
  min-height: 920px;
  display: flex;
  align-items: center;
  background: #3a2a1c url(/assets/img/home/pledge-bg.jpg) center / cover no-repeat;
}
.pledge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(90deg, rgba(31, 15, 7, 0.4) 0%, rgba(31, 15, 7, 0.4) 100%);
}
.pledge-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding-block: 120px;
  text-align: center;
}
.pledge-h { font-size: 60px; font-weight: 400; line-height: 80px; letter-spacing: -1.2px; color: #fff; }
.pledge-line { width: 1px; height: 52px; background: #fff; opacity: 0.9; }
.pledge-body { font-size: 20px; font-weight: 400; line-height: 32px; letter-spacing: -0.2px; color: #fff; }

/* ===== 제품 그리드 + 카드 (4450:19951, layout/product-card.php) ===== */
.products { padding-block: 160px 0; } /* 피그마: pledge→제품 헤더 160 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 48px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.product-card .card-link { display: flex; flex-direction: column; }
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 305 / 340;
  object-fit: cover;
  background: var(--c-paper);
}
.card-img.ph { display: grid; place-items: center; }
.card-img.ph span { font-size: 13px; letter-spacing: 0.1em; color: var(--c-brand); }
.card-body { padding-top: 30px; }
.card-name { font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -0.2px; color: #111; text-transform: uppercase; }
.card-sum { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 22px; letter-spacing: -0.45px; color: #666; }
.card-cap { margin-top: 12px; font-size: 14px; line-height: 22px; letter-spacing: -0.14px; color: var(--c-brand); }
.card-price { margin-top: 8px; font-size: 15px; font-weight: 700; color: #111; }
.card-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  align-self: flex-start;
}
.card-buy span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.15px;
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-position: from-font;
}
.card-buy:hover span { color: #3f2c20; }

.store-banner { display: flex; justify-content: center; margin-top: 96px; }
.btn-store-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 40px;
  border-radius: 8px;
  background: var(--c-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.15px;
}
.btn-store-lg:hover { background: #00b344; }
.btn-store-lg img { transform: rotate(180deg); }

/* ===== 생산제품 페이지 (피그마 4467:20759) — 1920 기준 이식, 1920→1024는 여백 유동 축소 ===== */
.page-head { margin-top: clamp(64px, 6.77vw, 130px); text-align: center; } /* 피그마: GNB 아래 130 (절대 y=222) */
.page-label { font-size: 15px; font-weight: 800; line-height: 20px; color: var(--c-brand); text-transform: uppercase; }
.page-title {
  margin-top: 16px;
  font-size: clamp(34px, 2.5vw, 48px);
  font-weight: 600;
  line-height: 1.375;
  letter-spacing: -0.48px;
  color: #000;
}
.sort-pills { display: flex; gap: 6px; margin-top: clamp(48px, 4.64vw, 89px); } /* 피그마: 제목 아래 89, 필터 간격 6 */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--c-brand);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.15px;
  line-height: 20px;
  color: var(--c-brand);
}
.pill:hover { background: #f4efe7; }
.pill.on, .pill.on:hover { background: var(--c-brand); color: #fff; }
.products-page .product-grid { row-gap: clamp(32px, 3.125vw, 60px); margin-top: clamp(24px, 1.875vw, 36px); } /* 피그마: 필터(46h) 아래 36, 행간 60(열간 20은 공용 그리드) */
.products-page .card-sum { margin-top: 16px; }
.products-page .card-cap { margin-top: 14px; }
.products-page .card-price { display: none; } /* 피그마 카드에 가격 없음 — 홈 카드는 유지 */
.products-page .card-buy { padding-top: 28px; align-self: flex-end; } /* 피그마: 우측 정렬, 요약 아래 28 */
.products-page .store-banner { margin-top: clamp(64px, 5.2vw, 100px); margin-bottom: clamp(96px, 9.375vw, 180px); } /* 피그마: 그리드 아래 100, CTA 위 180 */

/* ===== 뉴스 (4450:20082) ===== */
.news-sec { margin-top: 140px; background: var(--c-news-bg); padding-block: 140px 130px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.news-card { display: flex; flex-direction: column; }
.news-card > a { display: block; }
.news-img { display: block; width: 100%; aspect-ratio: 400 / 280; object-fit: cover; background: #e8e6e2; }
.news-img.ph { display: grid; place-items: center; }
.news-img.ph span { font-size: 13px; letter-spacing: 0.1em; color: var(--c-brand); }
.news-body { margin-top: 30px; }
.news-title { font-size: 22px; font-weight: 600; line-height: 32px; letter-spacing: -0.22px; color: #333; }
.news-ex { margin-top: 16px; font-size: 16px; font-weight: 500; line-height: 26px; color: #666; }
.news-card:hover .news-title { color: var(--c-brand); }
.news-date { margin-top: auto; padding-top: 24px; font-size: 16px; font-weight: 500; line-height: normal; color: var(--c-brand); }
.news-more { display: flex; justify-content: center; margin-top: 80px; }
/* 뉴스 더보기 — 기본 아웃라인(피그마 321:1391), 호버 시 브라운 필(321:1382) */
.btn-news-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border: 1px solid #111;
  border-radius: 100px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-news-more:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
/* 어두운/흰 화살표 토글 — 기본 dark, 호버 light */
.btn-news-more img:nth-of-type(2), .btn-pill img:nth-of-type(2) { display: none; }
.btn-news-more:hover img:nth-of-type(1), .btn-pill:hover img:nth-of-type(1) { display: none; }
.btn-news-more:hover img:nth-of-type(2), .btn-pill:hover img:nth-of-type(2) { display: inline; }
.btn-pill { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }

/* ===== 문의 CTA (4450:20108) ===== */
.cta {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-start;
  background: #2c2118 url(/assets/img/home/cta-bg.png) center / cover no-repeat; /* 피그마 에셋(한옥 마당) */
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(99, 70, 54, 0.1) 0%, rgba(99, 70, 54, 0.1) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 130px 80px; /* 피그마: 콘텐츠 상단 130 고정 */
  text-align: center;
}
.cta-h { font-size: 42px; font-weight: 500; line-height: normal; letter-spacing: -0.84px; color: #fff; }
.cta-body { margin-top: 30px; font-size: 18px; line-height: 28px; letter-spacing: -0.18px; color: #fff; }
.btn-talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
  padding: 20px 40px;
  border-radius: 100px;
  background: #fff;
  color: var(--c-green);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.15px;
}
.btn-talk:hover { background: #f2f2f2; }
.btn-talk img { transform: rotate(180deg); }

/* ===== 퀵메뉴 (피그마 4456:20481) — 스토어·인스타·블로그·맨위로 스티키 ===== */
.quick-nav {
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-nav a {
  display: flex;
  align-items: center;
  justify-content: center; /* 자연 크기 이미지를 정중앙 배치 — 넘치는 만큼 원형 크롭 */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}
/* 이미지 없는 빈 원만 검정 채움 — 이미지 버튼은 SVG 캔버스 내 원 위치가 0.5px 어긋나 배경이 가장자리에 비치므로 투명 유지 */
.quick-nav a:empty { background: #000; }
.quick-nav a img { display: block; width: auto; height: auto; max-width: none; } /* 자연 크기 유지 — 넘치는 만큼 원형 크롭 */
/* SVG 캔버스 안 원 중심 오프셋 보정 — 원(60)을 프레임 정중앙에 맞춤 */
.quick-nav a:nth-child(2) img { transform: translateY(-0.5px); }  /* insta: 원중심 (34,34)/67 */
.quick-nav a:nth-child(3) img, .quick-nav a:nth-child(4) img { transform: translateY(2px); } /* blog·top: 원중심 (38,36)/76 */
.quick-nav a { transition: transform 0.15s ease; }
.quick-nav a:hover { transform: scale(1.08); }

/* ===== 푸터 (4450:20118) ===== */
.site-footer { background: var(--c-footer); color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) auto;
  gap: 40px 120px; /* 피그마: 중앙 컬럼 x=704 (로고 264 + 120) */
  align-items: start;
  padding-block: 60px;
}
.footer-mid { padding-top: 8px; }   /* 피그마: 링크 행 y=68 */
.footer-certs { padding-top: 6px; } /* 피그마: 인증마크 y=66 */
.footer-logo { display: block; width: 264px; height: auto; }
.footer-copy { margin-top: 30px; font-size: 15px; line-height: 23px; opacity: 0.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; line-height: 20px; }
.footer-links a { font-weight: 500; }
.footer-links a.strong { font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-info { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; font-size: 14px; line-height: 20px; }
.footer-info p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; opacity: 0.8; }
.fdiv { width: 1px; height: 10px; background: #fff; opacity: 0.5; }
.footer-certs { display: flex; align-items: flex-start; gap: 24px; }
.footer-certs img { height: 100px; width: auto; }

/* ===== 페이지 셸 — 계획 마크업(products/product.php)이 쓰는 .wrap ===== */
.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: 40px; }
main > h1 { font-size: 32px; font-weight: 700; margin-block: 48px 20px; }

/* 제품 상세 */
.product-detail { padding-block: 16px 72px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.detail-media img, .detail-media .ph { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 6px; }
.detail-media .ph { display: grid; place-items: center; }
.detail-media .ph span { font-size: 14px; letter-spacing: 0.1em; color: var(--c-brand); }
.detail-info h1 { font-size: 30px; font-weight: 700; margin-block: 4px 0; }
.detail-info .cap { color: var(--c-sub); margin-top: 8px; }
.detail-info .price { font-size: 22px; font-weight: 700; margin-top: 16px; }
.detail-info .buy { margin-top: 24px; min-width: 200px; }
.detail-info .hint { margin-top: 16px; font-size: 13px; color: var(--c-sub); }
.detail-info .hint a { text-decoration: underline; }
.detail-info .hint a:hover { color: var(--c-brand); }

/* 404 */
.error-page { max-width: var(--body-w); padding-block: 80px; text-align: center; }
.error-page h1 { font-size: 48px; font-weight: 700; }
.error-page p { margin-top: 12px; }

/* ===== 뉴스 목록/상세 (/news, /news/<slug>) — 홈 뉴스 카드(4450:20082) 스타일 확장 ===== */
.news-page { padding-block: 16px 96px; }
.news-page > h1 { margin-bottom: 40px; }
.news-list { list-style: none; padding: 0; }
.news-detail { max-width: var(--body-w); margin-inline: auto; }
.news-detail .news-date { margin-top: 0; padding-top: 0; }
.news-detail-h {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.28px;
  color: var(--c-ink);
  word-break: keep-all;
}
.news-hero { margin-top: 40px; }
.news-hero img { display: block; width: 100%; aspect-ratio: 400 / 280; object-fit: cover; background: #e8e6e2; }
.news-detail .news-body {
  margin-top: 40px;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  color: #333;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.news-detail .news-body p { margin-top: 16px; }
.news-detail .news-body h2 { font-size: 22px; font-weight: 600; line-height: 32px; margin-top: 32px; }
.news-detail .news-body h3 { font-size: 19px; font-weight: 600; line-height: 28px; margin-top: 28px; }
.news-detail .news-body h4 { font-size: 17px; font-weight: 600; margin-top: 24px; }
.news-detail .news-body ul, .news-detail .news-body ol { padding-left: 22px; margin-top: 16px; }
.news-detail .news-body li { margin-top: 6px; }
.news-detail .news-body a { color: var(--c-brand); text-decoration: underline; }
.news-detail .news-body img { display: block; margin-top: 16px; }
.news-back { margin-top: 64px; }

/* ===== 정적 페이지 공통 — brand / certifications / process / location / contact =====
   레거시 페이지 구조(브라운 #8a7156 계열 강조, 페이퍼 #faf8f5 카드)를 피그마 홈 톤(#634636)에 맞춰 이식 */
.static { padding-block: 8px 120px; }
.body-col-wide { max-width: 1000px; margin-inline: auto; }
.page-hero { text-align: center; padding-block: 72px 64px; }
.page-hero .kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.2em; color: var(--c-brand); }
.page-hero h1 { margin-top: 16px; font-size: 40px; font-weight: 600; letter-spacing: -0.8px; line-height: 1.3; word-break: keep-all; }
.page-hero .sub { margin-top: 16px; font-size: 17px; color: var(--c-sub); }
.sec-h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.28px; color: var(--c-ink); word-break: keep-all; }
.sec-h2.center { text-align: center; }
.sec-h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; color: var(--c-brand); }
.btn-cta {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  background: var(--c-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.15px;
}
.btn-cta:hover { background: #523829; }
.btn-ghost {
  display: inline-block;
  padding: 13px 35px;
  border: 1px solid var(--c-brand);
  border-radius: 6px;
  color: var(--c-brand);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.15px;
}
.btn-ghost:hover { background: #f4efe7; }

/* --- 브랜드 --- */
.brand-intro { padding-block: 8px 96px; text-align: center; }
.brand-intro .lead { font-size: 20px; line-height: 2; color: #4a4238; word-break: keep-all; }
.brand-intro .rest { margin-top: 32px; font-size: 16px; line-height: 2; color: var(--c-sub); word-break: keep-all; }
.brand-band { border-block: 1px solid var(--c-line); background: #fff; padding-block: 88px; }
.brand-band + .brand-band { border-top: 0; }
.ceo-card { margin-top: 48px; padding: 48px 56px; background: var(--c-paper); border-radius: 4px; }
.ceo-card p { line-height: 2; color: #4a4238; word-break: keep-all; }
.ceo-card p + p { margin-top: 20px; }
.ceo-sign { margin-top: 32px; font-size: 15px; font-weight: 700; text-align: right; color: var(--c-ink); }
.cibi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.cibi-card { padding: 40px; border: 1px solid var(--c-line); border-radius: 4px; text-align: center; }
.cibi-card h3 { font-size: 17px; font-weight: 700; color: var(--c-brand); }
.cibi-card img { display: block; margin: 32px auto 0; }
.cibi-card p { margin-top: 32px; font-size: 14px; line-height: 1.9; text-align: left; color: var(--c-sub); word-break: keep-all; }
.history { padding-block: 96px 0; }
.history .sec-h2 { text-align: center; margin-bottom: 64px; }
.history-year { display: grid; grid-template-columns: 120px 1fr; gap: 8px 24px; }
.history-year + .history-year { margin-top: 56px; }
.history-year .year { font-size: 24px; font-weight: 600; text-align: right; color: var(--c-brand); }
.history-year ul { border-left: 2px solid var(--c-line); padding-left: 24px; display: grid; gap: 12px; }
.history-year li { font-size: 15px; color: #4a4238; word-break: keep-all; }
.history-year li b { margin-right: 12px; color: var(--c-ink); }

/* --- 인증 --- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.cert-card { padding: 20px; border: 1px solid var(--c-line); background: #fff; }
.cert-img { aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; background: #f4efe7; }
.cert-img img { width: 100%; height: 100%; object-fit: contain; }
.cert-img .ph { font-size: 13px; letter-spacing: 0.1em; color: var(--c-brand); }
.cert-type { margin-top: 16px; font-size: 11px; font-weight: 700; color: var(--c-brand); }
.cert-title { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--c-ink); word-break: keep-all; }
.cert-meta { margin-top: 4px; font-size: 12px; color: var(--c-sub); }
.overseas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.overseas-card { padding: 24px; background: var(--c-paper); border: 1px solid var(--c-brand); border-radius: 4px; }
.overseas-card .cert-type { margin-top: 0; }
.cert-band { margin-top: 80px; padding: 40px; border-radius: 4px; background: #f4efe7; text-align: center; }
.cert-band p { line-height: 1.8; color: #4a3b2a; word-break: keep-all; }
.cert-band .btn-cta { margin-top: 24px; }

/* --- 생산 공정 --- */
.process-list { display: grid; gap: 96px; padding-block: 8px 0; }
.process-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; align-items: center; }
.process-row.rev > .process-media { order: 2; }
.process-media { overflow: hidden; background: #fff; border: 1px solid var(--c-line); }
.process-media img { display: block; width: 100%; height: auto; object-fit: cover; }
.step-label { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--c-brand); }
.process-copy h2 { margin-top: 12px; font-size: 26px; font-weight: 600; letter-spacing: -0.26px; color: var(--c-ink); }
.process-copy .desc { margin-top: 12px; line-height: 1.8; color: #5d5348; word-break: keep-all; }

/* --- 오시는 길 --- */
.map-card { margin-block: 0 64px; padding: 48px 40px; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-paper); text-align: center; }
.map-embed { margin-block: 8px 32px; overflow: hidden; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-paper); }
.map-embed iframe { display: block; width: 100%; }
.map-note { font-size: 14px; color: var(--c-sub); }
.map-addr { margin-top: 12px; font-size: 20px; font-weight: 600; color: var(--c-ink); word-break: keep-all; }
.map-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.addr-list { margin-top: 20px; display: grid; gap: 8px; font-size: 15px; color: #4a4238; }
.addr-list dt { display: inline; font-weight: 700; color: var(--c-ink); }
.addr-list dd { display: inline; }
.loc-body { margin-top: 20px; font-size: 15px; color: #4a4238; }
.car-routes { display: grid; gap: 12px; margin-top: 24px; }
.car-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 16px 20px; background: #fff; border: 1px solid var(--c-line); }
.car-row .from { flex: 0 0 96px; font-weight: 700; color: var(--c-ink); }
.car-row .route { font-size: 14px; color: #5d5348; word-break: keep-all; }

/* --- 문의 (D9: 제출 폼 없음) --- */
.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  border-radius: 4px;
  background: #2c2118;
  text-align: center;
}
.contact-cta h2 { font-size: 34px; font-weight: 500; letter-spacing: -0.68px; color: #fff; }
.contact-cta p { margin-top: 24px; font-size: 17px; line-height: 1.8; color: #fff; }
.contact-cta .btn-talk { margin-top: 36px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.contact-card { padding: 32px 24px; border: 1px solid var(--c-line); border-radius: 4px; background: #fff; text-align: center; }
.contact-card h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--c-brand); }
.contact-card p { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--c-ink); word-break: keep-all; }
.contact-card a:hover { color: var(--c-brand); }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  /* GNB 모바일 — 60px, 로고 144×20, 버거 (피그마 mobile_360 4464:20509) */
  .gnb-inner { min-height: 60px; padding-inline: 20px; }
  .gnb-logo img { width: 144px; height: 20px; }
  .gnb-menu, .gnb-actions { display: none; }
  .gnb-burger { display: flex; }
  .quick-nav { bottom: 20px; right: 20px; } /* 태블릿 — 하단·우측 20 */
  .intro-row.row-rev .intro-media { order: -1; } /* 스택 레이아웃에서는 이미지가 위 (피그마 mobile_360 4464:20568) */
  .hero { min-height: 560px; }
  .hero-slides { display: none; } /* 모바일·태블릿은 단일 배경 고정 — 슬라이드는 PC(≥1025)만 */
  .hero-inner { padding-top: 180px; }
  .hero-h { font-size: 38px; line-height: 52px; }
  .hero-sub { font-size: 17px; line-height: 28px; }
  .intro { padding-block: 96px; }
  .intro-row, .intro-row.row-rev { grid-template-columns: 1fr; gap: 32px; }
  .intro-row.row-rev .intro-text { padding-left: 0; }
  .intro-row + .intro-row { margin-top: 96px; }
  .pledge { min-height: 640px; }
  .pledge-inner { padding-block: 80px; }
  .pledge-body br, .hero-sub br, .cta-body br { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-sec { margin-top: 96px; padding-block: 96px 88px; }
  .news-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .sec-head { margin-bottom: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero { min-height: 480px; }
  .hero-inner { padding-top: 120px; }
  .hero-h { font-size: 30px; line-height: 42px; }
  .hero-sub br { display: none; }
  .sec-title { font-size: 28px; line-height: 40px; }
  .pledge-h { font-size: 32px; line-height: 46px; }
  .pledge-body { font-size: 16px; line-height: 28px; }
  .cta-h { font-size: 28px; }
  .cta-body { font-size: 15px; line-height: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); column-gap: 12px; row-gap: 32px; }
  /* 생산제품 페이지 모바일 브리지 — 정확한 360 값은 ≤480 블록 */
  .page-head { margin-top: 60px; } /* 피그마 mobile_360: GNB 아래 60 (절대 120) */
  .page-label { font-size: 13px; letter-spacing: -0.13px; }
  .page-title { margin-top: 12px; }
  .sort-pills { justify-content: center; margin-top: 46px; } /* 피그마: 제목 아래 46, 중앙 정렬 */
  .pill { padding: 12px 30px; font-size: 14px; letter-spacing: -0.14px; }
  .products-page .product-grid { margin-top: 27px; } /* 피그마: 필터 아래 27 */
  .card-body { padding-top: 16px; }
  .card-name { font-size: 16px; }
  .news-page { padding-block: 8px 64px; }
  .news-detail-h { font-size: 24px; line-height: 34px; }
  .news-back { margin-top: 48px; }
  .btn-pill, .btn-store-lg, .btn-talk { padding-inline: 24px; }
}

/* ===== 모바일 360 — 피그마 mobile_360(4464:20508) 정확 이식 ===== */
@media (max-width: 480px) {
  .container, .wrap { padding-inline: 20px; }

  /* GNB 60 — 로고 144×20 + 햄버거, 메뉴·토글 숨김 */
  .gnb-inner { min-height: 60px; padding-inline: 20px; padding-block: 0; }
  .gnb-logo img { width: 144px; height: 20px; }
  .gnb-menu, .gnb-actions { display: none; }
  .gnb-burger { display: flex; }

  /* 히어로 520 — 카피 top 140 abs(=hero 내 80), h1 38/50, sub 16/26 w320, deco 간격 48 */
  .hero { min-height: 520px; }
  .hero-inner { padding-top: 80px; padding-inline: 0; }
  .hero-copy { width: min(320px, 100%); margin-inline: auto; }
  .hero-h { font-size: 38px; line-height: 50px; letter-spacing: -1.14px; }
  .hero-sub { margin-top: 24px; font-size: 16px; line-height: 26px; letter-spacing: -0.16px; }
  .hero-deco { margin-top: 48px; }

  /* 퀵메뉴 50px — 하단 50·우측 20(피그마 mobile_360), 간격 6, 캔버스 scale 0.8333(원 60→50) */
  .quick-nav { gap: 6px; bottom: 50px; right: 20px; }
  .quick-nav a { width: 50px; height: 50px; }
  .quick-nav a:nth-child(1) img { transform: scale(0.8333); }
  .quick-nav a:nth-child(2) img { transform: translateY(-0.5px) scale(0.8333); }
  .quick-nav a:nth-child(3) img, .quick-nav a:nth-child(4) img { transform: translateY(2px) scale(0.8333); }

  /* 소개 2단 — 풀블리드 이미지 360×240, 텍스트 320 중앙, 단 간격 60 */
  .intro { padding-block: 60px 80px; padding-inline: 0; }
  .intro-row, .intro-row.row-rev { grid-template-columns: 1fr; gap: 32px; }
  .intro-row.row-rev .intro-media { order: -1; } /* 모바일은 2단째도 이미지가 위 (피그마 4464:20568) */
  .intro-row + .intro-row { margin-top: 60px; }
  .intro-media img { aspect-ratio: 360 / 240; }
  .intro-text { width: min(320px, 100%); margin-inline: auto; }
  .sec-label { font-size: 13px; letter-spacing: -0.13px; }
  .sec-title, .intro-text .sec-title { margin-top: 12px; font-size: 32px; line-height: 44px; letter-spacing: -0.64px; }
  .sec-body { margin-top: 18px; font-size: 15px; line-height: 26px; letter-spacing: -0.15px; }
  .intro-text .btn-pill { margin-top: 24px; }
  .btn-pill { padding: 12px 34px; font-size: 14px; letter-spacing: -0.14px; }

  /* 브랜드 선언 540 — 콘텐츠 top 126 고정, 제목 36/48, 간격 24 */
  .pledge { min-height: 540px; align-items: flex-start; }
  .pledge-inner { padding-block: 126px 80px; gap: 24px; }
  .pledge-h { font-size: 36px; line-height: 48px; letter-spacing: -0.72px; }
  .pledge-line { height: 40px; }
  .pledge-body { font-size: 15px; line-height: 26px; letter-spacing: -0.15px; }

  /* 제품 — 2열 (320-12)/2=154, 행간 30, 카드 타이포 축소 */
  .products { padding-block: 80px 0; }
  .sec-head { margin-bottom: 48px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); column-gap: 12px; row-gap: 30px; }
  .card-body { padding-top: 16px; }
  .card-name { font-size: 17px; line-height: 24px; letter-spacing: -0.17px; }
  .card-sum { margin-top: 8px; font-size: 14px; line-height: 22px; letter-spacing: -0.42px; }
  .card-cap { margin-top: 8px; font-size: 14px; line-height: 20px; }
  .card-buy { padding-top: 16px; }
  .card-buy span { font-size: 14px; letter-spacing: -0.14px; }
  .store-banner { margin-top: 50px; }
  .btn-store-lg { padding: 16px 30px; border-radius: 4px; font-size: 14px; }

  /* 생산제품 페이지 mobile_360(4468:20993) — 제목 32/44, 카드 간격 8, 구매하기 좌측·화살표 8, 스토어 위 50·CTA 위 73 */
  .page-title { font-size: 32px; line-height: 44px; letter-spacing: -0.64px; }
  .products-page .card-sum { margin-top: 8px; }
  .products-page .card-cap { margin-top: 8px; }
  .products-page .card-buy { padding-top: 16px; align-self: flex-start; }
  .products-page .card-buy img { width: 8px; height: 8px; }
  .products-page .store-banner { margin-top: 50px; margin-bottom: 73px; }

  /* 뉴스 — 1열 카드 320, 카드 간격 30 */
  .news-sec { margin-top: 80px; padding-block: 80px 73px; }
  .news-grid { grid-template-columns: 1fr; gap: 30px; max-width: none; }
  .news-body { margin-top: 20px; }
  .news-title { font-size: 18px; line-height: 28px; letter-spacing: -0.18px; }
  .news-ex { margin-top: 12px; font-size: 14px; line-height: 22px; }
  .news-date { padding-top: 18px; font-size: 14px; }
  .news-more { margin-top: 80px; }
  .btn-news-more { padding: 15px 40px; font-size: 15px; }

  /* CTA 440 — 콘텐츠 top 120, 제목 32, 본문 15/25 */
  .cta { min-height: 440px; }
  .cta-inner { padding-top: 120px; }
  .cta-h { font-size: 32px; letter-spacing: -0.64px; }
  .cta-body { margin-top: 20px; font-size: 15px; line-height: 25px; letter-spacing: -0.15px; }
  .btn-talk { margin-top: 44px; padding: 16px 32px; font-size: 14px; }

  /* 푸터 487 — 로고 170×23, 사업자정보 4줄 분리, 인증마크 64h */
  .footer-inner { padding-block: 60px; grid-template-columns: 1fr; gap: 30px; }
  .footer-logo { width: 170px; }
  .footer-copy { margin-top: 24px; font-size: 14px; line-height: 22px; }
  .footer-links { gap: 16px; }
  .footer-info { margin-top: 24px; }
  .footer-info p { flex-wrap: wrap; row-gap: 6px; }
  .footer-info p:first-child .fdiv { display: none; } /* 상호·주소 줄 구분자 제거 → 2줄 분리 */
  .footer-certs { gap: 16px; }
  .footer-certs img { display: block; height: 64px; width: auto; }

  /* 320 미만 축소 대응 — 별도 디자인 없이 오버플로만 방지 */
  .hero-h, .pledge-h, .cta-h { word-break: keep-all; overflow-wrap: anywhere; }
}

@media (min-width: 768px) {
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}

/* ===== 정적 페이지 반응형 ===== */
@media (max-width: 1024px) {
  .static { padding-block: 0 96px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .overseas-grid { grid-template-columns: repeat(2, 1fr); }
  .process-row { gap: 32px; }
  .loc-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding-block: 40px 48px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero .sub { font-size: 15px; }
  .sec-h2 { font-size: 22px; }
  .brand-intro { padding-block: 0 64px; }
  .brand-intro .lead { font-size: 17px; }
  .brand-band { padding-block: 64px; }
  .ceo-card { padding: 32px 24px; }
  .cibi-grid { grid-template-columns: 1fr; gap: 24px; }
  .cibi-card { padding: 24px; }
  .history { padding-top: 64px; }
  .history .sec-h2 { margin-bottom: 40px; }
  .history-year { grid-template-columns: 1fr; }
  .history-year .year { text-align: left; }
  .process-list { gap: 56px; }
  .process-row { grid-template-columns: 1fr; }
  .process-row.rev > .process-media { order: 0; }
  .contact-cta { padding: 56px 20px; }
  .contact-cta h2 { font-size: 24px; }
  .contact-cta p { font-size: 15px; }
  .cert-band { margin-top: 56px; padding: 24px; }
}
@media (max-width: 480px) {
  .cert-grid { grid-template-columns: 1fr; }
  .overseas-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .map-card { padding: 32px 20px; }
  .map-addr { font-size: 17px; }
}

/* ===== 관리자 대시보드 (Task 22) — 로그인·뉴스 화면은 각 페이지 내 <style>로 스코프 ===== */
.admin-nav a:first-child { margin-left: 0; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dash-head h1 { margin: 0; }
.dash-actions { display: flex; align-items: center; gap: 12px; }
.dash-actions form { margin: 0; }
.btn-sync { padding: 9px 16px; font-size: 13px; border: 0; border-radius: 6px; background: #232323; color: #fff; cursor: pointer; }
.btn-sync:disabled { opacity: .55; cursor: wait; }
.sync-badge { display: inline-block; padding: 5px 10px; font-size: 12px; border-radius: 999px; white-space: nowrap; }
.sync-success { background: #eef6f0; color: #1b6e3c; }
.sync-partial { background: #fdf3e7; color: #a15c00; }
.sync-failed  { background: #fdf0f0; color: #b3261e; }
.sync-none    { background: #f2f2f2; color: #888; }
.admin-card + .admin-card { margin-top: 16px; }
.admin-card h2 { font-size: 15px; margin: 12px 0 12px; }
.card-note { margin: 0 0 12px; font-size: 12px; color: #888; }
.card-note a { color: #555; }
.admin-flash { margin: 0 0 16px; padding: 10px 12px; font-size: 13px; border-radius: 6px; }
.flash-success { background: #eef6f0; color: #1b6e3c; }
.flash-partial { background: #fdf3e7; color: #a15c00; }
.flash-failed  { background: #fdf0f0; color: #b3261e; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; vertical-align: middle; }
table.admin-table th { font-size: 12px; color: #888; font-weight: 600; }
td.log-msg { font-size: 12px; color: #a33; max-width: 280px; word-break: break-all; }
.dash-logout { margin-top: 20px; text-align: right; }
.btn-logout { padding: 8px 16px; font-size: 13px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #555; cursor: pointer; }
.btn-logout:hover { background: #f7f7f7; }
