/* 여밈상조 메인(단순형) — 밝은 바탕, 사진 중심 */
:root {
  --ink: #182337; --navy: #1F2A3D; --deep: #141B28;
  --gold: #CDB18D; --gold-light: #E0C9A8; --gold-deep: #B59370; --gold-text: #7A6243;
  --cream: #F7F4EE; --line: #E6E0D6; --soft: #5C6674;
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.7 var(--sans); color: var(--ink); background: #fff; word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.tnum { font-variant-numeric: tabular-nums; }

/* 헤더 */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font: 600 19px var(--serif); letter-spacing: .05em; color: var(--navy); white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.nav { display: none; gap: 30px; color: var(--soft); font-size: 15px; }
.nav a:hover { color: var(--navy); }
.header-phone { font-size: 14.5px; font-weight: 700; color: #fff; background: var(--navy); padding: 9px 14px; border-radius: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone span { display: none; }

/* 버튼 */
.btn { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; border-radius: 3px; font-weight: 700; font-size: 16.5px; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--deep); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-secondary { border-color: #C3CAD3; color: var(--navy); background: #fff; }
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost { border-color: rgba(205, 177, 141, .7); color: var(--gold-light); }
.actions { display: grid; gap: 10px; margin-top: 26px; }

/* 공통 */
.eyebrow { font-size: 13px; letter-spacing: .13em; font-weight: 700; color: var(--gold-text); }
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 1px; vertical-align: middle; margin: 0 10px 3px 0; background: var(--gold-deep); }
.section { padding: 60px 0; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font: 600 27px/1.4 var(--serif); letter-spacing: -.03em; margin-top: 10px; text-wrap: balance; }
.section-head p:not(.eyebrow) { color: var(--soft); margin-top: 8px; font-size: 16px; }
.photo { position: relative; overflow: hidden; border-radius: 4px; background: #E8E4DD; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; right: 10px; bottom: 8px; color: #fff; font-size: 11.5px; letter-spacing: .03em; text-shadow: 0 1px 5px rgba(0, 0, 0, .8); }

/* 히어로 */
.hero { padding: 0 0 40px; }
.hero-photo { height: 300px; border-radius: 0; margin: 0 -20px 26px; }
.hero-photo img { object-position: 74% 30%; }
.hero h1 { font: 600 32px/1.38 var(--serif); letter-spacing: -.04em; margin: 16px 0 14px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold-text); }
.hero-copy { color: var(--soft); font-size: 16.5px; max-width: 520px; }
.hero-copy strong { color: var(--ink); font-weight: 700; }
.hero-note { margin-top: 10px; font-size: 14px; color: #6B7482; }
.hero-paths { display: grid; gap: 10px; margin-top: 24px; }
.path { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.path b { display: block; font: 600 17px var(--serif); }
.path span { display: block; font-size: 14px; color: var(--soft); }
.path i { font-style: normal; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.path-urgent { background: var(--navy); border-color: var(--navy); color: #fff; }
.path-urgent span { color: #D2D6DD; }
.path-urgent i { background: var(--gold); color: var(--navy); padding: 9px 13px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.path-plan i { color: var(--gold-text); }

/* 요약 띠 */
.proof { background: var(--cream); border-block: 1px solid var(--line); }
.proof-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 0; text-align: center; }
.proof-item + .proof-item { border-left: 1px solid #DDD6CA; }
.proof strong { display: block; font: 600 16px var(--serif); }
.proof span { display: block; color: var(--soft); font-size: 12.5px; margin-top: 2px; }

/* 상품 */
.products { display: grid; gap: 12px; }
.product { border: 1px solid var(--line); padding: 22px 20px 20px; background: #fff; display: flex; flex-direction: column; border-radius: 4px; transition: border-color .15s; }
.product:hover { border-color: var(--gold-deep); }
.product.featured { border-top: 3px solid var(--gold-deep); background: #FDFBF8; }
.product-kicker { font-size: 13px; color: var(--gold-text); font-weight: 700; letter-spacing: .08em; }
.product h3 { font: 600 23px var(--serif); margin-top: 4px; }
.price { font: 600 30px var(--serif); margin: 8px 0; font-variant-numeric: tabular-nums; }
.price small { font: 500 15px var(--sans); margin-left: 3px; }
.product-desc { color: var(--soft); font-size: 15.5px; margin-bottom: 16px; }
.product-link { border-top: 1px solid var(--line); padding-top: 13px; margin-top: auto; font-weight: 700; font-size: 15px; color: var(--gold-text); }
.included { margin-top: 16px; padding: 16px 18px; background: var(--cream); color: var(--soft); font-size: 14.5px; border-radius: 4px; }
.included b { color: var(--ink); }

/* 여밈의 뜻 */
.meaning { background: var(--cream); }
.meaning-photos { position: relative; padding-bottom: 14%; margin-bottom: 30px; }
.meaning-photos .main { aspect-ratio: 5 / 4; }
.meaning-photos .main img { object-position: 50% 30%; }
.meaning-photos .inset { position: absolute; right: 0; bottom: 0; width: 54%; aspect-ratio: 2 / 1; border: 5px solid var(--cream); border-radius: 4px; }
.meaning h2 { font: 600 27px/1.4 var(--serif); letter-spacing: -.03em; margin: 10px 0 12px; text-wrap: balance; }
.meaning-text > p { color: var(--soft); }
.promises { margin-top: 22px; border-top: 1px solid #DDD6CA; }
.promises li { display: grid; grid-template-columns: 34px 1fr; gap: 4px; padding: 15px 0; border-bottom: 1px solid #DDD6CA; }
.promises li::before { content: attr(data-n); font: 600 15px var(--serif); color: var(--gold-text); padding-top: 2px; }
.promises b { display: block; font: 600 17.5px var(--serif); }
.promises span { display: block; font-size: 15px; color: var(--soft); }

/* 진행 순서 */
.process { background: var(--navy); color: #fff; }
.process .eyebrow { color: var(--gold); }
.process .eyebrow::before { background: var(--gold); }
.process .section-head p:not(.eyebrow) { color: #D2D6DD; }
.steps { display: grid; gap: 18px; }
.step { border-top: 1px solid rgba(205, 177, 141, .65); padding-top: 14px; }
.step-num { font: 600 14px var(--serif); color: var(--gold); }
.step h3 { font: 500 19px var(--serif); margin: 6px 0 4px; }
.step p { font-size: 15px; color: #D1D5DC; }

/* 마지막 안내 */
.last { padding: 56px 0 60px; }
.last-grid { display: grid; gap: 28px; }
.last-photo { width: 190px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto; }
.last-photo figcaption { display: none; }
.last-text { text-align: center; }
.slogan { font: 500 16px var(--serif); color: var(--gold-text); margin-bottom: 8px; }
.last h2 { font: 600 26px/1.4 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.todo-now { text-align: left; margin: 22px 0 0; border-top: 1px solid var(--line); counter-reset: n; }
.todo-now li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.todo-now li::before { content: counter(n); font: 600 19px var(--serif); color: var(--gold-text); }
.todo-now a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; font-variant-numeric: tabular-nums; }
.last .actions { margin-top: 22px; }
.last-note { margin-top: 12px; font-size: 14px; color: #6B7482; }

/* 푸터 */
.footer { background: var(--deep); color: #E9E2D2; padding: 34px 0 96px; font-size: 14px; }
.footer .logo { width: 132px; margin-bottom: 16px; }
.footer dl { display: grid; grid-template-columns: 96px 1fr; gap: 3px 10px; margin-bottom: 14px; }
.footer dt { color: var(--gold); }
.footer dd a { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.footer .fine { opacity: .72; font-size: 13px; line-height: 1.7; border-top: 1px solid rgba(205, 177, 141, .25); padding-top: 12px; }
.todo { display: inline-block; padding: 0 6px; border: 1px dashed var(--gold); border-radius: 3px; font-size: .9em; color: var(--gold-light); }

/* 모바일 하단 고정 */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.mobile-bar .btn { min-height: 48px; padding: 0 10px; font-size: 15.5px; }

@media (min-width: 760px) {
  body { font-size: 18px; }
  .header-inner { height: 72px; }
  .brand { font-size: 21px; }
  .nav { display: flex; }
  .header-phone span { display: inline; font-weight: 500; margin-right: 6px; }
  .mobile-bar { display: none; }
  .footer { padding-bottom: 40px; }
  .section { padding: 88px 0; }
  .section-head { text-align: center; margin-bottom: 38px; }
  .section-head h2, .meaning h2 { font-size: 35px; }
  .hero { padding: 56px 0 72px; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 56px; }
  .hero-photo { order: 2; height: 520px; margin: 0; border-radius: 4px; }
  .hero-photo img { object-position: 70% 30%; }
  .hero h1 { font-size: clamp(38px, 4.2vw, 52px); margin: 20px 0 18px; }
  .hero-copy { font-size: 18px; }
  .hero-paths { margin-top: 30px; }
  .proof-inner { padding: 22px 0; }
  .proof strong { font-size: 20px; }
  .proof span { font-size: 14px; }
  .products { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .product { padding: 28px 24px 24px; min-height: 290px; }
  .included { text-align: center; }
  .meaning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .meaning-photos { margin-bottom: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .last { padding: 88px 0; }
  .last-grid { grid-template-columns: 300px 1fr; gap: 64px; align-items: center; max-width: 900px; margin: 0 auto; }
  .last-photo { width: 300px; }
  .last-text { text-align: left; }
  .last h2 { font-size: 32px; }
  .last .actions { grid-template-columns: auto auto; justify-content: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 섹션별 장면 사진 */
.product-img { display: block; margin: -22px -20px 18px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px 3px 0 0; background: #E8E4DD; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product:hover .product-img img { transform: scale(1.03); }
.product.featured .product-img { margin-top: -22px; }
.meaning-photos .main { aspect-ratio: 3 / 2; }
.meaning-photos .main img { object-position: 50% 40%; }
.step-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; margin-bottom: 14px; background: #2A3650; }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step { border-top: 0; padding-top: 0; }
@media (min-width: 760px) { .product-img { margin: -28px -24px 22px; } .product.featured .product-img { margin-top: -28px; } }
@media (prefers-reduced-motion: reduce) { .product-img img { transition: none; } }

.blog-link { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--gold-text); }
.blog-link a { text-decoration: underline; text-underline-offset: 4px; }
.last-photo img { object-position: 50% 20%; }

/* ── 상품 메뉴 ── */
.nav-drop { position: relative; }
.nav-drop > a i { font-style: normal; font-size: 11px; }
.nav-drop ul { position: absolute; top: 100%; left: -18px; min-width: 210px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid #E6E0D6; border-radius: 4px; box-shadow: 0 12px 30px rgba(20, 27, 40, .12); visibility: hidden; opacity: 0; transition: opacity .15s; z-index: 60; }
.nav-drop:hover ul, .nav-drop:focus-within ul { visibility: visible; opacity: 1; }
.nav-drop ul a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 18px; color: #1F2A3D; font-weight: 700; white-space: nowrap; text-decoration: none; }
.nav-drop ul a span { font-weight: 400; font-size: 13px; color: #5C6674; }
.nav-drop ul a:hover, .nav-drop ul a[aria-current] { background: #F7F4EE; }
.product-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #E6E0D6; }
.product-tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; font-weight: 700; color: #1F2A3D; text-decoration: none; border-bottom: 2px solid transparent; }
.product-tabs a + a { border-left: 1px solid #E6E0D6; }
.product-tabs a[aria-current] { background: #F7F4EE; border-bottom-color: #B59370; }
@media (min-width: 760px) { .product-tabs { display: none; } }
@media (max-width: 759px) { html { scroll-padding-top: 118px; } [id] { scroll-margin-top: 118px; } }
@media (max-width: 759px) { html { scroll-padding-top: 118px; } [id] { scroll-margin-top: 0; } }

/* ── 하단: 로고(왼쪽)·연락 정보(오른쪽) 한 줄 ── */
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.footer .logo { width: 82px; height: auto; margin: 0; flex: none; }
.footer dl { grid-template-columns: 40px auto; margin: 0; min-width: 0; font-size: 13px; }
@media (min-width: 760px) { .footer .logo { width: 132px; } .footer dl { grid-template-columns: 64px auto; font-size: 15px; } }
