/* ═══════════════════════════════════════════
   global.css — 광피부과의원 청담 공통 스타일
   모든 페이지에서 <link rel="stylesheet" href="css/global.css"> 로 불러오세요.
═══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
ul { list-style: none; }

/* ── Variables ── */
:root {
  --w: #ffffff;
  --cream: #f4efe9;
  --soft: #f8f5f2;
  --warm: #f1ece6;
  --dark: #1c1b19;
  --mid: #6b6762;
  --light: #a5a09a;
  --line: #e3dcd5;
  --gold: #BC8B55;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--w);
  -webkit-font-smoothing: antialiased;
  line-height: 1;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.page-wrap { max-width: 1500px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* ── Header ── */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: 78px; padding: 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: height .35s cubic-bezier(.16,1,.3,1), background .45s cubic-bezier(.16,1,.3,1), border-color .45s cubic-bezier(.16,1,.3,1), backdrop-filter .45s cubic-bezier(.16,1,.3,1), -webkit-backdrop-filter .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1);
}
header.scrolled {
  height: 70px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 1px 10px rgba(0,0,0,.05);
}
.logo img { height: 60px; width: auto; display: block; transition: height .35s cubic-bezier(.16,1,.3,1); }
header.scrolled .logo img { height: 42px; }
header nav { display: flex; gap: 32px; }
header nav a { font-size: 17px; letter-spacing: .02em; transition: color .2s, font-size .35s cubic-bezier(.16,1,.3,1); }
header.scrolled nav a { font-size: 15.3px; }
header nav a:hover, header nav a.active { color: var(--gold); }
.h-right { display: flex; align-items: center; gap: 16px; }
.h-login { font-size: 12px; color: var(--mid); transition: font-size .35s cubic-bezier(.16,1,.3,1); }
header.scrolled .h-login { font-size: 10.8px; }
.h-book {
  font-size: 11.5px; letter-spacing: .06em;
  background: var(--dark); color: #fff;
  padding: 9px 22px; border-radius: 100px; transition: background .25s, font-size .35s cubic-bezier(.16,1,.3,1), padding .35s cubic-bezier(.16,1,.3,1);
}
header.scrolled .h-book { font-size: 10.35px; padding: 8px 20px; }
.h-book:hover { background: var(--gold); }

/* ── Page Intro (서브페이지 공통 상단) ── */
.intro { margin-top: 64px; padding: 88px 80px 80px;  }
.intro-label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.39vw, 20px);
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
  letter-spacing: .06em;
}
.intro h1 {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(30px, 4.51vw, 65px);
  font-weight: 600;
  line-height: 1.167;
  margin-bottom: 18px;
}
.intro p {
  font-size: 22px;
  color: var(--mid);
  font-weight: 400;
}
.mt150 {margin-top:150px}
/* ── Scroll Fade-up ── */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.on { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .12s; }
.fade-up:nth-child(3) { transition-delay: .22s; }

