/* Page-specific styles: ingredients.html */
:root {
  --bg: #FFF3E8;
  --bg-alt: #FBE3D1;
  --ink: #211512;
  --ink-soft: #6A4A40;
  --primary: #D71920;
  --primary-dark: #8F1015;
  --accent: #F15A24;
  --accent-soft: #F7C84B;
  --herb-brown: #A52A1E;
  --line: #E8C6B2;
  --white: #FFFDFC;

  --font-display: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-body: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-full: 999px;

  --max-width: 1120px;
}

img { max-width: 100%; height: auto; display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
}

/* ---- Header ---- */

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

.nav-links a:not(:last-child)::after {
  content: "｜"; position: absolute; right: -1px; top: 50%;
  transform: translateY(-50%); color: rgba(0,0,0,0.5); font-weight: 400;
}

.nav-links a.is-current { color: var(--primary); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 16px 24px 24px;
  background: rgba(255,243,232,0.96);
  backdrop-filter: blur(8px);
}

/* ---- Page hero (작은 배너형) ---- */

.page-hero {
  position: relative;
  overflow: hidden;
  height: 420px;
  padding: 0 24px;
  display: flex;
  align-items: center;   /* ← 이게 "세로" 중앙 정렬 담당 */
  background: linear-gradient(160deg, #C9151B, #49090B);
  color: var(--white);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.70;
  z-index: 1;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(201,21,27,0.80), rgba(73,9,11,0.88));
  z-index: 2;
}

.page-hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
}

.page-hero .eyebrow { color: var(--accent-soft); }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero p {
  margin: 14px auto 0;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- 효능 태그 버튼 스타일 ---- */

.effect-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.effect-tag-btn {
  background: var(--white);
  border: 1.5px solid var(--accent);
  color: var(--herb-brown);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(73,9,11,0.07);
  transition: all .2s ease;
}

.effect-tag-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* 스크롤 이동 시 고정 헤더(GNB)에 제목이 가려지지 않도록 여백 지정 */

.ic-group {
  scroll-margin-top: 140px;
}

.effect-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: 0 2px 8px rgba(73,9,11,0.07);
}

.effect-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ---- 인체 실루엣 연동형 (인덱스와 동일 톤, 18개로 확장) ---- */

.body-map-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.body-map {
  flex: 0 0 280px;
  position: sticky;
  top: 110px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
  text-align: center;
}

.body-map svg { width: 100%; height: auto; }

.silhouette-base {
  fill: var(--bg-alt);
  stroke: var(--line);
  stroke-width: 2;
  transition: stroke .25s ease, stroke-width .25s ease;
}

.body-map svg.is-whole-active .silhouette-base {
  stroke: var(--accent);
  stroke-width: 3;
}

.body-zone {
  fill: var(--accent);
  opacity: 0;
  transition: opacity .25s ease;
}

.body-zone.is-active { opacity: 0.5; }

.body-map-caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}

.ingredient-list-c { flex: 1; min-width: 0; }

.ic-group { margin-bottom: 8px; }

.ic-group-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--herb-brown);
  letter-spacing: 0.04em;
  margin: 28px 0 8px;
  padding-left: 16px;
}

.ic-group:first-child .ic-group-title { margin-top: 0; }

.ic-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .2s ease;
  scroll-margin-top: 100px;
}

.ic-row:hover, .ic-row.is-active { background: var(--white); box-shadow: 0 4px 16px rgba(73,9,11,0.07); }

.ic-index { font-family: var(--font-display); font-size: 12px; color: var(--herb-brown); width: 20px; flex-shrink: 0; }

.ic-hanja { font-family: var(--font-display); font-size: 17px; color: var(--primary); width: 46px; flex-shrink: 0; }

.ic-name { font-weight: 700; font-size: 14px; color: var(--ink); width: 52px; flex-shrink: 0; }

.ic-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; flex: 1; }

.ic-zone-tag {
  flex-shrink: 0; font-size: 10.5px; font-weight: 600; color: var(--herb-brown);
  background: var(--accent-soft); padding: 3px 9px; border-radius: var(--radius-full); white-space: nowrap;
}

@media (max-width: 860px) {
  .body-map-wrap { flex-direction: column; }
  .body-map { position: static; width: 160px; margin: 0 auto; }
  .ic-row { flex-wrap: wrap; }
  .ic-desc { width: 100%; margin-top: 4px; padding-left: 60px; }
  .ic-zone-tag { margin-left: 60px; }
}

/* ---- CTA ---- */

.ingredients-cta {
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 72px 24px;
}

.ingredients-cta h2 { color: var(--primary-dark); font-size: clamp(24px, 3vw, 32px); }

.ingredients-cta p { color: var(--ink-soft); margin: 14px 0 28px; }

.site-footer {
  padding: 48px 0 40px;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  text-align: center;
}

.site-footer span:first-of-type { color: rgba(255,255,255,0.6); font-size: 13px; }

.site-footer span:last-of-type { max-width: 780px; line-height: 1.7; color: rgba(255,255,255,0.35); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .site-header .nav-inner > .btn { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 64px 0; }
  .page-hero { padding: 140px 0 48px; }
}
