/* =====================================================================
   도화연 桃花緣 — 묵화(墨畵) + 복숭아빛 디자인 시스템
   Display: Hahmlet  ·  Body: Pretendard
   ===================================================================== */

:root {
  /* ── 색 ── */
  --ink:        #1a1726;   /* 먹빛 자두 — 본문/다크섹션 */
  --ink-soft:   #2c2738;
  --paper:      #fbf7f4;   /* 따뜻한 한지 */
  --paper-2:    #f4ece6;   /* 한 톤 짙은 한지 */
  --plum:       #6b5b73;   /* 보조 텍스트 */
  --dohwa:      #e8869b;   /* 도화색 — 복숭아꽃 */
  --dohwa-deep: #d4607c;
  --crimson:    #b23a56;   /* 강조/링크/인장 */
  --crimson-d:  #8e2c44;
  --gold:       #c9a26b;   /* 금니 헤어라인 */
  --gold-soft:  #e3d3b6;
  --line:       #e7ddd4;
  --ok:         #2f7d5b;

  --maxw: 760px;
  --maxw-wide: 1080px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(26,23,38,.04), 0 8px 30px rgba(26,23,38,.06);
  --shadow-lg: 0 20px 60px rgba(26,23,38,.14);

  --f-display: "Hahmlet", serif;
  --f-body: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-han: "Hahmlet", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
@media (max-width:560px){ body{ font-size:16px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 2px; }

/* ── 레이아웃 ── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--maxw-wide); }
.han { font-family: var(--f-han); color: var(--gold); }
.eyebrow {
  font-family: var(--f-han); font-size: .82rem; letter-spacing: .28em;
  color: var(--crimson); text-transform: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: .55em; margin: 0 0 .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }

/* ── 헤더 ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,244,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(26,23,38,.07); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: baseline; gap: .5rem; font-family: var(--f-display); font-weight: 700; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .seal { color: var(--crimson); font-size: .95em; }
.brand small { font-family: var(--f-han); color: var(--gold); font-size: .62em; letter-spacing: .12em; font-weight: 600; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: .94rem; font-weight: 500; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: .5rem 1rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600;
}
.nav-cta:hover { background: var(--crimson); text-decoration: none; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .25s; }
#mobile-menu { display: none; }
@media (max-width: 820px){
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  #mobile-menu[hidden] { display: none; }
  #mobile-menu { display: block; border-bottom: 1px solid var(--line); background: var(--paper); padding: .5rem 0 1rem; }
  #mobile-menu a { display: block; padding: .7rem 22px; color: var(--ink-soft); font-weight: 500; }
  #mobile-menu a:hover { background: var(--paper-2); text-decoration: none; }
}

/* ── 히어로 ── */
.hero { position: relative; padding: 64px 0 30px; text-align: center; overflow: hidden; }
.hero::before {
  content: "桃花"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-46%); font-family: var(--f-han);
  font-size: clamp(180px, 42vw, 420px); color: rgba(232,134,155,.07);
  z-index: 0; pointer-events: none; line-height: 1; white-space: nowrap; font-weight: 700;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 3.2rem); line-height: 1.18; letter-spacing: -.03em;
  margin: .2rem 0 .9rem; color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--crimson); position: relative; }
