:root {
  --primary: #260F41;   /* 딥퍼플 — 섹션 배경 & 텍스트 */
  --black:   #000000;   /* 블랙 — Hero / Header / Footer */
  --white:   #FFFFFF;   /* 화이트 — 콘텐츠 섹션 배경 */
  --gold:    #C9A040;   /* 골드 — 버튼·강조 전용 (배경색 사용 금지) */
  --gray:    #888888;

  --font-display: 'Cormorant Garamond', serif;
  --font-kr:      'Noto Sans KR', sans-serif;
  --font-en:      'DM Sans', sans-serif;

  --section-pad: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-kr); color: var(--primary); background: var(--white); line-height: 1.65; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  transition: opacity .2s, transform .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: .82; transform: translateY(-1px); }
.btn-gold    { background: var(--black); color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border: 1px solid rgba(0,0,0,.4); }
.btn-header  { background: transparent; color: var(--black); border: 1.5px solid rgba(0,0,0,.5); padding-top: 6px; padding-bottom: 6px; }
.btn-small   { padding: 9px 18px; font-size: 13px; }
.btn-full    { width: 100%; text-align: center; margin-top: 4px; }

/* ────────────────────────────────
   HEADER  (배경: 블랙)
──────────────────────────────── */
.header { position: fixed; top: 0; left: 0; right: 0; background: var(--gold); z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; }

/* 로고: 흰 미니 박스에 MDK 이미지 표시 */
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 6px;
  padding: 4px 6px;
  height: 40px;
  width: 44px;
}
.logo-img { height: 30px; width: auto; object-fit: contain; display: block; }
.logo-text { font-family: var(--font-kr); font-weight: 700; font-size: 16px; color: var(--black); letter-spacing: -.3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { font-family: var(--font-en); font-size: 14px; color: rgba(0,0,0,.75); }
.nav > a:hover { color: var(--black); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--black); }

/* ────────────────────────────────
   HERO  (배경: 블랙)
──────────────────────────────── */
.hero {
  min-height: 50vh;
  background: var(--gold);
  display: flex;
  align-items: center;
  color: var(--black);
  padding: 90px 0 40px;
}
.hero-inner { text-align: center; max-width: 780px; margin: 0 auto; }
.eyebrow { font-family: var(--font-en); font-size: 11px; letter-spacing: 3px; color: rgba(0,0,0,.45); margin-bottom: 14px; }
.hero-headline { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.2; margin-bottom: 14px; }
.hero-headline .gold { color: var(--black); }
.hero-sub { font-family: var(--font-en); font-weight: 300; font-size: 14px; color: rgba(0,0,0,.55); margin-bottom: 24px; line-height: 1.8; }
.hero-cta { display: flex; gap: 14px; justify-content: center; }

/* ────────────────────────────────
   SECTION COMMON
──────────────────────────────── */
.section-headline { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--primary); margin-bottom: 20px; line-height: 1.3; }
.section-headline .num { color: var(--gold); font-family: inherit; font-weight: inherit; font-size: inherit; }
.section-headline.center { text-align: center; margin-bottom: 40px; }
.section-headline.white  { color: var(--white); }

