/* =========================================================
   참몸힐링명가 분당마사지 — style.css
   무드: 차분한 프리미엄 힐링 / 유기적 곡선 / 명가의 품격
   팔레트: 웜 아이보리 + 테라코타 클레이 + 소프트 세이지 + 에스프레소
   ========================================================= */

/* ---------- 1. 변수 ---------- */
:root {
  --cream:    #f6efe3;   /* 웜 아이보리 */
  --cream-2:  #efe6d6;
  --sand:     #e7dcc7;
  --clay:     #bf6b4a;   /* 테라코타 클레이 (포인트) */
  --clay-d:   #a4573a;
  --sage:     #7e8c6e;   /* 소프트 세이지 (보조) */
  --sage-d:   #5f6c52;
  --espresso: #322620;   /* 딥 브라운 */
  --espresso-2:#251c17;
  --text:     #3a2e27;
  --text-soft:#7a6c61;
  --line:     rgba(58, 46, 39, .14);
  --white:    #fffdf8;

  --font-sans:    'Noto Sans KR', sans-serif;
  --font-serif:   'Noto Serif KR', serif;
  --font-display: 'Cormorant Garamond', 'Noto Serif KR', serif;

  --maxw: 1220px;
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 70px rgba(50, 38, 32, .14);
  --shadow-sm: 0 14px 36px rgba(50, 38, 32, .10);
}

/* ---------- 2. 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.01em; line-height: 1.18; }

/* ---------- 유틸 ---------- */
.container { width: min(92%, var(--maxw)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--clay); }
.eyebrow.on-dark { color: var(--cream); }
.eyebrow.on-dark::before { background: rgba(246,239,227,.6); }

.serif { font-family: var(--font-serif); }
.h-xl { font-family: var(--font-serif); font-size: clamp(2.5rem, 6.5vw, 5.2rem); font-weight: 600; line-height: 1.14; }
.h-lg { font-family: var(--font-serif); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1.2; }
.lead { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--text-soft); max-width: 56ch; }
.italic { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--clay); }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.9rem; border-radius: 100px;
  font-weight: 600; font-size: .98rem;
  border: 1.5px solid var(--espresso); background: var(--espresso); color: var(--cream);
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn--clay { background: var(--clay); border-color: var(--clay); color: var(--white); }
.btn--clay:hover { box-shadow: 0 16px 36px rgba(191,107,74,.4); }
.btn--ghost { background: transparent; color: var(--espresso); }
.btn--ghost.on-dark { color: var(--cream); border-color: rgba(246,239,227,.4); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* =========================================================
   3. 스크롤 진행 바
   ========================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--clay); z-index: 1000; }

/* =========================================================
   4. 헤더
   ========================================================= */
.header { position: fixed; inset: 0 0 auto 0; z-index: 900; padding: 1.5rem 0; transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease); }
.header.scrolled { padding: .8rem 0; background: rgba(246,239,227,.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .7rem; }
.logo__mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--clay); color: var(--cream); font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem;
}
.logo__txt { line-height: 1.15; }
.logo__txt b { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.logo__txt small { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-soft); }

.nav__list { display: flex; align-items: center; gap: 2.1rem; }
.nav__list a { font-weight: 500; font-size: .98rem; position: relative; }
.nav__list a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--clay); transition: width .3s var(--ease); }
.nav__list a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2px; background: var(--espresso); transition: .35s var(--ease); }

