@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Serif+TC:wght@600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── KAIROS 品牌識別（指針之門）色盤 ── */
:root {
  --indigo:    #181737;   /* 深靛藍 · 智慧/深度/信任（官方品牌規範 Kairos Indigo）*/
  --gold:      #B8923A;   /* 暖金 · 時機/價值/精準 */
  --parchment: #F7F5F0;   /* 暖紙白 · 留白/呼吸 */
  --teal:      #2A7A6E;   /* 深青綠 · 理解/流動/陪伴 */
  --ember:     #C4502A;   /* 赤陶橘 · 啟動/行動/突破 */
  --stone:     #D6D2C4;   /* 暖灰 · 邊框/輔助 */
  --ink:       #27231F;   /* 墨黑 · 文字 */
  --mist:      #E8E1D6;   /* 淺霧灰 · 區塊/背景 */
  --white:     #fff;
  /* 相容舊變數名（沿用既有規則，直接對映品牌色） */
  --purple: var(--gold);
  --purple-dark: var(--indigo);
  --purple-light: var(--mist);
  --gray: #6f6a60;
  --dark: var(--ink);
}

body {
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #FBFAF7;
  line-height: 1.7;
}

h1, h2, h3, .form-container h2, .logo {
  font-family: "Cormorant Garamond", Georgia, "Noto Serif TC", serif;
  letter-spacing: 0.02em;
}

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone);
  padding: 15px 0;
  position: sticky; top: 0; z-index: 100;
}
header .container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: inline-block; width: 150px; height: 46px;
  background: url('/assets/logo/kairos-horizontal-lockup.png') left center / contain no-repeat;
  text-indent: -9999px; overflow: hidden; white-space: nowrap;
}
.logo::after { content: none; }
.hero-logo { display: block; width: 104px; height: 104px; margin: 0 auto 14px; }

nav a { text-decoration: none; color: var(--ink); margin-left: 26px; font-size: 0.95rem; opacity: .82; }
nav a:hover { opacity: 1; color: var(--gold); }

