/* ============================================================================
   PET_FUNERAL_MULTI_DAMDAM — 담담 / r01 전면 리디자인
   HOW  : mmempark.com 계보 — 숲을 지면으로 쓰는 추모공원.
   채택 : 전폭 숲 사진 · 수목장/봉안당 두 갈래 · 24시간 접수 · 흐르는 문구 띠
   변형 : 원본의 크림 지면 + 오렌지 CTA 를 **숲 초록 지면 + 뼈흰색 글자**로 뒤집는다.
          사진 띠와 글자 띠가 번갈아 오는 리듬이 이 사이트의 시그니처다.
   폐기 : 조감도 CG · 시설 자랑 배지 · 밝은 오렌지 강조
   ★ 온길(따뜻한 종이 · hairline · 영문 세리프 제목)과 정반대여야 한다.
   ★ 그리드 정렬에 % 여백을 쓰지 않는다.
   ==========================================================================*/

:root {
  --en: 'Faustina',"Pretendard Variable",Georgia,serif;
  --kr: "Pretendard Variable",-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

  --forest: #1E2A22;
  --forest-2: #16201A;
  --forest-3: #0E1611;
  --moss: #55684F;
  --moss-l: #8CA083;
  --bone: #EDEAE2;
  --bone-2: #DCD8CC;
  --body: rgba(237, 234, 226, .72);
  --mute: rgba(237, 234, 226, .46);
  --line: rgba(237, 234, 226, .18);

  --wrap: 1200px;
  --pad: clamp(20px, 3vw, 52px);
  --ease: cubic-bezier(.25, .7, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--forest); color: var(--body);
  font-family: var(--kr); font-size: 16px; line-height: 1.95; letter-spacing: -.02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure, ul, ol, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: min(100% - (var(--pad) * 2), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--bone); color: var(--forest); padding: 12px 18px; z-index: 300; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--moss-l); outline-offset: 3px; }

/* ---------- 조판 — 큰 한국어 + 작은 영문 라벨 ---------------------------- */
.kick { display: block; font-family: var(--en); font-style: italic; font-size: 15px; letter-spacing: .04em; color: var(--moss-l); line-height: 1.4; }
.t1 { font-family: var(--kr); font-weight: 500; font-size: clamp(29px, 3.5vw, 55px); line-height: 1.4; letter-spacing: -.05em; color: var(--bone); }
.t1 b { font-weight: 800; }
.t2 { font-family: var(--kr); font-weight: 500; font-size: clamp(24px, 2.5vw, 40px); line-height: 1.4; letter-spacing: -.05em; color: var(--bone); }
.t2 b { font-weight: 800; }
.lead { font-size: 15.5px; line-height: 2; max-width: 38em; }
.small { font-size: 13.5px; line-height: 1.9; color: var(--mute); }
.en { font-family: var(--en); }
main p { max-width: 38em; }
.mt-m { margin-top: 26px; } .mt-l { margin-top: clamp(30px, 3.2vw, 54px); }

/* ---------- 등장 ------------------------------------------------------- */
.pop, .pop-stag > * { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); animation: rq-reveal .5s var(--ease) 5s forwards; }
.pop.go, .pop-stag.go > * { opacity: 1; transform: none; animation: none; }
.pop-stag.go > *:nth-child(2) { transition-delay: .09s; }
.pop-stag.go > *:nth-child(3) { transition-delay: .18s; }
.pop-stag.go > *:nth-child(4) { transition-delay: .27s; }
html:not(.js) .pop, html:not(.js) .pop-stag > * { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .pop, .pop-stag > * { opacity: 1; transform: none; transition: none; animation: none; } }

