/* =========================================================
   MORI 凱和山 — 示範網站樣式
   色系：深褐 #492f17 ／ 米白 #fffcd6 ／ 金 #c9a96e
   ========================================================= */

:root {
  --brown: #492f17;
  --brown-2: #6b4a26;
  --brown-3: #2f1e0f;
  --cream: #fffcd6;
  --cream-2: #f7f2e2;
  --gold: #c9a96e;
  --ink: #2a241c;
  --white: #ffffff;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans HK", "Microsoft JhengHei", "PingFang HK", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- 載入畫面 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--brown-3);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  color: var(--cream);
  font-family: "Noto Serif HK", serif;
  letter-spacing: .6em; font-size: 22px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.35} 50%{opacity:1} }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .3s var(--ease);
}
.site-header__inner {
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.site-header.is-solid {
  background: rgba(73, 47, 23, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.brand img { height: 40px; width: auto; transition: height .3s var(--ease); }
.site-header.is-solid .brand img { height: 34px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  position: relative;
  color: var(--cream);
  font-size: 14px; letter-spacing: .12em;
  padding: 6px 2px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
}
.burger span {
  display: block; height: 2px; background: var(--cream);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--brown-3);
  padding: calc(var(--header-h) + 20px) 24px 60px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url("../images/hero-bg.webp");
  background-position: center top;
  background-size: cover;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(47,30,15,.10), rgba(47,30,15,.55) 70%),
    linear-gradient(180deg, rgba(47,30,15,.35), rgba(47,30,15,.15) 40%, rgba(47,30,15,.65));
}

/* 中間圓章（照原站幾何：cream 圓 + logo 58% 寬、top 58%、上移 67%） */
.hero__badge {
  position: relative; z-index: 2;
  width: min(calc(100vmin - 80px), 500px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--cream);
  box-shadow: inset 0 0 5px #000, 0 22px 50px rgba(0,0,0,.35);
  display: grid; place-items: center;
  animation: fadeUp 1.2s var(--ease) both;
}
.hero__logo {
  width: 58%;
  transform: translateY(-4%);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.18));
}
.hero__copy {
  position: relative; z-index: 2;
  margin-top: 34px; text-align: center; color: var(--cream);
  animation: fadeUp 1.2s .25s var(--ease) both;
}
.hero__tag { letter-spacing: .38em; font-size: 13px; margin: 0 0 10px; color: var(--gold); }
.hero__title {
  font-family: "Noto Serif HK", serif;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: .18em; margin: 0;
  font-weight: 600;
}
.hero__title span { display: block; font-size: .55em; letter-spacing: .4em; margin-top: 8px; }
.hero__sub { margin: 14px 0 0; font-size: 14px; letter-spacing: .16em; opacity: .92; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 14px; letter-spacing: .18em;
  border-radius: 999px;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--solid { background: var(--gold); color: var(--brown-3); }
.btn--solid:hover { background: var(--cream); }
.btn--ghost { border-color: rgba(255,252,214,.7); color: var(--cream); }
.btn--ghost:hover { background: rgba(255,252,214,.14); border-color: var(--cream); }
.btn--full { width: 100%; margin-top: 8px; }

/* ---------- 捲動提示（已按指示於 2026-09-19 移除，樣式保留備用） ---------- */

/* ---------- 通用區塊 ---------- */
.section { padding: 96px 0; }
.section--cream { background: var(--cream-2); }
.section--dark { background: var(--brown); color: var(--cream); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--split {
  display: grid; gap: 56px;
  grid-template-columns: 1fr 1fr; align-items: start;
}
.eyebrow {
  font-size: 12px; letter-spacing: .4em; color: var(--gold);
  margin: 0 0 12px; text-transform: uppercase;
}
.h2 {
  font-family: "Noto Serif HK", serif;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .12em; margin: 0 0 20px; font-weight: 600;
}
.lead { font-size: 16px; max-width: 60ch; opacity: .92; }
.note { font-size: 12.5px; opacity: .68; margin-top: 26px; }
.note--center { text-align: center; }
.note--small { font-size: 11.5px; }

/* ---------- 項目簡介 facts ---------- */
.facts {
  display: grid; gap: 22px; margin: 44px 0 0;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  border-top: 1px solid rgba(73,47,23,.22);
  padding-top: 16px;
}
.fact__num {
  display: block;
  font-family: "Noto Serif HK", serif;
  font-size: 24px; color: var(--brown); letter-spacing: .1em;
}
.fact__lbl { display: block; font-size: 13px; opacity: .8; }
.fact a { border-bottom: 1px solid var(--gold); }

/* ---------- 會所 gallery ---------- */
.gallery {
  max-width: 1320px; margin: 46px auto 0; padding: 0 24px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.gallery__item {
  position: relative; margin: 0; overflow: hidden; cursor: zoom-in;
  border-radius: 4px; background: #1c1209;
  aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .5s var(--ease);
  opacity: .92;
}
.gallery__item:hover img { transform: scale(1.07); opacity: 1; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(28,18,9,.86));
  font-size: 13px; letter-spacing: .08em; color: var(--cream);
}
.gallery__item figcaption em {
  display: block; font-style: normal; font-size: 10.5px;
  letter-spacing: .22em; opacity: .6; text-transform: uppercase;
}

/* ---------- 生活體驗卡片 ---------- */
.cards {
  display: grid; gap: 20px; margin-top: 44px;
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--white);
  border: 1px solid rgba(73,47,23,.10);
  border-radius: 6px;
  padding: 30px 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(73,47,23,.12); }
.card h3 {
  font-family: "Noto Serif HK", serif;
  font-size: 18px; margin: 0 0 12px; letter-spacing: .1em; color: var(--brown);
}
.card p { margin: 0; font-size: 14px; opacity: .85; }

/* ---------- 參觀 / 預約表單（Sterling booking 格式，MORI 色系） ---------- */
.section--visit { background: var(--brown-3); }
.bk-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.bk-card {
  background: var(--cream); color: var(--ink);
  border-radius: 6px; padding: 50px 48px 28px;
  box-shadow: 0 30px 70px rgba(0,0,0,.36);
}
.bk-head { text-align: center; margin-bottom: 34px; }
.bk-en {
  font-size: 11px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--brown-2); opacity: .72;
}
.bk-h2 {
  font-family: "Noto Serif HK", serif;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: .12em; color: var(--brown);
  margin: 10px 0 6px; font-weight: 600;
}
.bk-pn { font-size: 14px; letter-spacing: .2em; color: var(--brown-2); opacity: .75; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bk-fg { margin-bottom: 20px; min-width: 0; }
.bk-fg label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--brown);
}
.bk-req { color: #b4453a; }
.bk-fg > input, .bk-fg > select, .bk-pr {
  width: 100%;
  border: 1px solid rgba(73,47,23,.26); border-radius: 4px;
  background: #fffef6;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
}
.bk-fg > input, .bk-fg > select { padding: 12px 15px; }
.bk-fg > input:focus, .bk-fg > select:focus, .bk-pr:focus-within {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(201,169,110,.3);
}
.bk-fg input.is-error, .bk-fg select.is-error, .bk-pr.is-error {
  border-color: #b4453a; box-shadow: 0 0 0 3px rgba(180,69,58,.2);
}
.bk-pr { display: flex; align-items: stretch; overflow: hidden; padding: 0; }
.bk-pp {
  display: flex; align-items: center; padding: 0 10px;
  background: rgba(73,47,23,.07); color: var(--brown-2);
  font-size: 14px; border-right: 1px solid rgba(73,47,23,.18);
}
.bk-pr input {
  border: 0; background: transparent;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
}
.bk-pc {
  width: 54px; padding: 12px 2px; text-align: center;
  border-right: 1px solid rgba(73,47,23,.18) !important;
}
.bk-pnum { flex: 1; min-width: 0; padding: 12px 15px; }
.bk-pr input:focus { outline: none; background: #fff; box-shadow: none; }
.bk-ps { min-height: 16px; margin-top: 6px; font-size: 12px; font-weight: 500; }
.bk-ps.is-err { color: #b4453a; }
/* 日期：自訂 dd/mm/yyyy 文字框 + 日曆彈選擇 */
.bk-date { position: relative; }
.bk-date > input[type="text"] {
  width: 100%; padding: 12px 46px 12px 15px;
  border: 1px solid rgba(73,47,23,.26); border-radius: 4px;
  background: #fffef6; font-family: inherit; font-size: 14.5px; color: var(--ink);
}
.bk-date > input[type="text"]:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(201,169,110,.3);
}
.bk-date.is-error > input[type="text"] {
  border-color: #b4453a; box-shadow: 0 0 0 3px rgba(180,69,58,.2);
}
.bk-date > input[type="date"] {
  position: absolute; left: 0; bottom: 0;
  width: 1px; height: 1px; padding: 0; border: 0; opacity: 0;
  pointer-events: none;
}
.bk-date__btn {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 4px; cursor: pointer;
  color: var(--brown-2); padding: 0;
}
.bk-date__btn:hover { background: rgba(73,47,23,.08); color: var(--brown); }
.bk-date__btn svg { display: block; }
.bk-btnwrap { margin-top: 6px; }
.bk-btnwrap .btn { border-radius: 999px; }
.bk-wa { margin-top: 12px; }
.bk-wa a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px;
  background: #25D366; color: #fff;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .1em;
  transition: background .3s var(--ease);
}
.bk-wa a:hover { background: #1eb455; }
.bk-wa svg { flex: 0 0 auto; }
.bk-msg { min-height: 20px; margin: 12px 0 0; font-size: 13px; }
.bk-msg.is-bad { color: #b4453a; }
.bk-success { display: none; text-align: center; padding: 40px 10px 10px; }
.bk-success.is-open { display: block; }
.bk-success__icon {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--brown-3);
  font-size: 30px; line-height: 1;
}
.bk-success h3 {
  font-family: "Noto Serif HK", serif; font-size: 26px; letter-spacing: .12em;
  color: var(--brown); margin: 0 0 12px;
}
.bk-success p { margin: 0 auto; max-width: 44ch; font-size: 14.5px; opacity: .85; }
.bk-success .note { margin-top: 16px; }
.bk-back { text-align: center; padding: 22px 0 4px; }
.bk-back a {
  font-size: 13px; letter-spacing: .14em; color: var(--brown-2);
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.bk-back a:hover { color: var(--brown); }

@media (max-width: 640px) {
  .bk-card { padding: 34px 22px 22px; }
  .bk-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-3); color: var(--cream);
  padding: 64px 0 48px; text-align: center;
  border-top: 1px solid rgba(255,252,214,.12);
}
.site-footer__logo { height: 46px; margin: 0 auto 24px; }
.disclaimer {
  max-width: 820px; margin: 0 auto 22px;
  font-size: 12px; line-height: 1.9; opacity: .62; text-align: justify;
}
.site-footer__meta { font-size: 12.5px; opacity: .8; margin: 0; letter-spacing: .06em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20,13,6,.94);
  display: none; place-items: center;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: 92vw; max-height: 84vh;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: 0; cursor: pointer;
  color: var(--cream); font-size: 34px; line-height: 1;
  opacity: .75; transition: opacity .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 22px; right: 28px; font-size: 24px; }
.lightbox__nav--prev { left: 3vw; }
.lightbox__nav--next { right: 3vw; }

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 1080px) {
  .facts, .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(47,30,15,.98);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 26px;
    transform: translateY(-120%);
    transition: transform .45s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
  }
  .nav.is-open { transform: none; }
  .nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid rgba(255,252,214,.12); }
  .wrap--split { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 74px 0; }
  .hero { padding-bottom: 48px; }
}
@media (max-width: 560px) {
  .facts, .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero__badge { width: min(calc(100vmin - 56px), 340px); }
  .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   分頁式（multi-page）專用樣式
   ========================================================= */

/* 內頁橫幅 */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: grid; place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 24px 70px;
  background: var(--brown-3);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  opacity: .55;
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(47,30,15,.55), rgba(47,30,15,.85));
}
.page-hero__inner { position: relative; z-index: 2; color: var(--cream); }
.page-hero h1 {
  font-family: "Noto Serif HK", serif;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: .16em; margin: 10px 0 14px; font-weight: 600;
}
.page-hero p { margin: 0; font-size: 14px; letter-spacing: .18em; opacity: .9; }