.hero .lead { font-size: 1.08rem; color: var(--plum); max-width: 30em; margin: 0 auto 1.8rem; line-height: 1.7; }
.petal { color: var(--dohwa); }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-body); font-weight: 700; font-size: 1.02rem;
  padding: .95rem 2rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--crimson); color: #fff; transition: transform .15s, background .2s, box-shadow .2s;
  box-shadow: 0 8px 22px rgba(178,58,86,.26);
}
.btn:hover { background: var(--crimson-d); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.1rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ── 진단 폼 ── */
.test-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 30px 26px; margin: 0 auto; max-width: 540px; text-align: left;
  position: relative;
}
.test-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--dohwa), var(--crimson)); border-radius: 12px 12px 0 0;
}
.test-card h2 { font-family: var(--f-display); font-size: 1.4rem; margin: .2rem 0 .3rem; }
.test-card .sub { color: var(--plum); font-size: .95rem; margin: 0 0 1.4rem; }
.field { margin-bottom: 1rem; }
.field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink-soft); }
.row { display: grid; gap: .6rem; }
.row-3 { grid-template-columns: 1.2fr 1fr 1fr; }
.row-2 { grid-template-columns: 1fr 1fr; }
input[type=text], input[type=number], input[type=tel], input[type=email], select {
  width: 100%; padding: .8rem .85rem; font-family: var(--f-body); font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { outline: none; border-color: var(--dohwa-deep); box-shadow: 0 0 0 3px rgba(232,134,155,.18); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b5b73' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
.seg { display: flex; gap: .5rem; }
.seg label {
  flex: 1; text-align: center; padding: .7rem; border: 1.5px solid var(--line); border-radius: 8px;
  cursor: pointer; font-weight: 600; color: var(--plum); background: var(--paper); transition: .15s; font-size: .95rem;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--crimson); }
.seg label:has(input:checked) { border-color: var(--crimson); background: #fff; color: var(--crimson); box-shadow: 0 0 0 3px rgba(178,58,86,.1); }
.check-row { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--plum); margin-top: .5rem; }
.check-row input { width: auto; }
.alert-box { background: #fdecef; border: 1px solid var(--dohwa); color: var(--crimson-d); padding: .7rem .9rem; border-radius: 8px; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.form-note { font-size: .82rem; color: var(--plum); margin-top: .8rem; line-height: 1.6; }

/* ── 결과: 낙관 인장 ── */
.result-stage { text-align: center; padding: 28px 0; }
.seal {
  --seal-c: var(--crimson);
  display: inline-grid; place-items: center; width: 168px; height: 168px;
  border: 5px double var(--seal-c); border-radius: 14px;
  color: var(--seal-c); font-family: var(--f-han); font-weight: 800;
  transform: rotate(-7deg); position: relative; background: rgba(255,255,255,.4);
  box-shadow: inset 0 0 0 2px rgba(178,58,86,.12);
  animation: stamp .5s cubic-bezier(.2,1.4,.4,1) both;
}
.seal.no { --seal-c: var(--plum); }
.seal .big { font-size: 2.6rem; line-height: 1; }
.seal .small { font-size: .85rem; letter-spacing: .2em; margin-top: .3rem; }
@keyframes stamp { 0%{ opacity:0; transform: rotate(-7deg) scale(1.5);} 60%{opacity:1;} 100%{ opacity:1; transform: rotate(-7deg) scale(1);} }
.pillars-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; max-width: 380px; margin: 22px auto; }
.pillar-cell { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 4px; text-align: center; }
.pillar-cell .lab { font-size: .72rem; color: var(--plum); margin-bottom: 4px; }
.pillar-cell .gan, .pillar-cell .ji { font-family: var(--f-han); font-size: 1.5rem; line-height: 1.15; }
.pillar-cell.hit { border-color: var(--crimson); background: #fff6f8; box-shadow: 0 0 0 2px rgba(178,58,86,.12); }
.pillar-cell.hit .ji { color: var(--crimson); }

/* ── 섹션/카드 ── */
.section { padding: 56px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #f3eee9; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lead, .section.dark p { color: #cfc6cf; }
.section h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem,4.2vw,2.05rem); letter-spacing: -.025em; line-height: 1.3; margin: 0 0 .5rem; }
.section .lead { color: var(--plum); font-size: 1.05rem; margin: 0 0 1.6rem; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); margin-top: 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card .ji-mark { font-family: var(--f-han); font-size: 1.7rem; color: var(--crimson); line-height: 1; }
.card h3 { font-family: var(--f-display); font-size: 1.15rem; margin: .6rem 0 .4rem; color: var(--ink); }
.card p { font-size: .93rem; color: var(--plum); margin: 0; line-height: 1.65; }

/* ── 가격 ── */
.price-box { background: #fff; border: 1px solid var(--gold-soft); border-radius: 16px; padding: 30px; text-align: center; box-shadow: var(--shadow); max-width: 460px; margin: 0 auto; position: relative; }
.price-box .tag { font-family: var(--f-han); color: var(--gold); letter-spacing: .2em; font-size: .8rem; }
.price-box .amt { font-family: var(--f-display); font-size: 3rem; font-weight: 800; color: var(--crimson); line-height: 1; margin: .3rem 0; }
.price-box .amt small { font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.price-list { text-align: left; margin: 1.2rem auto; max-width: 320px; padding: 0; list-style: none; }
.price-list li { padding: .4rem 0 .4rem 1.6rem; position: relative; font-size: .95rem; }
.price-list li::before { content: "✦"; position: absolute; left: 0; color: var(--dohwa-deep); }

/* ── 아티클(SEO 본문) ── */
.article { padding: 40px 0 20px; }
.article .breadcrumb { font-size: .82rem; color: var(--plum); margin-bottom: 1.4rem; }
.article .breadcrumb a { color: var(--plum); }
.article h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem,5vw,2.5rem); line-height: 1.25; letter-spacing: -.03em; margin: .3rem 0 .6rem; }
.article .meta { color: var(--plum); font-size: .9rem; margin-bottom: 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.prose { font-size: 1.05rem; line-height: 1.85; }
.prose > p { margin: 0 0 1.25rem; }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; margin: 2.4rem 0 .9rem; padding-top: .4rem; line-height: 1.35; }
.prose h2 .num { font-family: var(--f-han); color: var(--gold); font-size: .8em; margin-right: .5rem; }
.prose h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; margin: 1.8rem 0 .6rem; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin: .4rem 0; }
.prose strong { color: var(--crimson-d); font-weight: 700; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.3rem; border-left: 3px solid var(--dohwa); background: var(--paper-2); border-radius: 0 8px 8px 0; color: var(--ink-soft); font-size: 1rem; }
.callout { background: #fff; border: 1px solid var(--gold-soft); border-radius: 12px; padding: 18px 20px; margin: 1.6rem 0; box-shadow: var(--shadow); }
.callout .ttl { font-family: var(--f-display); font-weight: 700; color: var(--crimson); margin-bottom: .3rem; display: flex; align-items: center; gap: .4rem; }
.tbl { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: .65rem .7rem; text-align: center; }
.tbl th { background: var(--paper-2); font-family: var(--f-han); font-weight: 700; }
.tbl td.hanja { font-family: var(--f-han); font-size: 1.15rem; color: var(--crimson); }

/* ── 본문 내 CTA ── */
.inline-cta { background: linear-gradient(135deg, #fff, var(--paper-2)); border: 1px solid var(--gold-soft); border-radius: 16px; padding: 28px; text-align: center; margin: 2.6rem 0; box-shadow: var(--shadow); }
.inline-cta h3 { font-family: var(--f-display); font-size: 1.35rem; margin: 0 0 .4rem; }
.inline-cta p { color: var(--plum); margin: 0 0 1.2rem; font-size: .98rem; }

/* ── FAQ ── */
.faq { margin: 1.4rem 0; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: .7rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; font-family: var(--f-body); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--crimson); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); line-height: 1.75; }

/* ── 관련글 ── */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { font-family: var(--f-display); font-size: 1.3rem; margin-bottom: 1rem; }
.related-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); }
.related-grid a { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-soft); font-weight: 500; font-size: .94rem; transition: .15s; }
.related-grid a:hover { border-color: var(--dohwa); color: var(--crimson); text-decoration: none; }
.related-grid a .ar { color: var(--gold); margin-left: .3rem; }