/* =========================================================
   5. 히어로
   ========================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 9rem 0 5rem; overflow: hidden; }
.hero::before { /* 부드러운 광원 */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(191,107,74,.16), transparent 60%),
    radial-gradient(50% 45% at 12% 80%, rgba(126,140,110,.18), transparent 60%);
}
.hero__content { position: relative; z-index: 4; max-width: 820px; }
.hero__title { color: var(--espresso); margin: 1.6rem 0; }
.hero__sub { margin-bottom: 2.4rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* 유기적 떠다니는 블롭 (스크롤/마우스 패럴랙스 + 부드러운 모핑) */
.blob { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.blob i { display: block; width: 100%; height: 100%; animation: morph 14s ease-in-out infinite; }
.blob--1 { width: 360px; height: 360px; top: 6%; right: -40px; }
.blob--1 i { background: radial-gradient(circle at 35% 30%, rgba(191,107,74,.55), rgba(191,107,74,.12)); border-radius: 58% 42% 47% 53% / 49% 41% 59% 51%; }
.blob--2 { width: 240px; height: 240px; bottom: 8%; right: 22%; }
.blob--2 i { background: radial-gradient(circle at 40% 40%, rgba(126,140,110,.5), rgba(126,140,110,.1)); border-radius: 43% 57% 62% 38% / 56% 44% 56% 44%; animation-duration: 18s; }
.blob--3 { width: 130px; height: 130px; top: 32%; left: 50%; }
.blob--3 i { border: 1.5px solid rgba(191,107,74,.35); border-radius: 50%; }
@keyframes morph {
  0%,100% { border-radius: 58% 42% 47% 53% / 49% 41% 59% 51%; }
  50% { border-radius: 42% 58% 63% 37% / 41% 56% 44% 59%; }
}

/* 회전 인장(印章) */
.seal { position: absolute; z-index: 5; top: 16%; right: 8%; width: clamp(116px, 14vw, 170px); aspect-ratio: 1; will-change: transform; }
.seal svg text { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 2.5px; fill: var(--espresso); }
.seal__c { position: absolute; inset: 0; margin: auto; width: 42%; height: 42%; border-radius: 50%; background: var(--clay); color: var(--cream); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.5rem; }

.hero__scroll { position: absolute; left: 50%; bottom: 1.7rem; transform: translateX(-50%); z-index: 5; font-size: .72rem; letter-spacing: .25em; color: var(--text-soft); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hero__scroll .line { width: 1px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--clay); animation: drop 1.9s infinite; }
@keyframes drop { 0% { top: -50%; } 100% { top: 100%; } }

/* =========================================================
   6. 마퀴
   ========================================================= */
.marquee { background: var(--espresso); color: var(--cream); padding: 1.3rem 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 2.6rem; will-change: transform; animation: marq 26s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-style: italic; }
.marquee__track .dot { color: var(--clay); font-style: normal; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   7. 진입 애니메이션
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }

/* =========================================================
   8. About
   ========================================================= */
.about { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__visual { position: relative; }
.about__panel {
  position: relative; aspect-ratio: 4/5; overflow: hidden; box-shadow: var(--shadow);
  border-radius: 52% 48% 46% 54% / 44% 50% 50% 56%;
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-d) 100%);
  display: grid; place-items: center; color: var(--cream);
}
.about__panel .mk { font-family: var(--font-serif); font-size: clamp(3rem, 9vw, 6rem); text-align: center; line-height: 1.1; }
.about__panel .mk small { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; letter-spacing: .1em; color: rgba(246,239,227,.85); margin-top: .6rem; }
.about__chip { position: absolute; background: var(--white); color: var(--espresso); border-radius: 100px; padding: .8rem 1.3rem; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm); will-change: transform; display: flex; align-items: center; gap: .5rem; }
.about__chip i { color: var(--clay); font-style: normal; }
.about__chip--a { top: 6%; left: -14px; }
.about__chip--b { bottom: 8%; right: -14px; }

