/* Craft Clinic — shared styles */

:root {
  --ink: #3d3835;          /* main text / dark buttons */
  --brown: #8c593a;        /* accent (logo, headings, outline buttons) */
  --line: #e7e7e7;         /* hairline borders */
  --muted: #6f6a66;
  --bg: #ffffff;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.2vw, 32px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
img { height: auto; } /* images carry width/height for layout stability; keep their shape */
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }

.display { font-size: clamp(40px, 6.2vw, 88px); }
.h2 { font-size: clamp(34px, 5vw, 64px); }
.h3 { font-size: 24px; line-height: 1.15; }
.brown { color: var(--brown); }
.wrap { padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 13px; letter-spacing: .02em;
  text-decoration: none; text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer; font-family: inherit;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--brown { border-color: var(--brown); color: var(--brown); }
.btn--brown:hover { background: var(--brown); color: #fff; }
.btn--sm { text-transform: none; padding: 7px 16px; font-size: 13px; }

/* Square CTA box with arrow (hero, signature section) */
.cta-box {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 20px; background: #fff; color: var(--ink);
  text-decoration: none; text-transform: uppercase;
  font-size: 15px; line-height: 1.1;
}
.cta-box .arrow { width: 30px; height: 30px; flex: none; transition: transform .25s; }
.cta-box:hover .arrow { transform: translate(3px, -3px); }
.cta-box--dark { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  background: #fff;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .logo { flex: none; }
.site-header .logo img { height: 34px; width: auto; }
.site-header > .btn { flex: none; }

/* Top menu bar */
.topnav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); margin: 0 auto; }
.topnav a { text-decoration: none; font-size: 14px; white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent; }
.topnav a:hover { color: var(--brown); }
.topnav > a[aria-current="page"], .dropdown > a[aria-current="page"] { color: var(--brown); border-bottom-color: var(--brown); }

/* Language switch (TH / EN) */
.lang-switch { display: flex; align-items: center; gap: 6px; margin-right: 16px; font-size: 13px; flex: none; color: var(--muted); }
.lang-switch a { text-decoration: none; padding: 4px 2px; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--brown); font-weight: 500; }

/* Thai pages: Thai font for Thai letters, and taller lines so tone marks aren't clipped */
:lang(th) body { font-family: "Inter Tight", "Noto Sans Thai", "Helvetica Neue", sans-serif; }
:lang(th) h1, :lang(th) h2, :lang(th) h3, :lang(th) .cta-box { line-height: 1.3; }
:lang(th) .display { font-size: clamp(36px, 5.4vw, 76px); }

/* Japanese pages */
:lang(ja) body { font-family: "Inter Tight", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .cta-box { line-height: 1.35; letter-spacing: 0; }
:lang(ja) .display { font-size: clamp(32px, 5vw, 68px); }
:lang(ja) p, :lang(ja) dd, :lang(ja) li { line-break: strict; }
.ja-band { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); background: #faf7f4; }
.ja-band > div { padding: 32px var(--gutter); }
.ja-band > div + div { border-left: 1px solid var(--line); }
.ja-band h2 { margin-bottom: 10px; color: var(--brown); }
.ja-band p { font-size: 15px; line-height: 1.8; max-width: 560px; }
.ja-band a { color: var(--brown); }
@media (max-width: 680px) { .ja-band { grid-template-columns: 1fr; } .ja-band > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Treatment dropdown */
/* static: the panel is placed against the whole header, centred on the page */
.dropdown { position: static; display: flex; align-items: center; gap: 4px; }
.dd-toggle { border: 0; background: none; padding: 6px 4px; cursor: pointer; color: inherit; display: grid; place-items: center; }
.dd-toggle svg { transition: transform .2s; }
.dropdown.open .dd-toggle svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  width: min(860px, 92vw); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  padding: 8px 0; z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.dropdown.open .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 8px; max-height: 70vh; overflow-y: auto; }
.dd-group { padding: 6px 0 8px; }
.dd-cat { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); padding: 8px 20px 4px; font-weight: 500; }
@media (hover: hover) and (min-width: 1181px) {
  .dropdown:hover .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .dropdown:hover .dd-toggle svg { transform: rotate(180deg); }
}
.dd-panel a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 20px; font-size: 13px; border: 0; white-space: normal; }
.dd-panel a small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dd-panel a:hover { background: #f6f4f2; color: var(--ink); }
.dd-panel .dd-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--brown); }