/* ── Contact ── */
.contact { padding: 88px 80px; background: var(--w); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr 1.2fr; gap: 60px; align-items: start; }
.contact-left h3 { font-family: 'Pretendard', sans-serif; font-size: 36px; font-weight: 700; margin-bottom: 28px; }
.c-phone { font-family: 'Pretendard', sans-serif; font-size: 28px; font-weight: 400; letter-spacing: .02em; margin-bottom: 28px; color: var(--dark); }
.c-phone span { font-size: 13px; font-weight: 400; color: var(--light); display: block; margin-bottom: 6px; letter-spacing: .04em; }
.c-rows { border-top: 1px solid var(--line); }
.c-row { display: grid; grid-template-columns: 68px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.c-lbl { font-size: 11.5px; color: var(--light); padding-top: 1px; }
.c-val { font-size: 13px; color: var(--mid); line-height: 1.9; }
.c-form { display: flex; flex-direction: column; gap: 10px; }
.c-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-field { display: flex; flex-direction: column; gap: 6px;  margin-top:20px}
.c-field label { font-size: 11.5px; color: var(--light); letter-spacing: .04em; }
.c-field label span { color: #c00; }
.c-field input, .c-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); background: #fafafa;
  font-family: 'Pretendard', sans-serif; font-size: 13px; color: var(--dark);
  outline: none; transition: border .2s; resize: none; box-sizing: border-box;
}
.c-field input::placeholder, .c-field textarea::placeholder { color: #bbb; }
.c-field input:focus, .c-field textarea:focus { border-color: var(--dark); background: #fff; }
.c-field textarea { height: 110px; }
.c-agree { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 4px; }
.c-agree-left { display: flex; align-items: center; gap: 8px; }
.c-agree input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--dark); cursor: pointer; }
.c-agree-txt { font-size: 12px; color: var(--mid); }
.c-agree-more { font-size: 11.5px; color: var(--light); border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.c-submit { width: 100%; padding: 15px; background: var(--dark); color: #fff; font-family: 'Pretendard', sans-serif; font-size: 13px; letter-spacing: .08em; border: none; cursor: pointer; transition: background .2s; margin-top: 4px; }
.c-submit:hover { background: #333; }
.map-box { height: 100%; min-height: 320px; overflow: hidden; }

/* ── Footer Contact ── */
.ft-contact { background: var(--w); padding: 88px 80px; }
.ft-contact-inner { display: grid; grid-template-columns: 1fr 1.1fr 1.2fr; gap: 60px; align-items: start; max-width: 1500px; margin: 0 auto; }
.ft-c-left h3 { font-family: 'Pretendard', sans-serif; font-size: 44px; font-weight: 700; margin-bottom: 24px; color: #1c1b19; line-height: 1.1; letter-spacing: -.01em; }
.ft-contact .c-phone {
  display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center;
  font-size: 39px; font-weight: 500; letter-spacing: -.01em;
  color: #1c1b19; margin-bottom: 24px;
}
.ft-contact .c-phone span {
  font-size: 15px; font-weight: 600; color: #1c1b19;
  margin: 0; letter-spacing: 0;
}
.ft-contact .c-lbl { font-size: 15px; color: #1c1b19; font-weight: 600; padding-top: 1px; }
.ft-contact .c-val { font-size: 16px; color: #3d3934; line-height: 1.75; }
.ft-contact .c-rows { border-top: none; }
.ft-contact .c-row {
  grid-template-columns: 88px 1fr;
  align-items: start;
  gap: 18px;
  border-bottom: none;
}
.ft-contact .c-note {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1c1b19;
}
.ft-contact .c-field label { font-size: 15px; color: #1c1b19; font-weight: 600; letter-spacing: .02em; }
.ft-contact .c-field input,
.ft-contact .c-field textarea {
  border-color: #e6ded5; background: #fff;
  font-size: 15px; color: #3f3a35;
  border-radius: 10px;
}
.ft-contact .c-field input::placeholder,
.ft-contact .c-field textarea::placeholder { color: #b2aba2; }
.ft-contact .c-agree-txt { font-size: 14px; color: #6f6a64; }
.ft-contact .c-agree-more { font-size: 14px; color: #8e8882; border-bottom-color: #d7d0c8; }
.ft-contact .c-submit {
  width: 140px; padding: 12px 0; margin-top: 8px; margin-left: auto;
  border-radius: 999px; font-size:16px; letter-spacing: .02em;
  background: #0f0f10;
}
.ft-contact .c-submit:hover { background: #222; }
.ft-contact .map-box { border-radius: 8px; overflow: hidden; }

/* ── Footer ── */
footer { background: var(--dark); padding: 36px 80px; }
.ft-bottom-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 60px; align-items: center; }
.ft-logo-img { height: 56px; width: auto; display: block; }
.ft-info { display: flex; flex-direction: column; gap: 8px; }
.ft-info-row { font-size: 12px; color: rgba(255,255,255,.56); line-height: 1.8; }
.ft-info-row span { color: inherit; }
.ft-copy { font-size: 11px; color: rgba(255,255,255,.42); margin-top: 6px; }
.ft-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.ft-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.ft-nav a { font-size: 12px; color: rgba(255,255,255,.56); transition: color .2s; }
.ft-nav a:hover { color: rgba(255,255,255,.85); }
.ft-sns { display: flex; gap: 10px; }
.ft-sns-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.68); transition: background .2s, color .2s; }
.ft-sns-icon:hover { background: rgba(255,255,255,.2); color: #fff; }
.ft-sns-icon svg { width: 16px; height: 16px; }

.black { color: #000!important }

/* ── Font-size utilities ── */
.txt16 { font-size: 20px !important; }
.txt17 { font-size: 17px !important; }
.txt18 { font-size: 18px !important; }
.txt19 { font-size: 19px !important; }
.txt20 { font-size: 20px !important; }
.txt21 { font-size: 21px !important; }
.txt22 { font-size: 22px !important; }
.txt23 { font-size: 23px !important; }
.txt24 { font-size: 24px !important; }
.txt25 { font-size: 25px !important; }
.txt26 { font-size: 26px !important; }
.txt27 { font-size: 27px !important; }
.txt28 { font-size: 28px !important; }
.txt29 { font-size: 29px !important; }
.txt30 { font-size: 30px !important; }
.txt32 { font-size: 32px !important; }
.txt34 { font-size: 34px !important; }
.txt36 { font-size: 36px !important; }
.txt38 { font-size: 38px !important; }
.txt40 { font-size: 40px !important; }
.txt42 { font-size: 42px !important; }
.txt44 { font-size: 44px !important; }
.txt46 { font-size: 46px !important; }
.txt48 { font-size: 48px !important; }
.txt50 { font-size: 50px !important; }
.txt55 { font-size: 55px !important; }
.txt60 { font-size: 60px !important; }
.txt65 { font-size: 65px !important; }

/* ── Margin-top utilities ── */
.mt20 { margin-top: 20px; }
.mt30 { margin-top: 30px; }

.mt100 { margin-top: 100px; }
.mt110 { margin-top: 110px; }
.mt120 { margin-top: 120px; }
.mt130 { margin-top: 130px; }
.mt140 { margin-top: 140px; }
.mt150 { margin-top: 150px; }
.mt160 { margin-top: 160px; }
.mt170 { margin-top: 170px; }
.mt180 { margin-top: 180px; }
.mt190 { margin-top: 190px; }
.mt200 { margin-top: 200px; }

@media (max-width: 1024px) {
  .ft-contact { padding: 72px 48px; }
  .ft-contact-inner { grid-template-columns: 1fr 1.2fr; gap: 40px; }
  .ft-contact-inner .map-box { display: none; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .txt20 { font-size: 14px !important; }
  .txt26 { font-size: 14px !important; }
  header { padding: 0 20px; }
  header nav { display: none; }
  .h-book { padding: 8px 14px; font-size: 11px; }
  .mt120 { margin-top: 60px; }
  .mt140 { margin-top: 70px; }
  .mt150 { margin-top: 70px; }
  .intro { padding: 56px 24px 48px; }

  .contact { padding: 56px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .c-phone { font-size: 22px; }
  .map-box { height: 220px; }

  .ft-contact { padding: 56px 24px; }
  .ft-contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .ft-c-left h3 { font-size: 34px; }
  .ft-contact .c-phone { grid-template-columns: 60px 1fr; font-size: 30px; }
  .ft-contact .c-phone span { font-size: 13px; }
  .ft-contact .c-lbl { font-size: 13px; }
  .ft-contact .c-val { font-size: 14px; }
  .ft-contact .c-row { grid-template-columns: 72px 1fr; gap: 14px; }
  .ft-contact .c-note { font-size: 14px; margin-top: 6px; }
  .ft-contact .c-submit { width: 100%; margin-left: 0; }
  .ft-c-left h3 { font-size: 28px; margin-bottom: 20px; }

  footer { padding: 48px 24px 36px; }
  .ft-top { flex-direction: column; gap: 24px; }
  .ft-nav { gap: 16px; flex-wrap: wrap; }
  .ft-bottom-inner { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .ft-right { align-items: flex-start; }

  .intro p,
  .intro-sub,
  .intro-lead,
  .intro-desc,
  .dm-intro p,
  .pm-intro p,
  .rsv-intro p,
  .md-section-desc {
    font-size: 14px !important;
    line-height: 1.58 !important;
  }
}

@media (max-width: 480px) {
  .c-agree {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .c-agree-more {
    white-space: normal;
  }
}
