/* ============================================================
   COMPONENTS — atomic, reusable.
   .btn, .card, .pill — composable via modifier classes.
   ============================================================ */

/* ----- Button ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-base), color var(--t-base),
              transform var(--t-base), box-shadow var(--t-base),
              border-color var(--t-base);
  white-space: nowrap;
}

.btn svg {
  width: 18px; height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* 앱 다운로드 버튼은 사이트 전체에서 하나의 모양이다 — 검정.
   전에는 같은 링크(onelink)를 가리키는 버튼이 네 가지 모양이었다:
   네비는 초록 작은 것, 히어로는 초록 큰 것, 랜딩 마지막은 금색, 푸터는 검정.
   기준을 푸터의 검정으로 잡았다.
   .btn-primary / .btn-outline 은 마크업 35개 파일에 흩어져 있다. 클래스명을
   일괄 교체하는 대신 여기서 한 모양으로 모은다. 새로 쓰는 곳은 .btn-dark 를
   쓸 것. */
.btn-primary,
.btn-outline,
.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
  box-shadow: none;
}
.btn-primary:hover,
.btn-outline:hover,
.btn-dark:hover {
  background: var(--black);
  color: var(--paper);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: none;
}

/* 랜딩 마지막 CTA 는 배경이 --ink 인 검은 띠 위에 앉는다. 거기서만 같은
   버튼을 뒤집는다 — 검정 위의 검정은 버튼이 사라지는 것과 같다. */
.btn-gold {
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}
.btn-gold:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--forest);
  color: var(--forest);
}

/* Sizes */
.btn-sm  { padding: 10px 18px; font-size: var(--text-base); gap: 8px; }
.btn-sm svg { width: 16px; height: 16px; }
/* 초록 그림자(--shadow-blue-lg)는 초록 버튼의 것이었다. 검정 버튼 아래에서는
   초록 번짐으로만 보인다. */
.btn-lg  { padding: 17px 32px; font-size: var(--text-md); }

.btn-app {
  padding: 11px 20px;
  font-size: var(--text-sm);
  gap: 8px;
}
.btn-app svg { width: 16px; height: 16px; }

/* ----- Pill / Badge ------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
}

.pill-primary {
  background: var(--forest);
  color: var(--paper);
}

/* Eyebrow badge — light green surface, uppercase */
.pill-soft {
  background: var(--forest-tint);
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  padding: 7px 14px;
}

.pill-glass {
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--stone);
  cursor: pointer;
  padding: 7px 13px;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: border-color var(--t-base), color var(--t-base);
}
.pill-glass:hover { border-color: var(--forest); color: var(--forest); }

.pill-dot::before {
  content: '';
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.pill-primary.pill-dot::before { background: var(--paper); }
.pill-soft.pill-dot::before    { background: var(--gold); }

/* Trust badge — white surface, plain case (not an uppercase eyebrow) */
.hero-badge {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
}
.hero-badge.pill-dot::before { background: var(--gold); }

.pill svg { width: 14px; height: 14px; }

/* ----- Card -------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-lg { border-radius: var(--radius-xl); }

.card-soft {
  border-color: var(--border-tinted);
  box-shadow: var(--shadow-card);
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
}
.card-image-wide { aspect-ratio: 16 / 11; }
.card-image img,
.card-image video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 24px 24px 28px;
  text-align: left;
}

/* ----- Heading utilities ------------------------------------- */
.heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.heading-1 { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.06; }
.heading-2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.22; letter-spacing: -0.015em; }
.heading-3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.015em; }

.accent { color: var(--gold); }

/* ----- Section eyebrow ---------------------------------------
   섹션 위의 작은 라벨. 랜딩 전용이었는데 /{locale}/tours/ 와 매거진도
   같은 라벨을 쓴다 — pages/index.css 에 남겨두면 새 페이지에서 스타일이
   통째로 빠진 채 렌더된다(실제로 그렇게 나왔다). */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow-gold { color: var(--gold); }

/* ----- Tour card --------------------------------------------
   랜딩의 TOURS 섹션과 /{locale}/tours/ 목록 페이지가 함께 쓴다. 두 곳이
   같은 카드를 그리므로 페이지 CSS 가 아니라 컴포넌트다 — pages/index.css
   에 두고 목록 페이지에서 복사하면 둘이 갈라진다. 규칙은 옮기기만 했고
   값은 바꾸지 않았다(랜딩 렌더링 동일).
   본문 색은 --stone 을 쓴다. --stone-2 는 paper 위에서 대비가 3.46:1 이라
   WCAG AA(4.5:1) 에 못 미친다 — f5f10b9 가 이 파일 전체에서 걷어내고
   tokens.css 에 "텍스트가 아닌 장식 용도로만" 이라고 적어 두었다.
   이 섹션은 그 커밋 이전에 쓰여 --stone-2 를 텍스트에 쓰고 있었다. */
.tours { background: var(--paper); padding: 96px 0; }
.tours-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.tours-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
  margin: 16px 0 0;
}
.tours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  color: inherit;
  transition: transform var(--t-base) var(--t-ease),
              box-shadow var(--t-base) var(--t-ease),
              border-color var(--t-base);
}
a.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(212, 175, 55, 0.55);
}
.tour-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  background: var(--gold);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.tour-card-image {
  aspect-ratio: 4 / 3;
  background: var(--forest-tint);
}
.tour-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tour-card-body { padding: 20px 20px 24px; }
.tour-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.tour-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 4px;
}
.tour-stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--forest);
}
.tour-stat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--stone);
}
.tour-meta {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--stone);
  margin: 0;
}
.tours-foot {
  text-align: center;
  margin-top: 36px;
  font-size: var(--text-base);
  color: var(--stone);
}

@media (max-width: 1024px) {
  .tours-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  .tours-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tour-badge { top: 8px; left: 8px; font-size: 10px; padding: 4px 8px; }
  .tour-card-body { padding: 12px 12px 14px; }
  .tour-name { font-size: 14px; margin-bottom: 8px; }
  .tour-stat { gap: 4px; margin-bottom: 2px; }
  .tour-stat-num { font-size: 19px; }
  .tour-stat-label { font-size: 10px; }
  .tour-meta { font-size: 10px; line-height: 1.4; }
}
