@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Noto+Serif+KR:wght@400;600&family=Noto+Sans+KR:wght@400;500;700;800&display=swap');

:root {
  --primary:       #2A2A2A;
  --primary-mid:   #4A4A4A;
  --primary-light: #7A7A7A;
  --gold:          #D4AF37;
  --gold-light:    #EBD9A0;
  --bg:            #FDFBF7;
  --surface:       #F7F4EE;
  --surface-alt:   #EFE9DD;
  --dark:          #2A2A2A;
  --body:          #555555;
  --muted:         #8A8A8A;
  --border:        rgba(42,42,42,0.12);
  --border-gold:   rgba(212,175,55,0.32);
  --white:         #FFFFFF;
  --font-display:  'Cormorant Garamond', 'Noto Serif KR', serif;
  --font-body:     'Noto Sans KR', sans-serif;
  --radius:        14px;
  --radius-sm:     8px;
  --section-py:    6rem;
  --px:            clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body, p, h1, h2, h3, h4, h5, h6, li, td, th, a, span, div, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

table { border-collapse: collapse; width: 100%; }

.table-wrap { overflow-x: auto; }

h1, h2, h3 { font-family: var(--font-display); color: var(--dark); line-height: 1.15; letter-spacing: -0.01em; font-weight: 600; }

a { color: var(--primary); }

.eyebrow {
  display: block; text-align: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.dp-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; counter-reset: card-n; }
.dp-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: card-n; }
.dp-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; align-items: center; }

@media (max-width: 768px) {
  .dp-g2, .dp-g3 { grid-template-columns: 1fr; }
  body { padding-bottom: 64px; }
}
@media (max-width: 600px) {
  .dp-stat3 { grid-template-columns: 1fr; gap: 16px; }
}

/* 헤더/내비 — 히어로 위에서는 투명, 스크롤하면 불투명 (메인페이지와 동일한 톤) */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.35rem var(--px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  padding: 0.85rem var(--px);
  background: rgba(253,251,250,0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(42,42,42,0.06);
}
.logo { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--white); text-decoration: none; transition: color .3s ease; }
.site-header.scrolled .logo { color: var(--dark); }
.hdr-nav { display: flex; gap: 2rem; align-items: center; }
.hdr-nav a {
  color: var(--white); text-decoration: none; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; position: relative; padding-bottom: 3px;
  transition: color .3s ease;
}
.site-header.scrolled .hdr-nav a { color: var(--body); }
.hdr-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--gold);
  transition: width .35s cubic-bezier(.16,1,.3,1);
}
.hdr-nav a:hover { color: var(--gold); }
.site-header.scrolled .hdr-nav a:hover { color: var(--primary); }
.hdr-nav a:hover::after { width: 100%; }
.hdr-cta { background: var(--gold); color: var(--dark) !important; padding: 0.65rem 1.4rem; border-radius: 3px; }
.site-header.scrolled .hdr-cta { background: var(--primary); color: var(--white) !important; }
.hdr-cta::after { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: background .3s ease; }
.site-header.scrolled .hamburger span { background: var(--dark); }
#mob-nav { display: none; }

@media (max-width: 768px) {
  .hdr-nav { display: none; }
  .hamburger { display: flex; }
  #mob-nav.open {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: 0 0 auto 0;
    background: var(--bg); padding: 5rem 2rem 2rem; z-index: 99;
  }
  #mob-nav.open a { padding: 1rem 0; border-bottom: 1px solid var(--border); color: var(--body); text-decoration: none; }
}