/* ---------- 헤더 — 숲 초록 고정 · 우측 24시 전화 -------------------------- */
#site-header { position: sticky; top: 0; z-index: 120; background: rgba(14, 22, 17, .92); backdrop-filter: blur(9px); border-bottom: 1px solid var(--line); }
.hrow { display: flex; align-items: baseline; gap: 20px; min-height: 84px; padding-block: 16px; }
.lock { display: flex; flex-direction: row; align-items: baseline; gap: 12px; min-height: 46px; flex-wrap: nowrap; }
.brand { font-family: var(--en); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: .01em; color: var(--bone); white-space: nowrap; }
.brand-sub { font-family: var(--kr); font-size: 13px; font-weight: 700; letter-spacing: -.04em; color: var(--moss-l); white-space: nowrap; }
.dnav { margin-left: auto; display: flex; gap: clamp(14px, 1.8vw, 30px); align-self: center; }
.dnav a { font-family: var(--kr); font-size: 15px; font-weight: 700; letter-spacing: -.04em; color: rgba(237, 234, 226, .78); padding: 10px 0; border-bottom: 1px solid transparent; }
.dnav a:hover, .dnav a.on { color: var(--bone); border-bottom-color: var(--moss-l); }
.hcall { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--moss); color: var(--bone); font-family: var(--kr); font-size: 14px; font-weight: 800; letter-spacing: -.03em; align-self: center; transition: .3s var(--ease); }
.hcall:hover { background: var(--bone); color: var(--forest); }
.hcall svg { width: 15px; height: 15px; fill: currentColor; }
.burger { display: none; width: 46px; height: 46px; background: none; border: 0; padding: 15px 10px; flex-direction: column; justify-content: space-between; cursor: pointer; align-self: center; }
.burger span { display: block; height: 1.5px; background: var(--bone); }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .dnav, .hcall { display: none; }
  .burger { display: flex; margin-left: auto; }
  .hrow { min-height: 62px; align-items: center; }
  .brand { font-size: 26px; }
  .brand-sub { font-size: 11.5px; }
  .mobile-nav {
    display: block; position: fixed; left: 0; right: 0; top: var(--mm-top, 62px); bottom: 0;
    background: var(--forest-2); padding: 16px var(--pad) 44px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .3s var(--ease); z-index: 118;
  }
  .mobile-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-nav a { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); font-family: var(--kr); font-size: 18px; font-weight: 700; color: var(--bone); }
  .mobile-nav .mn-tel { justify-content: center; gap: 9px; border-bottom: 0; margin-top: 18px; background: var(--moss); border-radius: 999px; }
  .mobile-nav .mn-tel svg { width: 16px; height: 16px; fill: currentColor; }
  body.mm-open { overflow: hidden; }
}

/* ---------- 히어로 — 전폭 숲 사진 + 스크림 위 중앙 조판 ------------------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hgrid { display: grid; grid-template-columns: 1fr; gap: 0; padding-block: clamp(70px, 8vw, 168px); text-align: center; justify-items: center; }
.hgrid > div { max-width: 900px; }
.hgrid .kick { margin-bottom: 18px; }
.hgrid .lead { margin: 18px auto 0; }
.hgrid .acts { justify-content: center; }
.hround { position: absolute; inset: 0; margin: 0; z-index: 0; }
.hround img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14, 22, 17, .68) 0%, rgba(14, 22, 17, .78) 60%, var(--forest) 100%);
}

/* ---------- 흐르는 문구 띠 ----------------------------------------------- */
.flow { background: var(--moss); color: var(--bone); overflow: hidden; }
.flow ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 15px var(--pad); }
.flow li { font-family: var(--kr); font-size: 14.5px; font-weight: 700; letter-spacing: -.035em; }
.flow li em { font-style: normal; opacity: .5; margin-left: 20px; }
.flow li[aria-hidden="true"] { display: none; }

/* ---------- 서브페이지 머리 -------------------------------------------- */
.phero { padding-block: clamp(48px, 4.8vw, 92px) clamp(32px, 3.4vw, 56px); background: var(--forest-2); border-bottom: 1px solid var(--line); }
.phero .kick { margin-bottom: 16px; }
.phero .lead { margin-top: 14px; }

/* ---------- 버튼 ------------------------------------------------------- */
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.acts.ctr { justify-content: center; }
.bt {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 999px;
  font-family: var(--kr); font-size: 15.5px; font-weight: 800; letter-spacing: -.04em;
  background: var(--bone); color: var(--forest); border: 1px solid var(--bone); transition: .3s var(--ease);
}
.bt:hover { background: var(--moss-l); border-color: var(--moss-l); color: var(--forest-3); }
.bt-cream { background: none; color: var(--bone); border-color: var(--line); }
.bt-cream:hover { background: var(--bone); color: var(--forest); border-color: var(--bone); }
.bt-line { background: none; color: var(--bone); border-color: var(--line); }
.bt-line:hover { background: var(--bone); color: var(--forest); border-color: var(--bone); }