nav a.btn-primary {
  background: var(--indigo); color: var(--parchment); opacity: 1;
  padding: 9px 20px; border-radius: 999px; font-weight: 600;
  transition: background 0.2s;
}
nav a.btn-primary:hover { background: #2a2450; color: var(--white); }

/* 導覽列固定在頂端 → 點「#關於」等錨點時，目標段落要留出導覽列高度，否則標題被蓋住（Alan 2026-09-24 手機回報） */
html { scroll-padding-top: 88px; scroll-behavior: smooth; }

/* 手機：導覽項目一行放不下會折成兩行把 header 撐高 → 改成一行、可左右滑動（Alan 2026-09-24） */
@media (max-width: 720px) {
  header { padding: 10px 0; }
  header .container { gap: 10px; }
  .logo { width: 110px; height: 34px; flex: none; }
  nav {
    display: flex; align-items: center; flex-wrap: nowrap; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 4px 0; margin-right: -20px; padding-right: 20px; /* 讓最後一顆鈕可以滑到貼齊右邊 */
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; margin-left: 16px; font-size: .9rem; }
  nav a:first-child { margin-left: 0; }
  nav a.btn-primary { padding: 7px 14px; }
  html { scroll-padding-top: 62px; }
}

/* Hero — 深靛藍水墨底 + 暖金 */
.hero {
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(42,122,110,.28) 0%, transparent 55%),
    radial-gradient(120% 90% at 90% 90%, rgba(196,80,42,.26) 0%, transparent 55%),
    linear-gradient(160deg, #12101f 0%, #181737 55%, #241f45 100%);
  color: var(--parchment);
  text-align: center;
  padding: 104px 20px 96px;
}
.hero .eyebrow { font-size: .82rem; letter-spacing: .32em; color: var(--gold); margin-bottom: 20px; text-transform: uppercase; }
.hero h2 { font-size: 2.7rem; margin-bottom: 18px; color: #fff; line-height: 1.28; }
.hero p  { font-size: 1.12rem; color: #cfc9c0; margin: 0 auto 20px; max-width: 34em; line-height: 1.95; }
.hero .tagline { font-family: "Cormorant Garamond","Noto Serif TC",serif; font-style: italic; color: var(--gold); font-size: 1.1rem; letter-spacing: .06em; margin-bottom: 34px; }

.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, #d3ac52 0%, #B8923A 100%);
  color: var(--indigo); font-weight: 700; font-size: 1.08rem;
  padding: 15px 40px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(184,146,58,.32);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(184,146,58,.45); }

/* Sections */
.section { padding: 74px 0; }
.section h3 { font-size: 1.85rem; margin-bottom: 22px; color: var(--indigo); }
.section p  { color: #5a564d; font-size: 1.02rem; max-width: 660px; line-height: 1.95; }
.bg-light { background: var(--parchment); }

.steps { display: flex; gap: 20px; margin-top: 34px; flex-wrap: wrap; }

.step {
  flex: 1; min-width: 150px; text-align: center;
  padding: 26px 16px; background: var(--white);
  border: 1px solid var(--stone); border-radius: 14px;
  box-shadow: 0 3px 14px rgba(24,23,55,.05);
}
.step span {
  display: block; width: 50px; height: 50px; line-height: 50px; border-radius: 50%;
  background: var(--indigo); color: var(--gold);
  font-family: "Cormorant Garamond", serif; font-size: 1.35rem; font-weight: 700;
  margin: 0 auto 14px;
}
.step p { color: var(--ink); font-size: 0.94rem; line-height: 1.7; }

.cta { text-align: center; background: var(--mist); }
.cta h3 { color: var(--indigo); }

/* Footer */
footer {
  background: var(--indigo); color: #b9b3ac;
  text-align: center; padding: 30px 0; font-size: 0.9rem; line-height: 1.9;
}
footer a { color: var(--gold); }

/* Forms */
.form-section { padding: 60px 0; }
.form-container { max-width: 600px; margin: 0 auto; }
.form-container h2 { font-size: 1.9rem; margin-bottom: 8px; color: var(--indigo); }
.subtitle { color: #5a564d; margin-bottom: 32px; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; }
.alert-error { background: #fbe9e4; color: var(--ember); border: 1px solid #e6b8a8; }

.form-group { margin-bottom: 20px; }
.form-row   { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; color: var(--ink); }
.required { color: var(--ember); }

input[type="text"], input[type="email"], input[type="date"], input[type="time"] {
  width: 100%; height: 46px; box-sizing: border-box; padding: 10px 14px;
  border: 1.5px solid var(--stone); border-radius: 8px; font-size: 1rem;
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,58,.18); }

small { display: block; color: #7a756b; font-size: 0.82rem; margin-top: 4px; }
.terms { font-size: 0.9rem; color: #5a564d; }
/* 同意勾選：平板／手機手指好按——大框、整行可點、有內距（Alan 2026-09-22 iPad 回報太小） */
.terms label, .agree-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px; margin: 6px -10px 0;
  border-radius: 10px; cursor: pointer; line-height: 1.7; }
.terms label:hover, .agree-row:hover { background: rgba(184,146,58,.08); }
.terms input, .agree-row input { width: 24px; height: 24px; min-width: 24px; margin: 2px 0 0; flex: none; cursor: pointer; accent-color: var(--gold); }

.btn-submit {
  width: 100%; padding: 15px; background: var(--indigo); color: var(--parchment);
  border: none; border-radius: 999px; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s; margin-top: 8px;
}
.btn-submit:hover { background: #2a2450; }

/* Result page */
.result-icon { width: 80px; height: 80px; border-radius: 50%; font-size: 2.5rem; line-height: 80px; margin: 0 auto 24px; font-weight: 700; }
.result-icon.success { background: #dcefe9; color: var(--teal); }
.result-icon.error   { background: #fbe9e4; color: var(--ember); }

.btn-primary {
  display: inline-block; background: var(--indigo); color: var(--parchment);
  padding: 13px 30px; border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: background 0.2s;
}
.btn-primary:hover { background: #2a2450; }