/* 히어로 — 실사진 위 다크 오버레이 (메인페이지와 동일한 톤) */
.hero {
  position: relative; min-height: 72vh; display: flex; align-items: center; justify-content: center;
  padding: 8rem var(--px) 5rem; text-align: center;
  background:
    linear-gradient(180deg, rgba(42,42,42,0.45) 0%, rgba(42,42,42,0.6) 100%),
    var(--hero-bg, linear-gradient(160deg, var(--bg) 0%, var(--surface) 45%, var(--gold-light) 100%)) center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 1.4rem; z-index: 1; pointer-events: none;
  border: 1px solid rgba(212,175,55,0.5);
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.hero .eyebrow { color: var(--gold); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero h1 {
  color: var(--white); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 auto 1.25rem; position: relative;
  text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.4);
}
.hero h1::after {
  content: ''; display: block; width: 3.5rem; height: 2px; background: var(--gold); margin: 1.5rem auto 0;
}
.hero p { color: rgba(255,255,255,0.88); text-shadow: 0 1px 8px rgba(0,0,0,.4); font-size: 1.08rem; line-height: 1.8; margin: 1.5rem auto 2.25rem; max-width: 460px; }

/* 카드 */
.card {
  position: relative; overflow: hidden; counter-increment: card-n;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 2.25rem 1.85rem 1.85rem; text-decoration: none; color: inherit; display: block;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.card:not(.cta-band)::before {
  content: counter(card-n, decimal-leading-zero);
  position: absolute; top: 1.1rem; right: 1.35rem; z-index: 1;
  font-family: var(--font-display); font-style: italic; font-size: 1.6rem;
  color: var(--gold-light); transition: color .3s ease;
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: 0; background: var(--primary);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.77,0,.175,1);
}
.card:not(.cta-band):hover {
  border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(42,42,42,0.14);
}
.card:not(.cta-band):hover::after { transform: scaleY(1); }
.card:not(.cta-band):hover::before { color: rgba(232,217,192,0.45); }
.card > * { position: relative; z-index: 1; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; transition: color .3s ease; }
.card p { transition: color .3s ease; }
.card:not(.cta-band):hover h3 { color: var(--white); }
.card:not(.cta-band):hover p { color: rgba(255,255,255,0.8); }
a.card:not(.cta-band) { font-family: var(--font-display); font-size: 1.05rem; color: var(--dark); font-weight: 600; }
a.card:not(.cta-band):hover { color: var(--white); }

.gallery-card { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.gallery-card img {
  aspect-ratio: 4/3; object-fit: cover; filter: saturate(0.92);
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter .5s ease;
}
.gallery-card:hover img { transform: scale(1.07); filter: saturate(1.05); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* 섹션 공통 */
section { padding: var(--section-py) var(--px); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 2.5rem; text-align: center; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 3rem; height: 2px; background: var(--gold); margin: 1.1rem auto 0;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.4rem 0; font-size: 1.1rem; font-weight: 500; color: var(--dark);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); transition: color .3s ease;
}
.faq-q:hover { color: var(--primary); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.25rem; }

/* 프로세스/타임라인 */
.proc-step { display: flex; gap: 1.5rem; align-items: flex-start; position: relative; padding: 1.5rem 0; }
.proc-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.1rem;
}
@media (max-width: 768px) { .proc-step { flex-direction: column; gap: 10px; padding: 24px 0; } }

/* 인사이트 콜아웃 */
.insight-box {
  border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 1.75rem; font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  color: var(--dark); line-height: 1.7; margin: 2rem 0;
}
.insight-box strong { font-style: normal; color: var(--primary); }

/* CTA */
.cta-band {
  background: var(--dark); color: var(--white); text-align: center; border-radius: var(--radius);
  padding: 4rem 2rem;
}
.cta-band::before {
  content: 'VITAL VIBES'; position: absolute; top: 50%; left: 50%; z-index: 0;
  transform: translate(-50%, -50%); font-family: var(--font-display); font-style: italic;
  font-size: clamp(3rem, 14vw, 8rem); color: rgba(255,255,255,0.035); white-space: nowrap;
  pointer-events: none; user-select: none; letter-spacing: -0.02em;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.cta-band h2::after { content: ''; display: block; width: 3rem; height: 1px; background: var(--gold); margin: 1.25rem auto 0; }
.cta-band p { color: rgba(255,255,255,0.68); margin-top: 1.25rem; }
.cta-band .btn { background: var(--gold); color: var(--dark); margin-top: 0.5rem; }
.cta-band .btn::before { background: var(--gold-light); }

/* 스크롤 리빌 */
.anim-fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.anim-fade-up.is-visible { opacity: 1; transform: translateY(0); }
.anim-fade-up[data-delay="2"] { transition-delay: .1s; }
.anim-fade-up[data-delay="3"] { transition-delay: .2s; }
.anim-fade-up[data-delay="4"] { transition-delay: .3s; }
.anim-fade-up[data-delay="5"] { transition-delay: .4s; }

/* 커서 (마우스 이펙트 비활성화) */
.cursor-dot, .cursor-ring { display: none; }

/* 모바일 하단 스티키 CTA */
#mob-bar { display: none; }
@media (max-width: 768px) {
  #mob-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--dark); padding: 0.85rem var(--px);
  }
  #mob-bar a { flex: 1; text-align: center; color: var(--white); text-decoration: none; font-weight: 600; }
}
#float-cta { position: fixed; right: 2rem; bottom: 2rem; z-index: 80; }
@media (max-width: 768px) { #float-cta { display: none; } }

/* 푸터 — 메인페이지와 동일한 다크 차콜 톤 */
.site-footer { background: var(--dark); padding: 4rem var(--px) 2rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); text-align: center; }
.site-footer a { color: rgba(255,255,255,0.7); transition: color .3s ease; }
.site-footer a:hover { color: var(--gold); }
.footer-cta { max-width: 640px; margin: 0 auto 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-cta h2 { font-family: var(--font-display); font-style: italic; color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 1.5rem; }
.footer-info p { margin: 0.6rem 0; }
.footer-legal { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* 404 페이지 */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--px);
  gap: 1.5rem;
}
.notfound .code { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 6rem); color: var(--primary); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; position: relative; overflow: hidden; z-index: 1;
  padding: 0.95rem 2.1rem;
  border-radius: 3px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .3s ease, box-shadow .3s ease;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--dark);
  transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.77,0,.175,1);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { box-shadow: 0 10px 24px rgba(42,42,42,0.22); }
