/* ══════════════════════════════════════════════════
   나비효과 에스테틱 — 2안 정통 홈페이지
   Palette: Ivory #faf8f5 · Charcoal #262a29
            Teal #3AA192 / #59C2B7 · Gold #C9974C
   Type: Noto Serif KR (display) + Pretendard (body)
   ══════════════════════════════════════════════════ */
:root {
  --ivory: #faf8f5;
  --ivory-deep: #f2eee8;
  --char: #262a29;
  --char-soft: #55605d;
  --teal: #3aa192;
  --teal-light: #59c2b7;
  --teal-pale: #e5f3f1;
  --gold: #c9974c;
  --line: #e4ded4;
  --sp-section: clamp(72px, 12vw, 140px);
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory); color: var(--char);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px; line-height: 1.7; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.serif { font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif; font-weight: 600; letter-spacing: -.02em; }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.container.narrow { width: min(760px, 92vw); }
.center { text-align: center; }

/* ── 타이포 공통 ── */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow.light { color: #f0d9b8; }
h1.serif { font-size: clamp(34px, 6vw, 64px); line-height: 1.25; }
h2.serif { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.35; margin-bottom: 18px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--char-soft); line-height: 1.85; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 30px; border-radius: 28px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: linear-gradient(135deg, var(--teal-light), var(--teal)); color: #fff; box-shadow: 0 8px 24px rgba(58,161,146,.28); }
.btn-solid:hover { box-shadow: 0 12px 30px rgba(58,161,146,.38); }
.btn-line { border: 1.5px solid var(--char); color: var(--char); background: transparent; }
.btn-line:hover { background: var(--char); color: var(--ivory); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-wide { width: 100%; }

/* ── 헤더 ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, box-shadow .35s;
}
.site-header.solid, body:not(.home) .site-header {
  background: rgba(250,248,245,.92); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: min(1320px, 94vw); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  height: 78px;
}
.header-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.header-logo img { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 17px; letter-spacing: .02em; }
.logo-text em { font-style: normal; font-size: 11px; letter-spacing: .28em; color: var(--gold); }
body.home .site-header:not(.solid) { color: #fff; }
body.home .site-header:not(.solid) .logo-text em { color: #f0d9b8; }

.header-nav { display: flex; align-items: center; gap: 30px; }
.header-nav a { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.nav-ko { font-size: 15px; font-weight: 600; }
.nav-en { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .55; }
.header-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; width: 0; height: 2px;
  background: var(--gold); transition: width .3s var(--ease), left .3s var(--ease);
}
.header-nav a:not(.nav-cta):hover::after, .header-nav a.on::after { left: 0; width: 100%; }
.nav-cta {
  height: 42px; padding: 0 22px; border-radius: 22px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal)); color: #fff !important;
  font-size: 14px; font-weight: 700; flex-direction: row !important;
}
.header-phone { font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }

@media (max-width: 960px) {
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .header-nav {
    position: fixed; inset: 78px 0 auto 0; z-index: 99;
    flex-direction: column; gap: 0; padding: 12px 0 20px;
    background: rgba(250,248,245,.98); backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    transform: translateY(-130%); transition: transform .4s var(--ease);
    color: var(--char);
  }
  .header-nav.open { transform: translateY(0); }
  .header-nav a { padding: 13px 0; }
  .nav-cta { margin-top: 10px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── 히어로 ── */
.hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -40px; background-size: cover; background-position: center 30%;
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,26,25,.55) 0%, rgba(20,26,25,.25) 45%, rgba(20,26,25,.65) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: 40px; }
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
  color: #f0d9b8; margin-bottom: 22px;
  opacity: 0; animation: fadeUp 1s .2s var(--ease) forwards;
}
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.35); opacity: 0; animation: fadeUp 1s .45s var(--ease) forwards; }
.hero-sub {
  margin-top: 22px; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.8; color: rgba(255,255,255,.88);
  opacity: 0; animation: fadeUp 1s .7s var(--ease) forwards;
}
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s .95s var(--ease) forwards; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  padding-bottom: 34px;
}
.hero-scroll::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 26px;
  background: rgba(255,255,255,.6); animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ── 섹션 공통 ── */
