:root {
  /* 브랜드 컬러 */
  --accent: #82cbc4;        /* 메인 컬러 */
  --accent-deep: #5fb3aa;   /* 메인 컬러 조금 진한 톤 (선·테두리) */
  --accent-ink: #1e5f59;    /* 메인 컬러 계열의 진한 톤 (글자용) */
  --accent-soft: #e6f4f2;   /* 메인 컬러 옅은 배경 */
  --on-accent: #15302d;     /* 메인 컬러 위 글자 */
  --point: #fee770;         /* 포인트 컬러 */
  --on-point: #2b2a1c;      /* 포인트 컬러 위 글자 */

  /* 그레이톤 */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #23282b;
  --muted: #5f686d;
  --line: #dde3e4;
  --footer-bg: #1d3533;
  --footer-text: #c9d6d4;
  --footer-muted: #8fa5a2;
  --footer-line: #2f4a47;

  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--accent);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.2; }
.brand::before {
  content: ""; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--accent);
  box-shadow: inset -10px -10px 0 var(--accent-deep);
}
.brand strong { display: block; font-size: 18px; }
.brand span { font-size: 12px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 22px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(21, 48, 45, .15); }
.btn-point { background: var(--point); color: var(--on-point); }
.btn-outline { background: transparent; color: var(--accent-ink); border: 1.5px solid var(--accent-deep); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Sections: 흰색과 민트를 번갈아 사용 */
section { padding: 72px 0; }
.bg-soft { background: var(--accent-soft); }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; color: var(--accent-ink); font-weight: 800; text-transform: uppercase; margin: 0 0 10px; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--accent-deep); vertical-align: middle; margin-right: 8px; }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.25; margin: 0 0 18px; }
h2 { font-size: clamp(23px, 3.2vw, 32px); line-height: 1.35; margin: 0 0 28px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lead { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.hl { background: linear-gradient(transparent 60%, var(--point) 60%); padding: 0 2px; }

/* Intro (설명 + 사진): 메인 컬러 배경 */
.intro {
  padding: 44px 0 72px;
  background: var(--accent);
  color: var(--on-accent);
  position: relative; overflow: hidden;
}
.intro::after {
  content: ""; position: absolute; right: -120px; bottom: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  pointer-events: none;
}
.intro .container { position: relative; z-index: 1; }
.intro .eyebrow { color: var(--on-accent); }
.intro .eyebrow::before { background: var(--on-accent); }
.intro .lead { color: var(--on-accent); }
.intro p { color: rgba(21, 48, 45, .88); }
.intro .btn-outline { color: var(--on-accent); border-color: var(--on-accent); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.intro-photo { margin: 0; }
.intro-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 20px; border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(21, 48, 45, .22);
}
.intro-photo figcaption { font-size: 13px; color: var(--on-accent); opacity: .8; margin-top: 10px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.breadcrumb { font-size: 13px; color: var(--on-accent); opacity: .85; margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .num {
  display: inline-block; margin-bottom: 12px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700;
}
.card .num + h3::before { display: none; }
a.card { text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
a.card:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.bg-soft a.card:hover { background: #fff; }
a.card .more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }

/* Photo cards (home page) */
.cards.photo-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-cards .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-cards .card-thumb { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--accent-soft); transition: transform .3s; }
.photo-cards a.card:hover .card-thumb { transform: scale(1.04); }
.photo-cards .card-body { padding: 18px 20px 20px; position: relative; background: inherit; }

/* Table */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--accent); color: var(--on-accent); font-size: 14px; border-bottom: 0; }
tbody tr:nth-child(even) td { background: #f7fbfa; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; white-space: nowrap; color: var(--accent-ink); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 14px;
}
.steps li:last-child::before { background: var(--point); color: var(--on-point); }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; position: relative; padding-right: 56px; }
.faq details[open] summary { background: var(--accent-soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 18px; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 16px 22px 20px; color: var(--muted); }

/* CTA */
.cta { background: var(--accent); color: var(--on-accent); text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: -100px; top: -140px; width: 360px; height: 360px;
  border-radius: 50%; background: rgba(255, 255, 255, .18);
}
.cta .container { position: relative; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--on-accent); opacity: .85; margin: 0 0 26px; }
.cta .btn { background: var(--point); color: var(--on-point); padding: 16px 34px; font-size: 17px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 40px; font-size: 14px; border-top: 6px solid var(--accent-deep); }
.site-footer h2 { color: #fff; font-size: 16px; margin: 0 0 18px; }
.site-footer h3 { color: var(--accent); font-size: 14px; margin: 0 0 8px; }
.page-index { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-bottom: 40px; }
.page-index ul { list-style: none; margin: 0; padding: 0; }
.page-index li { margin-bottom: 4px; }
.page-index a { text-decoration: none; color: var(--footer-text); }
.page-index a:hover { color: #fff; text-decoration: underline; }
.page-index a[aria-current] { color: var(--point); font-weight: 700; }
.biz { border-top: 1px solid var(--footer-line); padding-top: 28px; }
.biz dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.biz dt { color: var(--footer-muted); }
.biz dd { margin: 0; }
.biz a { color: var(--point); }
.copyright { margin-top: 24px; color: var(--footer-muted); font-size: 13px; }

/* Mobile sticky SMS */
.sms-bar { display: none; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .cards.photo-cards { grid-template-columns: 1fr 1fr; }
  .page-index { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 52px 0; }
  .intro { padding: 28px 0 52px; }
  .intro-grid { grid-template-columns: 1fr; gap: 26px; }
  .intro-photo { order: -1; }
  .intro-photo img { aspect-ratio: 4 / 3; border-width: 4px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .cards.photo-cards { gap: 12px; }
  .photo-cards .card-body { padding: 12px 14px 14px; }
  .photo-cards .card h3 { font-size: 15px; gap: 6px; }
  .photo-cards .card h3::before { display: none; }
  .photo-cards .card p { font-size: 13px; }
  .header-cta { display: none; }
  body { padding-bottom: 80px; }
  .sms-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--accent);
  }
  .sms-bar .btn { width: 100%; padding: 15px; font-size: 16px; background: var(--point); color: var(--on-point); }
}

/* 문자 상담 고정 버튼: 900px 미만은 아래 가로 바(+운영시간), 900px 이상은 오른쪽 아래에 떠 있는 버튼 */
body { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.sms-bar {
  display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--accent);
}
.sms-bar .btn { width: 100%; padding: 15px; font-size: 16px; background: var(--point); color: var(--on-point); }
.sms-bar .hours { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--on-accent); }
@media (min-width: 900px) {
  body { padding-bottom: 88px; }
  .sms-bar { left: auto; right: 24px; bottom: 24px; padding: 0; background: none; }
  .sms-bar .btn { width: auto; padding: 14px 22px; box-shadow: 0 6px 18px rgba(21, 48, 45, .25); }
  .sms-bar .hours { display: none; }
}

/* PC에서 문자 버튼을 눌렀을 때 뜨는 번호 안내 창 */
.sms-modal { position: fixed; inset: 0; z-index: 60; background: rgba(21, 48, 45, .5); display: none; align-items: center; justify-content: center; padding: 16px; }
.sms-modal.open { display: flex; }
.sms-modal .box { background: var(--surface); border-radius: var(--radius); padding: 24px; max-width: 360px; width: 100%; text-align: center; }
.sms-modal .num { font-size: 24px; font-weight: 700; margin: 6px 0 12px; color: var(--accent-ink); }
.sms-modal .small { font-size: 13px; color: var(--muted); margin: 0; }
.sms-modal .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; font-size: 16px; }
.sms-modal button.close { margin-top: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 14px; padding: 6px 10px; }