/* ---------- 구획 — 사진 띠와 글자 띠가 번갈아 ----------------------------- */
.sec { padding-block: clamp(56px, 5.8vw, 106px); }
.sec--cream { background: var(--bone); color: #4A5348; }
.sec--cream .t1, .sec--cream .t2, .sec--cream h3, .sec--cream b { color: var(--forest); }
.sec--cream .kick { color: var(--moss); }
.sec--cream .lead, .sec--cream p { color: #4A5348; }
.sec--cream .bt-line { color: var(--forest); border-color: rgba(30, 42, 34, .28); }
.sec--cream .bt-line:hover { background: var(--forest); color: var(--bone); border-color: var(--forest); }
.sec--ink { background: var(--forest-3); border-top: 1px solid var(--line); }
.shd { max-width: 800px; margin-bottom: clamp(28px, 3.2vw, 52px); }
.shd .kick { margin-bottom: 16px; }
.shd .lead { margin-top: 14px; }
.shd--c { text-align: center; margin-inline: auto; }
.shd--c .lead { margin-inline: auto; }

/* ---------- 24시간 네 칸 ------------------------------------------------- */
.always { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
.always > * { min-width: 0; border-top: 1px solid var(--moss-l); padding-top: 18px; }
.always b { display: block; font-family: var(--kr); font-weight: 800; font-size: 18px; color: var(--bone); letter-spacing: -.05em; }
.always span { display: block; font-size: 14.5px; line-height: 1.85; margin-top: 10px; }
.sec--cream .always > * { border-top-color: var(--moss); }
@media (max-width: 900px) { .always { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .always { grid-template-columns: 1fr; } }

/* ---------- 두 갈래 추모 공간 -------------------------------------------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 38px); }
.pair > * { min-width: 0; }
.pair article { background: var(--forest); border: 1px solid var(--line); overflow: hidden; }
.sec--cream .pair article { background: #FFFFFF; border-color: rgba(30, 42, 34, .12); }
.pair img { width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.pair .in { padding: clamp(20px, 2.4vw, 34px); }
.pair .pn { display: block; font-family: var(--en); font-style: italic; font-size: 15px; color: var(--moss-l); }
.sec--cream .pair .pn { color: var(--moss); }
.pair h3 { font-family: var(--kr); font-weight: 800; font-size: 24px; color: var(--bone); margin-top: 8px; letter-spacing: -.05em; }
.sec--cream .pair h3 { color: var(--forest); }
.pair p { font-size: 15px; line-height: 1.92; margin-top: 12px; }
.pair ul { margin-top: 18px; display: grid; gap: 9px; }
.pair li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.8; }
.pair li::before { content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 1px; background: var(--moss-l); }
.sec--cream .pair li::before { background: var(--moss); }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

/* ---------- 여섯 단계 --------------------------------------------------- */
.flowsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); counter-reset: fs; }
.flowsteps > li { counter-increment: fs; border-top: 1px solid var(--moss-l); padding-top: 18px; }
.flowsteps > li::before { content: counter(fs, decimal-leading-zero); display: block; font-family: var(--en); font-size: 22px; color: var(--moss-l); line-height: 1; }
.flowsteps h3 { font-family: var(--kr); font-weight: 800; font-size: 19px; color: var(--bone); margin-top: 12px; letter-spacing: -.05em; }
.sec--cream .flowsteps h3 { color: var(--forest); }
.flowsteps p { font-size: 14.5px; line-height: 1.9; margin-top: 10px; }
@media (max-width: 900px) { .flowsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flowsteps { grid-template-columns: 1fr; } }

/* ---------- 사진 두 장 · 정의 목록 · 비용표 · 문답 ------------------------ */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.duo > * { min-width: 0; margin: 0; }
.duo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.duo figcaption { margin-top: 12px; font-size: 14px; letter-spacing: -.035em; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }

.dl { display: grid; border-top: 1px solid var(--moss-l); max-width: 900px; }
.dl > div { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 8px 28px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.sec--cream .dl > div { border-bottom-color: rgba(30, 42, 34, .12); }
.dl dt { font-weight: 800; color: var(--bone); font-size: 15.5px; letter-spacing: -.05em; }
.sec--cream .dl dt { color: var(--forest); }
.dl dd { font-size: 15px; line-height: 1.95; }
@media (max-width: 640px) { .dl > div { grid-template-columns: 1fr; gap: 4px; } }

.tbwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cost { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.cost caption { text-align: left; font-size: 13px; color: var(--mute); padding-bottom: 16px; }
.sec--cream .cost caption { color: #6E7A6B; }
.cost th, .cost td { border-bottom: 1px solid var(--line); padding: 17px 13px; text-align: left; vertical-align: top; }
.sec--cream .cost th, .sec--cream .cost td { border-bottom-color: rgba(30, 42, 34, .12); }
.cost thead th { font-family: var(--en); font-style: italic; font-size: 15px; color: var(--moss-l); border-bottom: 1px solid var(--moss-l); }
.sec--cream .cost thead th { color: var(--moss); border-bottom-color: var(--moss); }
.cost tbody th { font-family: var(--kr); font-weight: 800; color: var(--bone); letter-spacing: -.05em; white-space: nowrap; }
.sec--cream .cost tbody th { color: var(--forest); }
.cost td.p { font-family: var(--en); font-size: 21px; color: var(--bone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sec--cream .cost td.p { color: var(--forest); }

.qa { border-top: 1px solid var(--moss-l); max-width: 900px; }
.qa > div { border-bottom: 1px solid var(--line); }
.sec--cream .qa > div { border-bottom-color: rgba(30, 42, 34, .12); }
.qa button { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; min-height: 60px; font-family: var(--kr); font-weight: 800; font-size: 16.5px; color: var(--bone); padding: 20px 42px 20px 0; position: relative; letter-spacing: -.045em; }
.sec--cream .qa button { color: var(--forest); }
.qa button::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--moss-l); border-bottom: 1.5px solid var(--moss-l); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.qa .open button::after { transform: translateY(-30%) rotate(-135deg); }
.qa p { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); font-size: 15px; line-height: 2; }
.qa .open p { max-height: 560px; padding-bottom: 22px; }

/* ---------- 푸터 ------------------------------------------------------- */
.foot { background: var(--forest-3); color: var(--mute); padding-block: clamp(46px, 5vw, 80px) 30px; border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 26px; }
.foot-top > * { min-width: 0; }
.foot .brand { font-size: 30px; color: var(--bone); }
.foot-brand p { font-size: 14px; margin-top: 10px; line-height: 1.9; max-width: 26em; }
.foot-col h4 { font-family: var(--en); font-style: italic; font-size: 15px; color: var(--moss-l); margin-bottom: 8px; }
.foot-col a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: rgba(237, 234, 226, .76); }
.foot-col a:hover { color: var(--bone); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-legal { margin-top: 14px; font-size: 12.5px; line-height: 1.95; color: rgba(237, 234, 226, .44); }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 22px; } }

/* ---------- 모바일 하단 CTA -------------------------------------------- */
.mcta { display: none; }
@media (max-width: 980px) {
  .mcta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; }
  .mcta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font-family: var(--kr); font-size: 15.5px; font-weight: 800; letter-spacing: -.04em; }
  .mcta svg { width: 16px; height: 16px; fill: currentColor; }
  .mcta .c-tel { background: var(--bone); color: var(--forest); }
  .mcta .c-map { background: var(--moss); color: var(--bone); }
  body { padding-bottom: 58px; }
}

/* ★ 등장 안전망 — 관측기가 못 붙여도 5초 뒤에는 반드시 보인다. */
@keyframes rq-reveal { to { opacity: 1; transform: none; } }

/* ---------- 안 보이던 글자 정정 --------------------------------------------
   .sec--cream b 가 .always > div > b 에 져서 아이보리 위 아이보리가 됐다. */
.sec--cream .always > div > b { color: var(--forest); }
