:root {
  --bg: #0f1d15;
  --bg-alt: #16291d;
  --bg-card: #1b2f21;
  --bg-deep: #0a140e;
  --ink: #f2ede0;
  --ink-soft: #b9c2b2;
  --ink-muted: #8a9686;
  --gold: #c9a86a;
  --gold-strong: #e0c690;
  --border: rgba(201, 168, 106, 0.22);
  --border-strong: rgba(201, 168, 106, 0.4);
  --white: #ffffff;

  /* legacy aliases kept so any missed rule still resolves sensibly */
  --green-dark: var(--ink);
  --green-mid: var(--gold);
  --green-light: var(--bg-alt);
  --gray: var(--ink-soft);
  --cream: var(--bg);
}

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

body {
  font-family: "Noto Sans TC", "PingFang TC", "微軟正黑體", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .brand, nav.main-nav a, .lang-toggle {
  font-family: "Noto Serif TC", "PingFang TC", serif;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-inner .brand { margin-right: auto; }

.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 1px;
}

.brand span { color: var(--gold); }

.brand img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.brand .brand-text { display: none; }

@media (min-width: 480px) {
  .brand .brand-text { display: inline; }
}

nav.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

nav.main-nav a {
  font-size: 15px;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--gold);
  color: var(--gold-strong);
}

.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--ink); margin-left: 12px; }

.lang-toggle {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--gold-strong);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 16px;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.lang-toggle:hover { background: var(--bg-card); }

.music-toggle {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--gold-strong);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.music-toggle:hover { background: var(--bg-card); }
.music-toggle.playing { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  height: 68vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,14,0.02) 0%, rgba(10,20,14,0.1) 35%, rgba(10,20,14,0.4) 65%, rgba(10,20,14,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 48px 24px;
  margin: 0 auto;
  width: 100%;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -60px -24px -24px -24px;
  background: linear-gradient(180deg, rgba(10,20,14,0) 0%, rgba(10,20,14,0.55) 35%, rgba(10,20,14,0.88) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-content .eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold-strong);
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.8);
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
  text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.8);
}

.hero-content p {
  font-size: 16px;
  max-width: 520px;
  color: var(--ink);
  margin-bottom: 26px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 1px 3px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6);
}

.page-hero {
  height: 32vh;
  min-height: 220px;
}

.page-hero h1 { font-size: 32px; }

/* Healing banner (mid-page full-bleed image with quote) */
.healing-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.healing-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,14,0.55) 0%, rgba(10,20,14,0.35) 40%, rgba(10,20,14,0.6) 100%);
}

.healing-banner .banner-text {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-family: "Noto Serif TC", serif;
  font-size: 30px;
  font-style: italic;
  line-height: 1.6;
  max-width: 640px;
  padding: 0 24px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.85), 0 0 24px rgba(0,0,0,0.6);
}

@media (max-width: 860px) {
  .healing-banner .banner-text { font-size: 22px; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn-primary:hover { background: var(--gold-strong); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-strong);
}

.btn-outline:hover { background: rgba(201, 168, 106, 0.1); }

/* Sections */
section { padding: 80px 0; }

.section-label {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h2.section-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
}

.lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 40px;
}

.lead a { color: var(--gold-strong); border-bottom: 1px solid var(--border-strong); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.card img { height: 200px; object-fit: cover; width: 100%; }

.card-body { padding: 22px; }

.card-body h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }

.card-body p { font-size: 14px; color: var(--ink-soft); }

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

.tinted-dark {
  background: var(--bg-deep);
  color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tinted-dark .section-title, .tinted-dark .lead { color: var(--ink); }
.tinted-dark .lead { color: var(--ink-soft); }

/* Facts strip */
.facts {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 24px;
}

.facts .fact strong {
  display: block;
  font-size: 32px;
  color: var(--gold);
  font-family: "Noto Serif TC", serif;
}

.facts .fact span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Footer */
footer {
  background: var(--bg-deep);
  color: var(--ink-soft);
  padding: 48px 0 24px;
  font-size: 14px;
  border-top: 1px solid var(--border);
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

footer h4 {
  color: var(--gold-strong);
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 500;
}

footer ul { list-style: none; }

footer li { margin-bottom: 8px; }

footer li a:hover { color: var(--gold-strong); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Booking widget */
.booking-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.calendar-card, .calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--ink);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.cal-dow {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  gap: 2px;
  color: var(--ink);
}

.cal-day:hover { border-color: var(--gold); }
.cal-day.disabled { cursor: not-allowed; opacity: 0.55; }
.cal-day.disabled:hover { border-color: var(--border); }
.cal-day.selected { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
.cal-day .occ { font-size: 10px; border-radius: 6px; padding: 0 4px; }
.cal-day.low .occ { color: #8fd68f; background: rgba(59, 109, 17, 0.35); }
.cal-day.mid .occ { color: #f2c766; background: rgba(224, 161, 0, 0.25); }
.cal-day.full .occ { color: #f29a9a; background: rgba(192, 57, 43, 0.25); }
.cal-day.selected .occ { background: rgba(10,20,14,0.25); color: var(--bg-deep); }

.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.legend .dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; }
.dot.low { background:#5fa83f; }
.dot.mid { background:#e0a100; }
.dot.full { background:#c0392b; }

.calc-card label { display:block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; margin-top: 14px; }
.calc-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 15px;
  background: var(--bg-alt);
  color: var(--ink);
}
.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 14px;
}
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}
.calc-total .amount { font-size: 28px; font-weight: 700; color: var(--gold); font-family: "Noto Serif TC", serif; }

form.contact-form { display: grid; gap: 16px; max-width: 520px; }
form.contact-form label { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; display: block; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 4px; font-size: 15px; font-family: inherit;
  background: var(--bg-card); color: var(--ink);
}

.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.faq-item p { font-size: 14px; color: var(--ink-soft); }

.notice {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-grid figure { margin: 0; }

.gallery-grid img {
  border-radius: 8px;
  height: 220px;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border);
}

.gallery-grid figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.gallery-grid figcaption strong {
  display: block;
  color: var(--gold-strong);
  font-size: 14px;
  margin-bottom: 2px;
  font-weight: 500;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold-strong);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card.no-image .card-body { padding-top: 24px; }

.card img.logo-img { object-fit: contain; background: #0a140e; padding: 20px; }

.card-map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gold-strong);
  border-bottom: 1px solid var(--border-strong);
}

.card-map-link:hover { color: var(--gold); }

.map-embed {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.map-embed iframe { display: block; }

.quote-block {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  font-size: 19px;
  color: var(--ink);
  font-family: "Noto Serif TC", serif;
  font-style: italic;
  margin: 32px 0;
}

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-wrap { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 32px; }
}
