@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: light; --ink: #202f28; --green: #285c44; --paper: #f8f9f4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #94bba0; outline-offset: 4px; }
.site-header { max-width: 1180px; margin: auto; padding: 32px 40px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.5px; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; background: var(--green); color: white; border-radius: 12px; font-size: 27px; }
.text-button { border: 0; background: transparent; color: var(--ink); font-size: 14px; }
.text-button span { margin-left: 20px; }
main { max-width: 1100px; margin: auto; padding: 0 40px; }
.hero { padding: 76px 0 82px; text-align: center; background: radial-gradient(ellipse at center, #e8eedf90, transparent 67%); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.dot { width: 7px; height: 7px; background: #5b8251; border-radius: 50%; }
h1 { font-family: 'Manrope', sans-serif; font-size: clamp(48px, 7vw, 84px); font-weight: 500; line-height: 1.12; letter-spacing: -5px; margin: 25px 0; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: #658156; }
.hero > p { max-width: 460px; margin: 0 auto 30px; font-size: 16px; line-height: 1.8; color: #6b746c; }
.primary-button { display: inline-flex; gap: 38px; padding: 17px 23px; background: var(--green); color: white; border: 0; border-radius: 9px; font-size: 14px; }
.primary-button:hover, .chat-toggle:hover { background: #1e4935; }
.hero-note { display: block; margin-top: 14px; color: #868d82; font-size: 12px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 35px 0 45px; border-top: 1px solid #dce1d6; }
.number { color: #828c7c; font-size: 10px; letter-spacing: 1.6px; }
.features h2 { font-size: 17px; font-weight: 500; margin: 18px 0 10px; }
.features p { color: #788073; font-size: 13px; line-height: 1.8; max-width: 255px; margin: 0; }
footer { max-width: 1020px; margin: auto; padding: 22px 0 32px; border-top: 1px solid #dce1d6; display: flex; justify-content: space-between; color: #8a9085; font-size: 11px; }
.chat-toggle { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; display: grid; place-items: center; background: var(--green); color: white; border: 0; border-radius: 50%; box-shadow: 0 6px 24px #23473530; z-index: 10; }
.chat-panel { position: fixed; right: 24px; bottom: 98px; width: 370px; height: min(510px, calc(100dvh - 122px)); background: white; border: 1px solid #e0e5dc; border-radius: 18px; box-shadow: 0 16px 60px #23352b26; display: flex; flex-direction: column; overflow: hidden; z-index: 10; }
[hidden] { display: none !important; }
.chat-header { background: var(--green); color: white; padding: 21px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h2 { font-size: 17px; margin: 0 0 5px; }
.chat-header p { font-size: 12px; margin: 0; opacity: .75; }
.close-button { border: 0; background: transparent; color: white; font-size: 28px; padding: 0 6px; }
.messages { flex: 1; overflow-y: auto; padding: 18px; }
.message { width: fit-content; max-width: 90%; padding: 12px 15px; border-radius: 13px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; }
.bot { background: #f0f3ec; }
.user { background: var(--green); color: white; margin-left: auto; }
.chat-status { font-size: 12px; color: #6c7468; margin: 0; padding: 0 18px 8px; }
#chat-form { display: flex; gap: 10px; padding: 12px 15px; border-top: 1px solid #edf0e9; }
#chat-input { min-width: 0; flex: 1; border: 0; background: transparent; padding: 8px; font-size: 14px; }
#send-button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--green); color: white; font-size: 23px; }
#send-button:disabled { opacity: .5; cursor: wait; }
.chat-caption { text-align: center; color: #92988e; font-size: 10px; padding-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
    .site-header { padding: 22px; } .brand { font-size: 14px; } main { padding: 0 24px; }
    .hero { padding: 55px 0; } h1 { letter-spacing: -3px; } .hero > p { font-size: 14px; }
    .features { grid-template-columns: 1fr; gap: 26px; } .features p { max-width: none; }
    footer { margin: 0 24px; padding-bottom: 100px; } footer span { display: none; }
    .chat-panel { right: 12px; width: calc(100% - 24px); } .chat-toggle { right: 18px; }
}

.header-actions { display: flex; align-items: center; gap: 20px; }
.language-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid #dce1d6; border-radius: 9px; }
.language-switch button { border: 0; border-radius: 6px; padding: 6px 10px; background: transparent; color: var(--ink); font-size: 13px; }
.language-switch button[aria-pressed="true"] { background: var(--green); color: white; }
.text-button [data-i18n] { margin-left: 0; }
html[lang="th"] body, html[lang="th"] h1, html[lang="th"] h1 em { font-family: 'Noto Sans Thai', sans-serif; }
html[lang="th"] h1 { letter-spacing: -1px; line-height: 1.45; font-size: clamp(38px, 6vw, 70px); }
html[lang="th"] .eyebrow, html[lang="th"] .number { letter-spacing: 0; }
@media (max-width: 600px) {
    .site-header { flex-wrap: wrap; gap: 16px; }
    .header-actions { margin-left: auto; gap: 12px; }
    .text-button span[aria-hidden] { margin-left: 8px; }
}

/* Thai massage: warm materials, herbal tones, and a traditional arched motif. */
:root { --ink: #293f32; --green: #345c48; --paper: #faf6ed; }
body { background: radial-gradient(ellipse at top right, #e9e1cd80, transparent 55%), var(--paper); }
.site-header { max-width: 1240px; padding-top: 26px; padding-bottom: 26px; border-bottom: 1px solid #d9cfb760; }
.brand { letter-spacing: -.3px; font-size: 20px; }
.brand-icon { background: transparent; color: #927743; border: 1px solid #b5a16d; border-radius: 50%; width: 47px; height: 47px; }
.brand-icon svg { width: 35px; height: 35px; }
main { max-width: 1240px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 65px; align-items: center; padding: 66px 0 54px; text-align: left; background: none; }
.hero-content { min-width: 0; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; color: #806c42; line-height: 1.8; }
.dot { background: #9e854d; flex-shrink: 0; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 5.3vw, 70px); line-height: 1.12; letter-spacing: -2px; font-weight: 400; margin: 26px 0; }
h1 em { color: #8d7442; }
.hero-content > p:not(.care-note) { color: #657064; max-width: 510px; font-size: 16px; line-height: 1.85; margin: 0 0 27px; }
.primary-button { border-radius: 7px; gap: 24px; box-shadow: 0 5px 16px #345c4815; line-height: 1.6; }
.hero-note { color: #657064; margin-top: 16px; }
.care-note { color: #777669; font-size: 11px; line-height: 1.7; max-width: 410px; margin: 22px 0 0; }
.massage-art { position: relative; border-radius: 180px 180px 16px 16px; background: #eee6d4; border: 1px solid #dfd3b8; padding: 22px 10px 26px; overflow: hidden; }
.massage-scene { width: 100%; height: auto; display: block; }
.art-seal { position: absolute; top: 27px; left: calc(50% - 22px); color: #9b814c; }
.art-seal svg { width: 44px; height: 44px; }
.art-caption { text-align: center; margin-top: -22px; position: relative; }
.art-caption > span { font-family: Georgia, serif; font-size: 25px; color: #4a593f; }
.art-caption p { font-size: 11px; color: #806f4c; margin: 8px 0 0; letter-spacing: .7px; }
.focus-areas { display: flex; flex-wrap: wrap; gap: 14px 30px; padding: 23px 0; border-top: 1px solid #dfd6c1; border-bottom: 1px solid #dfd6c1; align-items: center; font-size: 12px; color: #4f6250; }
.focus-areas > span:first-child { margin-right: auto; color: #827454; font-size: 11px; }
.focus-areas > span:not(:first-child)::before { content: '✧'; color: #a38c55; margin-right: 8px; }
.features { border-top: 0; padding: 42px 0 50px; gap: 24px; }
.features article { border: 1px solid #e6ddca; padding: 25px; border-radius: 12px; background: #fffdf780; }
.number { color: #90794b; font-size: 10px; }
.features h2 { font-family: Georgia, serif; font-size: 23px; color: #34513e; }
.features p { max-width: none; color: #687362; }
footer { max-width: 1160px; gap: 16px; color: #7f7b6d; border-color: #dfd6c1; }
.chat-panel { border-color: #dfd6c1; background: #fffdf8; }
.bot { background: #efecdf; }
.language-switch { border-color: #d7ccb5; }
html[lang="th"] h1 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.5; letter-spacing: -.5px; }
html[lang="th"] .features h2, html[lang="th"] .art-caption > span { font-family: 'Noto Sans Thai', sans-serif; }
@media (max-width: 900px) {
    .hero { gap: 28px; }
    .eyebrow { letter-spacing: 1px; }
    .features article { padding: 20px; }
    footer { margin: 0 40px; }
}
@media (max-width: 700px) {
    .hero { grid-template-columns: 1fr; gap: 34px; padding: 40px 0 30px; }
    .massage-art { width: min(100%, 390px); margin: auto; }
    h1 { font-size: clamp(42px, 9vw, 60px); }
    .hero-content > p:not(.care-note) { font-size: 14px; }
    .features { grid-template-columns: 1fr; gap: 16px; padding-top: 28px; }
    .focus-areas { gap: 14px 20px; }
    .focus-areas > span:first-child { width: 100%; }
    .site-header { flex-wrap: wrap; gap: 16px; padding: 20px 24px; }
    .header-actions { gap: 12px; }
    footer { margin: 0 24px; flex-wrap: wrap; padding-bottom: 100px; }
    footer > span[data-i18n="brand"] { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
    .primary-button, .language-switch button { transition: background-color .2s; }
}

.conditions { padding: 12px 0 50px; }
.conditions > h2 { font-family: Georgia, serif; font-size: clamp(28px, 3vw, 38px); font-weight: 400; color: var(--green); margin: 0 0 14px; }
.conditions-intro { max-width: 820px; font-size: 14px; line-height: 1.9; color: #687362; margin: 0 0 25px; }
.condition-list { list-style: none; counter-reset: condition; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.condition-list li { counter-increment: condition; position: relative; padding: 24px 24px 24px 66px; border: 1px solid #e6ddca; border-radius: 12px; background: #fffdf780; }
.condition-list li::before { content: counter(condition, decimal-leading-zero); position: absolute; top: 26px; left: 23px; color: #90794b; font-size: 12px; }
.condition-list h3 { font-size: 16px; font-weight: 500; line-height: 1.7; margin: 0 0 8px; color: var(--green); }
.condition-list p { font-size: 13px; line-height: 1.85; margin: 0; color: #687362; }
.conditions-note { font-size: 12px; line-height: 1.8; color: #777669; margin: 20px 0 0; }
html[lang="th"] .conditions > h2 { font-family: 'Noto Sans Thai', sans-serif; }
@media (max-width: 700px) { .condition-list { grid-template-columns: 1fr; } }