.body-text { font-size: 14px; margin-bottom: 14px; color: #444; line-height: 1.75; }
.body-text.white-faint { color: rgba(255,255,255,.6); }

.eyebrow-dark { font-family: var(--font-en); font-size: 11px; letter-spacing: 3px; color: var(--gold); margin-bottom: 14px; }

/* ────────────────────────────────
   WHAT WE DO  (배경: 화이트)
──────────────────────────────── */
.what-we-do { padding: var(--section-pad) 0; background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.image-placeholder {
  background: rgba(38,15,65,.07);
  border: 1px solid rgba(38,15,65,.12);
  border-radius: 4px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 13px;
}
.clinic-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* ────────────────────────────────
   SERVICES  (배경: 딥퍼플)
──────────────────────────────── */
.services { background: var(--primary); padding: var(--section-pad) 0; }
.services .section-headline { color: var(--white); }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.service-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  padding: 28px;
  border-radius: 4px;
}
.service-card-full { grid-column: 1 / -1; }

.service-tag {
  display: inline-block;
  background: rgba(201,160,64,.2);
  color: var(--gold);
  border: 1px solid rgba(201,160,64,.4);
  font-size: 11px;
  font-family: var(--font-en);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.service-card h3 { font-size: 16px; margin-bottom: 10px; line-height: 1.5; color: var(--white); }
.service-card h3 .en { font-family: var(--font-en); font-size: 12px; color: rgba(255,255,255,.5); font-weight: 400; }
.service-card p { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.7; }
.china-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.cp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cp-douyin    { background: #000; color: #fff; }
.cp-weibo     { background: #E6162D; color: #fff; }
.cp-xiaohongshu { background: #FF2442; color: #fff; }
.cp-wechat    { background: #07C160; color: #fff; }
.cp-bilibili  { background: #FB7299; color: #fff; }
.cp-zhihu     { background: #0084FF; color: #fff; }
.cp-kuaishou  { background: #FF4906; color: #fff; }
.cp-tmall     { background: #FF0010; color: #fff; }
.cp-video     { background: #1AAD19; color: #fff; }
.cp-taobao    { background: #FF5000; color: #fff; }

.platform-logos { display: flex; gap: 10px; margin: 12px 0; align-items: center; }
.platform-img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* ────────────────────────────────
   CERTIFICATION  (배경: 화이트)
──────────────────────────────── */
.cert-section { padding: var(--section-pad) 0; background: var(--white); border-top: 1px solid rgba(38,15,65,.08); }
.cert-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: var(--white);
  padding: 9px 18px; border-radius: 20px; margin-top: 8px;
}
.cert-star  { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.cert-label { font-family: var(--font-en); font-size: 11px; }
.cert-image-wrap { display: flex; justify-content: center; }
.cert-img { width: 100%; max-width: 400px; border-radius: 8px; box-shadow: 0 12px 36px rgba(0,0,0,.13); }

/* ────────────────────────────────
   WHY US  (배경: 딥퍼플)
──────────────────────────────── */
.why-us { padding: var(--section-pad) 0; background: var(--primary); }
.why-us .section-headline { color: var(--white); }
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card {
  border-left: 3px solid var(--gold);
  padding: 6px 20px;
}
.why-num { font-family: var(--font-en); font-size: 11px; color: var(--gold); letter-spacing: 1px; margin-bottom: 6px; }
.why-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--white); }
.why-card p  { font-size: 13px; color: rgba(255,255,255,.6); }

/* ────────────────────────────────
   PARTNERSHIP  (배경: 화이트)
──────────────────────────────── */
.partnership { background: var(--white); padding: var(--section-pad) 0; border-top: 1px solid rgba(38,15,65,.08); }
.partnership .section-headline { color: var(--primary); }
.partnership-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.body-text.purple { color: #444; }
.department-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.department-grid span {
  border: 1px solid rgba(38,15,65,.35);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
}
.partnership-cta { flex-shrink: 0; }

/* ────────────────────────────────
   CONTACT  (배경: 딥퍼플)
──────────────────────────────── */
.contact { padding: var(--section-pad) 0; background: var(--primary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }

.contact-info .section-headline { font-size: 26px; color: var(--white); }
.contact-info .body-text { color: rgba(255,255,255,.6); }

.contact-list { list-style: none; margin-top: 24px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-list li div  { display: flex; flex-direction: column; gap: 2px; }
.contact-list li strong { font-size: 12px; color: rgba(255,255,255,.45); font-family: var(--font-en); }
.contact-list li span   { font-size: 14px; color: var(--white); }
.contact-icon { font-size: 18px; line-height: 1; padding-top: 2px; }
.gmail-icon {
  width: 26px; height: 26px;
  background: #EA4335; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kakao-icon {
  width: 26px; height: 26px;
  background: #FEE500; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wechat-icon {
  width: 26px; height: 26px;
  background: #07C160; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* 폼: 화이트 카드 */
.contact-form {
  background: var(--white);
  border-radius: 6px;
  padding: 28px;
}
.contact-form h3 { font-size: 18px; margin-bottom: 20px; color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: block; font-size: 12px; color: var(--gray); margin-bottom: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%; margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 13px;
  font-family: var(--font-kr);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }
.service-checkboxes { border: none; margin-bottom: 12px; }
.service-checkboxes legend { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--primary); cursor: pointer; }
.checkbox input { width: auto; margin: 0; accent-color: var(--primary); }
.agree-box { margin: 12px 0 14px; font-size: 12px; color: var(--gray); }
.req { color: var(--gold); }

/* ────────────────────────────────
   FOOTER  (배경: 블랙)
──────────────────────────────── */
.footer { background: var(--gold); color: rgba(0,0,0,.65); padding: 48px 0 20px; }
.footer-inner { display: flex; gap: 48px; align-items: flex-start; }
.footer-logo { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--black); flex-shrink: 0; padding-top: 4px; }
.footer-table { border-collapse: collapse; font-size: 12px; }
.footer-table th { text-align: left; padding: 3px 16px 3px 0; color: rgba(0,0,0,.4); font-weight: 400; white-space: nowrap; }
.footer-table td { padding: 3px 0; color: rgba(0,0,0,.8); }
.footer-copy { text-align: center; font-size: 11px; margin-top: 28px; color: rgba(0,0,0,.4); }
.footer-copy a { color: rgba(0,0,0,.4); }

/* ────────────────────────────────
   FLOATING BUTTONS
──────────────────────────────── */
.floating-buttons { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.float-btn { padding: 11px 16px; border-radius: 22px; font-size: 13px; font-weight: 500; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.float-btn.kakao  { background: #FEE500; color: var(--black); border: none; cursor: pointer; font-family: var(--font-kr); }
.float-btn.wechat { background: #07C160; color: var(--white); border: none; cursor: pointer; font-family: var(--font-kr); }

/* ── QR Modal ── */
.qr-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 2000; align-items: center; justify-content: center; }
.qr-modal.open { display: flex; }
.qr-box { background: #fff; border-radius: 16px; padding: 28px 24px 24px; text-align: center; max-width: 280px; width: 90%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.qr-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 16px; cursor: pointer; color: #888; line-height: 1; }
.qr-close:hover { color: #000; }
.qr-label { font-size: 13px; color: #888; margin-bottom: 14px; font-family: var(--font-kr); }
.qr-img { width: 100%; max-width: 200px; border-radius: 10px; display: block; margin: 0 auto 14px; }
.qr-name { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 8px; font-family: var(--font-kr); }
.qr-hint { font-size: 12px; color: #888; line-height: 1.6; font-family: var(--font-kr); }

/* ── Scroll animation ── */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
[data-animate].in-view { opacity: 1; transform: translateY(0); }

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 860px) {
  :root { --section-pad: 52px; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--gold); padding: 20px 24px; gap: 18px;
  }
  .hero-headline { font-size: 34px; }
  .intro-grid, .cert-inner, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .why-us-grid { grid-template-columns: 1fr; }
  .service-card-full { grid-column: auto; }
  .partnership-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .cert-image-wrap { order: -1; }
  .cert-img { max-width: 300px; }
}
