/* 동해 든든 재활운동 상담소 — v2
   컨셉: 차가운 병원 느낌 대신, 따뜻한 집 같은 톤 (딥그린 + 크림 + 앰버) */

:root {
  --brand: #0f5a52;
  --brand-2: #13776c;
  --brand-ink: #0a3f3a;
  --accent: #e8913a;
  --accent-soft: #fbe9d4;
  --ink: #1d2827;
  --text: #3b4745;
  --muted: #6b7774;
  --cream: #fbf8f2;
  --sand: #f3ede2;
  --line: #e4ddd0;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 60, 55, .10);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Gowun Batang", "Nanum Myeongjo", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--cream); line-height: 1.7; word-break: keep-all; padding-bottom: 64px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 780px; }
.center { text-align: center; margin-top: 36px; }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } body { padding-bottom: 0; } }

.ico { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; border-radius: 999px; padding: 12px 22px; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15, 90, 82, .25); }
.btn--brand:hover { background: var(--brand-2); }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--line { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--naver { background: #03c75a; color: #fff; }
.btn--kakao { background: #fee500; color: #191919; }
.btn--sm { padding: 8px 16px; font-size: .92rem; }
.btn--lg { padding: 16px 28px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* 헤더 */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 40px; height: 40px; color: var(--brand); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text small { font-size: .72rem; color: var(--brand-2); font-weight: 600; letter-spacing: .02em; }
.brand__text strong { font-size: 1.08rem; color: var(--ink); font-weight: 800; }
.nav { display: none; gap: 26px; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--brand); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.header__cta .btn span { display: none; }
.menu-btn { width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 899px) {
  .nav.is-open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--cream); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06); gap: 0; }
  .nav.is-open a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .header__cta .btn span { display: inline; }
}

/* 히어로 */
.hero { padding: 48px 0 64px; background: radial-gradient(1000px 500px at 85% 10%, var(--accent-soft), transparent 60%), var(--cream); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 80px 0 96px; } .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--brand-2); letter-spacing: .04em; margin-bottom: 12px; }
.eyebrow--light { color: #a8dcd2; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.hero__lead { font-size: 1.1rem; color: var(--text); margin-bottom: 30px; }
.hero__lead strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.hero__facts li::before { content: "✓"; color: var(--brand-2); font-weight: 800; margin-right: 6px; }
.hero__facts b { color: var(--ink); }
.hero__photo { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.2deg); background: var(--sand); }
.hero__photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.hero__photo figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.94); padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }

/* 섹션 공통 */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 100px 0; } }
.section--sand { background: var(--sand); }
.section--brand { background: var(--brand-ink); color: #d6ebe6; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 10px; }
.sec-head p:not(.eyebrow) { color: var(--muted); }

/* 이런 분께 */
.worry-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .worry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .worry-grid { grid-template-columns: repeat(3, 1fr); } }
.worry-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 54px; position: relative; font-weight: 600; color: var(--ink); }
.worry-grid li span { position: absolute; left: 18px; top: 8px; font-family: var(--serif); font-size: 2.6rem; color: var(--accent); line-height: 1; }

