/* SabaiCare 品牌官網。
   跟後台（style.css）完全分開的一套視覺 —— 後台要的是資訊密度，
   官網要的是「進來之前先放鬆」。兩者共用一份 CSS 只會兩邊都做不好。

   配色取自兩個門派各自的意象：
     越式：越南宮廷的暖棕與米色（Rosa 那種洗髮店的調性）
     泰式：泰國寺廟的深墨綠與金（17massage 那種養生館的調性）
   通用區塊用暖米底，讓兩種色系都放得進去而不打架。 */
:root {
  --ink: #2a2119;
  --ink-soft: #6b5d4f;
  --cream: #faf6f0;
  --cream-2: #f2e9dd;
  --line: #e3d7c6;
  --gold: #b8925a;
  --gold-dark: #96733f;
  --vn: #8c5a3c;            /* 越式：暖棕 */
  --vn-soft: #f6ede4;
  --th: #1f4a42;            /* 泰式：墨綠 */
  --th-soft: #e6efec;
  --shadow: 0 2px 16px rgba(42, 33, 25, 0.08);
  --shadow-lg: 0 8px 40px rgba(42, 33, 25, 0.14);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* 平滑捲動與淡入輪播對前庭功能失調的人會引起不適，作業系統有「減少動態效果」
   這個設定就是為了這件事。尊重它不是加分項，是這些使用者能不能用這個網站的差別。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
body {
  font-family: "PingFang TC", "Noto Sans TC", "Noto Sans Thai", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--cream); color: var(--ink); line-height: 1.7; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* ---- 導覽列 ---- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: 3px; color: var(--ink); }
.brand span { display: block; font-size: 10px; letter-spacing: 2px; color: var(--gold); font-weight: 600; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--ink-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.lang-pick {
  border: 1px solid var(--line); background: #fff; border-radius: 20px;
  padding: 6px 10px; font-size: 13px; cursor: pointer;
}
.nav .cta {
  background: var(--gold); color: #fff; padding: 9px 18px; border-radius: 22px;
  font-size: 14px; font-weight: 600; border: 0; cursor: pointer;
}
.nav .cta:hover { background: var(--gold-dark); }
.burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; margin-left: auto; }

