/* ===== 인디고포포 브랜드 홈페이지 스타일 (크림 미니멀 에디토리얼) ===== */

:root {
  --color-main: #34362B;
  --color-main-light: #5C5E4F;
  --color-sub: #8A8B72;
  --color-accent: #9C6B45;
  --color-beige: #E7E3D2;
  --color-bg: #F1EFE4;
  --color-bg-alt: #EAE7D8;
  --color-paper: #F7F5EC;
  --color-text: #34362B;
  --color-text-soft: #858574;
  --color-white: #FFFFFF;
  --color-border: #DBD8C6;

  --font-body: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Noto Serif KR', 'Pretendard', serif;
  --font-slogan: 'Gowun Batang', 'Noto Serif KR', serif;

  --max-width: 1080px;
  --radius: 6px;
  --shadow-soft: 0 8px 24px rgba(52, 54, 43, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 110px 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--color-text-soft);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 18px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.section-desc {
  color: var(--color-text-soft);
  font-size: 15.5px;
  max-width: 620px;
  margin: 0 0 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-main);
  color: var(--color-bg);
}
.btn-primary:hover { background: #24261D; }

.btn-outline {
  background: transparent;
  border-color: var(--color-main);
  color: var(--color-main);
}
.btn-outline:hover { background: var(--color-main); color: var(--color-bg); }

.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.btn-sm { padding: 9px 18px; font-size: 12.5px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 239, 228, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; }

.logo-img { height: 26px; width: auto; display: block; }

.nav-menu { display: flex; gap: 30px; }

.nav-menu a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.nav-menu a:hover { color: var(--color-accent); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--color-main);
  display: block;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--color-bg);
  padding: 168px 0 132px;
  text-align: center;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; }

/* 히어로 라인 드로잉 (산·바다·태양·나무) */
.hero-scene {
  display: block;
  width: clamp(150px, 22vw, 220px);
  height: auto;
  margin: 0 auto 30px;
  overflow: visible;
}

.hero-scene .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: heroDraw 7s ease-in-out infinite;
  animation-delay: 0s; /* 산: 가장 먼저 */
}

/* 순서: 산(0) → 태양(원 → 빛살) → 나무 → 바다 */
.hero-scene .scene-sun circle { animation-delay: 0.45s; }
.hero-scene .scene-sun line   { animation-delay: 0.9s; }
.hero-scene .scene-tree path  { animation-delay: 1.2s; }
.hero-scene .scene-tree line  { animation-delay: 1.4s; }
.hero-scene .scene-sea path:nth-of-type(1) { animation-delay: 1.55s; }
.hero-scene .scene-sea path:nth-of-type(2) { animation-delay: 1.75s; }

@keyframes heroDraw {
  0%   { stroke-dashoffset: 1; opacity: 0; }   /* 안 그려진 상태 */
  3%   { opacity: 1; }                          /* 나타나며 */
  15%  { stroke-dashoffset: 0; opacity: 1; }    /* 선이 다 그려짐 */
  82%  { stroke-dashoffset: 0; opacity: 1; }    /* 잠시 유지 */
  96%  { stroke-dashoffset: 0; opacity: 0; }    /* 부드럽게 사라짐 */
  100% { stroke-dashoffset: 1; opacity: 0; }    /* 안 보일 때 초기화 → 반복 */
}

/* 계속 살아있는 느낌을 주는 앰비언트 모션 (그리기 애니메이션과 별개로 계속 반복) */
.amb-pulse { transform-origin: 150px 66px; animation: ambSunPulse 5s ease-in-out infinite; }
.amb-sway { transform-origin: 40px 153px; animation: ambSway 6s ease-in-out infinite; }
.amb-shimmer { animation: ambShimmer 8s ease-in-out infinite; }

@keyframes ambSunPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes ambSway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
@keyframes ambShimmer {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene .draw {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  .amb-pulse, .amb-sway, .amb-shimmer {
    animation: none;
  }
}

.hero-wordmark {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6.8vw, 92px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--color-text);
  margin: 0 0 20px;
}

