/* ==========================================================================
   연세플란트치과의원 /introduce/ 공용 스타일
   ========================================================================== */

:root {
  --ysp-point: #595757;
  --ysp-ink: #262626;
  --ysp-ink-soft: #5c5c5c;
  --ysp-paper: #ffffff;
  --ysp-sand: #ece9e6;
  --ysp-sand-soft: #f7f7f5;
  --ysp-muted: #8a8a86;
  --ysp-line: #e4e2de;
  --ysp-main-soft: #ececea;
  --radius: 18px;
  --maxw: 1160px;
}

* { box-sizing: border-box; word-break: keep-all; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ysp-paper);
  color: var(--ysp-ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.rom { font-family: 'Montserrat', 'Pretendard Variable', sans-serif; letter-spacing: 0.04em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.ysp-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ysp-line);
}
.ysp-topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.ysp-brandmark { display: flex; align-items: flex-end; gap: 10px; font-weight: 700; font-size: 18px; }
.ysp-brandmark img { height: 32px; width: auto; }
.ysp-brandmark .brand-swap {
  position: relative; display: inline-block; height: 1.3em; overflow: hidden;
  line-height: 1.3em; min-width: 150px;
}
.ysp-brandmark .brand-swap .slide { display: block; transition: transform .4s cubic-bezier(.65, 0, .35, 1); }
.ysp-brandmark .brand-swap .slide.hangul { position: absolute; top: 0; left: 0; transform: translateY(100%); }
.ysp-brandmark:hover .brand-swap .slide.rom { transform: translateY(-100%); }
.ysp-brandmark:hover .brand-swap .slide.hangul { transform: translateY(0); }
.ysp-gnb { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--ysp-ink-soft); }
.ysp-gnb a { display: inline-block; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.ysp-gnb a:hover { color: var(--ysp-ink); border-color: var(--ysp-point); }
.ysp-gnb a.on { color: var(--ysp-ink); border-color: var(--ysp-point); }
.ysp-gnb .ysp-askbtn { color: var(--ysp-paper); padding-inline: 20px }
.ysp-gnb .ysp-askbtn:hover { color: var(--ysp-paper); border-color: transparent; }

.ysp-gnb a .label-roll { position: relative; display: inline-block; height: 1.3em; overflow: hidden; line-height: 1.3em; vertical-align: bottom; }
.ysp-gnb a .label-roll .slide { display: block; transition: transform .35s cubic-bezier(.65, 0, .35, 1); }
.ysp-gnb a .label-roll .slide.dup { position: absolute; top: 0; left: 0; transform: translateY(100%); }
.ysp-gnb a:hover .label-roll .slide:not(.dup) { transform: translateY(-100%); }
.ysp-gnb a:hover .label-roll .slide.dup { transform: translateY(0); }

/* ---------- 모바일 햄버거 메뉴 ---------- */
.ysp-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; padding: 0; border: none; background: transparent; cursor: pointer;
  position: relative; z-index: 210;
}
.ysp-burger span { display: block; width: 22px; height: 2px; background: var(--ysp-ink); border-radius: 2px; }

/* 모바일 메뉴: 화면 전체를 덮는 다크 오버레이가 위→아래로 펼쳐짐 */
.ysp-fullmenu {
  position: fixed; inset: 0; height: 0; overflow: hidden;
  background: #0c0c0c; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  transition: height .5s cubic-bezier(.65, 0, .35, 1);
}
.ysp-fullmenu.opened { height: 100vh; height: 100dvh; }

