:root {
  --bg: #fbf6ef;
  --surface: #fffdf9;
  --fg: #3d342c;
  --muted: #6b5e54;
  --primary: #c97b5a;
  --primary-deep: #a45d42;
  --sage: #4f6d5a;
  --sand: #f3e6d6;
  --mint: #e7f0e8;
  --line: #eadfd2;
  --on-primary: #fffdf9;
  --on-sage: #fbf6ef;
  --whatsapp: #25d366;
  --sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --display: "Fraunces", "Noto Serif TC", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(0.9rem, 0.86rem + 0.16vw, 1.02rem);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, .nav-btn { cursor: pointer; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
}
.bar { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.brand img { height: 3.5rem; width: auto; }
.brand strong { display: block; font-family: var(--display); font-size: clamp(0.95rem, 0.82rem + 0.45vw, 1.15rem); line-height: 1.2; }
.brand span { display: none; color: var(--muted); font-size: 0.875rem; }
.desktop-nav { display: none; gap: 1.25rem; font-size: 0.9rem; }
.desktop-nav a { color: var(--muted); }
.desktop-nav a.active, .desktop-nav a:hover { color: var(--fg); font-weight: 600; }
.tools { display: flex; align-items: center; gap: 0.5rem; }
.lang { display: flex; height: 2.75rem; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.2rem; }
.lang a { height: 2.25rem; display: grid; place-items: center; padding: 0 0.75rem; border-radius: 999px; color: var(--muted); font-size: 0.9rem; }
.lang a.on { background: var(--sand); color: var(--fg); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0.75rem 1.15rem; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-sage { background: var(--sage); color: var(--on-sage); }
.btn-line { border-color: var(--primary); color: var(--primary-deep); background: transparent; }
.btn-light { background: var(--on-sage); color: var(--primary-deep); }
.match-now { display: none; background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 0.5rem 0.9rem; font-size: 0.875rem; font-weight: 600; }
.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.nav-btn span, .nav-btn span:before, .nav-btn span:after { display: block; width: 1rem; height: 2px; background: var(--fg); position: relative; }
.nav-btn span:before, .nav-btn span:after { content: ""; position: absolute; left: 0; }
.nav-btn span:before { top: -6px; }
.nav-btn span:after { top: 6px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 0.5rem 0 1rem; }
.mobile-nav a { display: block; padding: 0.75rem 0; color: var(--muted); }
.nav-check:checked ~ .mobile-nav { display: block; }
.hero, .split { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0; }
.kicker { color: var(--primary-deep); font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem); font-weight: 600; letter-spacing: 0.14em; }
.kicker.light { color: color-mix(in srgb, var(--on-sage) 85%, transparent); }
.pill { display: inline-flex; border: 1px solid var(--line); background: var(--surface); color: var(--sage); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 600; }
.hero-title, .page-title, .section-title, .sub { font-family: var(--display); font-weight: 700; line-height: 1.25; margin: 0.4rem 0 0; }
.hero-title { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.85rem); }
.page-title { font-size: clamp(1.5rem, 1.05rem + 1.55vw, 2.4rem); }
.section-title { font-size: clamp(1.28rem, 1.05rem + 0.95vw, 1.85rem); }
.sub { font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.28rem); line-height: 1.35; }
.lead { font-size: clamp(0.95rem, 0.92rem + 0.18vw, 1.12rem); }
.muted { color: var(--muted); }
.accent { color: var(--primary-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.photo { width: min(86%, 28rem); height: auto; margin-inline: auto; border-radius: 1.5rem; object-fit: cover; }
.frame { position: relative; }
.dot { position: absolute; border-radius: 999px; }
.dot-a { width: 2rem; height: 2rem; background: var(--sand); top: -0.6rem; left: 1.5rem; animation: drift 7s ease-in-out infinite; }
.dot-b { width: 1.25rem; height: 1.25rem; background: var(--mint); right: 1rem; bottom: -0.6rem; animation: drift 7s ease-in-out infinite 1.2s; }
.float { animation: float-y 6.5s ease-in-out infinite; }
.section { padding: 2rem 0; }
.cards { display: grid; gap: 1rem; }
.card, .sand, .mint-item { border-radius: 1.5rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(61, 52, 44, 0.08); transition: 0.35s ease; }
.avatar { width: 5rem; height: 5rem; border-radius: 999px; border: 1px solid var(--line); animation: float-y 5.2s ease-in-out infinite; }
.sand { background: var(--sand); padding: 1.5rem; }
.mint-item { background: var(--mint); padding: 1rem 1.2rem; font-weight: 600; }
.banner { background: var(--sage); color: var(--on-sage); border-radius: 1.5rem; padding: 2.5rem 1.5rem; }
.stairs { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.step { border-radius: 1.5rem 1.5rem 1rem 1rem; padding: 1.25rem; }
.step-1 { background: var(--sand); }
.step-2 { background: var(--mint); margin-left: 1.5rem; }
.step-3 { background: var(--sage); color: var(--on-sage); margin-left: 3rem; }
.step-3 .muted, .step-3 .kicker { color: color-mix(in srgb, var(--on-sage) 88%, transparent); }
.num { font-family: var(--display); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); color: var(--primary-deep); font-weight: 700; margin: 0; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 1.5rem; padding: 0.9rem 1.2rem; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; }
.contact { background: var(--sage); color: var(--on-sage); border-radius: 1.5rem; padding: 1.5rem; }
.contact-grid, .icon-row { display: grid; gap: 1.25rem; }
.icon-link { display: flex; gap: 0.75rem; align-items: flex-start; }
.icon { width: 3rem; height: 3rem; border-radius: 999px; display: grid; place-items: center; flex: none; background: var(--on-sage); color: var(--primary-deep); }
.icon.wa { background: var(--whatsapp); color: white; }
.map { overflow: hidden; border-radius: 1.5rem; background: var(--surface); margin-top: 1.5rem; }
.map iframe { width: 100%; height: 18rem; border: 0; }
.map a { display: flex; justify-content: space-between; padding: 1rem 1.2rem; color: var(--primary-deep); font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  width: 3.5rem; height: 3.5rem; border-radius: 999px;
  background: var(--whatsapp); color: white; display: grid; place-items: center;
  animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes float-y { 50% { transform: translateY(-8px); } }
@keyframes drift { 50% { transform: translate(8px, -12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse-ring {
  70% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28), 0 0 0 12px rgba(37, 211, 102, 0); }
}
main { animation: rise 0.7s ease both; }
@media (min-width: 640px) {
  .brand span { display: block; }
}
@media (min-width: 768px) {
  .split, .hero { grid-template-columns: 1fr 1fr; padding: 4rem 0; }
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr 1fr; }
  .stairs { flex-direction: row; align-items: end; }
  .step { flex: 1; margin-left: 0 !important; }
  .step-1 { min-height: 13rem; }
  .step-2 { min-height: 18rem; }
  .step-3 { min-height: 24rem; }
  .contact-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .map iframe { height: 24rem; }
}
@media (min-width: 1024px) {
  .desktop-nav, .match-now { display: flex; }
  .nav-btn, .mobile-nav { display: none !important; }
}
.hero-title, .page-title, .section-title { position: relative; overflow: hidden; }
.hero-title.is-in, .page-title.is-in, .section-title.is-in {
  animation: marquee-in 1.25s cubic-bezier(0.16, 0.84, 0.32, 1) both;
}
.hero-title.is-in::after, .page-title.is-in::after, .section-title.is-in::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 249, 0.75), transparent);
  animation: marquee-shine 1.15s ease 0.05s both;
  pointer-events: none;
}
.gif-sticker { position: absolute; z-index: 5; width: 3.4rem; pointer-events: none; }
.gif-a { left: 0.4rem; top: 72vh; }
.gif-b { right: 0.6rem; top: 28vh; }
@keyframes marquee-in { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes marquee-shine { from { transform: translateX(0); } to { transform: translateX(460%); } }
@media (max-width: 767px) { .gif-sticker { width: 2.4rem; opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) {
  .float, .avatar, .dot, .wa-float, main, .hero-title.is-in, .page-title.is-in, .section-title.is-in { animation: none; }
  .gif-sticker { display: none; }
}