/* ---- 主視覺輪播 ---- */
.hero { position: relative; min-height: 560px; display: grid; overflow: hidden; }
.hero-slide {
  grid-area: 1 / 1; display: flex; align-items: center; opacity: 0;
  transition: opacity 0.9s ease; pointer-events: none;
}
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-slide[data-l="vn"] { background: linear-gradient(120deg, #3c2a1e 0%, var(--vn) 70%, #b98460 100%); }
.hero-slide[data-l="th"] { background: linear-gradient(120deg, #10302a 0%, var(--th) 70%, #3d7a6c 100%); }
.hero-slide[data-l="any"] { background: linear-gradient(120deg, #3c2a1e 0%, #6b4a35 45%, var(--th) 100%); }
/* 斜紋質感：不用外部圖檔（CSP 只允許同源），用漸層畫出來 */
/* 有底圖時關掉斜紋質感：那是「沒有照片時看起來不要太空」的替代品，
   真的有照片時再疊上去只會讓照片變髒。 */
.hero-slide.has-img::after { display: none; }
.promo-img { border-radius: 8px; margin-bottom: 14px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0; opacity: 0.14;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.5) 18px 19px);
}
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 720px; padding: 90px 0; }
.hero-eyebrow {
  display: inline-block; border: 1px solid rgba(255,255,255,0.55); border-radius: 20px;
  padding: 4px 14px; font-size: 12px; letter-spacing: 2px; margin-bottom: 18px;
}
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.hero .sub { font-size: 20px; margin-top: 14px; opacity: 0.95; }
.hero .body { margin-top: 16px; font-size: 15px; opacity: 0.85; max-width: 560px; }
.hero-acts { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-lg {
  background: var(--gold); color: #fff; border: 0; border-radius: 26px;
  padding: 13px 30px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-lg:hover { background: var(--gold-dark); }
.btn-lg.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.6); }
.btn-lg.ghost:hover { background: rgba(255,255,255,0.12); }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 3; display: flex; gap: 8px; justify-content: center; }
.hero-dots button {
  width: 34px; height: 4px; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,0.4);
}
.hero-dots button.on { background: #fff; }

/* ---- 區塊 ---- */
section { padding: 78px 0; }
/* 導覽列是 sticky 的，錨點跳過去時標題會被它蓋掉一截。
   scroll-margin-top 讓瀏覽器捲動時自己讓出這 78px —— 沒有這一行，
   點「服務項目」會落在區塊標題的下方，看起來像跳錯地方。 */
section, .hero, footer { scroll-margin-top: 78px; }
section.alt { background: var(--cream-2); }
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-head .kicker { color: var(--gold); font-size: 12px; letter-spacing: 3px; font-weight: 700; }
.sec-head h2 { font-size: 32px; margin-top: 8px; letter-spacing: 1px; }
.sec-head p { color: var(--ink-soft); margin-top: 10px; }

/* ---- 雙門派 ---- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.duo-card { border-radius: var(--radius); padding: 38px 32px; color: #fff; position: relative; overflow: hidden; }
.duo-card.vn { background: linear-gradient(150deg, var(--vn), #6d432c); }
.duo-card.th { background: linear-gradient(150deg, var(--th), #123830); }
.duo-card h3 { font-size: 26px; letter-spacing: 1px; }
.duo-card .native { font-size: 13px; opacity: 0.75; letter-spacing: 2px; margin-bottom: 14px; }
.duo-card p { opacity: 0.9; font-size: 15px; }
.duo-card ul { margin: 18px 0 22px; padding-left: 18px; font-size: 14px; opacity: 0.92; }
.duo-card ul li { margin: 5px 0; }
.duo-card .go {
  display: inline-block; border: 1px solid rgba(255,255,255,0.6); border-radius: 22px;
  padding: 8px 20px; font-size: 14px;
}
.duo-card .go:hover { background: rgba(255,255,255,0.14); }

/* ---- 服務卡 ---- */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 22px;
  padding: 9px 22px; font-size: 14px; cursor: pointer; color: var(--ink-soft);
}
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .badge {
  display: inline-block; font-size: 11px; letter-spacing: 1px; padding: 3px 10px;
  border-radius: 12px; margin-bottom: 12px; align-self: flex-start;
}
.badge.vn { background: var(--vn-soft); color: var(--vn); }
.badge.th { background: var(--th-soft); color: var(--th); }
.badge.any { background: var(--cream-2); color: var(--ink-soft); }
.badge.hot { background: var(--gold); color: #fff; margin-left: 6px; }
.card h3 { font-size: 19px; line-height: 1.4; }
.card .meta { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }
.card .desc { color: var(--ink-soft); font-size: 14px; margin-top: 12px; }
.card .includes { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }
.card .includes li { list-style: none; padding-left: 20px; position: relative; margin: 4px 0; }
.card .includes li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.card .steps-note { margin-top: 10px; font-size: 12.5px; color: var(--gold-dark); cursor: pointer; }
.card .foot {
  margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 10px;
}
.price { font-size: 26px; font-weight: 800; color: var(--ink); }
.price small { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
/* 會員價自己一行。原本用 inline 的 <small>，在窄卡片上會換行成一個孤立的數字，
   看起來像「NT$ 1,280」下面又冒出一個沒有標籤的「NT$ 1,210」。 */
.price .member { display: block; font-size: 13px; font-weight: 500; color: var(--gold-dark); margin-top: 2px; }
.price .was { display: block; font-size: 13px; font-weight: 400; color: #a08e7b; text-decoration: line-through; }
.btn-book {
  background: var(--ink); color: #fff; border: 0; border-radius: 20px;
  padding: 9px 18px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.btn-book:hover { background: #000; }

/* ---- 技師牆 ---- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 14px; text-align: center;
}
.avatar {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff; background: var(--gold);
}
.avatar.vn { background: var(--vn); }
.avatar.th { background: var(--th); }
.person .nm { font-weight: 600; }
.person .lv { font-size: 12px; color: var(--ink-soft); }
.person .tags { margin-top: 8px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.person .tags span { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: var(--cream-2); color: var(--ink-soft); }

/* ---- 分店 ---- */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.store {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.store h3 { font-size: 18px; }
.store .row { display: flex; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.store .row b { color: var(--ink); font-weight: 600; min-width: 42px; }
.store .pill {
  display: inline-block; margin-top: 12px; font-size: 12px; background: var(--vn-soft);
  color: var(--vn); padding: 3px 10px; border-radius: 12px;
}

/* ---- 優惠 ---- */
.promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.promo {
  border: 1px dashed var(--gold); border-radius: var(--radius); padding: 22px;
  background: #fff; position: relative;
}
.promo .tag { font-size: 11px; color: var(--gold-dark); letter-spacing: 1px; }
.promo h3 { font-size: 18px; margin: 6px 0 8px; }
.promo p { font-size: 14px; color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: '－'; }
.faq p { color: var(--ink-soft); margin-top: 12px; font-size: 15px; white-space: pre-line; }

/* ---- 媒體 ---- */
.press { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.press-card { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; }
.press-card .when { font-size: 12px; color: var(--gold-dark); }
.press-card h3 { font-size: 17px; margin: 4px 0 8px; }
.press-card p { font-size: 14px; color: var(--ink-soft); font-style: italic; }

/* ---- 品牌故事 ---- */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.story p { white-space: pre-line; color: var(--ink-soft); margin-bottom: 14px; }
.story-figure {
  border-radius: var(--radius); min-height: 320px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--vn) 0%, #6b4a35 50%, var(--th) 100%);
  display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 30px;
}
.story-figure .big { font-size: 44px; font-weight: 800; letter-spacing: 6px; }
.story-figure .small { opacity: 0.85; font-size: 14px; letter-spacing: 2px; margin-top: 8px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.number { text-align: center; }
.number b { display: block; font-size: 30px; color: var(--gold-dark); }
.number span { font-size: 13px; color: var(--ink-soft); }

/* ---- 預約 ---- */
.book-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; max-width: 780px; margin: 0 auto; box-shadow: var(--shadow);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; background: #fff;
  /* min-width:0 是 grid／flex 版面的必備解藥，這裡尤其必要：
     <select> 的最小寬度是「最長的那個選項」，而服務下拉裡有
     「泰國中草藥包深層按摩 120 分　NT$ 2,880」這種長度 —— 在 390px 的手機上
     它會把整個表單撐到 480px，整頁變成可以左右拉。
     grid 的 1fr 是 minmax(auto,1fr)，auto 就是 min-content，所以它擋不住這件事。 */
  min-width: 0; width: 100%;
}
/* 同理：整個 .field 也要能被壓縮，否則撐開的是格線本身 */
.field { min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.book-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 18px; }
.book-msg { border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; font-size: 15px; }
.book-msg.ok { background: var(--th-soft); color: var(--th); }
.book-msg.err { background: #fdecea; color: #c0392b; }

/* ---- 頁尾 ---- */
footer { background: #2a2119; color: #cdbfae; padding: 54px 0 30px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
footer a { color: #cdbfae; }
footer a:hover { color: #fff; }
footer .bar {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #9c8b78;
}
.compliance-note { font-size: 12px; color: #9c8b78; margin-top: 10px; line-height: 1.6; }

/* ---- 浮動預約鈕（手機） ---- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none;
  background: var(--gold); color: #fff; border: 0; border-radius: 26px;
  padding: 14px 24px; font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer;
}

/* ---- 載入與空狀態 ---- */
.loading { text-align: center; color: var(--ink-soft); padding: 60px 0; }

@media (max-width: 900px) {
  .duo, .story { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 10px;
  }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .nav .cta { display: none; }
  .fab { display: block; }
  .fields { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
  .hero { min-height: 480px; }
  footer .cols { grid-template-columns: 1fr; }
}