.about__body h2 { color: var(--espresso); margin-bottom: 1.5rem; }
.about__body .lead { margin-bottom: 1.4rem; }
.feature-list { display: grid; gap: 1.2rem; margin-top: 2rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list .ck { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: rgba(191,107,74,.12); color: var(--clay); display: grid; place-items: center; margin-top: 2px; }
.feature-list b { display: block; }
.feature-list p { color: var(--text-soft); font-size: .95rem; }

.stats { display: flex; gap: 2.6rem; margin-top: 2.6rem; flex-wrap: wrap; }
.stat b { font-family: var(--font-serif); font-size: clamp(2rem, 4.4vw, 2.9rem); color: var(--clay); display: block; line-height: 1; font-weight: 700; }
.stat b .u { color: var(--sage); font-size: 1.1rem; }
.stat small { color: var(--text-soft); font-size: .85rem; }

/* =========================================================
   9. 시그니처 프로그램 (카드 그리드)
   ========================================================= */
.programs { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--cream-2); }
.programs__head { text-align: center; max-width: 640px; margin: 0 auto 3.4rem; }
.programs__head h2 { color: var(--espresso); }
.programs__head .lead { margin-inline: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; }
.card {
  position: relative; background: var(--white); border-radius: var(--r-lg); padding: 2.4rem 2.1rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  overflow: hidden;
}
.card::before { content: ""; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(191,107,74,.08); transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { transform: scale(1.4); }
.card__num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--clay); }
.card .ic { font-size: 2rem; margin: .6rem 0 1rem; }
.card h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--espresso); margin-bottom: .6rem; }
.card p { color: var(--text-soft); font-size: .95rem; margin-bottom: 1.4rem; }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
.card__price { font-family: var(--font-serif); font-size: 1.2rem; color: var(--clay); font-weight: 700; }
.card__time { font-size: .85rem; color: var(--text-soft); }

/* =========================================================
   10. 분위기 (패럴랙스 이미지 스트립)
   ========================================================= */
.ambiance { padding: clamp(4rem, 9vw, 8rem) 0; overflow: hidden; }
.ambiance__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.ambiance__head h2 { color: var(--espresso); }
.amb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.amb { border-radius: var(--r-lg); min-height: 360px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 1.8rem; color: var(--cream); will-change: transform; }
.amb b { position: relative; z-index: 2; font-family: var(--font-serif); font-size: 1.3rem; }
.amb span { position: relative; z-index: 2; font-size: .88rem; color: rgba(246,239,227,.85); }
.amb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(37,28,23,.65)); }
.amb--1 { background: linear-gradient(160deg, var(--clay), var(--clay-d)); }
.amb--2 { background: linear-gradient(160deg, var(--sage), var(--sage-d)); margin-top: 2.4rem; }
.amb--3 { background: linear-gradient(160deg, var(--espresso), var(--espresso-2)); }
.amb__txt { position: relative; z-index: 2; }

/* =========================================================
   11. 힐링 여정 (스텝)
   ========================================================= */
.journey { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--cream-2); }
.journey__head { text-align: center; max-width: 600px; margin: 0 auto 3.4rem; }
.journey__head h2 { color: var(--espresso); }
.journey__head .lead { margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.step { background: var(--white); border-radius: var(--r-md); padding: 2rem 1.7rem; border: 1px solid var(--line); position: relative; }
.step .sn { font-family: var(--font-display); font-style: italic; font-size: 2.4rem; color: var(--clay); line-height: 1; }
.step h4 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--espresso); margin: .7rem 0 .5rem; }
.step p { color: var(--text-soft); font-size: .92rem; }

/* =========================================================
   12. CTA
   ========================================================= */
.cta { padding: clamp(4rem, 8vw, 7rem) 0; }
.cta__card { position: relative; overflow: hidden; background: var(--espresso); color: var(--cream); border-radius: var(--r-xl); padding: clamp(2.6rem, 6vw, 5rem); text-align: center; }
.cta__card .blob { z-index: 0; }
.cta__card .blob--c1 { width: 300px; height: 300px; top: -120px; right: -60px; }
.cta__card .blob--c1 i { background: radial-gradient(circle, rgba(191,107,74,.4), transparent 70%); border-radius: 50%; animation: none; }
.cta__card .blob--c2 { width: 260px; height: 260px; bottom: -120px; left: -50px; }
.cta__card .blob--c2 i { background: radial-gradient(circle, rgba(126,140,110,.4), transparent 70%); border-radius: 50%; animation: none; }
.cta__card h2 { color: var(--cream); margin-bottom: 1rem; position: relative; z-index: 2; }
.cta__card .lead { color: rgba(246,239,227,.85); margin: 0 auto 2rem; position: relative; z-index: 2; }
.cta__card .hero__actions { justify-content: center; position: relative; z-index: 2; }

