/* ==========================================================================
   host-home-catalog — Host 홈 화면의 catalog/카탈로그 패턴
   - cafe24 group programs 페이지 시각 구조 차용
   - 6 프로그램 카드 그리드 + 4단계 How-It-Works + 최종 CTA 박스
   - portal.css 변수/토큰 재사용
   ========================================================================== */

.host-catalog {
  background: var(--color-bg-ivory, #FAF7F2);
  padding: 4rem 1.5rem 2rem;
}

.host-catalog__intro {
  max-width: 880px;
  margin: 0 auto 3rem;
  text-align: center;
}

.host-catalog__eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent, #E8744F);
  margin: 0 0 1rem;
}

.host-catalog__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-bg-navy, #1E3A5F);
  margin: 0 0 1.25rem;
}

.host-catalog__lede {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-secondary, #4A4540);
  margin: 0;
}

/* ---- 6 프로그램 카드 그리드 ---- */
.host-catalog__grid {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.host-catalog__card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white, #FFFFFF);
  border: 1px solid var(--color-border-warm, #E5DFD8);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.host-catalog__card:hover,
.host-catalog__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.08);
  border-color: var(--color-accent, #E8744F);
  outline: none;
}

.host-catalog__card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-bg-ivory, #FAF7F2) 0%, var(--color-surface-sunken, #F5F1EB) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #1E3A5F);
}

.host-catalog__card-icon {
  width: 4rem;
  height: 4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.host-catalog__card:hover .host-catalog__card-icon,
.host-catalog__card:focus-visible .host-catalog__card-icon {
  opacity: 1;
  transform: scale(1.06);
}

.host-catalog__card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.host-catalog__card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-bg-navy, #1E3A5F);
  margin: 0;
}

.host-catalog__card-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-secondary, #4A4540);
  margin: 0;
  flex: 1;
}

.host-catalog__card-more {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent, #E8744F);
  margin-top: 0.75rem;
}

/* ---- How It Works 4단계 ---- */
.host-catalog__howto {
  background: var(--color-bg-white, #FFFFFF);
  padding: 4rem 1.5rem;
}

.host-catalog__howto-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-bg-navy, #1E3A5F);
  margin: 0 0 3rem;
}

.host-catalog__steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.host-catalog__step {
  text-align: center;
  padding: 1rem;
}

.host-catalog__step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-accent, #E8744F);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.host-catalog__step-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-bg-navy, #1E3A5F);
  margin: 0 0 0.5rem;
}

.host-catalog__step-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-secondary, #4A4540);
  margin: 0;
}

/* ---- 최종 CTA 박스 ---- */
.host-catalog__final-cta {
  max-width: 880px;
  margin: 4rem auto;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--color-bg-ivory);
  border-radius: 16px;
}

.host-catalog__final-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-bg-navy, #1E3A5F);
  margin: 0 0 1.5rem;
}

@media (max-width: 640px) {
  .host-catalog { padding: 2.5rem 1rem 1.5rem; }
  .host-catalog__howto { padding: 2.5rem 1rem; }
  .host-catalog__final-cta { margin: 2.5rem 1rem; padding: 2rem 1rem; }
}
