/* medicaltattoo.org — 공통 스타일
   좌우 방향은 logical property(inline-start/end)로 써서 아랍어(RTL) 확장 시 그대로 뒤집히게 함 */
:root {
  --pearl: #FDFCFB;
  --ivory: #FAF7F2;
  --alabaster: #F3EDE2;
  --sand: #E6DEC8;
  --gold: #B68F4C;
  --gold-dark: #8A662B;
  --ink: #1E1B18;
  --taupe: #5C544D;
  --line: #E6DEC8;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Noto Serif KR", "Noto Serif", Georgia, serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--pearl); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: .8em; }
.lead { font-size: 1.08rem; color: var(--taupe); }
.muted { color: var(--taupe); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253,252,251,.94); backdrop-filter: saturate(1.4) blur(10px); border-block-end: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; margin-inline-end: auto; }
.brand-en { font-family: var(--serif); font-size: .7rem; white-space: nowrap; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.brand-ko { font-weight: 700; font-size: 1rem; }
.header-call { text-decoration: none; font-weight: 700; font-size: .92rem; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav-list > li > a { display: block; white-space: nowrap; padding: 8px 9px; text-decoration: none; font-size: .94rem; border-radius: 8px; }
.nav-list a:hover, .nav-list a[aria-current="page"], .has-sub.is-active > .sub-label { color: var(--gold-dark); }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; inset-inline-start: 0; top: 100%; min-width: 210px; background: var(--pearl); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(30,27,24,.08); display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 8px 10px; text-decoration: none; border-radius: 8px; font-size: .93rem; }
.sub a:hover { background: var(--alabaster); }
.langs { font-size: .8rem; color: var(--taupe); margin: 0; }
.langs a { text-decoration: none; margin-inline-end: 10px; }
.menu-panel { display: flex; align-items: center; gap: 12px; }
.menu-panel .langs { display: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; order: 3; }
  .header-call { order: 2; padding: 5px 11px; font-size: .85rem; }
  .menu-panel { display: none; position: absolute; inset-inline: 0; top: 64px; background: var(--pearl); border-block-end: 1px solid var(--line); padding: 8px 20px 20px; flex-direction: column; align-items: stretch; max-height: calc(100vh - 64px); overflow: auto; }
  .menu-panel.is-open { display: flex; }
  .menu-panel .langs { display: block; padding-top: 10px; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a { padding: 12px 4px; border-block-end: 1px solid var(--alabaster); border-radius: 0; }
  .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 6px; background: none; columns: 2; }
  .sub a { padding: 8px 4px; font-size: .9rem; color: var(--taupe); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; font-size: .98rem; }
.btn-primary { background: var(--ink); color: var(--pearl); }
.btn-primary:hover { background: #3a332d; }
.btn-ghost { border-color: var(--ink); }
.btn-kakao { background: #FEE500; color: #191600; }
.btn-kakao.is-pending { background: var(--alabaster); color: var(--taupe); font-weight: 500; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 8vw, 96px); }
.bg-ivory { background: var(--ivory); }
.bg-alabaster { background: var(--alabaster); }
.bg-warm { background: var(--ivory); border-block: 1px solid var(--sand); }
.section-head { max-width: 720px; margin-block-end: 36px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--alabaster); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 3 / 2; }
.photo.ba { aspect-ratio: auto; }
.photo.ba img { object-fit: contain; height: auto; }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 72px); background: var(--ivory); }
.hero .split { align-items: stretch; }
.hero-text { display: flex; flex-direction: column; justify-content: center; }
.hero .photo { min-height: 360px; }
.page-hero { background: var(--ivory); padding-block: clamp(40px, 6vw, 72px); border-block-end: 1px solid var(--line); }
.breadcrumb { font-size: .85rem; color: var(--taupe); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.facts div { background: var(--pearl); padding: 16px; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.facts span { font-size: .85rem; color: var(--taupe); }


/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card .num { font-family: var(--serif); color: var(--gold); font-size: .95rem; }
.card h3 { margin: 6px 0 8px; }
.card p { color: var(--taupe); font-size: .94rem; margin-bottom: 14px; }
.card .more { margin-top: auto; font-weight: 700; font-size: .9rem; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--alabaster); color: var(--gold-dark); margin-bottom: 6px; }

/* lists */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-inline-start: 26px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 12px; height: 7px; border-inline-start: 2px solid var(--gold); border-block-end: 2px solid var(--gold); transform: rotate(-45deg); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.steps li { counter-increment: s; background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: "STEP " counter(s, decimal-leading-zero); display: block; font-size: .75rem; letter-spacing: .14em; color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--taupe); font-size: .93rem; }

