/* Speech Li Therapy Services — site styles
   Palette from the plum logo (李 = plum). One accent, warm neutral ground. */

:root {
  --ink: #2A2433;
  --ink-2: #4A4254;
  --ink-3: #6E6478;
  --paper: #FBF8F3;
  --paper-2: #FFFFFF;
  --line: #EDE6DC;
  --line-2: #DDD3C8;
  --plum: #5B2A86;
  --plum-dark: #3F1C60;
  --plum-tint: #F1EAF7;
  --plum-line: #DCCDEA;
  --plum-soft: #C9B8DB;
  --leaf: #2F7A52;
  --leaf-tint: #E3F3E9;
  --night: #2A2433;
  --night-2: #352E3F;
  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1248px;
  --gutter: 24px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang^="zh"] {
  --font-display: "Fraunces", "Noto Serif TC", "Noto Serif SC", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", serif;
  --font-body: "Nunito Sans", "Noto Sans TC", "Noto Sans SC", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--plum-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 40px); }
.section-head--row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head--row > div { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); font-weight: 700; }
html[lang^="zh"] .eyebrow { letter-spacing: 0.2em; }
.h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); }
.h3 { font-size: clamp(22px, 2vw, 26px); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.link { font-weight: 700; }
.link::after { content: " →"; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; min-height: 48px; }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-dark); color: #fff; }
.btn--outline { color: var(--plum); border-color: var(--plum-soft); background: transparent; }
.btn--outline:hover { border-color: var(--plum); color: var(--plum-dark); }
.btn--light { background: #fff; color: var(--plum); }
.btn--light:hover { background: var(--plum-tint); color: var(--plum-dark); }
.btn--sm { padding: 11px 20px; font-size: 15px; min-height: 44px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 32px; height: 36px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1; }
.brand__tag { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--plum); box-shadow: inset 0 -2px 0 var(--plum); }
.nav a.btn--primary { color: #fff; }
.nav__lang { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 20px; }
.nav__lang a { color: var(--ink-3); font-weight: 600; }
.nav__lang a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 0 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px var(--gutter); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav__lang { border: 0; padding: 10px var(--gutter); gap: 16px; }
  .nav .btn { margin: 8px var(--gutter) 0; }
  .nav-toggle { display: inline-flex; }
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy .lead { max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__figure { position: relative; display: flex; justify-content: center; }
.hero__img { width: min(520px, 100%); aspect-ratio: 13 / 14; border-radius: 40px 40px 200px 40px; overflow: hidden; background: var(--plum-tint); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__badge { position: absolute; left: 4%; bottom: 24px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 8px 28px rgba(42, 36, 51, 0.12); display: flex; flex-direction: column; gap: 2px; }
.hero__badge strong { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--plum); }
.hero--compact .hero__grid { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 900px) {
  .hero__grid, .hero--compact .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
  .hero__img { aspect-ratio: 7 / 6; border-radius: 24px 24px 120px 24px; }
  .hero__badge { display: none; }
}

/* Trust strip */
.trust { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.trust div { display: flex; flex-direction: column; gap: 4px; }
.trust strong { font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--plum); line-height: 1; }
.trust span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 16px; } .trust strong { font-size: 22px; } }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
a.card { transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(42, 36, 51, 0.08); border-color: var(--plum-soft); color: var(--ink); }
.card--tint { background: var(--plum-tint); border-color: var(--plum-line); }
.card--plum { background: var(--plum); border-color: var(--plum); color: #fff; padding: 40px; min-height: 300px; }
.card--leaf { background: var(--leaf); border-color: var(--leaf); color: #fff; padding: 40px; min-height: 300px; }
.card--plum p, .card--leaf p { color: rgba(255, 255, 255, 0.86); }
.card--plum .eyebrow { color: #D9C7EA; }
.card--leaf .eyebrow { color: #BFE4CD; }
.card--plum a, .card--leaf a { color: #fff; margin-top: auto; }
.card--plum h3, .card--leaf h3 { color: #fff; }
.card__icon { width: 32px; height: 32px; color: var(--plum); }
.card__title { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card--plum p, .card--leaf p { font-size: 17px; color: rgba(255, 255, 255, 0.88); }
.card--plum .checks, .card--leaf .checks { color: #fff; }
.card--plum .checks li::before, .card--leaf .checks li::before { color: #fff; }
@media (max-width: 640px) { .card--plum, .card--leaf { padding: 28px; min-height: 0; } }

/* Panel */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 64px); }
.panel--night { background: var(--night); border-color: var(--night); color: #fff; }
.panel--night h2, .panel--night h3 { color: #fff; }
.panel--night p { color: #C9C1D1; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__n { width: 44px; height: 44px; border-radius: 999px; background: var(--plum-tint); color: var(--plum); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.step h3 { font-size: 22px; }
.step p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 440px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev { grid-template-columns: 1fr 440px; }
.split__copy { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 1000px) { .split, .split--rev { grid-template-columns: 1fr; } }
.photo { border-radius: var(--radius-lg); overflow: hidden; background: #E8E0D5; aspect-ratio: 11 / 12; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--placeholder { border: 2px dashed #C9BDB0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ink-3); font-size: 15px; }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; color: var(--leaf); font-weight: 700; flex: none; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }

/* Lists */
.linelist li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.linelist li:last-child { border-bottom: 0; }
.linelist li span:first-child { font-family: var(--font-display); font-size: 19px; }
.linelist li span:last-child { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 640px) { .linelist li { flex-direction: column; gap: 4px; } .linelist li span:last-child { white-space: normal; } }

/* Accordion */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-family: var(--font-display); font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 26px; color: var(--plum); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 760px; }

/* Instagram / feed */
.feed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feed__ph { aspect-ratio: 1; border-radius: 20px; background: var(--plum-tint); border: 2px dashed var(--plum-soft); display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px; }
@media (max-width: 800px) { .feed { grid-template-columns: repeat(2, 1fr); } }

/* Products */
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.product__img { aspect-ratio: 4 / 3; background: var(--plum-tint); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.product__tag { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--plum); }
.product__tag--free { color: var(--leaf); }
.product__title { font-family: var(--font-display); font-size: 19px; }
.product p { font-size: 14px; color: var(--ink-2); }

/* CTA band */
.cta { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.cta > div { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.cta h2 { color: #fff; }
.cta p { color: #C9C1D1; font-size: 18px; }
@media (max-width: 900px) { .cta { flex-direction: column; align-items: flex-start; } }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.form input, .form textarea, .form select { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.form input:focus, .form textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px var(--plum-tint); }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form__msg { display: none; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.form__msg.is-ok { display: block; background: var(--leaf-tint); color: #1F5A3A; }
.form__msg.is-err { display: block; background: #FBE9E7; color: #8A2A1F; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.panel--night .form label { color: #C9C1D1; }
.panel--night .form input, .panel--night .form textarea { background: var(--night-2); border-color: #4A4254; color: #fff; }
.panel--night .form input:focus, .panel--night .form textarea:focus { box-shadow: none; border-color: #C9B8DB; }

/* Embeds */
.embed { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); min-height: 640px; }
.embed iframe { width: 100%; height: 100%; min-height: 640px; border: 0; }

/* Prose (blog posts, long pages) */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; }
.prose h2 { font-size: 30px; margin-top: 18px; }
.prose h3 { font-size: 23px; margin-top: 10px; }
.prose ul, .prose ol { padding-left: 22px; list-style: revert; display: flex; flex-direction: column; gap: 8px; }
.prose li { color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.byline img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col strong { color: var(--ink); }
.footer__col a { color: var(--ink-2); }
.footer__about { display: flex; flex-direction: column; gap: 14px; }
.footer__about p { max-width: 360px; color: var(--ink-2); font-size: 15px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta { display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 248, 243, 0.95); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 80px; }
}

/* Page header (interior pages) */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; max-width: 800px; }

/* Utility */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.mt { margin-top: 24px; }
.note { font-size: 14px; color: var(--ink-3); padding: 12px 16px; background: var(--plum-tint); border-radius: 12px; }