/* ---------- Home: hero ---------- */
/* Photo of the doctors in the clinic; heading and buttons sit on the empty left side */
.hero {
  position: relative; overflow: hidden; background: #f4f0ec;
  aspect-ratio: 2 / 1; max-height: calc(100svh - var(--header-h)); min-height: 480px; width: 100%;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
/* Soft light fade on the left so the heading stays easy to read over the wall sign */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(248,245,241,.88) 0%, rgba(248,245,241,.6) 28%, rgba(248,245,241,0) 46%);
}
.hero-copy {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(28px, 6vh, 64px) var(--gutter) 0;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero-copy h1 { color: var(--brown); }
.hero-copy .tag { margin-top: 16px; font-size: 15px; max-width: 340px; }
.hero-actions { display: flex; gap: 0; }
.hero-actions .cta-box { width: clamp(170px, 17vw, 220px); aspect-ratio: 1.55; }
.hero-actions .cta-box + .cta-box { border-left: 1px solid var(--line); }

/* ---------- Home: partners strip ---------- */
.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip > div { padding: 22px var(--gutter); min-height: 180px; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip .label { font-size: 13px; margin-bottom: 14px; }
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 22px; align-items: center; }
.partners img { max-height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.stars { font-size: 22px; color: var(--brown); letter-spacing: 3px; margin-top: 6px; }
.big-hours { font-size: 26px; line-height: 1.15; margin-top: 4px; }

/* ---------- Home: signature treatments ---------- */
.section-head { padding: 72px var(--gutter) 40px; }
.section-head p { margin-top: 18px; font-size: 14px; }
.signature { display: grid; grid-template-columns: 3fr 2fr; }
.signature .left { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr; }
.signature .cat { padding: 20px var(--gutter); border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.signature .cat h3 { margin-bottom: 14px; }
.signature .item { font-size: 13px; line-height: 1.35; margin-bottom: 12px; }
.signature .item span { display: block; color: var(--muted); }
.signature .video { position: relative; overflow: hidden; min-height: 280px; }
.signature .video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.signature .cta-box--dark { grid-column: span 2; min-height: 280px; padding: 24px; font-size: 16px; }
.signature .right { position: relative; min-height: 360px; }
.signature .right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 0; }

/* ---------- Home: transformations ---------- */
.transform { position: relative; min-height: 620px; display: flex; flex-direction: column; overflow: hidden; color: #fff; }
.transform > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.transform::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12); }
.transform > * { position: relative; z-index: 1; }
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px var(--gutter) 12px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { height: 230px; width: auto; flex: none; scroll-snap-align: start; border-radius: 2px; }
.gallery-nav { display: flex; gap: 8px; padding: 0 var(--gutter); justify-content: flex-end; }
.gallery-nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; font-size: 16px; }
.transform .copy { margin: auto 0; text-align: center; padding: 40px var(--gutter) 60px; }
.transform .copy p { margin: 14px 0 26px; font-size: 14px; }
.transform .btn { border-color: #fff; color: #fff; }
.transform .btn:hover { background: #fff; color: var(--ink); }

/* ---------- Home: about intro ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 80px var(--gutter); }
.intro .tag { margin-top: 18px; font-size: 14px; }
.intro .body { font-size: 15px; line-height: 1.7; max-width: 560px; justify-self: end; }
.intro .body p + p { margin-top: 14px; }
.intro .body strong { font-weight: 500; }
.intro .actions { grid-column: 2; justify-self: start; display: flex; gap: 10px; flex-wrap: wrap; width: 100%; max-width: 560px; margin-left: auto; }

/* ---------- Home: treatment index grid ---------- */
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.tgrid > * { aspect-ratio: 1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tgrid > *:nth-child(4n) { border-right: 0; }
.tgrid a {
  position: relative; display: grid; place-items: center; text-decoration: none; overflow: hidden;
  font-size: 14px; text-align: center; padding: 16px;
}
.tgrid a .n { position: absolute; left: 14px; top: 12px; font-size: 11px; }
.tgrid a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .4s, transform .6s; }
.tgrid a span { position: relative; z-index: 1; transition: color .3s; }
.tgrid a:hover img, .tgrid a:focus-visible img { opacity: 1; transform: none; }
.tgrid a:hover span, .tgrid a:focus-visible span { color: #fff; }

/* ---------- Page heads ---------- */
.page-head { padding: 80px var(--gutter) 56px; }
.page-head p { margin-top: 18px; max-width: 360px; font-size: 14px; }
.page-head .btn { margin-top: 26px; }
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 20% 25%;
}
.split-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: 420px; }
.split-head .copy { padding: 60px var(--gutter); }
.split-head img { justify-self: end; height: 100%; max-height: 440px; width: auto; object-fit: cover; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 4%; padding: 40px var(--gutter) 100px; }
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card h3 { font-size: 20px; margin: 18px 0 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); min-height: 2.3em; }
.card .meta { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.card a.title-link { text-decoration: none; }

/* Before & after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 8%; padding: 20px var(--gutter) 100px; }
.ba figure { margin: 0; }
.ba figcaption { font-size: 22px; line-height: 1.15; margin-bottom: 16px; max-width: 360px; }
.ba img { width: 100%; height: auto; }
.ba .labels { display: flex; justify-content: space-around; font-size: 12px; margin-top: 8px; }

/* Team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 6%; padding: 20px var(--gutter) 100px; }
.doctor img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; margin-bottom: 22px; }
.doctor h2 { font-size: 28px; }
.doctor .role { font-size: 15px; margin: 4px 0 18px; }
.doctor h4 { font-size: 13px; font-weight: 500; margin: 14px 0 4px; }
.doctor ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.doctor h2 .nick { color: var(--brown); font-size: .7em; white-space: nowrap; }
.doctor > p:not(.role) { font-size: 14px; line-height: 1.7; }
.doctor strong { font-weight: 500; }

/* About: clinic story */
.story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6%; padding: 0 var(--gutter) 40px; align-items: start; }
.story-text p { font-size: 16px; line-height: 1.8; margin-bottom: 18px; }
.story-text strong { font-weight: 500; }
.quote { margin: 0; padding: 28px 0 28px 28px; border-left: 2px solid var(--brown); font-size: clamp(18px, 2vw, 24px); line-height: 1.5; color: var(--brown); position: sticky; top: calc(var(--header-h) + 24px); }
.doctor li::before { content: "– "; }