/* cases */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.case { margin: 0; background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case .frame { position: relative; aspect-ratio: 4 / 3; background: var(--alabaster); overflow: hidden; }
.case .frame img { width: 100%; height: 100%; object-fit: contain; }
.case figcaption { padding: 14px 16px 16px; font-size: .92rem; }
.case figcaption strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.case figcaption span { color: var(--taupe); }
.sensitive .frame img { filter: blur(22px) saturate(.8); transform: scale(1.1); transition: filter .25s; }
.sensitive.revealed .frame img { filter: none; transform: none; }
.reveal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(250,247,242,.55); border: 0; cursor: pointer; font: inherit; color: var(--ink); text-align: center; padding: 16px; }
.reveal b { font-size: .95rem; }
.reveal small { color: var(--taupe); font-size: .8rem; }
.sensitive.revealed .reveal { display: none; }
.reveal-all { margin-bottom: 18px; }
.notice { font-size: .85rem; color: var(--taupe); background: var(--ivory); border-inline-start: 3px solid var(--gold); padding: 12px 16px; border-radius: 6px; margin-top: 22px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.compare th, table.compare td { text-align: start; padding: 14px; border-block-end: 1px solid var(--line); vertical-align: top; }
table.compare thead th { font-size: .82rem; letter-spacing: .06em; color: var(--taupe); }
table.hours { border-collapse: collapse; font-size: .93rem; }
table.hours th { text-align: start; font-weight: 500; padding: 4px 18px 4px 0; padding-inline: 0 18px; color: var(--taupe); }
table.hours td { padding: 4px 0; font-weight: 600; }

/* faq */
.faq details { border-block-end: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-inline-end: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: -2px; font-size: 1.3rem; color: var(--gold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--taupe); }

/* contact cta */
.contact-cta { background: var(--ink); color: var(--pearl); }
.contact-cta .eyebrow { color: var(--sand); }
.contact-cta p { color: #d9d1c6; max-width: 640px; }
.contact-cta .btn-primary { background: var(--pearl); color: var(--ink); }
.contact-cta .btn-kakao.is-pending { background: rgba(255,255,255,.1); color: #d9d1c6; }

.info-box { background: var(--pearl); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-box h3 { font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.phone-big { font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 2.6rem); text-decoration: none; display: inline-block; margin: 4px 0 10px; }

/* footer */
.site-footer { background: var(--alabaster); padding: 48px 0 110px; font-size: .9rem; color: var(--taupe); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-name { font-weight: 700; color: var(--ink); }
.footer-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.footer-legal { border-block-start: 1px solid var(--sand); margin-top: 28px; padding-top: 18px; font-size: .8rem; }
.footer-legal p { margin: 0 0 4px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* sticky cta (mobile) */
.sticky-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(253,252,251,.96); border-block-start: 1px solid var(--line); backdrop-filter: blur(8px); }
.sticky-cta .btn { flex: 1; min-height: 46px; padding: 0 10px; font-size: .92rem; }
@media (max-width: 1080px) { .sticky-cta { display: flex; } }
@media (min-width: 1081px) { .site-footer { padding-bottom: 48px; } }

/* 라이트박스 */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 96vw; max-height: 96vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; padding: 8px; }

:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