/* 麵包屑 */
.crumb {
  font-size: 12px; letter-spacing: .2em; color: var(--gold);
  margin: 0 0 6px;
}
.crumb a { border-bottom: 1px solid transparent; }
.crumb a:hover { border-color: var(--gold); }

/* 導覽：目前頁面 */
.nav a.is-active { color: var(--gold); }
.nav a.is-active::after { transform: scaleX(1); }

/* 首頁入口卡 */
.entries {
  display: grid; gap: 22px; margin-top: 50px;
  grid-template-columns: repeat(3, 1fr);
}
.entry {
  position: relative; display: block; overflow: hidden;
  border-radius: 6px; min-height: 300px;
  background: #1c1209; color: var(--cream);
}
.entry img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .72;
  transition: transform .9s var(--ease), opacity .5s var(--ease);
}
.entry:hover img { transform: scale(1.06); opacity: .9; }
.entry__body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding: 26px 24px;
  background: linear-gradient(transparent 30%, rgba(28,18,9,.86));
}
.entry__body em {
  font-style: normal; font-size: 10.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.entry__body h3 {
  font-family: "Noto Serif HK", serif;
  font-size: 21px; letter-spacing: .12em; margin: 0 0 6px;
}
.entry__body span { font-size: 12.5px; opacity: .8; }

/* 會所 gallery 三分版（配合分頁） */
.gallery--wide { grid-template-columns: repeat(3, 1fr); }

/* 頁尾前 CTA 條 */
.cta-bar {
  background: var(--gold); color: var(--brown-3);
  padding: 34px 0; text-align: center;
}
.cta-bar p {
  margin: 0 0 16px; font-family: "Noto Serif HK", serif;
  font-size: clamp(17px, 2.2vw, 23px); letter-spacing: .12em;
}
.cta-bar .btn--solid { background: var(--brown-3); color: var(--cream); }
.cta-bar .btn--solid:hover { background: var(--brown); }

/* 兩欄資訊區 */
.cols {
  display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start;
}
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: 15px 0; border-bottom: 1px solid rgba(73,47,23,.16);
  display: flex; gap: 16px; font-size: 15px;
}
.info-list li strong {
  min-width: 96px; font-weight: 500; font-size: 13px;
  letter-spacing: .14em; color: var(--brown-2);
}

@media (max-width: 1080px) {
  .entries { grid-template-columns: 1fr 1fr; }
  .gallery--wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .entries { grid-template-columns: 1fr; }
  .page-hero { min-height: 52svh; }
}

/* ---------- 浮標：即時查詢（WhatsApp） + 預約表格 ---------- */
.fab {
  position: fixed; right: 22px; bottom: 24px; z-index: 300;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 13.5px; letter-spacing: .12em;
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.fab__btn svg { flex: 0 0 auto; }
.fab__btn:hover { transform: translateY(-2px); }
.fab__btn--wa { background: #25D366; color: #fff; }
.fab__btn--wa:hover { background: #1eb455; }
.fab__btn--book { background: var(--gold); color: var(--brown-3); }
.fab__btn--book:hover { background: var(--cream); }
@media (max-width: 560px) {
  .fab { right: 14px; bottom: 16px; gap: 8px; }
  .fab__btn { padding: 11px 15px; font-size: 12.5px; letter-spacing: .1em; }
}

