/* 프로그램별 페이지 공통 스타일 (메인 index.html과 같은 디자인 토큰 사용) */
:root {
  --bg: #FAF6F0;
  --bg-soft: #F3EAE0;
  --card: #FFFFFF;
  --ink: #4A3F35;
  --ink-soft: #8A7B6C;
  --accent: #E08A4E;
  --accent-deep: #C96F33;
  --accent-soft: #F6DCC8;
  --line: #E8DCCE;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(122, 92, 60, 0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.serif { font-family: 'Noto Serif KR', serif; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 11px;
}
.logo-mark { width: 40px; height: 40px; flex: 0 0 auto; filter: drop-shadow(0 3px 8px rgba(201,111,51,0.30)); }
.logo em { font-style: normal; color: var(--accent-deep); }
.logo small { display: block; font-family: 'Noto Sans KR', sans-serif; font-size: 0.68rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0.28em; }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; }
.nav-links a { font-size: 0.95rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-deep); }
.nav-links a[aria-current="page"] { font-weight: 700; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 10px 22px; border-radius: 999px; font-weight: 500;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-deep); }
.menu-btn { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 34px; border-radius: 999px; font-size: 1rem; font-weight: 500;
  border: none; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(224,138,78,0.35); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-kakao { background: #FEE500; color: #191919; font-weight: 600; }
.btn-kakao:hover { background: #F5DC00; transform: translateY(-2px); }

/* ---------- 상단 소개 ---------- */
.sub-hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(224,138,78,0.16), transparent),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(224,138,78,0.10), transparent),
    var(--bg);
}
.sub-hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 52px; align-items: center; }
.crumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumb a:hover { color: var(--accent-deep); }
.crumb span { color: var(--ink); font-weight: 500; }
.hero-badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent-deep);
  font-size: 0.82rem; font-weight: 500; padding: 7px 18px; border-radius: 999px;
  margin-bottom: 20px; letter-spacing: 0.04em;
}
.sub-hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 700; line-height: 1.38; margin-bottom: 18px;
}
.sub-hero h1 strong { color: var(--accent-deep); }
.sub-hero .lead { color: var(--ink-soft); font-size: 1.03rem; margin-bottom: 30px; max-width: 32em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sub-photo {
  margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.4; border: 1px solid var(--line); background: var(--bg-soft);
}
.sub-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 공통 섹션 ---------- */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .eyebrow {
  color: var(--accent-deep); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px; display: block;
}
.sec-head h2 { font-family: 'Noto Serif KR', serif; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; margin-bottom: 12px; }
.sec-head p { color: var(--ink-soft); max-width: 38em; margin: 0 auto; }

/* 이런 분께 추천 */
.check-list { list-style: none; max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.check-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px 16px 52px; position: relative; font-size: 0.98rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
}

/* 관리 방식 */
.point-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.point {
  background: var(--card); border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.point .num { font-family: 'Noto Serif KR', serif; color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.point h3 { font-family: 'Noto Serif KR', serif; font-size: 1.18rem; margin: 6px 0 10px; }
.point p { color: var(--ink-soft); font-size: 0.95rem; }

/* 메뉴 · 가격 */
.price-box {
  max-width: 820px; margin: 0 auto; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 18px 24px; text-align: left; border-bottom: 1px dashed var(--line); vertical-align: top; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: none; }
.price-table th { font-weight: 500; font-size: 1rem; }
.price-table th small { display: block; color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; margin-top: 3px; }
.price-table td { text-align: right; white-space: nowrap; font-family: 'Noto Serif KR', serif; font-weight: 700; color: var(--accent-deep); font-size: 1.05rem; }
.tag {
  display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px;
  background: var(--accent); color: #fff; font-family: 'Noto Sans KR', sans-serif; font-size: 0.72rem; font-weight: 500; vertical-align: 2px;
}
.price-note { max-width: 820px; margin: 16px auto 0; color: var(--ink-soft); font-size: 0.88rem; text-align: center; }
.consult-box {
  max-width: 760px; margin: 0 auto; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow);
}
.consult-box b { display: block; font-family: 'Noto Serif KR', serif; font-size: 1.3rem; margin-bottom: 10px; }
.consult-box p { color: var(--ink-soft); margin-bottom: 22px; }
.consult-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 관리 과정 */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px 22px; text-align: center; border: 1px solid var(--line); }
.step .n {
  width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step b { display: block; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.88rem; }

/* 자주 묻는 질문 */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 4px 14px rgba(122, 92, 60, 0.06); overflow: hidden;
}
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 500; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--accent-deep); font-size: 1.4rem; font-weight: 400; transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details[open] summary { color: var(--accent-deep); }
.faq-list details p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.95rem; }