/* ── 푸터 ── */
.site-footer { background: var(--ink); color: #b8aeb8; padding: 48px 0 32px; margin-top: 60px; font-size: .9rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.foot-cols { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-bottom: 2rem; }
.foot-cols h4 { color: #fff; font-size: .9rem; font-family: var(--f-display); margin: 0 0 .7rem; }
.foot-cols a { display: block; color: #b8aeb8; padding: .25rem 0; font-size: .88rem; }
.foot-cols a:hover { color: var(--dohwa); text-decoration: none; }
.foot-bottom { border-top: 1px solid #322c3d; padding-top: 1.4rem; font-size: .8rem; color: #897f8a; line-height: 1.7; }
.foot-bottom a { color: #897f8a; }
.business-info { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #2a2534; display: flex; flex-wrap: wrap; gap: .18rem .72rem; font-size: .66rem; line-height: 1.55; color: #6f6772; letter-spacing: -.02em; }
.business-info span { white-space: nowrap; }

@media (max-width: 700px){ .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ── 유틸 ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 1.8rem; }
.hidden { display: none !important; }
.disclaimer { font-size: .8rem; color: var(--plum); text-align: center; margin-top: 1.2rem; line-height: 1.6; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


/* ── 정책/콘텐츠 허브 ── */
.policy-box { background:#fffaf8; border:1px solid var(--line); padding:1.2rem; margin:1rem 0; box-shadow:var(--shadow); }
.policy-box h2 { font-family:var(--f-display); margin-top:.2rem; }
.notice-list { margin:1rem 0; padding-left:1.2rem; }
.notice-list li { margin:.45rem 0; }
.hub-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:1.4rem 0; }
.hub-item { display:block; background:#fffaf8; border:1px solid var(--line); padding:1rem; color:var(--ink); box-shadow:var(--shadow); }
.hub-item:hover { text-decoration:none; border-color:var(--dohwa); transform:translateY(-1px); }
.hub-item strong { display:block; font-family:var(--f-display); color:var(--ink); line-height:1.45; }
.hub-item span { display:block; color:var(--plum); font-size:.9rem; margin-top:.35rem; line-height:1.55; }
.keyword-pill { display:inline-flex; border:1px solid var(--line); border-radius:999px; padding:.2rem .55rem; margin:.15rem; font-size:.82rem; color:var(--plum); background:#fff; }
@media (max-width:700px){ .foot-cols { grid-template-columns:1fr; } .hub-grid { grid-template-columns:1fr; } }


/* Clean footer link layout */
.site-footer { background: var(--ink); color: #b8aeb8; padding: 44px 0 28px; margin-top: 60px; font-size: .92rem; }
.clean-link-footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 8vw, 120px); margin-bottom: 2rem; }
.clean-link-footer h4 { color: #fff; font-size: .95rem; font-family: var(--f-display); font-weight: 800; margin: 0 0 1.25rem; letter-spacing: -.02em; }
.clean-link-footer a { display: block; color: #b8aeb8; padding: .34rem 0; line-height: 1.65; font-size: .93rem; word-break: keep-all; }
.clean-link-footer a:hover { color: var(--dohwa); text-decoration: none; }
.foot-bottom { border-top: 1px solid #322c3d; padding-top: 1.15rem; font-size: .74rem; color: #857a87; line-height: 1.65; }
.business-info { margin-top: .62rem; padding-top: .62rem; border-top: 1px solid #2a2534; display: flex; flex-wrap: wrap; gap: .16rem .64rem; font-size: .62rem; line-height: 1.5; color: #665f69; letter-spacing: -.025em; }
.business-info span { white-space: nowrap; }
@media (max-width: 760px){ .clean-link-footer { grid-template-columns: 1fr; gap: 28px; } .business-info span { white-space: normal; } }
