:root {
  color-scheme: light dark;
  --color-bg: #faf7f2;
  --color-bg-alt: #f0ebe1;
  --color-text: #2f2a26;
  --color-muted: #6b6058;
  --color-primary: #a97c50;
  --color-primary-dark: #8a6340;
  --color-border: #e2d9cb;
  --max-width: 1080px;
  --radius: 10px;
}

/* 明確告知瀏覽器:本站的「深色模式」版本與淺色模式相同顏色，
   避免手機瀏覽器自動套用反轉/變色濾鏡，導致選單圖示等元素變得難以辨識 */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #faf7f2;
    --color-bg-alt: #f0ebe1;
    --color-text: #2f2a26;
    --color-muted: #6b6058;
    --color-primary: #a97c50;
    --color-primary-dark: #8a6340;
    --color-border: #e2d9cb;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  font-weight: 600;
  line-height: 1.4;
}

h2 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
}

a {
  color: inherit;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-text);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
}

/* 選單圖示改用內嵌 SVG 當背景圖，避免手機瀏覽器的強制深色模式
   把它誤判成可反轉的色塊，導致在夜間模式下變暗、看不清楚 */
.nav-toggle {
  display: none;
  width: 26px;
  height: 20px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'%3E%3Crect width='26' height='2' rx='1' fill='%23a97c50'/%3E%3Crect y='9' width='26' height='2' rx='1' fill='%23a97c50'/%3E%3Crect y='18' width='26' height='2' rx='1' fill='%23a97c50'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Hero */
.hero {
  padding: 7rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
}

.hero-photo {
  display: block;
  width: 240px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(47, 42, 38, 0.12);
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--color-primary-dark);
  margin: 0 0 1rem;
}

.hero .subtitle {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-intro {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-intro p {
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.hero-intro p:last-child {
  margin-bottom: 0;
}

/* 首頁:文案段落靠左對齊(開場引言維持置中,卡片內文字不受影響) */
.homepage .container > p {
  text-align: left;
}

/* Page hero (sub-pages) */
.page-hero {
  padding: 6rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
}

.page-hero h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.page-hero .subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-lead {
  color: var(--color-muted);
  text-align: center;
  max-width: 720px;
  margin: -1rem auto 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* 認識漸明頁、漸明團隊頁:結尾預約按鈕置中,不受段落靠左排版影響 */
#together .btn,
#undecided .btn {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
}

/* 漸明團隊頁:預約提醒文字置中，與按鈕間距縮小為約一行文字 */
#undecided p.note {
  text-align: center;
  margin-top: 1.5rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-first {
  padding-top: 7rem;
}

.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;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* 一般內文段落:段落間留白約 18px,僅套用在一般敘述性文字。
   用 :where() 包住 class 條件，讓這條規則的權重接近零，
   確保卡片、聯絡資訊、提醒文字等各自的間距設定一定優先生效，不會被蓋掉 */
:where(.section) p {
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto 1.125rem;
  text-align: center;
}

:where(.section) p:last-child {
  margin-bottom: 0;
}

/* 緊接在按鈕前的段落，間距交給按鈕自己的 margin-top 控制，避免兩者疊加 */
:where(.section) p:has(+ .btn) {
  margin-bottom: 0;
}

/* 緊接在緊湊聯絡資訊行前的段落，間距改為跟聯絡資訊行一致，避免落差過大 */
:where(.section) p:has(+ .contact-line) {
  margin-bottom: 0.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.card h3 {
  margin-top: 0;
}

.card p {
  font-size: 0.95rem;
  margin: 0;
}

.profile-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.profile-photo {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.profile-info h3 {
  margin: 0 0 0.25rem;
}

.profile-title {
  text-align: left;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin: 0 0 1rem;
}

.profile-info p:not(.profile-title) {
  text-align: left;
  color: var(--color-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
  }

  .profile-photo {
    width: 180px;
    height: 220px;
  }

  .profile-title,
  .profile-info p:not(.profile-title) {
    text-align: center;
  }
}

.avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

/* 漸明團隊、聯絡漸明、前往漸明:文案排版比照認識漸明頁 */
#team-intro h2,
#undecided h2,
#org-team h2,
#intro h2,
#appointment h2,
#admin h2,
#map h2 {
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

#team-intro p,
#undecided p,
#org-team p,
#intro p,
#appointment p,
#admin p {
  text-align: left;
}

/* 漸明團隊頁:經營團隊精簡名錄，桌面版兩欄兩列，視覺份量小於心理師人物卡 */
.org-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.org-member-card {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding: 1.5rem;
  box-sizing: border-box;
}

.org-member-card h3 {
  margin: 0 0 1.3rem;
  font-size: 1.25rem;
}

/* 姓名下方緊接職稱時，兩者間距縮小 */
.org-member-card h3:has(+ .org-member-title) {
  margin-bottom: 0.1rem;
}

#org-team .org-member-title {
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  margin: 0 0 1.3rem;
  text-align: center;
}

#org-team .org-member-role {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .org-team-grid {
    grid-template-columns: 1fr;
  }
}

/* 緊湊的聯絡資訊行(電話、Email 等)，用於各頁面需要的地方，間距比一般內文緊湊 */
.contact-line {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  #team-intro h2,
  #undecided h2,
  #intro h2,
  #appointment h2,
  #admin h2,
  #map h2 {
    font-size: 1.6rem;
  }
}

