:root {
  --primary: #536fc8;
  --primary-dark: #435eb2;
  --background: #faf9f5;
  --foreground: #3a3935;
  --card: #ffffff;
  --muted: #dfddd6;
  --muted-text: #77736b;
  --secondary: #eeeae5;
  --accent: #cc7b6f;
  --border: #ece8df;
  --shadow: 0 12px 28px rgba(58, 57, 53, .08);
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Lato", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}

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

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

h1, h2, h3 {
  margin: 0;
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2.45rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 28px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
p { margin: 0 0 16px; color: rgba(58, 57, 53, .78); }

.container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  overflow: hidden;
  flex: 0 0 56px;
  border: 2px solid rgba(83, 111, 200, .2);
  border-radius: 10px;
  background: var(--muted);
}

.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text strong { display: block; font-size: 1.18rem; }
.brand-text small { display: block; color: var(--muted-text); font-size: .84rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
}

.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.nav-button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 10px 24px;
  font: inherit;
  font-weight: 700;
}

.nav-button, .btn.primary {
  background: var(--primary);
  color: #fff;
}

.nav-button:hover, .btn.primary:hover { background: var(--primary-dark); color: #fff; }

/* 聯絡按鈕維持白字，避免目前頁面的 active 樣式讓文字消失。 */
.main-nav .nav-button,
.main-nav .nav-button.active {
  background: var(--primary);
  color: #fff;
}

.btn.secondary {
  background: var(--secondary);
  color: var(--foreground);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  background: var(--secondary);
  color: var(--foreground);
  padding: 10px 13px;
  font-size: 1.3rem;
}

.page { display: none; }
.page.active { display: block; }

.hero {
  position: relative;
  min-height: min(100svh, 600px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(250, 249, 245, .88), rgba(250, 249, 245, .68), rgba(223, 221, 214, .2));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content p {
  max-width: 640px;
  margin: 24px 0 32px;
  font-size: 1.15rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.section {
  padding: clamp(64px, 9vw, 96px) 0;
}

.card-bg, .page-head {
  background: var(--card);
}

.page-head {
  padding: clamp(48px, 7vw, 70px) 0;
  border-bottom: 1px solid var(--border);
}

.page-head p { max-width: 760px; font-size: 1.12rem; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  gap: clamp(32px, 7vw, 76px);
  align-items: center;
}

.top-align { align-items: start; }

.rounded-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 28px;
}

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

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

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgba(83, 111, 200, .1);
  color: var(--primary);
  font-size: 1.55rem;
  font-weight: 800;
}

.icon.accent { background: rgba(204, 123, 111, .11); color: var(--accent); }
.icon.soft { background: rgba(238, 234, 229, .9); color: var(--foreground); }

.center { text-align: center; }
.narrow { max-width: 760px; }
.top-gap { margin-top: 42px; }

.cat-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

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

.cat-card div { padding: 24px; }
.cat-card a { color: var(--primary); font-weight: 800; }

.cat-list .cat-card {
  padding: 22px;
}

.cat-list .cat-card img {
  height: 250px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.cat-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
  color: var(--muted-text);
  font-size: .95rem;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 800;
}

.badge.booked { background: #fef3c7; color: #92400e; }

.steps, .checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps { counter-reset: step; }
.steps li, .checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(58, 57, 53, .78);
  font-size: 1.08rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
}

.checks li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
}

.timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 56px;
  margin-top: 70px;
}

.contact-summary {
  display: grid;
  grid-template-columns: .8fr 1.35fr 1.2fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.contact-summary-item {
  min-width: 0;
  padding: 30px clamp(22px, 3vw, 38px);
}

.contact-summary-item + .contact-summary-item {
  border-left: 1px solid var(--border);
}

.contact-summary-item h3 { font-size: 1.65rem; }
.contact-summary-item p { font-size: 1.08rem; margin-bottom: 5px; }
.contact-summary-item .icon { width: 54px; height: 54px; font-size: 1.7rem; }

.contact-email {
  white-space: nowrap;
  font-size: clamp(.7rem, 1.05vw, .88rem);
  letter-spacing: -.025em;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--foreground);
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--foreground);
  padding: 10px 14px;
  font: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(83, 111, 200, .28);
}

.full { width: 100%; }

.hours p {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.floating-contact {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  overflow: hidden;
  width: min(92vw, 470px);
  border: 1px solid rgba(83, 111, 200, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 45px rgba(58, 57, 53, .2);
  backdrop-filter: blur(14px);
}

.floating-contact-text {
  min-width: 0;
  padding: 10px 14px;
}

.floating-contact-text span,
.floating-contact-text small {
  display: block;
  color: var(--muted-text);
  font-size: .76rem;
  line-height: 1.25;
}

.floating-contact-text strong {
  display: block;
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.floating-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 800;
}

.floating-contact-btn.phone {
  background: var(--primary);
}

.floating-contact-btn.line {
  background: #06c755;
}

.footer {
  margin-top: 64px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer a {
  display: block;
  color: var(--muted-text);
  margin-bottom: 8px;
}

.footer a:hover { color: var(--primary); }

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted-text);
  font-size: .9rem;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-text strong { font-size: 1rem; }
  .brand-text small { display: none; }

  .menu-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px clamp(16px, 4vw, 32px) 22px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .nav-button { margin-top: 8px; }

  .hero { min-height: 620px; }
  .hero-content { padding-top: 58px; padding-bottom: 58px; }

  .two-col,
  .grid.three,
  .grid.two,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-summary { grid-template-columns: 1fr; }
  .contact-summary-item + .contact-summary-item { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .contact-email { white-space: normal; overflow-wrap: anywhere; }
  .actions .btn { width: 100%; }
  .brand-logo { width: 48px; height: 48px; flex-basis: 48px; }
  .cat-card img { height: 220px; }

  .floating-contact {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    grid-template-columns: 1fr auto auto;
  }

  .floating-contact-btn {
    min-width: 56px;
    padding: 10px;
  }
}