/* =========================================================
   13. 오시는 길
   ========================================================= */
.contact { padding: clamp(5rem, 10vw, 9rem) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact__info h2 { color: var(--espresso); margin-bottom: 1.4rem; }
.info-list { margin-top: 2rem; display: grid; gap: 1.4rem; }
.info-item { display: flex; gap: 1.1rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--clay); color: var(--cream); display: grid; place-items: center; font-size: 1.2rem; }
.info-item h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .3rem; font-weight: 600; }
.info-item p, .info-item a { font-size: 1.08rem; color: var(--text); }
.info-item a { font-weight: 700; }
.info-item a:hover { color: var(--clay); }

.contact__map { border-radius: var(--r-lg); overflow: hidden; min-height: 380px; position: relative; background: linear-gradient(160deg, var(--sage), var(--sage-d)); color: var(--cream); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; }
.contact__map .grid-lines { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(246,239,227,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(246,239,227,.6) 1px, transparent 1px); background-size: 44px 44px; }
.contact__map .pin { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%); font-size: 2.4rem; will-change: transform; }
.contact__map b { position: relative; font-size: 1.15rem; font-family: var(--font-serif); }
.contact__map p { position: relative; color: rgba(246,239,227,.85); font-size: .95rem; }

/* =========================================================
   14. 푸터
   ========================================================= */
.footer { background: var(--espresso); color: rgba(246,239,227,.72); padding: 4.5rem 0 2.2rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(246,239,227,.14); }
.footer .logo__txt b { color: var(--cream); }
.footer__brand p { max-width: 32ch; font-size: .92rem; margin-top: 1.1rem; }
.footer__sns { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer__sns a { width: 42px; height: 42px; border-radius: 50%; background: rgba(246,239,227,.08); color: var(--cream); display: grid; place-items: center; font-size: .78rem; font-weight: 700; transition: background .3s, color .3s, transform .3s; }
.footer__sns a:hover { background: var(--clay); color: var(--white); transform: translateY(-3px); }
.footer__col h5 { color: var(--clay); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.footer__col a, .footer__col p { display: block; font-size: .92rem; margin-bottom: .6rem; color: rgba(246,239,227,.7); }
.footer__col a:hover { color: var(--clay); }
.footer__biz { margin-top: 2rem; font-size: .84rem; line-height: 1.9; color: rgba(246,239,227,.55); }
.footer__biz strong { color: rgba(246,239,227,.82); font-weight: 600; }
.footer__bottom { margin-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: rgba(246,239,227,.45); }

/* =========================================================
   15. 반응형
   ========================================================= */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 440px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .amb-grid { grid-template-columns: 1fr 1fr; }
  .amb--2 { margin-top: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80%, 320px); background: var(--espresso-2); color: var(--cream); transform: translateX(100%); transition: transform .45s var(--ease); padding: 6rem 2rem 2rem; box-shadow: -20px 0 60px rgba(0,0,0,.35); }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .nav__list a { color: var(--cream); font-size: 1.15rem; }
  .nav__toggle { display: flex; z-index: 950; }
  .nav__toggle.active span { background: var(--cream); }
  .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .seal { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .amb-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .stats { gap: 1.6rem; }
}

/* 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .seal, .about__chip, .amb, .pin { transform: none !important; }
  .blob i { animation: none !important; }
}