/* 운동 분야 */
.prog-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .prog-grid { grid-template-columns: repeat(4, 1fr); } }
.prog { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.prog:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prog__num { font-weight: 800; color: var(--accent); font-size: .95rem; margin-bottom: 10px; }
.prog h3 { font-size: 1.18rem; margin-bottom: 10px; }
.prog p { font-size: .96rem; color: var(--text); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8rem; background: var(--sand); color: var(--brand-ink); padding: 3px 10px; border-radius: 999px; font-weight: 600; }

.promise { margin-top: 28px; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 800px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise__item { background: var(--cream); padding: 24px; }
.promise__item h4 { font-size: 1.04rem; margin-bottom: 6px; color: var(--brand); }
.promise__item p { font-size: .94rem; }

/* 회복 이야기 */
.chip { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--brand); background: #e3f1ee; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.feature-story { background: #fff; border-radius: 26px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) { .feature-story { padding: 44px; } }
.feature-story__head { max-width: 760px; margin-bottom: 28px; }
.feature-story h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 14px; }
.feature-story p strong { color: var(--brand); }
.timeline { display: grid; gap: 16px; counter-reset: step; margin-bottom: 20px; }
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li { position: relative; }
.timeline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 10px; background: var(--sand); }
.timeline__step { display: block; font-size: .75rem; font-weight: 800; color: var(--accent); letter-spacing: .06em; }
.timeline b { color: var(--ink); }
@media (min-width: 700px) {
  .timeline li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 34%; font-size: 1.3rem; color: var(--accent); font-weight: 800; }
}
.text-link { font-weight: 700; color: var(--brand); font-size: .95rem; }
.text-link:hover { text-decoration: underline; }
.story-grid { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 800px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
.story { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.story h3 { font-size: 1.2rem; margin-bottom: 10px; }
.story p { flex: 1; margin-bottom: 14px; }
.note { margin-top: 18px; font-size: .85rem; color: var(--muted); text-align: center; }

/* 소개 */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: #fff; line-height: 1.55; margin-bottom: 16px; }
.about__sign { color: #9cc9c0; font-size: .95rem; }
.about__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 30px; }
.about__name strong { display: block; font-size: 1.7rem; color: #fff; }
.about__name span { color: #a8dcd2; font-size: .95rem; }
.cred { margin: 22px 0; display: grid; gap: 12px; }
.cred div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.cred dt { color: #f4b860; font-weight: 700; font-size: .92rem; }
.cred dd { color: #e6f2ef; }
.about__links { display: flex; flex-wrap: wrap; gap: 8px; }
.about__links a { font-size: .88rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.about__links a:hover { background: rgba(255,255,255,.12); }

/* 이용 방법 */
.steps { display: grid; gap: 16px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 14px; }
.steps h4 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { font-size: .95rem; }

/* 칼럼 */
.column-list { display: grid; gap: 10px; }
@media (min-width: 800px) { .column-list { grid-template-columns: repeat(2, 1fr); } }
.column-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-weight: 600; color: var(--ink); transition: border-color .2s, transform .2s; }
.column-list a:hover { border-color: var(--brand-2); transform: translateX(4px); }
.column-list span { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--accent); margin-right: 8px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 28px 20px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; }

/* 상담 */
.contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; } }
.contact h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 8px; }
.big-phone { display: inline-block; font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; color: var(--brand); letter-spacing: -0.01em; }
.muted { color: var(--muted); font-size: .95rem; }
.info { margin: 22px 0; display: grid; gap: 10px; }
.info div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
.info dt { font-weight: 700; color: var(--ink); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: #e9e4da; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-links { display: flex; gap: 8px; margin-top: 12px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.form h3 { font-size: 1.3rem; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(19,119,108,.15); }
.form .is-invalid { border-color: #d9534f; }
.form__fallback { display: grid; gap: 10px; background: var(--accent-soft); border-radius: 14px; padding: 16px; font-size: .92rem; }
.form__fallback[hidden] { display: none; }

/* 푸터 */
.footer { background: var(--ink); color: #9fb0ad; padding: 44px 0; font-size: .9rem; }
.footer strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: 6px; }
.footer__notice { margin-top: 12px; color: #c9d6d3; }
.footer__copy { margin-top: 12px; color: #6f817e; }

/* 모바일 하단 고정 버튼 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); background: #fff; }
.dock a { text-align: center; padding: 18px 0; font-weight: 800; font-size: 1.02rem; }
.dock__call { background: var(--brand); color: #fff; }
.dock__sms { background: #fff; color: var(--brand); }
@media (min-width: 900px) { .dock { display: none; } }

/* 스크롤 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .prog:hover { transform: none; }
}