/* 漸明團隊:團隊成員卡片 */
.team-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.team-member-title {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.team-member-services,
.team-member-audience,
.team-member-language,
.team-member-focus {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
}

/* 團隊總覽卡片:服務內容、服務對象、服務語言、主要專長改為靠左對齊，姓名與職稱維持置中 */
.team-member-card .team-member-services,
.team-member-card .team-member-audience,
.team-member-card .team-member-language,
.team-member-card .team-member-focus {
  align-self: stretch;
  text-align: left;
}

/* 姓名與職稱之間不留間距 */
.team-member-card h3 {
  margin-bottom: 0;
}

/* 職稱與服務對象之間留一行文字的間距 */
.team-member-card .team-member-title {
  margin-bottom: 1.3rem;
}

/* 服務內容、服務對象、服務語言、主要專長之後各留一行文字的間距，確保與下方按鈕至少保持一行距離 */
.team-member-card .team-member-services,
.team-member-card .team-member-audience,
.team-member-card .team-member-language,
.team-member-card .team-member-focus {
  margin-bottom: 1.3rem;
}

/* 按鈕用 margin-top: auto 撐到卡片底部，讓六張卡片的按鈕维持同一條底線對齊 */
.team-member-card .btn {
  margin-top: auto;
}

.team-member-placeholder {
  border-style: dashed;
}

.team-member-placeholder .note {
  margin-top: 0.5rem;
}

.note {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}

.card-meta {
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

/* Entry cards on homepage */
.entry-grid {
  margin-top: 2.5rem;
}

.entry-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47, 42, 38, 0.08);
}

.entry-card h3 {
  color: var(--color-primary-dark);
}

.card p.entry-card-fee {
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  margin: 0 0 1.3rem;
}