.section { padding: var(--sp-section) 0; }
.section.alt { background: var(--ivory-deep); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.section-head h2 { margin-bottom: 0; }
.more-link { font-size: 14px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* 스크롤 리빌 — JS 활성 시에만 숨김 (JS 실패 시 콘텐츠 보임 보장) */
html.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ── 철학 ── */
.philosophy .lead { margin-top: 8px; }
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-top: clamp(40px, 6vw, 70px);
}
.value-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.value-item:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(38,42,41,.09); }
.value-num { font-family: 'Noto Serif KR', serif; font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.value-item h3 { font-size: 18px; margin: 12px 0 8px; }
.value-item p { font-size: 14.5px; color: var(--char-soft); }

/* ── 시그니처 프로그램 ── */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.program-card { display: flex; flex-direction: column; }
.program-thumb {
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
  background: var(--teal-pale);
}
.program-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.program-card:hover .program-thumb img { transform: scale(1.06); }
.program-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.program-card h3 { font-size: 19px; margin: 6px 0 8px; }
.program-desc { font-size: 14px; color: var(--char-soft); line-height: 1.65; }
.program-more { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--teal); }
.program-card:hover .program-more { text-decoration: underline; }

/* ── 원장 ── */
.director-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.director-media { position: relative; padding-bottom: 60px; }
.director-photo { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(38,42,41,.18); }
.director-cert {
  position: absolute; right: -4%; bottom: 0; width: 52%;
  border-radius: 12px; border: 5px solid #fff; box-shadow: 0 16px 40px rgba(38,42,41,.22);
  transform: rotate(2.5deg);
}
.director-text .lead { margin-bottom: 20px; font-family: 'Noto Serif KR', serif; color: var(--teal); }
.director-list { list-style: none; margin-bottom: 28px; }
.director-list li { padding: 9px 0 9px 26px; position: relative; font-size: 15px; border-bottom: 1px dashed var(--line); }
.director-list li::before { content: '◆'; position: absolute; left: 2px; font-size: 9px; top: 15px; color: var(--gold); }
.director-list a { color: var(--teal); font-weight: 700; }

