:root {
  --primary: #c4843a;
  --primary-dark: #a06424;

  --bg: #f7f2e9;

  --text-main: #3a2a1a;
  --text-muted: #6a5645;

  --card-bg: #fff7e8;
  --border: #e2d3bd;

  --radius-lg: 16px;
  --shadow-soft: 0 18px 40px rgba(60, 40, 20, 0.14);

  --max-width: 1120px;
}

/* ===== 背景圖 ===== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
  position: relative;
}

body.page-home::before,
body.page-services::before,
body.page-pricing::before,
body.page-order::before,
body.page-about::before,
body.page-faq::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 1;
}

body.page-home::before {
  background-image:
    linear-gradient(
      to bottom,
      rgba(250, 246, 238, 0.4),
      rgba(240, 228, 210, 0.9)
    ),
    url("bg-home.jpg");
}

body.page-services::before {
  background-image:
    linear-gradient(
      to bottom,
      rgba(247, 240, 228, 0.3),
      rgba(238, 223, 203, 0.55)
    ),
    url("bg-services.jpg");
}

body.page-pricing::before {
  background-image:
    linear-gradient(
      to bottom,
      rgba(248, 242, 232, 0.4),
      rgba(244, 238, 226, 0.9)
    ),
    url("bg-pricing.jpg");
}

body.page-order::before {
  background-image:
    linear-gradient(
      to bottom,
      rgba(246, 240, 232, 0.4),
      rgba(240, 230, 216, 0.9)
    ),
    url("bg-order.jpg");
}

body.page-about::before {
  background-image:
    linear-gradient(
      to bottom,
      rgba(248, 242, 232, 0.5),
      rgba(242, 232, 216, 0.9)
    ),
    url("bg-about.jpg");
}

body.page-faq::before {
  background-image:
    linear-gradient(
      to bottom,
      rgba(250, 246, 238, 0.5),
      rgba(245, 239, 228, 0.8)
    ),
    url("bg-faq.jpg");
}

/* ===== 通用 ===== */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

main {
  padding-bottom: 32px;
}

/* ===== NAVBAR ===== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 246, 220, 0.94);
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.16);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 110px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text-main {
  font-weight: 700;
  font-size: 22px;
}

.logo-text-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 16px;
  flex-wrap: wrap; /* 允許整組 menu 換行 */
}

.nav-links a {
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap; /* 防止中文字拆兩行 */
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.18s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(196, 132, 58, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: #5b4633;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 180, 90, 0.4);
}

.btn-whatsapp:hover {
  background: #1bb456;
}

.wa-icon {
  margin-right: 6px;
}

/* ===== HERO (首頁) ===== */

.hero {
  padding: 40px 0 32px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("hero-banner.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-inner {
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 880px;
  width: 100%;
  background: rgba(255, 250, 242, 0.98);
  border-radius: 26px;
  padding: 26px 24px 18px;
  box-shadow: 0 22px 46px rgba(90, 60, 32, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-title {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text-main);
}

.hero-highlight {
  color: var(--primary);
}

.hero-subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 14px;
  color: #8b7a66;
}

/* ===== SECTION 通用 ===== */

.section {
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 20px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 6px;
  color: var(--text-main);
  font-weight: 700;
}

.section-subtitle {
  display: inline-block;
  margin-top: 2px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 247, 232, 0.96);
  box-shadow: 0 8px 20px rgba(60, 40, 20, 0.16);
  border: 1px solid rgba(226, 211, 189, 0.9);
  font-size: 16px;
  color: #2c1a0b;
}

/* ===== GRID + CARDS ===== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* 統一木色卡片底 */

.card,
.step,
.price-item,
.form-card,
.faq-item {
  background: rgba(255, 247, 232, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 211, 189, 0.95);
  box-shadow: 0 12px 30px rgba(60, 40, 20, 0.12);
  backdrop-filter: blur(4px);
}

/* hover 效果 */

.card,
.price-item,
.faq-item {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover,
.price-item:hover,
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(60, 40, 20, 0.16);
  border-color: rgba(196, 132, 58, 0.55);
}

/* 內容內邊距 */

.card {
  padding: 18px;
}

/* 價目卡片 padding */

.price-item {
  padding: 18px;
}

/* icon 小木圓點 */

.card-title::before,
.price-title::before,
.faq-question::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
  background: radial-gradient(circle at 30% 30%, #ffe3b5, var(--primary));
  box-shadow: 0 0 0 3px rgba(196, 132, 58, 0.28);
  vertical-align: middle;
}

/* 文字樣式 */

.card-title,
.step-title,
.price-title,
.faq-question {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.card-text,
.step-text,
.price-note,
.faq-answer {
  font-size: 16px;
  color: var(--text-muted);
}

/* 價目頁數字 */

.price-range {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

/* ===== 服務 + 影片（首頁第二區） ===== */

.section-services .services-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: flex-start;
}

.section-services .services-list {
  background: rgba(255, 247, 232, 0.98);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 211, 189, 0.95);
  min-height: 360px;
}

.section-services .services-list .grid {
  margin: 0;
}

.services-video {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-video-wrapper {
  width: 100%;
  max-width: 360px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(60, 40, 20, 0.22);
  background: #000;
}

.services-video-el {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.video-note {
  margin-top: 10px;
  font-size: 13px;
  color: #8b7a66;
}

/* ===== 流程 Steps ===== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  padding: 16px;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(196, 132, 58, 0.18);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ===== PRICING PAGE ===== */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ===== ORDER FORM ===== */

.form-card {
  padding: 18px 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea,
input[type="file"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* ===== ABOUT PAGE ===== */

.page-about .section .grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

/* ===== FAQ ===== */

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-item {
  padding: 14px;
}

/* ===== FOOTER ===== */

.footer {
  background: rgba(59, 42, 26, 0.96);
  color: #f9f5ee;
  padding: 20px 0 26px;
  margin-top: 16px;
  box-shadow: 0 -10px 26px rgba(60, 40, 20, 0.35);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 15px;
}

.footer-col-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-small {
  margin-top: 10px;
  font-size: 13px;
  color: #d3c0a2;
}

/* ===== RWD ===== */

@media (max-width: 960px) {
  .navbar-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .nav-cta {
    order: 2;
  }

  .hero-content {
    padding: 22px 18px 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .grid,
  .steps,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-services .services-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-video-wrapper {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
    line-height: 1.8;
  }

  .hero-title {
    font-size: 24px;
  }

  /* 細手機：menu 變成 3×2 grid，唔會得 FAQ 一粒 */
  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    justify-items: center;
  }

  .nav-links a {
    font-size: 15px;
  }

  .grid,
  .steps,
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
  }
}
