/* ==========================================================================
   Design system — change the brand here and the whole site follows
   ========================================================================== */
:root {
  --cream: #f7f3ed;
  --sand: #ebe3d8;
  --stone: #cfc4b5;
  --ink: #1f1c19;
  --muted: #6b645c;
  --accent: #2f4a3f;        /* booking buttons only */
  --accent-dark: #233a31;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --section: clamp(64px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4.2vw, 54px); }
h3 { font-size: 26px; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--cream); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section--ink .eyebrow { color: var(--stone); }
.lede { font-size: 19px; color: var(--muted); max-width: 56ch; }
.section-head { display: grid; gap: 20px; margin-bottom: 56px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--book { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--book:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.text-link {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-underline-offset: 6px;
}

/* Placeholder photo panels — replace with <img> when real photos arrive */
.photo {
  position: relative;
  background: linear-gradient(150deg, #e4d9ca 0%, #cdbfad 55%, #b8a892 100%);
  overflow: hidden;
}
.photo::after {
  content: attr(data-label);
  position: absolute;
  inset-inline-start: 16px;
  bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 28, 25, 0.55);
}
/* Real device photos: shown whole, with the white background blended away */
.photo.photo--device { background: var(--sand); }
.photo--device::after { content: none; }
.photo--device img {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  object-fit: contain;
}
.device-logo { height: 54px; width: auto; margin-bottom: 28px; mix-blend-mode: multiply; }
.photo--device img.device-logo--corner { inset: auto auto 18px 18px; width: auto; height: 30px; margin: 0; }
.photo--b { background: linear-gradient(200deg, #dcd3c6 0%, #bfb3a3 60%, #a59682 100%); }
.photo--c { background: linear-gradient(120deg, #d8dcd2 0%, #b4bdb0 60%, #8f9c8f 100%); }
.photo--d { background: linear-gradient(170deg, #ead9cf 0%, #d3b9aa 60%, #b89a8a 100%); }

/* ==========================================================================
   Notice bar + header
   ========================================================================== */
.notice {
  background: var(--ink);
  color: var(--stone);
  font-size: 12.5px;
  text-align: center;
  padding: 9px var(--gutter);
}
.notice a { color: var(--cream); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 237, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header.is-scrolled { border-bottom-color: var(--stone); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
/* The SK mark, cropped from the clinic's own logo file */
.logo::before {
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  background: url("images/sk-logo.webp") -52px -4.9px / 143.2px auto no-repeat;
  mix-blend-mode: multiply;
}
.footer .logo::before { display: none; }
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { font-size: 14px; text-decoration: none; white-space: nowrap; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(40px, 6vw, 88px) 0 var(--section); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero h1 em { font-style: italic; }
.hero .lede { margin: 28px 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__photo { aspect-ratio: 4 / 5; border-radius: 240px 240px 4px 4px; }
.hero__photo--img { width: 100%; object-fit: cover; object-position: center 20%; background: var(--sand); }

.trust {
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust__item { padding: 30px 24px; border-inline-start: 1px solid var(--stone); }
.trust__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.trust__item strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 4px;
}
.trust__item span { font-size: 14.5px; color: var(--muted); }

/* ==========================================================================
   Treatments
   ========================================================================== */
.treatments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px clamp(28px, 4vw, 56px);
}
.treatments--three { grid-template-columns: repeat(3, 1fr); }
.treatments--three .treatment h3 { font-size: 28px; }
.treatment .photo { aspect-ratio: 3 / 2; margin-bottom: 24px; }
.treatment .eyebrow { margin-bottom: 10px; }
.treatment h3 { font-size: 34px; }
.treatment .desc { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 54ch; }
.treatment__photo { display: block; overflow: hidden; margin-bottom: 24px; }
.treatment__photo .photo { margin-bottom: 0; transition: transform 0.5s; }
.treatment__photo:hover .photo { transform: scale(1.03); }
.treatment h3 a { text-decoration: none; }
.treatment h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.treatment__more { display: inline-block; margin-top: 20px; }
.price { font-family: var(--serif); font-size: 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--stone); }
.price span { font-family: var(--sans); font-size: 14.5px; color: var(--muted); margin-inline-start: 6px; }
p.disclaimer.treatments__note { max-width: 78ch; margin: 56px 0 28px; }

/* ==========================================================================
   Treatment pages
   ========================================================================== */
.page-hero { padding: clamp(28px, 4vw, 56px) 0 var(--section); }
.back-link {
  display: inline-block;
  margin-bottom: clamp(28px, 4vw, 56px);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover { color: var(--ink); }
.page-hero .lede { margin: 24px 0 0; }
.page-hero .price { display: inline-block; margin-top: 28px; }
.page-hero .hero__cta { margin-top: 36px; }
.page-hero__photo { aspect-ratio: 4 / 3.4; }
.section--tight { padding-top: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gallery .photo { aspect-ratio: 4 / 3; }
.section--tight:has(.gallery) { padding-bottom: clamp(48px, 6vw, 88px); }
.detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(20px, 5vw, 80px);
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--stone);
}
.detail h2 { font-size: clamp(28px, 3vw, 40px); }
.detail__body { display: grid; gap: 18px; max-width: 62ch; }
.detail__body ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
/* Mandatory statement shown under every device */
.mandatory { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.treatment .mandatory { margin-top: 20px; }
.notice-line { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
p.disclaimer.detail__note { border-top: 1px solid var(--stone); padding-top: 28px; margin-top: 0; max-width: none; }
.cta { display: grid; gap: 20px; justify-items: start; }
.cta .hero__cta { margin-top: 12px; }

/* ==========================================================================
   Process
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li { counter-increment: step; border-top: 1px solid rgba(247, 243, 237, 0.3); padding-top: 24px; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--stone);
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--stone); font-size: 15.5px; }

/* ==========================================================================
   Team
   ========================================================================== */
.lead-member {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: 72px;
}
.lead-member h3 { font-size: clamp(30px, 3.4vw, 42px); margin: 8px 0 6px; }
.lead-member .portrait { margin-bottom: 0; }
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.portrait {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  object-position: center top;
  background: var(--sand);
  margin-bottom: 18px;
}
.member h3 { margin: 6px 0 4px; }
.role { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.reg { font-size: 14px; color: var(--muted); }
.bio { font-size: 15.5px; color: var(--muted); margin-top: 14px; max-width: 60ch; }
.langs { font-size: 14px; margin-top: 12px; }

/* ==========================================================================
   Results
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair .photo { aspect-ratio: 3 / 4; }
.disclaimer { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.split .lede { margin: 20px 0 30px; }

/* ==========================================================================
   Booking
   ========================================================================== */
.book__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); }
.clinic-info { display: grid; gap: 22px; margin-top: 36px; }
.clinic-info dt { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.clinic-info dd { margin: 0; }
.clinic-info div { border-top: 1px solid var(--stone); padding-top: 18px; }

.form { background: var(--white); padding: clamp(24px, 4vw, 48px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--stone);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font: 16px var(--sans);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.book-card { align-content: start; }
.book-card p { color: var(--muted); }
.form__note { font-size: 13.5px; color: var(--muted); }
.form__status { font-size: 15px; padding: 14px 16px; background: var(--sand); display: none; }
.form__status.is-visible { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: var(--stone); padding: 72px 0 36px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .logo { color: var(--cream); display: inline-block; margin-bottom: 16px; }
.footer h4 { font: 500 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer__legal { border-top: 1px solid rgba(247, 243, 237, 0.18); margin-top: 56px; padding-top: 24px; font-size: 13px; display: grid; gap: 10px; }

/* Mobile booking bar */
.mobile-book { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .header__phone { display: none; }
}
@media (max-width: 1020px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--stone);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--sand); }
  .menu-toggle { display: block; }
  .header__phone { display: none; }
  .treatments--three { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .header__inner { min-height: 66px; }
  .logo { font-size: 15px; letter-spacing: 0.1em; gap: 9px; }
  .logo::before { width: 30px; height: 30px; background-position: -41px -3.8px; background-size: 113px auto; }
  .header__actions .btn--book { display: none; }
  .hero__grid, .split, .book__grid, .lead-member, .detail { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4 / 4.2; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item { padding: 22px 16px; }
  .trust__item:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .trust__item:nth-child(n + 3) { border-top: 1px solid var(--stone); }
  .treatments, .treatments--three { grid-template-columns: 1fr; gap: 44px; }
  .team { grid-template-columns: 1fr; gap: 48px; }
  .treatment h3 { font-size: 28px; }
  .form__row { grid-template-columns: 1fr; }
  .mobile-book {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 16px;
    background: var(--cream);
    border-top: 1px solid var(--stone);
  }
  .mobile-book .btn { flex: 1; padding: 0 12px; }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Languages
   ========================================================================== */
.langbar {
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.langbar .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; }
.langbar a, .langbar__current { display: inline-flex; align-items: center; gap: 7px; }
.flag { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(31, 28, 25, 0.18); }
.langbar a { color: var(--muted); text-decoration: none; }
.langbar a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.langbar__current { color: var(--ink); font-weight: 600; }
.mandatory__en { display: block; margin-top: 4px; }
@media (max-width: 760px) {
  .langbar .wrap { justify-content: center; gap: 4px 14px; }
}

/* Latin text keeps the brand typefaces; each script falls through to its own face */
html[lang="ko"] { --serif: "Cormorant Garamond", "Noto Serif KR", serif; --sans: "Jost", "Noto Sans KR", sans-serif; }
html[lang="zh-Hans"] { --serif: "Cormorant Garamond", "Noto Serif SC", serif; --sans: "Jost", "Noto Sans SC", sans-serif; }
html[lang="th"] { --serif: "Cormorant Garamond", "Noto Serif Thai", serif; --sans: "Jost", "Noto Sans Thai", sans-serif; }
html[lang="ar"] { --serif: "Cormorant Garamond", "Noto Naskh Arabic", serif; --sans: "Jost", "Noto Sans Arabic", sans-serif; }
html[lang="vi"] { --sans: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif; }

/* Scripts without capitals or italics: calmer spacing, sizes and line height */
:is(html[lang="ko"], html[lang="zh-Hans"], html[lang="th"], html[lang="ar"]) body { line-height: 1.8; }
:is(html[lang="ko"], html[lang="zh-Hans"], html[lang="th"], html[lang="ar"]) :is(h1, h2, h3) { line-height: 1.35; letter-spacing: 0; }
:is(html[lang="ko"], html[lang="zh-Hans"], html[lang="th"], html[lang="ar"]) h1 { font-size: clamp(34px, 4.8vw, 60px); }
:is(html[lang="ko"], html[lang="zh-Hans"], html[lang="th"], html[lang="ar"]) h2 { font-size: clamp(27px, 3.3vw, 42px); }
:is(html[lang="ko"], html[lang="zh-Hans"], html[lang="th"], html[lang="ar"]) .treatment h3 { font-size: 28px; }
:is(html[lang="ko"], html[lang="zh-Hans"], html[lang="th"], html[lang="ar"]) em { font-style: normal; }
:is(html[lang="ko"], html[lang="zh-Hans"], html[lang="th"], html[lang="ar"]) :is(.eyebrow, .btn, .nav a, .text-link, .back-link, .role, .mandatory, .notice-line, .footer h4, .clinic-info dt) {
  letter-spacing: 0.03em;
  font-size: 14px;
}
:is(html[lang="th"], html[lang="ar"]) :is(.eyebrow, .btn, .nav a, .text-link, .back-link, .role, .mandatory, .notice-line, .footer h4, .clinic-info dt) { letter-spacing: 0; }
:is(html[lang="ko"], html[lang="zh-Hans"], html[lang="th"], html[lang="ar"]) .mandatory { font-size: 12.5px; }
:is(html[lang="ko"], html[lang="zh-Hans"]) :is(p, li, h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="zh-Hans"] :is(p, li, h1, h2, h3) { word-break: normal; }
[dir="rtl"] .mandatory__en { text-align: right; }
