/* SECTION: reset & tokens */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* 主色：PANTONE 18-0228 TPG Pesto 螢幕等效色 */
  --primary: #5f6945;
  --primary-dark: #4a5336;
  --primary-deep: #3b422d;
  --primary-soft: rgba(95, 105, 69, 0.08);
  --primary-line: rgba(95, 105, 69, 0.24);
  --ink: rgb(45, 46, 38);
  --muted: rgb(110, 110, 98);
  --bg: #ffffff;
  --bg-soft: #fafaf5;
  --line: #e7e7dc;
  --ph-bg: #ececdf;
  --ph-ink: #9c9c86;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(45, 46, 38, 0.06);
  --shadow-hover: 0 8px 24px rgba(45, 46, 38, 0.12);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", "PMingLiU", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

/* SECTION: header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: 0 0 auto;
}
.brand small { font-weight: 400; color: var(--muted); font-size: 0.75rem; margin-left: 2px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { background: var(--primary-soft); text-decoration: none; }
.site-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }

/* SECTION: buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--outline { background: transparent; color: var(--primary); }
.btn--outline:hover { background: var(--primary-soft); }
.btn--light { background: #fff; color: var(--primary); border-color: #fff; }
.btn--light:hover { background: #f0f1e8; border-color: #f0f1e8; }
.btn--block { width: 100%; }

/* SECTION: hero */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(95, 105, 69, 0.14), transparent 60%),
    linear-gradient(180deg, #f7f7f0 0%, #ffffff 100%);
  padding: 88px 0 80px;
}
.hero__inner { max-width: 720px; }
.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  margin: 0 0 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* SECTION: image slot（真圖覆蓋占位，載入失敗自動留占位框） */
.img-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ph-bg);
  min-width: 0;
}
.img-slot__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-ink);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.img-slot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.img-slot__img.is-loaded { display: block; }
.img-slot--wide { aspect-ratio: 16 / 7; }

/* SECTION: cards & grids */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { margin: 0; font-size: 1.1rem; }
.card__desc { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card__tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.05em;
}

/* SECTION: feature list */
.feature {
  border-left: 3px solid var(--primary-line);
  padding: 4px 0 4px 18px;
}
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
.split--flip > :first-child { order: 2; }

/* SECTION: pricing */
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.plan--featured { border: 2px solid var(--primary); position: relative; }
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 16px;
  white-space: nowrap;
}
.plan__name { margin-bottom: 4px; }
.plan__for { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.plan__price { font-size: 1.9rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.plan__price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan__unit { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }
.plan__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 9px;
}
.plan .btn { margin-top: auto; }
.pricing-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.92rem;
}

/* SECTION: page banner */
.page-banner {
  background: linear-gradient(180deg, #f7f7f0 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.page-banner p { color: var(--muted); max-width: 640px; margin: 0; }

/* SECTION: contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}
.contact-card__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { margin-bottom: 2px; font-size: 1.02rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.95rem; word-break: break-word; }
.contact-card .btn { margin-top: 14px; min-height: 42px; padding: 8px 22px; font-size: 0.95rem; }
.contact-meta { color: var(--muted); font-size: 0.88rem; }

/* SECTION: CTA band */
.cta-band {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* SECTION: footer */
.site-footer {
  margin-top: 72px;
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 52px 0 28px;
  font-size: 0.93rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 36px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand { max-width: 320px; }
.site-footer__brand .brand { color: #fff; margin-bottom: 12px; }
.site-footer__brand .brand__mark { background: rgba(255, 255, 255, 0.16); }
.site-footer__brand p { color: rgba(255, 255, 255, 0.7); margin: 0; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* SECTION: utilities */
.text-muted { color: var(--muted); }

/* SECTION: responsive */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(45, 46, 38, 0.08);
    padding: 8px 16px 16px;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .site-header__inner { position: relative; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--flip > :first-child { order: 0; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 48px 0; }
  .cta-band { padding: 34px 26px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .brand small { display: none; }
}