.ysp-mobile-close {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
}
.ysp-mobile-close span {
  position: absolute; top: 50%; left: 50%; width: 26px; height: 2px; background: #fff;
}
.ysp-mobile-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.ysp-mobile-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.ysp-fullmenu-inner {
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  max-height: 82vh; overflow-y: auto; padding: 40px 24px;
}
.ysp-fullmenu-inner a { color: #fff; font-size: 21px; font-weight: 700; letter-spacing: 0.01em; }
.ysp-fullmenu-inner a.home { font-size: 23px; }
.ysp-fullmenu-inner a.on { text-decoration: underline; text-underline-offset: 6px; }
.ysp-fullmenu-inner a.ysp-pill {
  margin-top: 12px; background: #fff; color: #0c0c0c; font-size: 15px;
}
body.ysp-lock-scroll { overflow: hidden; }

/* ---------- buttons ---------- */
.ysp-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  border-radius: 999px; background: var(--ysp-point); color: var(--ysp-paper);
  font-weight: 600; font-size: 15px; transition: transform .2s ease, opacity .2s ease;
}
.ysp-pill:hover { transform: translateY(-2px); opacity: .88; }
.ysp-pill.outline { background: transparent; color: var(--ysp-ink); border: 1px solid var(--ysp-ink); }

/* ---------- hero ---------- */
.ysp-opening { padding: 96px 0 64px; }
.ysp-opening .opening-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.ysp-opening .opening-art {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #003775; border-radius: 28px; padding: 30px;
  aspect-ratio: 1/1;
}
.ysp-opening .opening-art img, .ysp-opening .opening-art svg { width: 100%;}
.ysp-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--ysp-muted);
  border: 1px solid var(--ysp-line); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  background: var(--ysp-main-soft);
}
.ysp-opening h1 {
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.28; margin: 0 0 20px; letter-spacing: -0.01em;
  word-break: keep-all;
  word-break: auto-phrase;
}
.ysp-block h2 {
  word-break: keep-all;
  word-break: auto-phrase;
}
.ysp-opening p.subcopy { font-size: 18px; color: var(--ysp-ink-soft); max-width: 640px; margin: 0 0 30px; }
.ysp-pathline { font-size: 13px; color: var(--ysp-muted); margin-bottom: 18px; }
.ysp-pathline a:hover { color: var(--ysp-ink); }

/* ---------- sections ---------- */
.ysp-block { padding: 64px 0; border-top: 1px solid var(--ysp-line); }
.ysp-block.flat-top { border-top: none; }
.ysp-block.tint { background: var(--ysp-sand-soft); }
.ysp-block h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 14px; letter-spacing: -0.01em; }
.ysp-block .s-desc { color: var(--ysp-ink-soft); font-size: 16px; max-width: 680px; margin: 0 0 40px; }
.ysp-block .block-head { display: grid; grid-template-columns: 1fr 88px; gap: 24px; align-items: flex-start; }
.ysp-block .block-head .title-icon {
  width: 88px; height: 88px; border-radius: 20px; background: var(--ysp-sand-soft);
  border: 1px solid var(--ysp-line); display: flex; align-items: center; justify-content: center; padding: 16px;
}

/* ---------- card grid (허브 페이지) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 16px 28px;
  background: var(--ysp-paper); border: 1px solid var(--ysp-line); border-radius: var(--radius);
  min-height: 260px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover { transform: translateY(-6px); border-color: var(--ysp-point); box-shadow: 0 18px 40px rgba(38, 38, 38, 0.08); }
.tile .num { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; color: var(--ysp-muted); }
.tile h3 { font-size: 19px; margin: 0; line-height: 1.4; }
.tile p { font-size: 14px; color: var(--ysp-muted); margin: 0; flex-grow: 1; }
.tile .more { align-self: flex-start; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--ysp-point); }
.tile .more .chev { transition: transform .2s ease; }
.tile:hover .more .chev { transform: translateX(4px); }

/* ---------- feature / info grid ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.point { padding: 28px; border: 1px solid var(--ysp-line); border-radius: var(--radius); background: var(--ysp-paper); }
.point .chip { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ysp-point); margin-bottom: 12px; }
.point h3 { font-size: 18px; margin: 0 0 10px; }
.point p { font-size: 14px; color: var(--ysp-ink-soft); margin: 0; }

/* 아이콘이 포함된 피처 카드 */
.sym-card { padding: 28px; border: 1px solid var(--ysp-line); border-radius: var(--radius); background: var(--ysp-paper); }
.sym-card .sym {
  width: 44px; height: 44px; margin-bottom: 16px; padding: 9px;
  border-radius: 12px; background: var(--ysp-sand-soft); color: var(--ysp-point);
}
.sym-card h3 { font-size: 17px; margin: 0 0 8px; }
.sym-card p { font-size: 14px; color: var(--ysp-ink-soft); margin: 0; }