.entry-card h3:has(+ .entry-card-fee) {
  margin-bottom: 0;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  border-left: 2px solid var(--color-border);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.timeline-date {
  display: block;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.timeline-item p {
  margin: 0;
  text-align: left;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  text-align: left;
  color: var(--color-muted);
  margin: 0.75rem 0 0;
}

/* Event card */
.event-card .btn {
  margin-top: 1rem;
}

/* 認識漸明頁:段落文字靠左對齊(試驗效果) */
.about-page .section p,
.space-page .section p {
  text-align: left;
}

/* 認識漸明頁:每區塊開場句改為大號引言,拉開與一般標題的視覺差異 */
.about-page .section h2,
.homepage .section h2,
.services-page .section h2,
.bio-page .section h2,
.space-page .section h2 {
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

/* 認識漸明頁:調整各區塊留白節奏,首尾區塊較寬鬆,中段較緊湊 */
.about-page .section-open {
  padding: 2rem 0 6rem;
}

.about-page .section-tight {
  padding: 3.5rem 0;
}

.about-page .section-close {
  padding: 6rem 0 7rem;
}

@media (max-width: 768px) {
  .about-page .section h2,
  .homepage .section h2,
  .services-page .section h2,
  .bio-page .section h2,
  .space-page .section h2 {
    font-size: 1.6rem;
  }

  .about-page .section-open {
    padding: 1.5rem 0 3.5rem;
  }

  .about-page .section-close {
    padding: 3.5rem 0 5rem;
  }
}

/* 認識漸明頁:空間照片區塊 */
.photo-section {
  padding: 2rem 0 0.5rem;
}

.space-photo {
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(47, 42, 38, 0.12);
}

.about-page .section p.photo-caption {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 1rem 0 0;
}

/* 漸明空間頁:照片待補佔位區塊 */
.photo-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

/* 6張照片固定排成上排3張、下排3張 */
.photo-placeholder-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  .photo-placeholder-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}

.photo-placeholder-single {
  max-width: 480px;
  margin: 0 auto;
}

.photo-placeholder-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(47, 42, 38, 0.1);
}

/* Closing navigation links (about page) */
.entry-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}

.entry-links a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.entry-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 首頁:漸明空間照片 */
.space-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

.space-gallery img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(47, 42, 38, 0.1);
}

@media (max-width: 640px) {
  .space-gallery {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .space-gallery img {
    height: 180px;
  }
}

/* 漸明服務頁:諮商費用與預約方式區塊 */
#fees-booking p a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

#fees-booking .btn {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
}

#fees-booking p.note {
  text-align: center;
  margin-top: 1.5rem;
}

