/* =========================================================
   MASSAGE OSTEO — 마사지 오스테오
   테라피 & 체형관리 전문 마사지 스튜디오
   ========================================================= */

/* ---------- CSS 변수 (색상 · 폰트 · 간격) ---------- */
:root {
  /* 색상: 차분한 웰니스 팔레트 (파인 그린 + 웜 샌드) */
  --color-primary: #1f5f4f;
  --color-primary-dark: #143f34;
  --color-primary-light: #2f7d6a;
  --color-accent: #c79a5b;
  --color-accent-soft: #e8d8bd;
  --color-bg: #f8f5ef;
  --color-surface: #ffffff;
  --color-surface-alt: #f1ede4;
  --color-text: #2c302e;
  --color-heading: #1b2622;
  --color-muted: #6c716d;
  --color-line: #e3ddd1;

  /* 타이포그래피 */
  --font-head: "Gowun Batang", "Nanum Myeongjo", serif;
  --font-body: "Noto Sans KR", system-ui, -apple-system, sans-serif;

  /* 간격 · 형태 */
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(20, 63, 52, 0.06);
  --shadow-md: 0 12px 34px rgba(20, 63, 52, 0.12);
  --max: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-heading);
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- 공용 레이아웃 ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-surface-alt); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 14px;
}

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-desc { margin-top: 16px; color: var(--color-muted); font-size: 1.02rem; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-line);
  background: rgba(248, 245, 239, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand__mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: 0.16em;
  color: var(--color-primary);
}
.brand__sub {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--color-primary); }
.nav .btn { padding: 10px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(47, 125, 106, 0.16), transparent 60%),
    linear-gradient(180deg, #f8f5ef 0%, #f1ede4 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 116px);
}
.hero__title {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.22;
}
.hero__title em { color: var(--color-primary); font-style: normal; }
.hero__lead {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--color-muted);
  max-width: 46ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
.hero__meta div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--color-primary);
}
.hero__meta div span { font-size: 0.86rem; color: var(--color-muted); }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(31, 95, 79, 0.92), rgba(20, 63, 52, 0.92)),
    radial-gradient(circle at 30% 20%, rgba(199, 154, 91, 0.5), transparent 55%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  color: #fff;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 78% 30%, rgba(255,255,255,0.14), transparent 40%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 22px);
  opacity: 0.9;
}
.hero__badge {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(4px);
}
.hero__badge b { display: block; font-family: var(--font-head); font-size: 1.14rem; margin-bottom: 6px; }
.hero__badge p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- about ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about__lead { font-size: 1.12rem; color: var(--color-text); margin-bottom: 18px; }
.about__text p { color: var(--color-muted); margin: 0 0 16px; }
.about__points { display: grid; gap: 18px; }
.about__point {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about__point .num {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.about__point h4 { font-size: 1.05rem; margin-bottom: 4px; }
.about__point p { margin: 0; font-size: 0.94rem; color: var(--color-muted); }

/* ---------- services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-soft);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { margin: 0 0 16px; color: var(--color-muted); font-size: 0.96rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags span {
  font-size: 0.78rem;
  color: var(--color-primary-dark);
  background: var(--color-surface-alt);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- features (why) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  text-align: center;
  padding: 30px 22px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}
.feature .fi {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary);
  color: #fff;
}
.feature .fi svg { width: 24px; height: 24px; }
.feature h4 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--color-muted); }

/* ---------- notice (info / ads compliance) ---------- */
.notice {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.notice strong { color: var(--color-heading); }

/* ---------- contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.info-list { display: grid; gap: 20px; }
.info-item {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.info-item .ii {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--color-surface-alt);
  color: var(--color-primary);
}
.info-item .ii svg { width: 22px; height: 22px; }
.info-item h4 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.info-item p { margin: 0; font-size: 1.04rem; color: var(--color-heading); }
.info-item a { color: var(--color-primary); font-weight: 600; }

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}
.map-card iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-block: 56px 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand .brand__mark { color: #fff; }
.footer-brand .brand__sub { color: rgba(255, 255, 255, 0.55); }
.footer-brand p { margin: 16px 0 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.68); max-width: 34ch; }
.footer-col h5 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; font-size: 0.94rem; margin-bottom: 10px; color: rgba(255, 255, 255, 0.72); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.sns { display: flex; gap: 12px; }
.sns a {
  width: 40px; height: 40px; margin: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}
.sns a:hover { background: var(--color-accent); }
.sns svg { width: 20px; height: 20px; }

.footer-legal {
  padding-top: 26px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
}
.footer-legal .biz-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.footer-legal .copy { display: block; margin-top: 10px; }
.footer-legal a { color: rgba(255, 255, 255, 0.72); }
.footer-legal a:hover { color: #fff; }

/* ---------- fade-in 애니메이션 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 반응형: 태블릿 (≤ 900px) ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 반응형: 모바일 (≤ 768px) ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--color-line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- 반응형: 소형 모바일 (≤ 480px) ---------- */
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero__meta { gap: 18px; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta { flex-direction: column; }
}

/* ---------- 서브페이지 (개인정보처리방침) ---------- */
.page-hero {
  background: linear-gradient(180deg, #f1ede4, #f8f5ef);
  padding-block: clamp(56px, 8vw, 92px);
  border-bottom: 1px solid var(--color-line);
}
.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.page-hero p { margin-top: 12px; color: var(--color-muted); }

.doc { max-width: 820px; }
.doc h2 { font-size: 1.24rem; margin: 40px 0 12px; padding-top: 20px; border-top: 1px solid var(--color-line); }
.doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.doc p { color: var(--color-text); margin: 0 0 14px; }
.doc ul { list-style: disc; padding-left: 20px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; color: var(--color-text); }
.doc .updated { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 30px; }
