/* Page-specific styles: qna.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;
}

/* ---- 검색창 ---- */

.qna-search {
  position: relative;
  margin-bottom: 24px;
}

.qna-search::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border: 2px solid var(--herb-brown);
  border-radius: 50%;
  pointer-events: none;
}

.qna-search::after {
  content: "";
  position: absolute;
  left: 37px;
  top: 50%;
  width: 7px;
  height: 2px;
  background: var(--herb-brown);
  transform: translateY(6px) rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.qna-search input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  padding: 16px 90px 16px 52px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.qna-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
}

.qna-search-btn:hover { background: var(--primary); }

.qna-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(215,25,32,0.14);
}

.qna-search input::placeholder { color: var(--ink-soft); }

.qna-no-result {
  display: none;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 40px 0;
}

/* ---- 카테고리 탭(점프 링크) ---- */

.qna-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.qna-jump a {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.qna-jump a:hover { border-color: var(--accent); color: var(--primary); }

/* ---- QnA 카테고리 그룹 ---- */

.qna-group { margin-bottom: 52px; scroll-margin-top: 100px; }

.qna-group:last-child { margin-bottom: 0; }

.qna-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.qna-group-title .qg-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ---- FAQ 아코디언 (인덱스와 동일 톤) ---- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: faq-counter;
}

.faq-item {
  counter-increment: faq-counter;
  position: relative;
  padding-left: 72px;
  padding-right: 20px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-left: 4px solid var(--accent);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(73,9,11,0.07);
  scroll-margin-top: 100px;
}

.faq-item::before {
  content: counter(faq-counter, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
}

.faq-item summary {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  transition: transform .5s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding-bottom: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s ease;
}

.faq-item[open] p {
  max-height: 200px;
  opacity: 1;
}

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

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

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

.qna-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; }
}