/* 漸明服務頁 */
.section p.service-sub {
  text-align: center;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.section p.need-list-intro {
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.need-list {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  padding-left: 1.4rem;
  text-align: left;
  color: var(--color-muted);
}

.need-list li {
  margin-bottom: 0.4rem;
}

/* 心理師個人頁:子標題與清單原本靠左貼齊容器邊緣，
   但一般段落文字是置中的 720px 欄寬(見 :where(.section) p)，導致兩者左邊界對不齊。
   這裡讓子標題與清單改用同樣的 720px 置中欄寬，使左邊界與段落文字切齊 */
.bio-page .section h3,
.bio-page .section .need-list {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.service-note {
  max-width: 640px;
  margin: 1.75rem auto 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.service-note p {
  text-align: left;
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0;
}

.service-block {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 24px rgba(47, 42, 38, 0.06);
}

.service-block-planned {
  background: var(--color-bg-alt);
  border-style: dashed;
}

@media (max-width: 640px) {
  .service-block {
    padding: 2rem 1.25rem;
  }
}

.badge-planned,
.badge-included {
  display: inline-block;
  vertical-align: middle;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--color-primary-dark);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin-left: 0.6rem;
}

/* 標題下方獨立一行的標籤(而非緊貼標題文字)：與上方標題的間距比照含親職諮詢標籤與標題文字的間距(0.6rem)，與下方文案留一行文字間距 */
.badge-below {
  display: inline-block;
  margin: 0.35rem 0 1.3rem;
}

h3:has(+ .badge-below) {
  margin-bottom: 0;
}

/* 說明方框後緊接小標題時，拉開約兩行文字的間距 */
.service-note + h3 {
  margin-top: 2.6rem;
}

/* 置中、顏色比照大標題，但字體大小與粗細維持不變 */
.service-subheading-centered {
  text-align: center;
  color: var(--color-primary-dark);
}

/* 諮商費用及晤談時間:靠左對齊，並與下方段落共用同一個置中欄寬，讓左邊界切齊 */
#fees-booking h3.service-subheading-centered {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* 連結文字改用標題色，大小、粗細等其他樣式不受影響 */
.heading-color-link {
  color: var(--color-primary-dark);
}

/* 漸明服務頁:文案段落靠左對齊(開場標語維持置中) */
.services-page .container > p:not(.service-sub) {
  text-align: left;
}

.bio-page .container > p {
  text-align: left;
}

.bio-page .page-hero .container,
.bio-page .page-hero p {
  text-align: center;
}

.bio-photo {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  box-shadow: 0 12px 32px rgba(47, 42, 38, 0.15);
}

/* 個人自介頁大頭照改用 4:6 直式長方形(團隊總覽小卡仍維持圓形) */
.bio-photo-rect {
  width: 240px;
  height: 360px;
  border-radius: var(--radius);
}

.bio-name-en {
  display: inline-block;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 0.5rem;
}

/* 中文姓名獨立成一行時使用(例如姓名下方另起一行標示英文姓名與學位) */
.bio-name-en-line {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-muted);
  margin: 0 0 1.3rem;
}

/* 中文姓名與緊接在後的英文姓名行之間不留間距 */
h1:has(+ .bio-name-en-line) {
  margin-bottom: 0;
}

.bio-title {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0;
}

.bio-page h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin: 2rem 0 0.75rem;
}

.bio-page h3:first-of-type {
  margin-top: 0;
}

.services-page .container > p.back-to-overview {
  text-align: center;
  margin: 2rem 0 0;
}

.back-to-overview a {
  color: var(--color-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.back-to-overview a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* 前往漸明頁:地址與 Google 地圖按鈕間距為約一行文字 */
#map .btn {
  margin-top: 1.5rem;
}

/* 首頁:結尾按鈕與前方文字間距為約一行文字 */
#contact-cta .btn {
  margin-top: 1.5rem;
}

/* 聯絡漸明頁:心理諮商預約區塊，按鈕置中並與提醒文字間距 */
#appointment .btn {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
}

/* 心理師個人介紹頁:預約按鈕與提醒文字置中，按鈕與上方文字間距約一行文字 */
#booking .btn {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
}

#booking p.note {
  text-align: center;
}

/* Visit note (map section) */
/* 前往漸明頁:入口動線照片與「第一次到漸明」卡片左右併呈 */
.visit-note-row {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 820px;
  margin: 2rem auto 0;
}

.visit-note-photo {
  display: block;
  flex: 0 0 240px;
  width: 240px;
  height: auto;
  align-self: center;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(47, 42, 38, 0.12);
}

.visit-note-row .visit-note {
  flex: 1 1 60%;
  margin: 0;
  max-width: none;
}

@media (max-width: 640px) {
  .visit-note-row {
    flex-direction: column;
  }

  .visit-note-photo {
    flex-basis: auto;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

.visit-note {
  max-width: 480px;
  margin: 2rem auto 0;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: left;
}

.visit-note-title {
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 0.5rem;
}

.visit-note ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.visit-note li {
  margin-bottom: 0.3rem;
}

/* Access / directions */
.lang-block {
  max-width: 960px;
  margin: 0 auto 2.5rem;
}

.lang-block:last-of-type {
  margin-bottom: 1rem;
}

.lang-label {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin: 0 0 1.25rem;
}

p.access-address {
  text-align: left;
  color: var(--color-text);
  margin: 0 0 1.25rem;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0;
}

.access-block h3 {
  margin-top: 0;
}

.access-block p {
  text-align: left;
  color: var(--color-text);
  margin: 1rem 0 0.25rem;
}

.access-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.access-block li {
  margin-bottom: 0.3rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
}

.footer-contact {
  margin: 0 0 0.5rem;
}

.footer-contact a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem 24px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }
}