.hero-wordmark span { color: var(--color-sub); }

.hero-mark-sub {
  margin: 0 0 56px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--color-text-soft);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-slogan);
  font-size: clamp(19px, 2.4vw, 25px);
  color: var(--color-main-light);
  margin: 0 0 44px;
  letter-spacing: 0.02em;
}

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

.hero-verse {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 32px;
  max-width: 250px;
  text-align: right;
  font-family: var(--font-slogan);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--color-text-soft);
  opacity: 0.85;
  margin: 0;
}

.hero-verse span {
  display: block;
  margin-top: 7px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

/* ===== About / Brand Story ===== */
.about {
  background: var(--color-paper);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about .section-eyebrow,
.about .section-title { display: block; text-align: center; }

.about .section-eyebrow { width: 100%; }

.about-lead {
  max-width: 680px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  max-width: 960px;
  margin: 56px auto 0;
}

.about-block { margin-bottom: 36px; }
.about-block h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}
.about-block p { color: var(--color-text-soft); font-size: 14.5px; margin: 0; }

.value-list { margin-top: 4px; }

.value-item {
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
}
.value-item:last-child { border-bottom: 1px solid var(--color-border); }

.value-en {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 6px;
}
.value-item p { font-size: 13px; line-height: 1.7; color: var(--color-text-soft); margin: 0; }

/* ===== Products ===== */
.products { background: var(--color-bg); text-align: center; }

.products .section-desc { margin-left: auto; margin-right: auto; }

.category-tabs {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.category-tab {
  padding: 6px 2px;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.category-tab.active,
.category-tab:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 64px 40px;
  background: transparent;
  border: none;
  text-align: center;
}

.product-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 26px;
  box-shadow: 0 8px 20px rgba(28, 30, 35, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(28, 30, 35, 0.1);
}

.product-card .thumb {
  width: min(200px, 70%);
  aspect-ratio: 1 / 1;
  background: var(--color-beige);
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(28, 30, 35, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover .thumb {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 34px rgba(28, 30, 35, 0.14);
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  width: 100%;
  justify-content: flex-start;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.product-desc {
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 0;
  max-width: 260px;
  min-height: 38px;
}

.product-ingredients {
  font-size: 11.5px;
  color: var(--color-sub);
  line-height: 1.6;
  max-width: 260px;
  margin: 0;
  min-height: 44px;
}

.product-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(169, 107, 62, 0.1);
  border: 1px solid rgba(169, 107, 62, 0.2);
  color: var(--color-main);
}

.product-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 12px;
  border-top: none;
  width: 100%;
  min-height: 66px;
}

.product-price {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.product-footer .btn {
  background: var(--color-beige);
  color: var(--color-text);
  border: none;
  width: min(200px, 70%);
}
.product-footer .btn:hover { background: var(--color-main); color: var(--color-bg); }

.category-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  color: var(--color-text-soft);
  background: transparent;
  border-radius: 0;
  border: 1px dashed var(--color-border);
  font-size: 14px;
}

/* ===== Standard / Promise ===== */
.standard {
  background: var(--color-paper);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.philosophy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}

.philosophy-card {
  padding: 26px 6px 0;
  border-top: 1px solid var(--color-main);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
}

.philosophy-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--color-sub);
  margin-bottom: 10px;
}

.philosophy-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 24px;
}

/* 약속 카드 일러스트 */
.philosophy-img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 20px;
  transition: transform 0.4s ease;
}

.philosophy-card:hover .philosophy-img { transform: scale(1.03); }

.philosophy-quote {
  font-family: var(--font-slogan);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.cert-note {
  margin-top: 48px;
  font-size: 12.5px;
  color: var(--color-text-soft);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 14px 18px;
  border-radius: 2px;
}

/* ===== How to Join ===== */
.how-to { background: var(--color-bg); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 56px;
}

.how-step { text-align: center; padding: 24px 16px; }

.how-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-main);
  color: var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
}

