/* 신라메디컬그룹 — 공통 스타일 (Tailwind 보완용) */

:root {
  --color-primary: #0B4F6C;
  --color-primary-dark: #073649;
  --color-primary-light: #1A6E8E;
  --color-accent: #C49A6C;
  --color-accent-dark: #A87E50;
  --color-bg: #FAFAF7;
  --color-bg-alt: #F2F1EC;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-border: #E5E3DD;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* Hero 그라데이션 */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(196, 154, 108, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #0B4F6C 0%, #073649 100%);
}

.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(196,154,108,0.06) 0%, transparent 40%);
}

/* 신뢰 카운터 숫자 */
.trust-number {
  font-family: 'Inter', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* 카드 호버 */
.card-hover {
  transition: transform 250ms ease-out, box-shadow 250ms ease-out;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(11, 79, 108, 0.12);
}

/* 헤더 sticky 스크롤 시 그림자 */
.header-sticky {
  transition: box-shadow 250ms ease-out, background 250ms ease-out;
}
.header-sticky.scrolled {
  box-shadow: 0 1px 0 var(--color-border), 0 4px 12px rgba(11, 79, 108, 0.04);
}

/* 진료 카드 아이콘 박스 */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(11, 79, 108, 0.08);
  color: var(--color-primary);
}

/* 시술 절차 단계 */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* 폼 포커스 */
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 79, 108, 0.12);
}

/* 면책 고지 박스 */
.disclaimer {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* 모바일 하단 고정 CTA */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: white;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
  z-index: 40;
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 0.875rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.mobile-cta a:first-child {
  color: var(--color-primary);
  border-right: 1px solid var(--color-border);
}
.mobile-cta a:last-child {
  background: var(--color-primary);
  color: white;
}

@media (min-width: 768px) {
  .mobile-cta { display: none; }
}

/* 본문 모바일 하단 여백 (CTA 가림 방지) */
@media (max-width: 767px) {
  body { padding-bottom: 3.5rem; }
}

/* ========== 이미지 톤 통일 (의료 신뢰 톤) ==========
   모든 콘텐츠 이미지에 적용. 어떤 원본이 들어와도 채도·대비 일정. */
.img-medical {
  filter: grayscale(0.35) saturate(0.6) brightness(0.96) contrast(1.02);
  transition: filter 400ms ease-out;
}
.img-medical:hover {
  filter: grayscale(0.15) saturate(0.85) brightness(1) contrast(1.05);
}

/* Hero 등 어두운 배경 위 이미지 (한 단계 더 차분히) */
.img-medical-dark {
  filter: grayscale(0.5) saturate(0.5) brightness(0.85) contrast(1.05);
}

/* ========== K-컬처 디자인 요소 (50% 이내 반영) ========== */
/* 수막새 SVG는 가독성 약화로 미사용 (2026-05-18 결정).
   K-컬처는 컬러(Shilla Gold + Celadon) + 한자 워터마크로 표현. */

/* 한자 워터마크 */
.hanja-mark {
  font-family: 'Pretendard', serif;
  font-weight: 200;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
}

/* 청자 청록 보조 — 단일 섹션 강조용 */
.section-celadon {
  background:
    linear-gradient(180deg, rgba(109, 169, 160, 0.06) 0%, rgba(109, 169, 160, 0.02) 100%);
  border-top: 1px solid rgba(109, 169, 160, 0.2);
  border-bottom: 1px solid rgba(109, 169, 160, 0.2);
}

.tag-celadon {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(109, 169, 160, 0.12);
  color: #4A8B82;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* 신라 라인 — 헤더 하단 또는 섹션 디바이더용 */
.shilla-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
  margin: 2rem 0;
}
.shilla-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
}