/* ---------- process steps ---------- */
.flow { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--ysp-line); }
.flow-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--ysp-line); }
.flow-item .num { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--ysp-point); font-size: 15px; }
.flow-item h4 { margin: 0 0 8px; font-size: 17px; }
.flow-item p { margin: 0; color: var(--ysp-ink-soft); font-size: 14px; }

/* ---------- table ---------- */
.infotable { width: 100%; border-collapse: collapse; font-size: 14px; }
.infotable th, .infotable td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--ysp-line); }
.infotable th { color: var(--ysp-muted); font-weight: 600; width: 30%; }
.infotable td.cost { color: var(--ysp-point); font-weight: 700; }

/* ---------- FAQ ---------- */
.qa-item { border-bottom: 1px solid var(--ysp-line); padding: 22px 0; }
.qa-item .ques { display: flex; gap: 12px; font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.qa-item .ques .sign { color: var(--ysp-point); font-family: 'Montserrat', sans-serif; }
.qa-item .ans { display: flex; gap: 12px; color: var(--ysp-ink-soft); font-size: 15px; margin: 0; }
.qa-item .ans .sign { color: var(--ysp-ink); font-weight: 700; font-family: 'Montserrat', sans-serif; }

/* ---------- CTA ---------- */
.ysp-endbox { background: var(--ysp-ink); color: var(--ysp-paper); border-radius: 28px; padding: 64px 48px; text-align: center; }
.ysp-endbox h2 { color: var(--ysp-paper); }
.ysp-endbox p { color: rgba(255,255,255,.72); margin: 0 auto 30px; }
.ysp-endbox .ysp-pill { background: var(--ysp-paper); color: var(--ysp-ink); }

/* ---------- 카테고리/링크 카드 (FAQ 하단 등) ---------- */
.relay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.relay-card {
  display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--ysp-line);
  border-radius: var(--radius); background: var(--ysp-paper); transition: border-color .2s, transform .2s;
}
.relay-card:hover { border-color: var(--ysp-point); transform: translateY(-4px); }
.relay-card .sym { width: 40px; height: 40px; flex: none; padding: 8px; background: var(--ysp-sand-soft); border-radius: 10px; color: var(--ysp-point); }
.relay-card h3 { margin: 0 0 4px; font-size: 16px; }
.relay-card p { margin: 0; font-size: 13px; color: var(--ysp-muted); }

/* ---------- footer ---------- */
.ysp-sitefoot { border-top: 1px solid var(--ysp-line); padding: 40px 0; font-size: 13px; color: var(--ysp-muted); }
.ysp-sitefoot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.ysp-sitefoot address { font-style: normal; line-height: 1.8; }
.ysp-sitefoot .social a { margin-left: 14px; }
.ysp-sitefoot .social a:hover { color: var(--ysp-point); }

/* ---------- 숨김 텍스트 (h1 접근성) ---------- */
.hide-txt { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width: 960px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .trio, .relay-grid { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .ysp-gnb { display: none; }
  .ysp-burger { display: flex; }
  .ysp-opening .opening-grid { grid-template-columns: 1fr; }
  .ysp-opening .opening-art { order: -1; max-width: 240px; margin: 0 auto; }
  .ysp-block .block-head { grid-template-columns: 1fr; }
  .ysp-block .block-head .title-icon { order: -1; }
}

@media (min-width: 961px) {
  .ysp-fullmenu { display: none; }
}

@media (max-width: 620px) {
  .tile-grid { grid-template-columns: 1fr; }
  .trio, .relay-grid { grid-template-columns: 1fr; }
  .flow-item { grid-template-columns: 1fr; }
  .ysp-endbox { padding: 48px 24px; }
}