.how-step h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}
.how-step p { font-size: 13px; color: var(--color-text-soft); margin: 0; }

/* ===== Reviews ===== */
.reviews {
  background: var(--color-paper);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.review-carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.review-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.review-track::-webkit-scrollbar { display: none; }

.review-track > .category-empty { flex: 1 0 100%; }

.review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.review-nav:hover { background: var(--color-beige); border-color: var(--color-sub); }
.review-nav[hidden] { display: none; }
.review-nav-prev { left: -17px; }
.review-nav-next { right: -17px; }

.review-card {
  flex: 0 0 296px;
  scroll-snap-align: start;
  background: var(--color-bg);
  border-radius: 2px;
  padding: 20px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.review-card:hover {
  border-color: var(--color-sub);
  transform: translateY(-2px);
}

/* ===== 후기 전체 보기 모달 ===== */
.review-modal[hidden] { display: none !important; }

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(36, 38, 29, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.review-modal-box {
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
}

.review-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}
.review-modal-close:hover { background: var(--color-beige); }

.review-modal-img {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: var(--color-beige);
}
.review-modal-img img { width: 100%; height: 100%; object-fit: contain; }

.review-modal-body { padding: 28px 32px 32px; }

.review-modal-stars {
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin: 0 0 14px;
}

.review-modal-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--color-text);
  margin: 0 0 18px;
  white-space: pre-line;
}

.review-modal-author {
  font-size: 12px;
  color: var(--color-sub);
  letter-spacing: 0.06em;
  margin: 0;
}

.review-card .stars {
  color: var(--color-accent);
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
}
.review-card .review-text {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--color-text-soft);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card .review-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--color-beige);
}
.review-card .review-img img { width: 100%; height: 100%; object-fit: cover; }
.review-card .review-author {
  font-size: 11px;
  color: var(--color-sub);
  letter-spacing: 0.06em;
}

/* ===== FAQ ===== */
.faq { background: var(--color-bg); }

.faq-list { max-width: 760px; margin: 0 auto; }

.faq .section-eyebrow,
.faq .section-title { display: block; text-align: center; }

.faq .section-title { margin-bottom: 48px; }

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question .plus {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-sub);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 14px;
  color: var(--color-text-soft);
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p { padding: 0 4px 22px; margin: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-main);
  color: rgba(241, 239, 228, 0.8);
  padding: 72px 0 36px;
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 44px;
}

.footer-logo { margin-bottom: 18px; }

.footer-logo-img { height: 24px; width: auto; display: block; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { letter-spacing: 0.04em; }
.footer-links a:hover { color: var(--color-bg); }

.footer-info p { margin: 4px 0; opacity: 0.75; }

.footer-bottom {
  border-top: 1px solid rgba(241, 239, 228, 0.16);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 72px 0; }
  .hero { padding: 110px 0 88px; }
  .philosophy-list { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav-menu, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }

  .site-header.menu-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 18px;
  }

  .footer-top { flex-direction: column; }

  .hero { padding: 130px 0 80px; }
  .hero-mark-sub { margin-bottom: 48px; }

  .hero-verse {
    top: 16px;
    right: 20px;
    max-width: 64vw;
    font-size: 11.5px;
  }
  .hero-verse span { font-size: 8px; margin-top: 5px; }

  .product-grid { gap: 48px 24px; }

  /* 후기: 좌우 스와이프 + 더 작고 정돈된 카드 */
  .review-track { gap: 12px; }
  .review-nav { display: none; }

  .review-card {
    flex: 0 0 72vw;
    max-width: 260px;
    padding: 15px;
  }
  .review-card .review-img { margin-bottom: 11px; }
  .review-card .stars { font-size: 10px; margin-bottom: 8px; }
  .review-card .review-text {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 10px;
    -webkit-line-clamp: 5;
  }
  .review-card .review-author { font-size: 10.5px; }

  .philosophy-img { max-width: 240px; }
}
