:root {
  --bg: #0e0c0b;
  --bg-soft: #161210;
  --text: #f3ebe0;
  --muted: #b8a99a;
  --gold: #d4b978;
  --gold-deep: #b8943f;
  --line: rgba(212, 185, 120, 0.28);
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --max: 1100px;
  --font: "Segoe UI", "PingFang HK", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti TC", "Noto Serif TC", serif;
  --logo-ivory: #f7f3ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#home, #services, #team, #location {
  scroll-margin-top: 108px;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  padding-bottom: 7.5rem;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold-deep); }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 12, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.65rem 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
  opacity: 0.94;
}
.logo-row {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.logo-mark {
  height: 68px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  background: var(--logo-ivory);
  border-radius: 999px;
  padding: 0.2rem;
  border: 1px solid rgba(212, 185, 120, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.logo-word {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}
.logo-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 1.85rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1.05;
}
.logo-place {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 185, 120, 0.72);
  line-height: 1;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.nav a {
  color: var(--text); font-size: 0.92rem; text-decoration: none;
}
.nav a.is-active, .nav a:hover { color: var(--gold); }
.lang-switch { display: inline-flex; gap: 0.25rem; margin-left: 0.25rem; }
.lang-btn {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 999px; padding: 0.2rem 0.65rem; cursor: pointer; font-size: 0.8rem;
}
.lang-btn.is-active {
  border-color: var(--gold); color: var(--gold); background: rgba(212, 185, 120, 0.12);
}

.hero {
  position: relative; min-height: 62vh;
  display: grid; align-items: end;
  background: var(--bg-soft);
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.72);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 4rem 0 3rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.75rem;
  color: #f8f0e4;
}
.hero p { max-width: 36rem; margin: 0; font-size: 1.05rem; color: #ebe0d2; }

.section { padding: 3.5rem 0; }
.section.alt { background: var(--bg-soft); }
.section h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.5rem;
  color: var(--text);
}
.section .lead { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }
.gold-rule {
  width: 48px; height: 2px; background: var(--gold); margin: 0 0 1.25rem; border: 0;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600;
  text-decoration: none !important; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: #1a1410; }
.btn-gold:hover { background: var(--gold-deep); color: #1a1410; }
.btn-outline {
  background: transparent; color: var(--gold); border-color: var(--gold);
}
.btn-outline:hover { background: rgba(212, 185, 120, 0.12); }

.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.card img {
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
  filter: brightness(0.88);
}
.card-body { padding: 1.1rem 1.15rem 1.35rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; color: var(--gold); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }


.services-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  margin: 1.25rem 0 1.5rem;
}
.services-row .service-package {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 820px) {
  .services-row { grid-template-columns: 1fr; }
}
.service-package {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.45rem 1.5rem;
  margin-bottom: 1.25rem;
}
.service-package h3 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--gold);
}
.service-package .desc,
.service-desc {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}
.service-package .subhead {
  margin: 1rem 0 0.45rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 600;
}
.service-package .table-wrap {
  margin-bottom: 0.35rem;
  box-shadow: none;
}
.price-block { margin: 0.85rem 0; }
.price-block h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.price-lines {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 12, 11, 0.45);
}
.price-lines li {
  padding: 0.35rem 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(212, 185, 120, 0.12);
}
.price-lines li:last-child { border-bottom: 0; }
.price-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--gold);
}
.service-note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(212, 185, 120, 0.08);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 46rem;
  box-shadow: var(--shadow);
}
.notes-list {
  color: var(--muted);
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}
.notes-list li { margin: 0.35rem 0; }

.map-frame { overflow: hidden; }
.map-img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
  display: block;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: rgba(212, 185, 120, 0.1);
  color: var(--gold);
  font-weight: 600;
}
td { color: var(--text); }
tr:last-child td { border-bottom: 0; }


/* Team dual-row marquee (right → left) */
.team-marquee {
  margin-top: 1.5rem;
  overflow: hidden;
  width: 100%;
}
.team-marquee-row {
  overflow: hidden;
  margin-bottom: 0.85rem;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.team-marquee-row:last-child { margin-bottom: 0; }
.team-marquee-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  will-change: transform;
  animation: team-marquee-rtl 55s linear infinite;
}
.team-marquee-row--b .team-marquee-track {
  animation-duration: 68s;
  animation-direction: normal;
}
.team-marquee:hover .team-marquee-track {
  animation-play-state: paused;
}
@keyframes team-marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.team-card {
  flex: 0 0 auto;
  width: 160px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
}
@media (max-width: 760px) {
  .team-card { width: 120px; }
  .team-marquee-track { gap: 0.65rem; animation-duration: 42s; }
  .team-marquee-row--b .team-marquee-track { animation-duration: 52s; }
}

.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 2.5rem 0 2rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h4 { margin: 0 0 0.6rem; font-family: var(--serif); color: var(--gold); }
.site-footer p, .site-footer a { color: var(--muted); font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold); }

.float-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(16.5rem, calc(100vw - 1.5rem));
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(14, 12, 11, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}
.float-cta p {
  margin: 0.3rem 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}
.float-cta p:first-child { margin-top: 0; color: var(--gold); }
.float-cta p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; }
  .logo-mark { height: 58px; }
  .logo-name { font-size: 1.45rem; }
  #home, #services, #team, #location { scroll-margin-top: 168px; }
  .hero { min-height: 52vh; }
  body { padding-bottom: 8.5rem; }
  .float-cta {
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(15rem, calc(100vw - 1.5rem));
  }
}