/* 예약 안내 */
.cta-band { text-align: center; }
.cta-card {
  background: linear-gradient(150deg, #F2DEC9, #EBC9A8 55%, #E0A87B);
  border-radius: 28px; padding: 52px 32px; box-shadow: var(--shadow);
}
.cta-card h2 { font-family: 'Noto Serif KR', serif; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 10px; }
.cta-card p { color: #6B523A; margin-bottom: 26px; }
.cta-card .hero-actions { justify-content: center; }
.cta-card .btn-ghost { background: rgba(255,255,255,0.7); border-color: transparent; }

/* 다른 프로그램 */
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.other {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .2s, box-shadow .2s; display: block;
}
.other:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.other .ic { font-size: 1.5rem; }
.other b { display: block; font-family: 'Noto Serif KR', serif; font-size: 1.1rem; margin: 8px 0 4px; }
.other span { color: var(--ink-soft); font-size: 0.88rem; }
.other em { display: block; margin-top: 10px; font-style: normal; color: var(--accent-deep); font-size: 0.88rem; font-weight: 500; }

/* ---------- Footer ---------- */
footer { background: #4A3F35; color: #D9CDBF; padding: 56px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
footer .logo { color: #fff; margin-bottom: 14px; }
footer p, footer li { font-size: 0.88rem; color: #B9AC9C; }
footer h4 { color: #F3EAE0; font-size: 0.95rem; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { padding: 4px 0; }
footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.8rem; color: #9A8D7D; }

/* ---------- 플로팅 버튼 ---------- */
.floating { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.floating a {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 8px 22px rgba(0,0,0,0.18); transition: transform .2s;
}
.floating a:hover { transform: scale(1.08); }
.float-tel { background: var(--accent); }
.float-kakao { background: #FEE500; }

/* PC 전화번호 복사 안내 */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #FFF7EF; padding: 14px 28px; border-radius: 999px;
  font-size: 0.93rem; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  z-index: 300; box-shadow: 0 12px 32px rgba(0,0,0,0.28); max-width: 92vw;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 반응형 ---------- */
@media (max-width: 920px) {
  .sub-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .sub-photo { max-width: 440px; width: 100%; margin: 0 auto; }
  .point-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .other-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 20px 6%;
    border-bottom: 1px solid var(--line); gap: 16px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  section { padding: 60px 0; }
}
@media (max-width: 520px) {
  section { padding: 48px 0; }
  .sub-hero { padding: 40px 0 56px; }
  .sub-hero h1 { font-size: 1.75rem; }
  .sub-hero .lead { font-size: 0.97rem; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 14px 16px; font-size: 0.95rem; }
  .sec-head { margin-bottom: 30px; }
  .step-grid { grid-template-columns: 1fr; }
  .step { display: flex; text-align: left; gap: 16px; align-items: flex-start; padding: 20px; }
  .step .n { margin: 2px 0 0; flex: 0 0 auto; }
  .price-table th, .price-table td { padding: 16px 18px; }
  .point, .consult-box { padding: 26px 22px; }
  .cta-card { padding: 40px 22px; }
  .floating { right: 14px; bottom: 14px; }
  .floating a { width: 50px; height: 50px; font-size: 1.3rem; }
  .nav { padding: 13px 0; }
  .logo { font-size: 1.15rem; }
}
@media (hover: none) {
  .nav-links a, .btn { -webkit-tap-highlight-color: rgba(224,138,78,0.2); }
}