/* ── 미디어 ── */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.media-card { text-align: left; }
.media-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #101413;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .7s var(--ease), opacity .4s; }
.media-card:hover .media-thumb img { transform: scale(1.05); opacity: 1; }
.media-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(250,248,245,.9); color: var(--teal); font-size: 17px; font-style: normal;
  padding-left: 4px; transition: transform .3s var(--ease), background .3s;
}
.media-card:hover .media-play { transform: translate(-50%, -50%) scale(1.12); background: #fff; }
.media-title {
  display: block; margin-top: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.5;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* 비디오 모달 */
.video-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,13,.88); display: flex; align-items: center; justify-content: center; padding: 4vw; }
.video-modal[hidden] { display: none; }
.video-modal-inner { position: relative; width: min(960px, 100%); }
.video-frame { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-close {
  position: absolute; top: -48px; right: 0; color: #fff; font-size: 34px; line-height: 1;
  opacity: .8;
}
.video-close:hover { opacity: 1; }

/* ── 결과/스토리 ── */
.results-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.results-media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.results-media img { border-radius: var(--radius); box-shadow: 0 18px 44px rgba(38,42,41,.14); }
.results-media img:nth-child(2) { margin-top: 44px; }

/* ── 저널 ── */
.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.journal-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.journal-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38,42,41,.1); border-color: var(--teal-light); }
.journal-date { font-size: 12px; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.journal-item h3 { font-size: 16.5px; line-height: 1.55; font-weight: 600; }
.journal-more { font-size: 13px; font-weight: 700; color: var(--teal); margin-top: auto; }

/* ── CTA 밴드 ── */
.cta-band {
  background: linear-gradient(120deg, #2e7f74, var(--teal) 55%, var(--teal-light));
  color: #fff; text-align: center; padding: clamp(60px, 9vw, 110px) 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '🦋'; position: absolute; right: 6%; top: 12%; font-size: 120px; opacity: .12;
  transform: rotate(12deg);
}
.cta-eyebrow { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: #ffe9c9; font-weight: 700; margin-bottom: 16px; }
.cta-band h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.4; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-solid { background: #fff; color: var(--teal); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cta-band .btn-line { border-color: rgba(255,255,255,.65); color: #fff; }
.cta-band .btn-line:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── 푸터 ── */
.site-footer { background: #1e2322; color: rgba(255,255,255,.82); padding: clamp(50px, 7vw, 80px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; margin-bottom: 16px; }
.footer-slogan { font-size: 17px; color: #cfe8e4; line-height: 1.7; }
.site-footer h3 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.site-footer h3 + p { margin-bottom: 18px; font-size: 14.5px; }
.footer-info a, .footer-links a { color: var(--teal-light); font-weight: 600; font-size: 14px; }
.footer-sns { display: flex; gap: 16px; margin-top: 8px; }
.footer-copy { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.4); border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; }

/* ── 서브 페이지 히어로 ── */
.page-hero {
  position: relative; padding: 190px 0 90px;
  background-size: cover; background-position: center 35%;
  color: #fff;
}
.page-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,24,23,.62), rgba(18,24,23,.45)); }
.page-hero .container { position: relative; z-index: 2; }

/* ── 프로그램 상세 ── */
.program-detail {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 70px);
  align-items: center; padding: clamp(36px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}
.program-detail:last-of-type { border-bottom: 0; }
.program-detail:nth-child(even) .program-detail-media { order: 2; }
.program-detail-media img { border-radius: var(--radius); box-shadow: 0 20px 48px rgba(38,42,41,.14); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.program-detail-text p { color: var(--char-soft); margin-bottom: 10px; }
.program-price { font-weight: 800; color: var(--gold); font-size: 17px; }
.muted-note { font-size: 13.5px; color: #96917f; }
.program-detail-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.guide-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 20px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.7;
}

/* ── 갤러리 ── */
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry-item { break-inside: avoid; margin-bottom: 20px; position: relative; border-radius: var(--radius); overflow: hidden; }
.masonry-item img { width: 100%; transition: transform .7s var(--ease); }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px; font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
}

/* ── 상담·예약 ── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 34px; }
.contact-method {
  display: flex; align-items: baseline; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.contact-method:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(38,42,41,.1); border-color: var(--teal-light); }
.contact-method strong { font-size: 16px; }
.contact-method span { font-size: 14px; color: var(--char-soft); }
.branch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.branch-card { background: var(--teal-pale); border-radius: var(--radius); padding: 24px; font-size: 14.5px; }
.branch-card h3 { font-size: 16px; margin-bottom: 8px; }
.branch-card a { color: var(--teal); font-weight: 700; font-size: 13.5px; }
.branch-card p { margin-bottom: 6px; }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 4vw, 44px); }
.contact-form-wrap h2 { margin-bottom: 6px; }
.inquiry-form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.inquiry-form label { font-size: 13px; font-weight: 700; color: var(--char-soft); display: flex; flex-direction: column; gap: 7px; }
.inquiry-form input, .inquiry-form textarea {
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 15px; background: var(--ivory);
  transition: border-color .25s;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--teal-light); }
.hp-field { position: absolute !important; left: -9999px !important; height: 0 !important; opacity: 0; }
.form-result { font-size: 14px; text-align: center; color: #2f8f5b; }
.form-result.err { color: #cc4a4a; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .value-grid { grid-template-columns: 1fr; }
  .director-grid, .results-grid, .contact-grid { grid-template-columns: 1fr; }
  .program-detail { grid-template-columns: 1fr; }
  .program-detail:nth-child(even) .program-detail-media { order: 0; }
  .journal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .media-grid { grid-template-columns: 1fr; }
  .branch-cards { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1; min-width: 150px; }
}