/* Portfolio */
.portfolio .card img { aspect-ratio: 4/3; }
.portfolio .card .row { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 10px; font-size: 15px; }
.portfolio .card p { font-size: 13px; color: var(--muted); }

/* Blog */
.posts { display: grid; gap: 40px; padding: 20px var(--gutter) 100px; max-width: 1100px; }
.post-card { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); text-decoration: none; }
.post-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.post-card .body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.post-card .by { font-size: 12px; color: var(--muted); }
.post-card h2 { font-size: 26px; line-height: 1.15; }
.post-card:hover h2 { color: var(--brown); }

/* Long-form text (blog posts, legal pages, treatment detail) */
.prose { max-width: 740px; margin: 0 auto; padding: 64px var(--gutter) 100px; font-size: 16px; line-height: 1.7; }
.prose h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 24px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; line-height: 1.2; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; line-height: 1.25; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose .by { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.prose img.cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin: 0 0 32px; }
.prose .back { display: inline-block; font-size: 13px; margin-bottom: 30px; }
.prose a { color: var(--brown); }
.prose .btn { color: #fff; margin-top: 12px; }
/* Comparison tables (scroll sideways on small screens) */
.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: #f6f1ec; font-weight: 500; }
.prose tbody th { font-weight: 500; width: 26%; }
.prose tbody tr:last-child th, .prose tbody tr:last-child td { border-bottom: 0; background: #fbf8f5; }

/* Treatment detail */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; padding: 60px var(--gutter) 100px; align-items: start; }
.detail-media { position: sticky; top: calc(var(--header-h) + 20px); }
.detail-media > img, .detail-media .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail .back { font-size: 13px; }
.eyebrow { margin-top: 24px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); }
.detail h1 { margin-top: 8px; }
.detail .meta { margin: 20px 0 28px; font-size: 14px; display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail p { font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.detail .note, .note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.detail-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.crumbs { font-size: 12px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: inherit; }
.detail { padding-top: 24px; }
.notfound { min-height: 60vh; }
.notfound p { max-width: 520px; }
.pkg-link { margin-top: 18px; font-size: 15px; }
.pkg-link a { color: var(--brown); }
.detail-more { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-more ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.8; }
.detail-more a { color: var(--brown); }
.related { border-top: 1px solid var(--line); padding-top: 48px; }
.related .cards { padding-top: 24px; }
address.contact { font-style: normal; }

/* Label / value list (treatment facts, contact details) */
.facts { margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 500; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.6; }

/* Placeholder card for treatments without a photo yet */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; aspect-ratio: 3/2;
  background: linear-gradient(135deg, #f6f1ec, #ece3da); color: var(--brown); text-align: center; padding: 20px; }
.ph img { width: 64px; height: auto; opacity: .85; }
.ph span { font-size: 15px; max-width: 80%; }

/* Treatment Menu grouped by category */
.t-cat { padding-top: 56px; }
.t-cat > .h2 { padding: 0 var(--gutter); font-size: clamp(28px, 3.6vw, 44px); }
.t-cat .cards { padding-top: 32px; padding-bottom: 40px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.review { margin: 0; padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; background: #fff; }
.review .stars { font-size: 15px; letter-spacing: 2px; margin: 0; }
.review blockquote { margin: 0; font-size: 15px; line-height: 1.6; flex: 1; }
.review figcaption { font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.review figcaption span { color: var(--muted); font-size: 12px; }
.reviews-foot { margin: 18px 0 80px; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); }
.reviews-foot a { color: var(--brown); }
.strip a.label-link { color: inherit; font-size: 13px; }

/* Contact page */
.contact-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6%; padding: 0 var(--gutter) 40px; }
.ci-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.2); }

/* FAQ */
.faq { max-width: 820px; padding: 0 var(--gutter) 40px; }
.faq h2 { margin: 40px 0 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-size: 16px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--brown); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; font-size: 15px; line-height: 1.7; color: #4d4743; }
.cta-band { padding: 60px var(--gutter) 90px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 40px; }
.cta-band .ci-actions { margin: 0; }

/* Packages */
.pkg-wrap { padding-bottom: 90px; }
.pkg-wrap .cards { padding: 0; }
.pkg { border: 1px solid var(--line); padding: 28px; }
.pkg h3 { border: 0; margin: 0 0 6px; min-height: 0; padding: 0; }
.pkg-price { font-size: 22px; color: var(--brown); margin-bottom: 16px; }
.pkg ul { padding-left: 18px; margin: 0 0 18px; font-size: 14px; line-height: 1.7; }
.pkg-block { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: 5%; align-items: start; padding-bottom: 60px; }
.pkg-img img { width: 100%; border: 1px solid var(--line); }
.pkg-block--wide { grid-template-columns: 1fr; max-width: 980px; }
.pkg-block + .pkg-block { border-top: 1px solid var(--line); padding-top: 56px; }
.pkg-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 48px; }
.pkg-jump a { text-decoration: none; font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; }
.pkg-jump a:hover { border-color: var(--brown); color: var(--brown); }
.pkg-block, .price-list { scroll-margin-top: calc(var(--header-h) + 16px); }
.pkg-table td small { display: block; color: var(--muted); font-size: 12px; }
.pkg-body .h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; }
.pkg-text { font-size: 16px; line-height: 1.7; margin: 16px 0 24px; }
.pkg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pkg-table th, .pkg-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.pkg-table thead th { background: #f6f1ec; font-weight: 500; font-size: 13px; }
.pkg-table td.pkg-price { color: var(--brown); font-weight: 500; font-size: 17px; margin: 0; }
.pkg-table tbody tr:hover { background: #fbf8f5; }
.pkg-table td { white-space: nowrap; }
.price-list { border-top: 1px solid var(--line); padding-top: 56px; max-width: 980px; }
.price-list h3 { margin: 32px 0 12px; color: var(--brown); }
.price-table td:first-child { white-space: normal; width: 62%; }
.price-table td:first-child a { color: inherit; }
.price-table td:first-child a:hover { color: var(--brown); }
.price-table td.pkg-price { white-space: normal; font-size: 15px; }
@media (max-width: 680px) { .pkg-table th, .pkg-table td { padding: 10px 8px; font-size: 14px; } .pkg-table td.pkg-price { font-size: 15px; } }
.pkg-body .note { margin-bottom: 20px; }
.empty-pkg { border: 1px solid var(--line); padding: 40px; max-width: 640px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; font-size: 16px; }

/* Mobile call / LINE bar */
.contact-bar { display: none; }
.contact-bar svg { width: 20px; height: 20px; fill: currentColor; }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; line-height: 1.55;
}
.cookie a { color: var(--brown); }
.cookie-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.site-footer .copy .lic { display: flex; flex-direction: column; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px 8%; font-size: 13px; }
.site-footer .news p { font-size: 18px; max-width: 460px; margin-bottom: 24px; }
.foot-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer label { display: block; font-size: 12px; margin-bottom: 6px; }
.site-footer input[type=email] { width: 100%; max-width: 420px; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 16px; font: inherit; }
.site-footer .check { display: flex; gap: 8px; align-items: center; margin: 16px 0 18px; font-size: 13px; }
.site-footer .form-note { margin-top: 10px; font-size: 12px; color: var(--brown); min-height: 1em; }
.site-footer nav { display: flex; flex-direction: column; gap: 2px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { text-decoration: underline; }
.site-footer .social { display: flex; gap: 8px; margin: 40px 0 24px; }
.site-footer .social a { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.site-footer .social svg { width: 14px; height: 14px; fill: currentColor; }
.site-footer .contact { border-top: 1px solid var(--ink); padding-top: 10px; display: grid; gap: 4px; }
.site-footer .contact a { text-decoration: none; }
.site-footer .big-logo img { width: min(100%, 380px); }
.site-footer .legal { display: flex; flex-direction: column; gap: 2px; align-self: end; }
.site-footer .legal a { font-size: 12px; }
.site-footer .copy { grid-column: 2; font-size: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  /* Header becomes two rows: logo + Book now, then a swipeable menu bar */
  .site-header { height: auto; flex-wrap: wrap; padding-top: 12px; }
  .site-header .logo { order: 1; }
  .lang-switch { order: 2; margin-left: auto; }
  .site-header > .btn { order: 2; }
  .topnav {
    order: 3; width: calc(100% + 2 * var(--gutter)); margin: 8px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none;
    border-top: 1px solid var(--line); gap: 22px; height: 46px;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .dropdown { position: static; }
  .dd-panel { left: 0; right: 0; width: auto; transform: none; max-height: 70vh; overflow-y: auto; border-left: 0; border-right: 0; }
  .dropdown.open .dd-panel { transform: none; }
  .dd-panel a { padding: 12px var(--gutter); font-size: 14px; }
  .dd-cat { padding-left: var(--gutter); }
}
@media (max-width: 900px) {
  .dd-cols { grid-template-columns: 1fr; max-height: none; }
  .contact-page { grid-template-columns: 1fr; gap: 32px; }
  /* Sticky call / LINE bar at the bottom of the screen */
  body { padding-bottom: 64px; }
  .contact-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: 60px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .contact-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 500; }
  .contact-bar .cb-call { color: var(--ink); }
  .contact-bar .cb-line { background: #06c755; color: #fff; }
  .cookie { bottom: 76px; left: 12px; right: 12px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div:first-child { grid-column: span 2; }
  .strip > div:nth-child(2) { border-left: 0; border-top: 1px solid var(--line); }
  .strip > div:nth-child(3) { border-top: 1px solid var(--line); }
  .signature { grid-template-columns: 1fr; }
  .signature .right { order: -1; max-height: 420px; overflow: hidden; }
  .cards { grid-template-columns: 1fr 1fr; }
  .tgrid { grid-template-columns: repeat(2, 1fr); }
  .tgrid > *:nth-child(4n) { border-right: 1px solid var(--line); }
  .tgrid > *:nth-child(2n) { border-right: 0; }
  .tgrid > .empty { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 14px; }
  /* Phone: photo on top (doctors in view), heading and buttons below it */
  .hero { aspect-ratio: auto; max-height: none; min-height: 0; overflow: visible; }
  .hero > img { position: static; height: 340px; object-position: 74% 50%; }
  .hero::after { display: none; }
  .hero-copy { position: static; padding: 28px var(--gutter) 0; }
  .hero-actions { margin: 24px calc(-1 * var(--gutter)) 0; border-top: 1px solid var(--line); }
  .hero-actions .cta-box { flex: 1; width: auto; aspect-ratio: auto; min-height: 110px; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .signature .left { grid-template-columns: 1fr; }
  .signature .cat { border-right: 0; }
  .signature .cta-box--dark { grid-column: auto; min-height: 140px; }
  .intro, .split-head, .ba, .team, .detail, .post-card, .story { grid-template-columns: 1fr; }
  .quote { position: static; }
  .intro .body, .intro .actions { grid-column: auto; justify-self: start; }
  .split-head img { justify-self: center; max-height: 340px; }
  .cards { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .detail-media { position: static; }
  .detail { gap: 24px; }
  .pkg-block { grid-template-columns: 1fr; gap: 24px; }
  .pkg-img { max-width: 420px; }
  .map iframe { min-height: 320px; }
  .cta-band { padding-block: 40px 60px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer .copy { grid-column: auto; }
  .site-footer .news p { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Article author box (bottom of articles) */
.prose .by a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 40px 0 24px; padding: 20px; background: #fbf8f5; border: 1px solid var(--line); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.author-box p { margin: 0 0 4px; font-size: 14px; line-height: 1.55; }
.author-box .name { font-weight: 500; font-size: 15px; }
.author-box .name a { color: var(--ink); }
.author-box .disclose { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.prose .faq { padding: 0; max-width: none; margin-bottom: 24px; }
.prose ol { padding-left: 22px; margin: 0 0 16px; } .prose ol li { margin-bottom: 6px; }
